Skip to content

Commit 2b37034

Browse files
committed
add ibc nft_transfer
1 parent 68ed671 commit 2b37034

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+9841
-223
lines changed

bank/bank.pb.go

+28-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bank/query.pb.go

+40-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bank/tx.pb.go

+8-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client.go

+5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
cryptotypes "github.com/irisnet/core-sdk-go/common/codec/types"
1212
commoncryptocodec "github.com/irisnet/core-sdk-go/common/crypto/codec"
1313
"github.com/irisnet/core-sdk-go/gov"
14+
"github.com/irisnet/core-sdk-go/ibc/nft_transfer"
1415
"github.com/irisnet/core-sdk-go/ibc/transfer"
1516
"github.com/irisnet/core-sdk-go/staking"
1617
"github.com/irisnet/core-sdk-go/types"
@@ -26,6 +27,7 @@ type Client struct {
2627
Key keys.Client
2728
Staking staking.Client
2829
Gov gov.Client
30+
NFTTransfer nft_transfer.Client
2931
Transfer transfer.Client
3032
FeeGrant feegrant.Client
3133
}
@@ -38,6 +40,7 @@ func NewClient(cfg types.ClientConfig) Client {
3840
bankClient := bank.NewClient(baseClient, encodingConfig.Marshaler)
3941
keysClient := keys.NewKeysClient(cfg, baseClient)
4042
transferClient := transfer.NewClient(baseClient, encodingConfig.Marshaler)
43+
nftTransferClient := nft_transfer.NewClient(baseClient, encodingConfig.Marshaler)
4144
stakingClient := staking.NewClient(baseClient, encodingConfig.Marshaler)
4245
govClient := gov.NewClient(baseClient, encodingConfig.Marshaler)
4346
feeGrantClient := feegrant.NewClient(baseClient, encodingConfig.Marshaler)
@@ -51,6 +54,7 @@ func NewClient(cfg types.ClientConfig) Client {
5154
Key: keysClient,
5255
Staking: stakingClient,
5356
Gov: govClient,
57+
NFTTransfer: nftTransferClient,
5458
Transfer: transferClient,
5559
FeeGrant: feeGrantClient,
5660
}
@@ -59,6 +63,7 @@ func NewClient(cfg types.ClientConfig) Client {
5963
stakingClient,
6064
govClient,
6165
transferClient,
66+
nftTransferClient,
6267
feeGrantClient,
6368
)
6469
return client

client/rpc_client.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package client
33
import (
44
"context"
55
"fmt"
6+
67
"github.com/tendermint/tendermint/crypto/tmhash"
78
"github.com/tendermint/tendermint/libs/log"
89
rpc "github.com/tendermint/tendermint/rpc/client"
@@ -27,7 +28,7 @@ func NewRPCClient(cfg sdktypes.ClientConfig,
2728
txDecoder sdk.TxDecoder,
2829
logger log.Logger,
2930
) sdk.TmClient {
30-
client, err := sdkrpc.NewJSONRpcClient(
31+
client, err := sdkrpc.NewJSONRPCClient(
3132
cfg.RPCAddr,
3233
cfg.WSAddr,
3334
"/websocket",

common/crypto/keys/ed25519/keys.pb.go

+8-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

common/crypto/keys/multisig/keys.pb.go

+4-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

common/crypto/keys/secp256k1/keys.pb.go

+8-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

common/crypto/types/multisig.pb.go

+8-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)