Skip to content

Commit

Permalink
use initia_nft
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 committed Jan 5, 2024
1 parent eb523b5 commit de116c1
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ require (
github.com/hashicorp/go-metrics v0.5.2
github.com/initia-labs/OPinit v0.1.1-beta.1
// we also need to update `LIBINITIAVM_VERSION` of images/private/Dockerfile#5
github.com/initia-labs/initiavm v0.1.2-beta.6
github.com/initia-labs/initiavm v0.1.2-beta.7
github.com/novifinancial/serde-reflection/serde-generate/runtime/golang v0.0.0-20220519162058-e5cd3c3b3f3a
github.com/pelletier/go-toml v1.9.5
github.com/pkg/errors v0.9.1
Expand Down
6 changes: 3 additions & 3 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -709,12 +709,12 @@ github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANyt
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo=
github.com/initia-labs/OPinit v0.1.1-beta.1 h1:3/qjPPHB5FsdUHmTOqvcuL+IAkfFENtF7fk+/eHSH1k=
github.com/initia-labs/OPinit v0.1.1-beta.1 h1:HSRw+enslOUzjiMklud+HfV7ObYOA7HOo4SMDWHDV4k=
github.com/initia-labs/OPinit v0.1.1-beta.1/go.mod h1:1dn1iseG1S4wfXUtnb4mUkraJdL9/lWBQPpI+HbVzL0=
github.com/initia-labs/cosmos-sdk v0.0.0-20240103092915-bf1e1bc520d0 h1:ZgI0FQvyUrpp3zKM0RuXU5hYdRw3u1/a50RG9l0G0Cw=
github.com/initia-labs/cosmos-sdk v0.0.0-20240103092915-bf1e1bc520d0/go.mod h1:n/WQqDh73qdtBmY9Op3sYgiBgTujSfGSd6CNh6GfqvQ=
github.com/initia-labs/initiavm v0.1.2-beta.6 h1:U59NfxapDLcGnSuP5IC8szsHw300Er81kMHhre4Nr68=
github.com/initia-labs/initiavm v0.1.2-beta.6/go.mod h1:6LNXn8eRv2jBzvM1gyQMgA1GRzZJh65VGVKCYDtbh18=
github.com/initia-labs/initiavm v0.1.2-beta.7 h1:KiIy1GGrwa0ZbzkX3jzYtmMT15Tnk+WN8U3nBnu8xEE=
github.com/initia-labs/initiavm v0.1.2-beta.7/go.mod h1:6LNXn8eRv2jBzvM1gyQMgA1GRzZJh65VGVKCYDtbh18=
github.com/jhump/protoreflect v1.15.3 h1:6SFRuqU45u9hIZPJAoZ8c28T3nK64BNdp9w6jFonzls=
github.com/jhump/protoreflect v1.15.3/go.mod h1:4ORHmSBmlCW8fh3xHmJMGyul1zNqZK4Elxc8qKP+p1k=
github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k=
Expand Down
2 changes: 1 addition & 1 deletion images/private/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM golang:1.19.1-alpine3.16 AS go-builder
#ARG arch=x86_64

# See https://github.com/initia-labs/initiavm/releases
ARG LIBINITIAVM_VERSION=v0.1.2-beta.6
ARG LIBINITIAVM_VERSION=v0.1.2-beta.7

# this comes from standard alpine nightly file
# https://github.com/rust-lang/docker-rust-nightly/blob/master/alpine3.12/Dockerfile
Expand Down
4 changes: 2 additions & 2 deletions x/ibc/nft-transfer/keeper/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (suite *KeeperTestSuite) CreateNftClass(
movetypes.MoveModuleNameSimpleNft,
movetypes.FunctionNameSimpleNftInitialize,
[]vmtypes.TypeTag{},
[][]byte{descBz, {0}, nameBz, uriBz, {0}, {0}, {0}, {0}, {0}, {0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
[][]byte{descBz, {0}, nameBz, uriBz, {0}, {0}, {0}, {0}, {0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
)
suite.Require().NoError(err, "MakeCollection error on chain")

Expand Down Expand Up @@ -78,7 +78,7 @@ func (suite *KeeperTestSuite) MintNft(
movetypes.MoveModuleNameSimpleNft,
movetypes.FunctionNameSimpleNftMint,
[]vmtypes.TypeTag{},
[][]byte{classNameBz, dataBz, idBz, uriBz, {0}, {0}, {0}, append([]byte{1}, receiverAddr[:]...)},
[][]byte{classNameBz, dataBz, idBz, uriBz, {1}, append([]byte{1}, receiverAddr[:]...)},
)
suite.Require().NoError(err, "MakeCollection error on chain")
}
Expand Down
4 changes: 2 additions & 2 deletions x/move/keeper/nft.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func (k NftKeeper) Mint(
types.MoveModuleNameSimpleNft,
types.FunctionNameSimpleNftMint,
[]vmtypes.TypeTag{},
[][]byte{collectionNameBz, dataBz, idBz, uriBz, {0}, {0}, {0}, append([]byte{1}, recipientAddr[:]...)},
[][]byte{collectionNameBz, dataBz, idBz, uriBz, {1}, append([]byte{1}, recipientAddr[:]...)},
)
}

Expand Down Expand Up @@ -159,7 +159,7 @@ func (k NftKeeper) initializeCollection(ctx context.Context, collectionName, col
types.MoveModuleNameSimpleNft,
types.FunctionNameSimpleNftInitialize,
[]vmtypes.TypeTag{},
[][]byte{descBz, {0}, nameBz, uriBz, {0}, {0}, {0}, {0}, {0}, {0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
[][]byte{descBz, {0}, nameBz, uriBz, {0}, {0}, {0}, {0}, {0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}},
)
}

Expand Down
4 changes: 2 additions & 2 deletions x/move/types/connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const (
MoveModuleNamePrimaryFungibleStore = "primary_fungible_store"
MoveModuleNameManagedCoin = "managed_coin"
MoveModuleNameObject = "object"
MoveModuleNameSimpleNft = "simple_nft"
MoveModuleNameSimpleNft = "initia_nft"
MoveModuleNameCollection = "collection"

// function names for managed_coin
Expand Down Expand Up @@ -79,7 +79,7 @@ const (
ResourceNameIssuer = "Issuer"
ResourceNameManagingRefs = "ManagingRefs"
ResourceNameCollection = "Collection"
ResourceNameSimpleNft = "SimpleNft"
ResourceNameSimpleNft = "InitiaNft"
ResourceNameNft = "Nft"
)

Expand Down

0 comments on commit de116c1

Please sign in to comment.