diff --git a/proto/panacea/datapool/v2/tx.proto b/proto/panacea/datapool/v2/tx.proto index 27da6748..cc603c17 100644 --- a/proto/panacea/datapool/v2/tx.proto +++ b/proto/panacea/datapool/v2/tx.proto @@ -24,8 +24,8 @@ service Msg { // SellData defines a method for selling data rpc SellData(MsgSellData) returns (MsgSellDataResponse); - // BuyDataAccessNFT defines a method for buying data access NFT - rpc BuyDataAccessNFT(MsgBuyDataAccessNFT) returns (MsgBuyDataAccessNFTResponse); + // BuyDataPass defines a method for buying data access NFT + rpc BuyDataPass(MsgBuyDataPass) returns (MsgBuyDataPassResponse); // RedeemDataAccessNFT defines a method for redeeming data access NFT to get data rpc RedeemDataAccessNFT(MsgRedeemDataAccessNFT) returns (MsgRedeemDataAccessNFTResponse); @@ -75,16 +75,16 @@ message MsgSellDataResponse { cosmos.base.v1beta1.Coin accum_pool_share_token = 1; // denom: DP-{pood-id} } -// MsgBuyDataAccessNFT defines the Msg/BuyDataAccessNFT request type. -message MsgBuyDataAccessNFT { +// MsgBuyDataPass defines the Msg/BuyDataPass request type. +message MsgBuyDataPass { uint64 pool_id = 1; uint64 round = 2; cosmos.base.v1beta1.Coin payment = 3; string buyer = 4; // 'panacea1' address of buyer } -// MsgBuyDataAccessNFTResponse defines the Msg/BuyDataAccessNFT response type. -message MsgBuyDataAccessNFTResponse { +// MsgBuyDataPassResponse defines the Msg/BuyDataAccessNFT response type. +message MsgBuyDataPassResponse { uint64 pool_id = 1; uint64 round = 2; uint64 nft_id = 3; diff --git a/x/datapool/client/cli/txPool.go b/x/datapool/client/cli/txPool.go index 0038c36c..d8f41b41 100644 --- a/x/datapool/client/cli/txPool.go +++ b/x/datapool/client/cli/txPool.go @@ -206,7 +206,7 @@ func CmdBuyDataAccessNFT() *cobra.Command { return err } - msg := &types.MsgBuyDataAccessNFT{ + msg := &types.MsgBuyDataPass{ PoolId: poolID, Round: round, Payment: &payment, diff --git a/x/datapool/handler.go b/x/datapool/handler.go index acc69121..8194e429 100644 --- a/x/datapool/handler.go +++ b/x/datapool/handler.go @@ -27,8 +27,8 @@ func NewHandler(k keeper.Keeper) sdk.Handler { case *types.MsgCreatePool: res, err := msgServer.CreatePool(sdk.WrapSDKContext(ctx), msg) return sdk.WrapServiceResult(ctx, res, err) - case *types.MsgBuyDataAccessNFT: - res, err := msgServer.BuyDataAccessNFT(sdk.WrapSDKContext(ctx), msg) + case *types.MsgBuyDataPass: + res, err := msgServer.BuyDataPass(sdk.WrapSDKContext(ctx), msg) return sdk.WrapServiceResult(ctx, res, err) case *types.MsgSellData: res, err := msgServer.SellData(sdk.WrapSDKContext(ctx), msg) diff --git a/x/datapool/keeper/msg_server_pool.go b/x/datapool/keeper/msg_server_pool.go index ef72a003..fb7abe9f 100644 --- a/x/datapool/keeper/msg_server_pool.go +++ b/x/datapool/keeper/msg_server_pool.go @@ -74,7 +74,7 @@ func (m msgServer) SellData(goCtx context.Context, msg *types.MsgSellData) (*typ }, nil } -func (m msgServer) BuyDataAccessNFT(goCtx context.Context, msg *types.MsgBuyDataAccessNFT) (*types.MsgBuyDataAccessNFTResponse, error) { +func (m msgServer) BuyDataPass(goCtx context.Context, msg *types.MsgBuyDataPass) (*types.MsgBuyDataPassResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) buyer, err := sdk.AccAddressFromBech32(msg.Buyer) @@ -82,12 +82,12 @@ func (m msgServer) BuyDataAccessNFT(goCtx context.Context, msg *types.MsgBuyData return nil, err } - err = m.Keeper.BuyDataAccessNFT(ctx, buyer, msg.PoolId, msg.Round, *msg.Payment) + err = m.Keeper.BuyDataPass(ctx, buyer, msg.PoolId, msg.Round, *msg.Payment) if err != nil { return nil, err } - return &types.MsgBuyDataAccessNFTResponse{PoolId: msg.PoolId, Round: msg.Round}, nil + return &types.MsgBuyDataPassResponse{PoolId: msg.PoolId, Round: msg.Round}, nil } func (m msgServer) RedeemDataAccessNFT(goCtx context.Context, msg *types.MsgRedeemDataAccessNFT) (*types.MsgRedeemDataAccessNFTResponse, error) { diff --git a/x/datapool/keeper/pool.go b/x/datapool/keeper/pool.go index 9d82ccff..78e37755 100644 --- a/x/datapool/keeper/pool.go +++ b/x/datapool/keeper/pool.go @@ -485,7 +485,7 @@ func (k Keeper) GetDataValidationCertificate(ctx sdk.Context, poolID, round uint return cert, nil } -func (k Keeper) BuyDataAccessNFT(ctx sdk.Context, buyer sdk.AccAddress, poolID, round uint64, payment sdk.Coin) error { +func (k Keeper) BuyDataPass(ctx sdk.Context, buyer sdk.AccAddress, poolID, round uint64, payment sdk.Coin) error { pool, err := k.GetPool(ctx, poolID) if err != nil { return sdkerrors.Wrapf(types.ErrBuyDataPass, err.Error()) diff --git a/x/datapool/keeper/pool_test.go b/x/datapool/keeper/pool_test.go index 145aafe1..09afdded 100644 --- a/x/datapool/keeper/pool_test.go +++ b/x/datapool/keeper/pool_test.go @@ -293,7 +293,7 @@ func (suite poolTestSuite) TestBuyDataAccessNFTPending() { err := suite.BankKeeper.AddCoins(suite.Ctx, buyerAddr, fundForBuyer) suite.Require().NoError(err) - err = suite.DataPoolKeeper.BuyDataAccessNFT(suite.Ctx, buyerAddr, poolID, 1, NFTPrice) + err = suite.DataPoolKeeper.BuyDataPass(suite.Ctx, buyerAddr, poolID, 1, NFTPrice) suite.Require().NoError(err) pool, err := suite.DataPoolKeeper.GetPool(suite.Ctx, poolID) @@ -312,7 +312,7 @@ func (suite poolTestSuite) TestBuyDataAccessNFTPoolNotFound() { suite.Require().NoError(err) // buy NFT other data pool - err = suite.DataPoolKeeper.BuyDataAccessNFT(suite.Ctx, buyerAddr, 2, 1, NFTPrice) + err = suite.DataPoolKeeper.BuyDataPass(suite.Ctx, buyerAddr, 2, 1, NFTPrice) suite.Require().Error(err, types.ErrPoolNotFound) } @@ -324,11 +324,11 @@ func (suite poolTestSuite) TestBuyDataAccessNFTSoldOut() { suite.Require().NoError(err) // buy 1 NFT - err = suite.DataPoolKeeper.BuyDataAccessNFT(suite.Ctx, buyerAddr, poolID, 1, NFTPrice) + err = suite.DataPoolKeeper.BuyDataPass(suite.Ctx, buyerAddr, poolID, 1, NFTPrice) suite.Require().NoError(err) // buy 1 NFT more - err = suite.DataPoolKeeper.BuyDataAccessNFT(suite.Ctx, buyerAddr, poolID, 1, NFTPrice) + err = suite.DataPoolKeeper.BuyDataPass(suite.Ctx, buyerAddr, poolID, 1, NFTPrice) suite.Require().Error(err, types.ErrNFTAllIssued) } @@ -340,7 +340,7 @@ func (suite poolTestSuite) TestBuyDataAccessNFTRoundNotMatched() { suite.Require().NoError(err) // different round - err = suite.DataPoolKeeper.BuyDataAccessNFT(suite.Ctx, buyerAddr, poolID, 2, NFTPrice) + err = suite.DataPoolKeeper.BuyDataPass(suite.Ctx, buyerAddr, poolID, 2, NFTPrice) suite.Require().Error(err, types.ErrRoundNotMatched) } @@ -352,7 +352,7 @@ func (suite poolTestSuite) TestBuyDataAccessNFTPaymentNotMatched() { suite.Require().NoError(err) // buy NFT with different payment - err = suite.DataPoolKeeper.BuyDataAccessNFT(suite.Ctx, buyerAddr, poolID, 1, sdk.NewCoin(assets.MicroMedDenom, sdk.NewInt(5000000))) + err = suite.DataPoolKeeper.BuyDataPass(suite.Ctx, buyerAddr, poolID, 1, sdk.NewCoin(assets.MicroMedDenom, sdk.NewInt(5000000))) suite.Require().Error(err, types.ErrPaymentNotMatched) } @@ -364,7 +364,7 @@ func (suite poolTestSuite) TestBuyDataAccessNFTInsufficientBalance() { err := suite.BankKeeper.AddCoins(suite.Ctx, buyerAddr, sdk.NewCoins(sdk.NewCoin(assets.MicroMedDenom, sdk.NewInt(1000)))) suite.Require().NoError(err) - err = suite.DataPoolKeeper.BuyDataAccessNFT(suite.Ctx, buyerAddr, poolID, 1, NFTPrice) + err = suite.DataPoolKeeper.BuyDataPass(suite.Ctx, buyerAddr, poolID, 1, NFTPrice) suite.Require().Error(err, sdkerrors.ErrInsufficientFunds) } diff --git a/x/datapool/types/codec.go b/x/datapool/types/codec.go index 96fa6a2d..b00b28db 100644 --- a/x/datapool/types/codec.go +++ b/x/datapool/types/codec.go @@ -14,7 +14,7 @@ func RegisterCodec(cdc *codec.LegacyAmino) { cdc.RegisterConcrete(&MsgUpdateDataValidator{}, "datapool/UpdateDataValidator", nil) cdc.RegisterConcrete(&MsgCreatePool{}, "datapool/CreatePool", nil) cdc.RegisterConcrete(&MsgSellData{}, "datapool/SellData", nil) - cdc.RegisterConcrete(&MsgBuyDataAccessNFT{}, "datapool/BuyDataAccessNFT", nil) + cdc.RegisterConcrete(&MsgBuyDataPass{}, "datapool/BuyDataPass", nil) cdc.RegisterConcrete(&MsgRedeemDataAccessNFT{}, "datapool/RedeemDataAccessNFT", nil) } @@ -24,7 +24,7 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { &MsgUpdateDataValidator{}, &MsgCreatePool{}, &MsgSellData{}, - &MsgBuyDataAccessNFT{}, + &MsgBuyDataPass{}, &MsgRedeemDataAccessNFT{}, ) msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) diff --git a/x/datapool/types/message_pool.go b/x/datapool/types/message_pool.go index 8cdf8383..cedb5289 100644 --- a/x/datapool/types/message_pool.go +++ b/x/datapool/types/message_pool.go @@ -213,17 +213,17 @@ func (msg *MsgSellData) GetSigners() []sdk.AccAddress { return []sdk.AccAddress{seller} } -var _ sdk.Msg = &MsgBuyDataAccessNFT{} +var _ sdk.Msg = &MsgBuyDataPass{} -func (msg *MsgBuyDataAccessNFT) Route() string { +func (msg *MsgBuyDataPass) Route() string { return RouterKey } -func (msg *MsgBuyDataAccessNFT) Type() string { - return "BuyDataAccessNFT" +func (msg *MsgBuyDataPass) Type() string { + return "BuyDataPass" } -func (msg *MsgBuyDataAccessNFT) ValidateBasic() error { +func (msg *MsgBuyDataPass) ValidateBasic() error { _, err := sdk.AccAddressFromBech32(msg.Buyer) if err != nil { return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid buyer address (%s)", err) @@ -236,12 +236,12 @@ func (msg *MsgBuyDataAccessNFT) ValidateBasic() error { return nil } -func (msg *MsgBuyDataAccessNFT) GetSignBytes() []byte { +func (msg *MsgBuyDataPass) GetSignBytes() []byte { bz := ModuleCdc.MustMarshalJSON(msg) return sdk.MustSortJSON(bz) } -func (msg *MsgBuyDataAccessNFT) GetSigners() []sdk.AccAddress { +func (msg *MsgBuyDataPass) GetSigners() []sdk.AccAddress { buyer, err := sdk.AccAddressFromBech32(msg.Buyer) if err != nil { panic(err) diff --git a/x/datapool/types/tx.pb.go b/x/datapool/types/tx.pb.go index 4a8b36e7..7d891695 100644 --- a/x/datapool/types/tx.pb.go +++ b/x/datapool/types/tx.pb.go @@ -414,26 +414,26 @@ func (m *MsgSellDataResponse) GetAccumPoolShareToken() *types.Coin { return nil } -// MsgBuyDataAccessNFT defines the Msg/BuyDataAccessNFT request type. -type MsgBuyDataAccessNFT struct { +// MsgBuyDataPass defines the Msg/BuyDataPass request type. +type MsgBuyDataPass struct { PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"` Round uint64 `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"` Payment *types.Coin `protobuf:"bytes,3,opt,name=payment,proto3" json:"payment,omitempty"` Buyer string `protobuf:"bytes,4,opt,name=buyer,proto3" json:"buyer,omitempty"` } -func (m *MsgBuyDataAccessNFT) Reset() { *m = MsgBuyDataAccessNFT{} } -func (m *MsgBuyDataAccessNFT) String() string { return proto.CompactTextString(m) } -func (*MsgBuyDataAccessNFT) ProtoMessage() {} -func (*MsgBuyDataAccessNFT) Descriptor() ([]byte, []int) { +func (m *MsgBuyDataPass) Reset() { *m = MsgBuyDataPass{} } +func (m *MsgBuyDataPass) String() string { return proto.CompactTextString(m) } +func (*MsgBuyDataPass) ProtoMessage() {} +func (*MsgBuyDataPass) Descriptor() ([]byte, []int) { return fileDescriptor_eb3d400cb0e531d6, []int{8} } -func (m *MsgBuyDataAccessNFT) XXX_Unmarshal(b []byte) error { +func (m *MsgBuyDataPass) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgBuyDataAccessNFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgBuyDataPass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgBuyDataAccessNFT.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgBuyDataPass.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -443,65 +443,65 @@ func (m *MsgBuyDataAccessNFT) XXX_Marshal(b []byte, deterministic bool) ([]byte, return b[:n], nil } } -func (m *MsgBuyDataAccessNFT) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgBuyDataAccessNFT.Merge(m, src) +func (m *MsgBuyDataPass) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgBuyDataPass.Merge(m, src) } -func (m *MsgBuyDataAccessNFT) XXX_Size() int { +func (m *MsgBuyDataPass) XXX_Size() int { return m.Size() } -func (m *MsgBuyDataAccessNFT) XXX_DiscardUnknown() { - xxx_messageInfo_MsgBuyDataAccessNFT.DiscardUnknown(m) +func (m *MsgBuyDataPass) XXX_DiscardUnknown() { + xxx_messageInfo_MsgBuyDataPass.DiscardUnknown(m) } -var xxx_messageInfo_MsgBuyDataAccessNFT proto.InternalMessageInfo +var xxx_messageInfo_MsgBuyDataPass proto.InternalMessageInfo -func (m *MsgBuyDataAccessNFT) GetPoolId() uint64 { +func (m *MsgBuyDataPass) GetPoolId() uint64 { if m != nil { return m.PoolId } return 0 } -func (m *MsgBuyDataAccessNFT) GetRound() uint64 { +func (m *MsgBuyDataPass) GetRound() uint64 { if m != nil { return m.Round } return 0 } -func (m *MsgBuyDataAccessNFT) GetPayment() *types.Coin { +func (m *MsgBuyDataPass) GetPayment() *types.Coin { if m != nil { return m.Payment } return nil } -func (m *MsgBuyDataAccessNFT) GetBuyer() string { +func (m *MsgBuyDataPass) GetBuyer() string { if m != nil { return m.Buyer } return "" } -// MsgBuyDataAccessNFTResponse defines the Msg/BuyDataAccessNFT response type. -type MsgBuyDataAccessNFTResponse struct { +// MsgBuyDataPassResponse defines the Msg/BuyDataAccessNFT response type. +type MsgBuyDataPassResponse struct { PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"` Round uint64 `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"` NftId uint64 `protobuf:"varint,3,opt,name=nft_id,json=nftId,proto3" json:"nft_id,omitempty"` } -func (m *MsgBuyDataAccessNFTResponse) Reset() { *m = MsgBuyDataAccessNFTResponse{} } -func (m *MsgBuyDataAccessNFTResponse) String() string { return proto.CompactTextString(m) } -func (*MsgBuyDataAccessNFTResponse) ProtoMessage() {} -func (*MsgBuyDataAccessNFTResponse) Descriptor() ([]byte, []int) { +func (m *MsgBuyDataPassResponse) Reset() { *m = MsgBuyDataPassResponse{} } +func (m *MsgBuyDataPassResponse) String() string { return proto.CompactTextString(m) } +func (*MsgBuyDataPassResponse) ProtoMessage() {} +func (*MsgBuyDataPassResponse) Descriptor() ([]byte, []int) { return fileDescriptor_eb3d400cb0e531d6, []int{9} } -func (m *MsgBuyDataAccessNFTResponse) XXX_Unmarshal(b []byte) error { +func (m *MsgBuyDataPassResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } -func (m *MsgBuyDataAccessNFTResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { +func (m *MsgBuyDataPassResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { - return xxx_messageInfo_MsgBuyDataAccessNFTResponse.Marshal(b, m, deterministic) + return xxx_messageInfo_MsgBuyDataPassResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) @@ -511,33 +511,33 @@ func (m *MsgBuyDataAccessNFTResponse) XXX_Marshal(b []byte, deterministic bool) return b[:n], nil } } -func (m *MsgBuyDataAccessNFTResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_MsgBuyDataAccessNFTResponse.Merge(m, src) +func (m *MsgBuyDataPassResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_MsgBuyDataPassResponse.Merge(m, src) } -func (m *MsgBuyDataAccessNFTResponse) XXX_Size() int { +func (m *MsgBuyDataPassResponse) XXX_Size() int { return m.Size() } -func (m *MsgBuyDataAccessNFTResponse) XXX_DiscardUnknown() { - xxx_messageInfo_MsgBuyDataAccessNFTResponse.DiscardUnknown(m) +func (m *MsgBuyDataPassResponse) XXX_DiscardUnknown() { + xxx_messageInfo_MsgBuyDataPassResponse.DiscardUnknown(m) } -var xxx_messageInfo_MsgBuyDataAccessNFTResponse proto.InternalMessageInfo +var xxx_messageInfo_MsgBuyDataPassResponse proto.InternalMessageInfo -func (m *MsgBuyDataAccessNFTResponse) GetPoolId() uint64 { +func (m *MsgBuyDataPassResponse) GetPoolId() uint64 { if m != nil { return m.PoolId } return 0 } -func (m *MsgBuyDataAccessNFTResponse) GetRound() uint64 { +func (m *MsgBuyDataPassResponse) GetRound() uint64 { if m != nil { return m.Round } return 0 } -func (m *MsgBuyDataAccessNFTResponse) GetNftId() uint64 { +func (m *MsgBuyDataPassResponse) GetNftId() uint64 { if m != nil { return m.NftId } @@ -667,8 +667,8 @@ func init() { proto.RegisterType((*MsgCreatePoolResponse)(nil), "panacea.datapool.v2.MsgCreatePoolResponse") proto.RegisterType((*MsgSellData)(nil), "panacea.datapool.v2.MsgSellData") proto.RegisterType((*MsgSellDataResponse)(nil), "panacea.datapool.v2.MsgSellDataResponse") - proto.RegisterType((*MsgBuyDataAccessNFT)(nil), "panacea.datapool.v2.MsgBuyDataAccessNFT") - proto.RegisterType((*MsgBuyDataAccessNFTResponse)(nil), "panacea.datapool.v2.MsgBuyDataAccessNFTResponse") + proto.RegisterType((*MsgBuyDataPass)(nil), "panacea.datapool.v2.MsgBuyDataPass") + proto.RegisterType((*MsgBuyDataPassResponse)(nil), "panacea.datapool.v2.MsgBuyDataPassResponse") proto.RegisterType((*MsgRedeemDataAccessNFT)(nil), "panacea.datapool.v2.MsgRedeemDataAccessNFT") proto.RegisterType((*MsgRedeemDataAccessNFTResponse)(nil), "panacea.datapool.v2.MsgRedeemDataAccessNFTResponse") } @@ -676,54 +676,55 @@ func init() { func init() { proto.RegisterFile("panacea/datapool/v2/tx.proto", fileDescriptor_eb3d400cb0e531d6) } var fileDescriptor_eb3d400cb0e531d6 = []byte{ - // 748 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0xdd, 0x4e, 0x3b, 0x45, - 0x14, 0xa7, 0x52, 0x5a, 0x3c, 0x0d, 0x42, 0xb6, 0x80, 0x75, 0x35, 0x6b, 0xb3, 0x89, 0x86, 0x48, - 0xd8, 0x95, 0x12, 0xef, 0x15, 0x88, 0x09, 0x31, 0x25, 0x64, 0x41, 0x2e, 0xd4, 0xa4, 0x99, 0xce, - 0x9e, 0x2e, 0x13, 0xb6, 0x3b, 0x9b, 0x9d, 0x69, 0xa5, 0x26, 0x3e, 0x83, 0x3e, 0x80, 0x0f, 0xe4, - 0x25, 0x97, 0x5e, 0x1a, 0x78, 0x11, 0x33, 0xd3, 0xdd, 0xa1, 0x95, 0x5d, 0x10, 0xff, 0x77, 0x3d, - 0x3d, 0xbf, 0x8f, 0x73, 0xe6, 0x9c, 0x99, 0x85, 0x4f, 0x52, 0x92, 0x10, 0x8a, 0xc4, 0x0f, 0x89, - 0x24, 0x29, 0xe7, 0xb1, 0x3f, 0xed, 0xf9, 0xf2, 0xce, 0x4b, 0x33, 0x2e, 0xb9, 0xd5, 0xce, 0xb3, - 0x5e, 0x91, 0xf5, 0xa6, 0x3d, 0x7b, 0x3b, 0xe2, 0x11, 0xd7, 0x79, 0x5f, 0xfd, 0x9a, 0x43, 0x6d, - 0x87, 0x72, 0x31, 0xe6, 0xc2, 0x1f, 0x12, 0x81, 0xfe, 0xf4, 0x70, 0x88, 0x92, 0x1c, 0xfa, 0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0x47, 0x67, 0xe5, 0xaf, 0x47, 0x67, 0xe5, 0x87, 0xc3, 0x88, 0xc9, 0x9b, - 0xc9, 0xd0, 0xa3, 0x7c, 0xec, 0x8f, 0x31, 0x64, 0xc3, 0x98, 0x53, 0x3f, 0x77, 0x38, 0xa0, 0x3c, - 0x43, 0xff, 0xee, 0xe9, 0x83, 0x2c, 0x67, 0x29, 0x8a, 0x61, 0x43, 0x7f, 0x8f, 0x8f, 0xfe, 0x09, - 0x00, 0x00, 0xff, 0xff, 0x7c, 0xc2, 0xa5, 0x03, 0x3a, 0x08, 0x00, 0x00, + // 756 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0x5f, 0x4f, 0xdb, 0x48, + 0x10, 0x27, 0x47, 0x48, 0xb8, 0x89, 0x80, 0x93, 0x03, 0x5c, 0xce, 0x3a, 0xf9, 0x22, 0x9f, 0xee, + 0x84, 0x0e, 0x61, 0x8b, 0xa0, 0x7b, 0xbf, 0x03, 0x54, 0x09, 0x55, 0x41, 0xc8, 0x50, 0x1e, 0xda, + 0xaa, 0xd1, 0xc6, 0x9e, 0x98, 0x15, 0x8e, 0xd7, 0xf2, 0x6e, 0x52, 0x52, 0xa9, 0x5f, 0xa0, 0x52, + 0xa5, 0x7e, 0xac, 0x3e, 0xf2, 0xd8, 0xc7, 0x0a, 0xbe, 0x48, 0xb5, 0x1b, 0x7b, 0x49, 0x54, 0x1b, + 0x4a, 0xd5, 0xb7, 0x4c, 0xe6, 0xf7, 0x67, 0x66, 0x67, 0x76, 0x0d, 0xbf, 0x27, 0x24, 0x26, 0x3e, + 0x12, 0x37, 0x20, 0x82, 0x24, 0x8c, 0x45, 0xee, 0xb8, 0xe3, 0x8a, 0x2b, 0x27, 0x49, 0x99, 0x60, + 0x46, 0x33, 0xcb, 0x3a, 0x79, 0xd6, 0x19, 0x77, 0xcc, 0xf5, 0x90, 0x85, 0x4c,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, 0xa7, 0xfb, 0x15, 0xb8, 0x7c, 0x1e, 0xf7, 0xac, 0xf6, 0xfe, 0xd3, 0x8f, 0x37, 0x56, 0xe5, + 0xfa, 0xc6, 0xaa, 0x7c, 0xbe, 0xb1, 0x2a, 0x1f, 0x6e, 0xad, 0x85, 0xeb, 0x5b, 0x6b, 0xe1, 0xd3, + 0xad, 0xb5, 0xf0, 0x7c, 0x37, 0xa4, 0xe2, 0x62, 0xd4, 0x77, 0x7c, 0x36, 0x74, 0x87, 0x18, 0xd0, + 0x7e, 0xc4, 0x7c, 0x37, 0x73, 0xd8, 0xf1, 0x59, 0x8a, 0xee, 0xd5, 0xdd, 0x77, 0x57, 0x4c, 0x12, + 0xe4, 0xfd, 0x9a, 0xfa, 0xec, 0xee, 0x7d, 0x09, 0x00, 0x00, 0xff, 0xff, 0xd6, 0xdf, 0xa3, 0xb8, + 0x21, 0x08, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -746,8 +747,8 @@ type MsgClient interface { CreatePool(ctx context.Context, in *MsgCreatePool, opts ...grpc.CallOption) (*MsgCreatePoolResponse, error) // SellData defines a method for selling data SellData(ctx context.Context, in *MsgSellData, opts ...grpc.CallOption) (*MsgSellDataResponse, error) - // BuyDataAccessNFT defines a method for buying data access NFT - BuyDataAccessNFT(ctx context.Context, in *MsgBuyDataAccessNFT, opts ...grpc.CallOption) (*MsgBuyDataAccessNFTResponse, error) + // BuyDataPass defines a method for buying data access NFT + BuyDataPass(ctx context.Context, in *MsgBuyDataPass, opts ...grpc.CallOption) (*MsgBuyDataPassResponse, error) // RedeemDataAccessNFT defines a method for redeeming data access NFT to get data RedeemDataAccessNFT(ctx context.Context, in *MsgRedeemDataAccessNFT, opts ...grpc.CallOption) (*MsgRedeemDataAccessNFTResponse, error) } @@ -796,9 +797,9 @@ func (c *msgClient) SellData(ctx context.Context, in *MsgSellData, opts ...grpc. return out, nil } -func (c *msgClient) BuyDataAccessNFT(ctx context.Context, in *MsgBuyDataAccessNFT, opts ...grpc.CallOption) (*MsgBuyDataAccessNFTResponse, error) { - out := new(MsgBuyDataAccessNFTResponse) - err := c.cc.Invoke(ctx, "/panacea.datapool.v2.Msg/BuyDataAccessNFT", in, out, opts...) +func (c *msgClient) BuyDataPass(ctx context.Context, in *MsgBuyDataPass, opts ...grpc.CallOption) (*MsgBuyDataPassResponse, error) { + out := new(MsgBuyDataPassResponse) + err := c.cc.Invoke(ctx, "/panacea.datapool.v2.Msg/BuyDataPass", in, out, opts...) if err != nil { return nil, err } @@ -824,8 +825,8 @@ type MsgServer interface { CreatePool(context.Context, *MsgCreatePool) (*MsgCreatePoolResponse, error) // SellData defines a method for selling data SellData(context.Context, *MsgSellData) (*MsgSellDataResponse, error) - // BuyDataAccessNFT defines a method for buying data access NFT - BuyDataAccessNFT(context.Context, *MsgBuyDataAccessNFT) (*MsgBuyDataAccessNFTResponse, error) + // BuyDataPass defines a method for buying data access NFT + BuyDataPass(context.Context, *MsgBuyDataPass) (*MsgBuyDataPassResponse, error) // RedeemDataAccessNFT defines a method for redeeming data access NFT to get data RedeemDataAccessNFT(context.Context, *MsgRedeemDataAccessNFT) (*MsgRedeemDataAccessNFTResponse, error) } @@ -846,8 +847,8 @@ func (*UnimplementedMsgServer) CreatePool(ctx context.Context, req *MsgCreatePoo func (*UnimplementedMsgServer) SellData(ctx context.Context, req *MsgSellData) (*MsgSellDataResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SellData not implemented") } -func (*UnimplementedMsgServer) BuyDataAccessNFT(ctx context.Context, req *MsgBuyDataAccessNFT) (*MsgBuyDataAccessNFTResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method BuyDataAccessNFT not implemented") +func (*UnimplementedMsgServer) BuyDataPass(ctx context.Context, req *MsgBuyDataPass) (*MsgBuyDataPassResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BuyDataPass not implemented") } func (*UnimplementedMsgServer) RedeemDataAccessNFT(ctx context.Context, req *MsgRedeemDataAccessNFT) (*MsgRedeemDataAccessNFTResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RedeemDataAccessNFT not implemented") @@ -929,20 +930,20 @@ func _Msg_SellData_Handler(srv interface{}, ctx context.Context, dec func(interf return interceptor(ctx, in, info, handler) } -func _Msg_BuyDataAccessNFT_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(MsgBuyDataAccessNFT) +func _Msg_BuyDataPass_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(MsgBuyDataPass) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(MsgServer).BuyDataAccessNFT(ctx, in) + return srv.(MsgServer).BuyDataPass(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/panacea.datapool.v2.Msg/BuyDataAccessNFT", + FullMethod: "/panacea.datapool.v2.Msg/BuyDataPass", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(MsgServer).BuyDataAccessNFT(ctx, req.(*MsgBuyDataAccessNFT)) + return srv.(MsgServer).BuyDataPass(ctx, req.(*MsgBuyDataPass)) } return interceptor(ctx, in, info, handler) } @@ -986,8 +987,8 @@ var _Msg_serviceDesc = grpc.ServiceDesc{ Handler: _Msg_SellData_Handler, }, { - MethodName: "BuyDataAccessNFT", - Handler: _Msg_BuyDataAccessNFT_Handler, + MethodName: "BuyDataPass", + Handler: _Msg_BuyDataPass_Handler, }, { MethodName: "RedeemDataAccessNFT", @@ -1273,7 +1274,7 @@ func (m *MsgSellDataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgBuyDataAccessNFT) Marshal() (dAtA []byte, err error) { +func (m *MsgBuyDataPass) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1283,12 +1284,12 @@ func (m *MsgBuyDataAccessNFT) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgBuyDataAccessNFT) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgBuyDataPass) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgBuyDataAccessNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgBuyDataPass) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1325,7 +1326,7 @@ func (m *MsgBuyDataAccessNFT) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } -func (m *MsgBuyDataAccessNFTResponse) Marshal() (dAtA []byte, err error) { +func (m *MsgBuyDataPassResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) @@ -1335,12 +1336,12 @@ func (m *MsgBuyDataAccessNFTResponse) Marshal() (dAtA []byte, err error) { return dAtA[:n], nil } -func (m *MsgBuyDataAccessNFTResponse) MarshalTo(dAtA []byte) (int, error) { +func (m *MsgBuyDataPassResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } -func (m *MsgBuyDataAccessNFTResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { +func (m *MsgBuyDataPassResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int @@ -1567,7 +1568,7 @@ func (m *MsgSellDataResponse) Size() (n int) { return n } -func (m *MsgBuyDataAccessNFT) Size() (n int) { +func (m *MsgBuyDataPass) Size() (n int) { if m == nil { return 0 } @@ -1590,7 +1591,7 @@ func (m *MsgBuyDataAccessNFT) Size() (n int) { return n } -func (m *MsgBuyDataAccessNFTResponse) Size() (n int) { +func (m *MsgBuyDataPassResponse) Size() (n int) { if m == nil { return 0 } @@ -2378,7 +2379,7 @@ func (m *MsgSellDataResponse) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgBuyDataAccessNFT) Unmarshal(dAtA []byte) error { +func (m *MsgBuyDataPass) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2401,10 +2402,10 @@ func (m *MsgBuyDataAccessNFT) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgBuyDataAccessNFT: wiretype end group for non-group") + return fmt.Errorf("proto: MsgBuyDataPass: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgBuyDataAccessNFT: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgBuyDataPass: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: @@ -2534,7 +2535,7 @@ func (m *MsgBuyDataAccessNFT) Unmarshal(dAtA []byte) error { } return nil } -func (m *MsgBuyDataAccessNFTResponse) Unmarshal(dAtA []byte) error { +func (m *MsgBuyDataPassResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { @@ -2557,10 +2558,10 @@ func (m *MsgBuyDataAccessNFTResponse) Unmarshal(dAtA []byte) error { fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { - return fmt.Errorf("proto: MsgBuyDataAccessNFTResponse: wiretype end group for non-group") + return fmt.Errorf("proto: MsgBuyDataPassResponse: wiretype end group for non-group") } if fieldNum <= 0 { - return fmt.Errorf("proto: MsgBuyDataAccessNFTResponse: illegal tag %d (wire type %d)", fieldNum, wire) + return fmt.Errorf("proto: MsgBuyDataPassResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: