wasm

package module
v0.0.0-...-2d5b52c Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RouterKey                  string = "wasm"
	TypeMsgStoreCode           string = "store-code"
	TypeMsgInstantiateContract string = "instantiate"
	TypeMsgExecuteContract     string = "execute"
	TypeMsgMigrateContract     string = "migrate"
	TypeUpdateAdmin            string = "update-contract-admin"
	TypeClearAdmin             string = "clear-contract-admin"
)

message types for the wasm client

View Source
const (
	// ModuleName define the module name
	ModuleName = "wasm"
)

Variables

View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)
View Source
var AccessType_name = map[int32]string{
	0: "ACCESS_TYPE_UNSPECIFIED",
	1: "ACCESS_TYPE_NOBODY",
	2: "ACCESS_TYPE_ONLY_ADDRESS",
	3: "ACCESS_TYPE_EVERYBODY",
}
View Source
var AccessType_value = map[string]int32{
	"ACCESS_TYPE_UNSPECIFIED":  0,
	"ACCESS_TYPE_NOBODY":       1,
	"ACCESS_TYPE_ONLY_ADDRESS": 2,
	"ACCESS_TYPE_EVERYBODY":    3,
}
View Source
var ContractCodeHistoryOperationType_name = map[int32]string{
	0: "CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED",
	1: "CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT",
	2: "CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE",
	3: "CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS",
}
View Source
var ContractCodeHistoryOperationType_value = map[string]int32{
	"CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED": 0,
	"CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT":        1,
	"CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE":     2,
	"CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS":     3,
}
View Source
var (

	// ModuleCdc define the codec for wasm module
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

RegisterInterfaces regisger the implement of the msg interface for InterfaceRegistry

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type AbsoluteTxPosition

type AbsoluteTxPosition struct {
	// BlockHeight is the block the contract was created at
	BlockHeight uint64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	// TxIndex is a monotonic counter within the block (actual transaction index, or gas consumed)
	TxIndex uint64 `protobuf:"varint,2,opt,name=tx_index,json=txIndex,proto3" json:"tx_index,omitempty"`
}

AbsoluteTxPosition is a unique transaction position that allows for global ordering of transactions.

func (*AbsoluteTxPosition) Descriptor

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

func (*AbsoluteTxPosition) Equal

func (this *AbsoluteTxPosition) Equal(that interface{}) bool

func (*AbsoluteTxPosition) Marshal

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

func (*AbsoluteTxPosition) MarshalTo

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

func (*AbsoluteTxPosition) MarshalToSizedBuffer

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

func (*AbsoluteTxPosition) ProtoMessage

func (*AbsoluteTxPosition) ProtoMessage()

func (*AbsoluteTxPosition) Reset

func (m *AbsoluteTxPosition) Reset()

func (*AbsoluteTxPosition) Size

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

func (*AbsoluteTxPosition) String

func (m *AbsoluteTxPosition) String() string

func (*AbsoluteTxPosition) Unmarshal

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

func (*AbsoluteTxPosition) XXX_DiscardUnknown

func (m *AbsoluteTxPosition) XXX_DiscardUnknown()

func (*AbsoluteTxPosition) XXX_Marshal

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

func (*AbsoluteTxPosition) XXX_Merge

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

func (*AbsoluteTxPosition) XXX_Size

func (m *AbsoluteTxPosition) XXX_Size() int

func (*AbsoluteTxPosition) XXX_Unmarshal

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

type AccessConfig

type AccessConfig struct {
	Permission AccessType `` /* 130-byte string literal not displayed */
	Address    string     `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty" yaml:"address"`
}

AccessConfig access control type.

func (*AccessConfig) Descriptor

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

func (*AccessConfig) Equal

func (this *AccessConfig) Equal(that interface{}) bool

func (*AccessConfig) Marshal

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

func (*AccessConfig) MarshalTo

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

func (*AccessConfig) MarshalToSizedBuffer

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

func (*AccessConfig) ProtoMessage

func (*AccessConfig) ProtoMessage()

func (*AccessConfig) Reset

func (m *AccessConfig) Reset()

func (*AccessConfig) Size

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

func (*AccessConfig) String

func (m *AccessConfig) String() string

func (*AccessConfig) Unmarshal

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

func (*AccessConfig) XXX_DiscardUnknown

func (m *AccessConfig) XXX_DiscardUnknown()

func (*AccessConfig) XXX_Marshal

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

func (*AccessConfig) XXX_Merge

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

func (*AccessConfig) XXX_Size

func (m *AccessConfig) XXX_Size() int

func (*AccessConfig) XXX_Unmarshal

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

type AccessType

type AccessType int32

AccessType permission types

const (
	// AccessTypeUnspecified placeholder for empty value
	AccessTypeUnspecified AccessType = 0
	// AccessTypeNobody forbidden
	AccessTypeNobody AccessType = 1
	// AccessTypeOnlyAddress restricted to an address
	AccessTypeOnlyAddress AccessType = 2
	// AccessTypeEverybody unrestricted
	AccessTypeEverybody AccessType = 3
)

func (AccessType) EnumDescriptor

func (AccessType) EnumDescriptor() ([]byte, []int)

type AccessTypeParam

type AccessTypeParam struct {
	Value AccessType `protobuf:"varint,1,opt,name=value,proto3,enum=cosmwasm.wasm.v1beta1.AccessType" json:"value,omitempty" yaml:"value"`
}

AccessTypeParam

func (*AccessTypeParam) Descriptor

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

func (*AccessTypeParam) Equal

func (this *AccessTypeParam) Equal(that interface{}) bool

func (*AccessTypeParam) Marshal

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

func (*AccessTypeParam) MarshalTo

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

func (*AccessTypeParam) MarshalToSizedBuffer

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

func (*AccessTypeParam) ProtoMessage

func (*AccessTypeParam) ProtoMessage()

func (*AccessTypeParam) Reset

func (m *AccessTypeParam) Reset()

func (*AccessTypeParam) Size

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

func (*AccessTypeParam) String

func (m *AccessTypeParam) String() string

func (*AccessTypeParam) Unmarshal

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

func (*AccessTypeParam) XXX_DiscardUnknown

func (m *AccessTypeParam) XXX_DiscardUnknown()

func (*AccessTypeParam) XXX_Marshal

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

func (*AccessTypeParam) XXX_Merge

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

func (*AccessTypeParam) XXX_Size

func (m *AccessTypeParam) XXX_Size() int

func (*AccessTypeParam) XXX_Unmarshal

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

type Args

type Args map[string]interface{}

func NewArgs

func NewArgs() Args

func (Args) MarshallJson

func (ar Args) MarshallJson() []byte

func (Args) Put

func (ar Args) Put(key string, value interface{}) Args

type Client

type Client interface {
	sdk.Module

	Store(request StoreRequest, config sdk.BaseTx) (string, error)
	Instantiate(request InstantiateRequest, config sdk.BaseTx) (string, error)
	Execute(contractAddress string,
		abi *ContractABI,
		SentFunds sdk.Coins,
		config sdk.BaseTx) (sdk.ResultTx, error)
	Migrate(contractAddress string,
		newCodeID string,
		msgByte []byte,
		config sdk.BaseTx) (sdk.ResultTx, error)

	QueryContractInfo(address string) (*ContractInfo, error)
	QueryContract(address string, abi *ContractABI) ([]byte, error)
	ExportContractState(address string) (map[string][]byte, error)
}

Client define a group of interface for wasm module

func NewClient

func NewClient(bc sdk.BaseClient) Client

NewClient return the instance of wasm client

type CodeInfo

type CodeInfo struct {
	// CodeHash is the unique CodeID
	CodeHash []byte `protobuf:"bytes,1,opt,name=code_hash,json=codeHash,proto3" json:"code_hash,omitempty"`
	// Creator address who initially stored the code
	Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
	// Source is a valid absolute HTTPS URI to the contract's source code, optional
	Source string `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"`
	// Builder is a valid docker image name with tag, optional
	Builder string `protobuf:"bytes,4,opt,name=builder,proto3" json:"builder,omitempty"`
	// InstantiateConfig access control to apply on contract creation, optional
	InstantiateConfig AccessConfig `protobuf:"bytes,5,opt,name=instantiate_config,json=instantiateConfig,proto3" json:"instantiate_config"`
}

CodeInfo is data for the uploaded contract WASM code

func (*CodeInfo) Descriptor

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

func (*CodeInfo) Equal

func (this *CodeInfo) Equal(that interface{}) bool

func (*CodeInfo) Marshal

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

func (*CodeInfo) MarshalTo

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

func (*CodeInfo) MarshalToSizedBuffer

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

func (*CodeInfo) ProtoMessage

func (*CodeInfo) ProtoMessage()

func (*CodeInfo) Reset

func (m *CodeInfo) Reset()

func (*CodeInfo) Size

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

func (*CodeInfo) String

func (m *CodeInfo) String() string

func (*CodeInfo) Unmarshal

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

func (*CodeInfo) XXX_DiscardUnknown

func (m *CodeInfo) XXX_DiscardUnknown()

func (*CodeInfo) XXX_Marshal

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

func (*CodeInfo) XXX_Merge

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

func (*CodeInfo) XXX_Size

func (m *CodeInfo) XXX_Size() int

func (*CodeInfo) XXX_Unmarshal

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

type CodeInfoResponse

type CodeInfoResponse struct {
	CodeID   uint64                                               `protobuf:"varint,1,opt,name=code_id,json=codeId,proto3" json:"id"`
	Creator  string                                               `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
	DataHash github_com_tendermint_tendermint_libs_bytes.HexBytes `` /* 147-byte string literal not displayed */
	Source   string                                               `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"`
	Builder  string                                               `protobuf:"bytes,5,opt,name=builder,proto3" json:"builder,omitempty"`
}

CodeInfoResponse contains code meta data from CodeInfo

func (*CodeInfoResponse) Descriptor

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

func (*CodeInfoResponse) Equal

func (this *CodeInfoResponse) Equal(that interface{}) bool

func (*CodeInfoResponse) Marshal

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

func (*CodeInfoResponse) MarshalTo

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

func (*CodeInfoResponse) MarshalToSizedBuffer

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

func (*CodeInfoResponse) ProtoMessage

func (*CodeInfoResponse) ProtoMessage()

func (*CodeInfoResponse) Reset

func (m *CodeInfoResponse) Reset()

func (*CodeInfoResponse) Size

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

func (*CodeInfoResponse) String

func (m *CodeInfoResponse) String() string

func (*CodeInfoResponse) Unmarshal

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

func (*CodeInfoResponse) XXX_DiscardUnknown

func (m *CodeInfoResponse) XXX_DiscardUnknown()

func (*CodeInfoResponse) XXX_Marshal

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

func (*CodeInfoResponse) XXX_Merge

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

func (*CodeInfoResponse) XXX_Size

func (m *CodeInfoResponse) XXX_Size() int

func (*CodeInfoResponse) XXX_Unmarshal

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

type ContractABI

type ContractABI struct {
	Method string
	Args   Args
}

ContractABI define a message for executing contract

func NewContractABI

func NewContractABI() *ContractABI

NewContractABI return the instance of ContractABI

func (ContractABI) Build

func (abi ContractABI) Build() ([]byte, error)

Build marshal the ContractABI to []byte

func (*ContractABI) WithArgs

func (abi *ContractABI) WithArgs(key string, value interface{}) *ContractABI

WithArgs set the field[args] for ContractABI

func (*ContractABI) WithMethod

func (abi *ContractABI) WithMethod(method string) *ContractABI

WithMethod set the field[method] for ContractABI

type ContractCodeHistoryEntry

type ContractCodeHistoryEntry struct {
	Operation ContractCodeHistoryOperationType `` /* 132-byte string literal not displayed */
	// CodeID is the reference to the stored WASM code
	CodeID uint64 `protobuf:"varint,2,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"`
	// Updated Tx position when the operation was executed.
	Updated *AbsoluteTxPosition      `protobuf:"bytes,3,opt,name=updated,proto3" json:"updated,omitempty"`
	Msg     encoding_json.RawMessage `protobuf:"bytes,4,opt,name=msg,proto3,casttype=encoding/json.RawMessage" json:"msg,omitempty"`
}

ContractCodeHistoryEntry metadata to a contract.

func (*ContractCodeHistoryEntry) Descriptor

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

func (*ContractCodeHistoryEntry) Equal

func (this *ContractCodeHistoryEntry) Equal(that interface{}) bool

func (*ContractCodeHistoryEntry) Marshal

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

func (*ContractCodeHistoryEntry) MarshalTo

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

func (*ContractCodeHistoryEntry) MarshalToSizedBuffer

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

func (*ContractCodeHistoryEntry) ProtoMessage

func (*ContractCodeHistoryEntry) ProtoMessage()

func (*ContractCodeHistoryEntry) Reset

func (m *ContractCodeHistoryEntry) Reset()

func (*ContractCodeHistoryEntry) Size

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

func (*ContractCodeHistoryEntry) String

func (m *ContractCodeHistoryEntry) String() string

func (*ContractCodeHistoryEntry) Unmarshal

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

func (*ContractCodeHistoryEntry) XXX_DiscardUnknown

func (m *ContractCodeHistoryEntry) XXX_DiscardUnknown()

func (*ContractCodeHistoryEntry) XXX_Marshal

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

func (*ContractCodeHistoryEntry) XXX_Merge

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

func (*ContractCodeHistoryEntry) XXX_Size

func (m *ContractCodeHistoryEntry) XXX_Size() int

func (*ContractCodeHistoryEntry) XXX_Unmarshal

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

type ContractCodeHistoryOperationType

type ContractCodeHistoryOperationType int32

ContractCodeHistoryOperationType actions that caused a code change

const (
	// ContractCodeHistoryOperationTypeUnspecified placeholder for empty value
	ContractCodeHistoryOperationTypeUnspecified ContractCodeHistoryOperationType = 0
	// ContractCodeHistoryOperationTypeInit on chain contract instantiation
	ContractCodeHistoryOperationTypeInit ContractCodeHistoryOperationType = 1
	// ContractCodeHistoryOperationTypeMigrate code migration
	ContractCodeHistoryOperationTypeMigrate ContractCodeHistoryOperationType = 2
	// ContractCodeHistoryOperationTypeGenesis based on genesis data
	ContractCodeHistoryOperationTypeGenesis ContractCodeHistoryOperationType = 3
)

func (ContractCodeHistoryOperationType) EnumDescriptor

func (ContractCodeHistoryOperationType) EnumDescriptor() ([]byte, []int)

func (ContractCodeHistoryOperationType) String

type ContractInfo

type ContractInfo 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"`
	// Creator address who initially instantiated the contract
	Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
	// Admin is an optional address that can execute migrations
	Admin string `protobuf:"bytes,3,opt,name=admin,proto3" json:"admin,omitempty"`
	// Label is optional metadata to be stored with a contract instance.
	Label string `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"`
	// Created Tx position when the contract was instantiated.
	// This data should kept internal and not be exposed via query results. Just use for sorting
	Created *AbsoluteTxPosition `protobuf:"bytes,5,opt,name=created,proto3" json:"created,omitempty"`
}

ContractInfo stores a WASM contract instance

func (*ContractInfo) Descriptor

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

func (*ContractInfo) Equal

func (this *ContractInfo) Equal(that interface{}) bool

func (*ContractInfo) Marshal

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

func (*ContractInfo) MarshalTo

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

func (*ContractInfo) MarshalToSizedBuffer

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

func (*ContractInfo) ProtoMessage

func (*ContractInfo) ProtoMessage()

func (*ContractInfo) Reset

func (m *ContractInfo) Reset()

func (*ContractInfo) Size

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

func (*ContractInfo) String

func (m *ContractInfo) String() string

func (*ContractInfo) Unmarshal

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

func (*ContractInfo) XXX_DiscardUnknown

func (m *ContractInfo) XXX_DiscardUnknown()

func (*ContractInfo) XXX_Marshal

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

func (*ContractInfo) XXX_Merge

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

func (*ContractInfo) XXX_Size

func (m *ContractInfo) XXX_Size() int

func (*ContractInfo) XXX_Unmarshal

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

type ContractInfoWithAddress

type ContractInfoWithAddress struct {
	Address       string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	*ContractInfo `protobuf:"bytes,2,opt,name=contract_info,json=contractInfo,proto3,embedded=contract_info" json:""`
}

ContractInfoWithAddress adds the address (key) to the ContractInfo representation

func (*ContractInfoWithAddress) Descriptor

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

func (*ContractInfoWithAddress) Equal

func (this *ContractInfoWithAddress) Equal(that interface{}) bool

func (*ContractInfoWithAddress) Marshal

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

func (*ContractInfoWithAddress) MarshalTo

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

func (*ContractInfoWithAddress) MarshalToSizedBuffer

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

func (*ContractInfoWithAddress) ProtoMessage

func (*ContractInfoWithAddress) ProtoMessage()

func (*ContractInfoWithAddress) Reset

func (m *ContractInfoWithAddress) Reset()

func (*ContractInfoWithAddress) Size

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

func (*ContractInfoWithAddress) String

func (m *ContractInfoWithAddress) String() string

func (*ContractInfoWithAddress) Unmarshal

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

func (*ContractInfoWithAddress) XXX_DiscardUnknown

func (m *ContractInfoWithAddress) XXX_DiscardUnknown()

func (*ContractInfoWithAddress) XXX_Marshal

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

func (*ContractInfoWithAddress) XXX_Merge

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

func (*ContractInfoWithAddress) XXX_Size

func (m *ContractInfoWithAddress) XXX_Size() int

func (*ContractInfoWithAddress) XXX_Unmarshal

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

type InstantiateRequest

type InstantiateRequest struct {
	// Admin is an optional address that can execute migrations
	Admin string
	// CodeID is the reference to the stored WASM code
	CodeID string
	// Label is optional metadata to be stored with a contract instance.
	Label string
	// InitMsg json encoded message to be passed to the contract on instantiation
	InitMsg Args
	// InitFunds coins that are transferred to the contract on instantiation
	InitFunds sdk.Coins
}

InstantiateRequest define a struct for Instantiate method

type Model

type Model struct {
	// hex-encode key to read it better (this is often ascii)
	Key github_com_tendermint_tendermint_libs_bytes.HexBytes `protobuf:"bytes,1,opt,name=key,proto3,casttype=github.com/tendermint/tendermint/libs/bytes.HexBytes" json:"key,omitempty"`
	// base64-encode raw value
	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}

Model is a struct that holds a KV pair

func (*Model) Descriptor

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

func (*Model) Equal

func (this *Model) Equal(that interface{}) bool

func (*Model) Marshal

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

func (*Model) MarshalTo

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

func (*Model) MarshalToSizedBuffer

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

func (*Model) ProtoMessage

func (*Model) ProtoMessage()

func (*Model) Reset

func (m *Model) Reset()

func (*Model) Size

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

func (*Model) String

func (m *Model) String() string

func (*Model) Unmarshal

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

func (*Model) XXX_DiscardUnknown

func (m *Model) XXX_DiscardUnknown()

func (*Model) XXX_Marshal

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

func (*Model) XXX_Merge

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

func (*Model) XXX_Size

func (m *Model) XXX_Size() int

func (*Model) XXX_Unmarshal

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

type MsgClearAdmin

type MsgClearAdmin struct {
	// Sender is the that actor that signed the messages
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// Contract is the address of the smart contract
	Contract string `protobuf:"bytes,3,opt,name=contract,proto3" json:"contract,omitempty"`
}

MsgClearAdmin removes any admin stored for a smart contract

func (*MsgClearAdmin) Descriptor

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

func (MsgClearAdmin) GetSignBytes

func (msg MsgClearAdmin) GetSignBytes() []byte

GetSignBytes implement sdk.Msg

func (MsgClearAdmin) GetSigners

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

GetSigners implement sdk.Msg

func (*MsgClearAdmin) Marshal

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

func (*MsgClearAdmin) MarshalTo

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

func (*MsgClearAdmin) MarshalToSizedBuffer

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

func (*MsgClearAdmin) ProtoMessage

func (*MsgClearAdmin) ProtoMessage()

func (*MsgClearAdmin) Reset

func (m *MsgClearAdmin) Reset()

func (MsgClearAdmin) Route

func (msg MsgClearAdmin) Route() string

Route implement sdk.Msg

func (*MsgClearAdmin) Size

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

func (*MsgClearAdmin) String

func (m *MsgClearAdmin) String() string

func (MsgClearAdmin) Type

func (msg MsgClearAdmin) Type() string

Type implement sdk.Msg

func (*MsgClearAdmin) Unmarshal

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

func (MsgClearAdmin) ValidateBasic

func (msg MsgClearAdmin) ValidateBasic() error

ValidateBasic implement sdk.Msg

func (*MsgClearAdmin) XXX_DiscardUnknown

func (m *MsgClearAdmin) XXX_DiscardUnknown()

func (*MsgClearAdmin) XXX_Marshal

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

func (*MsgClearAdmin) XXX_Merge

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

func (*MsgClearAdmin) XXX_Size

func (m *MsgClearAdmin) XXX_Size() int

func (*MsgClearAdmin) XXX_Unmarshal

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

type MsgClearAdminResponse

type MsgClearAdminResponse struct {
}

MsgClearAdminResponse returns empty data

func (*MsgClearAdminResponse) Descriptor

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

func (*MsgClearAdminResponse) Marshal

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

func (*MsgClearAdminResponse) MarshalTo

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

func (*MsgClearAdminResponse) MarshalToSizedBuffer

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

func (*MsgClearAdminResponse) ProtoMessage

func (*MsgClearAdminResponse) ProtoMessage()

func (*MsgClearAdminResponse) Reset

func (m *MsgClearAdminResponse) Reset()

func (*MsgClearAdminResponse) Size

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

func (*MsgClearAdminResponse) String

func (m *MsgClearAdminResponse) String() string

func (*MsgClearAdminResponse) Unmarshal

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

func (*MsgClearAdminResponse) XXX_DiscardUnknown

func (m *MsgClearAdminResponse) XXX_DiscardUnknown()

func (*MsgClearAdminResponse) XXX_Marshal

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

func (*MsgClearAdminResponse) XXX_Merge

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

func (*MsgClearAdminResponse) XXX_Size

func (m *MsgClearAdminResponse) XXX_Size() int

func (*MsgClearAdminResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// StoreCode to submit Wasm code to the system
	StoreCode(ctx context.Context, in *MsgStoreCode, opts ...grpc.CallOption) (*MsgStoreCodeResponse, error)
	//  Instantiate creates a new smart contract instance for the given code id.
	InstantiateContract(ctx context.Context, in *MsgInstantiateContract, opts ...grpc.CallOption) (*MsgInstantiateContractResponse, error)
	// Execute submits the given message data to a smart contract
	ExecuteContract(ctx context.Context, in *MsgExecuteContract, opts ...grpc.CallOption) (*MsgExecuteContractResponse, error)
	// Migrate runs a code upgrade/ downgrade for a smart contract
	MigrateContract(ctx context.Context, in *MsgMigrateContract, opts ...grpc.CallOption) (*MsgMigrateContractResponse, error)
	// UpdateAdmin sets a new   admin for a smart contract
	UpdateAdmin(ctx context.Context, in *MsgUpdateAdmin, opts ...grpc.CallOption) (*MsgUpdateAdminResponse, error)
	// ClearAdmin removes any admin stored for a smart contract
	ClearAdmin(ctx context.Context, in *MsgClearAdmin, opts ...grpc.CallOption) (*MsgClearAdminResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

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"`
	// Contract is the address of the smart contract
	Contract string `protobuf:"bytes,2,opt,name=contract,proto3" json:"contract,omitempty"`
	// Msg json encoded message to be passed to the contract
	Msg encoding_json.RawMessage `protobuf:"bytes,3,opt,name=msg,proto3,casttype=encoding/json.RawMessage" json:"msg,omitempty"`
	// SentFunds coins that are transferred to the contract on execution
	SentFunds github_com_irisnet_core_sdk_go_types.Coins `` /* 134-byte string literal not displayed */
}

MsgExecuteContract submits the given message data to a smart contract

func (*MsgExecuteContract) Descriptor

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

func (MsgExecuteContract) GetSignBytes

func (msg MsgExecuteContract) GetSignBytes() []byte

GetSignBytes implement sdk.Msg

func (MsgExecuteContract) GetSigners

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

GetSigners implement 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 implement 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 implement sdk.Msg

func (*MsgExecuteContract) Unmarshal

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

func (MsgExecuteContract) ValidateBasic

func (msg MsgExecuteContract) ValidateBasic() error

ValidateBasic implement 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"`
}

MsgExecuteContractResponse returns execution result data.

func (*MsgExecuteContractResponse) Descriptor

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

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 the that actor that signed the messages
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// Admin is an optional address that can execute migrations
	Admin string `protobuf:"bytes,2,opt,name=admin,proto3" json:"admin,omitempty"`
	// 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"`
	// Label is optional metadata to be stored with a contract instance.
	Label string `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"`
	// InitMsg json encoded message to be passed to the contract on instantiation
	InitMsg encoding_json.RawMessage `protobuf:"bytes,5,opt,name=init_msg,json=initMsg,proto3,casttype=encoding/json.RawMessage" json:"init_msg,omitempty"`
	// InitFunds coins that are transferred to the contract on instantiation
	InitFunds github_com_irisnet_core_sdk_go_types.Coins `` /* 134-byte string literal not displayed */
}

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

func (*MsgInstantiateContract) Descriptor

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

func (MsgInstantiateContract) GetSignBytes

func (msg MsgInstantiateContract) GetSignBytes() []byte

GetSignBytes implement sdk.Msg

func (MsgInstantiateContract) GetSigners

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

GetSigners implement 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 implement 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 implement sdk.Msg

func (*MsgInstantiateContract) Unmarshal

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

func (MsgInstantiateContract) ValidateBasic

func (msg MsgInstantiateContract) ValidateBasic() error

ValidateBasic implement 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 {
	// Address is the bech32 address of the new contract instance.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

MsgInstantiateContractResponse return instantiation result data

func (*MsgInstantiateContractResponse) Descriptor

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

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 MsgMigrateContract

type MsgMigrateContract struct {
	// Sender is the that actor that signed the messages
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// Contract is the address of the smart contract
	Contract string `protobuf:"bytes,2,opt,name=contract,proto3" json:"contract,omitempty"`
	// CodeID references the new WASM code
	CodeID uint64 `protobuf:"varint,3,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"`
	// MigrateMsg json encoded message to be passed to the contract on migration
	MigrateMsg encoding_json.RawMessage `protobuf:"bytes,4,opt,name=migrate_msg,json=migrateMsg,proto3,casttype=encoding/json.RawMessage" json:"migrate_msg,omitempty"`
}

MsgMigrateContract runs a code upgrade/ downgrade for a smart contract

func (*MsgMigrateContract) Descriptor

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

func (MsgMigrateContract) GetSignBytes

func (msg MsgMigrateContract) GetSignBytes() []byte

GetSignBytes implement sdk.Msg

func (MsgMigrateContract) GetSigners

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

GetSigners implement sdk.Msg

func (*MsgMigrateContract) Marshal

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

func (*MsgMigrateContract) MarshalTo

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

func (*MsgMigrateContract) MarshalToSizedBuffer

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

func (*MsgMigrateContract) ProtoMessage

func (*MsgMigrateContract) ProtoMessage()

func (*MsgMigrateContract) Reset

func (m *MsgMigrateContract) Reset()

func (MsgMigrateContract) Route

func (msg MsgMigrateContract) Route() string

Route implement sdk.Msg

func (*MsgMigrateContract) Size

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

func (*MsgMigrateContract) String

func (m *MsgMigrateContract) String() string

func (MsgMigrateContract) Type

func (msg MsgMigrateContract) Type() string

Type implement sdk.Msg

func (*MsgMigrateContract) Unmarshal

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

func (MsgMigrateContract) ValidateBasic

func (msg MsgMigrateContract) ValidateBasic() error

ValidateBasic implement sdk.Msg

func (*MsgMigrateContract) XXX_DiscardUnknown

func (m *MsgMigrateContract) XXX_DiscardUnknown()

func (*MsgMigrateContract) XXX_Marshal

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

func (*MsgMigrateContract) XXX_Merge

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

func (*MsgMigrateContract) XXX_Size

func (m *MsgMigrateContract) XXX_Size() int

func (*MsgMigrateContract) XXX_Unmarshal

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

type MsgMigrateContractResponse

type MsgMigrateContractResponse struct {
	// Data contains same raw bytes returned as data from the wasm contract.
	// (May be empty)
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}

MsgMigrateContractResponse returns contract migration result data.

func (*MsgMigrateContractResponse) Descriptor

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

func (*MsgMigrateContractResponse) Marshal

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

func (*MsgMigrateContractResponse) MarshalTo

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

func (*MsgMigrateContractResponse) MarshalToSizedBuffer

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

func (*MsgMigrateContractResponse) ProtoMessage

func (*MsgMigrateContractResponse) ProtoMessage()

func (*MsgMigrateContractResponse) Reset

func (m *MsgMigrateContractResponse) Reset()

func (*MsgMigrateContractResponse) Size

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

func (*MsgMigrateContractResponse) String

func (m *MsgMigrateContractResponse) String() string

func (*MsgMigrateContractResponse) Unmarshal

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

func (*MsgMigrateContractResponse) XXX_DiscardUnknown

func (m *MsgMigrateContractResponse) XXX_DiscardUnknown()

func (*MsgMigrateContractResponse) XXX_Marshal

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

func (*MsgMigrateContractResponse) XXX_Merge

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

func (*MsgMigrateContractResponse) XXX_Size

func (m *MsgMigrateContractResponse) XXX_Size() int

func (*MsgMigrateContractResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// StoreCode to submit Wasm code to the system
	StoreCode(context.Context, *MsgStoreCode) (*MsgStoreCodeResponse, error)
	//  Instantiate creates a new smart contract instance for the given code id.
	InstantiateContract(context.Context, *MsgInstantiateContract) (*MsgInstantiateContractResponse, error)
	// Execute submits the given message data to a smart contract
	ExecuteContract(context.Context, *MsgExecuteContract) (*MsgExecuteContractResponse, error)
	// Migrate runs a code upgrade/ downgrade for a smart contract
	MigrateContract(context.Context, *MsgMigrateContract) (*MsgMigrateContractResponse, error)
	// UpdateAdmin sets a new   admin for a smart contract
	UpdateAdmin(context.Context, *MsgUpdateAdmin) (*MsgUpdateAdminResponse, error)
	// ClearAdmin removes any admin stored for a smart contract
	ClearAdmin(context.Context, *MsgClearAdmin) (*MsgClearAdminResponse, error)
}

MsgServer is the server API for Msg service.

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"`
	// 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"`
	// Source is a valid absolute HTTPS URI to the contract's source code, optional
	Source string `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"`
	// Builder is a valid docker image name with tag, optional
	Builder string `protobuf:"bytes,4,opt,name=builder,proto3" json:"builder,omitempty"`
	// InstantiatePermission access control to apply on contract creation, optional
	InstantiatePermission *AccessConfig `protobuf:"bytes,5,opt,name=instantiate_permission,json=instantiatePermission,proto3" json:"instantiate_permission,omitempty"`
}

MsgStoreCode submit Wasm code to the system

func (*MsgStoreCode) Descriptor

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

func (MsgStoreCode) GetSignBytes

func (msg MsgStoreCode) GetSignBytes() []byte

GetSignBytes implement sdk.Msg

func (MsgStoreCode) GetSigners

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

GetSigners implement sdk.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 implement 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 implement sdk.Msg

func (*MsgStoreCode) Unmarshal

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

func (MsgStoreCode) ValidateBasic

func (msg MsgStoreCode) ValidateBasic() error

ValidateBasic implement 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"`
}

MsgStoreCodeResponse returns store result data.

func (*MsgStoreCodeResponse) Descriptor

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

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 MsgUpdateAdmin

type MsgUpdateAdmin struct {
	// Sender is the that actor that signed the messages
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// NewAdmin address to be set
	NewAdmin string `protobuf:"bytes,2,opt,name=new_admin,json=newAdmin,proto3" json:"new_admin,omitempty"`
	// Contract is the address of the smart contract
	Contract string `protobuf:"bytes,3,opt,name=contract,proto3" json:"contract,omitempty"`
}

MsgUpdateAdmin sets a new admin for a smart contract

func (*MsgUpdateAdmin) Descriptor

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

func (MsgUpdateAdmin) GetSignBytes

func (msg MsgUpdateAdmin) GetSignBytes() []byte

GetSignBytes implement sdk.Msg

func (MsgUpdateAdmin) GetSigners

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

GetSigners implement sdk.Msg

func (*MsgUpdateAdmin) Marshal

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

func (*MsgUpdateAdmin) MarshalTo

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

func (*MsgUpdateAdmin) MarshalToSizedBuffer

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

func (*MsgUpdateAdmin) ProtoMessage

func (*MsgUpdateAdmin) ProtoMessage()

func (*MsgUpdateAdmin) Reset

func (m *MsgUpdateAdmin) Reset()

func (MsgUpdateAdmin) Route

func (msg MsgUpdateAdmin) Route() string

Route implement sdk.Msg

func (*MsgUpdateAdmin) Size

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

func (*MsgUpdateAdmin) String

func (m *MsgUpdateAdmin) String() string

func (MsgUpdateAdmin) Type

func (msg MsgUpdateAdmin) Type() string

Type implement sdk.Msg

func (*MsgUpdateAdmin) Unmarshal

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

func (MsgUpdateAdmin) ValidateBasic

func (msg MsgUpdateAdmin) ValidateBasic() error

ValidateBasic implement sdk.Msg

func (*MsgUpdateAdmin) XXX_DiscardUnknown

func (m *MsgUpdateAdmin) XXX_DiscardUnknown()

func (*MsgUpdateAdmin) XXX_Marshal

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

func (*MsgUpdateAdmin) XXX_Merge

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

func (*MsgUpdateAdmin) XXX_Size

func (m *MsgUpdateAdmin) XXX_Size() int

func (*MsgUpdateAdmin) XXX_Unmarshal

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

type MsgUpdateAdminResponse

type MsgUpdateAdminResponse struct {
}

MsgUpdateAdminResponse returns empty data

func (*MsgUpdateAdminResponse) Descriptor

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

func (*MsgUpdateAdminResponse) Marshal

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

func (*MsgUpdateAdminResponse) MarshalTo

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

func (*MsgUpdateAdminResponse) MarshalToSizedBuffer

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

func (*MsgUpdateAdminResponse) ProtoMessage

func (*MsgUpdateAdminResponse) ProtoMessage()

func (*MsgUpdateAdminResponse) Reset

func (m *MsgUpdateAdminResponse) Reset()

func (*MsgUpdateAdminResponse) Size

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

func (*MsgUpdateAdminResponse) String

func (m *MsgUpdateAdminResponse) String() string

func (*MsgUpdateAdminResponse) Unmarshal

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

func (*MsgUpdateAdminResponse) XXX_DiscardUnknown

func (m *MsgUpdateAdminResponse) XXX_DiscardUnknown()

func (*MsgUpdateAdminResponse) XXX_Marshal

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

func (*MsgUpdateAdminResponse) XXX_Merge

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

func (*MsgUpdateAdminResponse) XXX_Size

func (m *MsgUpdateAdminResponse) XXX_Size() int

func (*MsgUpdateAdminResponse) XXX_Unmarshal

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

type Params

type Params struct {
	CodeUploadAccess             AccessConfig `` /* 127-byte string literal not displayed */
	InstantiateDefaultPermission AccessType   `` /* 224-byte string literal not displayed */
	MaxWasmCodeSize              uint64       `` /* 137-byte string literal not displayed */
}

Params defines the set of wasm parameters.

func (*Params) Descriptor

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

func (*Params) Equal

func (this *Params) Equal(that interface{}) bool

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (Params) String

func (p Params) String() string

func (*Params) Unmarshal

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

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type QueryAllContractStateRequest

type QueryAllContractStateRequest struct {
	// address is the address of the contract
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryAllContractStateRequest is the request type for the Query/AllContractState RPC method

func (*QueryAllContractStateRequest) Descriptor

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

func (*QueryAllContractStateRequest) Marshal

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

func (*QueryAllContractStateRequest) MarshalTo

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

func (*QueryAllContractStateRequest) MarshalToSizedBuffer

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

func (*QueryAllContractStateRequest) ProtoMessage

func (*QueryAllContractStateRequest) ProtoMessage()

func (*QueryAllContractStateRequest) Reset

func (m *QueryAllContractStateRequest) Reset()

func (*QueryAllContractStateRequest) Size

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

func (*QueryAllContractStateRequest) String

func (*QueryAllContractStateRequest) Unmarshal

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

func (*QueryAllContractStateRequest) XXX_DiscardUnknown

func (m *QueryAllContractStateRequest) XXX_DiscardUnknown()

func (*QueryAllContractStateRequest) XXX_Marshal

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

func (*QueryAllContractStateRequest) XXX_Merge

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

func (*QueryAllContractStateRequest) XXX_Size

func (m *QueryAllContractStateRequest) XXX_Size() int

func (*QueryAllContractStateRequest) XXX_Unmarshal

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

type QueryAllContractStateResponse

type QueryAllContractStateResponse struct {
	Models []Model `protobuf:"bytes,1,rep,name=models,proto3" json:"models"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryAllContractStateResponse is the response type for the Query/AllContractState RPC method

func (*QueryAllContractStateResponse) Descriptor

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

func (*QueryAllContractStateResponse) Marshal

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

func (*QueryAllContractStateResponse) MarshalTo

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

func (*QueryAllContractStateResponse) MarshalToSizedBuffer

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

func (*QueryAllContractStateResponse) ProtoMessage

func (*QueryAllContractStateResponse) ProtoMessage()

func (*QueryAllContractStateResponse) Reset

func (m *QueryAllContractStateResponse) Reset()

func (*QueryAllContractStateResponse) Size

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

func (*QueryAllContractStateResponse) String

func (*QueryAllContractStateResponse) Unmarshal

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

func (*QueryAllContractStateResponse) XXX_DiscardUnknown

func (m *QueryAllContractStateResponse) XXX_DiscardUnknown()

func (*QueryAllContractStateResponse) XXX_Marshal

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

func (*QueryAllContractStateResponse) XXX_Merge

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

func (*QueryAllContractStateResponse) XXX_Size

func (m *QueryAllContractStateResponse) XXX_Size() int

func (*QueryAllContractStateResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// ContractInfo gets the contract meta data
	ContractInfo(ctx context.Context, in *QueryContractInfoRequest, opts ...grpc.CallOption) (*QueryContractInfoResponse, error)
	// ContractHistory gets the contract code history
	ContractHistory(ctx context.Context, in *QueryContractHistoryRequest, opts ...grpc.CallOption) (*QueryContractHistoryResponse, error)
	// ContractsByCode lists all smart contracts for a code id
	ContractsByCode(ctx context.Context, in *QueryContractsByCodeRequest, opts ...grpc.CallOption) (*QueryContractsByCodeResponse, error)
	// AllContractState gets all raw store data for a single contract
	AllContractState(ctx context.Context, in *QueryAllContractStateRequest, opts ...grpc.CallOption) (*QueryAllContractStateResponse, error)
	// RawContractState gets single key from the raw store data of a contract
	RawContractState(ctx context.Context, in *QueryRawContractStateRequest, opts ...grpc.CallOption) (*QueryRawContractStateResponse, error)
	// SmartContractState get smart query result from the contract
	SmartContractState(ctx context.Context, in *QuerySmartContractStateRequest, opts ...grpc.CallOption) (*QuerySmartContractStateResponse, error)
	// Code gets the binary code and metadata for a singe wasm code
	Code(ctx context.Context, in *QueryCodeRequest, opts ...grpc.CallOption) (*QueryCodeResponse, error)
	// Codes gets the metadata for all stored wasm codes
	Codes(ctx context.Context, in *QueryCodesRequest, opts ...grpc.CallOption) (*QueryCodesResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryCodeRequest

type QueryCodeRequest struct {
	CodeId uint64 `protobuf:"varint,1,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"`
}

QueryCodeRequest is the request type for the Query/Code RPC method

func (*QueryCodeRequest) Descriptor

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

func (*QueryCodeRequest) Marshal

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

func (*QueryCodeRequest) MarshalTo

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

func (*QueryCodeRequest) MarshalToSizedBuffer

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

func (*QueryCodeRequest) ProtoMessage

func (*QueryCodeRequest) ProtoMessage()

func (*QueryCodeRequest) Reset

func (m *QueryCodeRequest) Reset()

func (*QueryCodeRequest) Size

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

func (*QueryCodeRequest) String

func (m *QueryCodeRequest) String() string

func (*QueryCodeRequest) Unmarshal

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

func (*QueryCodeRequest) XXX_DiscardUnknown

func (m *QueryCodeRequest) XXX_DiscardUnknown()

func (*QueryCodeRequest) XXX_Marshal

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

func (*QueryCodeRequest) XXX_Merge

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

func (*QueryCodeRequest) XXX_Size

func (m *QueryCodeRequest) XXX_Size() int

func (*QueryCodeRequest) XXX_Unmarshal

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

type QueryCodeResponse

type QueryCodeResponse struct {
	*CodeInfoResponse `protobuf:"bytes,1,opt,name=code_info,json=codeInfo,proto3,embedded=code_info" json:""`
	Data              []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data"`
}

QueryCodeResponse is the response type for the Query/Code RPC method

func (*QueryCodeResponse) Descriptor

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

func (*QueryCodeResponse) Equal

func (this *QueryCodeResponse) Equal(that interface{}) bool

func (*QueryCodeResponse) Marshal

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

func (*QueryCodeResponse) MarshalTo

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

func (*QueryCodeResponse) MarshalToSizedBuffer

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

func (*QueryCodeResponse) ProtoMessage

func (*QueryCodeResponse) ProtoMessage()

func (*QueryCodeResponse) Reset

func (m *QueryCodeResponse) Reset()

func (*QueryCodeResponse) Size

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

func (*QueryCodeResponse) String

func (m *QueryCodeResponse) String() string

func (*QueryCodeResponse) Unmarshal

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

func (*QueryCodeResponse) XXX_DiscardUnknown

func (m *QueryCodeResponse) XXX_DiscardUnknown()

func (*QueryCodeResponse) XXX_Marshal

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

func (*QueryCodeResponse) XXX_Merge

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

func (*QueryCodeResponse) XXX_Size

func (m *QueryCodeResponse) XXX_Size() int

func (*QueryCodeResponse) XXX_Unmarshal

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

type QueryCodesRequest

type QueryCodesRequest struct {
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryCodesRequest is the request type for the Query/Codes RPC method

func (*QueryCodesRequest) Descriptor

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

func (*QueryCodesRequest) Marshal

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

func (*QueryCodesRequest) MarshalTo

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

func (*QueryCodesRequest) MarshalToSizedBuffer

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

func (*QueryCodesRequest) ProtoMessage

func (*QueryCodesRequest) ProtoMessage()

func (*QueryCodesRequest) Reset

func (m *QueryCodesRequest) Reset()

func (*QueryCodesRequest) Size

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

func (*QueryCodesRequest) String

func (m *QueryCodesRequest) String() string

func (*QueryCodesRequest) Unmarshal

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

func (*QueryCodesRequest) XXX_DiscardUnknown

func (m *QueryCodesRequest) XXX_DiscardUnknown()

func (*QueryCodesRequest) XXX_Marshal

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

func (*QueryCodesRequest) XXX_Merge

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

func (*QueryCodesRequest) XXX_Size

func (m *QueryCodesRequest) XXX_Size() int

func (*QueryCodesRequest) XXX_Unmarshal

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

type QueryCodesResponse

type QueryCodesResponse struct {
	CodeInfos []CodeInfoResponse `protobuf:"bytes,1,rep,name=code_infos,json=codeInfos,proto3" json:"code_infos"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryCodesResponse is the response type for the Query/Codes RPC method

func (*QueryCodesResponse) Descriptor

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

func (*QueryCodesResponse) Marshal

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

func (*QueryCodesResponse) MarshalTo

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

func (*QueryCodesResponse) MarshalToSizedBuffer

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

func (*QueryCodesResponse) ProtoMessage

func (*QueryCodesResponse) ProtoMessage()

func (*QueryCodesResponse) Reset

func (m *QueryCodesResponse) Reset()

func (*QueryCodesResponse) Size

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

func (*QueryCodesResponse) String

func (m *QueryCodesResponse) String() string

func (*QueryCodesResponse) Unmarshal

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

func (*QueryCodesResponse) XXX_DiscardUnknown

func (m *QueryCodesResponse) XXX_DiscardUnknown()

func (*QueryCodesResponse) XXX_Marshal

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

func (*QueryCodesResponse) XXX_Merge

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

func (*QueryCodesResponse) XXX_Size

func (m *QueryCodesResponse) XXX_Size() int

func (*QueryCodesResponse) XXX_Unmarshal

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

type QueryContractHistoryRequest

type QueryContractHistoryRequest struct {
	// address is the address of the contract to query
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryContractHistoryRequest is the request type for the Query/ContractHistory RPC method

func (*QueryContractHistoryRequest) Descriptor

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

func (*QueryContractHistoryRequest) Marshal

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

func (*QueryContractHistoryRequest) MarshalTo

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

func (*QueryContractHistoryRequest) MarshalToSizedBuffer

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

func (*QueryContractHistoryRequest) ProtoMessage

func (*QueryContractHistoryRequest) ProtoMessage()

func (*QueryContractHistoryRequest) Reset

func (m *QueryContractHistoryRequest) Reset()

func (*QueryContractHistoryRequest) Size

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

func (*QueryContractHistoryRequest) String

func (m *QueryContractHistoryRequest) String() string

func (*QueryContractHistoryRequest) Unmarshal

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

func (*QueryContractHistoryRequest) XXX_DiscardUnknown

func (m *QueryContractHistoryRequest) XXX_DiscardUnknown()

func (*QueryContractHistoryRequest) XXX_Marshal

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

func (*QueryContractHistoryRequest) XXX_Merge

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

func (*QueryContractHistoryRequest) XXX_Size

func (m *QueryContractHistoryRequest) XXX_Size() int

func (*QueryContractHistoryRequest) XXX_Unmarshal

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

type QueryContractHistoryResponse

type QueryContractHistoryResponse struct {
	Entries []ContractCodeHistoryEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryContractHistoryResponse is the response type for the Query/ContractHistory RPC method

func (*QueryContractHistoryResponse) Descriptor

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

func (*QueryContractHistoryResponse) Marshal

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

func (*QueryContractHistoryResponse) MarshalTo

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

func (*QueryContractHistoryResponse) MarshalToSizedBuffer

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

func (*QueryContractHistoryResponse) ProtoMessage

func (*QueryContractHistoryResponse) ProtoMessage()

func (*QueryContractHistoryResponse) Reset

func (m *QueryContractHistoryResponse) Reset()

func (*QueryContractHistoryResponse) Size

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

func (*QueryContractHistoryResponse) String

func (*QueryContractHistoryResponse) Unmarshal

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

func (*QueryContractHistoryResponse) XXX_DiscardUnknown

func (m *QueryContractHistoryResponse) XXX_DiscardUnknown()

func (*QueryContractHistoryResponse) XXX_Marshal

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

func (*QueryContractHistoryResponse) XXX_Merge

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

func (*QueryContractHistoryResponse) XXX_Size

func (m *QueryContractHistoryResponse) XXX_Size() int

func (*QueryContractHistoryResponse) XXX_Unmarshal

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

type QueryContractInfoRequest

type QueryContractInfoRequest struct {
	// address is the address of the contract to query
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

QueryContractInfoRequest is the request type for the Query/ContractInfo RPC method

func (*QueryContractInfoRequest) Descriptor

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

func (*QueryContractInfoRequest) Marshal

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

func (*QueryContractInfoRequest) MarshalTo

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

func (*QueryContractInfoRequest) MarshalToSizedBuffer

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

func (*QueryContractInfoRequest) ProtoMessage

func (*QueryContractInfoRequest) ProtoMessage()

func (*QueryContractInfoRequest) Reset

func (m *QueryContractInfoRequest) Reset()

func (*QueryContractInfoRequest) Size

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

func (*QueryContractInfoRequest) String

func (m *QueryContractInfoRequest) String() string

func (*QueryContractInfoRequest) Unmarshal

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

func (*QueryContractInfoRequest) XXX_DiscardUnknown

func (m *QueryContractInfoRequest) XXX_DiscardUnknown()

func (*QueryContractInfoRequest) XXX_Marshal

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

func (*QueryContractInfoRequest) XXX_Merge

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

func (*QueryContractInfoRequest) XXX_Size

func (m *QueryContractInfoRequest) XXX_Size() int

func (*QueryContractInfoRequest) XXX_Unmarshal

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

type QueryContractInfoResponse

type QueryContractInfoResponse struct {
	// address is the address of the contract
	Address       string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	*ContractInfo `protobuf:"bytes,2,opt,name=contract_info,json=contractInfo,proto3,embedded=contract_info" json:""`
}

QueryContractInfoResponse is the response type for the Query/ContractInfo RPC method

func (*QueryContractInfoResponse) Descriptor

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

func (*QueryContractInfoResponse) Equal

func (this *QueryContractInfoResponse) Equal(that interface{}) bool

func (*QueryContractInfoResponse) Marshal

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

func (*QueryContractInfoResponse) MarshalTo

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

func (*QueryContractInfoResponse) MarshalToSizedBuffer

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

func (*QueryContractInfoResponse) ProtoMessage

func (*QueryContractInfoResponse) ProtoMessage()

func (*QueryContractInfoResponse) Reset

func (m *QueryContractInfoResponse) Reset()

func (*QueryContractInfoResponse) Size

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

func (*QueryContractInfoResponse) String

func (m *QueryContractInfoResponse) String() string

func (*QueryContractInfoResponse) Unmarshal

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

func (*QueryContractInfoResponse) XXX_DiscardUnknown

func (m *QueryContractInfoResponse) XXX_DiscardUnknown()

func (*QueryContractInfoResponse) XXX_Marshal

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

func (*QueryContractInfoResponse) XXX_Merge

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

func (*QueryContractInfoResponse) XXX_Size

func (m *QueryContractInfoResponse) XXX_Size() int

func (*QueryContractInfoResponse) XXX_Unmarshal

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

type QueryContractsByCodeRequest

type QueryContractsByCodeRequest struct {
	CodeId uint64 `protobuf:"varint,1,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryContractsByCodeRequest is the request type for the Query/ContractsByCode RPC method

func (*QueryContractsByCodeRequest) Descriptor

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

func (*QueryContractsByCodeRequest) Marshal

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

func (*QueryContractsByCodeRequest) MarshalTo

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

func (*QueryContractsByCodeRequest) MarshalToSizedBuffer

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

func (*QueryContractsByCodeRequest) ProtoMessage

func (*QueryContractsByCodeRequest) ProtoMessage()

func (*QueryContractsByCodeRequest) Reset

func (m *QueryContractsByCodeRequest) Reset()

func (*QueryContractsByCodeRequest) Size

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

func (*QueryContractsByCodeRequest) String

func (m *QueryContractsByCodeRequest) String() string

func (*QueryContractsByCodeRequest) Unmarshal

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

func (*QueryContractsByCodeRequest) XXX_DiscardUnknown

func (m *QueryContractsByCodeRequest) XXX_DiscardUnknown()

func (*QueryContractsByCodeRequest) XXX_Marshal

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

func (*QueryContractsByCodeRequest) XXX_Merge

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

func (*QueryContractsByCodeRequest) XXX_Size

func (m *QueryContractsByCodeRequest) XXX_Size() int

func (*QueryContractsByCodeRequest) XXX_Unmarshal

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

type QueryContractsByCodeResponse

type QueryContractsByCodeResponse struct {
	ContractInfos []ContractInfoWithAddress `protobuf:"bytes,1,rep,name=contract_infos,json=contractInfos,proto3" json:"contract_infos"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryContractsByCodeResponse is the response type for the Query/ContractsByCode RPC method

func (*QueryContractsByCodeResponse) Descriptor

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

func (*QueryContractsByCodeResponse) Marshal

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

func (*QueryContractsByCodeResponse) MarshalTo

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

func (*QueryContractsByCodeResponse) MarshalToSizedBuffer

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

func (*QueryContractsByCodeResponse) ProtoMessage

func (*QueryContractsByCodeResponse) ProtoMessage()

func (*QueryContractsByCodeResponse) Reset

func (m *QueryContractsByCodeResponse) Reset()

func (*QueryContractsByCodeResponse) Size

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

func (*QueryContractsByCodeResponse) String

func (*QueryContractsByCodeResponse) Unmarshal

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

func (*QueryContractsByCodeResponse) XXX_DiscardUnknown

func (m *QueryContractsByCodeResponse) XXX_DiscardUnknown()

func (*QueryContractsByCodeResponse) XXX_Marshal

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

func (*QueryContractsByCodeResponse) XXX_Merge

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

func (*QueryContractsByCodeResponse) XXX_Size

func (m *QueryContractsByCodeResponse) XXX_Size() int

func (*QueryContractsByCodeResponse) XXX_Unmarshal

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

type QueryRawContractStateRequest

type QueryRawContractStateRequest struct {
	// address is the address of the contract
	Address   string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	QueryData []byte `protobuf:"bytes,2,opt,name=query_data,json=queryData,proto3" json:"query_data,omitempty"`
}

QueryRawContractStateRequest is the request type for the Query/RawContractState RPC method

func (*QueryRawContractStateRequest) Descriptor

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

func (*QueryRawContractStateRequest) Marshal

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

func (*QueryRawContractStateRequest) MarshalTo

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

func (*QueryRawContractStateRequest) MarshalToSizedBuffer

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

func (*QueryRawContractStateRequest) ProtoMessage

func (*QueryRawContractStateRequest) ProtoMessage()

func (*QueryRawContractStateRequest) Reset

func (m *QueryRawContractStateRequest) Reset()

func (*QueryRawContractStateRequest) Size

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

func (*QueryRawContractStateRequest) String

func (*QueryRawContractStateRequest) Unmarshal

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

func (*QueryRawContractStateRequest) XXX_DiscardUnknown

func (m *QueryRawContractStateRequest) XXX_DiscardUnknown()

func (*QueryRawContractStateRequest) XXX_Marshal

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

func (*QueryRawContractStateRequest) XXX_Merge

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

func (*QueryRawContractStateRequest) XXX_Size

func (m *QueryRawContractStateRequest) XXX_Size() int

func (*QueryRawContractStateRequest) XXX_Unmarshal

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

type QueryRawContractStateResponse

type QueryRawContractStateResponse struct {
	// Data contains the raw store data
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}

QueryRawContractStateResponse is the response type for the Query/RawContractState RPC method

func (*QueryRawContractStateResponse) Descriptor

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

func (*QueryRawContractStateResponse) Marshal

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

func (*QueryRawContractStateResponse) MarshalTo

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

func (*QueryRawContractStateResponse) MarshalToSizedBuffer

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

func (*QueryRawContractStateResponse) ProtoMessage

func (*QueryRawContractStateResponse) ProtoMessage()

func (*QueryRawContractStateResponse) Reset

func (m *QueryRawContractStateResponse) Reset()

func (*QueryRawContractStateResponse) Size

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

func (*QueryRawContractStateResponse) String

func (*QueryRawContractStateResponse) Unmarshal

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

func (*QueryRawContractStateResponse) XXX_DiscardUnknown

func (m *QueryRawContractStateResponse) XXX_DiscardUnknown()

func (*QueryRawContractStateResponse) XXX_Marshal

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

func (*QueryRawContractStateResponse) XXX_Merge

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

func (*QueryRawContractStateResponse) XXX_Size

func (m *QueryRawContractStateResponse) XXX_Size() int

func (*QueryRawContractStateResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// ContractInfo gets the contract meta data
	ContractInfo(context.Context, *QueryContractInfoRequest) (*QueryContractInfoResponse, error)
	// ContractHistory gets the contract code history
	ContractHistory(context.Context, *QueryContractHistoryRequest) (*QueryContractHistoryResponse, error)
	// ContractsByCode lists all smart contracts for a code id
	ContractsByCode(context.Context, *QueryContractsByCodeRequest) (*QueryContractsByCodeResponse, error)
	// AllContractState gets all raw store data for a single contract
	AllContractState(context.Context, *QueryAllContractStateRequest) (*QueryAllContractStateResponse, error)
	// RawContractState gets single key from the raw store data of a contract
	RawContractState(context.Context, *QueryRawContractStateRequest) (*QueryRawContractStateResponse, error)
	// SmartContractState get smart query result from the contract
	SmartContractState(context.Context, *QuerySmartContractStateRequest) (*QuerySmartContractStateResponse, error)
	// Code gets the binary code and metadata for a singe wasm code
	Code(context.Context, *QueryCodeRequest) (*QueryCodeResponse, error)
	// Codes gets the metadata for all stored wasm codes
	Codes(context.Context, *QueryCodesRequest) (*QueryCodesResponse, error)
}

QueryServer is the server API for Query service.

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 []byte `protobuf:"bytes,2,opt,name=query_data,json=queryData,proto3" 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) 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 encoding_json.RawMessage `protobuf:"bytes,1,opt,name=data,proto3,casttype=encoding/json.RawMessage" json:"data,omitempty"`
}

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

func (*QuerySmartContractStateResponse) Descriptor

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

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 StoreRequest

type StoreRequest struct {
	// WASMByteCode can be raw or gzip compressed
	WASMByteCode []byte
	// WASMFile can be raw or gzip file
	WASMFile string
	// Source is a valid absolute HTTPS URI to the contract's source code, optional
	Source string
	// Builder is a valid docker image name with tag, optional
	Builder string
	// contains filtered or unexported fields
}

StoreRequest define a struct for Store method

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) ClearAdmin

func (*UnimplementedMsgServer) ExecuteContract

func (*UnimplementedMsgServer) InstantiateContract

func (*UnimplementedMsgServer) MigrateContract

func (*UnimplementedMsgServer) StoreCode

func (*UnimplementedMsgServer) UpdateAdmin

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) AllContractState

func (*UnimplementedQueryServer) Code

func (*UnimplementedQueryServer) Codes

func (*UnimplementedQueryServer) ContractHistory

func (*UnimplementedQueryServer) ContractInfo

func (*UnimplementedQueryServer) ContractsByCode

func (*UnimplementedQueryServer) RawContractState

func (*UnimplementedQueryServer) SmartContractState

Jump to

Keyboard shortcuts

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