types

package
v0.0.0-...-e0eb0d4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2023 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RouterKey                  = "wasm"
	TypeMsgStoreCode           = "store_code"
	TypeMsgInstantiateContract = "instantiate_contract"
	TypeMsgExecuteContract     = "execute_contract"
	EnforcedMaxContractMsgSize = uint64(20 * 1024) // 10KB
)

wasm message types

Variables

View Source
var (
	ErrInvalidLengthAccount        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAccount          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAccount = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthWasmquery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowWasmquery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupWasmquery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthWasmtx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowWasmtx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupWasmtx = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type EthAccount

type EthAccount struct {
	*types.BaseAccount ``     /* 136-byte string literal not displayed */
	CodeHash           []byte `protobuf:"bytes,2,opt,name=code_hash,json=codeHash,proto3" json:"code_hash,omitempty" yaml:"code_hash"`
}

EthAccount implements the authtypes.AccountI interface and embeds an authtypes.BaseAccount type. It is compatible with the auth AccountKeeper.

func (*EthAccount) Descriptor

func (*EthAccount) Descriptor() ([]byte, []int)

func (*EthAccount) Marshal

func (m *EthAccount) Marshal() (dAtA []byte, err error)

func (*EthAccount) MarshalTo

func (m *EthAccount) MarshalTo(dAtA []byte) (int, error)

func (*EthAccount) MarshalToSizedBuffer

func (m *EthAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EthAccount) ProtoMessage

func (*EthAccount) ProtoMessage()

func (*EthAccount) Reset

func (m *EthAccount) Reset()

func (*EthAccount) Size

func (m *EthAccount) Size() (n int)

func (*EthAccount) Unmarshal

func (m *EthAccount) Unmarshal(dAtA []byte) error

func (*EthAccount) XXX_DiscardUnknown

func (m *EthAccount) XXX_DiscardUnknown()

func (*EthAccount) XXX_Marshal

func (m *EthAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EthAccount) XXX_Merge

func (m *EthAccount) XXX_Merge(src proto.Message)

func (*EthAccount) XXX_Size

func (m *EthAccount) XXX_Size() int

func (*EthAccount) XXX_Unmarshal

func (m *EthAccount) XXX_Unmarshal(b []byte) error

type MsgExecuteContract

type MsgExecuteContract struct {
	// Sender is the that actor that signed the messages
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
	// Contract is the address of the smart contract
	Contract string `protobuf:"bytes,2,opt,name=contract,proto3" json:"contract,omitempty" yaml:"contract"`
	// ExecuteMsg json encoded message to be passed to the contract
	ExecuteMsg encoding_json.RawMessage `` /* 144-byte string literal not displayed */
	// Coins that are transferred to the contract on execution
	Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,5,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins" yaml:"coins"`
	// sender's prefix, e.g. "terra", set accordingly by chain when sending msg
	// tag 1024 has bit 11 as 1 to indicate it's not a critical field
	SenderPrefix string `protobuf:"bytes,1024,opt,name=sender_prefix,json=senderPrefix,proto3" json:"sender_prefix,omitempty" yaml:"sender_prefix"`
}

MsgExecuteContract represents a message to submits the given message data to a smart contract.

func NewMsgExecuteContract

func NewMsgExecuteContract(sender sdk.AccAddress, contract sdk.AccAddress, execMsg []byte, coins sdk.Coins) *MsgExecuteContract

NewMsgExecuteContract creates a NewMsgExecuteContract instance

func (*MsgExecuteContract) Descriptor

func (*MsgExecuteContract) Descriptor() ([]byte, []int)

func (MsgExecuteContract) GetSignBytes

func (msg MsgExecuteContract) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (MsgExecuteContract) GetSigners

func (msg MsgExecuteContract) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgExecuteContract) Marshal

func (m *MsgExecuteContract) Marshal() (dAtA []byte, err error)

func (*MsgExecuteContract) MarshalTo

func (m *MsgExecuteContract) MarshalTo(dAtA []byte) (int, error)

func (*MsgExecuteContract) MarshalToSizedBuffer

func (m *MsgExecuteContract) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgExecuteContract) ProtoMessage

func (*MsgExecuteContract) ProtoMessage()

func (*MsgExecuteContract) Reset

func (m *MsgExecuteContract) Reset()

func (MsgExecuteContract) Route

func (msg MsgExecuteContract) Route() string

Route implements sdk.Msg

func (*MsgExecuteContract) Size

func (m *MsgExecuteContract) Size() (n int)

func (*MsgExecuteContract) String

func (m *MsgExecuteContract) String() string

func (MsgExecuteContract) Type

func (msg MsgExecuteContract) Type() string

Type implements sdk.Msg

func (*MsgExecuteContract) Unmarshal

func (m *MsgExecuteContract) Unmarshal(dAtA []byte) error

func (MsgExecuteContract) ValidateBasic

func (msg MsgExecuteContract) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgExecuteContract) XXX_DiscardUnknown

func (m *MsgExecuteContract) XXX_DiscardUnknown()

func (*MsgExecuteContract) XXX_Marshal

func (m *MsgExecuteContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgExecuteContract) XXX_Merge

func (m *MsgExecuteContract) XXX_Merge(src proto.Message)

func (*MsgExecuteContract) XXX_Size

func (m *MsgExecuteContract) XXX_Size() int

func (*MsgExecuteContract) XXX_Unmarshal

func (m *MsgExecuteContract) XXX_Unmarshal(b []byte) error

type MsgExecuteContractResponse

type MsgExecuteContractResponse struct {
	// Data contains base64-encoded bytes to returned from the contract
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty" yaml:"data"`
}

MsgExecuteContractResponse defines the Msg/ExecuteContract response type.

func (*MsgExecuteContractResponse) Descriptor

func (*MsgExecuteContractResponse) Descriptor() ([]byte, []int)

func (*MsgExecuteContractResponse) GetData

func (m *MsgExecuteContractResponse) GetData() []byte

func (*MsgExecuteContractResponse) Marshal

func (m *MsgExecuteContractResponse) Marshal() (dAtA []byte, err error)

func (*MsgExecuteContractResponse) MarshalTo

func (m *MsgExecuteContractResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgExecuteContractResponse) MarshalToSizedBuffer

func (m *MsgExecuteContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgExecuteContractResponse) ProtoMessage

func (*MsgExecuteContractResponse) ProtoMessage()

func (*MsgExecuteContractResponse) Reset

func (m *MsgExecuteContractResponse) Reset()

func (*MsgExecuteContractResponse) Size

func (m *MsgExecuteContractResponse) Size() (n int)

func (*MsgExecuteContractResponse) String

func (m *MsgExecuteContractResponse) String() string

func (*MsgExecuteContractResponse) Unmarshal

func (m *MsgExecuteContractResponse) Unmarshal(dAtA []byte) error

func (*MsgExecuteContractResponse) XXX_DiscardUnknown

func (m *MsgExecuteContractResponse) XXX_DiscardUnknown()

func (*MsgExecuteContractResponse) XXX_Marshal

func (m *MsgExecuteContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgExecuteContractResponse) XXX_Merge

func (m *MsgExecuteContractResponse) XXX_Merge(src proto.Message)

func (*MsgExecuteContractResponse) XXX_Size

func (m *MsgExecuteContractResponse) XXX_Size() int

func (*MsgExecuteContractResponse) XXX_Unmarshal

func (m *MsgExecuteContractResponse) XXX_Unmarshal(b []byte) error

type MsgInstantiateContract

type MsgInstantiateContract struct {
	// Sender is an sender address
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
	// Admin is an optional admin address who can migrate the contract
	Admin string `protobuf:"bytes,2,opt,name=admin,proto3" json:"admin,omitempty" yaml:"admin"`
	// CodeID is the reference to the stored WASM code
	CodeID uint64 `protobuf:"varint,3,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty" yaml:"code_id"`
	// InitMsg json encoded message to be passed to the contract on instantiation
	InitMsg encoding_json.RawMessage `` /* 132-byte string literal not displayed */
	// InitCoins that are transferred to the contract on execution
	InitCoins github_com_cosmos_cosmos_sdk_types.Coins `` /* 150-byte string literal not displayed */
	// sender's prefix, e.g. "terra", set accordingly by chain when sending msg
	// tag 1024 has bit 11 as 1 to indicate it's not a critical field
	SenderPrefix string `protobuf:"bytes,1024,opt,name=sender_prefix,json=senderPrefix,proto3" json:"sender_prefix,omitempty" yaml:"sender_prefix"`
}

MsgInstantiateContract represents a message to create a new smart contract instance for the given code id.

func NewMsgInstantiateContract

func NewMsgInstantiateContract(sender, admin sdk.AccAddress, codeID uint64, initMsg []byte, initCoins sdk.Coins) *MsgInstantiateContract

NewMsgInstantiateContract creates a MsgInstantiateContract instance

func (*MsgInstantiateContract) Descriptor

func (*MsgInstantiateContract) Descriptor() ([]byte, []int)

func (MsgInstantiateContract) GetSignBytes

func (msg MsgInstantiateContract) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (MsgInstantiateContract) GetSigners

func (msg MsgInstantiateContract) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgInstantiateContract) Marshal

func (m *MsgInstantiateContract) Marshal() (dAtA []byte, err error)

func (*MsgInstantiateContract) MarshalTo

func (m *MsgInstantiateContract) MarshalTo(dAtA []byte) (int, error)

func (*MsgInstantiateContract) MarshalToSizedBuffer

func (m *MsgInstantiateContract) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgInstantiateContract) ProtoMessage

func (*MsgInstantiateContract) ProtoMessage()

func (*MsgInstantiateContract) Reset

func (m *MsgInstantiateContract) Reset()

func (MsgInstantiateContract) Route

func (msg MsgInstantiateContract) Route() string

Route implements sdk.Msg

func (*MsgInstantiateContract) Size

func (m *MsgInstantiateContract) Size() (n int)

func (*MsgInstantiateContract) String

func (m *MsgInstantiateContract) String() string

func (MsgInstantiateContract) Type

func (msg MsgInstantiateContract) Type() string

Type implements sdk.Msg

func (*MsgInstantiateContract) Unmarshal

func (m *MsgInstantiateContract) Unmarshal(dAtA []byte) error

func (MsgInstantiateContract) ValidateBasic

func (msg MsgInstantiateContract) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgInstantiateContract) XXX_DiscardUnknown

func (m *MsgInstantiateContract) XXX_DiscardUnknown()

func (*MsgInstantiateContract) XXX_Marshal

func (m *MsgInstantiateContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgInstantiateContract) XXX_Merge

func (m *MsgInstantiateContract) XXX_Merge(src proto.Message)

func (*MsgInstantiateContract) XXX_Size

func (m *MsgInstantiateContract) XXX_Size() int

func (*MsgInstantiateContract) XXX_Unmarshal

func (m *MsgInstantiateContract) XXX_Unmarshal(b []byte) error

type MsgInstantiateContractResponse

type MsgInstantiateContractResponse struct {
	// ContractAddress is the bech32 address of the new contract instance.
	ContractAddress string `` /* 130-byte string literal not displayed */
	// Data contains base64-encoded bytes to returned from the contract
	Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty" yaml:"data"`
}

MsgInstantiateContractResponse defines the Msg/InstantiateContract response type.

func (*MsgInstantiateContractResponse) Descriptor

func (*MsgInstantiateContractResponse) Descriptor() ([]byte, []int)

func (*MsgInstantiateContractResponse) GetContractAddress

func (m *MsgInstantiateContractResponse) GetContractAddress() string

func (*MsgInstantiateContractResponse) GetData

func (m *MsgInstantiateContractResponse) GetData() []byte

func (*MsgInstantiateContractResponse) Marshal

func (m *MsgInstantiateContractResponse) Marshal() (dAtA []byte, err error)

func (*MsgInstantiateContractResponse) MarshalTo

func (m *MsgInstantiateContractResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgInstantiateContractResponse) MarshalToSizedBuffer

func (m *MsgInstantiateContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgInstantiateContractResponse) ProtoMessage

func (*MsgInstantiateContractResponse) ProtoMessage()

func (*MsgInstantiateContractResponse) Reset

func (m *MsgInstantiateContractResponse) Reset()

func (*MsgInstantiateContractResponse) Size

func (m *MsgInstantiateContractResponse) Size() (n int)

func (*MsgInstantiateContractResponse) String

func (*MsgInstantiateContractResponse) Unmarshal

func (m *MsgInstantiateContractResponse) Unmarshal(dAtA []byte) error

func (*MsgInstantiateContractResponse) XXX_DiscardUnknown

func (m *MsgInstantiateContractResponse) XXX_DiscardUnknown()

func (*MsgInstantiateContractResponse) XXX_Marshal

func (m *MsgInstantiateContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgInstantiateContractResponse) XXX_Merge

func (m *MsgInstantiateContractResponse) XXX_Merge(src proto.Message)

func (*MsgInstantiateContractResponse) XXX_Size

func (m *MsgInstantiateContractResponse) XXX_Size() int

func (*MsgInstantiateContractResponse) XXX_Unmarshal

func (m *MsgInstantiateContractResponse) XXX_Unmarshal(b []byte) error

type MsgStoreCode

type MsgStoreCode struct {
	// Sender is the that actor that signed the messages
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
	// WASMByteCode can be raw or gzip compressed
	WASMByteCode []byte `protobuf:"bytes,2,opt,name=wasm_byte_code,json=wasmByteCode,proto3" json:"wasm_byte_code,omitempty" yaml:"wasm_byte_code"`
	// sender's prefix, e.g. "terra", set accordingly by chain when sending msg
	// tag 1024 has bit 11 as 1 to indicate it's not a critical field
	SenderPrefix string `protobuf:"bytes,1024,opt,name=sender_prefix,json=senderPrefix,proto3" json:"sender_prefix,omitempty" yaml:"sender_prefix"`
}

MsgStoreCode represents a message to submit Wasm code to the system

func NewMsgStoreCode

func NewMsgStoreCode(sender sdk.AccAddress, wasmByteCode []byte) *MsgStoreCode

NewMsgStoreCode creates a MsgStoreCode instance

func (*MsgStoreCode) Descriptor

func (*MsgStoreCode) Descriptor() ([]byte, []int)

func (MsgStoreCode) GetSignBytes

func (msg MsgStoreCode) GetSignBytes() []byte

GetSignBytes Implements Msg

func (MsgStoreCode) GetSigners

func (msg MsgStoreCode) GetSigners() []sdk.AccAddress

GetSigners Implements Msg

func (*MsgStoreCode) Marshal

func (m *MsgStoreCode) Marshal() (dAtA []byte, err error)

func (*MsgStoreCode) MarshalTo

func (m *MsgStoreCode) MarshalTo(dAtA []byte) (int, error)

func (*MsgStoreCode) MarshalToSizedBuffer

func (m *MsgStoreCode) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgStoreCode) ProtoMessage

func (*MsgStoreCode) ProtoMessage()

func (*MsgStoreCode) Reset

func (m *MsgStoreCode) Reset()

func (MsgStoreCode) Route

func (msg MsgStoreCode) Route() string

Route implements sdk.Msg

func (*MsgStoreCode) Size

func (m *MsgStoreCode) Size() (n int)

func (*MsgStoreCode) String

func (m *MsgStoreCode) String() string

func (MsgStoreCode) Type

func (msg MsgStoreCode) Type() string

Type implements sdk.Msg

func (*MsgStoreCode) Unmarshal

func (m *MsgStoreCode) Unmarshal(dAtA []byte) error

func (MsgStoreCode) ValidateBasic

func (msg MsgStoreCode) ValidateBasic() error

ValidateBasic Implements sdk.Msg

func (*MsgStoreCode) XXX_DiscardUnknown

func (m *MsgStoreCode) XXX_DiscardUnknown()

func (*MsgStoreCode) XXX_Marshal

func (m *MsgStoreCode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgStoreCode) XXX_Merge

func (m *MsgStoreCode) XXX_Merge(src proto.Message)

func (*MsgStoreCode) XXX_Size

func (m *MsgStoreCode) XXX_Size() int

func (*MsgStoreCode) XXX_Unmarshal

func (m *MsgStoreCode) XXX_Unmarshal(b []byte) error

type MsgStoreCodeResponse

type MsgStoreCodeResponse struct {
	// CodeID is the reference to the stored WASM code
	CodeID uint64 `protobuf:"varint,1,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty" yaml:"code_id"`
}

MsgStoreCodeResponse defines the Msg/StoreCode response type.

func (*MsgStoreCodeResponse) Descriptor

func (*MsgStoreCodeResponse) Descriptor() ([]byte, []int)

func (*MsgStoreCodeResponse) GetCodeID

func (m *MsgStoreCodeResponse) GetCodeID() uint64

func (*MsgStoreCodeResponse) Marshal

func (m *MsgStoreCodeResponse) Marshal() (dAtA []byte, err error)

func (*MsgStoreCodeResponse) MarshalTo

func (m *MsgStoreCodeResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgStoreCodeResponse) MarshalToSizedBuffer

func (m *MsgStoreCodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgStoreCodeResponse) ProtoMessage

func (*MsgStoreCodeResponse) ProtoMessage()

func (*MsgStoreCodeResponse) Reset

func (m *MsgStoreCodeResponse) Reset()

func (*MsgStoreCodeResponse) Size

func (m *MsgStoreCodeResponse) Size() (n int)

func (*MsgStoreCodeResponse) String

func (m *MsgStoreCodeResponse) String() string

func (*MsgStoreCodeResponse) Unmarshal

func (m *MsgStoreCodeResponse) Unmarshal(dAtA []byte) error

func (*MsgStoreCodeResponse) XXX_DiscardUnknown

func (m *MsgStoreCodeResponse) XXX_DiscardUnknown()

func (*MsgStoreCodeResponse) XXX_Marshal

func (m *MsgStoreCodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgStoreCodeResponse) XXX_Merge

func (m *MsgStoreCodeResponse) XXX_Merge(src proto.Message)

func (*MsgStoreCodeResponse) XXX_Size

func (m *MsgStoreCodeResponse) XXX_Size() int

func (*MsgStoreCodeResponse) XXX_Unmarshal

func (m *MsgStoreCodeResponse) XXX_Unmarshal(b []byte) error

type QueryBalanceRequest

type QueryBalanceRequest struct {
	// address is the address to query balances for.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// denom is the coin denom to query balances for.
	Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
}

QueryBalanceRequest is the request type for the Query/Balance RPC method.

func (*QueryBalanceRequest) Descriptor

func (*QueryBalanceRequest) Descriptor() ([]byte, []int)

func (*QueryBalanceRequest) Marshal

func (m *QueryBalanceRequest) Marshal() (dAtA []byte, err error)

func (*QueryBalanceRequest) MarshalTo

func (m *QueryBalanceRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryBalanceRequest) MarshalToSizedBuffer

func (m *QueryBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryBalanceRequest) ProtoMessage

func (*QueryBalanceRequest) ProtoMessage()

func (*QueryBalanceRequest) Reset

func (m *QueryBalanceRequest) Reset()

func (*QueryBalanceRequest) Size

func (m *QueryBalanceRequest) Size() (n int)

func (*QueryBalanceRequest) String

func (m *QueryBalanceRequest) String() string

func (*QueryBalanceRequest) Unmarshal

func (m *QueryBalanceRequest) Unmarshal(dAtA []byte) error

func (*QueryBalanceRequest) XXX_DiscardUnknown

func (m *QueryBalanceRequest) XXX_DiscardUnknown()

func (*QueryBalanceRequest) XXX_Marshal

func (m *QueryBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryBalanceRequest) XXX_Merge

func (m *QueryBalanceRequest) XXX_Merge(src proto.Message)

func (*QueryBalanceRequest) XXX_Size

func (m *QueryBalanceRequest) XXX_Size() int

func (*QueryBalanceRequest) XXX_Unmarshal

func (m *QueryBalanceRequest) XXX_Unmarshal(b []byte) error

type QueryBalanceResponse

type QueryBalanceResponse struct {
	// balance is the balance of the coin.
	Balance *types.Coin `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"`
}

QueryBalanceResponse is the response type for the Query/Balance RPC method.

func BankBalance

func BankBalance(cc *lens.ChainClient, msgPackage string, in *QueryBalanceRequest) (*QueryBalanceResponse, error)

func (*QueryBalanceResponse) Descriptor

func (*QueryBalanceResponse) Descriptor() ([]byte, []int)

func (*QueryBalanceResponse) GetBalance

func (m *QueryBalanceResponse) GetBalance() *types.Coin

func (*QueryBalanceResponse) Marshal

func (m *QueryBalanceResponse) Marshal() (dAtA []byte, err error)

func (*QueryBalanceResponse) MarshalTo

func (m *QueryBalanceResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryBalanceResponse) MarshalToSizedBuffer

func (m *QueryBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryBalanceResponse) ProtoMessage

func (*QueryBalanceResponse) ProtoMessage()

func (*QueryBalanceResponse) Reset

func (m *QueryBalanceResponse) Reset()

func (*QueryBalanceResponse) Size

func (m *QueryBalanceResponse) Size() (n int)

func (*QueryBalanceResponse) String

func (m *QueryBalanceResponse) String() string

func (*QueryBalanceResponse) Unmarshal

func (m *QueryBalanceResponse) Unmarshal(dAtA []byte) error

func (*QueryBalanceResponse) XXX_DiscardUnknown

func (m *QueryBalanceResponse) XXX_DiscardUnknown()

func (*QueryBalanceResponse) XXX_Marshal

func (m *QueryBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryBalanceResponse) XXX_Merge

func (m *QueryBalanceResponse) XXX_Merge(src proto.Message)

func (*QueryBalanceResponse) XXX_Size

func (m *QueryBalanceResponse) XXX_Size() int

func (*QueryBalanceResponse) XXX_Unmarshal

func (m *QueryBalanceResponse) XXX_Unmarshal(b []byte) error

type QuerySmartContractStateRequest

type QuerySmartContractStateRequest struct {
	// address is the address of the contract
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// QueryData contains the query data passed to the contract
	QueryData RawContractMessage `protobuf:"bytes,2,opt,name=query_data,json=queryData,proto3,casttype=RawContractMessage" json:"query_data,omitempty"`
}

QuerySmartContractStateRequest is the request type for the Query/SmartContractState RPC method

func (*QuerySmartContractStateRequest) Descriptor

func (*QuerySmartContractStateRequest) Descriptor() ([]byte, []int)

func (*QuerySmartContractStateRequest) GetAddress

func (m *QuerySmartContractStateRequest) GetAddress() string

func (*QuerySmartContractStateRequest) GetQueryData

func (*QuerySmartContractStateRequest) Marshal

func (m *QuerySmartContractStateRequest) Marshal() (dAtA []byte, err error)

func (*QuerySmartContractStateRequest) MarshalTo

func (m *QuerySmartContractStateRequest) MarshalTo(dAtA []byte) (int, error)

func (*QuerySmartContractStateRequest) MarshalToSizedBuffer

func (m *QuerySmartContractStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QuerySmartContractStateRequest) ProtoMessage

func (*QuerySmartContractStateRequest) ProtoMessage()

func (*QuerySmartContractStateRequest) Reset

func (m *QuerySmartContractStateRequest) Reset()

func (*QuerySmartContractStateRequest) Size

func (m *QuerySmartContractStateRequest) Size() (n int)

func (*QuerySmartContractStateRequest) String

func (*QuerySmartContractStateRequest) Unmarshal

func (m *QuerySmartContractStateRequest) Unmarshal(dAtA []byte) error

func (*QuerySmartContractStateRequest) XXX_DiscardUnknown

func (m *QuerySmartContractStateRequest) XXX_DiscardUnknown()

func (*QuerySmartContractStateRequest) XXX_Marshal

func (m *QuerySmartContractStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QuerySmartContractStateRequest) XXX_Merge

func (m *QuerySmartContractStateRequest) XXX_Merge(src proto.Message)

func (*QuerySmartContractStateRequest) XXX_Size

func (m *QuerySmartContractStateRequest) XXX_Size() int

func (*QuerySmartContractStateRequest) XXX_Unmarshal

func (m *QuerySmartContractStateRequest) XXX_Unmarshal(b []byte) error

type QuerySmartContractStateResponse

type QuerySmartContractStateResponse struct {
	// Data contains the json data returned from the smart contract
	Data RawContractMessage `protobuf:"bytes,1,opt,name=data,proto3,casttype=RawContractMessage" json:"data,omitempty"`
}

QuerySmartContractStateResponse is the response type for the Query/SmartContractState RPC method

func (*QuerySmartContractStateResponse) Descriptor

func (*QuerySmartContractStateResponse) Descriptor() ([]byte, []int)

func (*QuerySmartContractStateResponse) GetData

func (*QuerySmartContractStateResponse) Marshal

func (m *QuerySmartContractStateResponse) Marshal() (dAtA []byte, err error)

func (*QuerySmartContractStateResponse) MarshalTo

func (m *QuerySmartContractStateResponse) MarshalTo(dAtA []byte) (int, error)

func (*QuerySmartContractStateResponse) MarshalToSizedBuffer

func (m *QuerySmartContractStateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QuerySmartContractStateResponse) ProtoMessage

func (*QuerySmartContractStateResponse) ProtoMessage()

func (*QuerySmartContractStateResponse) Reset

func (*QuerySmartContractStateResponse) Size

func (m *QuerySmartContractStateResponse) Size() (n int)

func (*QuerySmartContractStateResponse) String

func (*QuerySmartContractStateResponse) Unmarshal

func (m *QuerySmartContractStateResponse) Unmarshal(dAtA []byte) error

func (*QuerySmartContractStateResponse) XXX_DiscardUnknown

func (m *QuerySmartContractStateResponse) XXX_DiscardUnknown()

func (*QuerySmartContractStateResponse) XXX_Marshal

func (m *QuerySmartContractStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QuerySmartContractStateResponse) XXX_Merge

func (m *QuerySmartContractStateResponse) XXX_Merge(src proto.Message)

func (*QuerySmartContractStateResponse) XXX_Size

func (m *QuerySmartContractStateResponse) XXX_Size() int

func (*QuerySmartContractStateResponse) XXX_Unmarshal

func (m *QuerySmartContractStateResponse) XXX_Unmarshal(b []byte) error

type RawContractMessage

type RawContractMessage []byte

RawContractMessage defines a json message that is sent or returned by a wasm contract. This type can hold any type of bytes. Until validateBasic is called there should not be any assumptions made that the data is valid syntax or semantic.

func (RawContractMessage) Bytes

func (r RawContractMessage) Bytes() []byte

Bytes returns raw bytes type

func (*RawContractMessage) ValidateBasic

func (r *RawContractMessage) ValidateBasic() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL