Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func ContainsEnclaveError(str string) bool
- func ContainsEncryptedString(str string) bool
- func ContractLogsToSdkEvents(logs []wasmTypesV010.LogAttribute, contractAddr sdk.AccAddress) sdk.Events
- func ErrContainsQueryError(err error) bool
- func GetCodeKey(codeID uint64) []byte
- func GetContractAddressKey(addr sdk.AccAddress) []byte
- func GetContractEnclaveKey(addr sdk.AccAddress) []byte
- func GetContractLabelPrefix(addr string) []byte
- func GetContractStorePrefixKey(addr sdk.AccAddress) []byte
- func IsEncryptedErrorCode(code uint32) bool
- func NewCustomEvents(evts wasmTypesV1.Events, contractAddr sdk.AccAddress) (sdk.Events, error)
- func NewEnv(ctx sdk.Context, creator sdk.AccAddress, deposit sdk.Coins, ...) wasmTypes.Env
- func NewVerificationInfo(signBytes []byte, signMode sdktxsigning.SignMode, modeInfo []byte, ...) wasmTypes.VerificationInfo
- func NewWasmCoins(cosmosCoins sdk.Coins) (wasmCoins []wasmTypes.Coin)
- func OnlyGenesisFields(info *ContractInfo)
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func TXCounter(ctx sdk.Context) (uint32, bool)
- func ValidateGenesis(data GenesisState) error
- func WithSHA256CodeHash(wasmCode []byte) func(info *CodeInfo)
- func WithTXCounter(ctx sdk.Context, counter uint32) sdk.Context
- type AbsoluteTxPosition
- func (*AbsoluteTxPosition) Descriptor() ([]byte, []int)
- func (this *AbsoluteTxPosition) Equal(that interface{}) bool
- func (a *AbsoluteTxPosition) LessThan(b *AbsoluteTxPosition) bool
- func (m *AbsoluteTxPosition) Marshal() (dAtA []byte, err error)
- func (m *AbsoluteTxPosition) MarshalTo(dAtA []byte) (int, error)
- func (m *AbsoluteTxPosition) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AbsoluteTxPosition) ProtoMessage()
- func (m *AbsoluteTxPosition) Reset()
- func (m *AbsoluteTxPosition) Size() (n int)
- func (m *AbsoluteTxPosition) String() string
- func (m *AbsoluteTxPosition) Unmarshal(dAtA []byte) error
- func (m *AbsoluteTxPosition) XXX_DiscardUnknown()
- func (m *AbsoluteTxPosition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AbsoluteTxPosition) XXX_Merge(src proto.Message)
- func (m *AbsoluteTxPosition) XXX_Size() int
- func (m *AbsoluteTxPosition) XXX_Unmarshal(b []byte) error
- type AccessType
- type AccessTypeParam
- func (*AccessTypeParam) Descriptor() ([]byte, []int)
- func (this *AccessTypeParam) Equal(that interface{}) bool
- func (m *AccessTypeParam) Marshal() (dAtA []byte, err error)
- func (m *AccessTypeParam) MarshalTo(dAtA []byte) (int, error)
- func (m *AccessTypeParam) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AccessTypeParam) ProtoMessage()
- func (m *AccessTypeParam) Reset()
- func (m *AccessTypeParam) Size() (n int)
- func (m *AccessTypeParam) String() string
- func (m *AccessTypeParam) Unmarshal(dAtA []byte) error
- func (m *AccessTypeParam) XXX_DiscardUnknown()
- func (m *AccessTypeParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AccessTypeParam) XXX_Merge(src proto.Message)
- func (m *AccessTypeParam) XXX_Size() int
- func (m *AccessTypeParam) XXX_Unmarshal(b []byte) error
- type ChannelKeeper
- type Code
- func (*Code) Descriptor() ([]byte, []int)
- func (m *Code) GetCodeBytes() []byte
- func (m *Code) GetCodeID() uint64
- func (m *Code) GetCodeInfo() CodeInfo
- func (m *Code) Marshal() (dAtA []byte, err error)
- func (m *Code) MarshalTo(dAtA []byte) (int, error)
- func (m *Code) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Code) ProtoMessage()
- func (m *Code) Reset()
- func (m *Code) Size() (n int)
- func (m *Code) String() string
- func (m *Code) Unmarshal(dAtA []byte) error
- func (c Code) ValidateBasic() error
- func (m *Code) XXX_DiscardUnknown()
- func (m *Code) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Code) XXX_Merge(src proto.Message)
- func (m *Code) XXX_Size() int
- func (m *Code) XXX_Unmarshal(b []byte) error
- type CodeInfo
- func (*CodeInfo) Descriptor() ([]byte, []int)
- func (this *CodeInfo) Equal(that interface{}) bool
- func (m *CodeInfo) Marshal() (dAtA []byte, err error)
- func (m *CodeInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *CodeInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CodeInfo) ProtoMessage()
- func (m *CodeInfo) Reset()
- func (m *CodeInfo) Size() (n int)
- func (m *CodeInfo) String() string
- func (m *CodeInfo) Unmarshal(dAtA []byte) error
- func (c CodeInfo) ValidateBasic() error
- func (m *CodeInfo) XXX_DiscardUnknown()
- func (m *CodeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CodeInfo) XXX_Merge(src proto.Message)
- func (m *CodeInfo) XXX_Size() int
- func (m *CodeInfo) XXX_Unmarshal(b []byte) error
- type CodeInfoResponse
- func (*CodeInfoResponse) Descriptor() ([]byte, []int)
- func (this *CodeInfoResponse) Equal(that interface{}) bool
- func (m *CodeInfoResponse) Marshal() (dAtA []byte, err error)
- func (m *CodeInfoResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *CodeInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CodeInfoResponse) ProtoMessage()
- func (m *CodeInfoResponse) Reset()
- func (m *CodeInfoResponse) Size() (n int)
- func (m *CodeInfoResponse) String() string
- func (m *CodeInfoResponse) Unmarshal(dAtA []byte) error
- func (m *CodeInfoResponse) XXX_DiscardUnknown()
- func (m *CodeInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CodeInfoResponse) XXX_Merge(src proto.Message)
- func (m *CodeInfoResponse) XXX_Size() int
- func (m *CodeInfoResponse) XXX_Unmarshal(b []byte) error
- type Contract
- func (*Contract) Descriptor() ([]byte, []int)
- func (m *Contract) GetContractAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (m *Contract) GetContractCustomInfo() *ContractCustomInfo
- func (m *Contract) GetContractInfo() ContractInfo
- func (m *Contract) GetContractState() []Model
- func (m *Contract) Marshal() (dAtA []byte, err error)
- func (m *Contract) MarshalTo(dAtA []byte) (int, error)
- func (m *Contract) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Contract) ProtoMessage()
- func (m *Contract) Reset()
- func (m *Contract) Size() (n int)
- func (m *Contract) String() string
- func (m *Contract) Unmarshal(dAtA []byte) error
- func (c Contract) ValidateBasic() error
- func (m *Contract) XXX_DiscardUnknown()
- func (m *Contract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Contract) XXX_Merge(src proto.Message)
- func (m *Contract) XXX_Size() int
- func (m *Contract) XXX_Unmarshal(b []byte) error
- type ContractCustomInfo
- func (*ContractCustomInfo) Descriptor() ([]byte, []int)
- func (this *ContractCustomInfo) Equal(that interface{}) bool
- func (m *ContractCustomInfo) Marshal() (dAtA []byte, err error)
- func (m *ContractCustomInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *ContractCustomInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ContractCustomInfo) ProtoMessage()
- func (m *ContractCustomInfo) Reset()
- func (m *ContractCustomInfo) Size() (n int)
- func (m *ContractCustomInfo) String() string
- func (m *ContractCustomInfo) Unmarshal(dAtA []byte) error
- func (m *ContractCustomInfo) XXX_DiscardUnknown()
- func (m *ContractCustomInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ContractCustomInfo) XXX_Merge(src proto.Message)
- func (m *ContractCustomInfo) XXX_Size() int
- func (m *ContractCustomInfo) XXX_Unmarshal(b []byte) error
- type ContractInfo
- func (*ContractInfo) Descriptor() ([]byte, []int)
- func (this *ContractInfo) Equal(that interface{}) bool
- func (m *ContractInfo) Marshal() (dAtA []byte, err error)
- func (m *ContractInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *ContractInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ContractInfo) ProtoMessage()
- func (m *ContractInfo) Reset()
- func (m *ContractInfo) Size() (n int)
- func (m *ContractInfo) String() string
- func (m *ContractInfo) Unmarshal(dAtA []byte) error
- func (c *ContractInfo) ValidateBasic() error
- func (m *ContractInfo) XXX_DiscardUnknown()
- func (m *ContractInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ContractInfo) XXX_Merge(src proto.Message)
- func (m *ContractInfo) XXX_Size() int
- func (m *ContractInfo) XXX_Unmarshal(b []byte) error
- type ContractInfoWithAddress
- func (*ContractInfoWithAddress) Descriptor() ([]byte, []int)
- func (this *ContractInfoWithAddress) Equal(that interface{}) bool
- func (m *ContractInfoWithAddress) Marshal() (dAtA []byte, err error)
- func (m *ContractInfoWithAddress) MarshalTo(dAtA []byte) (int, error)
- func (m *ContractInfoWithAddress) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ContractInfoWithAddress) ProtoMessage()
- func (m *ContractInfoWithAddress) Reset()
- func (m *ContractInfoWithAddress) Size() (n int)
- func (m *ContractInfoWithAddress) String() string
- func (m *ContractInfoWithAddress) Unmarshal(dAtA []byte) error
- func (m *ContractInfoWithAddress) XXX_DiscardUnknown()
- func (m *ContractInfoWithAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ContractInfoWithAddress) XXX_Merge(src proto.Message)
- func (m *ContractInfoWithAddress) XXX_Size() int
- func (m *ContractInfoWithAddress) XXX_Unmarshal(b []byte) error
- type ContractKey
- type DecryptedAnswer
- func (*DecryptedAnswer) Descriptor() ([]byte, []int)
- func (m *DecryptedAnswer) Marshal() (dAtA []byte, err error)
- func (m *DecryptedAnswer) MarshalTo(dAtA []byte) (int, error)
- func (m *DecryptedAnswer) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DecryptedAnswer) ProtoMessage()
- func (m *DecryptedAnswer) Reset()
- func (m *DecryptedAnswer) Size() (n int)
- func (m *DecryptedAnswer) String() string
- func (m *DecryptedAnswer) Unmarshal(dAtA []byte) error
- func (m *DecryptedAnswer) XXX_DiscardUnknown()
- func (m *DecryptedAnswer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DecryptedAnswer) XXX_Merge(src proto.Message)
- func (m *DecryptedAnswer) XXX_Size() int
- func (m *DecryptedAnswer) XXX_Unmarshal(b []byte) error
- type DecryptedAnswers
- func (*DecryptedAnswers) Descriptor() ([]byte, []int)
- func (m *DecryptedAnswers) Marshal() (dAtA []byte, err error)
- func (m *DecryptedAnswers) MarshalTo(dAtA []byte) (int, error)
- func (m *DecryptedAnswers) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DecryptedAnswers) ProtoMessage()
- func (m *DecryptedAnswers) Reset()
- func (m *DecryptedAnswers) Size() (n int)
- func (m *DecryptedAnswers) String() string
- func (m *DecryptedAnswers) Unmarshal(dAtA []byte) error
- func (m *DecryptedAnswers) XXX_DiscardUnknown()
- func (m *DecryptedAnswers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DecryptedAnswers) XXX_Merge(src proto.Message)
- func (m *DecryptedAnswers) XXX_Size() int
- func (m *DecryptedAnswers) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetCodes() []Code
- func (m *GenesisState) GetContracts() []Contract
- func (m *GenesisState) GetSequences() []Sequence
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (s GenesisState) ValidateBasic() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type IBCContractKeeper
- type ICS20TransferPortSource
- type Model
- func (*Model) Descriptor() ([]byte, []int)
- func (this *Model) Equal(that interface{}) bool
- func (m *Model) Marshal() (dAtA []byte, err error)
- func (m *Model) MarshalTo(dAtA []byte) (int, error)
- func (m *Model) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Model) ProtoMessage()
- func (m *Model) Reset()
- func (m *Model) Size() (n int)
- func (m *Model) String() string
- func (m *Model) Unmarshal(dAtA []byte) error
- func (m Model) ValidateBasic() error
- func (m *Model) XXX_DiscardUnknown()
- func (m *Model) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Model) XXX_Merge(src proto.Message)
- func (m *Model) XXX_Size() int
- func (m *Model) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgExecuteContract
- func (*MsgExecuteContract) Descriptor() ([]byte, []int)
- func (msg MsgExecuteContract) GetSignBytes() []byte
- func (msg MsgExecuteContract) GetSigners() []sdk.AccAddress
- func (m *MsgExecuteContract) Marshal() (dAtA []byte, err error)
- func (m *MsgExecuteContract) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgExecuteContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgExecuteContract) ProtoMessage()
- func (m *MsgExecuteContract) Reset()
- func (msg MsgExecuteContract) Route() string
- func (m *MsgExecuteContract) Size() (n int)
- func (m *MsgExecuteContract) String() string
- func (msg MsgExecuteContract) Type() string
- func (m *MsgExecuteContract) Unmarshal(dAtA []byte) error
- func (msg MsgExecuteContract) ValidateBasic() error
- func (m *MsgExecuteContract) XXX_DiscardUnknown()
- func (m *MsgExecuteContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgExecuteContract) XXX_Merge(src proto.Message)
- func (m *MsgExecuteContract) XXX_Size() int
- func (m *MsgExecuteContract) XXX_Unmarshal(b []byte) error
- type MsgExecuteContractResponse
- func (*MsgExecuteContractResponse) Descriptor() ([]byte, []int)
- func (m *MsgExecuteContractResponse) GetData() []byte
- func (m *MsgExecuteContractResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgExecuteContractResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgExecuteContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgExecuteContractResponse) ProtoMessage()
- func (m *MsgExecuteContractResponse) Reset()
- func (m *MsgExecuteContractResponse) Size() (n int)
- func (m *MsgExecuteContractResponse) String() string
- func (m *MsgExecuteContractResponse) Unmarshal(dAtA []byte) error
- func (m *MsgExecuteContractResponse) XXX_DiscardUnknown()
- func (m *MsgExecuteContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgExecuteContractResponse) XXX_Merge(src proto.Message)
- func (m *MsgExecuteContractResponse) XXX_Size() int
- func (m *MsgExecuteContractResponse) XXX_Unmarshal(b []byte) error
- type MsgInstantiateContract
- func (*MsgInstantiateContract) Descriptor() ([]byte, []int)
- func (msg MsgInstantiateContract) GetSignBytes() []byte
- func (msg MsgInstantiateContract) GetSigners() []sdk.AccAddress
- func (m *MsgInstantiateContract) Marshal() (dAtA []byte, err error)
- func (m *MsgInstantiateContract) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgInstantiateContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgInstantiateContract) ProtoMessage()
- func (m *MsgInstantiateContract) Reset()
- func (msg MsgInstantiateContract) Route() string
- func (m *MsgInstantiateContract) Size() (n int)
- func (m *MsgInstantiateContract) String() string
- func (msg MsgInstantiateContract) Type() string
- func (m *MsgInstantiateContract) Unmarshal(dAtA []byte) error
- func (msg MsgInstantiateContract) ValidateBasic() error
- func (m *MsgInstantiateContract) XXX_DiscardUnknown()
- func (m *MsgInstantiateContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgInstantiateContract) XXX_Merge(src proto.Message)
- func (m *MsgInstantiateContract) XXX_Size() int
- func (m *MsgInstantiateContract) XXX_Unmarshal(b []byte) error
- type MsgInstantiateContractResponse
- func (*MsgInstantiateContractResponse) Descriptor() ([]byte, []int)
- func (m *MsgInstantiateContractResponse) GetAddress() string
- func (m *MsgInstantiateContractResponse) GetData() []byte
- func (m *MsgInstantiateContractResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgInstantiateContractResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgInstantiateContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgInstantiateContractResponse) ProtoMessage()
- func (m *MsgInstantiateContractResponse) Reset()
- func (m *MsgInstantiateContractResponse) Size() (n int)
- func (m *MsgInstantiateContractResponse) String() string
- func (m *MsgInstantiateContractResponse) Unmarshal(dAtA []byte) error
- func (m *MsgInstantiateContractResponse) XXX_DiscardUnknown()
- func (m *MsgInstantiateContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgInstantiateContractResponse) XXX_Merge(src proto.Message)
- func (m *MsgInstantiateContractResponse) XXX_Size() int
- func (m *MsgInstantiateContractResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgStoreCode
- func (*MsgStoreCode) Descriptor() ([]byte, []int)
- func (msg MsgStoreCode) GetSignBytes() []byte
- func (msg MsgStoreCode) GetSigners() []sdk.AccAddress
- func (m *MsgStoreCode) Marshal() (dAtA []byte, err error)
- func (m *MsgStoreCode) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgStoreCode) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgStoreCode) ProtoMessage()
- func (m *MsgStoreCode) Reset()
- func (msg MsgStoreCode) Route() string
- func (m *MsgStoreCode) Size() (n int)
- func (m *MsgStoreCode) String() string
- func (msg MsgStoreCode) Type() string
- func (m *MsgStoreCode) Unmarshal(dAtA []byte) error
- func (msg MsgStoreCode) ValidateBasic() error
- func (m *MsgStoreCode) XXX_DiscardUnknown()
- func (m *MsgStoreCode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgStoreCode) XXX_Merge(src proto.Message)
- func (m *MsgStoreCode) XXX_Size() int
- func (m *MsgStoreCode) XXX_Unmarshal(b []byte) error
- type MsgStoreCodeResponse
- func (*MsgStoreCodeResponse) Descriptor() ([]byte, []int)
- func (m *MsgStoreCodeResponse) GetCodeID() uint64
- func (m *MsgStoreCodeResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgStoreCodeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgStoreCodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgStoreCodeResponse) ProtoMessage()
- func (m *MsgStoreCodeResponse) Reset()
- func (m *MsgStoreCodeResponse) Size() (n int)
- func (m *MsgStoreCodeResponse) String() string
- func (m *MsgStoreCodeResponse) Unmarshal(dAtA []byte) error
- func (m *MsgStoreCodeResponse) XXX_DiscardUnknown()
- func (m *MsgStoreCodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgStoreCodeResponse) XXX_Merge(src proto.Message)
- func (m *MsgStoreCodeResponse) XXX_Size() int
- func (m *MsgStoreCodeResponse) XXX_Unmarshal(b []byte) error
- type QueryByCodeIdRequest
- func (*QueryByCodeIdRequest) Descriptor() ([]byte, []int)
- func (this *QueryByCodeIdRequest) Equal(that interface{}) bool
- func (m *QueryByCodeIdRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryByCodeIdRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryByCodeIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryByCodeIdRequest) ProtoMessage()
- func (m *QueryByCodeIdRequest) Reset()
- func (m *QueryByCodeIdRequest) Size() (n int)
- func (m *QueryByCodeIdRequest) String() string
- func (m *QueryByCodeIdRequest) Unmarshal(dAtA []byte) error
- func (m *QueryByCodeIdRequest) XXX_DiscardUnknown()
- func (m *QueryByCodeIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryByCodeIdRequest) XXX_Merge(src proto.Message)
- func (m *QueryByCodeIdRequest) XXX_Size() int
- func (m *QueryByCodeIdRequest) XXX_Unmarshal(b []byte) error
- type QueryByContractAddressRequest
- func (*QueryByContractAddressRequest) Descriptor() ([]byte, []int)
- func (this *QueryByContractAddressRequest) Equal(that interface{}) bool
- func (m *QueryByContractAddressRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryByContractAddressRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryByContractAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryByContractAddressRequest) ProtoMessage()
- func (m *QueryByContractAddressRequest) Reset()
- func (m *QueryByContractAddressRequest) Size() (n int)
- func (m *QueryByContractAddressRequest) String() string
- func (m *QueryByContractAddressRequest) Unmarshal(dAtA []byte) error
- func (m *QueryByContractAddressRequest) XXX_DiscardUnknown()
- func (m *QueryByContractAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryByContractAddressRequest) XXX_Merge(src proto.Message)
- func (m *QueryByContractAddressRequest) XXX_Size() int
- func (m *QueryByContractAddressRequest) XXX_Unmarshal(b []byte) error
- type QueryByLabelRequest
- func (*QueryByLabelRequest) Descriptor() ([]byte, []int)
- func (this *QueryByLabelRequest) Equal(that interface{}) bool
- func (m *QueryByLabelRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryByLabelRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryByLabelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryByLabelRequest) ProtoMessage()
- func (m *QueryByLabelRequest) Reset()
- func (m *QueryByLabelRequest) Size() (n int)
- func (m *QueryByLabelRequest) String() string
- func (m *QueryByLabelRequest) Unmarshal(dAtA []byte) error
- func (m *QueryByLabelRequest) XXX_DiscardUnknown()
- func (m *QueryByLabelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryByLabelRequest) XXX_Merge(src proto.Message)
- func (m *QueryByLabelRequest) XXX_Size() int
- func (m *QueryByLabelRequest) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryCodeHashResponse
- func (*QueryCodeHashResponse) Descriptor() ([]byte, []int)
- func (this *QueryCodeHashResponse) Equal(that interface{}) bool
- func (m *QueryCodeHashResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCodeHashResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCodeHashResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCodeHashResponse) ProtoMessage()
- func (m *QueryCodeHashResponse) Reset()
- func (m *QueryCodeHashResponse) Size() (n int)
- func (m *QueryCodeHashResponse) String() string
- func (m *QueryCodeHashResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCodeHashResponse) XXX_DiscardUnknown()
- func (m *QueryCodeHashResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCodeHashResponse) XXX_Merge(src proto.Message)
- func (m *QueryCodeHashResponse) XXX_Size() int
- func (m *QueryCodeHashResponse) XXX_Unmarshal(b []byte) error
- type QueryCodeResponse
- func (*QueryCodeResponse) Descriptor() ([]byte, []int)
- func (this *QueryCodeResponse) Equal(that interface{}) bool
- func (m *QueryCodeResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCodeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCodeResponse) ProtoMessage()
- func (m *QueryCodeResponse) Reset()
- func (m *QueryCodeResponse) Size() (n int)
- func (m *QueryCodeResponse) String() string
- func (m *QueryCodeResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCodeResponse) XXX_DiscardUnknown()
- func (m *QueryCodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCodeResponse) XXX_Merge(src proto.Message)
- func (m *QueryCodeResponse) XXX_Size() int
- func (m *QueryCodeResponse) XXX_Unmarshal(b []byte) error
- type QueryCodesResponse
- func (*QueryCodesResponse) Descriptor() ([]byte, []int)
- func (this *QueryCodesResponse) Equal(that interface{}) bool
- func (m *QueryCodesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCodesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCodesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCodesResponse) ProtoMessage()
- func (m *QueryCodesResponse) Reset()
- func (m *QueryCodesResponse) Size() (n int)
- func (m *QueryCodesResponse) String() string
- func (m *QueryCodesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCodesResponse) XXX_DiscardUnknown()
- func (m *QueryCodesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCodesResponse) XXX_Merge(src proto.Message)
- func (m *QueryCodesResponse) XXX_Size() int
- func (m *QueryCodesResponse) XXX_Unmarshal(b []byte) error
- type QueryContractAddressResponse
- func (*QueryContractAddressResponse) Descriptor() ([]byte, []int)
- func (this *QueryContractAddressResponse) Equal(that interface{}) bool
- func (m *QueryContractAddressResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryContractAddressResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryContractAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryContractAddressResponse) ProtoMessage()
- func (m *QueryContractAddressResponse) Reset()
- func (m *QueryContractAddressResponse) Size() (n int)
- func (m *QueryContractAddressResponse) String() string
- func (m *QueryContractAddressResponse) Unmarshal(dAtA []byte) error
- func (m *QueryContractAddressResponse) XXX_DiscardUnknown()
- func (m *QueryContractAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryContractAddressResponse) XXX_Merge(src proto.Message)
- func (m *QueryContractAddressResponse) XXX_Size() int
- func (m *QueryContractAddressResponse) XXX_Unmarshal(b []byte) error
- type QueryContractInfoResponse
- func (*QueryContractInfoResponse) Descriptor() ([]byte, []int)
- func (this *QueryContractInfoResponse) Equal(that interface{}) bool
- func (m *QueryContractInfoResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryContractInfoResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryContractInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryContractInfoResponse) ProtoMessage()
- func (m *QueryContractInfoResponse) Reset()
- func (m *QueryContractInfoResponse) Size() (n int)
- func (m *QueryContractInfoResponse) String() string
- func (m *QueryContractInfoResponse) Unmarshal(dAtA []byte) error
- func (m *QueryContractInfoResponse) XXX_DiscardUnknown()
- func (m *QueryContractInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryContractInfoResponse) XXX_Merge(src proto.Message)
- func (m *QueryContractInfoResponse) XXX_Size() int
- func (m *QueryContractInfoResponse) XXX_Unmarshal(b []byte) error
- type QueryContractLabelResponse
- func (*QueryContractLabelResponse) Descriptor() ([]byte, []int)
- func (this *QueryContractLabelResponse) Equal(that interface{}) bool
- func (m *QueryContractLabelResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryContractLabelResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryContractLabelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryContractLabelResponse) ProtoMessage()
- func (m *QueryContractLabelResponse) Reset()
- func (m *QueryContractLabelResponse) Size() (n int)
- func (m *QueryContractLabelResponse) String() string
- func (m *QueryContractLabelResponse) Unmarshal(dAtA []byte) error
- func (m *QueryContractLabelResponse) XXX_DiscardUnknown()
- func (m *QueryContractLabelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryContractLabelResponse) XXX_Merge(src proto.Message)
- func (m *QueryContractLabelResponse) XXX_Size() int
- func (m *QueryContractLabelResponse) XXX_Unmarshal(b []byte) error
- type QueryContractsByCodeIdResponse
- func (*QueryContractsByCodeIdResponse) Descriptor() ([]byte, []int)
- func (this *QueryContractsByCodeIdResponse) Equal(that interface{}) bool
- func (m *QueryContractsByCodeIdResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryContractsByCodeIdResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryContractsByCodeIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryContractsByCodeIdResponse) ProtoMessage()
- func (m *QueryContractsByCodeIdResponse) Reset()
- func (m *QueryContractsByCodeIdResponse) Size() (n int)
- func (m *QueryContractsByCodeIdResponse) String() string
- func (m *QueryContractsByCodeIdResponse) Unmarshal(dAtA []byte) error
- func (m *QueryContractsByCodeIdResponse) XXX_DiscardUnknown()
- func (m *QueryContractsByCodeIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryContractsByCodeIdResponse) XXX_Merge(src proto.Message)
- func (m *QueryContractsByCodeIdResponse) XXX_Size() int
- func (m *QueryContractsByCodeIdResponse) XXX_Unmarshal(b []byte) error
- type QuerySecretContractRequest
- func (*QuerySecretContractRequest) Descriptor() ([]byte, []int)
- func (this *QuerySecretContractRequest) Equal(that interface{}) bool
- func (m *QuerySecretContractRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySecretContractRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySecretContractRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySecretContractRequest) ProtoMessage()
- func (m *QuerySecretContractRequest) Reset()
- func (m *QuerySecretContractRequest) Size() (n int)
- func (m *QuerySecretContractRequest) String() string
- func (m *QuerySecretContractRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySecretContractRequest) XXX_DiscardUnknown()
- func (m *QuerySecretContractRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySecretContractRequest) XXX_Merge(src proto.Message)
- func (m *QuerySecretContractRequest) XXX_Size() int
- func (m *QuerySecretContractRequest) XXX_Unmarshal(b []byte) error
- type QuerySecretContractResponse
- func (*QuerySecretContractResponse) Descriptor() ([]byte, []int)
- func (this *QuerySecretContractResponse) Equal(that interface{}) bool
- func (m *QuerySecretContractResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySecretContractResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySecretContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySecretContractResponse) ProtoMessage()
- func (m *QuerySecretContractResponse) Reset()
- func (m *QuerySecretContractResponse) Size() (n int)
- func (m *QuerySecretContractResponse) String() string
- func (m *QuerySecretContractResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySecretContractResponse) XXX_DiscardUnknown()
- func (m *QuerySecretContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySecretContractResponse) XXX_Merge(src proto.Message)
- func (m *QuerySecretContractResponse) XXX_Size() int
- func (m *QuerySecretContractResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type SecretMsg
- type Sequence
- func (*Sequence) Descriptor() ([]byte, []int)
- func (m *Sequence) GetIDKey() []byte
- func (m *Sequence) GetValue() uint64
- func (m *Sequence) Marshal() (dAtA []byte, err error)
- func (m *Sequence) MarshalTo(dAtA []byte) (int, error)
- func (m *Sequence) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Sequence) ProtoMessage()
- func (m *Sequence) Reset()
- func (m *Sequence) Size() (n int)
- func (m *Sequence) String() string
- func (m *Sequence) Unmarshal(dAtA []byte) error
- func (s Sequence) ValidateBasic() error
- func (m *Sequence) XXX_DiscardUnknown()
- func (m *Sequence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Sequence) XXX_Merge(src proto.Message)
- func (m *Sequence) XXX_Size() int
- func (m *Sequence) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) ExecuteContract(ctx context.Context, req *MsgExecuteContract) (*MsgExecuteContractResponse, error)
- func (*UnimplementedMsgServer) InstantiateContract(ctx context.Context, req *MsgInstantiateContract) (*MsgInstantiateContractResponse, error)
- func (*UnimplementedMsgServer) StoreCode(ctx context.Context, req *MsgStoreCode) (*MsgStoreCodeResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) AddressByLabel(ctx context.Context, req *QueryByLabelRequest) (*QueryContractAddressResponse, error)
- func (*UnimplementedQueryServer) Code(ctx context.Context, req *QueryByCodeIdRequest) (*QueryCodeResponse, error)
- func (*UnimplementedQueryServer) CodeHashByCodeId(ctx context.Context, req *QueryByCodeIdRequest) (*QueryCodeHashResponse, error)
- func (*UnimplementedQueryServer) CodeHashByContractAddress(ctx context.Context, req *QueryByContractAddressRequest) (*QueryCodeHashResponse, error)
- func (*UnimplementedQueryServer) Codes(ctx context.Context, req *emptypb.Empty) (*QueryCodesResponse, error)
- func (*UnimplementedQueryServer) ContractInfo(ctx context.Context, req *QueryByContractAddressRequest) (*QueryContractInfoResponse, error)
- func (*UnimplementedQueryServer) ContractsByCodeId(ctx context.Context, req *QueryByCodeIdRequest) (*QueryContractsByCodeIdResponse, error)
- func (*UnimplementedQueryServer) LabelByAddress(ctx context.Context, req *QueryByContractAddressRequest) (*QueryContractLabelResponse, error)
- func (*UnimplementedQueryServer) QuerySecretContract(ctx context.Context, req *QuerySecretContractRequest) (*QuerySecretContractResponse, error)
- type WasmConfig
Constants ¶
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" )
const ( AttributeReservedPrefix = "_" AttributeKeyContractAddr = "contract_address" AttributeKeyCodeID = "code_id" AttributeKeySigner = "signer" AttributeKeyResultDataHex = "result" AttributeKeyFeature = "feature" )
event attributes returned from contract execution
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 )
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 )
const CompileCost uint64 = 2
CompileCost is how much SDK gas we charge *per byte* for compiling WASM code.
const DefaultConfigTemplate = `` /* 553-byte string literal not displayed */
DefaultConfigTemplate default config template for wasm module
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
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.
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 ¶
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.
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
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")...) )
var ( ErrInvalidLengthMsg = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMsg = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMsg = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") )
var AccessType_name = map[int32]string{
0: "UNDEFINED",
1: "NOBODY",
2: "ONLY_ADDRESS",
3: "EVERYBODY",
}
var AccessType_value = map[string]int32{
"UNDEFINED": 0,
"NOBODY": 1,
"ONLY_ADDRESS": 2,
"EVERYBODY": 3,
}
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 ¶
** 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 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 GetCodeKey ¶
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 ¶
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 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 ¶
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 RegisterQueryHandler ¶
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 ¶
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 ¶
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) 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 (*Code) Descriptor ¶
func (*Code) GetCodeBytes ¶
func (*Code) GetCodeInfo ¶
func (*Code) ProtoMessage ¶
func (*Code) ProtoMessage()
func (Code) ValidateBasic ¶
func (*Code) XXX_DiscardUnknown ¶
func (m *Code) XXX_DiscardUnknown()
func (*Code) XXX_Unmarshal ¶
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 NewCodeInfo ¶
NewCodeInfo fills a new Contract struct
func (*CodeInfo) Descriptor ¶
func (*CodeInfo) MarshalToSizedBuffer ¶
func (*CodeInfo) ProtoMessage ¶
func (*CodeInfo) ProtoMessage()
func (CodeInfo) ValidateBasic ¶
func (*CodeInfo) XXX_DiscardUnknown ¶
func (m *CodeInfo) XXX_DiscardUnknown()
func (*CodeInfo) XXX_Marshal ¶
func (*CodeInfo) XXX_Unmarshal ¶
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) 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 (*Contract) Descriptor ¶
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 (*Contract) MarshalToSizedBuffer ¶
func (*Contract) ProtoMessage ¶
func (*Contract) ProtoMessage()
func (Contract) ValidateBasic ¶
func (*Contract) XXX_DiscardUnknown ¶
func (m *Contract) XXX_DiscardUnknown()
func (*Contract) XXX_Marshal ¶
func (*Contract) XXX_Unmarshal ¶
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) 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 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) 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) 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) 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 ¶
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) ProtoMessage ¶
func (*Model) ProtoMessage()
func (Model) ValidateBasic ¶
func (*Model) XXX_DiscardUnknown ¶
func (m *Model) XXX_DiscardUnknown()
func (*Model) XXX_Marshal ¶
func (*Model) XXX_Unmarshal ¶
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 (m *MsgInstantiateContractResponse) String() 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) 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 ¶ added in v1.5.0
type QueryByCodeIdRequest struct {
CodeId uint64 `protobuf:"varint,1,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"`
}
func (*QueryByCodeIdRequest) Descriptor ¶ added in v1.5.0
func (*QueryByCodeIdRequest) Descriptor() ([]byte, []int)
func (*QueryByCodeIdRequest) Equal ¶ added in v1.5.0
func (this *QueryByCodeIdRequest) Equal(that interface{}) bool
func (*QueryByCodeIdRequest) Marshal ¶ added in v1.5.0
func (m *QueryByCodeIdRequest) Marshal() (dAtA []byte, err error)
func (*QueryByCodeIdRequest) MarshalTo ¶ added in v1.5.0
func (m *QueryByCodeIdRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryByCodeIdRequest) MarshalToSizedBuffer ¶ added in v1.5.0
func (m *QueryByCodeIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryByCodeIdRequest) ProtoMessage ¶ added in v1.5.0
func (*QueryByCodeIdRequest) ProtoMessage()
func (*QueryByCodeIdRequest) Reset ¶ added in v1.5.0
func (m *QueryByCodeIdRequest) Reset()
func (*QueryByCodeIdRequest) Size ¶ added in v1.5.0
func (m *QueryByCodeIdRequest) Size() (n int)
func (*QueryByCodeIdRequest) String ¶ added in v1.5.0
func (m *QueryByCodeIdRequest) String() string
func (*QueryByCodeIdRequest) Unmarshal ¶ added in v1.5.0
func (m *QueryByCodeIdRequest) Unmarshal(dAtA []byte) error
func (*QueryByCodeIdRequest) XXX_DiscardUnknown ¶ added in v1.5.0
func (m *QueryByCodeIdRequest) XXX_DiscardUnknown()
func (*QueryByCodeIdRequest) XXX_Marshal ¶ added in v1.5.0
func (m *QueryByCodeIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryByCodeIdRequest) XXX_Merge ¶ added in v1.5.0
func (m *QueryByCodeIdRequest) XXX_Merge(src proto.Message)
func (*QueryByCodeIdRequest) XXX_Size ¶ added in v1.5.0
func (m *QueryByCodeIdRequest) XXX_Size() int
func (*QueryByCodeIdRequest) XXX_Unmarshal ¶ added in v1.5.0
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 (m *QueryByContractAddressRequest) String() 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 (m *QueryContractAddressResponse) String() 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 ¶ added in v1.5.0
type QueryContractsByCodeIdResponse struct {
ContractInfos []ContractInfoWithAddress `protobuf:"bytes,1,rep,name=contract_infos,json=contractInfos,proto3" json:"contract_infos"`
}
func (*QueryContractsByCodeIdResponse) Descriptor ¶ added in v1.5.0
func (*QueryContractsByCodeIdResponse) Descriptor() ([]byte, []int)
func (*QueryContractsByCodeIdResponse) Equal ¶ added in v1.5.0
func (this *QueryContractsByCodeIdResponse) Equal(that interface{}) bool
func (*QueryContractsByCodeIdResponse) Marshal ¶ added in v1.5.0
func (m *QueryContractsByCodeIdResponse) Marshal() (dAtA []byte, err error)
func (*QueryContractsByCodeIdResponse) MarshalTo ¶ added in v1.5.0
func (m *QueryContractsByCodeIdResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryContractsByCodeIdResponse) MarshalToSizedBuffer ¶ added in v1.5.0
func (m *QueryContractsByCodeIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryContractsByCodeIdResponse) ProtoMessage ¶ added in v1.5.0
func (*QueryContractsByCodeIdResponse) ProtoMessage()
func (*QueryContractsByCodeIdResponse) Reset ¶ added in v1.5.0
func (m *QueryContractsByCodeIdResponse) Reset()
func (*QueryContractsByCodeIdResponse) Size ¶ added in v1.5.0
func (m *QueryContractsByCodeIdResponse) Size() (n int)
func (*QueryContractsByCodeIdResponse) String ¶ added in v1.5.0
func (m *QueryContractsByCodeIdResponse) String() string
func (*QueryContractsByCodeIdResponse) Unmarshal ¶ added in v1.5.0
func (m *QueryContractsByCodeIdResponse) Unmarshal(dAtA []byte) error
func (*QueryContractsByCodeIdResponse) XXX_DiscardUnknown ¶ added in v1.5.0
func (m *QueryContractsByCodeIdResponse) XXX_DiscardUnknown()
func (*QueryContractsByCodeIdResponse) XXX_Marshal ¶ added in v1.5.0
func (m *QueryContractsByCodeIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryContractsByCodeIdResponse) XXX_Merge ¶ added in v1.5.0
func (m *QueryContractsByCodeIdResponse) XXX_Merge(src proto.Message)
func (*QueryContractsByCodeIdResponse) XXX_Size ¶ added in v1.5.0
func (m *QueryContractsByCodeIdResponse) XXX_Size() int
func (*QueryContractsByCodeIdResponse) XXX_Unmarshal ¶ added in v1.5.0
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 ¶
func NewSecretMsg ¶
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) MarshalToSizedBuffer ¶
func (*Sequence) ProtoMessage ¶
func (*Sequence) ProtoMessage()
func (Sequence) ValidateBasic ¶
func (*Sequence) XXX_DiscardUnknown ¶
func (m *Sequence) XXX_DiscardUnknown()
func (*Sequence) XXX_Marshal ¶
func (*Sequence) XXX_Unmarshal ¶
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) ExecuteContract ¶
func (*UnimplementedMsgServer) ExecuteContract(ctx context.Context, req *MsgExecuteContract) (*MsgExecuteContractResponse, error)
func (*UnimplementedMsgServer) InstantiateContract ¶
func (*UnimplementedMsgServer) InstantiateContract(ctx context.Context, req *MsgInstantiateContract) (*MsgInstantiateContractResponse, error)
func (*UnimplementedMsgServer) StoreCode ¶
func (*UnimplementedMsgServer) StoreCode(ctx context.Context, req *MsgStoreCode) (*MsgStoreCodeResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) AddressByLabel ¶
func (*UnimplementedQueryServer) AddressByLabel(ctx context.Context, req *QueryByLabelRequest) (*QueryContractAddressResponse, error)
func (*UnimplementedQueryServer) Code ¶
func (*UnimplementedQueryServer) Code(ctx context.Context, req *QueryByCodeIdRequest) (*QueryCodeResponse, error)
func (*UnimplementedQueryServer) CodeHashByCodeId ¶ added in v1.5.0
func (*UnimplementedQueryServer) CodeHashByCodeId(ctx context.Context, req *QueryByCodeIdRequest) (*QueryCodeHashResponse, error)
func (*UnimplementedQueryServer) CodeHashByContractAddress ¶
func (*UnimplementedQueryServer) CodeHashByContractAddress(ctx context.Context, req *QueryByContractAddressRequest) (*QueryCodeHashResponse, error)
func (*UnimplementedQueryServer) Codes ¶
func (*UnimplementedQueryServer) Codes(ctx context.Context, req *emptypb.Empty) (*QueryCodesResponse, error)
func (*UnimplementedQueryServer) ContractInfo ¶
func (*UnimplementedQueryServer) ContractInfo(ctx context.Context, req *QueryByContractAddressRequest) (*QueryContractInfoResponse, error)
func (*UnimplementedQueryServer) ContractsByCodeId ¶ added in v1.5.0
func (*UnimplementedQueryServer) ContractsByCodeId(ctx context.Context, req *QueryByCodeIdRequest) (*QueryContractsByCodeIdResponse, error)
func (*UnimplementedQueryServer) LabelByAddress ¶
func (*UnimplementedQueryServer) LabelByAddress(ctx context.Context, req *QueryByContractAddressRequest) (*QueryContractLabelResponse, error)
func (*UnimplementedQueryServer) QuerySecretContract ¶
func (*UnimplementedQueryServer) QuerySecretContract(ctx context.Context, req *QuerySecretContractRequest) (*QuerySecretContractResponse, error)
type WasmConfig ¶
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