types

package
v1.4.0-patch.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: AGPL-3.0 Imports: 43 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// WasmModuleEventType is stored with any contract TX that returns non empty EventAttributes
	CustomEventType = "wasm"
	// CustomContractEventPrefix contracts can create custom events. To not mix them with other system events they got the `wasm-` prefix.
	CustomContractEventPrefix = "wasm-"

	EventTypeStoreCode         = "store_code"
	EventTypeInstantiate       = "instantiate"
	EventTypeExecute           = "execute"
	EventTypeMigrate           = "migrate"
	EventTypePinCode           = "pin_code"
	EventTypeUnpinCode         = "unpin_code"
	EventTypeSudo              = "sudo"
	EventTypeReply             = "reply"
	EventTypeGovContractResult = "gov_contract_result"
)
View Source
const (
	AttributeReservedPrefix = "_"

	AttributeKeyContractAddr  = "contract_address"
	AttributeKeyCodeID        = "code_id"
	AttributeKeySigner        = "signer"
	AttributeKeyResultDataHex = "result"
	AttributeKeyFeature       = "feature"
)

event attributes returned from contract execution

View Source
const (
	// ModuleName is the name of the contract module
	ModuleName = "compute"

	// StoreKey is the string store representation
	StoreKey = ModuleName

	// TStoreKey is the string transient store representation
	TStoreKey = "transient_" + ModuleName

	// QuerierRoute is the querier route for the staking module
	QuerierRoute = ModuleName

	// RouterKey is the msg router key for the staking module
	RouterKey = ModuleName
)
View Source
const (
	MaxWasmSize = 2 * 1024 * 1024 // 2MB

	// MaxLabelSize is the longest label that can be used when Instantiating a contract
	MaxLabelSize = 512

	// BuildTagRegexp is a docker image regexp.
	// We only support max 128 characters, with at least one organization name (subset of all legal names).
	//
	// Details from https://docs.docker.com/engine/reference/commandline/tag/#extended-description :
	//
	// An image name is made up of slash-separated name components (optionally prefixed by a registry hostname).
	// Name components may contain lowercase characters, digits and separators.
	// A separator is defined as a period, one or two underscores, or one or more dashes. A name component may not start or end with a separator.
	//
	// A tag name must be valid ASCII and may contain lowercase and uppercase letters, digits, underscores, periods and dashes.
	// A tag name may not start with a period or a dash and may contain a maximum of 128 characters.
	BuildTagRegexp = "^[a-z0-9][a-z0-9._-]*[a-z0-9](/[a-z0-9][a-z0-9._-]*[a-z0-9])+:[a-zA-Z0-9_][a-zA-Z0-9_.-]*$"

	MaxBuildTagSize = 128
)
View Source
const CompileCost uint64 = 2

CompileCost is how much SDK gas we charge *per byte* for compiling WASM code.

View Source
const DefaultConfigTemplate = `` /* 553-byte string literal not displayed */

DefaultConfigTemplate default config template for wasm module

View Source
const GasMultiplier uint64 = 1000

GasMultiplier is how many cosmwasm gas points = 1 sdk gas point SDK reference costs can be found here: https://github.com/cosmos/cosmos-sdk/blob/02c6c9fafd58da88550ab4d7d494724a477c8a68/store/types/gas.go#L153-L164 A write at ~3000 gas and ~200us = 10 gas per us (microsecond) cpu/io Rough timing have 88k gas at 90us, which is equal to 1k sdk gas... (one read)

Please not that all gas prices returned to the wasmer engine should have this multiplied

View Source
const InstanceCost uint64 = 100_000

InstanceCost is how much SDK gas we charge each time we load a WASM instance. Creating a new instance is costly, and this helps put a recursion limit to contracts calling contracts.

View Source
const MaxGas = 10_000_000_000

MaxGas for a contract is 10 billion wasmer gas (enforced in rust to prevent overflow) The limit for v0.9.3 is defined here: https://github.com/CosmWasm/cosmwasm/blob/v0.9.3/packages/vm/src/backends/singlepass.rs#L15-L23 (this will be increased in future releases)

Variables

View Source
var (
	DefaultCodespace = ModuleName

	// ErrInstantiateFailed error for rust instantiate contract failure
	ErrInstantiateFailed = sdkErrors.Register(DefaultCodespace, 2, "instantiate contract failed")

	// ErrExecuteFailed error for rust execution contract failure
	ErrExecuteFailed = sdkErrors.Register(DefaultCodespace, 3, "execute contract failed")

	// ErrQueryFailed error for rust smart query contract failure
	ErrQueryFailed = sdkErrors.Register(DefaultCodespace, 4, "query contract failed")

	// ErrMigrationFailed error for rust execution contract failure
	ErrMigrationFailed = sdkErrors.Register(DefaultCodespace, 5, "migrate contract failed")

	// ErrAccountExists error for a contract account that already exists
	ErrAccountExists = sdkErrors.Register(DefaultCodespace, 6, "contract account already exists")

	// ErrGasLimit error for out of gas
	ErrGasLimit = sdkErrors.Register(DefaultCodespace, 7, "insufficient gas")

	// ErrInvalidGenesis error for invalid genesis file syntax
	ErrInvalidGenesis = sdkErrors.Register(DefaultCodespace, 8, "invalid genesis")

	// ErrNotFound error for an entry not found in the store
	ErrNotFound = sdkErrors.Register(DefaultCodespace, 9, "not found")

	// ErrInvalidMsg error when we cannot process the error returned from the contract
	ErrInvalidMsg = sdkErrors.Register(DefaultCodespace, 10, "invalid CosmosMsg from the contract")

	// ErrEmpty error for empty content
	ErrEmpty = sdkErrors.Register(DefaultCodespace, 11, "empty")

	// ErrLimit error for content that exceeds a limit
	ErrLimit = sdkErrors.Register(DefaultCodespace, 12, "exceeds limit")

	// ErrInvalid error for content that is invalid in this context
	ErrInvalid = sdkErrors.Register(DefaultCodespace, 13, "invalid")

	// ErrDuplicate error for content that exsists
	ErrDuplicate = sdkErrors.Register(DefaultCodespace, 14, "duplicate")

	// ErrCreateFailed error for wasm code that has already been uploaded or failed
	ErrCreateFailed = sdkErrors.Register(DefaultCodespace, 15, "create contract failed")

	// ErrSigFailed error for wasm code that has already been uploaded or failed
	ErrSigFailed = sdkErrors.Register(DefaultCodespace, 16, "parse signature failed")

	// ErrUnsupportedForContract error when a feature is used that is not supported for/ by this contract
	ErrUnsupportedForContract = sdkErrors.Register(DefaultCodespace, 17, "unsupported for this contract")

	// ErrUnknownMsg error by a message handler to show that it is not responsible for this message type
	ErrUnknownMsg = sdkErrors.Register(DefaultCodespace, 18, "unknown message from the contract")

	// ErrReplyFailed error for rust execution contract failure
	ErrReplyFailed = sdkErrors.Register(DefaultCodespace, 19, "reply to contract failed")

	// ErrInvalidEvent error if an attribute/event from the contract is invalid
	ErrInvalidEvent = sdkErrors.Register(DefaultCodespace, 21, "invalid event")

	// ErrMaxIBCChannels error for maximum number of ibc channels reached
	ErrMaxIBCChannels = sdkErrors.Register(DefaultCodespace, 22, "max transfer channels")
)

Codes for wasm contract errors 1-5 are errors that contain an encrypted payload. If you add more to the list, add it at the end so we don't rename the error codes every other day (though nothing outside this file actually depends on them) and update the IsEncryptedErrorCode function.

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	CodeKeyPrefix           = []byte{0x01}
	ContractKeyPrefix       = []byte{0x02}
	ContractStorePrefix     = []byte{0x03}
	SequenceKeyPrefix       = []byte{0x04}
	ContractEnclaveIdPrefix = []byte{0x06}
	ContractLabelPrefix     = []byte{0x07}
	TXCounterPrefix         = []byte{0x08}
	KeyLastCodeID           = append(SequenceKeyPrefix, []byte("lastCodeId")...)
	KeyLastInstanceID       = append(SequenceKeyPrefix, []byte("lastContractId")...)
)
View Source
var (
	ErrInvalidLengthMsg        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMsg          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMsg = fmt.Errorf("proto: unexpected end of group")
)
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 (
	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: "UNDEFINED",
	1: "NOBODY",
	2: "ONLY_ADDRESS",
	3: "EVERYBODY",
}
View Source
var AccessType_value = map[string]int32{
	"UNDEFINED":    0,
	"NOBODY":       1,
	"ONLY_ADDRESS": 2,
	"EVERYBODY":    3,
}
View Source
var (

	// ModuleCdc references the global x/wasm module codec.
	ModuleCdc = codec.NewAminoCodec(amino)
)

ModuleCdc generic sealed codec to be used throughout module

Functions

func ContainsEnclaveError

func ContainsEnclaveError(str string) bool

** Warning ** Below are functions that check for magic strings that depends on the output of the enclave. Beware when changing this, or the rust error string

func ContainsEncryptedString

func ContainsEncryptedString(str string) bool

func ContractLogsToSdkEvents

func ContractLogsToSdkEvents(logs []wasmTypesV010.LogAttribute, contractAddr sdk.AccAddress) sdk.Events

ParseEvents converts wasm LogAttributes into an sdk.Events (with 0 or 1 elements)

func ErrContainsQueryError

func ErrContainsQueryError(err error) bool

func GetCodeKey

func GetCodeKey(codeID uint64) []byte

GetCodeKey constructs the key for retreiving the ID for the WASM code

func GetContractAddressKey

func GetContractAddressKey(addr sdk.AccAddress) []byte

GetContractAddressKey returns the key for the WASM contract instance

func GetContractEnclaveKey

func GetContractEnclaveKey(addr sdk.AccAddress) []byte

GetContractAddressKey returns the key for the WASM contract instance

func GetContractLabelPrefix

func GetContractLabelPrefix(addr string) []byte

GetContractStorePrefixKey returns the store prefix for the WASM contract instance

func GetContractStorePrefixKey

func GetContractStorePrefixKey(addr sdk.AccAddress) []byte

GetContractStorePrefixKey returns the store prefix for the WASM contract instance

func IsEncryptedErrorCode

func IsEncryptedErrorCode(code uint32) bool

func NewCustomEvents

func NewCustomEvents(evts wasmTypesV1.Events, contractAddr sdk.AccAddress) (sdk.Events, error)

NewCustomEvents converts wasm events from a contract response to sdk type events

func NewEnv

func NewEnv(ctx sdk.Context, creator sdk.AccAddress, deposit sdk.Coins, contractAddr sdk.AccAddress, contractKey []byte) wasmTypes.Env

NewEnv initializes the environment for a contract instance

func NewVerificationInfo

func NewVerificationInfo(
	signBytes []byte, signMode sdktxsigning.SignMode, modeInfo []byte, publicKey []byte, signature []byte, callbackSig []byte,
) wasmTypes.VerificationInfo

func NewWasmCoins

func NewWasmCoins(cosmosCoins sdk.Coins) (wasmCoins []wasmTypes.Coin)

NewWasmCoins translates between Cosmos SDK coins and Wasm coins

func OnlyGenesisFields

func OnlyGenesisFields(info *ContractInfo)

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterCodec registers the account types and interface

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func TXCounter

func TXCounter(ctx sdk.Context) (uint32, bool)

TXCounter returns the tx counter value and found bool from the context. The result will be (0, false) for external queries or simulations where no counter available.

func ValidateGenesis

func ValidateGenesis(data GenesisState) error

ValidateGenesis performs basic validation of supply genesis data returning an error for any failed validation criteria.

func WithSHA256CodeHash

func WithSHA256CodeHash(wasmCode []byte) func(info *CodeInfo)

func WithTXCounter

func WithTXCounter(ctx sdk.Context, counter uint32) sdk.Context

WithTXCounter stores a transaction counter value in the context

Types

type AbsoluteTxPosition

type AbsoluteTxPosition struct {
	// BlockHeight is the block the contract was created at
	BlockHeight int64 `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 can be used to sort contracts

func NewAbsoluteTxPosition

func NewAbsoluteTxPosition(ctx sdk.Context) *AbsoluteTxPosition

NewAbsoluteTxPosition gets a timestamp from the context

func (*AbsoluteTxPosition) Descriptor

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

func (*AbsoluteTxPosition) Equal

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

func (*AbsoluteTxPosition) LessThan

func (a *AbsoluteTxPosition) LessThan(b *AbsoluteTxPosition) bool

LessThan can be used to sort

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 AccessType

type AccessType int32
const (
	AccessTypeUndefined   AccessType = 0
	AccessTypeNobody      AccessType = 1
	AccessTypeOnlyAddress AccessType = 2
	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=secret.compute.v1beta1.AccessType" json:"value,omitempty" yaml:"value"`
}

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 ChannelKeeper

type ChannelKeeper interface {
	GetChannel(ctx sdk.Context, srcPort, srcChan string) (channel channeltypes.Channel, found bool)
	GetNextSequenceSend(ctx sdk.Context, portID, channelID string) (uint64, bool)
	SendPacket(ctx sdk.Context, channelCap *capabilitytypes.Capability, packet ibcexported.PacketI) error
	ChanCloseInit(ctx sdk.Context, portID, channelID string, chanCap *capabilitytypes.Capability) error
	GetAllChannels(ctx sdk.Context) (channels []channeltypes.IdentifiedChannel)
	IterateChannels(ctx sdk.Context, cb func(channeltypes.IdentifiedChannel) bool)
	SetChannel(ctx sdk.Context, portID, channelID string, channel channeltypes.Channel)
}

ChannelKeeper defines the expected IBC channel keeper

type Code

type Code struct {
	CodeID    uint64   `protobuf:"varint,1,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"`
	CodeInfo  CodeInfo `protobuf:"bytes,2,opt,name=code_info,json=codeInfo,proto3" json:"code_info"`
	CodeBytes []byte   `protobuf:"bytes,3,opt,name=code_bytes,json=codeBytes,proto3" json:"code_bytes,omitempty"`
}

Code struct encompasses CodeInfo and CodeBytes

func CodeFixture

func CodeFixture(mutators ...func(*Code)) Code

func (*Code) Descriptor

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

func (*Code) GetCodeBytes

func (m *Code) GetCodeBytes() []byte

func (*Code) GetCodeID

func (m *Code) GetCodeID() uint64

func (*Code) GetCodeInfo

func (m *Code) GetCodeInfo() CodeInfo

func (*Code) Marshal

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

func (*Code) MarshalTo

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

func (*Code) MarshalToSizedBuffer

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

func (*Code) ProtoMessage

func (*Code) ProtoMessage()

func (*Code) Reset

func (m *Code) Reset()

func (*Code) Size

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

func (*Code) String

func (m *Code) String() string

func (*Code) Unmarshal

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

func (Code) ValidateBasic

func (c Code) ValidateBasic() error

func (*Code) XXX_DiscardUnknown

func (m *Code) XXX_DiscardUnknown()

func (*Code) XXX_Marshal

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

func (*Code) XXX_Merge

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

func (*Code) XXX_Size

func (m *Code) XXX_Size() int

func (*Code) XXX_Unmarshal

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

type CodeInfo

type CodeInfo struct {
	CodeHash []byte                                        `protobuf:"bytes,1,opt,name=code_hash,json=codeHash,proto3" json:"code_hash,omitempty"`
	Creator  github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,2,opt,name=creator,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"creator,omitempty"`
	Source   string                                        `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"`
	Builder  string                                        `protobuf:"bytes,4,opt,name=builder,proto3" json:"builder,omitempty"`
}

CodeInfo is data for the uploaded contract WASM code

func CodeInfoFixture

func CodeInfoFixture(mutators ...func(*CodeInfo)) CodeInfo

func NewCodeInfo

func NewCodeInfo(codeHash []byte, creator sdk.AccAddress, source string, builder string) CodeInfo

NewCodeInfo fills a new Contract struct

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) ValidateBasic

func (c CodeInfo) ValidateBasic() 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:"code_id,omitempty"`
	// creator is the bech32 human readable address of the contract
	Creator  string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
	CodeHash string `protobuf:"bytes,3,opt,name=code_hash,json=codeHash,proto3" json:"code_hash,omitempty"`
	Source   string `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"`
	Builder  string `protobuf:"bytes,5,opt,name=builder,proto3" json:"builder,omitempty"`
}

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 Contract

type Contract struct {
	ContractAddress    github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 161-byte string literal not displayed */
	ContractInfo       ContractInfo                                  `protobuf:"bytes,2,opt,name=contract_info,json=contractInfo,proto3" json:"contract_info"`
	ContractState      []Model                                       `protobuf:"bytes,3,rep,name=contract_state,json=contractState,proto3" json:"contract_state"`
	ContractCustomInfo *ContractCustomInfo                           `protobuf:"bytes,4,opt,name=contract_custom_info,json=contractCustomInfo,proto3" json:"contract_custom_info,omitempty"`
}

Contract struct encompasses ContractAddress, ContractInfo, and ContractState

func ContractFixture

func ContractFixture(mutators ...func(*Contract)) Contract

func (*Contract) Descriptor

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

func (*Contract) GetContractAddress

func (m *Contract) GetContractAddress() github_com_cosmos_cosmos_sdk_types.AccAddress

func (*Contract) GetContractCustomInfo

func (m *Contract) GetContractCustomInfo() *ContractCustomInfo

func (*Contract) GetContractInfo

func (m *Contract) GetContractInfo() ContractInfo

func (*Contract) GetContractState

func (m *Contract) GetContractState() []Model

func (*Contract) Marshal

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

func (*Contract) MarshalTo

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

func (*Contract) MarshalToSizedBuffer

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

func (*Contract) ProtoMessage

func (*Contract) ProtoMessage()

func (*Contract) Reset

func (m *Contract) Reset()

func (*Contract) Size

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

func (*Contract) String

func (m *Contract) String() string

func (*Contract) Unmarshal

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

func (Contract) ValidateBasic

func (c Contract) ValidateBasic() error

func (*Contract) XXX_DiscardUnknown

func (m *Contract) XXX_DiscardUnknown()

func (*Contract) XXX_Marshal

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

func (*Contract) XXX_Merge

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

func (*Contract) XXX_Size

func (m *Contract) XXX_Size() int

func (*Contract) XXX_Unmarshal

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

type ContractCustomInfo

type ContractCustomInfo struct {
	EnclaveKey []byte `protobuf:"bytes,1,opt,name=enclave_key,json=enclaveKey,proto3" json:"enclave_key,omitempty"`
	Label      string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
}

func (*ContractCustomInfo) Descriptor

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

func (*ContractCustomInfo) Equal

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

func (*ContractCustomInfo) Marshal

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

func (*ContractCustomInfo) MarshalTo

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

func (*ContractCustomInfo) MarshalToSizedBuffer

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

func (*ContractCustomInfo) ProtoMessage

func (*ContractCustomInfo) ProtoMessage()

func (*ContractCustomInfo) Reset

func (m *ContractCustomInfo) Reset()

func (*ContractCustomInfo) Size

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

func (*ContractCustomInfo) String

func (m *ContractCustomInfo) String() string

func (*ContractCustomInfo) Unmarshal

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

func (*ContractCustomInfo) XXX_DiscardUnknown

func (m *ContractCustomInfo) XXX_DiscardUnknown()

func (*ContractCustomInfo) XXX_Marshal

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

func (*ContractCustomInfo) XXX_Merge

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

func (*ContractCustomInfo) XXX_Size

func (m *ContractCustomInfo) XXX_Size() int

func (*ContractCustomInfo) XXX_Unmarshal

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

type ContractInfo

type ContractInfo struct {
	CodeID  uint64                                        `protobuf:"varint,1,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"`
	Creator github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,2,opt,name=creator,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"creator,omitempty"`
	Label   string                                        `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"`
	// never show this in query results, just use for sorting
	// (Note: when using json tag "-" amino refused to serialize it...)
	Created   *AbsoluteTxPosition `protobuf:"bytes,5,opt,name=created,proto3" json:"created,omitempty"`
	IBCPortID string              `protobuf:"bytes,6,opt,name=ibc_port_id,json=ibcPortId,proto3" json:"ibc_port_id,omitempty"`
}

ContractInfo stores a WASM contract instance

func ContractInfoFixture

func ContractInfoFixture(mutators ...func(*ContractInfo)) ContractInfo

func NewContractInfo

func NewContractInfo(codeID uint64, creator sdk.AccAddress, label string, createdAt *AbsoluteTxPosition) ContractInfo

NewContractInfo creates a new instance of a given WASM contract info

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) ValidateBasic

func (c *ContractInfo) ValidateBasic() 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 {
	// contract_address is the bech32 human readable address of the contract
	ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	*ContractInfo   `protobuf:"bytes,2,opt,name=ContractInfo,proto3,embedded=ContractInfo" json:""`
}

ContractInfoWithAddress adds the contract address 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 ContractKey

type ContractKey string

base64 of a 64 byte key

type DecryptedAnswer

type DecryptedAnswer struct {
	Type               string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Input              string `protobuf:"bytes,2,opt,name=input,proto3" json:"input,omitempty"`
	OutputData         string `protobuf:"bytes,3,opt,name=output_data,json=outputData,proto3" json:"output_data,omitempty"`
	OutputDataAsString string `protobuf:"bytes,4,opt,name=output_data_as_string,json=outputDataAsString,proto3" json:"output_data_as_string,omitempty"`
}

DecryptedAnswer is a struct that represents a decrypted tx-query

func (*DecryptedAnswer) Descriptor

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

func (*DecryptedAnswer) Marshal

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

func (*DecryptedAnswer) MarshalTo

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

func (*DecryptedAnswer) MarshalToSizedBuffer

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

func (*DecryptedAnswer) ProtoMessage

func (*DecryptedAnswer) ProtoMessage()

func (*DecryptedAnswer) Reset

func (m *DecryptedAnswer) Reset()

func (*DecryptedAnswer) Size

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

func (*DecryptedAnswer) String

func (m *DecryptedAnswer) String() string

func (*DecryptedAnswer) Unmarshal

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

func (*DecryptedAnswer) XXX_DiscardUnknown

func (m *DecryptedAnswer) XXX_DiscardUnknown()

func (*DecryptedAnswer) XXX_Marshal

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

func (*DecryptedAnswer) XXX_Merge

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

func (*DecryptedAnswer) XXX_Size

func (m *DecryptedAnswer) XXX_Size() int

func (*DecryptedAnswer) XXX_Unmarshal

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

type DecryptedAnswers

type DecryptedAnswers struct {
	Answers        []*DecryptedAnswer  `protobuf:"bytes,1,rep,name=answers,proto3" json:"answers,omitempty"`
	OutputLogs     []types.StringEvent `protobuf:"bytes,2,rep,name=output_logs,json=outputLogs,proto3" json:"output_logs"`
	OutputError    string              `protobuf:"bytes,3,opt,name=output_error,json=outputError,proto3" json:"output_error,omitempty"`
	PlaintextError string              `protobuf:"bytes,4,opt,name=plaintext_error,json=plaintextError,proto3" json:"plaintext_error,omitempty"`
}

func (*DecryptedAnswers) Descriptor

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

func (*DecryptedAnswers) Marshal

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

func (*DecryptedAnswers) MarshalTo

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

func (*DecryptedAnswers) MarshalToSizedBuffer

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

func (*DecryptedAnswers) ProtoMessage

func (*DecryptedAnswers) ProtoMessage()

func (*DecryptedAnswers) Reset

func (m *DecryptedAnswers) Reset()

func (*DecryptedAnswers) Size

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

func (*DecryptedAnswers) String

func (m *DecryptedAnswers) String() string

func (*DecryptedAnswers) Unmarshal

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

func (*DecryptedAnswers) XXX_DiscardUnknown

func (m *DecryptedAnswers) XXX_DiscardUnknown()

func (*DecryptedAnswers) XXX_Marshal

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

func (*DecryptedAnswers) XXX_Merge

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

func (*DecryptedAnswers) XXX_Size

func (m *DecryptedAnswers) XXX_Size() int

func (*DecryptedAnswers) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	//    Params params = 1 [(gogoproto.nullable) = false];
	Codes     []Code     `protobuf:"bytes,2,rep,name=codes,proto3" json:"codes,omitempty"`
	Contracts []Contract `protobuf:"bytes,3,rep,name=contracts,proto3" json:"contracts,omitempty"`
	Sequences []Sequence `protobuf:"bytes,4,rep,name=sequences,proto3" json:"sequences,omitempty"`
}

GenesisState - genesis state of x/wasm

func GenesisFixture

func GenesisFixture(mutators ...func(*GenesisState)) GenesisState

func (*GenesisState) Descriptor

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

func (*GenesisState) GetCodes

func (m *GenesisState) GetCodes() []Code

func (*GenesisState) GetContracts

func (m *GenesisState) GetContracts() []Contract

func (*GenesisState) GetSequences

func (m *GenesisState) GetSequences() []Sequence

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (GenesisState) ValidateBasic

func (s GenesisState) ValidateBasic() error

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type IBCContractKeeper

type IBCContractKeeper interface {
	OnOpenChannel(
		ctx sdk.Context,
		contractAddr sdk.AccAddress,
		msg v1types.IBCChannelOpenMsg,
	) (string, error)
	OnConnectChannel(
		ctx sdk.Context,
		contractAddr sdk.AccAddress,
		msg v1types.IBCChannelConnectMsg,
	) error
	OnCloseChannel(
		ctx sdk.Context,
		contractAddr sdk.AccAddress,
		msg v1types.IBCChannelCloseMsg,
	) error
	OnRecvPacket(
		ctx sdk.Context,
		contractAddr sdk.AccAddress,
		msg v1types.IBCPacketReceiveMsg,
	) ([]byte, error)
	OnAckPacket(
		ctx sdk.Context,
		contractAddr sdk.AccAddress,
		acknowledgement v1types.IBCPacketAckMsg,
	) error
	OnTimeoutPacket(
		ctx sdk.Context,
		contractAddr sdk.AccAddress,
		msg v1types.IBCPacketTimeoutMsg,
	) error
	// ClaimCapability allows the transfer module to claim a capability
	// that IBC module passes to it
	ClaimCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) error
	// AuthenticateCapability wraps the scopedKeeper's AuthenticateCapability function
	AuthenticateCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) bool
}

IBCContractKeeper IBC lifecycle event handler

type ICS20TransferPortSource

type ICS20TransferPortSource interface {
	GetPort(ctx sdk.Context) string
}

ICS20TransferPortSource is a subset of the ibc transfer keeper.

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) ValidateBasic

func (m Model) ValidateBasic() 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 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)
}

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 canonical address of the sender
	Sender github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=sender,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"sender,omitempty"`
	// contract is the canonical address of the contract
	Contract         github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,2,opt,name=contract,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"contract,omitempty"`
	Msg              []byte                                        `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
	CallbackCodeHash string                                        `protobuf:"bytes,4,opt,name=callback_code_hash,json=callbackCodeHash,proto3" json:"callback_code_hash,omitempty"`
	SentFunds        github_com_cosmos_cosmos_sdk_types.Coins      `` /* 132-byte string literal not displayed */
	// used internally for encryption, should always be empty in a signed transaction
	CallbackSig []byte `protobuf:"bytes,6,opt,name=callback_sig,json=callbackSig,proto3" json:"callback_sig,omitempty"`
}

func (*MsgExecuteContract) Descriptor

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

func (MsgExecuteContract) GetSignBytes

func (msg MsgExecuteContract) GetSignBytes() []byte

func (MsgExecuteContract) GetSigners

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

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

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

func (*MsgExecuteContract) Unmarshal

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

func (MsgExecuteContract) ValidateBasic

func (msg MsgExecuteContract) ValidateBasic() error

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) 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 the canonical address of the sender
	Sender           github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=sender,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"sender,omitempty"`
	CallbackCodeHash string                                        `protobuf:"bytes,2,opt,name=callback_code_hash,json=callbackCodeHash,proto3" json:"callback_code_hash,omitempty"`
	CodeID           uint64                                        `protobuf:"varint,3,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"`
	Label            string                                        `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"`
	InitMsg          []byte                                        `protobuf:"bytes,5,opt,name=init_msg,json=initMsg,proto3" json:"init_msg,omitempty"`
	InitFunds        github_com_cosmos_cosmos_sdk_types.Coins      `` /* 132-byte string literal not displayed */
	// used internally for encryption, should always be empty in a signed transaction
	CallbackSig []byte `protobuf:"bytes,7,opt,name=callback_sig,json=callbackSig,proto3" json:"callback_sig,omitempty"`
}

func (*MsgInstantiateContract) Descriptor

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

func (MsgInstantiateContract) GetSignBytes

func (msg MsgInstantiateContract) GetSignBytes() []byte

func (MsgInstantiateContract) GetSigners

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

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

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

func (*MsgInstantiateContract) Unmarshal

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

func (MsgInstantiateContract) ValidateBasic

func (msg MsgInstantiateContract) ValidateBasic() error

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"`
	// Data contains base64-encoded bytes to returned from the contract
	Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
}

MsgInstantiateContractResponse return instantiation result data

func (*MsgInstantiateContractResponse) Descriptor

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

func (*MsgInstantiateContractResponse) GetAddress

func (m *MsgInstantiateContractResponse) GetAddress() 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 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)
}

MsgServer is the server API for Msg service.

type MsgStoreCode

type MsgStoreCode struct {
	// sender is the canonical address of the sender
	Sender github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=sender,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" 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"`
}

func (*MsgStoreCode) Descriptor

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

func (MsgStoreCode) GetSignBytes

func (msg MsgStoreCode) GetSignBytes() []byte

func (MsgStoreCode) GetSigners

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

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

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

func (*MsgStoreCode) Unmarshal

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

func (MsgStoreCode) ValidateBasic

func (msg MsgStoreCode) ValidateBasic() error

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) 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 QueryByCodeIDRequest

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

func (*QueryByCodeIDRequest) Descriptor

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

func (*QueryByCodeIDRequest) Equal

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

func (*QueryByCodeIDRequest) Marshal

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

func (*QueryByCodeIDRequest) MarshalTo

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

func (*QueryByCodeIDRequest) MarshalToSizedBuffer

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

func (*QueryByCodeIDRequest) ProtoMessage

func (*QueryByCodeIDRequest) ProtoMessage()

func (*QueryByCodeIDRequest) Reset

func (m *QueryByCodeIDRequest) Reset()

func (*QueryByCodeIDRequest) Size

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

func (*QueryByCodeIDRequest) String

func (m *QueryByCodeIDRequest) String() string

func (*QueryByCodeIDRequest) Unmarshal

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

func (*QueryByCodeIDRequest) XXX_DiscardUnknown

func (m *QueryByCodeIDRequest) XXX_DiscardUnknown()

func (*QueryByCodeIDRequest) XXX_Marshal

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

func (*QueryByCodeIDRequest) XXX_Merge

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

func (*QueryByCodeIDRequest) XXX_Size

func (m *QueryByCodeIDRequest) XXX_Size() int

func (*QueryByCodeIDRequest) XXX_Unmarshal

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

type QueryByContractAddressRequest

type QueryByContractAddressRequest struct {
	// address is the bech32 human readable address of the contract
	ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
}

func (*QueryByContractAddressRequest) Descriptor

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

func (*QueryByContractAddressRequest) Equal

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

func (*QueryByContractAddressRequest) Marshal

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

func (*QueryByContractAddressRequest) MarshalTo

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

func (*QueryByContractAddressRequest) MarshalToSizedBuffer

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

func (*QueryByContractAddressRequest) ProtoMessage

func (*QueryByContractAddressRequest) ProtoMessage()

func (*QueryByContractAddressRequest) Reset

func (m *QueryByContractAddressRequest) Reset()

func (*QueryByContractAddressRequest) Size

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

func (*QueryByContractAddressRequest) String

func (*QueryByContractAddressRequest) Unmarshal

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

func (*QueryByContractAddressRequest) XXX_DiscardUnknown

func (m *QueryByContractAddressRequest) XXX_DiscardUnknown()

func (*QueryByContractAddressRequest) XXX_Marshal

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

func (*QueryByContractAddressRequest) XXX_Merge

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

func (*QueryByContractAddressRequest) XXX_Size

func (m *QueryByContractAddressRequest) XXX_Size() int

func (*QueryByContractAddressRequest) XXX_Unmarshal

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

type QueryByLabelRequest

type QueryByLabelRequest struct {
	Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
}

func (*QueryByLabelRequest) Descriptor

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

func (*QueryByLabelRequest) Equal

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

func (*QueryByLabelRequest) Marshal

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

func (*QueryByLabelRequest) MarshalTo

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

func (*QueryByLabelRequest) MarshalToSizedBuffer

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

func (*QueryByLabelRequest) ProtoMessage

func (*QueryByLabelRequest) ProtoMessage()

func (*QueryByLabelRequest) Reset

func (m *QueryByLabelRequest) Reset()

func (*QueryByLabelRequest) Size

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

func (*QueryByLabelRequest) String

func (m *QueryByLabelRequest) String() string

func (*QueryByLabelRequest) Unmarshal

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

func (*QueryByLabelRequest) XXX_DiscardUnknown

func (m *QueryByLabelRequest) XXX_DiscardUnknown()

func (*QueryByLabelRequest) XXX_Marshal

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

func (*QueryByLabelRequest) XXX_Merge

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

func (*QueryByLabelRequest) XXX_Size

func (m *QueryByLabelRequest) XXX_Size() int

func (*QueryByLabelRequest) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Query contract info by address
	ContractInfo(ctx context.Context, in *QueryByContractAddressRequest, opts ...grpc.CallOption) (*QueryContractInfoResponse, error)
	// Query code info by id
	ContractsByCodeID(ctx context.Context, in *QueryByCodeIDRequest, opts ...grpc.CallOption) (*QueryContractsByCodeIDResponse, error)
	// Query secret contract
	QuerySecretContract(ctx context.Context, in *QuerySecretContractRequest, opts ...grpc.CallOption) (*QuerySecretContractResponse, error)
	// Query a specific contract code by id
	Code(ctx context.Context, in *QueryByCodeIDRequest, opts ...grpc.CallOption) (*QueryCodeResponse, error)
	// Query all contract codes on-chain
	Codes(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*QueryCodesResponse, error)
	// Query code hash by contract address
	CodeHashByContractAddress(ctx context.Context, in *QueryByContractAddressRequest, opts ...grpc.CallOption) (*QueryCodeHashResponse, error)
	// Query code hash by code id
	CodeHashByCodeID(ctx context.Context, in *QueryByCodeIDRequest, opts ...grpc.CallOption) (*QueryCodeHashResponse, error)
	// Query contract label by address
	LabelByAddress(ctx context.Context, in *QueryByContractAddressRequest, opts ...grpc.CallOption) (*QueryContractLabelResponse, error)
	// Query contract address by label
	AddressByLabel(ctx context.Context, in *QueryByLabelRequest, opts ...grpc.CallOption) (*QueryContractAddressResponse, 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 QueryCodeHashResponse

type QueryCodeHashResponse struct {
	CodeHash string `protobuf:"bytes,1,opt,name=code_hash,json=codeHash,proto3" json:"code_hash,omitempty"`
}

func (*QueryCodeHashResponse) Descriptor

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

func (*QueryCodeHashResponse) Equal

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

func (*QueryCodeHashResponse) Marshal

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

func (*QueryCodeHashResponse) MarshalTo

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

func (*QueryCodeHashResponse) MarshalToSizedBuffer

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

func (*QueryCodeHashResponse) ProtoMessage

func (*QueryCodeHashResponse) ProtoMessage()

func (*QueryCodeHashResponse) Reset

func (m *QueryCodeHashResponse) Reset()

func (*QueryCodeHashResponse) Size

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

func (*QueryCodeHashResponse) String

func (m *QueryCodeHashResponse) String() string

func (*QueryCodeHashResponse) Unmarshal

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

func (*QueryCodeHashResponse) XXX_DiscardUnknown

func (m *QueryCodeHashResponse) XXX_DiscardUnknown()

func (*QueryCodeHashResponse) XXX_Marshal

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

func (*QueryCodeHashResponse) XXX_Merge

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

func (*QueryCodeHashResponse) XXX_Size

func (m *QueryCodeHashResponse) XXX_Size() int

func (*QueryCodeHashResponse) XXX_Unmarshal

func (m *QueryCodeHashResponse) 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:""`
	Wasm              []byte `protobuf:"bytes,2,opt,name=wasm,proto3" json:"wasm,omitempty"`
}

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 QueryCodesResponse

type QueryCodesResponse struct {
	CodeInfos []CodeInfoResponse `protobuf:"bytes,1,rep,name=code_infos,json=codeInfos,proto3" json:"code_infos"`
}

func (*QueryCodesResponse) Descriptor

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

func (*QueryCodesResponse) Equal

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

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 QueryContractAddressResponse

type QueryContractAddressResponse struct {
	// address is the bech32 human readable address of the contract
	ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
}

func (*QueryContractAddressResponse) Descriptor

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

func (*QueryContractAddressResponse) Equal

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

func (*QueryContractAddressResponse) Marshal

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

func (*QueryContractAddressResponse) MarshalTo

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

func (*QueryContractAddressResponse) MarshalToSizedBuffer

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

func (*QueryContractAddressResponse) ProtoMessage

func (*QueryContractAddressResponse) ProtoMessage()

func (*QueryContractAddressResponse) Reset

func (m *QueryContractAddressResponse) Reset()

func (*QueryContractAddressResponse) Size

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

func (*QueryContractAddressResponse) String

func (*QueryContractAddressResponse) Unmarshal

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

func (*QueryContractAddressResponse) XXX_DiscardUnknown

func (m *QueryContractAddressResponse) XXX_DiscardUnknown()

func (*QueryContractAddressResponse) XXX_Marshal

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

func (*QueryContractAddressResponse) XXX_Merge

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

func (*QueryContractAddressResponse) XXX_Size

func (m *QueryContractAddressResponse) XXX_Size() int

func (*QueryContractAddressResponse) XXX_Unmarshal

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

type QueryContractInfoResponse

type QueryContractInfoResponse struct {
	// contract_address is the bech32 human readable address of the contract
	ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	*ContractInfo   `protobuf:"bytes,2,opt,name=ContractInfo,proto3,embedded=ContractInfo" 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 QueryContractLabelResponse

type QueryContractLabelResponse struct {
	Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
}

func (*QueryContractLabelResponse) Descriptor

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

func (*QueryContractLabelResponse) Equal

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

func (*QueryContractLabelResponse) Marshal

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

func (*QueryContractLabelResponse) MarshalTo

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

func (*QueryContractLabelResponse) MarshalToSizedBuffer

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

func (*QueryContractLabelResponse) ProtoMessage

func (*QueryContractLabelResponse) ProtoMessage()

func (*QueryContractLabelResponse) Reset

func (m *QueryContractLabelResponse) Reset()

func (*QueryContractLabelResponse) Size

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

func (*QueryContractLabelResponse) String

func (m *QueryContractLabelResponse) String() string

func (*QueryContractLabelResponse) Unmarshal

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

func (*QueryContractLabelResponse) XXX_DiscardUnknown

func (m *QueryContractLabelResponse) XXX_DiscardUnknown()

func (*QueryContractLabelResponse) XXX_Marshal

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

func (*QueryContractLabelResponse) XXX_Merge

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

func (*QueryContractLabelResponse) XXX_Size

func (m *QueryContractLabelResponse) XXX_Size() int

func (*QueryContractLabelResponse) XXX_Unmarshal

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

type QueryContractsByCodeIDResponse

type QueryContractsByCodeIDResponse struct {
	ContractInfos []ContractInfoWithAddress `protobuf:"bytes,1,rep,name=contract_infos,json=contractInfos,proto3" json:"contract_infos"`
}

func (*QueryContractsByCodeIDResponse) Descriptor

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

func (*QueryContractsByCodeIDResponse) Equal

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

func (*QueryContractsByCodeIDResponse) Marshal

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

func (*QueryContractsByCodeIDResponse) MarshalTo

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

func (*QueryContractsByCodeIDResponse) MarshalToSizedBuffer

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

func (*QueryContractsByCodeIDResponse) ProtoMessage

func (*QueryContractsByCodeIDResponse) ProtoMessage()

func (*QueryContractsByCodeIDResponse) Reset

func (m *QueryContractsByCodeIDResponse) Reset()

func (*QueryContractsByCodeIDResponse) Size

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

func (*QueryContractsByCodeIDResponse) String

func (*QueryContractsByCodeIDResponse) Unmarshal

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

func (*QueryContractsByCodeIDResponse) XXX_DiscardUnknown

func (m *QueryContractsByCodeIDResponse) XXX_DiscardUnknown()

func (*QueryContractsByCodeIDResponse) XXX_Marshal

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

func (*QueryContractsByCodeIDResponse) XXX_Merge

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

func (*QueryContractsByCodeIDResponse) XXX_Size

func (m *QueryContractsByCodeIDResponse) XXX_Size() int

func (*QueryContractsByCodeIDResponse) XXX_Unmarshal

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

type QuerySecretContractRequest

type QuerySecretContractRequest struct {
	// address is the bech32 human readable address of the contract
	ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	Query           []byte `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"`
}

func (*QuerySecretContractRequest) Descriptor

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

func (*QuerySecretContractRequest) Equal

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

func (*QuerySecretContractRequest) Marshal

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

func (*QuerySecretContractRequest) MarshalTo

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

func (*QuerySecretContractRequest) MarshalToSizedBuffer

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

func (*QuerySecretContractRequest) ProtoMessage

func (*QuerySecretContractRequest) ProtoMessage()

func (*QuerySecretContractRequest) Reset

func (m *QuerySecretContractRequest) Reset()

func (*QuerySecretContractRequest) Size

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

func (*QuerySecretContractRequest) String

func (m *QuerySecretContractRequest) String() string

func (*QuerySecretContractRequest) Unmarshal

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

func (*QuerySecretContractRequest) XXX_DiscardUnknown

func (m *QuerySecretContractRequest) XXX_DiscardUnknown()

func (*QuerySecretContractRequest) XXX_Marshal

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

func (*QuerySecretContractRequest) XXX_Merge

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

func (*QuerySecretContractRequest) XXX_Size

func (m *QuerySecretContractRequest) XXX_Size() int

func (*QuerySecretContractRequest) XXX_Unmarshal

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

type QuerySecretContractResponse

type QuerySecretContractResponse struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}

func (*QuerySecretContractResponse) Descriptor

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

func (*QuerySecretContractResponse) Equal

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

func (*QuerySecretContractResponse) Marshal

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

func (*QuerySecretContractResponse) MarshalTo

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

func (*QuerySecretContractResponse) MarshalToSizedBuffer

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

func (*QuerySecretContractResponse) ProtoMessage

func (*QuerySecretContractResponse) ProtoMessage()

func (*QuerySecretContractResponse) Reset

func (m *QuerySecretContractResponse) Reset()

func (*QuerySecretContractResponse) Size

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

func (*QuerySecretContractResponse) String

func (m *QuerySecretContractResponse) String() string

func (*QuerySecretContractResponse) Unmarshal

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

func (*QuerySecretContractResponse) XXX_DiscardUnknown

func (m *QuerySecretContractResponse) XXX_DiscardUnknown()

func (*QuerySecretContractResponse) XXX_Marshal

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

func (*QuerySecretContractResponse) XXX_Merge

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

func (*QuerySecretContractResponse) XXX_Size

func (m *QuerySecretContractResponse) XXX_Size() int

func (*QuerySecretContractResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Query contract info by address
	ContractInfo(context.Context, *QueryByContractAddressRequest) (*QueryContractInfoResponse, error)
	// Query code info by id
	ContractsByCodeID(context.Context, *QueryByCodeIDRequest) (*QueryContractsByCodeIDResponse, error)
	// Query secret contract
	QuerySecretContract(context.Context, *QuerySecretContractRequest) (*QuerySecretContractResponse, error)
	// Query a specific contract code by id
	Code(context.Context, *QueryByCodeIDRequest) (*QueryCodeResponse, error)
	// Query all contract codes on-chain
	Codes(context.Context, *emptypb.Empty) (*QueryCodesResponse, error)
	// Query code hash by contract address
	CodeHashByContractAddress(context.Context, *QueryByContractAddressRequest) (*QueryCodeHashResponse, error)
	// Query code hash by code id
	CodeHashByCodeID(context.Context, *QueryByCodeIDRequest) (*QueryCodeHashResponse, error)
	// Query contract label by address
	LabelByAddress(context.Context, *QueryByContractAddressRequest) (*QueryContractLabelResponse, error)
	// Query contract address by label
	AddressByLabel(context.Context, *QueryByLabelRequest) (*QueryContractAddressResponse, error)
}

QueryServer is the server API for Query service.

type SecretMsg

type SecretMsg struct {
	CodeHash []byte
	Msg      []byte
}

func NewSecretMsg

func NewSecretMsg(codeHash []byte, msg []byte) SecretMsg

func (SecretMsg) Serialize

func (m SecretMsg) Serialize() []byte

type Sequence

type Sequence struct {
	IDKey []byte `protobuf:"bytes,1,opt,name=id_key,json=idKey,proto3" json:"id_key,omitempty"`
	Value uint64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
}

Sequence id and value of a counter

func (*Sequence) Descriptor

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

func (*Sequence) GetIDKey

func (m *Sequence) GetIDKey() []byte

func (*Sequence) GetValue

func (m *Sequence) GetValue() uint64

func (*Sequence) Marshal

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

func (*Sequence) MarshalTo

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

func (*Sequence) MarshalToSizedBuffer

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

func (*Sequence) ProtoMessage

func (*Sequence) ProtoMessage()

func (*Sequence) Reset

func (m *Sequence) Reset()

func (*Sequence) Size

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

func (*Sequence) String

func (m *Sequence) String() string

func (*Sequence) Unmarshal

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

func (Sequence) ValidateBasic

func (s Sequence) ValidateBasic() error

func (*Sequence) XXX_DiscardUnknown

func (m *Sequence) XXX_DiscardUnknown()

func (*Sequence) XXX_Marshal

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

func (*Sequence) XXX_Merge

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

func (*Sequence) XXX_Size

func (m *Sequence) XXX_Size() int

func (*Sequence) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) ExecuteContract

func (*UnimplementedMsgServer) InstantiateContract

func (*UnimplementedMsgServer) StoreCode

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) AddressByLabel

func (*UnimplementedQueryServer) Code

func (*UnimplementedQueryServer) CodeHashByCodeID

func (*UnimplementedQueryServer) CodeHashByContractAddress

func (*UnimplementedQueryServer) Codes

func (*UnimplementedQueryServer) ContractInfo

func (*UnimplementedQueryServer) ContractsByCodeID

func (*UnimplementedQueryServer) LabelByAddress

func (*UnimplementedQueryServer) QuerySecretContract

type WasmConfig

type WasmConfig struct {
	SmartQueryGasLimit uint64
	CacheSize          uint64
	EnclaveCacheSize   uint8
}

WasmConfig is the extra config required for wasm

func DefaultWasmConfig

func DefaultWasmConfig() *WasmConfig

DefaultWasmConfig returns the default settings for WasmConfig

func GetConfig

func GetConfig(appOpts servertypes.AppOptions) *WasmConfig

GetConfig load config values from the app options

Jump to

Keyboard shortcuts

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