Skip to content

Commit b0e443d

Browse files
committed
update transactions to get go tests passing
1 parent 2e80d9b commit b0e443d

34 files changed

+335
-243
lines changed

lib/go/templates/internal/assets/assets.go

Lines changed: 78 additions & 78 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/go/templates/templates.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ var (
2323
placeholderMetadataViews = "\"MetadataViews\""
2424
placeholderFTMetadataViews = "\"FungibleTokenMetadataViews\""
2525
placeholderViewResolver = "\"ViewResolver\""
26+
placeholderBurner = "\"Burner\""
2627
)
2728

2829
type Environment struct {
@@ -34,6 +35,7 @@ type Environment struct {
3435
MetadataViewsAddress string
3536
FungibleTokenMetadataViewsAddress string
3637
ViewResolverAddress string
38+
BurnerAddress string
3739
SwitchboardAddress string
3840
}
3941

@@ -93,6 +95,12 @@ func ReplaceAddresses(code string, env Environment) string {
9395
withHexPrefix(env.ViewResolverAddress),
9496
)
9597

98+
code = strings.ReplaceAll(
99+
code,
100+
placeholderBurner,
101+
withHexPrefix(env.BurnerAddress),
102+
)
103+
96104
code = strings.ReplaceAll(
97105
code,
98106
placeholderSwitchboard,

lib/go/test/go.mod

Lines changed: 25 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,48 +3,38 @@ module github.com/onflow/flow-ft/lib/go/test
33
go 1.18
44

55
require (
6-
github.com/onflow/cadence v1.0.0-preview.2.0.20240120000236-f3397a0efdad
7-
github.com/onflow/flow-emulator v0.59.1-0.20240122200325-58ef35ed4aed
8-
github.com/onflow/flow-ft/lib/go/contracts v0.7.1-0.20231212194336-a2802ba36596
9-
github.com/onflow/flow-ft/lib/go/templates v0.0.0-00010101000000-000000000000
10-
github.com/onflow/flow-go-sdk v0.44.1-0.20240124213231-78d9f08eeae1
11-
github.com/onflow/flow-nft/lib/go/contracts v1.1.1-0.20240120002146-9f1763b66d80
6+
github.com/btcsuite/btcd/chaincfg/chainhash v1.0.2
7+
github.com/onflow/cadence v1.0.0-M4
8+
github.com/onflow/flow-emulator v1.0.0-M1
9+
github.com/onflow/flow-ft/lib/go/contracts v0.7.1-0.20240125205519-2e80d9b4bd01
10+
github.com/onflow/flow-ft/lib/go/templates v0.7.1-0.20240125205519-2e80d9b4bd01
11+
github.com/onflow/flow-go-sdk v1.0.0-M1
12+
github.com/onflow/flow-nft/lib/go/contracts v1.1.1-0.20240125205553-d2b571fb3fad
1213
github.com/rs/zerolog v1.29.0
1314
github.com/stretchr/testify v1.8.4
1415
)
1516

16-
require (
17-
github.com/Microsoft/go-winio v0.6.1 // indirect
18-
github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect
19-
github.com/consensys/bavard v0.1.13 // indirect
20-
github.com/consensys/gnark-crypto v0.12.1 // indirect
21-
github.com/crate-crypto/go-kzg-4844 v0.7.0 // indirect
22-
github.com/ethereum/c-kzg-4844 v0.4.0 // indirect
23-
github.com/mmcloughlin/addchain v0.4.0 // indirect
24-
github.com/onflow/crypto v0.25.0 // indirect
25-
github.com/supranational/blst v0.3.11 // indirect
26-
golang.org/x/mod v0.14.0 // indirect
27-
golang.org/x/tools v0.16.0 // indirect
28-
rsc.io/tmplfunc v0.0.3 // indirect
29-
)
30-
3117
require (
3218
github.com/DataDog/zstd v1.5.2 // indirect
33-
github.com/SaveTheRbtz/mph v0.1.2 // indirect
19+
github.com/Microsoft/go-winio v0.6.1 // indirect
20+
github.com/SaveTheRbtz/mph v0.1.1-0.20240117162131-4166ec7869bc // indirect
3421
github.com/StackExchange/wmi v1.2.1 // indirect
3522
github.com/VictoriaMetrics/fastcache v1.12.1 // indirect
3623
github.com/beorn7/perks v1.0.1 // indirect
3724
github.com/bits-and-blooms/bitset v1.7.0 // indirect
3825
github.com/btcsuite/btcd/btcec/v2 v2.2.1 // indirect
39-
github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0
4026
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
4127
github.com/cespare/xxhash v1.1.0 // indirect
4228
github.com/cespare/xxhash/v2 v2.2.0 // indirect
4329
github.com/cockroachdb/errors v1.9.1 // indirect
4430
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect
4531
github.com/cockroachdb/pebble v0.0.0-20230928194634-aa077af62593 // indirect
4632
github.com/cockroachdb/redact v1.1.3 // indirect
33+
github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect
34+
github.com/consensys/bavard v0.1.13 // indirect
35+
github.com/consensys/gnark-crypto v0.12.1 // indirect
4736
github.com/coreos/go-semver v0.3.0 // indirect
37+
github.com/crate-crypto/go-kzg-4844 v0.7.0 // indirect
4838
github.com/davecgh/go-spew v1.1.1 // indirect
4939
github.com/deckarep/golang-set/v2 v2.1.0 // indirect
5040
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect
@@ -54,6 +44,7 @@ require (
5444
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
5545
github.com/dustin/go-humanize v1.0.1 // indirect
5646
github.com/ef-ds/deque v1.0.4 // indirect
47+
github.com/ethereum/c-kzg-4844 v0.4.0 // indirect
5748
github.com/ethereum/go-ethereum v1.13.5 // indirect
5849
github.com/fsnotify/fsnotify v1.6.0 // indirect
5950
github.com/fxamacker/cbor/v2 v2.4.1-0.20230228173756-c0c9f774e40c // indirect
@@ -110,6 +101,7 @@ require (
110101
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
111102
github.com/minio/sha256-simd v1.0.1 // indirect
112103
github.com/mitchellh/mapstructure v1.5.0 // indirect
104+
github.com/mmcloughlin/addchain v0.4.0 // indirect
113105
github.com/mr-tron/base58 v1.2.0 // indirect
114106
github.com/multiformats/go-base32 v0.1.0 // indirect
115107
github.com/multiformats/go-base36 v0.2.0 // indirect
@@ -121,10 +113,10 @@ require (
121113
github.com/multiformats/go-varint v0.0.7 // indirect
122114
github.com/olekukonko/tablewriter v0.0.5 // indirect
123115
github.com/onflow/atree v0.6.1-0.20230711151834-86040b30171f // indirect
124-
github.com/onflow/flow-core-contracts/lib/go/contracts v0.15.1-0.20240120002724-ff3d1a4bab55 // indirect
125-
github.com/onflow/flow-core-contracts/lib/go/templates v0.15.1-0.20240120002724-ff3d1a4bab55 // indirect
126-
github.com/onflow/flow-go v0.33.2-0.20240122190738-254af677b873 // indirect
127-
github.com/onflow/flow-go/crypto v0.25.0 // indirect
116+
github.com/onflow/crypto v0.25.0 // indirect
117+
github.com/onflow/flow-core-contracts/lib/go/contracts v0.15.1-0.20240125214229-b7a95136dd0d // indirect
118+
github.com/onflow/flow-core-contracts/lib/go/templates v0.15.1-0.20240125214229-b7a95136dd0d // indirect
119+
github.com/onflow/flow-go v0.33.2-0.20240126002816-f0770a716d61 // indirect
128120
github.com/onflow/flow/protobuf/go/flow v0.3.2-0.20231213135419-ae911cc351a2 // indirect
129121
github.com/onflow/sdks v0.5.1-0.20230912225508-b35402f12bba // indirect
130122
github.com/opentracing/opentracing-go v1.2.0 // indirect
@@ -146,14 +138,15 @@ require (
146138
github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible // indirect
147139
github.com/slok/go-http-metrics v0.10.0 // indirect
148140
github.com/spaolacci/murmur3 v1.1.0 // indirect
149-
github.com/spf13/afero v1.9.3 // indirect
141+
github.com/spf13/afero v1.10.0 // indirect
150142
github.com/spf13/cast v1.5.0 // indirect
151143
github.com/spf13/cobra v1.8.0 // indirect
152144
github.com/spf13/jwalterweatherman v1.1.0 // indirect
153145
github.com/spf13/pflag v1.0.5 // indirect
154146
github.com/spf13/viper v1.15.0 // indirect
155147
github.com/stretchr/objx v0.5.0 // indirect
156148
github.com/subosito/gotenv v1.4.2 // indirect
149+
github.com/supranational/blst v0.3.11 // indirect
157150
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 // indirect
158151
github.com/texttheater/golang-levenshtein/levenshtein v0.0.0-20200805054039-cae8b0eaed6c // indirect
159152
github.com/tklauser/go-sysconf v0.3.12 // indirect
@@ -164,7 +157,6 @@ require (
164157
github.com/vmihailenco/tagparser v0.1.1 // indirect
165158
github.com/x448/float16 v0.8.4 // indirect
166159
github.com/zeebo/blake3 v0.2.3 // indirect
167-
github.com/zeebo/xxh3 v1.0.2 // indirect
168160
go.opentelemetry.io/otel v1.16.0 // indirect
169161
go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.16.0 // indirect
170162
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.16.0 // indirect
@@ -178,10 +170,12 @@ require (
178170
go.uber.org/zap v1.24.0 // indirect
179171
golang.org/x/crypto v0.17.0 // indirect
180172
golang.org/x/exp v0.0.0-20240103183307-be819d1f06fc // indirect
173+
golang.org/x/mod v0.14.0 // indirect
181174
golang.org/x/net v0.19.0 // indirect
182175
golang.org/x/sync v0.5.0 // indirect
183176
golang.org/x/sys v0.15.0 // indirect
184177
golang.org/x/text v0.14.0 // indirect
178+
golang.org/x/tools v0.16.0 // indirect
185179
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
186180
gonum.org/v1/gonum v0.13.0 // indirect
187181
google.golang.org/appengine v1.6.7 // indirect
@@ -197,9 +191,10 @@ require (
197191
modernc.org/mathutil v1.5.0 // indirect
198192
modernc.org/memory v1.5.0 // indirect
199193
modernc.org/sqlite v1.21.1 // indirect
194+
rsc.io/tmplfunc v0.0.3 // indirect
200195
)
201196

202-
replace github.com/onflow/flow-nft/lib/go/contracts => ../../../../flow/flow-nft/lib/go/contracts
197+
// replace github.com/onflow/flow-nft/lib/go/contracts => ../../../../flow/flow-nft/lib/go/contracts
203198

204199
replace github.com/onflow/flow-ft/lib/go/contracts => ../contracts
205200

0 commit comments

Comments
 (0)