Skip to content

Commit

Permalink
Update to Cadence 1.0.0-m3
Browse files Browse the repository at this point in the history
  • Loading branch information
SupunS committed Jan 24, 2024
1 parent 0a43997 commit 7f516b2
Show file tree
Hide file tree
Showing 8 changed files with 8,399 additions and 109 deletions.
4 changes: 1 addition & 3 deletions lib/go/contracts/contracts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,13 @@ func TestExampleNFTContract(t *testing.T) {
addressA := addresses.New()
addressB := addresses.New()
addressC := addresses.New()
addressD := addresses.New()

contract := contracts.ExampleNFT(addressA, addressB, addressC, addressD)
contract := contracts.ExampleNFT(addressA, addressB, addressC)
assert.NotNil(t, contract)

assert.Contains(t, string(contract), addressA.String())
assert.Contains(t, string(contract), addressB.String())
assert.Contains(t, string(contract), addressC.String())
assert.Contains(t, string(contract), addressD.String())
}

func TestMetadataViewsContract(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions lib/go/contracts/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/onflow/flow-nft/lib/go/contracts
go 1.16

require (
github.com/kevinburke/go-bindata v3.22.0+incompatible
github.com/onflow/flow-go-sdk v0.44.0-stable-cadence.2.0.20240122164005-147ad40664ca
github.com/kevinburke/go-bindata v3.23.0+incompatible
github.com/onflow/flow-go-sdk v0.44.1-0.20240124190446-502c63f85067
github.com/stretchr/testify v1.8.4
)
2,949 changes: 2,928 additions & 21 deletions lib/go/contracts/go.sum

Large diffs are not rendered by default.

27 changes: 14 additions & 13 deletions lib/go/contracts/internal/assets/assets.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lib/go/templates/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/onflow/flow-nft/lib/go/templates
go 1.16

require (
github.com/kevinburke/go-bindata v3.22.0+incompatible
github.com/onflow/flow-go-sdk v0.44.0-stable-cadence.2.0.20240122164005-147ad40664ca
github.com/kevinburke/go-bindata v3.23.0+incompatible
github.com/onflow/flow-go-sdk v0.44.1-0.20240124190446-502c63f85067
github.com/stretchr/testify v1.8.4
)
2,949 changes: 2,928 additions & 21 deletions lib/go/templates/go.sum

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions lib/go/test/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ go 1.18

require (
github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0
github.com/onflow/cadence v1.0.0-preview.2.0.20240122125204-5ce1f36f95bb
github.com/onflow/flow-emulator v0.59.1-0.20240122200325-58ef35ed4aed
github.com/onflow/flow-go-sdk v0.44.0-stable-cadence.2.0.20240122164005-147ad40664ca
github.com/onflow/cadence v1.0.0-M3
github.com/onflow/flow-emulator v0.59.0
github.com/onflow/flow-go-sdk v0.44.1-0.20240124190446-502c63f85067
github.com/onflow/flow-nft/lib/go/contracts v1.1.1-0.20240120002146-9f1763b66d80
github.com/onflow/flow-nft/lib/go/templates v0.0.0-00010101000000-000000000000
github.com/rs/zerolog v1.29.0
Expand Down Expand Up @@ -60,12 +60,12 @@ require (
github.com/golang/glog v1.1.2 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect
github.com/google/uuid v1.3.1 // indirect
github.com/google/uuid v1.4.0 // indirect
github.com/gorilla/websocket v1.5.0 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.11.3 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/golang-lru v0.5.4 // indirect
github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d // indirect
github.com/hashicorp/golang-lru/v2 v2.0.2 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/holiman/bloomfilter/v2 v2.0.3 // indirect
Expand Down Expand Up @@ -112,10 +112,11 @@ require (
github.com/multiformats/go-varint v0.0.7 // indirect
github.com/olekukonko/tablewriter v0.0.5 // indirect
github.com/onflow/atree v0.6.1-0.20230711151834-86040b30171f // indirect
github.com/onflow/flow-core-contracts/lib/go/contracts v0.15.1-0.20240120002724-ff3d1a4bab55 // indirect
github.com/onflow/flow-core-contracts/lib/go/templates v0.15.1-0.20240120002724-ff3d1a4bab55 // indirect
github.com/onflow/crypto v0.25.0 // indirect
github.com/onflow/flow-core-contracts/lib/go/contracts v1.2.4-0.20231016154253-a00dbf7c061f // indirect
github.com/onflow/flow-core-contracts/lib/go/templates v1.2.4-0.20231016154253-a00dbf7c061f // indirect
github.com/onflow/flow-ft/lib/go/contracts v0.7.1-0.20240109231227-22564b43846d // indirect
github.com/onflow/flow-go v0.33.2-0.20240122190738-254af677b873 // indirect
github.com/onflow/flow-go v0.33.1 // indirect
github.com/onflow/flow-go/crypto v0.25.0 // indirect
github.com/onflow/flow/protobuf/go/flow v0.3.2-0.20231213135419-ae911cc351a2 // indirect
github.com/onflow/nft-storefront/lib/go/contracts v0.0.0-20221222181731-14b90207cead // indirect
Expand All @@ -139,7 +140,7 @@ require (
github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible // indirect
github.com/slok/go-http-metrics v0.10.0 // indirect
github.com/spaolacci/murmur3 v1.1.0 // indirect
github.com/spf13/afero v1.9.3 // indirect
github.com/spf13/afero v1.10.0 // indirect
github.com/spf13/cast v1.5.0 // indirect
github.com/spf13/cobra v1.8.0 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
Expand Down Expand Up @@ -180,13 +181,12 @@ require (
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
gonum.org/v1/gonum v0.13.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20230822172742-b8732ec3820d // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20230822172742-b8732ec3820d // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d // indirect
google.golang.org/genproto v0.0.0-20231016165738-49dd2c1f3d0b // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20231016165738-49dd2c1f3d0b // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405 // indirect
google.golang.org/grpc v1.59.0 // indirect
google.golang.org/protobuf v1.31.0 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
lukechampine.com/blake3 v1.2.1 // indirect
modernc.org/libc v1.22.3 // indirect
Expand Down
Loading

0 comments on commit 7f516b2

Please sign in to comment.