Skip to content

Commit dda1093

Browse files
authored
Merge branch 'master' into codeowners-psiemens
2 parents cd452bd + a644541 commit dda1093

File tree

9 files changed

+509
-24
lines changed

9 files changed

+509
-24
lines changed

CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @sideninja @turbolent @janezpodhostnik
1+
* @sideninja @turbolent @janezpodhostnik @bluesign

go.mod

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ require (
1414
github.com/hashicorp/go-multierror v1.1.1
1515
github.com/improbable-eng/grpc-web v0.12.0
1616
github.com/logrusorgru/aurora v2.0.3+incompatible
17-
github.com/onflow/cadence v0.30.0
18-
github.com/onflow/flow-go v0.28.1-0.20221214175701-076c0fd2a2f9
19-
github.com/onflow/flow-go-sdk v0.30.0
17+
github.com/onflow/cadence v0.31.0
18+
github.com/onflow/flow-go v0.29.1
19+
github.com/onflow/flow-go-sdk v0.31.0
2020
github.com/onflow/flow-go/crypto v0.24.4
2121
github.com/onflow/flow-nft/lib/go/contracts v0.0.0-20220727161549-d59b1e547ac4
22-
github.com/onflow/flow/protobuf/go/flow v0.3.2-0.20221130185733-92eb85ead310
22+
github.com/onflow/flow/protobuf/go/flow v0.3.2-0.20221202093946-932d1c70e288
2323
github.com/onflow/fusd/lib/go/contracts v0.0.0-20211021081023-ae9de8fb2c7e
24-
github.com/onflow/nft-storefront/lib/go/contracts v0.0.0-20220714155620-011db20fe754
24+
github.com/onflow/nft-storefront/lib/go/contracts v0.0.0-20221222181731-14b90207cead
2525
github.com/pkg/errors v0.9.1
2626
github.com/prometheus/client_golang v1.14.0
2727
github.com/psiemens/graceland v1.0.0
@@ -107,8 +107,8 @@ require (
107107
github.com/multiformats/go-multihash v0.2.1 // indirect
108108
github.com/multiformats/go-varint v0.0.6 // indirect
109109
github.com/onflow/atree v0.4.0 // indirect
110-
github.com/onflow/flow-core-contracts/lib/go/contracts v0.11.2-0.20221205150827-c68044a2505c // indirect
111-
github.com/onflow/flow-core-contracts/lib/go/templates v0.11.2-0.20221205150827-c68044a2505c // indirect
110+
github.com/onflow/flow-core-contracts/lib/go/contracts v0.11.2-0.20221214150253-cb74e7764c12 // indirect
111+
github.com/onflow/flow-core-contracts/lib/go/templates v0.11.2-0.20221214150253-cb74e7764c12 // indirect
112112
github.com/onflow/flow-ft/lib/go/contracts v0.5.0 // indirect
113113
github.com/onflow/sdks v0.4.4 // indirect
114114
github.com/opentracing/opentracing-go v1.2.0 // indirect

go.sum

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -587,31 +587,31 @@ github.com/onflow/atree v0.1.0-beta1.0.20211027184039-559ee654ece9/go.mod h1:+6x
587587
github.com/onflow/atree v0.4.0 h1:+TbNisavAkukAKhgQ4plWnvR9o5+SkwPIsi3jaeAqKs=
588588
github.com/onflow/atree v0.4.0/go.mod h1:7Qe1xaW0YewvouLXrugzMFUYXNoRQ8MT/UsVAWx1Ndo=
589589
github.com/onflow/cadence v0.20.1/go.mod h1:7mzUvPZUIJztIbr9eTvs+fQjWWHTF8veC+yk4ihcNIA=
590-
github.com/onflow/cadence v0.30.0 h1:LzxvMLwGeRlUVFvGgprnBTE+En5DZ2NxRIB8wB9/d8U=
591-
github.com/onflow/cadence v0.30.0/go.mod h1:oRgWkvau1RH15m3NuDlZCPHFQzwvC72jEstCGu8OJ98=
592-
github.com/onflow/flow-core-contracts/lib/go/contracts v0.11.2-0.20221205150827-c68044a2505c h1:dA5dG9BxHVjPYx+aWFlKRBOtzHoNcx1OCNX2q0PspNg=
593-
github.com/onflow/flow-core-contracts/lib/go/contracts v0.11.2-0.20221205150827-c68044a2505c/go.mod h1:9nrgjIF/noY2jJ7LP8bKLHTpcdHOa2yO0ryCKTQpxvs=
594-
github.com/onflow/flow-core-contracts/lib/go/templates v0.11.2-0.20221205150827-c68044a2505c h1:0kPk0/ZZmGPQK0RgSmWdW5ag8txPvguhkpYeP0+geFY=
595-
github.com/onflow/flow-core-contracts/lib/go/templates v0.11.2-0.20221205150827-c68044a2505c/go.mod h1:WMmeggH/H9Xb/SsT+4QFMtGYf+p1S2LXzbZAIaQQWAk=
590+
github.com/onflow/cadence v0.31.0 h1:UJ+muzR8kfbSs+K1kqMwHmMRnwKKHhHQfNzktGfxl1k=
591+
github.com/onflow/cadence v0.31.0/go.mod h1:oRgWkvau1RH15m3NuDlZCPHFQzwvC72jEstCGu8OJ98=
592+
github.com/onflow/flow-core-contracts/lib/go/contracts v0.11.2-0.20221214150253-cb74e7764c12 h1:tbWMfGrpVEKslasBLe/dEQ3ufgw0Q/8p+R7gpMW8xyM=
593+
github.com/onflow/flow-core-contracts/lib/go/contracts v0.11.2-0.20221214150253-cb74e7764c12/go.mod h1:9nrgjIF/noY2jJ7LP8bKLHTpcdHOa2yO0ryCKTQpxvs=
594+
github.com/onflow/flow-core-contracts/lib/go/templates v0.11.2-0.20221214150253-cb74e7764c12 h1:HrrDWFi3KdS54Mwayo9XkH8Z/yf6/8K1SKwjcJSSXB0=
595+
github.com/onflow/flow-core-contracts/lib/go/templates v0.11.2-0.20221214150253-cb74e7764c12/go.mod h1:WMmeggH/H9Xb/SsT+4QFMtGYf+p1S2LXzbZAIaQQWAk=
596596
github.com/onflow/flow-ft/lib/go/contracts v0.5.0 h1:Cg4gHGVblxcejfNNG5Mfj98Wf4zbY76O0Y28QB0766A=
597597
github.com/onflow/flow-ft/lib/go/contracts v0.5.0/go.mod h1:1zoTjp1KzNnOPkyqKmWKerUyf0gciw+e6tAEt0Ks3JE=
598-
github.com/onflow/flow-go v0.28.1-0.20221214175701-076c0fd2a2f9 h1:bAwS+PiBLfVyNhJzW7NQIXT0U7C83Da7JfH8TiD10Ow=
599-
github.com/onflow/flow-go v0.28.1-0.20221214175701-076c0fd2a2f9/go.mod h1:qOP9GTvijq1pt3UQnjC4MTUiy7w4pEXGbf0UP7XpKIs=
598+
github.com/onflow/flow-go v0.29.1 h1:a5tSSs0y+AD2hPFOeYRB9bEEZjhcuFFRgfWJDp+5raQ=
599+
github.com/onflow/flow-go v0.29.1/go.mod h1:Y5wviOlZ6ok2u3L1zL4TlfAp/2GUtj8mD2i1sj1RA1A=
600600
github.com/onflow/flow-go-sdk v0.24.0/go.mod h1:IoptMLPyFXWvyd9yYA6/4EmSeeozl6nJoIv4FaEMg74=
601-
github.com/onflow/flow-go-sdk v0.30.0 h1:Cb1kYW5DXZe7L6zblFvPItTdzGhmzVvCvFSyJWr8Nao=
602-
github.com/onflow/flow-go-sdk v0.30.0/go.mod h1:KXw/XIsq8g6EdR0AEa+bq3QYNLAx/NNkzWFFJua5ARc=
601+
github.com/onflow/flow-go-sdk v0.31.0 h1:iGkRf5/mgihngl9eRW0SttlV75nSULmm9x9dHjs4V54=
602+
github.com/onflow/flow-go-sdk v0.31.0/go.mod h1:u8WTV9hgnXcz7agKiuAKMgUt3GDE/R5XI3E4XmodUeI=
603603
github.com/onflow/flow-go/crypto v0.21.3/go.mod h1:vI6V4CY3R6c4JKBxdcRiR/AnjBfL8OSD97bJc60cLuQ=
604604
github.com/onflow/flow-go/crypto v0.24.4 h1:SwEtoVS2TidCIHYCZMgQ7U2YsqhI9upnw94fhdHTubM=
605605
github.com/onflow/flow-go/crypto v0.24.4/go.mod h1:dkVL98P6GHR48iD9zCB6XlnkJX8IQd00FKgt1reV90w=
606606
github.com/onflow/flow-nft/lib/go/contracts v0.0.0-20220727161549-d59b1e547ac4 h1:5AnM9jIwkyHaY6+C3cWnt07oTOYctmwxvpiL25HRJws=
607607
github.com/onflow/flow-nft/lib/go/contracts v0.0.0-20220727161549-d59b1e547ac4/go.mod h1:YsvzYng4htDgRB9sa9jxdwoTuuhjK8WYWXTyLkIigZY=
608608
github.com/onflow/flow/protobuf/go/flow v0.2.2/go.mod h1:gQxYqCfkI8lpnKsmIjwtN2mV/N2PIwc1I+RUK4HPIc8=
609-
github.com/onflow/flow/protobuf/go/flow v0.3.2-0.20221130185733-92eb85ead310 h1:fOxDpxEi4XbOql9eMc2wBFil21TOdbnjuDjePgnI3Uc=
610-
github.com/onflow/flow/protobuf/go/flow v0.3.2-0.20221130185733-92eb85ead310/go.mod h1:gQxYqCfkI8lpnKsmIjwtN2mV/N2PIwc1I+RUK4HPIc8=
609+
github.com/onflow/flow/protobuf/go/flow v0.3.2-0.20221202093946-932d1c70e288 h1:haWv3D5loiH+zcOoWEvDXtWQvXt5U8PLliQjwhv9sfw=
610+
github.com/onflow/flow/protobuf/go/flow v0.3.2-0.20221202093946-932d1c70e288/go.mod h1:gQxYqCfkI8lpnKsmIjwtN2mV/N2PIwc1I+RUK4HPIc8=
611611
github.com/onflow/fusd/lib/go/contracts v0.0.0-20211021081023-ae9de8fb2c7e h1:RHaXPHvWCy3VM62+HTyu6DYq5T8rrK1gxxqogKuJ4S4=
612612
github.com/onflow/fusd/lib/go/contracts v0.0.0-20211021081023-ae9de8fb2c7e/go.mod h1:CRX9eXtc9zHaRVTW1Xh4Cf5pZgKkQuu1NuSEVyHXr/0=
613-
github.com/onflow/nft-storefront/lib/go/contracts v0.0.0-20220714155620-011db20fe754 h1:8AYHSZXf22gjL11s1R7imw94sgxMfv40aFnSc2MBGHE=
614-
github.com/onflow/nft-storefront/lib/go/contracts v0.0.0-20220714155620-011db20fe754/go.mod h1:E3ScfQb5XcWJCIAdtIeEnr5i5l2y60GT0BTXeIHseWg=
613+
github.com/onflow/nft-storefront/lib/go/contracts v0.0.0-20221222181731-14b90207cead h1:2j1Unqs76Z1b95Gu4C3Y28hzNUHBix7wL490e61SMSw=
614+
github.com/onflow/nft-storefront/lib/go/contracts v0.0.0-20221222181731-14b90207cead/go.mod h1:E3ScfQb5XcWJCIAdtIeEnr5i5l2y60GT0BTXeIHseWg=
615615
github.com/onflow/sdks v0.4.4 h1:aJPGJJLAN+mlBWAQxsyuJXeRRMFeLwU6Mp4e/YL6bdU=
616616
github.com/onflow/sdks v0.4.4/go.mod h1:F0dj0EyHC55kknLkeD10js4mo14yTdMotnWMslPirrU=
617617
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=

server/backend/backend.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ func printTransactionResult(logger *logrus.Logger, result *types.TransactionResu
675675
}
676676

677677
for _, log := range result.Logs {
678-
logger.Debugf(
678+
logger.Infof(
679679
"%s %s",
680680
logPrefix("LOG", result.TransactionID, aurora.BlueFg),
681681
log,

server/server.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ type listener interface {
129129
// NewEmulatorServer creates a new instance of a Flow Emulator server.
130130
func NewEmulatorServer(logger *logrus.Logger, conf *Config) *EmulatorServer {
131131
conf = sanitizeConfig(conf)
132+
132133
store, err := configureStorage(logger, conf)
133134
if err != nil {
134135
logger.WithError(err).Error("❗ Failed to configure storage")

server/storage.go

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import (
2727

2828
"github.com/onflow/flow-emulator/storage"
2929
"github.com/onflow/flow-emulator/storage/badger"
30+
"github.com/onflow/flow-emulator/storage/memstore"
3031
"github.com/onflow/flow-emulator/storage/redis"
3132
)
3233

@@ -57,6 +58,24 @@ func (s *RedisStorage) Store() storage.Store {
5758
return s.store
5859
}
5960

61+
type MemoryStorage struct {
62+
store *memstore.Store
63+
}
64+
65+
func NewMemoryStorage() *MemoryStorage {
66+
return &MemoryStorage{store: memstore.New()}
67+
}
68+
69+
func (s *MemoryStorage) Start() error {
70+
return nil
71+
}
72+
73+
func (s *MemoryStorage) Stop() {}
74+
75+
func (s *MemoryStorage) Store() storage.Store {
76+
return s.store
77+
}
78+
6079
type BadgerStorage struct {
6180
logger *logrus.Logger
6281
store *badger.Store

0 commit comments

Comments
 (0)