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 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 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 ParseEvents(logs []wasmTypes.LogAttribute, contractAddr sdk.AccAddress) sdk.Events
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- 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 ValidateGenesis(data GenesisState) error
- func WithSHA256CodeHash(wasmCode []byte) func(info *CodeInfo)
- 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 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 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 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 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 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 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 QueryClient
- type QueryCodeRequest
- func (*QueryCodeRequest) Descriptor() ([]byte, []int)
- func (this *QueryCodeRequest) Equal(that interface{}) bool
- func (m *QueryCodeRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCodeRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCodeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCodeRequest) ProtoMessage()
- func (m *QueryCodeRequest) Reset()
- func (m *QueryCodeRequest) Size() (n int)
- func (m *QueryCodeRequest) String() string
- func (m *QueryCodeRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCodeRequest) XXX_DiscardUnknown()
- func (m *QueryCodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCodeRequest) XXX_Merge(src proto.Message)
- func (m *QueryCodeRequest) XXX_Size() int
- func (m *QueryCodeRequest) 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 QueryContractAddressByLabelRequest
- func (*QueryContractAddressByLabelRequest) Descriptor() ([]byte, []int)
- func (this *QueryContractAddressByLabelRequest) Equal(that interface{}) bool
- func (m *QueryContractAddressByLabelRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryContractAddressByLabelRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryContractAddressByLabelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryContractAddressByLabelRequest) ProtoMessage()
- func (m *QueryContractAddressByLabelRequest) Reset()
- func (m *QueryContractAddressByLabelRequest) Size() (n int)
- func (m *QueryContractAddressByLabelRequest) String() string
- func (m *QueryContractAddressByLabelRequest) Unmarshal(dAtA []byte) error
- func (m *QueryContractAddressByLabelRequest) XXX_DiscardUnknown()
- func (m *QueryContractAddressByLabelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryContractAddressByLabelRequest) XXX_Merge(src proto.Message)
- func (m *QueryContractAddressByLabelRequest) XXX_Size() int
- func (m *QueryContractAddressByLabelRequest) XXX_Unmarshal(b []byte) error
- type QueryContractAddressByLabelResponse
- func (*QueryContractAddressByLabelResponse) Descriptor() ([]byte, []int)
- func (this *QueryContractAddressByLabelResponse) Equal(that interface{}) bool
- func (m *QueryContractAddressByLabelResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryContractAddressByLabelResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryContractAddressByLabelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryContractAddressByLabelResponse) ProtoMessage()
- func (m *QueryContractAddressByLabelResponse) Reset()
- func (m *QueryContractAddressByLabelResponse) Size() (n int)
- func (m *QueryContractAddressByLabelResponse) String() string
- func (m *QueryContractAddressByLabelResponse) Unmarshal(dAtA []byte) error
- func (m *QueryContractAddressByLabelResponse) XXX_DiscardUnknown()
- func (m *QueryContractAddressByLabelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryContractAddressByLabelResponse) XXX_Merge(src proto.Message)
- func (m *QueryContractAddressByLabelResponse) XXX_Size() int
- func (m *QueryContractAddressByLabelResponse) XXX_Unmarshal(b []byte) error
- type QueryContractHashRequest
- func (*QueryContractHashRequest) Descriptor() ([]byte, []int)
- func (this *QueryContractHashRequest) Equal(that interface{}) bool
- func (m *QueryContractHashRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryContractHashRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryContractHashRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryContractHashRequest) ProtoMessage()
- func (m *QueryContractHashRequest) Reset()
- func (m *QueryContractHashRequest) Size() (n int)
- func (m *QueryContractHashRequest) String() string
- func (m *QueryContractHashRequest) Unmarshal(dAtA []byte) error
- func (m *QueryContractHashRequest) XXX_DiscardUnknown()
- func (m *QueryContractHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryContractHashRequest) XXX_Merge(src proto.Message)
- func (m *QueryContractHashRequest) XXX_Size() int
- func (m *QueryContractHashRequest) XXX_Unmarshal(b []byte) error
- type QueryContractHashResponse
- func (*QueryContractHashResponse) Descriptor() ([]byte, []int)
- func (this *QueryContractHashResponse) Equal(that interface{}) bool
- func (m *QueryContractHashResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryContractHashResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryContractHashResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryContractHashResponse) ProtoMessage()
- func (m *QueryContractHashResponse) Reset()
- func (m *QueryContractHashResponse) Size() (n int)
- func (m *QueryContractHashResponse) String() string
- func (m *QueryContractHashResponse) Unmarshal(dAtA []byte) error
- func (m *QueryContractHashResponse) XXX_DiscardUnknown()
- func (m *QueryContractHashResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryContractHashResponse) XXX_Merge(src proto.Message)
- func (m *QueryContractHashResponse) XXX_Size() int
- func (m *QueryContractHashResponse) XXX_Unmarshal(b []byte) error
- type QueryContractHistoryRequest
- func (*QueryContractHistoryRequest) Descriptor() ([]byte, []int)
- func (this *QueryContractHistoryRequest) Equal(that interface{}) bool
- func (m *QueryContractHistoryRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryContractHistoryRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryContractHistoryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryContractHistoryRequest) ProtoMessage()
- func (m *QueryContractHistoryRequest) Reset()
- func (m *QueryContractHistoryRequest) Size() (n int)
- func (m *QueryContractHistoryRequest) String() string
- func (m *QueryContractHistoryRequest) Unmarshal(dAtA []byte) error
- func (m *QueryContractHistoryRequest) XXX_DiscardUnknown()
- func (m *QueryContractHistoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryContractHistoryRequest) XXX_Merge(src proto.Message)
- func (m *QueryContractHistoryRequest) XXX_Size() int
- func (m *QueryContractHistoryRequest) XXX_Unmarshal(b []byte) error
- type QueryContractInfoRequest
- func (*QueryContractInfoRequest) Descriptor() ([]byte, []int)
- func (this *QueryContractInfoRequest) Equal(that interface{}) bool
- func (m *QueryContractInfoRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryContractInfoRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryContractInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryContractInfoRequest) ProtoMessage()
- func (m *QueryContractInfoRequest) Reset()
- func (m *QueryContractInfoRequest) Size() (n int)
- func (m *QueryContractInfoRequest) String() string
- func (m *QueryContractInfoRequest) Unmarshal(dAtA []byte) error
- func (m *QueryContractInfoRequest) XXX_DiscardUnknown()
- func (m *QueryContractInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryContractInfoRequest) XXX_Merge(src proto.Message)
- func (m *QueryContractInfoRequest) XXX_Size() int
- func (m *QueryContractInfoRequest) 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 QueryContractKeyRequest
- func (*QueryContractKeyRequest) Descriptor() ([]byte, []int)
- func (this *QueryContractKeyRequest) Equal(that interface{}) bool
- func (m *QueryContractKeyRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryContractKeyRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryContractKeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryContractKeyRequest) ProtoMessage()
- func (m *QueryContractKeyRequest) Reset()
- func (m *QueryContractKeyRequest) Size() (n int)
- func (m *QueryContractKeyRequest) String() string
- func (m *QueryContractKeyRequest) Unmarshal(dAtA []byte) error
- func (m *QueryContractKeyRequest) XXX_DiscardUnknown()
- func (m *QueryContractKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryContractKeyRequest) XXX_Merge(src proto.Message)
- func (m *QueryContractKeyRequest) XXX_Size() int
- func (m *QueryContractKeyRequest) XXX_Unmarshal(b []byte) error
- type QueryContractKeyResponse
- func (*QueryContractKeyResponse) Descriptor() ([]byte, []int)
- func (this *QueryContractKeyResponse) Equal(that interface{}) bool
- func (m *QueryContractKeyResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryContractKeyResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryContractKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryContractKeyResponse) ProtoMessage()
- func (m *QueryContractKeyResponse) Reset()
- func (m *QueryContractKeyResponse) Size() (n int)
- func (m *QueryContractKeyResponse) String() string
- func (m *QueryContractKeyResponse) Unmarshal(dAtA []byte) error
- func (m *QueryContractKeyResponse) XXX_DiscardUnknown()
- func (m *QueryContractKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryContractKeyResponse) XXX_Merge(src proto.Message)
- func (m *QueryContractKeyResponse) XXX_Size() int
- func (m *QueryContractKeyResponse) XXX_Unmarshal(b []byte) error
- type QueryContractsByCodeRequest
- func (*QueryContractsByCodeRequest) Descriptor() ([]byte, []int)
- func (this *QueryContractsByCodeRequest) Equal(that interface{}) bool
- func (m *QueryContractsByCodeRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryContractsByCodeRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryContractsByCodeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryContractsByCodeRequest) ProtoMessage()
- func (m *QueryContractsByCodeRequest) Reset()
- func (m *QueryContractsByCodeRequest) Size() (n int)
- func (m *QueryContractsByCodeRequest) String() string
- func (m *QueryContractsByCodeRequest) Unmarshal(dAtA []byte) error
- func (m *QueryContractsByCodeRequest) XXX_DiscardUnknown()
- func (m *QueryContractsByCodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryContractsByCodeRequest) XXX_Merge(src proto.Message)
- func (m *QueryContractsByCodeRequest) XXX_Size() int
- func (m *QueryContractsByCodeRequest) XXX_Unmarshal(b []byte) error
- type QueryContractsByCodeResponse
- func (*QueryContractsByCodeResponse) Descriptor() ([]byte, []int)
- func (this *QueryContractsByCodeResponse) Equal(that interface{}) bool
- func (m *QueryContractsByCodeResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryContractsByCodeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryContractsByCodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryContractsByCodeResponse) ProtoMessage()
- func (m *QueryContractsByCodeResponse) Reset()
- func (m *QueryContractsByCodeResponse) Size() (n int)
- func (m *QueryContractsByCodeResponse) String() string
- func (m *QueryContractsByCodeResponse) Unmarshal(dAtA []byte) error
- func (m *QueryContractsByCodeResponse) XXX_DiscardUnknown()
- func (m *QueryContractsByCodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryContractsByCodeResponse) XXX_Merge(src proto.Message)
- func (m *QueryContractsByCodeResponse) XXX_Size() int
- func (m *QueryContractsByCodeResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type QuerySmartContractStateRequest
- func (*QuerySmartContractStateRequest) Descriptor() ([]byte, []int)
- func (this *QuerySmartContractStateRequest) Equal(that interface{}) bool
- func (m *QuerySmartContractStateRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySmartContractStateRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySmartContractStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySmartContractStateRequest) ProtoMessage()
- func (m *QuerySmartContractStateRequest) Reset()
- func (m *QuerySmartContractStateRequest) Size() (n int)
- func (m *QuerySmartContractStateRequest) String() string
- func (m *QuerySmartContractStateRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySmartContractStateRequest) XXX_DiscardUnknown()
- func (m *QuerySmartContractStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySmartContractStateRequest) XXX_Merge(src proto.Message)
- func (m *QuerySmartContractStateRequest) XXX_Size() int
- func (m *QuerySmartContractStateRequest) XXX_Unmarshal(b []byte) error
- type QuerySmartContractStateResponse
- func (*QuerySmartContractStateResponse) Descriptor() ([]byte, []int)
- func (this *QuerySmartContractStateResponse) Equal(that interface{}) bool
- func (m *QuerySmartContractStateResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySmartContractStateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySmartContractStateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySmartContractStateResponse) ProtoMessage()
- func (m *QuerySmartContractStateResponse) Reset()
- func (m *QuerySmartContractStateResponse) Size() (n int)
- func (m *QuerySmartContractStateResponse) String() string
- func (m *QuerySmartContractStateResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySmartContractStateResponse) XXX_DiscardUnknown()
- func (m *QuerySmartContractStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySmartContractStateResponse) XXX_Merge(src proto.Message)
- func (m *QuerySmartContractStateResponse) XXX_Size() int
- func (m *QuerySmartContractStateResponse) XXX_Unmarshal(b []byte) error
- 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 UnimplementedQueryServer
- func (*UnimplementedQueryServer) Code(ctx context.Context, req *QueryCodeRequest) (*QueryCodeResponse, error)
- func (*UnimplementedQueryServer) Codes(ctx context.Context, req *emptypb.Empty) (*QueryCodesResponse, error)
- func (*UnimplementedQueryServer) ContractInfo(ctx context.Context, req *QueryContractInfoRequest) (*QueryContractInfoResponse, error)
- func (*UnimplementedQueryServer) ContractsByCode(ctx context.Context, req *QueryContractsByCodeRequest) (*QueryContractsByCodeResponse, error)
- func (*UnimplementedQueryServer) SmartContractState(ctx context.Context, req *QuerySmartContractStateRequest) (*QuerySmartContractStateResponse, error)
- type WasmConfig
Constants ¶
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 ( AttributeKeyContract = "contract_address" AttributeKeyCodeID = "code_id" AttributeKeySigner = "signer" )
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 MaxSourceURLSize = 512 )
const AttributeKeyContractAddr = "contract_address"
const CompileCost uint64 = 2
CompileCost is how much SDK gas we charge *per byte* for compiling WASM code.
const CustomEventType = "wasm"
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 = 10_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") )
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} // ContractHistoryStorePrefix = []byte{0x05} ContractEnclaveIdPrefix = []byte{0x06} ContractLabelPrefix = []byte{0x07} KeyLastCodeID = append(SequenceKeyPrefix, []byte("lastCodeId")...) KeyLastInstanceID = append(SequenceKeyPrefix, []byte("lastContractId")...) )
nolint
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 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 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 ParseEvents ¶
func ParseEvents(logs []wasmTypes.LogAttribute, contractAddr sdk.AccAddress) sdk.Events
ParseEvents converts wasm LogAttributes into an sdk.Events (with 0 or 1 elements)
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterCodec registers the account types and interface
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 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 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:"id"` 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"` DataHash github_com_tendermint_tendermint_libs_bytes.HexBytes `` /* 147-byte string literal not displayed */ Source string `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"` Builder string `protobuf:"bytes,5,opt,name=builder,proto3" json:"builder,omitempty"` }
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"` // bytes admin = 3 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"]; 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"` }
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 { Address github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=address,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"address,omitempty"` *ContractInfo `protobuf:"bytes,2,opt,name=ContractInfo,proto3,embedded=ContractInfo" json:""` }
ContractInfoWithAddress adds the address (key) to the ContractInfo representation
func (*ContractInfoWithAddress) Descriptor ¶
func (*ContractInfoWithAddress) Descriptor() ([]byte, []int)
func (*ContractInfoWithAddress) Equal ¶
func (this *ContractInfoWithAddress) Equal(that interface{}) bool
func (*ContractInfoWithAddress) Marshal ¶
func (m *ContractInfoWithAddress) Marshal() (dAtA []byte, err error)
func (*ContractInfoWithAddress) MarshalTo ¶
func (m *ContractInfoWithAddress) MarshalTo(dAtA []byte) (int, error)
func (*ContractInfoWithAddress) MarshalToSizedBuffer ¶
func (m *ContractInfoWithAddress) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ContractInfoWithAddress) ProtoMessage ¶
func (*ContractInfoWithAddress) ProtoMessage()
func (*ContractInfoWithAddress) Reset ¶
func (m *ContractInfoWithAddress) Reset()
func (*ContractInfoWithAddress) Size ¶
func (m *ContractInfoWithAddress) Size() (n int)
func (*ContractInfoWithAddress) String ¶
func (m *ContractInfoWithAddress) String() string
func (*ContractInfoWithAddress) Unmarshal ¶
func (m *ContractInfoWithAddress) Unmarshal(dAtA []byte) error
func (*ContractInfoWithAddress) XXX_DiscardUnknown ¶
func (m *ContractInfoWithAddress) XXX_DiscardUnknown()
func (*ContractInfoWithAddress) XXX_Marshal ¶
func (m *ContractInfoWithAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ContractInfoWithAddress) XXX_Merge ¶
func (m *ContractInfoWithAddress) XXX_Merge(src proto.Message)
func (*ContractInfoWithAddress) XXX_Size ¶
func (m *ContractInfoWithAddress) XXX_Size() int
func (*ContractInfoWithAddress) XXX_Unmarshal ¶
func (m *ContractInfoWithAddress) XXX_Unmarshal(b []byte) error
type 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"` OutputLogs []types.StringEvent `protobuf:"bytes,5,rep,name=output_logs,json=outputLogs,proto3" json:"output_logs"` OutputError encoding_json.RawMessage `` /* 128-byte string literal not displayed */ PlaintextError string `protobuf:"bytes,7,opt,name=plaintext_error,json=plaintextError,proto3" json:"plaintext_error,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 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 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 MsgExecuteContract ¶
type MsgExecuteContract struct { 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 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 */ 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 MsgInstantiateContract ¶
type MsgInstantiateContract struct { 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"` // Admin is an optional address that can execute migrations // bytes admin = 2 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"]; 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 */ 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 MsgStoreCode ¶
type MsgStoreCode struct { 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 QueryClient ¶
type QueryClient interface { // Query contract ContractInfo(ctx context.Context, in *QueryContractInfoRequest, opts ...grpc.CallOption) (*QueryContractInfoResponse, error) // Query contract ContractsByCode(ctx context.Context, in *QueryContractsByCodeRequest, opts ...grpc.CallOption) (*QueryContractsByCodeResponse, error) // Query contract SmartContractState(ctx context.Context, in *QuerySmartContractStateRequest, opts ...grpc.CallOption) (*QuerySmartContractStateResponse, error) // Query a specific contract code Code(ctx context.Context, in *QueryCodeRequest, opts ...grpc.CallOption) (*QueryCodeResponse, error) // Query all contract codes on-chain Codes(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*QueryCodesResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryCodeRequest ¶
type QueryCodeRequest struct {
CodeId uint64 `protobuf:"varint,1,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"`
}
func (*QueryCodeRequest) Descriptor ¶
func (*QueryCodeRequest) Descriptor() ([]byte, []int)
func (*QueryCodeRequest) Equal ¶
func (this *QueryCodeRequest) Equal(that interface{}) bool
func (*QueryCodeRequest) Marshal ¶
func (m *QueryCodeRequest) Marshal() (dAtA []byte, err error)
func (*QueryCodeRequest) MarshalToSizedBuffer ¶
func (m *QueryCodeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCodeRequest) ProtoMessage ¶
func (*QueryCodeRequest) ProtoMessage()
func (*QueryCodeRequest) Reset ¶
func (m *QueryCodeRequest) Reset()
func (*QueryCodeRequest) Size ¶
func (m *QueryCodeRequest) Size() (n int)
func (*QueryCodeRequest) String ¶
func (m *QueryCodeRequest) String() string
func (*QueryCodeRequest) Unmarshal ¶
func (m *QueryCodeRequest) Unmarshal(dAtA []byte) error
func (*QueryCodeRequest) XXX_DiscardUnknown ¶
func (m *QueryCodeRequest) XXX_DiscardUnknown()
func (*QueryCodeRequest) XXX_Marshal ¶
func (m *QueryCodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCodeRequest) XXX_Merge ¶
func (m *QueryCodeRequest) XXX_Merge(src proto.Message)
func (*QueryCodeRequest) XXX_Size ¶
func (m *QueryCodeRequest) XXX_Size() int
func (*QueryCodeRequest) XXX_Unmarshal ¶
func (m *QueryCodeRequest) XXX_Unmarshal(b []byte) error
type QueryCodeResponse ¶
type QueryCodeResponse struct { *CodeInfoResponse `protobuf:"bytes,1,opt,name=code_info,json=codeInfo,proto3,embedded=code_info" json:""` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data"` }
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 QueryContractAddressByLabelRequest ¶
type QueryContractAddressByLabelRequest struct {
Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
}
func (*QueryContractAddressByLabelRequest) Descriptor ¶
func (*QueryContractAddressByLabelRequest) Descriptor() ([]byte, []int)
func (*QueryContractAddressByLabelRequest) Equal ¶
func (this *QueryContractAddressByLabelRequest) Equal(that interface{}) bool
func (*QueryContractAddressByLabelRequest) Marshal ¶
func (m *QueryContractAddressByLabelRequest) Marshal() (dAtA []byte, err error)
func (*QueryContractAddressByLabelRequest) MarshalTo ¶
func (m *QueryContractAddressByLabelRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryContractAddressByLabelRequest) MarshalToSizedBuffer ¶
func (m *QueryContractAddressByLabelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryContractAddressByLabelRequest) ProtoMessage ¶
func (*QueryContractAddressByLabelRequest) ProtoMessage()
func (*QueryContractAddressByLabelRequest) Reset ¶
func (m *QueryContractAddressByLabelRequest) Reset()
func (*QueryContractAddressByLabelRequest) Size ¶
func (m *QueryContractAddressByLabelRequest) Size() (n int)
func (*QueryContractAddressByLabelRequest) String ¶
func (m *QueryContractAddressByLabelRequest) String() string
func (*QueryContractAddressByLabelRequest) Unmarshal ¶
func (m *QueryContractAddressByLabelRequest) Unmarshal(dAtA []byte) error
func (*QueryContractAddressByLabelRequest) XXX_DiscardUnknown ¶
func (m *QueryContractAddressByLabelRequest) XXX_DiscardUnknown()
func (*QueryContractAddressByLabelRequest) XXX_Marshal ¶
func (m *QueryContractAddressByLabelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryContractAddressByLabelRequest) XXX_Merge ¶
func (m *QueryContractAddressByLabelRequest) XXX_Merge(src proto.Message)
func (*QueryContractAddressByLabelRequest) XXX_Size ¶
func (m *QueryContractAddressByLabelRequest) XXX_Size() int
func (*QueryContractAddressByLabelRequest) XXX_Unmarshal ¶
func (m *QueryContractAddressByLabelRequest) XXX_Unmarshal(b []byte) error
type QueryContractAddressByLabelResponse ¶
type QueryContractAddressByLabelResponse struct { // address is the address of the contract Address github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=address,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"address,omitempty"` }
func (*QueryContractAddressByLabelResponse) Descriptor ¶
func (*QueryContractAddressByLabelResponse) Descriptor() ([]byte, []int)
func (*QueryContractAddressByLabelResponse) Equal ¶
func (this *QueryContractAddressByLabelResponse) Equal(that interface{}) bool
func (*QueryContractAddressByLabelResponse) Marshal ¶
func (m *QueryContractAddressByLabelResponse) Marshal() (dAtA []byte, err error)
func (*QueryContractAddressByLabelResponse) MarshalTo ¶
func (m *QueryContractAddressByLabelResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryContractAddressByLabelResponse) MarshalToSizedBuffer ¶
func (m *QueryContractAddressByLabelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryContractAddressByLabelResponse) ProtoMessage ¶
func (*QueryContractAddressByLabelResponse) ProtoMessage()
func (*QueryContractAddressByLabelResponse) Reset ¶
func (m *QueryContractAddressByLabelResponse) Reset()
func (*QueryContractAddressByLabelResponse) Size ¶
func (m *QueryContractAddressByLabelResponse) Size() (n int)
func (*QueryContractAddressByLabelResponse) String ¶
func (m *QueryContractAddressByLabelResponse) String() string
func (*QueryContractAddressByLabelResponse) Unmarshal ¶
func (m *QueryContractAddressByLabelResponse) Unmarshal(dAtA []byte) error
func (*QueryContractAddressByLabelResponse) XXX_DiscardUnknown ¶
func (m *QueryContractAddressByLabelResponse) XXX_DiscardUnknown()
func (*QueryContractAddressByLabelResponse) XXX_Marshal ¶
func (m *QueryContractAddressByLabelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryContractAddressByLabelResponse) XXX_Merge ¶
func (m *QueryContractAddressByLabelResponse) XXX_Merge(src proto.Message)
func (*QueryContractAddressByLabelResponse) XXX_Size ¶
func (m *QueryContractAddressByLabelResponse) XXX_Size() int
func (*QueryContractAddressByLabelResponse) XXX_Unmarshal ¶
func (m *QueryContractAddressByLabelResponse) XXX_Unmarshal(b []byte) error
type QueryContractHashRequest ¶
type QueryContractHashRequest struct { // address is the address of the contract Address github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=address,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"address,omitempty"` }
func (*QueryContractHashRequest) Descriptor ¶
func (*QueryContractHashRequest) Descriptor() ([]byte, []int)
func (*QueryContractHashRequest) Equal ¶
func (this *QueryContractHashRequest) Equal(that interface{}) bool
func (*QueryContractHashRequest) Marshal ¶
func (m *QueryContractHashRequest) Marshal() (dAtA []byte, err error)
func (*QueryContractHashRequest) MarshalTo ¶
func (m *QueryContractHashRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryContractHashRequest) MarshalToSizedBuffer ¶
func (m *QueryContractHashRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryContractHashRequest) ProtoMessage ¶
func (*QueryContractHashRequest) ProtoMessage()
func (*QueryContractHashRequest) Reset ¶
func (m *QueryContractHashRequest) Reset()
func (*QueryContractHashRequest) Size ¶
func (m *QueryContractHashRequest) Size() (n int)
func (*QueryContractHashRequest) String ¶
func (m *QueryContractHashRequest) String() string
func (*QueryContractHashRequest) Unmarshal ¶
func (m *QueryContractHashRequest) Unmarshal(dAtA []byte) error
func (*QueryContractHashRequest) XXX_DiscardUnknown ¶
func (m *QueryContractHashRequest) XXX_DiscardUnknown()
func (*QueryContractHashRequest) XXX_Marshal ¶
func (m *QueryContractHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryContractHashRequest) XXX_Merge ¶
func (m *QueryContractHashRequest) XXX_Merge(src proto.Message)
func (*QueryContractHashRequest) XXX_Size ¶
func (m *QueryContractHashRequest) XXX_Size() int
func (*QueryContractHashRequest) XXX_Unmarshal ¶
func (m *QueryContractHashRequest) XXX_Unmarshal(b []byte) error
type QueryContractHashResponse ¶
type QueryContractHashResponse struct {
CodeHash github_com_tendermint_tendermint_libs_bytes.HexBytes `` /* 147-byte string literal not displayed */
}
func (*QueryContractHashResponse) Descriptor ¶
func (*QueryContractHashResponse) Descriptor() ([]byte, []int)
func (*QueryContractHashResponse) Equal ¶
func (this *QueryContractHashResponse) Equal(that interface{}) bool
func (*QueryContractHashResponse) Marshal ¶
func (m *QueryContractHashResponse) Marshal() (dAtA []byte, err error)
func (*QueryContractHashResponse) MarshalTo ¶
func (m *QueryContractHashResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryContractHashResponse) MarshalToSizedBuffer ¶
func (m *QueryContractHashResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryContractHashResponse) ProtoMessage ¶
func (*QueryContractHashResponse) ProtoMessage()
func (*QueryContractHashResponse) Reset ¶
func (m *QueryContractHashResponse) Reset()
func (*QueryContractHashResponse) Size ¶
func (m *QueryContractHashResponse) Size() (n int)
func (*QueryContractHashResponse) String ¶
func (m *QueryContractHashResponse) String() string
func (*QueryContractHashResponse) Unmarshal ¶
func (m *QueryContractHashResponse) Unmarshal(dAtA []byte) error
func (*QueryContractHashResponse) XXX_DiscardUnknown ¶
func (m *QueryContractHashResponse) XXX_DiscardUnknown()
func (*QueryContractHashResponse) XXX_Marshal ¶
func (m *QueryContractHashResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryContractHashResponse) XXX_Merge ¶
func (m *QueryContractHashResponse) XXX_Merge(src proto.Message)
func (*QueryContractHashResponse) XXX_Size ¶
func (m *QueryContractHashResponse) XXX_Size() int
func (*QueryContractHashResponse) XXX_Unmarshal ¶
func (m *QueryContractHashResponse) XXX_Unmarshal(b []byte) error
type QueryContractHistoryRequest ¶
type QueryContractHistoryRequest struct { // address is the address of the contract to query Address github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=address,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"address,omitempty"` }
func (*QueryContractHistoryRequest) Descriptor ¶
func (*QueryContractHistoryRequest) Descriptor() ([]byte, []int)
func (*QueryContractHistoryRequest) Equal ¶
func (this *QueryContractHistoryRequest) Equal(that interface{}) bool
func (*QueryContractHistoryRequest) Marshal ¶
func (m *QueryContractHistoryRequest) Marshal() (dAtA []byte, err error)
func (*QueryContractHistoryRequest) MarshalTo ¶
func (m *QueryContractHistoryRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryContractHistoryRequest) MarshalToSizedBuffer ¶
func (m *QueryContractHistoryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryContractHistoryRequest) ProtoMessage ¶
func (*QueryContractHistoryRequest) ProtoMessage()
func (*QueryContractHistoryRequest) Reset ¶
func (m *QueryContractHistoryRequest) Reset()
func (*QueryContractHistoryRequest) Size ¶
func (m *QueryContractHistoryRequest) Size() (n int)
func (*QueryContractHistoryRequest) String ¶
func (m *QueryContractHistoryRequest) String() string
func (*QueryContractHistoryRequest) Unmarshal ¶
func (m *QueryContractHistoryRequest) Unmarshal(dAtA []byte) error
func (*QueryContractHistoryRequest) XXX_DiscardUnknown ¶
func (m *QueryContractHistoryRequest) XXX_DiscardUnknown()
func (*QueryContractHistoryRequest) XXX_Marshal ¶
func (m *QueryContractHistoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryContractHistoryRequest) XXX_Merge ¶
func (m *QueryContractHistoryRequest) XXX_Merge(src proto.Message)
func (*QueryContractHistoryRequest) XXX_Size ¶
func (m *QueryContractHistoryRequest) XXX_Size() int
func (*QueryContractHistoryRequest) XXX_Unmarshal ¶
func (m *QueryContractHistoryRequest) XXX_Unmarshal(b []byte) error
type QueryContractInfoRequest ¶
type QueryContractInfoRequest struct { // address is the address of the contract to query Address github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=address,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"address,omitempty"` }
QueryContractInfoRequest is the request type for the Query/ContractInfo RPC method
func (*QueryContractInfoRequest) Descriptor ¶
func (*QueryContractInfoRequest) Descriptor() ([]byte, []int)
func (*QueryContractInfoRequest) Equal ¶
func (this *QueryContractInfoRequest) Equal(that interface{}) bool
func (*QueryContractInfoRequest) Marshal ¶
func (m *QueryContractInfoRequest) Marshal() (dAtA []byte, err error)
func (*QueryContractInfoRequest) MarshalTo ¶
func (m *QueryContractInfoRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryContractInfoRequest) MarshalToSizedBuffer ¶
func (m *QueryContractInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryContractInfoRequest) ProtoMessage ¶
func (*QueryContractInfoRequest) ProtoMessage()
func (*QueryContractInfoRequest) Reset ¶
func (m *QueryContractInfoRequest) Reset()
func (*QueryContractInfoRequest) Size ¶
func (m *QueryContractInfoRequest) Size() (n int)
func (*QueryContractInfoRequest) String ¶
func (m *QueryContractInfoRequest) String() string
func (*QueryContractInfoRequest) Unmarshal ¶
func (m *QueryContractInfoRequest) Unmarshal(dAtA []byte) error
func (*QueryContractInfoRequest) XXX_DiscardUnknown ¶
func (m *QueryContractInfoRequest) XXX_DiscardUnknown()
func (*QueryContractInfoRequest) XXX_Marshal ¶
func (m *QueryContractInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryContractInfoRequest) XXX_Merge ¶
func (m *QueryContractInfoRequest) XXX_Merge(src proto.Message)
func (*QueryContractInfoRequest) XXX_Size ¶
func (m *QueryContractInfoRequest) XXX_Size() int
func (*QueryContractInfoRequest) XXX_Unmarshal ¶
func (m *QueryContractInfoRequest) XXX_Unmarshal(b []byte) error
type QueryContractInfoResponse ¶
type QueryContractInfoResponse struct { // address is the address of the contract Address github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=address,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"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 QueryContractKeyRequest ¶
type QueryContractKeyRequest struct { // address is the address of the contract Address github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=address,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"address,omitempty"` }
func (*QueryContractKeyRequest) Descriptor ¶
func (*QueryContractKeyRequest) Descriptor() ([]byte, []int)
func (*QueryContractKeyRequest) Equal ¶
func (this *QueryContractKeyRequest) Equal(that interface{}) bool
func (*QueryContractKeyRequest) Marshal ¶
func (m *QueryContractKeyRequest) Marshal() (dAtA []byte, err error)
func (*QueryContractKeyRequest) MarshalTo ¶
func (m *QueryContractKeyRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryContractKeyRequest) MarshalToSizedBuffer ¶
func (m *QueryContractKeyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryContractKeyRequest) ProtoMessage ¶
func (*QueryContractKeyRequest) ProtoMessage()
func (*QueryContractKeyRequest) Reset ¶
func (m *QueryContractKeyRequest) Reset()
func (*QueryContractKeyRequest) Size ¶
func (m *QueryContractKeyRequest) Size() (n int)
func (*QueryContractKeyRequest) String ¶
func (m *QueryContractKeyRequest) String() string
func (*QueryContractKeyRequest) Unmarshal ¶
func (m *QueryContractKeyRequest) Unmarshal(dAtA []byte) error
func (*QueryContractKeyRequest) XXX_DiscardUnknown ¶
func (m *QueryContractKeyRequest) XXX_DiscardUnknown()
func (*QueryContractKeyRequest) XXX_Marshal ¶
func (m *QueryContractKeyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryContractKeyRequest) XXX_Merge ¶
func (m *QueryContractKeyRequest) XXX_Merge(src proto.Message)
func (*QueryContractKeyRequest) XXX_Size ¶
func (m *QueryContractKeyRequest) XXX_Size() int
func (*QueryContractKeyRequest) XXX_Unmarshal ¶
func (m *QueryContractKeyRequest) XXX_Unmarshal(b []byte) error
type QueryContractKeyResponse ¶
type QueryContractKeyResponse struct { // address is the address of the contract 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"` }
func (*QueryContractKeyResponse) Descriptor ¶
func (*QueryContractKeyResponse) Descriptor() ([]byte, []int)
func (*QueryContractKeyResponse) Equal ¶
func (this *QueryContractKeyResponse) Equal(that interface{}) bool
func (*QueryContractKeyResponse) Marshal ¶
func (m *QueryContractKeyResponse) Marshal() (dAtA []byte, err error)
func (*QueryContractKeyResponse) MarshalTo ¶
func (m *QueryContractKeyResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryContractKeyResponse) MarshalToSizedBuffer ¶
func (m *QueryContractKeyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryContractKeyResponse) ProtoMessage ¶
func (*QueryContractKeyResponse) ProtoMessage()
func (*QueryContractKeyResponse) Reset ¶
func (m *QueryContractKeyResponse) Reset()
func (*QueryContractKeyResponse) Size ¶
func (m *QueryContractKeyResponse) Size() (n int)
func (*QueryContractKeyResponse) String ¶
func (m *QueryContractKeyResponse) String() string
func (*QueryContractKeyResponse) Unmarshal ¶
func (m *QueryContractKeyResponse) Unmarshal(dAtA []byte) error
func (*QueryContractKeyResponse) XXX_DiscardUnknown ¶
func (m *QueryContractKeyResponse) XXX_DiscardUnknown()
func (*QueryContractKeyResponse) XXX_Marshal ¶
func (m *QueryContractKeyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryContractKeyResponse) XXX_Merge ¶
func (m *QueryContractKeyResponse) XXX_Merge(src proto.Message)
func (*QueryContractKeyResponse) XXX_Size ¶
func (m *QueryContractKeyResponse) XXX_Size() int
func (*QueryContractKeyResponse) XXX_Unmarshal ¶
func (m *QueryContractKeyResponse) XXX_Unmarshal(b []byte) error
type QueryContractsByCodeRequest ¶
type QueryContractsByCodeRequest struct {
CodeId uint64 `protobuf:"varint,1,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"`
}
func (*QueryContractsByCodeRequest) Descriptor ¶
func (*QueryContractsByCodeRequest) Descriptor() ([]byte, []int)
func (*QueryContractsByCodeRequest) Equal ¶
func (this *QueryContractsByCodeRequest) Equal(that interface{}) bool
func (*QueryContractsByCodeRequest) Marshal ¶
func (m *QueryContractsByCodeRequest) Marshal() (dAtA []byte, err error)
func (*QueryContractsByCodeRequest) MarshalTo ¶
func (m *QueryContractsByCodeRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryContractsByCodeRequest) MarshalToSizedBuffer ¶
func (m *QueryContractsByCodeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryContractsByCodeRequest) ProtoMessage ¶
func (*QueryContractsByCodeRequest) ProtoMessage()
func (*QueryContractsByCodeRequest) Reset ¶
func (m *QueryContractsByCodeRequest) Reset()
func (*QueryContractsByCodeRequest) Size ¶
func (m *QueryContractsByCodeRequest) Size() (n int)
func (*QueryContractsByCodeRequest) String ¶
func (m *QueryContractsByCodeRequest) String() string
func (*QueryContractsByCodeRequest) Unmarshal ¶
func (m *QueryContractsByCodeRequest) Unmarshal(dAtA []byte) error
func (*QueryContractsByCodeRequest) XXX_DiscardUnknown ¶
func (m *QueryContractsByCodeRequest) XXX_DiscardUnknown()
func (*QueryContractsByCodeRequest) XXX_Marshal ¶
func (m *QueryContractsByCodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryContractsByCodeRequest) XXX_Merge ¶
func (m *QueryContractsByCodeRequest) XXX_Merge(src proto.Message)
func (*QueryContractsByCodeRequest) XXX_Size ¶
func (m *QueryContractsByCodeRequest) XXX_Size() int
func (*QueryContractsByCodeRequest) XXX_Unmarshal ¶
func (m *QueryContractsByCodeRequest) XXX_Unmarshal(b []byte) error
type QueryContractsByCodeResponse ¶
type QueryContractsByCodeResponse struct {
ContractInfos []ContractInfoWithAddress `protobuf:"bytes,1,rep,name=contract_infos,json=contractInfos,proto3" json:"contract_infos"`
}
func (*QueryContractsByCodeResponse) Descriptor ¶
func (*QueryContractsByCodeResponse) Descriptor() ([]byte, []int)
func (*QueryContractsByCodeResponse) Equal ¶
func (this *QueryContractsByCodeResponse) Equal(that interface{}) bool
func (*QueryContractsByCodeResponse) Marshal ¶
func (m *QueryContractsByCodeResponse) Marshal() (dAtA []byte, err error)
func (*QueryContractsByCodeResponse) MarshalTo ¶
func (m *QueryContractsByCodeResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryContractsByCodeResponse) MarshalToSizedBuffer ¶
func (m *QueryContractsByCodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryContractsByCodeResponse) ProtoMessage ¶
func (*QueryContractsByCodeResponse) ProtoMessage()
func (*QueryContractsByCodeResponse) Reset ¶
func (m *QueryContractsByCodeResponse) Reset()
func (*QueryContractsByCodeResponse) Size ¶
func (m *QueryContractsByCodeResponse) Size() (n int)
func (*QueryContractsByCodeResponse) String ¶
func (m *QueryContractsByCodeResponse) String() string
func (*QueryContractsByCodeResponse) Unmarshal ¶
func (m *QueryContractsByCodeResponse) Unmarshal(dAtA []byte) error
func (*QueryContractsByCodeResponse) XXX_DiscardUnknown ¶
func (m *QueryContractsByCodeResponse) XXX_DiscardUnknown()
func (*QueryContractsByCodeResponse) XXX_Marshal ¶
func (m *QueryContractsByCodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryContractsByCodeResponse) XXX_Merge ¶
func (m *QueryContractsByCodeResponse) XXX_Merge(src proto.Message)
func (*QueryContractsByCodeResponse) XXX_Size ¶
func (m *QueryContractsByCodeResponse) XXX_Size() int
func (*QueryContractsByCodeResponse) XXX_Unmarshal ¶
func (m *QueryContractsByCodeResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Query contract ContractInfo(context.Context, *QueryContractInfoRequest) (*QueryContractInfoResponse, error) // Query contract ContractsByCode(context.Context, *QueryContractsByCodeRequest) (*QueryContractsByCodeResponse, error) // Query contract SmartContractState(context.Context, *QuerySmartContractStateRequest) (*QuerySmartContractStateResponse, error) // Query a specific contract code Code(context.Context, *QueryCodeRequest) (*QueryCodeResponse, error) // Query all contract codes on-chain Codes(context.Context, *emptypb.Empty) (*QueryCodesResponse, error) }
QueryServer is the server API for Query service.
type QuerySmartContractStateRequest ¶
type QuerySmartContractStateRequest struct { // address is the address of the contract Address github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=address,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"address,omitempty"` QueryData []byte `protobuf:"bytes,2,opt,name=query_data,json=queryData,proto3" json:"query_data,omitempty"` }
func (*QuerySmartContractStateRequest) Descriptor ¶
func (*QuerySmartContractStateRequest) Descriptor() ([]byte, []int)
func (*QuerySmartContractStateRequest) Equal ¶
func (this *QuerySmartContractStateRequest) Equal(that interface{}) bool
func (*QuerySmartContractStateRequest) Marshal ¶
func (m *QuerySmartContractStateRequest) Marshal() (dAtA []byte, err error)
func (*QuerySmartContractStateRequest) MarshalTo ¶
func (m *QuerySmartContractStateRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySmartContractStateRequest) MarshalToSizedBuffer ¶
func (m *QuerySmartContractStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySmartContractStateRequest) ProtoMessage ¶
func (*QuerySmartContractStateRequest) ProtoMessage()
func (*QuerySmartContractStateRequest) Reset ¶
func (m *QuerySmartContractStateRequest) Reset()
func (*QuerySmartContractStateRequest) Size ¶
func (m *QuerySmartContractStateRequest) Size() (n int)
func (*QuerySmartContractStateRequest) String ¶
func (m *QuerySmartContractStateRequest) String() string
func (*QuerySmartContractStateRequest) Unmarshal ¶
func (m *QuerySmartContractStateRequest) Unmarshal(dAtA []byte) error
func (*QuerySmartContractStateRequest) XXX_DiscardUnknown ¶
func (m *QuerySmartContractStateRequest) XXX_DiscardUnknown()
func (*QuerySmartContractStateRequest) XXX_Marshal ¶
func (m *QuerySmartContractStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySmartContractStateRequest) XXX_Merge ¶
func (m *QuerySmartContractStateRequest) XXX_Merge(src proto.Message)
func (*QuerySmartContractStateRequest) XXX_Size ¶
func (m *QuerySmartContractStateRequest) XXX_Size() int
func (*QuerySmartContractStateRequest) XXX_Unmarshal ¶
func (m *QuerySmartContractStateRequest) XXX_Unmarshal(b []byte) error
type QuerySmartContractStateResponse ¶
type QuerySmartContractStateResponse struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}
func (*QuerySmartContractStateResponse) Descriptor ¶
func (*QuerySmartContractStateResponse) Descriptor() ([]byte, []int)
func (*QuerySmartContractStateResponse) Equal ¶
func (this *QuerySmartContractStateResponse) Equal(that interface{}) bool
func (*QuerySmartContractStateResponse) Marshal ¶
func (m *QuerySmartContractStateResponse) Marshal() (dAtA []byte, err error)
func (*QuerySmartContractStateResponse) MarshalTo ¶
func (m *QuerySmartContractStateResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySmartContractStateResponse) MarshalToSizedBuffer ¶
func (m *QuerySmartContractStateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySmartContractStateResponse) ProtoMessage ¶
func (*QuerySmartContractStateResponse) ProtoMessage()
func (*QuerySmartContractStateResponse) Reset ¶
func (m *QuerySmartContractStateResponse) Reset()
func (*QuerySmartContractStateResponse) Size ¶
func (m *QuerySmartContractStateResponse) Size() (n int)
func (*QuerySmartContractStateResponse) String ¶
func (m *QuerySmartContractStateResponse) String() string
func (*QuerySmartContractStateResponse) Unmarshal ¶
func (m *QuerySmartContractStateResponse) Unmarshal(dAtA []byte) error
func (*QuerySmartContractStateResponse) XXX_DiscardUnknown ¶
func (m *QuerySmartContractStateResponse) XXX_DiscardUnknown()
func (*QuerySmartContractStateResponse) XXX_Marshal ¶
func (m *QuerySmartContractStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySmartContractStateResponse) XXX_Merge ¶
func (m *QuerySmartContractStateResponse) XXX_Merge(src proto.Message)
func (*QuerySmartContractStateResponse) XXX_Size ¶
func (m *QuerySmartContractStateResponse) XXX_Size() int
func (*QuerySmartContractStateResponse) XXX_Unmarshal ¶
func (m *QuerySmartContractStateResponse) XXX_Unmarshal(b []byte) error
type 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 UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Code ¶
func (*UnimplementedQueryServer) Code(ctx context.Context, req *QueryCodeRequest) (*QueryCodeResponse, 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 *QueryContractInfoRequest) (*QueryContractInfoResponse, error)
func (*UnimplementedQueryServer) ContractsByCode ¶
func (*UnimplementedQueryServer) ContractsByCode(ctx context.Context, req *QueryContractsByCodeRequest) (*QueryContractsByCodeResponse, error)
func (*UnimplementedQueryServer) SmartContractState ¶
func (*UnimplementedQueryServer) SmartContractState(ctx context.Context, req *QuerySmartContractStateRequest) (*QuerySmartContractStateResponse, 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