Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func ErrExtraProposalParams(desc string) sdk.Error
- func GenerateUnauthorizeError(act AccessType) string
- func GetCodeKey(codeID uint64) []byte
- func GetContractAddressKey(addr sdk.WasmAddress) []byte
- func GetContractByCodeIDSecondaryIndexPrefix(codeID uint64) []byte
- func GetContractByCreatedSecondaryIndexKey(contractAddr sdk.WasmAddress, c ContractCodeHistoryEntry) []byte
- func GetContractCodeHistoryElementKey(contractAddr sdk.WasmAddress, pos uint64) []byte
- func GetContractCodeHistoryElementPrefix(contractAddr sdk.WasmAddress) []byte
- func GetContractMethodBlockedListPrefix(contractAddr string) []byte
- func GetContractStorePrefix(addr sdk.WasmAddress) []byte
- func GetPinnedCodeIndexPrefix(codeID uint64) []byte
- func IsAllAddress(addrs []string) bool
- func IsJSONObjectWithTopLevelKey(jsonBytes []byte, allowedKeys []string) error
- func IsNobody(addrs []string) bool
- func Module(moduleName string, key []byte) []byte
- func NewActionModifyGasFactor(data string) (sdk.Dec, error)
- func NewEnv(ctx sdk.Context, contractAddr sdk.WasmAddress) wasmvmtypes.Env
- func NewInfo(creator sdk.WasmAddress, deposit sdk.CoinAdapters) wasmvmtypes.MessageInfo
- func NewWasmCoins(cosmosCoins sdk.CoinAdapters) (wasmCoins []wasmvmtypes.Coin)
- func OnlyGenesisFields(info *ContractInfo)
- func ParamKeyTable() paramtypes.KeyTable
- func ParsePinnedCodeIndex(s []byte) uint64
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.Codec)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func TXCounter(ctx sdk.Context) (uint32, bool)
- func ValidateGenesis(data GenesisState) error
- func VerifyAddressLen() func(addr []byte) error
- func WithSHA256CodeHash(wasmCode []byte) func(info *CodeInfo)
- func WithTXCounter(ctx sdk.Context, counter uint32) sdk.Context
- type AbsoluteTxPosition
- func (a *AbsoluteTxPosition) Bytes() []byte
- 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 AccessConfig
- func (a AccessConfig) Allowed(actor sdk.WasmAddress) bool
- func (*AccessConfig) Descriptor() ([]byte, []int)
- func (this *AccessConfig) Equal(that interface{}) bool
- func (a AccessConfig) Equals(o AccessConfig) bool
- func (a AccessConfig) IsSubset(superSet AccessConfig) bool
- func (m *AccessConfig) Marshal() (dAtA []byte, err error)
- func (m *AccessConfig) MarshalTo(dAtA []byte) (int, error)
- func (m *AccessConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AccessConfig) ProtoMessage()
- func (m *AccessConfig) Reset()
- func (m *AccessConfig) Size() (n int)
- func (m *AccessConfig) String() string
- func (m *AccessConfig) Unmarshal(dAtA []byte) error
- func (a AccessConfig) ValidateBasic() error
- func (m *AccessConfig) XXX_DiscardUnknown()
- func (m *AccessConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AccessConfig) XXX_Merge(src proto.Message)
- func (m *AccessConfig) XXX_Size() int
- func (m *AccessConfig) XXX_Unmarshal(b []byte) error
- type AccessConfigUpdate
- func (*AccessConfigUpdate) Descriptor() ([]byte, []int)
- func (this *AccessConfigUpdate) Equal(that interface{}) bool
- func (m *AccessConfigUpdate) Marshal() (dAtA []byte, err error)
- func (m *AccessConfigUpdate) MarshalTo(dAtA []byte) (int, error)
- func (m *AccessConfigUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AccessConfigUpdate) ProtoMessage()
- func (m *AccessConfigUpdate) Reset()
- func (m *AccessConfigUpdate) Size() (n int)
- func (c AccessConfigUpdate) String() string
- func (m *AccessConfigUpdate) Unmarshal(dAtA []byte) error
- func (m *AccessConfigUpdate) XXX_DiscardUnknown()
- func (m *AccessConfigUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AccessConfigUpdate) XXX_Merge(src proto.Message)
- func (m *AccessConfigUpdate) XXX_Size() int
- func (m *AccessConfigUpdate) XXX_Unmarshal(b []byte) error
- type AccessType
- func (AccessType) EnumDescriptor() ([]byte, []int)
- func (a *AccessType) MarshalJSONPB(_ *jsonpb.Marshaler) ([]byte, error)
- func (a AccessType) MarshalText() ([]byte, error)
- func (a AccessType) String() string
- func (a *AccessType) UnmarshalJSONPB(_ *jsonpb.Unmarshaler, data []byte) error
- func (a *AccessType) UnmarshalText(text []byte) error
- func (a AccessType) With(addr sdk.WasmAddress) AccessConfig
- 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 AccountKeeper
- type BankKeeper
- type BankViewKeeper
- type CapabilityKeeper
- type ChannelKeeper
- type ClearAdminProposal
- func (*ClearAdminProposal) Descriptor() ([]byte, []int)
- func (this *ClearAdminProposal) Equal(that interface{}) bool
- func (p ClearAdminProposal) GetDescription() string
- func (p *ClearAdminProposal) GetTitle() string
- func (m *ClearAdminProposal) Marshal() (dAtA []byte, err error)
- func (m *ClearAdminProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *ClearAdminProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p ClearAdminProposal) ProposalRoute() string
- func (p ClearAdminProposal) ProposalType() string
- func (*ClearAdminProposal) ProtoMessage()
- func (m *ClearAdminProposal) Reset()
- func (m *ClearAdminProposal) Size() (n int)
- func (p ClearAdminProposal) String() string
- func (m *ClearAdminProposal) Unmarshal(dAtA []byte) error
- func (p ClearAdminProposal) ValidateBasic() error
- func (m *ClearAdminProposal) XXX_DiscardUnknown()
- func (m *ClearAdminProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClearAdminProposal) XXX_Merge(src proto.Message)
- func (m *ClearAdminProposal) XXX_Size() int
- func (m *ClearAdminProposal) XXX_Unmarshal(b []byte) error
- type ClientKeeper
- 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) GetPinned() bool
- 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 ConnectionKeeper
- type Contract
- func (*Contract) Descriptor() ([]byte, []int)
- func (m *Contract) GetContractAddress() string
- 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) UnpackInterfaces(unpacker codectypes.AnyUnpacker) 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 ContractCodeHistoryEntry
- func (*ContractCodeHistoryEntry) Descriptor() ([]byte, []int)
- func (this *ContractCodeHistoryEntry) Equal(that interface{}) bool
- func (m *ContractCodeHistoryEntry) Marshal() (dAtA []byte, err error)
- func (m *ContractCodeHistoryEntry) MarshalTo(dAtA []byte) (int, error)
- func (m *ContractCodeHistoryEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ContractCodeHistoryEntry) ProtoMessage()
- func (m *ContractCodeHistoryEntry) Reset()
- func (m *ContractCodeHistoryEntry) Size() (n int)
- func (m *ContractCodeHistoryEntry) String() string
- func (m *ContractCodeHistoryEntry) Unmarshal(dAtA []byte) error
- func (m *ContractCodeHistoryEntry) XXX_DiscardUnknown()
- func (m *ContractCodeHistoryEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ContractCodeHistoryEntry) XXX_Merge(src proto.Message)
- func (m *ContractCodeHistoryEntry) XXX_Size() int
- func (m *ContractCodeHistoryEntry) XXX_Unmarshal(b []byte) error
- type ContractCodeHistoryOperationType
- type ContractInfo
- func (c *ContractInfo) AddMigration(ctx sdk.Context, codeID uint64, msg []byte) ContractCodeHistoryEntry
- func (c *ContractInfo) AdminAddr() sdk.WasmAddress
- func (*ContractInfo) Descriptor() ([]byte, []int)
- func (this *ContractInfo) Equal(that interface{}) bool
- func (c ContractInfo) InitialHistory(initMsg []byte) ContractCodeHistoryEntry
- 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 (c *ContractInfo) ReadExtension(e ContractInfoExtension) error
- func (m *ContractInfo) Reset()
- func (c *ContractInfo) ResetFromGenesis(ctx sdk.Context) ContractCodeHistoryEntry
- func (c *ContractInfo) SetExtension(ext ContractInfoExtension) error
- func (m *ContractInfo) Size() (n int)
- func (m *ContractInfo) String() string
- func (m *ContractInfo) Unmarshal(dAtA []byte) error
- func (c *ContractInfo) UnpackInterfaces(unpacker codectypes.AnyUnpacker) 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 ContractInfoExtension
- type ContractMethods
- func (c *ContractMethods) AddMethods(methods []*Method)
- func (c *ContractMethods) DeleteMethods(methods []*Method)
- func (*ContractMethods) Descriptor() ([]byte, []int)
- func (m *ContractMethods) GetContractAddr() string
- func (m *ContractMethods) GetMethods() []*Method
- func (c *ContractMethods) IsMethodBlocked(method string) bool
- func (*ContractMethods) ProtoMessage()
- func (m *ContractMethods) Reset()
- func (m *ContractMethods) String() string
- func (m *ContractMethods) XXX_DiscardUnknown()
- func (m *ContractMethods) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ContractMethods) XXX_Merge(src proto.Message)
- func (m *ContractMethods) XXX_Size() int
- func (m *ContractMethods) XXX_Unmarshal(b []byte) error
- type ContractOpsKeeper
- type DBAdapter
- type DistributionKeeper
- type ErrNoSuchContract
- type ExecuteContractProposal
- func (*ExecuteContractProposal) Descriptor() ([]byte, []int)
- func (this *ExecuteContractProposal) Equal(that interface{}) bool
- func (p ExecuteContractProposal) GetDescription() string
- func (p *ExecuteContractProposal) GetTitle() string
- func (m *ExecuteContractProposal) Marshal() (dAtA []byte, err error)
- func (m *ExecuteContractProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *ExecuteContractProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p ExecuteContractProposal) MarshalYAML() (interface{}, error)
- func (p ExecuteContractProposal) ProposalRoute() string
- func (p ExecuteContractProposal) ProposalType() string
- func (*ExecuteContractProposal) ProtoMessage()
- func (m *ExecuteContractProposal) Reset()
- func (m *ExecuteContractProposal) Size() (n int)
- func (p ExecuteContractProposal) String() string
- func (m *ExecuteContractProposal) Unmarshal(dAtA []byte) error
- func (p ExecuteContractProposal) ValidateBasic() error
- func (m *ExecuteContractProposal) XXX_DiscardUnknown()
- func (m *ExecuteContractProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExecuteContractProposal) XXX_Merge(src proto.Message)
- func (m *ExecuteContractProposal) XXX_Size() int
- func (m *ExecuteContractProposal) XXX_Unmarshal(b []byte) error
- type ExtraProposal
- func (*ExtraProposal) Descriptor() ([]byte, []int)
- func (m *ExtraProposal) GetAction() string
- func (m *ExtraProposal) GetDescription() string
- func (m *ExtraProposal) GetExtra() string
- func (m *ExtraProposal) GetTitle() string
- func (p ExtraProposal) MarshalYAML() (interface{}, error)
- func (p ExtraProposal) ProposalRoute() string
- func (p ExtraProposal) ProposalType() string
- func (*ExtraProposal) ProtoMessage()
- func (m *ExtraProposal) Reset()
- func (m *ExtraProposal) String() string
- func (p ExtraProposal) ValidateBasic() error
- func (m *ExtraProposal) XXX_DiscardUnknown()
- func (m *ExtraProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExtraProposal) XXX_Merge(src proto.Message)
- func (m *ExtraProposal) XXX_Size() int
- func (m *ExtraProposal) XXX_Unmarshal(b []byte) error
- type GasFactor
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetCodes() []Code
- func (m *GenesisState) GetContracts() []Contract
- func (m *GenesisState) GetGenMsgs() []GenesisState_GenMsgs
- func (m *GenesisState) GetParams() Params
- 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) UnpackInterfaces(unpacker codectypes.AnyUnpacker) 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 GenesisState_GenMsgs
- func (m GenesisState_GenMsgs) AsMsg() sdk.Msg
- func (*GenesisState_GenMsgs) Descriptor() ([]byte, []int)
- func (m *GenesisState_GenMsgs) GetExecuteContract() *MsgExecuteContract
- func (m *GenesisState_GenMsgs) GetInstantiateContract() *MsgInstantiateContract
- func (m *GenesisState_GenMsgs) GetStoreCode() *MsgStoreCode
- func (m *GenesisState_GenMsgs) GetSum() isGenesisState_GenMsgs_Sum
- func (m *GenesisState_GenMsgs) Marshal() (dAtA []byte, err error)
- func (m *GenesisState_GenMsgs) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState_GenMsgs) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState_GenMsgs) ProtoMessage()
- func (m *GenesisState_GenMsgs) Reset()
- func (m *GenesisState_GenMsgs) Size() (n int)
- func (m *GenesisState_GenMsgs) String() string
- func (m *GenesisState_GenMsgs) Unmarshal(dAtA []byte) error
- func (m GenesisState_GenMsgs) ValidateBasic() error
- func (m *GenesisState_GenMsgs) XXX_DiscardUnknown()
- func (m *GenesisState_GenMsgs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState_GenMsgs) XXX_Merge(src proto.Message)
- func (*GenesisState_GenMsgs) XXX_OneofWrappers() []interface{}
- func (m *GenesisState_GenMsgs) XXX_Size() int
- func (m *GenesisState_GenMsgs) XXX_Unmarshal(b []byte) error
- type GenesisState_GenMsgs_ExecuteContract
- type GenesisState_GenMsgs_InstantiateContract
- type GenesisState_GenMsgs_StoreCode
- type IBCContractKeeper
- type ICS20TransferPortSource
- type InstantiateContractProposal
- func (*InstantiateContractProposal) Descriptor() ([]byte, []int)
- func (this *InstantiateContractProposal) Equal(that interface{}) bool
- func (p InstantiateContractProposal) GetDescription() string
- func (p *InstantiateContractProposal) GetTitle() string
- func (m *InstantiateContractProposal) Marshal() (dAtA []byte, err error)
- func (m *InstantiateContractProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *InstantiateContractProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p InstantiateContractProposal) MarshalYAML() (interface{}, error)
- func (p InstantiateContractProposal) ProposalRoute() string
- func (p InstantiateContractProposal) ProposalType() string
- func (*InstantiateContractProposal) ProtoMessage()
- func (m *InstantiateContractProposal) Reset()
- func (m *InstantiateContractProposal) Size() (n int)
- func (p InstantiateContractProposal) String() string
- func (m *InstantiateContractProposal) Unmarshal(dAtA []byte) error
- func (p InstantiateContractProposal) ValidateBasic() error
- func (m *InstantiateContractProposal) XXX_DiscardUnknown()
- func (m *InstantiateContractProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InstantiateContractProposal) XXX_Merge(src proto.Message)
- func (m *InstantiateContractProposal) XXX_Size() int
- func (m *InstantiateContractProposal) XXX_Unmarshal(b []byte) error
- type Method
- func (*Method) Descriptor() ([]byte, []int)
- func (c *Method) FullName() string
- func (m *Method) GetExtra() string
- func (m *Method) GetName() string
- func (*Method) ProtoMessage()
- func (m *Method) Reset()
- func (m *Method) String() string
- func (m *Method) XXX_DiscardUnknown()
- func (m *Method) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Method) XXX_Merge(src proto.Message)
- func (m *Method) XXX_Size() int
- func (m *Method) XXX_Unmarshal(b []byte) error
- type MigrateContractProposal
- func (*MigrateContractProposal) Descriptor() ([]byte, []int)
- func (this *MigrateContractProposal) Equal(that interface{}) bool
- func (p MigrateContractProposal) GetDescription() string
- func (p *MigrateContractProposal) GetTitle() string
- func (m *MigrateContractProposal) Marshal() (dAtA []byte, err error)
- func (m *MigrateContractProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *MigrateContractProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p MigrateContractProposal) MarshalYAML() (interface{}, error)
- func (p MigrateContractProposal) ProposalRoute() string
- func (p MigrateContractProposal) ProposalType() string
- func (*MigrateContractProposal) ProtoMessage()
- func (m *MigrateContractProposal) Reset()
- func (m *MigrateContractProposal) Size() (n int)
- func (p MigrateContractProposal) String() string
- func (m *MigrateContractProposal) Unmarshal(dAtA []byte) error
- func (p MigrateContractProposal) ValidateBasic() error
- func (m *MigrateContractProposal) XXX_DiscardUnknown()
- func (m *MigrateContractProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MigrateContractProposal) XXX_Merge(src proto.Message)
- func (m *MigrateContractProposal) XXX_Size() int
- func (m *MigrateContractProposal) 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 MsgClearAdmin
- func (*MsgClearAdmin) Descriptor() ([]byte, []int)
- func (msg MsgClearAdmin) GetSignBytes() []byte
- func (msg MsgClearAdmin) GetSigners() []sdk.AccAddress
- func (m *MsgClearAdmin) Marshal() (dAtA []byte, err error)
- func (m *MsgClearAdmin) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgClearAdmin) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgClearAdmin) ProtoMessage()
- func (m *MsgClearAdmin) Reset()
- func (msg MsgClearAdmin) Route() string
- func (m *MsgClearAdmin) Size() (n int)
- func (m *MsgClearAdmin) String() string
- func (msg MsgClearAdmin) Type() string
- func (m *MsgClearAdmin) Unmarshal(dAtA []byte) error
- func (msg MsgClearAdmin) ValidateBasic() error
- func (m *MsgClearAdmin) XXX_DiscardUnknown()
- func (m *MsgClearAdmin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgClearAdmin) XXX_Merge(src proto.Message)
- func (m *MsgClearAdmin) XXX_Size() int
- func (m *MsgClearAdmin) XXX_Unmarshal(b []byte) error
- type MsgClearAdminResponse
- func (*MsgClearAdminResponse) Descriptor() ([]byte, []int)
- func (m *MsgClearAdminResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgClearAdminResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgClearAdminResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgClearAdminResponse) ProtoMessage()
- func (m *MsgClearAdminResponse) Reset()
- func (m *MsgClearAdminResponse) Size() (n int)
- func (m *MsgClearAdminResponse) String() string
- func (m *MsgClearAdminResponse) Unmarshal(dAtA []byte) error
- func (m *MsgClearAdminResponse) XXX_DiscardUnknown()
- func (m *MsgClearAdminResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgClearAdminResponse) XXX_Merge(src proto.Message)
- func (m *MsgClearAdminResponse) XXX_Size() int
- func (m *MsgClearAdminResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgExecuteContract
- func (*MsgExecuteContract) Descriptor() ([]byte, []int)
- func (msg MsgExecuteContract) GetSignBytes() []byte
- func (msg MsgExecuteContract) GetSigners() []sdk.AccAddress
- func (m *MsgExecuteContract) Marshal() (dAtA []byte, err error)
- func (m *MsgExecuteContract) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgExecuteContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgExecuteContract) ProtoMessage()
- func (m *MsgExecuteContract) Reset()
- func (msg MsgExecuteContract) Route() string
- func (m *MsgExecuteContract) Size() (n int)
- func (m *MsgExecuteContract) String() string
- func (msg MsgExecuteContract) Type() string
- func (m *MsgExecuteContract) Unmarshal(dAtA []byte) error
- func (msg MsgExecuteContract) ValidateBasic() error
- func (m *MsgExecuteContract) XXX_DiscardUnknown()
- func (m *MsgExecuteContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgExecuteContract) XXX_Merge(src proto.Message)
- func (m *MsgExecuteContract) XXX_Size() int
- func (m *MsgExecuteContract) XXX_Unmarshal(b []byte) error
- type MsgExecuteContractResponse
- func (*MsgExecuteContractResponse) Descriptor() ([]byte, []int)
- func (m *MsgExecuteContractResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgExecuteContractResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgExecuteContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgExecuteContractResponse) ProtoMessage()
- func (m *MsgExecuteContractResponse) Reset()
- func (m *MsgExecuteContractResponse) Size() (n int)
- func (m *MsgExecuteContractResponse) String() string
- func (m *MsgExecuteContractResponse) Unmarshal(dAtA []byte) error
- func (m *MsgExecuteContractResponse) XXX_DiscardUnknown()
- func (m *MsgExecuteContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgExecuteContractResponse) XXX_Merge(src proto.Message)
- func (m *MsgExecuteContractResponse) XXX_Size() int
- func (m *MsgExecuteContractResponse) XXX_Unmarshal(b []byte) error
- type MsgIBCCloseChannel
- func (*MsgIBCCloseChannel) Descriptor() ([]byte, []int)
- func (msg MsgIBCCloseChannel) GetSignBytes() []byte
- func (msg MsgIBCCloseChannel) GetSigners() []sdk.AccAddress
- func (m *MsgIBCCloseChannel) Marshal() (dAtA []byte, err error)
- func (m *MsgIBCCloseChannel) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgIBCCloseChannel) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgIBCCloseChannel) ProtoMessage()
- func (m *MsgIBCCloseChannel) Reset()
- func (msg MsgIBCCloseChannel) Route() string
- func (m *MsgIBCCloseChannel) Size() (n int)
- func (m *MsgIBCCloseChannel) String() string
- func (msg MsgIBCCloseChannel) Type() string
- func (m *MsgIBCCloseChannel) Unmarshal(dAtA []byte) error
- func (msg MsgIBCCloseChannel) ValidateBasic() error
- func (m *MsgIBCCloseChannel) XXX_DiscardUnknown()
- func (m *MsgIBCCloseChannel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgIBCCloseChannel) XXX_Merge(src proto.Message)
- func (m *MsgIBCCloseChannel) XXX_Size() int
- func (m *MsgIBCCloseChannel) XXX_Unmarshal(b []byte) error
- type MsgIBCSend
- func (*MsgIBCSend) Descriptor() ([]byte, []int)
- func (msg MsgIBCSend) GetSignBytes() []byte
- func (msg MsgIBCSend) GetSigners() []sdk.AccAddress
- func (m *MsgIBCSend) Marshal() (dAtA []byte, err error)
- func (m *MsgIBCSend) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgIBCSend) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgIBCSend) ProtoMessage()
- func (m *MsgIBCSend) Reset()
- func (msg MsgIBCSend) Route() string
- func (m *MsgIBCSend) Size() (n int)
- func (m *MsgIBCSend) String() string
- func (msg MsgIBCSend) Type() string
- func (m *MsgIBCSend) Unmarshal(dAtA []byte) error
- func (msg MsgIBCSend) ValidateBasic() error
- func (m *MsgIBCSend) XXX_DiscardUnknown()
- func (m *MsgIBCSend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgIBCSend) XXX_Merge(src proto.Message)
- func (m *MsgIBCSend) XXX_Size() int
- func (m *MsgIBCSend) XXX_Unmarshal(b []byte) error
- type MsgInstantiateContract
- func (*MsgInstantiateContract) Descriptor() ([]byte, []int)
- func (msg MsgInstantiateContract) GetSignBytes() []byte
- func (msg MsgInstantiateContract) GetSigners() []sdk.AccAddress
- func (m *MsgInstantiateContract) Marshal() (dAtA []byte, err error)
- func (m *MsgInstantiateContract) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgInstantiateContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgInstantiateContract) ProtoMessage()
- func (m *MsgInstantiateContract) Reset()
- func (msg MsgInstantiateContract) Route() string
- func (m *MsgInstantiateContract) Size() (n int)
- func (m *MsgInstantiateContract) String() string
- func (msg MsgInstantiateContract) Type() string
- func (m *MsgInstantiateContract) Unmarshal(dAtA []byte) error
- func (msg MsgInstantiateContract) ValidateBasic() error
- func (m *MsgInstantiateContract) XXX_DiscardUnknown()
- func (m *MsgInstantiateContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgInstantiateContract) XXX_Merge(src proto.Message)
- func (m *MsgInstantiateContract) XXX_Size() int
- func (m *MsgInstantiateContract) XXX_Unmarshal(b []byte) error
- type MsgInstantiateContractResponse
- func (*MsgInstantiateContractResponse) Descriptor() ([]byte, []int)
- func (m *MsgInstantiateContractResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgInstantiateContractResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgInstantiateContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgInstantiateContractResponse) ProtoMessage()
- func (m *MsgInstantiateContractResponse) Reset()
- func (m *MsgInstantiateContractResponse) Size() (n int)
- func (m *MsgInstantiateContractResponse) String() string
- func (m *MsgInstantiateContractResponse) Unmarshal(dAtA []byte) error
- func (m *MsgInstantiateContractResponse) XXX_DiscardUnknown()
- func (m *MsgInstantiateContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgInstantiateContractResponse) XXX_Merge(src proto.Message)
- func (m *MsgInstantiateContractResponse) XXX_Size() int
- func (m *MsgInstantiateContractResponse) XXX_Unmarshal(b []byte) error
- type MsgMigrateContract
- func (*MsgMigrateContract) Descriptor() ([]byte, []int)
- func (msg MsgMigrateContract) GetSignBytes() []byte
- func (msg MsgMigrateContract) GetSigners() []sdk.AccAddress
- func (m *MsgMigrateContract) Marshal() (dAtA []byte, err error)
- func (m *MsgMigrateContract) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMigrateContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMigrateContract) ProtoMessage()
- func (m *MsgMigrateContract) Reset()
- func (msg MsgMigrateContract) Route() string
- func (m *MsgMigrateContract) Size() (n int)
- func (m *MsgMigrateContract) String() string
- func (msg MsgMigrateContract) Type() string
- func (m *MsgMigrateContract) Unmarshal(dAtA []byte) error
- func (msg MsgMigrateContract) ValidateBasic() error
- func (m *MsgMigrateContract) XXX_DiscardUnknown()
- func (m *MsgMigrateContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMigrateContract) XXX_Merge(src proto.Message)
- func (m *MsgMigrateContract) XXX_Size() int
- func (m *MsgMigrateContract) XXX_Unmarshal(b []byte) error
- type MsgMigrateContractResponse
- func (*MsgMigrateContractResponse) Descriptor() ([]byte, []int)
- func (m *MsgMigrateContractResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgMigrateContractResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMigrateContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMigrateContractResponse) ProtoMessage()
- func (m *MsgMigrateContractResponse) Reset()
- func (m *MsgMigrateContractResponse) Size() (n int)
- func (m *MsgMigrateContractResponse) String() string
- func (m *MsgMigrateContractResponse) Unmarshal(dAtA []byte) error
- func (m *MsgMigrateContractResponse) XXX_DiscardUnknown()
- func (m *MsgMigrateContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMigrateContractResponse) XXX_Merge(src proto.Message)
- func (m *MsgMigrateContractResponse) XXX_Size() int
- func (m *MsgMigrateContractResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgStoreCode
- func (*MsgStoreCode) Descriptor() ([]byte, []int)
- func (msg MsgStoreCode) GetSignBytes() []byte
- func (msg MsgStoreCode) GetSigners() []sdk.AccAddress
- func (m *MsgStoreCode) Marshal() (dAtA []byte, err error)
- func (m *MsgStoreCode) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgStoreCode) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgStoreCode) ProtoMessage()
- func (m *MsgStoreCode) Reset()
- func (msg MsgStoreCode) Route() string
- func (m *MsgStoreCode) Size() (n int)
- func (m *MsgStoreCode) String() string
- func (msg MsgStoreCode) Type() string
- func (m *MsgStoreCode) Unmarshal(dAtA []byte) error
- func (msg MsgStoreCode) ValidateBasic() error
- func (m *MsgStoreCode) XXX_DiscardUnknown()
- func (m *MsgStoreCode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgStoreCode) XXX_Merge(src proto.Message)
- func (m *MsgStoreCode) XXX_Size() int
- func (m *MsgStoreCode) XXX_Unmarshal(b []byte) error
- type MsgStoreCodeResponse
- func (*MsgStoreCodeResponse) Descriptor() ([]byte, []int)
- func (m *MsgStoreCodeResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgStoreCodeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgStoreCodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgStoreCodeResponse) ProtoMessage()
- func (m *MsgStoreCodeResponse) Reset()
- func (m *MsgStoreCodeResponse) Size() (n int)
- func (m *MsgStoreCodeResponse) String() string
- func (m *MsgStoreCodeResponse) Unmarshal(dAtA []byte) error
- func (m *MsgStoreCodeResponse) XXX_DiscardUnknown()
- func (m *MsgStoreCodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgStoreCodeResponse) XXX_Merge(src proto.Message)
- func (m *MsgStoreCodeResponse) XXX_Size() int
- func (m *MsgStoreCodeResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateAdmin
- func (*MsgUpdateAdmin) Descriptor() ([]byte, []int)
- func (msg MsgUpdateAdmin) GetSignBytes() []byte
- func (msg MsgUpdateAdmin) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateAdmin) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateAdmin) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateAdmin) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateAdmin) ProtoMessage()
- func (m *MsgUpdateAdmin) Reset()
- func (msg MsgUpdateAdmin) Route() string
- func (m *MsgUpdateAdmin) Size() (n int)
- func (m *MsgUpdateAdmin) String() string
- func (msg MsgUpdateAdmin) Type() string
- func (m *MsgUpdateAdmin) Unmarshal(dAtA []byte) error
- func (msg MsgUpdateAdmin) ValidateBasic() error
- func (m *MsgUpdateAdmin) XXX_DiscardUnknown()
- func (m *MsgUpdateAdmin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateAdmin) XXX_Merge(src proto.Message)
- func (m *MsgUpdateAdmin) XXX_Size() int
- func (m *MsgUpdateAdmin) XXX_Unmarshal(b []byte) error
- type MsgUpdateAdminResponse
- func (*MsgUpdateAdminResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateAdminResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateAdminResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateAdminResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateAdminResponse) ProtoMessage()
- func (m *MsgUpdateAdminResponse) Reset()
- func (m *MsgUpdateAdminResponse) Size() (n int)
- func (m *MsgUpdateAdminResponse) String() string
- func (m *MsgUpdateAdminResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateAdminResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateAdminResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateAdminResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateAdminResponse) XXX_Size() int
- func (m *MsgUpdateAdminResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) ValidateBasic() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type PinCodesProposal
- func (*PinCodesProposal) Descriptor() ([]byte, []int)
- func (this *PinCodesProposal) Equal(that interface{}) bool
- func (p PinCodesProposal) GetDescription() string
- func (p *PinCodesProposal) GetTitle() string
- func (m *PinCodesProposal) Marshal() (dAtA []byte, err error)
- func (m *PinCodesProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *PinCodesProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p PinCodesProposal) ProposalRoute() string
- func (p PinCodesProposal) ProposalType() string
- func (*PinCodesProposal) ProtoMessage()
- func (m *PinCodesProposal) Reset()
- func (m *PinCodesProposal) Size() (n int)
- func (p PinCodesProposal) String() string
- func (m *PinCodesProposal) Unmarshal(dAtA []byte) error
- func (p PinCodesProposal) ValidateBasic() error
- func (m *PinCodesProposal) XXX_DiscardUnknown()
- func (m *PinCodesProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PinCodesProposal) XXX_Merge(src proto.Message)
- func (m *PinCodesProposal) XXX_Size() int
- func (m *PinCodesProposal) XXX_Unmarshal(b []byte) error
- type PortKeeper
- type ProposalType
- type QueryAddressWhitelistResponse
- type QueryAllContractStateRequest
- func (*QueryAllContractStateRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllContractStateRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllContractStateRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllContractStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllContractStateRequest) ProtoMessage()
- func (m *QueryAllContractStateRequest) Reset()
- func (m *QueryAllContractStateRequest) Size() (n int)
- func (m *QueryAllContractStateRequest) String() string
- func (m *QueryAllContractStateRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllContractStateRequest) XXX_DiscardUnknown()
- func (m *QueryAllContractStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllContractStateRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllContractStateRequest) XXX_Size() int
- func (m *QueryAllContractStateRequest) XXX_Unmarshal(b []byte) error
- type QueryAllContractStateResponse
- func (*QueryAllContractStateResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllContractStateResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllContractStateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllContractStateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllContractStateResponse) ProtoMessage()
- func (m *QueryAllContractStateResponse) Reset()
- func (m *QueryAllContractStateResponse) Size() (n int)
- func (m *QueryAllContractStateResponse) String() string
- func (m *QueryAllContractStateResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllContractStateResponse) XXX_DiscardUnknown()
- func (m *QueryAllContractStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllContractStateResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllContractStateResponse) XXX_Size() int
- func (m *QueryAllContractStateResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryCodeRequest
- func (*QueryCodeRequest) Descriptor() ([]byte, []int)
- 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 QueryCodesRequest
- func (*QueryCodesRequest) Descriptor() ([]byte, []int)
- func (m *QueryCodesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCodesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCodesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCodesRequest) ProtoMessage()
- func (m *QueryCodesRequest) Reset()
- func (m *QueryCodesRequest) Size() (n int)
- func (m *QueryCodesRequest) String() string
- func (m *QueryCodesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCodesRequest) XXX_DiscardUnknown()
- func (m *QueryCodesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCodesRequest) XXX_Merge(src proto.Message)
- func (m *QueryCodesRequest) XXX_Size() int
- func (m *QueryCodesRequest) XXX_Unmarshal(b []byte) error
- type QueryCodesResponse
- func (*QueryCodesResponse) Descriptor() ([]byte, []int)
- 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 QueryContractHistoryRequest
- func (*QueryContractHistoryRequest) Descriptor() ([]byte, []int)
- 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 QueryContractHistoryResponse
- func (*QueryContractHistoryResponse) Descriptor() ([]byte, []int)
- func (m *QueryContractHistoryResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryContractHistoryResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryContractHistoryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryContractHistoryResponse) ProtoMessage()
- func (m *QueryContractHistoryResponse) Reset()
- func (m *QueryContractHistoryResponse) Size() (n int)
- func (m *QueryContractHistoryResponse) String() string
- func (m *QueryContractHistoryResponse) Unmarshal(dAtA []byte) error
- func (m *QueryContractHistoryResponse) XXX_DiscardUnknown()
- func (m *QueryContractHistoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryContractHistoryResponse) XXX_Merge(src proto.Message)
- func (m *QueryContractHistoryResponse) XXX_Size() int
- func (m *QueryContractHistoryResponse) XXX_Unmarshal(b []byte) error
- type QueryContractInfoRequest
- func (*QueryContractInfoRequest) Descriptor() ([]byte, []int)
- 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 QueryContractsByCodeRequest
- func (*QueryContractsByCodeRequest) Descriptor() ([]byte, []int)
- 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 (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 QueryExtraParams
- func (*QueryExtraParams) Descriptor() ([]byte, []int)
- func (m *QueryExtraParams) GetGasFactor() string
- func (*QueryExtraParams) ProtoMessage()
- func (m *QueryExtraParams) Reset()
- func (m *QueryExtraParams) String() string
- func (m *QueryExtraParams) XXX_DiscardUnknown()
- func (m *QueryExtraParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryExtraParams) XXX_Merge(src proto.Message)
- func (m *QueryExtraParams) XXX_Size() int
- func (m *QueryExtraParams) XXX_Unmarshal(b []byte) error
- type QueryPinnedCodesRequest
- func (*QueryPinnedCodesRequest) Descriptor() ([]byte, []int)
- func (m *QueryPinnedCodesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryPinnedCodesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPinnedCodesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPinnedCodesRequest) ProtoMessage()
- func (m *QueryPinnedCodesRequest) Reset()
- func (m *QueryPinnedCodesRequest) Size() (n int)
- func (m *QueryPinnedCodesRequest) String() string
- func (m *QueryPinnedCodesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryPinnedCodesRequest) XXX_DiscardUnknown()
- func (m *QueryPinnedCodesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPinnedCodesRequest) XXX_Merge(src proto.Message)
- func (m *QueryPinnedCodesRequest) XXX_Size() int
- func (m *QueryPinnedCodesRequest) XXX_Unmarshal(b []byte) error
- type QueryPinnedCodesResponse
- func (*QueryPinnedCodesResponse) Descriptor() ([]byte, []int)
- func (m *QueryPinnedCodesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryPinnedCodesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPinnedCodesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPinnedCodesResponse) ProtoMessage()
- func (m *QueryPinnedCodesResponse) Reset()
- func (m *QueryPinnedCodesResponse) Size() (n int)
- func (m *QueryPinnedCodesResponse) String() string
- func (m *QueryPinnedCodesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryPinnedCodesResponse) XXX_DiscardUnknown()
- func (m *QueryPinnedCodesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPinnedCodesResponse) XXX_Merge(src proto.Message)
- func (m *QueryPinnedCodesResponse) XXX_Size() int
- func (m *QueryPinnedCodesResponse) XXX_Unmarshal(b []byte) error
- type QueryRawContractStateRequest
- func (*QueryRawContractStateRequest) Descriptor() ([]byte, []int)
- func (m *QueryRawContractStateRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryRawContractStateRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRawContractStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRawContractStateRequest) ProtoMessage()
- func (m *QueryRawContractStateRequest) Reset()
- func (m *QueryRawContractStateRequest) Size() (n int)
- func (m *QueryRawContractStateRequest) String() string
- func (m *QueryRawContractStateRequest) Unmarshal(dAtA []byte) error
- func (m *QueryRawContractStateRequest) XXX_DiscardUnknown()
- func (m *QueryRawContractStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRawContractStateRequest) XXX_Merge(src proto.Message)
- func (m *QueryRawContractStateRequest) XXX_Size() int
- func (m *QueryRawContractStateRequest) XXX_Unmarshal(b []byte) error
- type QueryRawContractStateResponse
- func (*QueryRawContractStateResponse) Descriptor() ([]byte, []int)
- func (m *QueryRawContractStateResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryRawContractStateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRawContractStateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRawContractStateResponse) ProtoMessage()
- func (m *QueryRawContractStateResponse) Reset()
- func (m *QueryRawContractStateResponse) Size() (n int)
- func (m *QueryRawContractStateResponse) String() string
- func (m *QueryRawContractStateResponse) Unmarshal(dAtA []byte) error
- func (m *QueryRawContractStateResponse) XXX_DiscardUnknown()
- func (m *QueryRawContractStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRawContractStateResponse) XXX_Merge(src proto.Message)
- func (m *QueryRawContractStateResponse) XXX_Size() int
- func (m *QueryRawContractStateResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type QuerySmartContractStateRequest
- func (*QuerySmartContractStateRequest) Descriptor() ([]byte, []int)
- 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 (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 RawContractMessage
- 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 StakingKeeper
- type StoreAdapter
- type StoreCodeProposal
- func (*StoreCodeProposal) Descriptor() ([]byte, []int)
- func (this *StoreCodeProposal) Equal(that interface{}) bool
- func (p StoreCodeProposal) GetDescription() string
- func (p *StoreCodeProposal) GetTitle() string
- func (m *StoreCodeProposal) Marshal() (dAtA []byte, err error)
- func (m *StoreCodeProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *StoreCodeProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p StoreCodeProposal) MarshalYAML() (interface{}, error)
- func (p StoreCodeProposal) ProposalRoute() string
- func (p StoreCodeProposal) ProposalType() string
- func (*StoreCodeProposal) ProtoMessage()
- func (m *StoreCodeProposal) Reset()
- func (m *StoreCodeProposal) Size() (n int)
- func (p StoreCodeProposal) String() string
- func (m *StoreCodeProposal) Unmarshal(dAtA []byte) error
- func (p StoreCodeProposal) ValidateBasic() error
- func (m *StoreCodeProposal) XXX_DiscardUnknown()
- func (m *StoreCodeProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StoreCodeProposal) XXX_Merge(src proto.Message)
- func (m *StoreCodeProposal) XXX_Size() int
- func (m *StoreCodeProposal) XXX_Unmarshal(b []byte) error
- type Subspace
- type SudoContractProposal
- func (*SudoContractProposal) Descriptor() ([]byte, []int)
- func (this *SudoContractProposal) Equal(that interface{}) bool
- func (p SudoContractProposal) GetDescription() string
- func (p *SudoContractProposal) GetTitle() string
- func (m *SudoContractProposal) Marshal() (dAtA []byte, err error)
- func (m *SudoContractProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *SudoContractProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p SudoContractProposal) MarshalYAML() (interface{}, error)
- func (p SudoContractProposal) ProposalRoute() string
- func (p SudoContractProposal) ProposalType() string
- func (*SudoContractProposal) ProtoMessage()
- func (m *SudoContractProposal) Reset()
- func (m *SudoContractProposal) Size() (n int)
- func (p SudoContractProposal) String() string
- func (m *SudoContractProposal) Unmarshal(dAtA []byte) error
- func (p SudoContractProposal) ValidateBasic() error
- func (m *SudoContractProposal) XXX_DiscardUnknown()
- func (m *SudoContractProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SudoContractProposal) XXX_Merge(src proto.Message)
- func (m *SudoContractProposal) XXX_Size() int
- func (m *SudoContractProposal) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) ClearAdmin(ctx context.Context, req *MsgClearAdmin) (*MsgClearAdminResponse, error)
- func (*UnimplementedMsgServer) ExecuteContract(ctx context.Context, req *MsgExecuteContract) (*MsgExecuteContractResponse, error)
- func (*UnimplementedMsgServer) InstantiateContract(ctx context.Context, req *MsgInstantiateContract) (*MsgInstantiateContractResponse, error)
- func (*UnimplementedMsgServer) MigrateContract(ctx context.Context, req *MsgMigrateContract) (*MsgMigrateContractResponse, error)
- func (*UnimplementedMsgServer) StoreCode(ctx context.Context, req *MsgStoreCode) (*MsgStoreCodeResponse, error)
- func (*UnimplementedMsgServer) UpdateAdmin(ctx context.Context, req *MsgUpdateAdmin) (*MsgUpdateAdminResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) AllContractState(ctx context.Context, req *QueryAllContractStateRequest) (*QueryAllContractStateResponse, error)
- func (*UnimplementedQueryServer) Code(ctx context.Context, req *QueryCodeRequest) (*QueryCodeResponse, error)
- func (*UnimplementedQueryServer) Codes(ctx context.Context, req *QueryCodesRequest) (*QueryCodesResponse, error)
- func (*UnimplementedQueryServer) ContractHistory(ctx context.Context, req *QueryContractHistoryRequest) (*QueryContractHistoryResponse, error)
- func (*UnimplementedQueryServer) ContractInfo(ctx context.Context, req *QueryContractInfoRequest) (*QueryContractInfoResponse, error)
- func (*UnimplementedQueryServer) ContractsByCode(ctx context.Context, req *QueryContractsByCodeRequest) (*QueryContractsByCodeResponse, error)
- func (*UnimplementedQueryServer) PinnedCodes(ctx context.Context, req *QueryPinnedCodesRequest) (*QueryPinnedCodesResponse, error)
- func (*UnimplementedQueryServer) RawContractState(ctx context.Context, req *QueryRawContractStateRequest) (*QueryRawContractStateResponse, error)
- func (*UnimplementedQueryServer) SmartContractState(ctx context.Context, req *QuerySmartContractStateRequest) (*QuerySmartContractStateResponse, error)
- type UnpinCodesProposal
- func (*UnpinCodesProposal) Descriptor() ([]byte, []int)
- func (this *UnpinCodesProposal) Equal(that interface{}) bool
- func (p UnpinCodesProposal) GetDescription() string
- func (p *UnpinCodesProposal) GetTitle() string
- func (m *UnpinCodesProposal) Marshal() (dAtA []byte, err error)
- func (m *UnpinCodesProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *UnpinCodesProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p UnpinCodesProposal) ProposalRoute() string
- func (p UnpinCodesProposal) ProposalType() string
- func (*UnpinCodesProposal) ProtoMessage()
- func (m *UnpinCodesProposal) Reset()
- func (m *UnpinCodesProposal) Size() (n int)
- func (p UnpinCodesProposal) String() string
- func (m *UnpinCodesProposal) Unmarshal(dAtA []byte) error
- func (p UnpinCodesProposal) ValidateBasic() error
- func (m *UnpinCodesProposal) XXX_DiscardUnknown()
- func (m *UnpinCodesProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UnpinCodesProposal) XXX_Merge(src proto.Message)
- func (m *UnpinCodesProposal) XXX_Size() int
- func (m *UnpinCodesProposal) XXX_Unmarshal(b []byte) error
- type UpdateAdminProposal
- func (*UpdateAdminProposal) Descriptor() ([]byte, []int)
- func (this *UpdateAdminProposal) Equal(that interface{}) bool
- func (p UpdateAdminProposal) GetDescription() string
- func (p *UpdateAdminProposal) GetTitle() string
- func (m *UpdateAdminProposal) Marshal() (dAtA []byte, err error)
- func (m *UpdateAdminProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *UpdateAdminProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p UpdateAdminProposal) ProposalRoute() string
- func (p UpdateAdminProposal) ProposalType() string
- func (*UpdateAdminProposal) ProtoMessage()
- func (m *UpdateAdminProposal) Reset()
- func (m *UpdateAdminProposal) Size() (n int)
- func (p UpdateAdminProposal) String() string
- func (m *UpdateAdminProposal) Unmarshal(dAtA []byte) error
- func (p UpdateAdminProposal) ValidateBasic() error
- func (m *UpdateAdminProposal) XXX_DiscardUnknown()
- func (m *UpdateAdminProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateAdminProposal) XXX_Merge(src proto.Message)
- func (m *UpdateAdminProposal) XXX_Size() int
- func (m *UpdateAdminProposal) XXX_Unmarshal(b []byte) error
- type UpdateDeploymentWhitelistProposal
- func (*UpdateDeploymentWhitelistProposal) Descriptor() ([]byte, []int)
- func (m *UpdateDeploymentWhitelistProposal) GetDescription() string
- func (m *UpdateDeploymentWhitelistProposal) GetDistributorAddrs() []string
- func (m *UpdateDeploymentWhitelistProposal) GetTitle() string
- func (p UpdateDeploymentWhitelistProposal) MarshalYAML() (interface{}, error)
- func (p UpdateDeploymentWhitelistProposal) ProposalRoute() string
- func (p UpdateDeploymentWhitelistProposal) ProposalType() string
- func (*UpdateDeploymentWhitelistProposal) ProtoMessage()
- func (m *UpdateDeploymentWhitelistProposal) Reset()
- func (m *UpdateDeploymentWhitelistProposal) String() string
- func (p UpdateDeploymentWhitelistProposal) ValidateBasic() error
- func (m *UpdateDeploymentWhitelistProposal) XXX_DiscardUnknown()
- func (m *UpdateDeploymentWhitelistProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateDeploymentWhitelistProposal) XXX_Merge(src proto.Message)
- func (m *UpdateDeploymentWhitelistProposal) XXX_Size() int
- func (m *UpdateDeploymentWhitelistProposal) XXX_Unmarshal(b []byte) error
- type UpdateInstantiateConfigProposal
- func (*UpdateInstantiateConfigProposal) Descriptor() ([]byte, []int)
- func (this *UpdateInstantiateConfigProposal) Equal(that interface{}) bool
- func (p UpdateInstantiateConfigProposal) GetDescription() string
- func (p *UpdateInstantiateConfigProposal) GetTitle() string
- func (m *UpdateInstantiateConfigProposal) Marshal() (dAtA []byte, err error)
- func (m *UpdateInstantiateConfigProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *UpdateInstantiateConfigProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p UpdateInstantiateConfigProposal) ProposalRoute() string
- func (p UpdateInstantiateConfigProposal) ProposalType() string
- func (*UpdateInstantiateConfigProposal) ProtoMessage()
- func (m *UpdateInstantiateConfigProposal) Reset()
- func (m *UpdateInstantiateConfigProposal) Size() (n int)
- func (p UpdateInstantiateConfigProposal) String() string
- func (m *UpdateInstantiateConfigProposal) Unmarshal(dAtA []byte) error
- func (p UpdateInstantiateConfigProposal) ValidateBasic() error
- func (m *UpdateInstantiateConfigProposal) XXX_DiscardUnknown()
- func (m *UpdateInstantiateConfigProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateInstantiateConfigProposal) XXX_Merge(src proto.Message)
- func (m *UpdateInstantiateConfigProposal) XXX_Size() int
- func (m *UpdateInstantiateConfigProposal) XXX_Unmarshal(b []byte) error
- type UpdateWASMContractMethodBlockedListProposal
- func (*UpdateWASMContractMethodBlockedListProposal) Descriptor() ([]byte, []int)
- func (m *UpdateWASMContractMethodBlockedListProposal) GetBlockedMethods() *ContractMethods
- func (m *UpdateWASMContractMethodBlockedListProposal) GetDescription() string
- func (m *UpdateWASMContractMethodBlockedListProposal) GetIsDelete() bool
- func (m *UpdateWASMContractMethodBlockedListProposal) GetTitle() string
- func (p UpdateWASMContractMethodBlockedListProposal) MarshalYAML() (interface{}, error)
- func (p UpdateWASMContractMethodBlockedListProposal) ProposalRoute() string
- func (p UpdateWASMContractMethodBlockedListProposal) ProposalType() string
- func (*UpdateWASMContractMethodBlockedListProposal) ProtoMessage()
- func (m *UpdateWASMContractMethodBlockedListProposal) Reset()
- func (m *UpdateWASMContractMethodBlockedListProposal) String() string
- func (p UpdateWASMContractMethodBlockedListProposal) ValidateBasic() error
- func (m *UpdateWASMContractMethodBlockedListProposal) XXX_DiscardUnknown()
- func (m *UpdateWASMContractMethodBlockedListProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateWASMContractMethodBlockedListProposal) XXX_Merge(src proto.Message)
- func (m *UpdateWASMContractMethodBlockedListProposal) XXX_Size() int
- func (m *UpdateWASMContractMethodBlockedListProposal) XXX_Unmarshal(b []byte) error
- type ViewKeeper
- type WasmConfig
- type WasmerEngine
Constants ¶
const ( // WasmModuleEventType is stored with any contract TX that returns non empty EventAttributes WasmModuleEventType = "wasm" // CustomContractEventPrefix contracts can create custom events. To not mix them with other system events they got the `wasm-` prefix. CustomContractEventPrefix = "wasm-" EventTypeStoreCode = "store_code" EventTypeInstantiate = "instantiate" EventTypeExecute = "execute" EventTypeMigrate = "migrate" EventTypePinCode = "pin_code" EventTypeUnpinCode = "unpin_code" EventTypeSudo = "sudo" EventTypeReply = "reply" EventTypeGovContractResult = "gov_contract_result" )
const ( AttributeReservedPrefix = "_" AttributeKeyContractAddr = "_contract_address" AttributeKeyCodeID = "code_id" AttributeKeyResultDataHex = "result" AttributeKeyFeature = "feature" )
event attributes returned from contract execution
const ( InstantiateInnertxName = "wasm-instantiate" MigrateInnertxName = "wasm-migrate" SetContractAdminInnertxName = "wasm-setContractAdmin" ExecuteInnertxName = "wasm-execute" )
const ( // ModuleName is the name of the contract module ModuleName = "wasm" // 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 wasm module QuerierRoute = ModuleName // RouterKey is the msg router key for the wasm module RouterKey = ModuleName )
const ( // SDKAddrLen defines a valid address length that was used in sdk address generation SDKAddrLen = 20 ContractIndex = 12 )
const AbsoluteTxPositionLen = 16
AbsoluteTxPositionLen number of elements in byte representation
const DefaultMaxQueryStackSize uint32 = 10
DefaultMaxQueryStackSize maximum size of the stack of contract instances doing queries
const EnableGasVerification = true
Tests should not fail on gas consumption
const (
MaxGasFactor int64 = 10000000
)
Variables ¶
var ( DefaultCodespace = ModuleName // ErrCreateFailed error for wasm code that has already been uploaded or failed ErrCreateFailed = sdkErrors.Register(DefaultCodespace, 2, "create wasm contract failed") // ErrAccountExists error for a contract account that already exists ErrAccountExists = sdkErrors.Register(DefaultCodespace, 3, "contract account already exists") // ErrInstantiateFailed error for rust instantiate contract failure ErrInstantiateFailed = sdkErrors.Register(DefaultCodespace, 4, "instantiate wasm contract failed") // ErrExecuteFailed error for rust execution contract failure ErrExecuteFailed = sdkErrors.Register(DefaultCodespace, 5, "execute wasm contract failed") // ErrGasLimit error for out of gas ErrGasLimit = sdkErrors.Register(DefaultCodespace, 6, "insufficient gas") // ErrInvalidGenesis error for invalid genesis file syntax ErrInvalidGenesis = sdkErrors.Register(DefaultCodespace, 7, "invalid genesis") // ErrNotFound error for an entry not found in the store ErrNotFound = sdkErrors.Register(DefaultCodespace, 8, "not found") // ErrQueryFailed error for rust smart query contract failure ErrQueryFailed = sdkErrors.Register(DefaultCodespace, 9, "query wasm contract failed") // ErrInvalidMsg error when we cannot process the error returned from the contract ErrInvalidMsg = sdkErrors.Register(DefaultCodespace, 10, "invalid CosmosMsg from the contract") // ErrMigrationFailed error for rust execution contract failure ErrMigrationFailed = sdkErrors.Register(DefaultCodespace, 11, "migrate wasm contract failed") // ErrEmpty error for empty content ErrEmpty = sdkErrors.Register(DefaultCodespace, 12, "empty") // ErrLimit error for content that exceeds a limit ErrLimit = sdkErrors.Register(DefaultCodespace, 13, "exceeds limit") // ErrInvalid error for content that is invalid in this context ErrInvalid = sdkErrors.Register(DefaultCodespace, 14, "invalid") // ErrDuplicate error for content that exists ErrDuplicate = sdkErrors.Register(DefaultCodespace, 15, "duplicate") // ErrMaxIBCChannels error for maximum number of ibc channels reached ErrMaxIBCChannels = sdkErrors.Register(DefaultCodespace, 16, "max transfer channels") // ErrUnsupportedForContract error when a feature is used that is not supported for/ by this contract ErrUnsupportedForContract = sdkErrors.Register(DefaultCodespace, 17, "unsupported for this contract") // ErrPinContractFailed error for pinning contract failures ErrPinContractFailed = sdkErrors.Register(DefaultCodespace, 18, "pinning contract failed") // ErrUnpinContractFailed error for unpinning contract failures ErrUnpinContractFailed = sdkErrors.Register(DefaultCodespace, 19, "unpinning contract failed") // ErrUnknownMsg error by a message handler to show that it is not responsible for this message type ErrUnknownMsg = sdkErrors.Register(DefaultCodespace, 20, "unknown message from the contract") // ErrInvalidEvent error if an attribute/event from the contract is invalid ErrInvalidEvent = sdkErrors.Register(DefaultCodespace, 21, "invalid event") // ErrNotAJSONObject error if given data is not a JSON object ErrNotAJSONObject = sdkErrors.Register(DefaultCodespace, 23, "not a JSON object") // ErrNoTopLevelKey error if a JSON object has no top-level key ErrNoTopLevelKey = sdkErrors.Register(DefaultCodespace, 24, "no top-level key") // ErrMultipleTopLevelKeys error if a JSON object has more than one top-level key ErrMultipleTopLevelKeys = sdkErrors.Register(DefaultCodespace, 25, "multiple top-level keys") // ErrTopKevelKeyNotAllowed error if a JSON object has a top-level key that is not allowed ErrTopKevelKeyNotAllowed = sdkErrors.Register(DefaultCodespace, 26, "top-level key is not allowed") // ErrExceedMaxQueryStackSize error if max query stack size is exceeded ErrExceedMaxQueryStackSize = sdkErrors.Register(DefaultCodespace, 27, "max query stack size exceeded") ErrCodeInvalidGasFactor = sdkErrors.Register(DefaultCodespace, 29, "invalid gas factor") ErrHandleExtraProposal = sdkErrors.Register(DefaultCodespace, 30, "handle extra proposal error") ErrUnknownExtraProposalAction = sdkErrors.Register(DefaultCodespace, 31, "extra proposal's action unknown") ErrProposerMustBeValidator = sdkErrors.Register(DefaultCodespace, 32, "the proposal of proposer must be validator") )
Codes for wasm contract errors
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 ( ErrInvalidLengthIbc = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowIbc = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupIbc = fmt.Errorf("proto: unexpected end of group") )
var ( CodeKeyPrefix = []byte{0x01} ContractKeyPrefix = []byte{0x02} ContractStorePrefix = []byte{0x03} SequenceKeyPrefix = []byte{0x04} ContractCodeHistoryElementPrefix = []byte{0x05} ContractByCodeIDAndCreatedSecondaryIndexPrefix = []byte{0x06} PinnedCodeIndexPrefix = []byte{0x07} TXCounterPrefix = []byte{0x08} ContractMethodBlockedListPrefix = []byte{0x10} GasFactorPrefix = []byte{0x11} KeyLastCodeID = append(SequenceKeyPrefix, []byte("lastCodeId")...) KeyLastInstanceID = append(SequenceKeyPrefix, []byte("lastContractId")...) KeyGasFactorPrefix = append(GasFactorPrefix, []byte("gasFactor")...) )
nolint
var ( ParamStoreKeyUploadAccess = []byte("uploadAccess") ParamStoreKeyInstantiateAccess = []byte("instantiateAccess") ParamStoreKeyContractBlockedList = []byte("EnableContractBlockedList") ParamStoreKeyVMBridgeEnable = []byte("VMBridgeEnable") )
var ( DefaultUploadAccess = AllowNobody AllowEverybody = AccessConfig{Permission: AccessTypeEverybody} AllowNobody = AccessConfig{Permission: AccessTypeNobody} )
var ( ErrInvalidLengthProposal = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowProposal = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupProposal = 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 ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = 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 ( // MaxLabelSize is the longest label that can be used when Instantiating a contract MaxLabelSize = 128 // extension point for chains to customize via compile flag. // MaxWasmSize is the largest a compiled contract code can be when storing code on chain MaxWasmSize = 800 * 1024 // extension point for chains to customize via compile flag. )
var AccessType_name = map[int32]string{
0: "ACCESS_TYPE_UNSPECIFIED",
1: "ACCESS_TYPE_NOBODY",
2: "ACCESS_TYPE_ONLY_ADDRESS",
3: "ACCESS_TYPE_EVERYBODY",
}
var AccessType_value = map[string]int32{
"ACCESS_TYPE_UNSPECIFIED": 0,
"ACCESS_TYPE_NOBODY": 1,
"ACCESS_TYPE_ONLY_ADDRESS": 2,
"ACCESS_TYPE_EVERYBODY": 3,
}
var AllAccessTypes = []AccessType{ AccessTypeNobody, AccessTypeOnlyAddress, AccessTypeEverybody, }
var AllCodeHistoryTypes = []ContractCodeHistoryOperationType{ContractCodeHistoryOperationTypeGenesis, ContractCodeHistoryOperationTypeInit, ContractCodeHistoryOperationTypeMigrate}
var ContractCodeHistoryOperationType_name = map[int32]string{
0: "CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED",
1: "CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT",
2: "CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE",
3: "CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS",
}
var ContractCodeHistoryOperationType_value = map[string]int32{
"CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED": 0,
"CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT": 1,
"CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE": 2,
"CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS": 3,
}
var DisableAllProposals []ProposalType
DisableAllProposals contains no wasm gov types.
var EnableAllProposals = []ProposalType{ ProposalTypeStoreCode, ProposalTypeInstantiateContract, ProposalTypeMigrateContract, ProposalTypeSudoContract, ProposalTypeExecuteContract, ProposalTypeUpdateAdmin, ProposalTypeClearAdmin, ProposalTypePinCodes, ProposalTypeUnpinCodes, ProposalTypeUpdateInstantiateConfig, ProposalTypeUpdateDeploymentWhitelist, ProposalTypeUpdateWasmContractMethodBlockedList, ProposalTypeExtra, }
EnableAllProposals contains all wasm gov types as keys.
var (
ModuleCdc = codec.New()
)
var NecessaryProposals = []ProposalType{ ProposalTypeUpdateAdmin, ProposalTypeClearAdmin, ProposalTypeMigrateContract, ProposalTypePinCodes, ProposalTypeUnpinCodes, ProposalTypeUpdateDeploymentWhitelist, ProposalTypeUpdateWasmContractMethodBlockedList, ProposalTypeExtra, }
NecessaryProposals contains necessary wasm gov types as keys.
Functions ¶
func ErrExtraProposalParams ¶ added in v1.7.0
func GenerateUnauthorizeError ¶ added in v1.7.0
func GenerateUnauthorizeError(act AccessType) string
func GetCodeKey ¶
GetCodeKey constructs the key for retreiving the ID for the WASM code
func GetContractAddressKey ¶
func GetContractAddressKey(addr sdk.WasmAddress) []byte
GetContractAddressKey returns the key for the WASM contract instance
func GetContractByCodeIDSecondaryIndexPrefix ¶
GetContractByCodeIDSecondaryIndexPrefix returns the prefix for the second index: `<prefix><codeID>`
func GetContractByCreatedSecondaryIndexKey ¶
func GetContractByCreatedSecondaryIndexKey(contractAddr sdk.WasmAddress, c ContractCodeHistoryEntry) []byte
GetContractByCreatedSecondaryIndexKey returns the key for the secondary index: `<prefix><codeID><created/last-migrated><contractAddr>`
func GetContractCodeHistoryElementKey ¶
func GetContractCodeHistoryElementKey(contractAddr sdk.WasmAddress, pos uint64) []byte
GetContractCodeHistoryElementKey returns the key a contract code history entry: `<prefix><contractAddr><position>`
func GetContractCodeHistoryElementPrefix ¶
func GetContractCodeHistoryElementPrefix(contractAddr sdk.WasmAddress) []byte
GetContractCodeHistoryElementPrefix returns the key prefix for a contract code history entry: `<prefix><contractAddr>`
func GetContractMethodBlockedListPrefix ¶ added in v1.6.4
func GetContractStorePrefix ¶
func GetContractStorePrefix(addr sdk.WasmAddress) []byte
GetContractStorePrefix returns the store prefix for the WASM contract instance
func GetPinnedCodeIndexPrefix ¶
GetPinnedCodeIndexPrefix returns the key prefix for a code id pinned into the wasmvm cache
func IsAllAddress ¶ added in v1.6.4
func IsJSONObjectWithTopLevelKey ¶
IsJSONObjectWithTopLevelKey checks if the given bytes are a valid JSON object with exactly one top-level key that is contained in the list of allowed keys.
func Module ¶
Module is a specialized version of a composed address for modules. Each module account is constructed from a module name and module account key.
func NewActionModifyGasFactor ¶ added in v1.7.0
func NewEnv ¶
func NewEnv(ctx sdk.Context, contractAddr sdk.WasmAddress) wasmvmtypes.Env
NewEnv initializes the environment for a contract instance
func NewInfo ¶
func NewInfo(creator sdk.WasmAddress, deposit sdk.CoinAdapters) wasmvmtypes.MessageInfo
NewInfo initializes the MessageInfo for a contract instance
func NewWasmCoins ¶
func NewWasmCoins(cosmosCoins sdk.CoinAdapters) (wasmCoins []wasmvmtypes.Coin)
NewWasmCoins translates between Cosmos SDK coins and Wasm coins
func OnlyGenesisFields ¶
func OnlyGenesisFields(info *ContractInfo)
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable returns the parameter key table.
func ParsePinnedCodeIndex ¶
ParsePinnedCodeIndex converts the serialized code ID back.
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
RegisterLegacyAminoCodec registers the account types and interface
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func TXCounter ¶
TXCounter returns the tx counter value and found bool from the context. The result will be (0, false) for external queries or simulations where no counter available.
func ValidateGenesis ¶
func ValidateGenesis(data GenesisState) error
ValidateGenesis performs basic validation of supply genesis data returning an error for any failed validation criteria.
func VerifyAddressLen ¶
VerifyAddressLen ensures that the address matches the expected length
func WithSHA256CodeHash ¶
Types ¶
type AbsoluteTxPosition ¶
type AbsoluteTxPosition struct { // BlockHeight is the block the contract was created at BlockHeight uint64 `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` // TxIndex is a monotonic counter within the block (actual transaction index, // or gas consumed) TxIndex uint64 `protobuf:"varint,2,opt,name=tx_index,json=txIndex,proto3" json:"tx_index,omitempty"` }
AbsoluteTxPosition is a unique transaction position that allows for global ordering of transactions.
func NewAbsoluteTxPosition ¶
func NewAbsoluteTxPosition(ctx sdk.Context) *AbsoluteTxPosition
NewAbsoluteTxPosition gets a block position from the context
func (*AbsoluteTxPosition) Bytes ¶
func (a *AbsoluteTxPosition) Bytes() []byte
Bytes encodes the object into a 16 byte representation with big endian block height and tx index.
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 AccessConfig ¶
type AccessConfig struct { Permission AccessType `protobuf:"varint,1,opt,name=permission,proto3,enum=cosmwasm.wasm.v1.AccessType" json:"permission,omitempty" yaml:"permission"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty" yaml:"address"` }
AccessConfig access control type.
func ConvertAccessConfig ¶ added in v1.7.0
func ConvertAccessConfig(config AccessConfig) (AccessConfig, error)
func (AccessConfig) Allowed ¶
func (a AccessConfig) Allowed(actor sdk.WasmAddress) bool
func (*AccessConfig) Descriptor ¶
func (*AccessConfig) Descriptor() ([]byte, []int)
func (*AccessConfig) Equal ¶
func (this *AccessConfig) Equal(that interface{}) bool
func (AccessConfig) Equals ¶
func (a AccessConfig) Equals(o AccessConfig) bool
func (AccessConfig) IsSubset ¶
func (a AccessConfig) IsSubset(superSet AccessConfig) bool
IsSubset will return true if the caller is the same as the superset, or if the caller is more restrictive than the superset.
func (*AccessConfig) Marshal ¶
func (m *AccessConfig) Marshal() (dAtA []byte, err error)
func (*AccessConfig) MarshalToSizedBuffer ¶
func (m *AccessConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AccessConfig) ProtoMessage ¶
func (*AccessConfig) ProtoMessage()
func (*AccessConfig) Reset ¶
func (m *AccessConfig) Reset()
func (*AccessConfig) Size ¶
func (m *AccessConfig) Size() (n int)
func (*AccessConfig) String ¶
func (m *AccessConfig) String() string
func (*AccessConfig) Unmarshal ¶
func (m *AccessConfig) Unmarshal(dAtA []byte) error
func (AccessConfig) ValidateBasic ¶
func (a AccessConfig) ValidateBasic() error
func (*AccessConfig) XXX_DiscardUnknown ¶
func (m *AccessConfig) XXX_DiscardUnknown()
func (*AccessConfig) XXX_Marshal ¶
func (m *AccessConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AccessConfig) XXX_Merge ¶
func (m *AccessConfig) XXX_Merge(src proto.Message)
func (*AccessConfig) XXX_Size ¶
func (m *AccessConfig) XXX_Size() int
func (*AccessConfig) XXX_Unmarshal ¶
func (m *AccessConfig) XXX_Unmarshal(b []byte) error
type AccessConfigUpdate ¶
type AccessConfigUpdate struct { // CodeID is the reference to the stored WASM code to be updated CodeID uint64 `protobuf:"varint,1,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"` // InstantiatePermission to apply to the set of code ids InstantiatePermission AccessConfig `protobuf:"bytes,2,opt,name=instantiate_permission,json=instantiatePermission,proto3" json:"instantiate_permission"` }
AccessConfigUpdate contains the code id and the access config to be applied.
func (*AccessConfigUpdate) Descriptor ¶
func (*AccessConfigUpdate) Descriptor() ([]byte, []int)
func (*AccessConfigUpdate) Equal ¶
func (this *AccessConfigUpdate) Equal(that interface{}) bool
func (*AccessConfigUpdate) Marshal ¶
func (m *AccessConfigUpdate) Marshal() (dAtA []byte, err error)
func (*AccessConfigUpdate) MarshalTo ¶
func (m *AccessConfigUpdate) MarshalTo(dAtA []byte) (int, error)
func (*AccessConfigUpdate) MarshalToSizedBuffer ¶
func (m *AccessConfigUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AccessConfigUpdate) ProtoMessage ¶
func (*AccessConfigUpdate) ProtoMessage()
func (*AccessConfigUpdate) Reset ¶
func (m *AccessConfigUpdate) Reset()
func (*AccessConfigUpdate) Size ¶
func (m *AccessConfigUpdate) Size() (n int)
func (AccessConfigUpdate) String ¶
func (c AccessConfigUpdate) String() string
String implements the Stringer interface.
func (*AccessConfigUpdate) Unmarshal ¶
func (m *AccessConfigUpdate) Unmarshal(dAtA []byte) error
func (*AccessConfigUpdate) XXX_DiscardUnknown ¶
func (m *AccessConfigUpdate) XXX_DiscardUnknown()
func (*AccessConfigUpdate) XXX_Marshal ¶
func (m *AccessConfigUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AccessConfigUpdate) XXX_Merge ¶
func (m *AccessConfigUpdate) XXX_Merge(src proto.Message)
func (*AccessConfigUpdate) XXX_Size ¶
func (m *AccessConfigUpdate) XXX_Size() int
func (*AccessConfigUpdate) XXX_Unmarshal ¶
func (m *AccessConfigUpdate) XXX_Unmarshal(b []byte) error
type AccessType ¶
type AccessType int32
AccessType permission types
const ( // AccessTypeUnspecified placeholder for empty value AccessTypeUnspecified AccessType = 0 // AccessTypeNobody forbidden AccessTypeNobody AccessType = 1 // AccessTypeOnlyAddress restricted to some addresses AccessTypeOnlyAddress AccessType = 2 // AccessTypeEverybody unrestricted AccessTypeEverybody AccessType = 3 )
func (AccessType) EnumDescriptor ¶
func (AccessType) EnumDescriptor() ([]byte, []int)
func (*AccessType) MarshalJSONPB ¶
func (a *AccessType) MarshalJSONPB(_ *jsonpb.Marshaler) ([]byte, error)
func (AccessType) MarshalText ¶
func (a AccessType) MarshalText() ([]byte, error)
func (AccessType) String ¶
func (a AccessType) String() string
func (*AccessType) UnmarshalJSONPB ¶
func (a *AccessType) UnmarshalJSONPB(_ *jsonpb.Unmarshaler, data []byte) error
func (*AccessType) UnmarshalText ¶
func (a *AccessType) UnmarshalText(text []byte) error
func (AccessType) With ¶
func (a AccessType) With(addr sdk.WasmAddress) AccessConfig
type AccessTypeParam ¶
type AccessTypeParam struct {
Value AccessType `protobuf:"varint,1,opt,name=value,proto3,enum=cosmwasm.wasm.v1.AccessType" json:"value,omitempty" yaml:"value"`
}
AccessTypeParam
func (*AccessTypeParam) Descriptor ¶
func (*AccessTypeParam) Descriptor() ([]byte, []int)
func (*AccessTypeParam) Equal ¶
func (this *AccessTypeParam) Equal(that interface{}) bool
func (*AccessTypeParam) Marshal ¶
func (m *AccessTypeParam) Marshal() (dAtA []byte, err error)
func (*AccessTypeParam) 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 AccountKeeper ¶
type AccountKeeper interface { // Return a new account with the next account number and the specified address. Does not save the new account to the store. NewAccountWithAddress(ctx sdk.Context, addr sdk.AccAddress) auth.Account // Retrieve an account from the store. GetAccount(ctx sdk.Context, addr sdk.AccAddress) auth.Account // Set an account in the store. SetAccount(ctx sdk.Context, acc auth.Account) // SetObserverKeeper sets an observer for listening changes of any accounts. SetObserverKeeper(observer auth.ObserverI) }
AccountKeeper defines a subset of methods implemented by the cosmos-sdk account keeper
type BankKeeper ¶
type BankKeeper interface { BankViewKeeper // Burner IsSendEnabledCoins(ctx sdk.Context, coins ...sdk.Coin) error BlockedAddr(addr sdk.AccAddress) bool SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error GetSendEnabled(ctx sdk.Context) bool }
BankKeeper defines a subset of methods implemented by the cosmos-sdk bank keeper
type BankViewKeeper ¶
type BankViewKeeper interface { GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin }
BankViewKeeper defines a subset of methods implemented by the cosmos-sdk bank keeper
type CapabilityKeeper ¶
type CapabilityKeeper interface { GetCapability(ctx sdk.Context, name string) (*capabilitytypes.Capability, bool) ClaimCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) error AuthenticateCapability(ctx sdk.Context, capability *capabilitytypes.Capability, name string) bool }
type ChannelKeeper ¶
type ChannelKeeper interface { GetChannel(ctx sdk.Context, srcPort, srcChan string) (channel channeltypes.Channel, found bool) GetNextSequenceSend(ctx sdk.Context, portID, channelID string) (uint64, bool) SendPacket(ctx sdk.Context, channelCap *capabilitytypes.Capability, packet ibcexported.PacketI) error ChanCloseInit(ctx sdk.Context, portID, channelID string, chanCap *capabilitytypes.Capability) error GetAllChannels(ctx sdk.Context) (channels []channeltypes.IdentifiedChannel) IterateChannels(ctx sdk.Context, cb func(channeltypes.IdentifiedChannel) bool) SetChannel(ctx sdk.Context, portID, channelID string, channel channeltypes.Channel) }
ChannelKeeper defines the expected IBC channel keeper
type ClearAdminProposal ¶
type ClearAdminProposal struct { // Title is a short summary Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` // Description is a human readable text Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // Contract is the address of the smart contract Contract string `protobuf:"bytes,3,opt,name=contract,proto3" json:"contract,omitempty"` }
ClearAdminProposal gov proposal content type to clear the admin of a contract.
func ClearAdminProposalFixture ¶
func ClearAdminProposalFixture(mutators ...func(p *ClearAdminProposal)) *ClearAdminProposal
func (*ClearAdminProposal) Descriptor ¶
func (*ClearAdminProposal) Descriptor() ([]byte, []int)
func (*ClearAdminProposal) Equal ¶
func (this *ClearAdminProposal) Equal(that interface{}) bool
func (ClearAdminProposal) GetDescription ¶
func (p ClearAdminProposal) GetDescription() string
GetDescription returns the human readable description of the proposal
func (*ClearAdminProposal) GetTitle ¶
func (p *ClearAdminProposal) GetTitle() string
GetTitle returns the title of the proposal
func (*ClearAdminProposal) Marshal ¶
func (m *ClearAdminProposal) Marshal() (dAtA []byte, err error)
func (*ClearAdminProposal) MarshalTo ¶
func (m *ClearAdminProposal) MarshalTo(dAtA []byte) (int, error)
func (*ClearAdminProposal) MarshalToSizedBuffer ¶
func (m *ClearAdminProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (ClearAdminProposal) ProposalRoute ¶
func (p ClearAdminProposal) ProposalRoute() string
ProposalRoute returns the routing key of a parameter change proposal.
func (ClearAdminProposal) ProposalType ¶
func (p ClearAdminProposal) ProposalType() string
ProposalType returns the type
func (*ClearAdminProposal) ProtoMessage ¶
func (*ClearAdminProposal) ProtoMessage()
func (*ClearAdminProposal) Reset ¶
func (m *ClearAdminProposal) Reset()
func (*ClearAdminProposal) Size ¶
func (m *ClearAdminProposal) Size() (n int)
func (ClearAdminProposal) String ¶
func (p ClearAdminProposal) String() string
String implements the Stringer interface.
func (*ClearAdminProposal) Unmarshal ¶
func (m *ClearAdminProposal) Unmarshal(dAtA []byte) error
func (ClearAdminProposal) ValidateBasic ¶
func (p ClearAdminProposal) ValidateBasic() error
ValidateBasic validates the proposal
func (*ClearAdminProposal) XXX_DiscardUnknown ¶
func (m *ClearAdminProposal) XXX_DiscardUnknown()
func (*ClearAdminProposal) XXX_Marshal ¶
func (m *ClearAdminProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClearAdminProposal) XXX_Merge ¶
func (m *ClearAdminProposal) XXX_Merge(src proto.Message)
func (*ClearAdminProposal) XXX_Size ¶
func (m *ClearAdminProposal) XXX_Size() int
func (*ClearAdminProposal) XXX_Unmarshal ¶
func (m *ClearAdminProposal) XXX_Unmarshal(b []byte) error
type ClientKeeper ¶
type ClientKeeper interface {
GetClientConsensusState(ctx sdk.Context, clientID string) (connection ibcexported.ConsensusState, found bool)
}
ClientKeeper defines the expected IBC client keeper
type Code ¶
type Code struct { CodeID uint64 `protobuf:"varint,1,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"` CodeInfo CodeInfo `protobuf:"bytes,2,opt,name=code_info,json=codeInfo,proto3" json:"code_info"` CodeBytes []byte `protobuf:"bytes,3,opt,name=code_bytes,json=codeBytes,proto3" json:"code_bytes,omitempty"` // Pinned to wasmvm cache Pinned bool `protobuf:"varint,4,opt,name=pinned,proto3" json:"pinned,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 is the unique identifier created by wasmvm CodeHash []byte `protobuf:"bytes,1,opt,name=code_hash,json=codeHash,proto3" json:"code_hash,omitempty"` // Creator address who initially stored the code Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` // InstantiateConfig access control to apply on contract creation, optional InstantiateConfig AccessConfig `protobuf:"bytes,5,opt,name=instantiate_config,json=instantiateConfig,proto3" json:"instantiate_config"` }
CodeInfo is data for the uploaded contract WASM code
func CodeInfoFixture ¶
func NewCodeInfo ¶
func NewCodeInfo(codeHash []byte, creator sdk.WasmAddress, instantiatePermission AccessConfig) CodeInfo
NewCodeInfo fills a new CodeInfo 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 string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` DataHash github_com_tendermint_tendermint_libs_bytes.HexBytes `` /* 154-byte string literal not displayed */ InstantiatePermission AccessConfig `protobuf:"bytes,6,opt,name=instantiate_permission,json=instantiatePermission,proto3" json:"instantiate_permission"` }
CodeInfoResponse contains code meta data from CodeInfo
func (*CodeInfoResponse) Descriptor ¶
func (*CodeInfoResponse) Descriptor() ([]byte, []int)
func (*CodeInfoResponse) Equal ¶
func (this *CodeInfoResponse) Equal(that interface{}) bool
func (*CodeInfoResponse) Marshal ¶
func (m *CodeInfoResponse) Marshal() (dAtA []byte, err error)
func (*CodeInfoResponse) 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 ConnectionKeeper ¶
type ConnectionKeeper interface {
GetConnection(ctx sdk.Context, connectionID string) (connection connectiontypes.ConnectionEnd, found bool)
}
ConnectionKeeper defines the expected IBC connection keeper
type Contract ¶
type Contract struct { ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` 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"` }
Contract struct encompasses ContractAddress, ContractInfo, and ContractState
func ContractFixture ¶
func (*Contract) Descriptor ¶
func (*Contract) GetContractAddress ¶
func (*Contract) GetContractInfo ¶
func (m *Contract) GetContractInfo() ContractInfo
func (*Contract) GetContractState ¶
func (*Contract) MarshalToSizedBuffer ¶
func (*Contract) ProtoMessage ¶
func (*Contract) ProtoMessage()
func (*Contract) UnpackInterfaces ¶
func (c *Contract) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements codectypes.UnpackInterfaces
func (Contract) ValidateBasic ¶
func (*Contract) XXX_DiscardUnknown ¶
func (m *Contract) XXX_DiscardUnknown()
func (*Contract) XXX_Marshal ¶
func (*Contract) XXX_Unmarshal ¶
type ContractCodeHistoryEntry ¶
type ContractCodeHistoryEntry struct { Operation ContractCodeHistoryOperationType `` /* 127-byte string literal not displayed */ // CodeID is the reference to the stored WASM code CodeID uint64 `protobuf:"varint,2,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"` // Updated Tx position when the operation was executed. Updated *AbsoluteTxPosition `protobuf:"bytes,3,opt,name=updated,proto3" json:"updated,omitempty"` Msg RawContractMessage `protobuf:"bytes,4,opt,name=msg,proto3,casttype=RawContractMessage" json:"msg,omitempty"` }
ContractCodeHistoryEntry metadata to a contract.
func (*ContractCodeHistoryEntry) Descriptor ¶
func (*ContractCodeHistoryEntry) Descriptor() ([]byte, []int)
func (*ContractCodeHistoryEntry) Equal ¶
func (this *ContractCodeHistoryEntry) Equal(that interface{}) bool
func (*ContractCodeHistoryEntry) Marshal ¶
func (m *ContractCodeHistoryEntry) Marshal() (dAtA []byte, err error)
func (*ContractCodeHistoryEntry) MarshalTo ¶
func (m *ContractCodeHistoryEntry) MarshalTo(dAtA []byte) (int, error)
func (*ContractCodeHistoryEntry) MarshalToSizedBuffer ¶
func (m *ContractCodeHistoryEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ContractCodeHistoryEntry) ProtoMessage ¶
func (*ContractCodeHistoryEntry) ProtoMessage()
func (*ContractCodeHistoryEntry) Reset ¶
func (m *ContractCodeHistoryEntry) Reset()
func (*ContractCodeHistoryEntry) Size ¶
func (m *ContractCodeHistoryEntry) Size() (n int)
func (*ContractCodeHistoryEntry) String ¶
func (m *ContractCodeHistoryEntry) String() string
func (*ContractCodeHistoryEntry) Unmarshal ¶
func (m *ContractCodeHistoryEntry) Unmarshal(dAtA []byte) error
func (*ContractCodeHistoryEntry) XXX_DiscardUnknown ¶
func (m *ContractCodeHistoryEntry) XXX_DiscardUnknown()
func (*ContractCodeHistoryEntry) XXX_Marshal ¶
func (m *ContractCodeHistoryEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ContractCodeHistoryEntry) XXX_Merge ¶
func (m *ContractCodeHistoryEntry) XXX_Merge(src proto.Message)
func (*ContractCodeHistoryEntry) XXX_Size ¶
func (m *ContractCodeHistoryEntry) XXX_Size() int
func (*ContractCodeHistoryEntry) XXX_Unmarshal ¶
func (m *ContractCodeHistoryEntry) XXX_Unmarshal(b []byte) error
type ContractCodeHistoryOperationType ¶
type ContractCodeHistoryOperationType int32
ContractCodeHistoryOperationType actions that caused a code change
const ( // ContractCodeHistoryOperationTypeUnspecified placeholder for empty value ContractCodeHistoryOperationTypeUnspecified ContractCodeHistoryOperationType = 0 // ContractCodeHistoryOperationTypeInit on chain contract instantiation ContractCodeHistoryOperationTypeInit ContractCodeHistoryOperationType = 1 // ContractCodeHistoryOperationTypeMigrate code migration ContractCodeHistoryOperationTypeMigrate ContractCodeHistoryOperationType = 2 // ContractCodeHistoryOperationTypeGenesis based on genesis data ContractCodeHistoryOperationTypeGenesis ContractCodeHistoryOperationType = 3 )
func (ContractCodeHistoryOperationType) EnumDescriptor ¶
func (ContractCodeHistoryOperationType) EnumDescriptor() ([]byte, []int)
func (ContractCodeHistoryOperationType) String ¶
func (x ContractCodeHistoryOperationType) String() string
type ContractInfo ¶
type ContractInfo struct { // CodeID is the reference to the stored Wasm code CodeID uint64 `protobuf:"varint,1,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"` // Creator address who initially instantiated the contract Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` // Admin is an optional address that can execute migrations Admin string `protobuf:"bytes,3,opt,name=admin,proto3" json:"admin,omitempty"` // Label is optional metadata to be stored with a contract instance. Label string `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"` // Created Tx position when the contract was instantiated. // This data should kept internal and not be exposed via query results. Just // use for sorting Created *AbsoluteTxPosition `protobuf:"bytes,5,opt,name=created,proto3" json:"created,omitempty"` IBCPortID string `protobuf:"bytes,6,opt,name=ibc_port_id,json=ibcPortId,proto3" json:"ibc_port_id,omitempty"` // Extension is an extension point to store custom metadata within the // persistence model. Extension *types.Any `protobuf:"bytes,7,opt,name=extension,proto3" json:"extension,omitempty"` }
ContractInfo stores a WASM contract instance
func ContractInfoFixture ¶
func ContractInfoFixture(mutators ...func(*ContractInfo)) ContractInfo
func NewContractInfo ¶
func NewContractInfo(codeID uint64, creator, admin sdk.WasmAddress, label string, createdAt *AbsoluteTxPosition) ContractInfo
NewContractInfo creates a new instance of a given WASM contract info
func (*ContractInfo) AddMigration ¶
func (c *ContractInfo) AddMigration(ctx sdk.Context, codeID uint64, msg []byte) ContractCodeHistoryEntry
func (*ContractInfo) AdminAddr ¶
func (c *ContractInfo) AdminAddr() sdk.WasmAddress
AdminAddr convert into sdk.WasmAddress or nil when not set
func (*ContractInfo) Descriptor ¶
func (*ContractInfo) Descriptor() ([]byte, []int)
func (*ContractInfo) Equal ¶
func (this *ContractInfo) Equal(that interface{}) bool
func (ContractInfo) InitialHistory ¶
func (c ContractInfo) InitialHistory(initMsg []byte) ContractCodeHistoryEntry
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) ReadExtension ¶
func (c *ContractInfo) ReadExtension(e ContractInfoExtension) error
ReadExtension copies the extension value to the pointer passed as argument so that there is no need to cast For example with a custom extension of type `MyContractDetails` it will look as following:
var d MyContractDetails if err := info.ReadExtension(&d); err != nil { return nil, sdkerrors.Wrap(err, "extension") }
func (*ContractInfo) Reset ¶
func (m *ContractInfo) Reset()
func (*ContractInfo) ResetFromGenesis ¶
func (c *ContractInfo) ResetFromGenesis(ctx sdk.Context) ContractCodeHistoryEntry
ResetFromGenesis resets contracts timestamp and history.
func (*ContractInfo) SetExtension ¶
func (c *ContractInfo) SetExtension(ext ContractInfoExtension) error
SetExtension set new extension data. Calls `ValidateBasic() error` on non nil values when method is implemented by the extension.
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) UnpackInterfaces ¶
func (c *ContractInfo) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements codectypes.UnpackInterfaces
func (*ContractInfo) ValidateBasic ¶
func (c *ContractInfo) ValidateBasic() error
ValidateBasic does syntax checks on the data. If an extension is set and has the `ValidateBasic() error` method, then the method is called as well. It is recommend to implement `ValidateBasic` so that the data is verified in the setter but also in the genesis import process.
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 ContractInfoExtension ¶
ContractInfoExtension defines the extension point for custom data to be stored with a contract info
type ContractMethods ¶ added in v1.6.4
type ContractMethods struct { ContractAddr string `protobuf:"bytes,1,opt,name=contractAddr,proto3" json:"contractAddr,omitempty"` Methods []*Method `protobuf:"bytes,2,rep,name=methods,proto3" json:"methods,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func FindContractMethods ¶ added in v1.6.4
func FindContractMethods(cms []*ContractMethods, contractAddr string) *ContractMethods
func (*ContractMethods) AddMethods ¶ added in v1.6.4
func (c *ContractMethods) AddMethods(methods []*Method)
func (*ContractMethods) DeleteMethods ¶ added in v1.6.4
func (c *ContractMethods) DeleteMethods(methods []*Method)
func (*ContractMethods) Descriptor ¶ added in v1.6.4
func (*ContractMethods) Descriptor() ([]byte, []int)
func (*ContractMethods) GetContractAddr ¶ added in v1.6.4
func (m *ContractMethods) GetContractAddr() string
func (*ContractMethods) GetMethods ¶ added in v1.6.4
func (m *ContractMethods) GetMethods() []*Method
func (*ContractMethods) IsMethodBlocked ¶ added in v1.6.4
func (c *ContractMethods) IsMethodBlocked(method string) bool
func (*ContractMethods) ProtoMessage ¶ added in v1.6.4
func (*ContractMethods) ProtoMessage()
func (*ContractMethods) Reset ¶ added in v1.6.4
func (m *ContractMethods) Reset()
func (*ContractMethods) String ¶ added in v1.6.4
func (m *ContractMethods) String() string
func (*ContractMethods) XXX_DiscardUnknown ¶ added in v1.6.4
func (m *ContractMethods) XXX_DiscardUnknown()
func (*ContractMethods) XXX_Marshal ¶ added in v1.6.4
func (m *ContractMethods) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ContractMethods) XXX_Merge ¶ added in v1.6.4
func (m *ContractMethods) XXX_Merge(src proto.Message)
func (*ContractMethods) XXX_Size ¶ added in v1.6.4
func (m *ContractMethods) XXX_Size() int
func (*ContractMethods) XXX_Unmarshal ¶ added in v1.6.4
func (m *ContractMethods) XXX_Unmarshal(b []byte) error
type ContractOpsKeeper ¶
type ContractOpsKeeper interface { // Create uploads and compiles a WASM contract, returning a short identifier for the contract Create(ctx sdk.Context, creator sdk.WasmAddress, wasmCode []byte, instantiateAccess *AccessConfig) (codeID uint64, err error) // Instantiate creates an instance of a WASM contract Instantiate(ctx sdk.Context, codeID uint64, creator, admin sdk.WasmAddress, initMsg []byte, label string, deposit sdk.Coins) (sdk.WasmAddress, []byte, error) // Execute executes the contract instance Execute(ctx sdk.Context, contractAddress sdk.WasmAddress, caller sdk.WasmAddress, msg []byte, coins sdk.Coins) ([]byte, error) // Migrate allows to upgrade a contract to a new code with data migration. Migrate(ctx sdk.Context, contractAddress sdk.WasmAddress, caller sdk.WasmAddress, newCodeID uint64, msg []byte) ([]byte, error) // Sudo allows to call privileged entry point of a contract. Sudo(ctx sdk.Context, contractAddress sdk.WasmAddress, msg []byte) ([]byte, error) // UpdateContractAdmin sets the admin value on the ContractInfo. It must be a valid address (use ClearContractAdmin to remove it) UpdateContractAdmin(ctx sdk.Context, contractAddress sdk.WasmAddress, caller sdk.WasmAddress, newAdmin sdk.WasmAddress) error // ClearContractAdmin sets the admin value on the ContractInfo to nil, to disable further migrations/ updates. ClearContractAdmin(ctx sdk.Context, contractAddress sdk.WasmAddress, caller sdk.WasmAddress) error // PinCode pins the wasm contract in wasmvm cache PinCode(ctx sdk.Context, codeID uint64) error // UnpinCode removes the wasm contract from wasmvm cache UnpinCode(ctx sdk.Context, codeID uint64) error // SetContractInfoExtension updates the extension point data that is stored with the contract info SetContractInfoExtension(ctx sdk.Context, contract sdk.WasmAddress, extra ContractInfoExtension) error // SetAccessConfig updates the access config of a code id. SetAccessConfig(ctx sdk.Context, codeID uint64, config AccessConfig) error // UpdateUploadAccessConfig updates the access config of uploading code. UpdateUploadAccessConfig(ctx sdk.Context, config AccessConfig) // UpdateContractMethodBlockedList updates the blacklist of contract methods. UpdateContractMethodBlockedList(ctx sdk.Context, methods *ContractMethods, isDelete bool) error // GetParams get params from paramsubspace. GetParams(ctx sdk.Context) Params // InvokeExtraProposal invoke extra proposal InvokeExtraProposal(ctx sdk.Context, action string, extra string) error }
ContractOpsKeeper contains mutable operations on a contract.
type DistributionKeeper ¶
type DistributionKeeper interface {
DelegationRewards(c context.Context, req *types.QueryDelegationRewardsParams) (*sdk.DecCoins, error)
}
DistributionKeeper defines a subset of methods implemented by the cosmos-sdk distribution keeper
type ErrNoSuchContract ¶
type ErrNoSuchContract struct {
Addr string
}
func (*ErrNoSuchContract) ABCICode ¶
func (m *ErrNoSuchContract) ABCICode() uint32
func (*ErrNoSuchContract) Codespace ¶
func (m *ErrNoSuchContract) Codespace() string
func (*ErrNoSuchContract) Error ¶
func (m *ErrNoSuchContract) Error() string
type ExecuteContractProposal ¶
type ExecuteContractProposal struct { // Title is a short summary Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` // Description is a human readable text Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // RunAs is the address that is passed to the contract's environment as sender RunAs string `protobuf:"bytes,3,opt,name=run_as,json=runAs,proto3" json:"run_as,omitempty"` // Contract is the address of the smart contract Contract string `protobuf:"bytes,4,opt,name=contract,proto3" json:"contract,omitempty"` // Msg json encoded message to be passed to the contract as execute Msg RawContractMessage `protobuf:"bytes,5,opt,name=msg,proto3,casttype=RawContractMessage" json:"msg,omitempty"` // Funds coins that are transferred to the contract on instantiation Funds github_com_cosmos_cosmos_sdk_types.CoinAdapters `protobuf:"bytes,6,rep,name=funds,proto3,castrepeated=github.com/okex/exchain/libs/cosmos-sdk/types.Coins" json:"funds"` }
ExecuteContractProposal gov proposal content type to call execute on a contract.
func ExecuteContractProposalFixture ¶
func ExecuteContractProposalFixture(mutators ...func(p *ExecuteContractProposal)) *ExecuteContractProposal
func (*ExecuteContractProposal) Descriptor ¶
func (*ExecuteContractProposal) Descriptor() ([]byte, []int)
func (*ExecuteContractProposal) Equal ¶
func (this *ExecuteContractProposal) Equal(that interface{}) bool
func (ExecuteContractProposal) GetDescription ¶
func (p ExecuteContractProposal) GetDescription() string
GetDescription returns the human readable description of the proposal
func (*ExecuteContractProposal) GetTitle ¶
func (p *ExecuteContractProposal) GetTitle() string
GetTitle returns the title of the proposal
func (*ExecuteContractProposal) Marshal ¶
func (m *ExecuteContractProposal) Marshal() (dAtA []byte, err error)
func (*ExecuteContractProposal) MarshalTo ¶
func (m *ExecuteContractProposal) MarshalTo(dAtA []byte) (int, error)
func (*ExecuteContractProposal) MarshalToSizedBuffer ¶
func (m *ExecuteContractProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (ExecuteContractProposal) MarshalYAML ¶
func (p ExecuteContractProposal) MarshalYAML() (interface{}, error)
MarshalYAML pretty prints the migrate message
func (ExecuteContractProposal) ProposalRoute ¶
func (p ExecuteContractProposal) ProposalRoute() string
ProposalRoute returns the routing key of a parameter change proposal.
func (ExecuteContractProposal) ProposalType ¶
func (p ExecuteContractProposal) ProposalType() string
ProposalType returns the type
func (*ExecuteContractProposal) ProtoMessage ¶
func (*ExecuteContractProposal) ProtoMessage()
func (*ExecuteContractProposal) Reset ¶
func (m *ExecuteContractProposal) Reset()
func (*ExecuteContractProposal) Size ¶
func (m *ExecuteContractProposal) Size() (n int)
func (ExecuteContractProposal) String ¶
func (p ExecuteContractProposal) String() string
String implements the Stringer interface.
func (*ExecuteContractProposal) Unmarshal ¶
func (m *ExecuteContractProposal) Unmarshal(dAtA []byte) error
func (ExecuteContractProposal) ValidateBasic ¶
func (p ExecuteContractProposal) ValidateBasic() error
ValidateBasic validates the proposal
func (*ExecuteContractProposal) XXX_DiscardUnknown ¶
func (m *ExecuteContractProposal) XXX_DiscardUnknown()
func (*ExecuteContractProposal) XXX_Marshal ¶
func (m *ExecuteContractProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ExecuteContractProposal) XXX_Merge ¶
func (m *ExecuteContractProposal) XXX_Merge(src proto.Message)
func (*ExecuteContractProposal) XXX_Size ¶
func (m *ExecuteContractProposal) XXX_Size() int
func (*ExecuteContractProposal) XXX_Unmarshal ¶
func (m *ExecuteContractProposal) XXX_Unmarshal(b []byte) error
type ExtraProposal ¶ added in v1.7.0
type ExtraProposal struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Action string `protobuf:"bytes,3,opt,name=action,proto3" json:"action,omitempty"` Extra string `protobuf:"bytes,4,opt,name=extra,proto3" json:"extra,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ExtraProposal) Descriptor ¶ added in v1.7.0
func (*ExtraProposal) Descriptor() ([]byte, []int)
func (*ExtraProposal) GetAction ¶ added in v1.7.0
func (m *ExtraProposal) GetAction() string
func (*ExtraProposal) GetDescription ¶ added in v1.7.0
func (m *ExtraProposal) GetDescription() string
func (*ExtraProposal) GetExtra ¶ added in v1.7.0
func (m *ExtraProposal) GetExtra() string
func (*ExtraProposal) GetTitle ¶ added in v1.7.0
func (m *ExtraProposal) GetTitle() string
func (ExtraProposal) MarshalYAML ¶ added in v1.7.0
func (p ExtraProposal) MarshalYAML() (interface{}, error)
MarshalYAML pretty prints the wasm byte code
func (ExtraProposal) ProposalRoute ¶ added in v1.7.0
func (p ExtraProposal) ProposalRoute() string
ProposalRoute returns the routing key of a parameter change proposal.
func (ExtraProposal) ProposalType ¶ added in v1.7.0
func (p ExtraProposal) ProposalType() string
ProposalType returns the type
func (*ExtraProposal) ProtoMessage ¶ added in v1.7.0
func (*ExtraProposal) ProtoMessage()
func (*ExtraProposal) Reset ¶ added in v1.7.0
func (m *ExtraProposal) Reset()
func (*ExtraProposal) String ¶ added in v1.7.0
func (m *ExtraProposal) String() string
func (ExtraProposal) ValidateBasic ¶ added in v1.7.0
func (p ExtraProposal) ValidateBasic() error
ValidateBasic validates the proposal
func (*ExtraProposal) XXX_DiscardUnknown ¶ added in v1.7.0
func (m *ExtraProposal) XXX_DiscardUnknown()
func (*ExtraProposal) XXX_Marshal ¶ added in v1.7.0
func (m *ExtraProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ExtraProposal) XXX_Merge ¶ added in v1.7.0
func (m *ExtraProposal) XXX_Merge(src proto.Message)
func (*ExtraProposal) XXX_Size ¶ added in v1.7.0
func (m *ExtraProposal) XXX_Size() int
func (*ExtraProposal) XXX_Unmarshal ¶ added in v1.7.0
func (m *ExtraProposal) XXX_Unmarshal(b []byte) error
type GasFactor ¶ added in v1.7.0
type GasFactor struct {
Factor string `json:"factor" yaml:"factor"`
}
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` 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"` GenMsgs []GenesisState_GenMsgs `protobuf:"bytes,5,rep,name=gen_msgs,json=genMsgs,proto3" json:"gen_msgs,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) GetGenMsgs ¶
func (m *GenesisState) GetGenMsgs() []GenesisState_GenMsgs
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
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) UnpackInterfaces ¶
func (s GenesisState) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements codectypes.UnpackInterfaces
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 GenesisState_GenMsgs ¶
type GenesisState_GenMsgs struct { // sum is a single message // // Types that are valid to be assigned to Sum: // *GenesisState_GenMsgs_StoreCode // *GenesisState_GenMsgs_InstantiateContract // *GenesisState_GenMsgs_ExecuteContract Sum isGenesisState_GenMsgs_Sum `protobuf_oneof:"sum"` }
GenMsgs define the messages that can be executed during genesis phase in order. The intention is to have more human readable data that is auditable.
func (GenesisState_GenMsgs) AsMsg ¶
func (m GenesisState_GenMsgs) AsMsg() sdk.Msg
AsMsg returns the underlying cosmos-sdk message instance. Null when can not be mapped to a known type.
func (*GenesisState_GenMsgs) Descriptor ¶
func (*GenesisState_GenMsgs) Descriptor() ([]byte, []int)
func (*GenesisState_GenMsgs) GetExecuteContract ¶
func (m *GenesisState_GenMsgs) GetExecuteContract() *MsgExecuteContract
func (*GenesisState_GenMsgs) GetInstantiateContract ¶
func (m *GenesisState_GenMsgs) GetInstantiateContract() *MsgInstantiateContract
func (*GenesisState_GenMsgs) GetStoreCode ¶
func (m *GenesisState_GenMsgs) GetStoreCode() *MsgStoreCode
func (*GenesisState_GenMsgs) GetSum ¶
func (m *GenesisState_GenMsgs) GetSum() isGenesisState_GenMsgs_Sum
func (*GenesisState_GenMsgs) Marshal ¶
func (m *GenesisState_GenMsgs) Marshal() (dAtA []byte, err error)
func (*GenesisState_GenMsgs) MarshalTo ¶
func (m *GenesisState_GenMsgs) MarshalTo(dAtA []byte) (int, error)
func (*GenesisState_GenMsgs) MarshalToSizedBuffer ¶
func (m *GenesisState_GenMsgs) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState_GenMsgs) ProtoMessage ¶
func (*GenesisState_GenMsgs) ProtoMessage()
func (*GenesisState_GenMsgs) Reset ¶
func (m *GenesisState_GenMsgs) Reset()
func (*GenesisState_GenMsgs) Size ¶
func (m *GenesisState_GenMsgs) Size() (n int)
func (*GenesisState_GenMsgs) String ¶
func (m *GenesisState_GenMsgs) String() string
func (*GenesisState_GenMsgs) Unmarshal ¶
func (m *GenesisState_GenMsgs) Unmarshal(dAtA []byte) error
func (GenesisState_GenMsgs) ValidateBasic ¶
func (m GenesisState_GenMsgs) ValidateBasic() error
func (*GenesisState_GenMsgs) XXX_DiscardUnknown ¶
func (m *GenesisState_GenMsgs) XXX_DiscardUnknown()
func (*GenesisState_GenMsgs) XXX_Marshal ¶
func (m *GenesisState_GenMsgs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState_GenMsgs) XXX_Merge ¶
func (m *GenesisState_GenMsgs) XXX_Merge(src proto.Message)
func (*GenesisState_GenMsgs) XXX_OneofWrappers ¶
func (*GenesisState_GenMsgs) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*GenesisState_GenMsgs) XXX_Size ¶
func (m *GenesisState_GenMsgs) XXX_Size() int
func (*GenesisState_GenMsgs) XXX_Unmarshal ¶
func (m *GenesisState_GenMsgs) XXX_Unmarshal(b []byte) error
type GenesisState_GenMsgs_ExecuteContract ¶
type GenesisState_GenMsgs_ExecuteContract struct {
ExecuteContract *MsgExecuteContract `protobuf:"bytes,3,opt,name=execute_contract,json=executeContract,proto3,oneof" json:"execute_contract,omitempty"`
}
func (*GenesisState_GenMsgs_ExecuteContract) MarshalTo ¶
func (m *GenesisState_GenMsgs_ExecuteContract) MarshalTo(dAtA []byte) (int, error)
func (*GenesisState_GenMsgs_ExecuteContract) MarshalToSizedBuffer ¶
func (m *GenesisState_GenMsgs_ExecuteContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState_GenMsgs_ExecuteContract) Size ¶
func (m *GenesisState_GenMsgs_ExecuteContract) Size() (n int)
type GenesisState_GenMsgs_InstantiateContract ¶
type GenesisState_GenMsgs_InstantiateContract struct {
InstantiateContract *MsgInstantiateContract `protobuf:"bytes,2,opt,name=instantiate_contract,json=instantiateContract,proto3,oneof" json:"instantiate_contract,omitempty"`
}
func (*GenesisState_GenMsgs_InstantiateContract) MarshalTo ¶
func (m *GenesisState_GenMsgs_InstantiateContract) MarshalTo(dAtA []byte) (int, error)
func (*GenesisState_GenMsgs_InstantiateContract) MarshalToSizedBuffer ¶
func (m *GenesisState_GenMsgs_InstantiateContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState_GenMsgs_InstantiateContract) Size ¶
func (m *GenesisState_GenMsgs_InstantiateContract) Size() (n int)
type GenesisState_GenMsgs_StoreCode ¶
type GenesisState_GenMsgs_StoreCode struct {
StoreCode *MsgStoreCode `protobuf:"bytes,1,opt,name=store_code,json=storeCode,proto3,oneof" json:"store_code,omitempty"`
}
func (*GenesisState_GenMsgs_StoreCode) MarshalTo ¶
func (m *GenesisState_GenMsgs_StoreCode) MarshalTo(dAtA []byte) (int, error)
func (*GenesisState_GenMsgs_StoreCode) MarshalToSizedBuffer ¶
func (m *GenesisState_GenMsgs_StoreCode) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState_GenMsgs_StoreCode) Size ¶
func (m *GenesisState_GenMsgs_StoreCode) Size() (n int)
type IBCContractKeeper ¶
type IBCContractKeeper interface { OnOpenChannel( ctx sdk.Context, contractAddr sdk.AccAddress, msg wasmvmtypes.IBCChannelOpenMsg, ) (string, error) OnConnectChannel( ctx sdk.Context, contractAddr sdk.AccAddress, msg wasmvmtypes.IBCChannelConnectMsg, ) error OnCloseChannel( ctx sdk.Context, contractAddr sdk.AccAddress, msg wasmvmtypes.IBCChannelCloseMsg, ) error OnRecvPacket( ctx sdk.Context, contractAddr sdk.AccAddress, msg wasmvmtypes.IBCPacketReceiveMsg, ) ([]byte, error) OnAckPacket( ctx sdk.Context, contractAddr sdk.AccAddress, acknowledgement wasmvmtypes.IBCPacketAckMsg, ) error OnTimeoutPacket( ctx sdk.Context, contractAddr sdk.AccAddress, msg wasmvmtypes.IBCPacketTimeoutMsg, ) error // ClaimCapability allows the transfer module to claim a capability // that IBC module passes to it ClaimCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) error // AuthenticateCapability wraps the scopedKeeper's AuthenticateCapability function AuthenticateCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) bool }
IBCContractKeeper IBC lifecycle event handler
type ICS20TransferPortSource ¶
ICS20TransferPortSource is a subset of the ibc transfer keeper.
type InstantiateContractProposal ¶
type InstantiateContractProposal struct { // Title is a short summary Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` // Description is a human readable text Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // RunAs is the address that is passed to the contract's environment as sender RunAs string `protobuf:"bytes,3,opt,name=run_as,json=runAs,proto3" json:"run_as,omitempty"` // Admin is an optional address that can execute migrations Admin string `protobuf:"bytes,4,opt,name=admin,proto3" json:"admin,omitempty"` // CodeID is the reference to the stored WASM code CodeID uint64 `protobuf:"varint,5,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"` // Label is optional metadata to be stored with a constract instance. Label string `protobuf:"bytes,6,opt,name=label,proto3" json:"label,omitempty"` // Msg json encoded message to be passed to the contract on instantiation Msg RawContractMessage `protobuf:"bytes,7,opt,name=msg,proto3,casttype=RawContractMessage" json:"msg,omitempty"` // Funds coins that are transferred to the contract on instantiation Funds github_com_cosmos_cosmos_sdk_types.CoinAdapters `protobuf:"bytes,8,rep,name=funds,proto3,castrepeated=github.com/okex/exchain/libs/cosmos-sdk/types.Coins" json:"funds"` }
InstantiateContractProposal gov proposal content type to instantiate a contract.
func InstantiateContractProposalFixture ¶
func InstantiateContractProposalFixture(mutators ...func(p *InstantiateContractProposal)) *InstantiateContractProposal
func (*InstantiateContractProposal) Descriptor ¶
func (*InstantiateContractProposal) Descriptor() ([]byte, []int)
func (*InstantiateContractProposal) Equal ¶
func (this *InstantiateContractProposal) Equal(that interface{}) bool
func (InstantiateContractProposal) GetDescription ¶
func (p InstantiateContractProposal) GetDescription() string
GetDescription returns the human readable description of the proposal
func (*InstantiateContractProposal) GetTitle ¶
func (p *InstantiateContractProposal) GetTitle() string
GetTitle returns the title of the proposal
func (*InstantiateContractProposal) Marshal ¶
func (m *InstantiateContractProposal) Marshal() (dAtA []byte, err error)
func (*InstantiateContractProposal) MarshalTo ¶
func (m *InstantiateContractProposal) MarshalTo(dAtA []byte) (int, error)
func (*InstantiateContractProposal) MarshalToSizedBuffer ¶
func (m *InstantiateContractProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (InstantiateContractProposal) MarshalYAML ¶
func (p InstantiateContractProposal) MarshalYAML() (interface{}, error)
MarshalYAML pretty prints the init message
func (InstantiateContractProposal) ProposalRoute ¶
func (p InstantiateContractProposal) ProposalRoute() string
ProposalRoute returns the routing key of a parameter change proposal.
func (InstantiateContractProposal) ProposalType ¶
func (p InstantiateContractProposal) ProposalType() string
ProposalType returns the type
func (*InstantiateContractProposal) ProtoMessage ¶
func (*InstantiateContractProposal) ProtoMessage()
func (*InstantiateContractProposal) Reset ¶
func (m *InstantiateContractProposal) Reset()
func (*InstantiateContractProposal) Size ¶
func (m *InstantiateContractProposal) Size() (n int)
func (InstantiateContractProposal) String ¶
func (p InstantiateContractProposal) String() string
String implements the Stringer interface.
func (*InstantiateContractProposal) Unmarshal ¶
func (m *InstantiateContractProposal) Unmarshal(dAtA []byte) error
func (InstantiateContractProposal) ValidateBasic ¶
func (p InstantiateContractProposal) ValidateBasic() error
ValidateBasic validates the proposal
func (*InstantiateContractProposal) XXX_DiscardUnknown ¶
func (m *InstantiateContractProposal) XXX_DiscardUnknown()
func (*InstantiateContractProposal) XXX_Marshal ¶
func (m *InstantiateContractProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InstantiateContractProposal) XXX_Merge ¶
func (m *InstantiateContractProposal) XXX_Merge(src proto.Message)
func (*InstantiateContractProposal) XXX_Size ¶
func (m *InstantiateContractProposal) XXX_Size() int
func (*InstantiateContractProposal) XXX_Unmarshal ¶
func (m *InstantiateContractProposal) XXX_Unmarshal(b []byte) error
type Method ¶ added in v1.6.4
type Method struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Extra string `protobuf:"bytes,2,opt,name=extra,proto3" json:"extra,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Method) Descriptor ¶ added in v1.6.4
func (*Method) ProtoMessage ¶ added in v1.6.4
func (*Method) ProtoMessage()
func (*Method) XXX_DiscardUnknown ¶ added in v1.6.4
func (m *Method) XXX_DiscardUnknown()
func (*Method) XXX_Marshal ¶ added in v1.6.4
func (*Method) XXX_Unmarshal ¶ added in v1.6.4
type MigrateContractProposal ¶
type MigrateContractProposal struct { // Title is a short summary Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` // Description is a human readable text Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // Contract is the address of the smart contract Contract string `protobuf:"bytes,4,opt,name=contract,proto3" json:"contract,omitempty"` // CodeID references the new WASM code CodeID uint64 `protobuf:"varint,5,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"` // Msg json encoded message to be passed to the contract on migration Msg RawContractMessage `protobuf:"bytes,6,opt,name=msg,proto3,casttype=RawContractMessage" json:"msg,omitempty"` }
MigrateContractProposal gov proposal content type to migrate a contract.
func MigrateContractProposalFixture ¶
func MigrateContractProposalFixture(mutators ...func(p *MigrateContractProposal)) *MigrateContractProposal
func (*MigrateContractProposal) Descriptor ¶
func (*MigrateContractProposal) Descriptor() ([]byte, []int)
func (*MigrateContractProposal) Equal ¶
func (this *MigrateContractProposal) Equal(that interface{}) bool
func (MigrateContractProposal) GetDescription ¶
func (p MigrateContractProposal) GetDescription() string
GetDescription returns the human readable description of the proposal
func (*MigrateContractProposal) GetTitle ¶
func (p *MigrateContractProposal) GetTitle() string
GetTitle returns the title of the proposal
func (*MigrateContractProposal) Marshal ¶
func (m *MigrateContractProposal) Marshal() (dAtA []byte, err error)
func (*MigrateContractProposal) MarshalTo ¶
func (m *MigrateContractProposal) MarshalTo(dAtA []byte) (int, error)
func (*MigrateContractProposal) MarshalToSizedBuffer ¶
func (m *MigrateContractProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (MigrateContractProposal) MarshalYAML ¶
func (p MigrateContractProposal) MarshalYAML() (interface{}, error)
MarshalYAML pretty prints the migrate message
func (MigrateContractProposal) ProposalRoute ¶
func (p MigrateContractProposal) ProposalRoute() string
ProposalRoute returns the routing key of a parameter change proposal.
func (MigrateContractProposal) ProposalType ¶
func (p MigrateContractProposal) ProposalType() string
ProposalType returns the type
func (*MigrateContractProposal) ProtoMessage ¶
func (*MigrateContractProposal) ProtoMessage()
func (*MigrateContractProposal) Reset ¶
func (m *MigrateContractProposal) Reset()
func (*MigrateContractProposal) Size ¶
func (m *MigrateContractProposal) Size() (n int)
func (MigrateContractProposal) String ¶
func (p MigrateContractProposal) String() string
String implements the Stringer interface.
func (*MigrateContractProposal) Unmarshal ¶
func (m *MigrateContractProposal) Unmarshal(dAtA []byte) error
func (MigrateContractProposal) ValidateBasic ¶
func (p MigrateContractProposal) ValidateBasic() error
ValidateBasic validates the proposal
func (*MigrateContractProposal) XXX_DiscardUnknown ¶
func (m *MigrateContractProposal) XXX_DiscardUnknown()
func (*MigrateContractProposal) XXX_Marshal ¶
func (m *MigrateContractProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MigrateContractProposal) XXX_Merge ¶
func (m *MigrateContractProposal) XXX_Merge(src proto.Message)
func (*MigrateContractProposal) XXX_Size ¶
func (m *MigrateContractProposal) XXX_Size() int
func (*MigrateContractProposal) XXX_Unmarshal ¶
func (m *MigrateContractProposal) 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 `` /* 128-byte string literal not displayed */ // 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 MsgClearAdmin ¶
type MsgClearAdmin struct { // Sender is the that actor that signed the messages Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // Contract is the address of the smart contract Contract string `protobuf:"bytes,3,opt,name=contract,proto3" json:"contract,omitempty"` }
MsgClearAdmin removes any admin stored for a smart contract
func (*MsgClearAdmin) Descriptor ¶
func (*MsgClearAdmin) Descriptor() ([]byte, []int)
func (MsgClearAdmin) GetSignBytes ¶
func (msg MsgClearAdmin) GetSignBytes() []byte
func (MsgClearAdmin) GetSigners ¶
func (msg MsgClearAdmin) GetSigners() []sdk.AccAddress
func (*MsgClearAdmin) Marshal ¶
func (m *MsgClearAdmin) Marshal() (dAtA []byte, err error)
func (*MsgClearAdmin) MarshalToSizedBuffer ¶
func (m *MsgClearAdmin) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClearAdmin) ProtoMessage ¶
func (*MsgClearAdmin) ProtoMessage()
func (*MsgClearAdmin) Reset ¶
func (m *MsgClearAdmin) Reset()
func (MsgClearAdmin) Route ¶
func (msg MsgClearAdmin) Route() string
func (*MsgClearAdmin) Size ¶
func (m *MsgClearAdmin) Size() (n int)
func (*MsgClearAdmin) String ¶
func (m *MsgClearAdmin) String() string
func (MsgClearAdmin) Type ¶
func (msg MsgClearAdmin) Type() string
func (*MsgClearAdmin) Unmarshal ¶
func (m *MsgClearAdmin) Unmarshal(dAtA []byte) error
func (MsgClearAdmin) ValidateBasic ¶
func (msg MsgClearAdmin) ValidateBasic() error
func (*MsgClearAdmin) XXX_DiscardUnknown ¶
func (m *MsgClearAdmin) XXX_DiscardUnknown()
func (*MsgClearAdmin) XXX_Marshal ¶
func (m *MsgClearAdmin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClearAdmin) XXX_Merge ¶
func (m *MsgClearAdmin) XXX_Merge(src proto.Message)
func (*MsgClearAdmin) XXX_Size ¶
func (m *MsgClearAdmin) XXX_Size() int
func (*MsgClearAdmin) XXX_Unmarshal ¶
func (m *MsgClearAdmin) XXX_Unmarshal(b []byte) error
type MsgClearAdminResponse ¶
type MsgClearAdminResponse struct{}
MsgClearAdminResponse returns empty data
func (*MsgClearAdminResponse) Descriptor ¶
func (*MsgClearAdminResponse) Descriptor() ([]byte, []int)
func (*MsgClearAdminResponse) Marshal ¶
func (m *MsgClearAdminResponse) Marshal() (dAtA []byte, err error)
func (*MsgClearAdminResponse) MarshalTo ¶
func (m *MsgClearAdminResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgClearAdminResponse) MarshalToSizedBuffer ¶
func (m *MsgClearAdminResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClearAdminResponse) ProtoMessage ¶
func (*MsgClearAdminResponse) ProtoMessage()
func (*MsgClearAdminResponse) Reset ¶
func (m *MsgClearAdminResponse) Reset()
func (*MsgClearAdminResponse) Size ¶
func (m *MsgClearAdminResponse) Size() (n int)
func (*MsgClearAdminResponse) String ¶
func (m *MsgClearAdminResponse) String() string
func (*MsgClearAdminResponse) Unmarshal ¶
func (m *MsgClearAdminResponse) Unmarshal(dAtA []byte) error
func (*MsgClearAdminResponse) XXX_DiscardUnknown ¶
func (m *MsgClearAdminResponse) XXX_DiscardUnknown()
func (*MsgClearAdminResponse) XXX_Marshal ¶
func (m *MsgClearAdminResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClearAdminResponse) XXX_Merge ¶
func (m *MsgClearAdminResponse) XXX_Merge(src proto.Message)
func (*MsgClearAdminResponse) XXX_Size ¶
func (m *MsgClearAdminResponse) XXX_Size() int
func (*MsgClearAdminResponse) XXX_Unmarshal ¶
func (m *MsgClearAdminResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // StoreCode to submit Wasm code to the system StoreCode(ctx context.Context, in *MsgStoreCode, opts ...grpc.CallOption) (*MsgStoreCodeResponse, error) // Instantiate creates a new smart contract instance for the given code id. InstantiateContract(ctx context.Context, in *MsgInstantiateContract, opts ...grpc.CallOption) (*MsgInstantiateContractResponse, error) // Execute submits the given message data to a smart contract ExecuteContract(ctx context.Context, in *MsgExecuteContract, opts ...grpc.CallOption) (*MsgExecuteContractResponse, error) // Migrate runs a code upgrade/ downgrade for a smart contract MigrateContract(ctx context.Context, in *MsgMigrateContract, opts ...grpc.CallOption) (*MsgMigrateContractResponse, error) // UpdateAdmin sets a new admin for a smart contract UpdateAdmin(ctx context.Context, in *MsgUpdateAdmin, opts ...grpc.CallOption) (*MsgUpdateAdminResponse, error) // ClearAdmin removes any admin stored for a smart contract ClearAdmin(ctx context.Context, in *MsgClearAdmin, opts ...grpc.CallOption) (*MsgClearAdminResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgExecuteContract ¶
type MsgExecuteContract struct { // Sender is the that actor that signed the messages Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // Contract is the address of the smart contract Contract string `protobuf:"bytes,2,opt,name=contract,proto3" json:"contract,omitempty"` // Msg json encoded message to be passed to the contract Msg RawContractMessage `protobuf:"bytes,3,opt,name=msg,proto3,casttype=RawContractMessage" json:"msg,omitempty"` // Funds coins that are transferred to the contract on execution Funds github_com_cosmos_cosmos_sdk_types.CoinAdapters `protobuf:"bytes,5,rep,name=funds,proto3,castrepeated=github.com/okex/exchain/libs/cosmos-sdk/types.Coins" json:"funds"` }
MsgExecuteContract submits the given message data to a smart contract
func MsgExecuteContractFixture ¶
func MsgExecuteContractFixture(mutators ...func(*MsgExecuteContract)) *MsgExecuteContract
func (*MsgExecuteContract) Descriptor ¶
func (*MsgExecuteContract) Descriptor() ([]byte, []int)
func (MsgExecuteContract) GetSignBytes ¶
func (msg MsgExecuteContract) GetSignBytes() []byte
func (MsgExecuteContract) GetSigners ¶
func (msg MsgExecuteContract) GetSigners() []sdk.AccAddress
func (*MsgExecuteContract) Marshal ¶
func (m *MsgExecuteContract) Marshal() (dAtA []byte, err error)
func (*MsgExecuteContract) MarshalTo ¶
func (m *MsgExecuteContract) MarshalTo(dAtA []byte) (int, error)
func (*MsgExecuteContract) MarshalToSizedBuffer ¶
func (m *MsgExecuteContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgExecuteContract) ProtoMessage ¶
func (*MsgExecuteContract) ProtoMessage()
func (*MsgExecuteContract) Reset ¶
func (m *MsgExecuteContract) Reset()
func (MsgExecuteContract) Route ¶
func (msg MsgExecuteContract) Route() string
func (*MsgExecuteContract) Size ¶
func (m *MsgExecuteContract) Size() (n int)
func (*MsgExecuteContract) String ¶
func (m *MsgExecuteContract) String() string
func (MsgExecuteContract) Type ¶
func (msg MsgExecuteContract) Type() string
func (*MsgExecuteContract) Unmarshal ¶
func (m *MsgExecuteContract) Unmarshal(dAtA []byte) error
func (MsgExecuteContract) ValidateBasic ¶
func (msg MsgExecuteContract) ValidateBasic() error
func (*MsgExecuteContract) XXX_DiscardUnknown ¶
func (m *MsgExecuteContract) XXX_DiscardUnknown()
func (*MsgExecuteContract) XXX_Marshal ¶
func (m *MsgExecuteContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgExecuteContract) XXX_Merge ¶
func (m *MsgExecuteContract) XXX_Merge(src proto.Message)
func (*MsgExecuteContract) XXX_Size ¶
func (m *MsgExecuteContract) XXX_Size() int
func (*MsgExecuteContract) XXX_Unmarshal ¶
func (m *MsgExecuteContract) XXX_Unmarshal(b []byte) error
type MsgExecuteContractResponse ¶
type MsgExecuteContractResponse struct { // Data contains base64-encoded bytes to returned from the contract Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` }
MsgExecuteContractResponse returns execution result data.
func (*MsgExecuteContractResponse) Descriptor ¶
func (*MsgExecuteContractResponse) Descriptor() ([]byte, []int)
func (*MsgExecuteContractResponse) Marshal ¶
func (m *MsgExecuteContractResponse) Marshal() (dAtA []byte, err error)
func (*MsgExecuteContractResponse) MarshalTo ¶
func (m *MsgExecuteContractResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgExecuteContractResponse) MarshalToSizedBuffer ¶
func (m *MsgExecuteContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgExecuteContractResponse) ProtoMessage ¶
func (*MsgExecuteContractResponse) ProtoMessage()
func (*MsgExecuteContractResponse) Reset ¶
func (m *MsgExecuteContractResponse) Reset()
func (*MsgExecuteContractResponse) Size ¶
func (m *MsgExecuteContractResponse) Size() (n int)
func (*MsgExecuteContractResponse) String ¶
func (m *MsgExecuteContractResponse) String() string
func (*MsgExecuteContractResponse) Unmarshal ¶
func (m *MsgExecuteContractResponse) Unmarshal(dAtA []byte) error
func (*MsgExecuteContractResponse) XXX_DiscardUnknown ¶
func (m *MsgExecuteContractResponse) XXX_DiscardUnknown()
func (*MsgExecuteContractResponse) XXX_Marshal ¶
func (m *MsgExecuteContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgExecuteContractResponse) XXX_Merge ¶
func (m *MsgExecuteContractResponse) XXX_Merge(src proto.Message)
func (*MsgExecuteContractResponse) XXX_Size ¶
func (m *MsgExecuteContractResponse) XXX_Size() int
func (*MsgExecuteContractResponse) XXX_Unmarshal ¶
func (m *MsgExecuteContractResponse) XXX_Unmarshal(b []byte) error
type MsgIBCCloseChannel ¶
type MsgIBCCloseChannel struct {
Channel string `protobuf:"bytes,2,opt,name=channel,proto3" json:"channel,omitempty" yaml:"source_channel"`
}
MsgIBCCloseChannel port and channel need to be owned by the contract
func (*MsgIBCCloseChannel) Descriptor ¶
func (*MsgIBCCloseChannel) Descriptor() ([]byte, []int)
func (MsgIBCCloseChannel) GetSignBytes ¶
func (msg MsgIBCCloseChannel) GetSignBytes() []byte
func (MsgIBCCloseChannel) GetSigners ¶
func (msg MsgIBCCloseChannel) GetSigners() []sdk.AccAddress
func (*MsgIBCCloseChannel) Marshal ¶
func (m *MsgIBCCloseChannel) Marshal() (dAtA []byte, err error)
func (*MsgIBCCloseChannel) MarshalTo ¶
func (m *MsgIBCCloseChannel) MarshalTo(dAtA []byte) (int, error)
func (*MsgIBCCloseChannel) MarshalToSizedBuffer ¶
func (m *MsgIBCCloseChannel) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgIBCCloseChannel) ProtoMessage ¶
func (*MsgIBCCloseChannel) ProtoMessage()
func (*MsgIBCCloseChannel) Reset ¶
func (m *MsgIBCCloseChannel) Reset()
func (MsgIBCCloseChannel) Route ¶
func (msg MsgIBCCloseChannel) Route() string
func (*MsgIBCCloseChannel) Size ¶
func (m *MsgIBCCloseChannel) Size() (n int)
func (*MsgIBCCloseChannel) String ¶
func (m *MsgIBCCloseChannel) String() string
func (MsgIBCCloseChannel) Type ¶
func (msg MsgIBCCloseChannel) Type() string
func (*MsgIBCCloseChannel) Unmarshal ¶
func (m *MsgIBCCloseChannel) Unmarshal(dAtA []byte) error
func (MsgIBCCloseChannel) ValidateBasic ¶
func (msg MsgIBCCloseChannel) ValidateBasic() error
func (*MsgIBCCloseChannel) XXX_DiscardUnknown ¶
func (m *MsgIBCCloseChannel) XXX_DiscardUnknown()
func (*MsgIBCCloseChannel) XXX_Marshal ¶
func (m *MsgIBCCloseChannel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgIBCCloseChannel) XXX_Merge ¶
func (m *MsgIBCCloseChannel) XXX_Merge(src proto.Message)
func (*MsgIBCCloseChannel) XXX_Size ¶
func (m *MsgIBCCloseChannel) XXX_Size() int
func (*MsgIBCCloseChannel) XXX_Unmarshal ¶
func (m *MsgIBCCloseChannel) XXX_Unmarshal(b []byte) error
type MsgIBCSend ¶
type MsgIBCSend struct { // the channel by which the packet will be sent Channel string `protobuf:"bytes,2,opt,name=channel,proto3" json:"channel,omitempty" yaml:"source_channel"` // Timeout height relative to the current block height. // The timeout is disabled when set to 0. TimeoutHeight uint64 `protobuf:"varint,4,opt,name=timeout_height,json=timeoutHeight,proto3" json:"timeout_height,omitempty" yaml:"timeout_height"` // Timeout timestamp (in nanoseconds) relative to the current block timestamp. // The timeout is disabled when set to 0. TimeoutTimestamp uint64 `` /* 135-byte string literal not displayed */ // Data is the payload to transfer. We must not make assumption what format or // content is in here. Data []byte `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` }
MsgIBCSend
func (*MsgIBCSend) Descriptor ¶
func (*MsgIBCSend) Descriptor() ([]byte, []int)
func (MsgIBCSend) GetSignBytes ¶
func (msg MsgIBCSend) GetSignBytes() []byte
func (MsgIBCSend) GetSigners ¶
func (msg MsgIBCSend) GetSigners() []sdk.AccAddress
func (*MsgIBCSend) Marshal ¶
func (m *MsgIBCSend) Marshal() (dAtA []byte, err error)
func (*MsgIBCSend) MarshalToSizedBuffer ¶
func (m *MsgIBCSend) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgIBCSend) ProtoMessage ¶
func (*MsgIBCSend) ProtoMessage()
func (*MsgIBCSend) Reset ¶
func (m *MsgIBCSend) Reset()
func (MsgIBCSend) Route ¶
func (msg MsgIBCSend) Route() string
func (*MsgIBCSend) Size ¶
func (m *MsgIBCSend) Size() (n int)
func (*MsgIBCSend) String ¶
func (m *MsgIBCSend) String() string
func (MsgIBCSend) Type ¶
func (msg MsgIBCSend) Type() string
func (*MsgIBCSend) Unmarshal ¶
func (m *MsgIBCSend) Unmarshal(dAtA []byte) error
func (MsgIBCSend) ValidateBasic ¶
func (msg MsgIBCSend) ValidateBasic() error
func (*MsgIBCSend) XXX_DiscardUnknown ¶
func (m *MsgIBCSend) XXX_DiscardUnknown()
func (*MsgIBCSend) XXX_Marshal ¶
func (m *MsgIBCSend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgIBCSend) XXX_Merge ¶
func (m *MsgIBCSend) XXX_Merge(src proto.Message)
func (*MsgIBCSend) XXX_Size ¶
func (m *MsgIBCSend) XXX_Size() int
func (*MsgIBCSend) XXX_Unmarshal ¶
func (m *MsgIBCSend) XXX_Unmarshal(b []byte) error
type MsgInstantiateContract ¶
type MsgInstantiateContract struct { // Sender is the that actor that signed the messages Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // Admin is an optional address that can execute migrations Admin string `protobuf:"bytes,2,opt,name=admin,proto3" json:"admin,omitempty"` // CodeID is the reference to the stored WASM code CodeID uint64 `protobuf:"varint,3,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"` // Label is optional metadata to be stored with a contract instance. Label string `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"` // Msg json encoded message to be passed to the contract on instantiation Msg RawContractMessage `protobuf:"bytes,5,opt,name=msg,proto3,casttype=RawContractMessage" json:"msg,omitempty"` // Funds coins that are transferred to the contract on instantiation Funds github_com_cosmos_cosmos_sdk_types.CoinAdapters `protobuf:"bytes,6,rep,name=funds,proto3,castrepeated=github.com/okex/exchain/libs/cosmos-sdk/types.Coins" json:"funds"` }
MsgInstantiateContract create a new smart contract instance for the given code id.
func MsgInstantiateContractFixture ¶
func MsgInstantiateContractFixture(mutators ...func(*MsgInstantiateContract)) *MsgInstantiateContract
func (*MsgInstantiateContract) Descriptor ¶
func (*MsgInstantiateContract) Descriptor() ([]byte, []int)
func (MsgInstantiateContract) GetSignBytes ¶
func (msg MsgInstantiateContract) GetSignBytes() []byte
func (MsgInstantiateContract) GetSigners ¶
func (msg MsgInstantiateContract) GetSigners() []sdk.AccAddress
func (*MsgInstantiateContract) Marshal ¶
func (m *MsgInstantiateContract) Marshal() (dAtA []byte, err error)
func (*MsgInstantiateContract) MarshalTo ¶
func (m *MsgInstantiateContract) MarshalTo(dAtA []byte) (int, error)
func (*MsgInstantiateContract) MarshalToSizedBuffer ¶
func (m *MsgInstantiateContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgInstantiateContract) ProtoMessage ¶
func (*MsgInstantiateContract) ProtoMessage()
func (*MsgInstantiateContract) Reset ¶
func (m *MsgInstantiateContract) Reset()
func (MsgInstantiateContract) Route ¶
func (msg MsgInstantiateContract) Route() string
func (*MsgInstantiateContract) Size ¶
func (m *MsgInstantiateContract) Size() (n int)
func (*MsgInstantiateContract) String ¶
func (m *MsgInstantiateContract) String() string
func (MsgInstantiateContract) Type ¶
func (msg MsgInstantiateContract) Type() string
func (*MsgInstantiateContract) Unmarshal ¶
func (m *MsgInstantiateContract) Unmarshal(dAtA []byte) error
func (MsgInstantiateContract) ValidateBasic ¶
func (msg MsgInstantiateContract) ValidateBasic() error
func (*MsgInstantiateContract) XXX_DiscardUnknown ¶
func (m *MsgInstantiateContract) XXX_DiscardUnknown()
func (*MsgInstantiateContract) XXX_Marshal ¶
func (m *MsgInstantiateContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgInstantiateContract) XXX_Merge ¶
func (m *MsgInstantiateContract) XXX_Merge(src proto.Message)
func (*MsgInstantiateContract) XXX_Size ¶
func (m *MsgInstantiateContract) XXX_Size() int
func (*MsgInstantiateContract) XXX_Unmarshal ¶
func (m *MsgInstantiateContract) XXX_Unmarshal(b []byte) error
type MsgInstantiateContractResponse ¶
type MsgInstantiateContractResponse struct { // Address is the bech32 address of the new contract instance. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // Data contains base64-encoded bytes to returned from the contract Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` }
MsgInstantiateContractResponse return instantiation result data
func (*MsgInstantiateContractResponse) Descriptor ¶
func (*MsgInstantiateContractResponse) Descriptor() ([]byte, []int)
func (*MsgInstantiateContractResponse) Marshal ¶
func (m *MsgInstantiateContractResponse) Marshal() (dAtA []byte, err error)
func (*MsgInstantiateContractResponse) MarshalTo ¶
func (m *MsgInstantiateContractResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgInstantiateContractResponse) MarshalToSizedBuffer ¶
func (m *MsgInstantiateContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgInstantiateContractResponse) ProtoMessage ¶
func (*MsgInstantiateContractResponse) ProtoMessage()
func (*MsgInstantiateContractResponse) Reset ¶
func (m *MsgInstantiateContractResponse) Reset()
func (*MsgInstantiateContractResponse) Size ¶
func (m *MsgInstantiateContractResponse) Size() (n int)
func (*MsgInstantiateContractResponse) String ¶
func (m *MsgInstantiateContractResponse) String() string
func (*MsgInstantiateContractResponse) Unmarshal ¶
func (m *MsgInstantiateContractResponse) Unmarshal(dAtA []byte) error
func (*MsgInstantiateContractResponse) XXX_DiscardUnknown ¶
func (m *MsgInstantiateContractResponse) XXX_DiscardUnknown()
func (*MsgInstantiateContractResponse) XXX_Marshal ¶
func (m *MsgInstantiateContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgInstantiateContractResponse) XXX_Merge ¶
func (m *MsgInstantiateContractResponse) XXX_Merge(src proto.Message)
func (*MsgInstantiateContractResponse) XXX_Size ¶
func (m *MsgInstantiateContractResponse) XXX_Size() int
func (*MsgInstantiateContractResponse) XXX_Unmarshal ¶
func (m *MsgInstantiateContractResponse) XXX_Unmarshal(b []byte) error
type MsgMigrateContract ¶
type MsgMigrateContract struct { // Sender is the that actor that signed the messages Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // Contract is the address of the smart contract Contract string `protobuf:"bytes,2,opt,name=contract,proto3" json:"contract,omitempty"` // CodeID references the new WASM code CodeID uint64 `protobuf:"varint,3,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"` // Msg json encoded message to be passed to the contract on migration Msg RawContractMessage `protobuf:"bytes,4,opt,name=msg,proto3,casttype=RawContractMessage" json:"msg,omitempty"` }
MsgMigrateContract runs a code upgrade/ downgrade for a smart contract
func (*MsgMigrateContract) Descriptor ¶
func (*MsgMigrateContract) Descriptor() ([]byte, []int)
func (MsgMigrateContract) GetSignBytes ¶
func (msg MsgMigrateContract) GetSignBytes() []byte
func (MsgMigrateContract) GetSigners ¶
func (msg MsgMigrateContract) GetSigners() []sdk.AccAddress
func (*MsgMigrateContract) Marshal ¶
func (m *MsgMigrateContract) Marshal() (dAtA []byte, err error)
func (*MsgMigrateContract) MarshalTo ¶
func (m *MsgMigrateContract) MarshalTo(dAtA []byte) (int, error)
func (*MsgMigrateContract) MarshalToSizedBuffer ¶
func (m *MsgMigrateContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMigrateContract) ProtoMessage ¶
func (*MsgMigrateContract) ProtoMessage()
func (*MsgMigrateContract) Reset ¶
func (m *MsgMigrateContract) Reset()
func (MsgMigrateContract) Route ¶
func (msg MsgMigrateContract) Route() string
func (*MsgMigrateContract) Size ¶
func (m *MsgMigrateContract) Size() (n int)
func (*MsgMigrateContract) String ¶
func (m *MsgMigrateContract) String() string
func (MsgMigrateContract) Type ¶
func (msg MsgMigrateContract) Type() string
func (*MsgMigrateContract) Unmarshal ¶
func (m *MsgMigrateContract) Unmarshal(dAtA []byte) error
func (MsgMigrateContract) ValidateBasic ¶
func (msg MsgMigrateContract) ValidateBasic() error
func (*MsgMigrateContract) XXX_DiscardUnknown ¶
func (m *MsgMigrateContract) XXX_DiscardUnknown()
func (*MsgMigrateContract) XXX_Marshal ¶
func (m *MsgMigrateContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMigrateContract) XXX_Merge ¶
func (m *MsgMigrateContract) XXX_Merge(src proto.Message)
func (*MsgMigrateContract) XXX_Size ¶
func (m *MsgMigrateContract) XXX_Size() int
func (*MsgMigrateContract) XXX_Unmarshal ¶
func (m *MsgMigrateContract) XXX_Unmarshal(b []byte) error
type MsgMigrateContractResponse ¶
type MsgMigrateContractResponse struct { // Data contains same raw bytes returned as data from the wasm contract. // (May be empty) Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` }
MsgMigrateContractResponse returns contract migration result data.
func (*MsgMigrateContractResponse) Descriptor ¶
func (*MsgMigrateContractResponse) Descriptor() ([]byte, []int)
func (*MsgMigrateContractResponse) Marshal ¶
func (m *MsgMigrateContractResponse) Marshal() (dAtA []byte, err error)
func (*MsgMigrateContractResponse) MarshalTo ¶
func (m *MsgMigrateContractResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgMigrateContractResponse) MarshalToSizedBuffer ¶
func (m *MsgMigrateContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMigrateContractResponse) ProtoMessage ¶
func (*MsgMigrateContractResponse) ProtoMessage()
func (*MsgMigrateContractResponse) Reset ¶
func (m *MsgMigrateContractResponse) Reset()
func (*MsgMigrateContractResponse) Size ¶
func (m *MsgMigrateContractResponse) Size() (n int)
func (*MsgMigrateContractResponse) String ¶
func (m *MsgMigrateContractResponse) String() string
func (*MsgMigrateContractResponse) Unmarshal ¶
func (m *MsgMigrateContractResponse) Unmarshal(dAtA []byte) error
func (*MsgMigrateContractResponse) XXX_DiscardUnknown ¶
func (m *MsgMigrateContractResponse) XXX_DiscardUnknown()
func (*MsgMigrateContractResponse) XXX_Marshal ¶
func (m *MsgMigrateContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMigrateContractResponse) XXX_Merge ¶
func (m *MsgMigrateContractResponse) XXX_Merge(src proto.Message)
func (*MsgMigrateContractResponse) XXX_Size ¶
func (m *MsgMigrateContractResponse) XXX_Size() int
func (*MsgMigrateContractResponse) XXX_Unmarshal ¶
func (m *MsgMigrateContractResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // StoreCode to submit Wasm code to the system StoreCode(context.Context, *MsgStoreCode) (*MsgStoreCodeResponse, error) // Instantiate creates a new smart contract instance for the given code id. InstantiateContract(context.Context, *MsgInstantiateContract) (*MsgInstantiateContractResponse, error) // Execute submits the given message data to a smart contract ExecuteContract(context.Context, *MsgExecuteContract) (*MsgExecuteContractResponse, error) // Migrate runs a code upgrade/ downgrade for a smart contract MigrateContract(context.Context, *MsgMigrateContract) (*MsgMigrateContractResponse, error) // UpdateAdmin sets a new admin for a smart contract UpdateAdmin(context.Context, *MsgUpdateAdmin) (*MsgUpdateAdminResponse, error) // ClearAdmin removes any admin stored for a smart contract ClearAdmin(context.Context, *MsgClearAdmin) (*MsgClearAdminResponse, error) }
MsgServer is the server API for Msg service.
type MsgStoreCode ¶
type MsgStoreCode struct { // Sender is the that actor that signed the messages Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // WASMByteCode can be raw or gzip compressed WASMByteCode []byte `protobuf:"bytes,2,opt,name=wasm_byte_code,json=wasmByteCode,proto3" json:"wasm_byte_code,omitempty"` // InstantiatePermission access control to apply on contract creation, // optional InstantiatePermission *AccessConfig `protobuf:"bytes,5,opt,name=instantiate_permission,json=instantiatePermission,proto3" json:"instantiate_permission,omitempty"` }
MsgStoreCode submit Wasm code to the system
func MsgStoreCodeFixture ¶
func MsgStoreCodeFixture(mutators ...func(*MsgStoreCode)) *MsgStoreCode
func (*MsgStoreCode) Descriptor ¶
func (*MsgStoreCode) Descriptor() ([]byte, []int)
func (MsgStoreCode) GetSignBytes ¶
func (msg MsgStoreCode) GetSignBytes() []byte
func (MsgStoreCode) GetSigners ¶
func (msg MsgStoreCode) GetSigners() []sdk.AccAddress
func (*MsgStoreCode) Marshal ¶
func (m *MsgStoreCode) Marshal() (dAtA []byte, err error)
func (*MsgStoreCode) MarshalToSizedBuffer ¶
func (m *MsgStoreCode) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgStoreCode) ProtoMessage ¶
func (*MsgStoreCode) ProtoMessage()
func (*MsgStoreCode) Reset ¶
func (m *MsgStoreCode) Reset()
func (MsgStoreCode) Route ¶
func (msg MsgStoreCode) Route() string
func (*MsgStoreCode) Size ¶
func (m *MsgStoreCode) Size() (n int)
func (*MsgStoreCode) String ¶
func (m *MsgStoreCode) String() string
func (MsgStoreCode) Type ¶
func (msg MsgStoreCode) Type() string
func (*MsgStoreCode) Unmarshal ¶
func (m *MsgStoreCode) Unmarshal(dAtA []byte) error
func (MsgStoreCode) ValidateBasic ¶
func (msg MsgStoreCode) ValidateBasic() error
func (*MsgStoreCode) XXX_DiscardUnknown ¶
func (m *MsgStoreCode) XXX_DiscardUnknown()
func (*MsgStoreCode) XXX_Marshal ¶
func (m *MsgStoreCode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgStoreCode) XXX_Merge ¶
func (m *MsgStoreCode) XXX_Merge(src proto.Message)
func (*MsgStoreCode) XXX_Size ¶
func (m *MsgStoreCode) XXX_Size() int
func (*MsgStoreCode) XXX_Unmarshal ¶
func (m *MsgStoreCode) XXX_Unmarshal(b []byte) error
type MsgStoreCodeResponse ¶
type MsgStoreCodeResponse struct { // CodeID is the reference to the stored WASM code CodeID uint64 `protobuf:"varint,1,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"` }
MsgStoreCodeResponse returns store result data.
func (*MsgStoreCodeResponse) Descriptor ¶
func (*MsgStoreCodeResponse) Descriptor() ([]byte, []int)
func (*MsgStoreCodeResponse) Marshal ¶
func (m *MsgStoreCodeResponse) Marshal() (dAtA []byte, err error)
func (*MsgStoreCodeResponse) MarshalTo ¶
func (m *MsgStoreCodeResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgStoreCodeResponse) MarshalToSizedBuffer ¶
func (m *MsgStoreCodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgStoreCodeResponse) ProtoMessage ¶
func (*MsgStoreCodeResponse) ProtoMessage()
func (*MsgStoreCodeResponse) Reset ¶
func (m *MsgStoreCodeResponse) Reset()
func (*MsgStoreCodeResponse) Size ¶
func (m *MsgStoreCodeResponse) Size() (n int)
func (*MsgStoreCodeResponse) String ¶
func (m *MsgStoreCodeResponse) String() string
func (*MsgStoreCodeResponse) Unmarshal ¶
func (m *MsgStoreCodeResponse) Unmarshal(dAtA []byte) error
func (*MsgStoreCodeResponse) XXX_DiscardUnknown ¶
func (m *MsgStoreCodeResponse) XXX_DiscardUnknown()
func (*MsgStoreCodeResponse) XXX_Marshal ¶
func (m *MsgStoreCodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgStoreCodeResponse) XXX_Merge ¶
func (m *MsgStoreCodeResponse) XXX_Merge(src proto.Message)
func (*MsgStoreCodeResponse) XXX_Size ¶
func (m *MsgStoreCodeResponse) XXX_Size() int
func (*MsgStoreCodeResponse) XXX_Unmarshal ¶
func (m *MsgStoreCodeResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateAdmin ¶
type MsgUpdateAdmin struct { // Sender is the that actor that signed the messages Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // NewAdmin address to be set NewAdmin string `protobuf:"bytes,2,opt,name=new_admin,json=newAdmin,proto3" json:"new_admin,omitempty"` // Contract is the address of the smart contract Contract string `protobuf:"bytes,3,opt,name=contract,proto3" json:"contract,omitempty"` }
MsgUpdateAdmin sets a new admin for a smart contract
func (*MsgUpdateAdmin) Descriptor ¶
func (*MsgUpdateAdmin) Descriptor() ([]byte, []int)
func (MsgUpdateAdmin) GetSignBytes ¶
func (msg MsgUpdateAdmin) GetSignBytes() []byte
func (MsgUpdateAdmin) GetSigners ¶
func (msg MsgUpdateAdmin) GetSigners() []sdk.AccAddress
func (*MsgUpdateAdmin) Marshal ¶
func (m *MsgUpdateAdmin) Marshal() (dAtA []byte, err error)
func (*MsgUpdateAdmin) MarshalToSizedBuffer ¶
func (m *MsgUpdateAdmin) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateAdmin) ProtoMessage ¶
func (*MsgUpdateAdmin) ProtoMessage()
func (*MsgUpdateAdmin) Reset ¶
func (m *MsgUpdateAdmin) Reset()
func (MsgUpdateAdmin) Route ¶
func (msg MsgUpdateAdmin) Route() string
func (*MsgUpdateAdmin) Size ¶
func (m *MsgUpdateAdmin) Size() (n int)
func (*MsgUpdateAdmin) String ¶
func (m *MsgUpdateAdmin) String() string
func (MsgUpdateAdmin) Type ¶
func (msg MsgUpdateAdmin) Type() string
func (*MsgUpdateAdmin) Unmarshal ¶
func (m *MsgUpdateAdmin) Unmarshal(dAtA []byte) error
func (MsgUpdateAdmin) ValidateBasic ¶
func (msg MsgUpdateAdmin) ValidateBasic() error
func (*MsgUpdateAdmin) XXX_DiscardUnknown ¶
func (m *MsgUpdateAdmin) XXX_DiscardUnknown()
func (*MsgUpdateAdmin) XXX_Marshal ¶
func (m *MsgUpdateAdmin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateAdmin) XXX_Merge ¶
func (m *MsgUpdateAdmin) XXX_Merge(src proto.Message)
func (*MsgUpdateAdmin) XXX_Size ¶
func (m *MsgUpdateAdmin) XXX_Size() int
func (*MsgUpdateAdmin) XXX_Unmarshal ¶
func (m *MsgUpdateAdmin) XXX_Unmarshal(b []byte) error
type MsgUpdateAdminResponse ¶
type MsgUpdateAdminResponse struct{}
MsgUpdateAdminResponse returns empty data
func (*MsgUpdateAdminResponse) Descriptor ¶
func (*MsgUpdateAdminResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateAdminResponse) Marshal ¶
func (m *MsgUpdateAdminResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateAdminResponse) MarshalTo ¶
func (m *MsgUpdateAdminResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateAdminResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateAdminResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateAdminResponse) ProtoMessage ¶
func (*MsgUpdateAdminResponse) ProtoMessage()
func (*MsgUpdateAdminResponse) Reset ¶
func (m *MsgUpdateAdminResponse) Reset()
func (*MsgUpdateAdminResponse) Size ¶
func (m *MsgUpdateAdminResponse) Size() (n int)
func (*MsgUpdateAdminResponse) String ¶
func (m *MsgUpdateAdminResponse) String() string
func (*MsgUpdateAdminResponse) Unmarshal ¶
func (m *MsgUpdateAdminResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateAdminResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateAdminResponse) XXX_DiscardUnknown()
func (*MsgUpdateAdminResponse) XXX_Marshal ¶
func (m *MsgUpdateAdminResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateAdminResponse) XXX_Merge ¶
func (m *MsgUpdateAdminResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateAdminResponse) XXX_Size ¶
func (m *MsgUpdateAdminResponse) XXX_Size() int
func (*MsgUpdateAdminResponse) XXX_Unmarshal ¶
func (m *MsgUpdateAdminResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { CodeUploadAccess AccessConfig `` /* 127-byte string literal not displayed */ InstantiateDefaultPermission AccessType `` /* 219-byte string literal not displayed */ UseContractBlockedList bool `` /* 165-byte string literal not displayed */ VmbridgeEnable bool `` /* 127-byte string literal not displayed */ }
Params defines the set of wasm parameters.
func TestParams ¶ added in v1.6.8
func TestParams() Params
TestParams returns default wasm parameters for unit tests
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs returns the parameter set pairs.
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (Params) ValidateBasic ¶
ValidateBasic performs basic validation on wasm parameters
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type PinCodesProposal ¶
type PinCodesProposal struct { // Title is a short summary Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty" yaml:"title"` // Description is a human readable text Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty" yaml:"description"` // CodeIDs references the new WASM codes CodeIDs []uint64 `protobuf:"varint,3,rep,packed,name=code_ids,json=codeIds,proto3" json:"code_ids,omitempty" yaml:"code_ids"` }
PinCodesProposal gov proposal content type to pin a set of code ids in the wasmvm cache.
func (*PinCodesProposal) Descriptor ¶
func (*PinCodesProposal) Descriptor() ([]byte, []int)
func (*PinCodesProposal) Equal ¶
func (this *PinCodesProposal) Equal(that interface{}) bool
func (PinCodesProposal) GetDescription ¶
func (p PinCodesProposal) GetDescription() string
GetDescription returns the human readable description of the proposal
func (*PinCodesProposal) GetTitle ¶
func (p *PinCodesProposal) GetTitle() string
GetTitle returns the title of the proposal
func (*PinCodesProposal) Marshal ¶
func (m *PinCodesProposal) Marshal() (dAtA []byte, err error)
func (*PinCodesProposal) MarshalToSizedBuffer ¶
func (m *PinCodesProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (PinCodesProposal) ProposalRoute ¶
func (p PinCodesProposal) ProposalRoute() string
ProposalRoute returns the routing key of a parameter change proposal.
func (PinCodesProposal) ProposalType ¶
func (p PinCodesProposal) ProposalType() string
ProposalType returns the type
func (*PinCodesProposal) ProtoMessage ¶
func (*PinCodesProposal) ProtoMessage()
func (*PinCodesProposal) Reset ¶
func (m *PinCodesProposal) Reset()
func (*PinCodesProposal) Size ¶
func (m *PinCodesProposal) Size() (n int)
func (PinCodesProposal) String ¶
func (p PinCodesProposal) String() string
String implements the Stringer interface.
func (*PinCodesProposal) Unmarshal ¶
func (m *PinCodesProposal) Unmarshal(dAtA []byte) error
func (PinCodesProposal) ValidateBasic ¶
func (p PinCodesProposal) ValidateBasic() error
ValidateBasic validates the proposal
func (*PinCodesProposal) XXX_DiscardUnknown ¶
func (m *PinCodesProposal) XXX_DiscardUnknown()
func (*PinCodesProposal) XXX_Marshal ¶
func (m *PinCodesProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PinCodesProposal) XXX_Merge ¶
func (m *PinCodesProposal) XXX_Merge(src proto.Message)
func (*PinCodesProposal) XXX_Size ¶
func (m *PinCodesProposal) XXX_Size() int
func (*PinCodesProposal) XXX_Unmarshal ¶
func (m *PinCodesProposal) XXX_Unmarshal(b []byte) error
type PortKeeper ¶
type PortKeeper interface {
BindPort(ctx sdk.Context, portID string) *capabilitytypes.Capability
}
PortKeeper defines the expected IBC port keeper
type ProposalType ¶
type ProposalType string
const ( ProposalTypeStoreCode ProposalType = "StoreCode" ProposalTypeInstantiateContract ProposalType = "InstantiateContract" ProposalTypeMigrateContract ProposalType = "MigrateContract" ProposalTypeSudoContract ProposalType = "SudoContract" ProposalTypeExecuteContract ProposalType = "ExecuteContract" ProposalTypeUpdateAdmin ProposalType = "UpdateAdmin" ProposalTypeClearAdmin ProposalType = "ClearAdmin" ProposalTypePinCodes ProposalType = "PinCodes" ProposalTypeUnpinCodes ProposalType = "UnpinCodes" ProposalTypeUpdateInstantiateConfig ProposalType = "UpdateInstantiateConfig" ProposalTypeUpdateDeploymentWhitelist ProposalType = "UpdateDeploymentWhitelist" ProposalTypeUpdateWasmContractMethodBlockedList ProposalType = "UpdateWasmContractMethodBlockedList" ProposalTypeExtra ProposalType = "WasmExtra" ActionModifyGasFactor = "GasFactor" )
func ConvertToProposals ¶
func ConvertToProposals(keys []string) ([]ProposalType, error)
ConvertToProposals maps each key to a ProposalType and returns a typed list. If any string is not a valid type (in this file), then return an error
type QueryAddressWhitelistResponse ¶ added in v1.6.6
type QueryAddressWhitelistResponse struct {
Whitelist []string `json:"whitelist,omitempty"`
}
func NewQueryAddressWhitelistResponse ¶ added in v1.6.6
func NewQueryAddressWhitelistResponse(whitelist []string) *QueryAddressWhitelistResponse
type QueryAllContractStateRequest ¶
type QueryAllContractStateRequest struct { // address is the address of the contract Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryAllContractStateRequest is the request type for the Query/AllContractState RPC method
func (*QueryAllContractStateRequest) Descriptor ¶
func (*QueryAllContractStateRequest) Descriptor() ([]byte, []int)
func (*QueryAllContractStateRequest) Marshal ¶
func (m *QueryAllContractStateRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllContractStateRequest) MarshalTo ¶
func (m *QueryAllContractStateRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllContractStateRequest) MarshalToSizedBuffer ¶
func (m *QueryAllContractStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllContractStateRequest) ProtoMessage ¶
func (*QueryAllContractStateRequest) ProtoMessage()
func (*QueryAllContractStateRequest) Reset ¶
func (m *QueryAllContractStateRequest) Reset()
func (*QueryAllContractStateRequest) Size ¶
func (m *QueryAllContractStateRequest) Size() (n int)
func (*QueryAllContractStateRequest) String ¶
func (m *QueryAllContractStateRequest) String() string
func (*QueryAllContractStateRequest) Unmarshal ¶
func (m *QueryAllContractStateRequest) Unmarshal(dAtA []byte) error
func (*QueryAllContractStateRequest) XXX_DiscardUnknown ¶
func (m *QueryAllContractStateRequest) XXX_DiscardUnknown()
func (*QueryAllContractStateRequest) XXX_Marshal ¶
func (m *QueryAllContractStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllContractStateRequest) XXX_Merge ¶
func (m *QueryAllContractStateRequest) XXX_Merge(src proto.Message)
func (*QueryAllContractStateRequest) XXX_Size ¶
func (m *QueryAllContractStateRequest) XXX_Size() int
func (*QueryAllContractStateRequest) XXX_Unmarshal ¶
func (m *QueryAllContractStateRequest) XXX_Unmarshal(b []byte) error
type QueryAllContractStateResponse ¶
type QueryAllContractStateResponse struct { Models []Model `protobuf:"bytes,1,rep,name=models,proto3" json:"models"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryAllContractStateResponse is the response type for the Query/AllContractState RPC method
func (*QueryAllContractStateResponse) Descriptor ¶
func (*QueryAllContractStateResponse) Descriptor() ([]byte, []int)
func (*QueryAllContractStateResponse) Marshal ¶
func (m *QueryAllContractStateResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllContractStateResponse) MarshalTo ¶
func (m *QueryAllContractStateResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllContractStateResponse) MarshalToSizedBuffer ¶
func (m *QueryAllContractStateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllContractStateResponse) ProtoMessage ¶
func (*QueryAllContractStateResponse) ProtoMessage()
func (*QueryAllContractStateResponse) Reset ¶
func (m *QueryAllContractStateResponse) Reset()
func (*QueryAllContractStateResponse) Size ¶
func (m *QueryAllContractStateResponse) Size() (n int)
func (*QueryAllContractStateResponse) String ¶
func (m *QueryAllContractStateResponse) String() string
func (*QueryAllContractStateResponse) Unmarshal ¶
func (m *QueryAllContractStateResponse) Unmarshal(dAtA []byte) error
func (*QueryAllContractStateResponse) XXX_DiscardUnknown ¶
func (m *QueryAllContractStateResponse) XXX_DiscardUnknown()
func (*QueryAllContractStateResponse) XXX_Marshal ¶
func (m *QueryAllContractStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllContractStateResponse) XXX_Merge ¶
func (m *QueryAllContractStateResponse) XXX_Merge(src proto.Message)
func (*QueryAllContractStateResponse) XXX_Size ¶
func (m *QueryAllContractStateResponse) XXX_Size() int
func (*QueryAllContractStateResponse) XXX_Unmarshal ¶
func (m *QueryAllContractStateResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // ContractInfo gets the contract meta data ContractInfo(ctx context.Context, in *QueryContractInfoRequest, opts ...grpc.CallOption) (*QueryContractInfoResponse, error) // ContractHistory gets the contract code history ContractHistory(ctx context.Context, in *QueryContractHistoryRequest, opts ...grpc.CallOption) (*QueryContractHistoryResponse, error) // ContractsByCode lists all smart contracts for a code id ContractsByCode(ctx context.Context, in *QueryContractsByCodeRequest, opts ...grpc.CallOption) (*QueryContractsByCodeResponse, error) // AllContractState gets all raw store data for a single contract AllContractState(ctx context.Context, in *QueryAllContractStateRequest, opts ...grpc.CallOption) (*QueryAllContractStateResponse, error) // RawContractState gets single key from the raw store data of a contract RawContractState(ctx context.Context, in *QueryRawContractStateRequest, opts ...grpc.CallOption) (*QueryRawContractStateResponse, error) // SmartContractState get smart query result from the contract SmartContractState(ctx context.Context, in *QuerySmartContractStateRequest, opts ...grpc.CallOption) (*QuerySmartContractStateResponse, error) // Code gets the binary code and metadata for a singe wasm code Code(ctx context.Context, in *QueryCodeRequest, opts ...grpc.CallOption) (*QueryCodeResponse, error) // Codes gets the metadata for all stored wasm codes Codes(ctx context.Context, in *QueryCodesRequest, opts ...grpc.CallOption) (*QueryCodesResponse, error) // PinnedCodes gets the pinned code ids PinnedCodes(ctx context.Context, in *QueryPinnedCodesRequest, opts ...grpc.CallOption) (*QueryPinnedCodesResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryCodeRequest ¶
type QueryCodeRequest struct {
CodeId uint64 `protobuf:"varint,1,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"`
}
QueryCodeRequest is the request type for the Query/Code RPC method
func (*QueryCodeRequest) Descriptor ¶
func (*QueryCodeRequest) Descriptor() ([]byte, []int)
func (*QueryCodeRequest) Marshal ¶
func (m *QueryCodeRequest) Marshal() (dAtA []byte, err error)
func (*QueryCodeRequest) MarshalToSizedBuffer ¶
func (m *QueryCodeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCodeRequest) ProtoMessage ¶
func (*QueryCodeRequest) ProtoMessage()
func (*QueryCodeRequest) Reset ¶
func (m *QueryCodeRequest) Reset()
func (*QueryCodeRequest) Size ¶
func (m *QueryCodeRequest) Size() (n int)
func (*QueryCodeRequest) String ¶
func (m *QueryCodeRequest) String() string
func (*QueryCodeRequest) Unmarshal ¶
func (m *QueryCodeRequest) Unmarshal(dAtA []byte) error
func (*QueryCodeRequest) XXX_DiscardUnknown ¶
func (m *QueryCodeRequest) XXX_DiscardUnknown()
func (*QueryCodeRequest) XXX_Marshal ¶
func (m *QueryCodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCodeRequest) XXX_Merge ¶
func (m *QueryCodeRequest) XXX_Merge(src proto.Message)
func (*QueryCodeRequest) XXX_Size ¶
func (m *QueryCodeRequest) XXX_Size() int
func (*QueryCodeRequest) XXX_Unmarshal ¶
func (m *QueryCodeRequest) XXX_Unmarshal(b []byte) error
type QueryCodeResponse ¶
type QueryCodeResponse struct { *CodeInfoResponse `protobuf:"bytes,1,opt,name=code_info,json=codeInfo,proto3,embedded=code_info" json:""` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data"` }
QueryCodeResponse is the response type for the Query/Code RPC method
func (*QueryCodeResponse) Descriptor ¶
func (*QueryCodeResponse) Descriptor() ([]byte, []int)
func (*QueryCodeResponse) Equal ¶
func (this *QueryCodeResponse) Equal(that interface{}) bool
func (*QueryCodeResponse) Marshal ¶
func (m *QueryCodeResponse) Marshal() (dAtA []byte, err error)
func (*QueryCodeResponse) MarshalTo ¶
func (m *QueryCodeResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCodeResponse) MarshalToSizedBuffer ¶
func (m *QueryCodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCodeResponse) ProtoMessage ¶
func (*QueryCodeResponse) ProtoMessage()
func (*QueryCodeResponse) Reset ¶
func (m *QueryCodeResponse) Reset()
func (*QueryCodeResponse) Size ¶
func (m *QueryCodeResponse) Size() (n int)
func (*QueryCodeResponse) String ¶
func (m *QueryCodeResponse) String() string
func (*QueryCodeResponse) Unmarshal ¶
func (m *QueryCodeResponse) Unmarshal(dAtA []byte) error
func (*QueryCodeResponse) XXX_DiscardUnknown ¶
func (m *QueryCodeResponse) XXX_DiscardUnknown()
func (*QueryCodeResponse) XXX_Marshal ¶
func (m *QueryCodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCodeResponse) XXX_Merge ¶
func (m *QueryCodeResponse) XXX_Merge(src proto.Message)
func (*QueryCodeResponse) XXX_Size ¶
func (m *QueryCodeResponse) XXX_Size() int
func (*QueryCodeResponse) XXX_Unmarshal ¶
func (m *QueryCodeResponse) XXX_Unmarshal(b []byte) error
type QueryCodesRequest ¶
type QueryCodesRequest struct { // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryCodesRequest is the request type for the Query/Codes RPC method
func (*QueryCodesRequest) Descriptor ¶
func (*QueryCodesRequest) Descriptor() ([]byte, []int)
func (*QueryCodesRequest) Marshal ¶
func (m *QueryCodesRequest) Marshal() (dAtA []byte, err error)
func (*QueryCodesRequest) MarshalTo ¶
func (m *QueryCodesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryCodesRequest) MarshalToSizedBuffer ¶
func (m *QueryCodesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCodesRequest) ProtoMessage ¶
func (*QueryCodesRequest) ProtoMessage()
func (*QueryCodesRequest) Reset ¶
func (m *QueryCodesRequest) Reset()
func (*QueryCodesRequest) Size ¶
func (m *QueryCodesRequest) Size() (n int)
func (*QueryCodesRequest) String ¶
func (m *QueryCodesRequest) String() string
func (*QueryCodesRequest) Unmarshal ¶
func (m *QueryCodesRequest) Unmarshal(dAtA []byte) error
func (*QueryCodesRequest) XXX_DiscardUnknown ¶
func (m *QueryCodesRequest) XXX_DiscardUnknown()
func (*QueryCodesRequest) XXX_Marshal ¶
func (m *QueryCodesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCodesRequest) XXX_Merge ¶
func (m *QueryCodesRequest) XXX_Merge(src proto.Message)
func (*QueryCodesRequest) XXX_Size ¶
func (m *QueryCodesRequest) XXX_Size() int
func (*QueryCodesRequest) XXX_Unmarshal ¶
func (m *QueryCodesRequest) XXX_Unmarshal(b []byte) error
type QueryCodesResponse ¶
type QueryCodesResponse struct { CodeInfos []CodeInfoResponse `protobuf:"bytes,1,rep,name=code_infos,json=codeInfos,proto3" json:"code_infos"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryCodesResponse is the response type for the Query/Codes RPC method
func (*QueryCodesResponse) Descriptor ¶
func (*QueryCodesResponse) Descriptor() ([]byte, []int)
func (*QueryCodesResponse) Marshal ¶
func (m *QueryCodesResponse) Marshal() (dAtA []byte, err error)
func (*QueryCodesResponse) MarshalTo ¶
func (m *QueryCodesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCodesResponse) MarshalToSizedBuffer ¶
func (m *QueryCodesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCodesResponse) ProtoMessage ¶
func (*QueryCodesResponse) ProtoMessage()
func (*QueryCodesResponse) Reset ¶
func (m *QueryCodesResponse) Reset()
func (*QueryCodesResponse) Size ¶
func (m *QueryCodesResponse) Size() (n int)
func (*QueryCodesResponse) String ¶
func (m *QueryCodesResponse) String() string
func (*QueryCodesResponse) Unmarshal ¶
func (m *QueryCodesResponse) Unmarshal(dAtA []byte) error
func (*QueryCodesResponse) XXX_DiscardUnknown ¶
func (m *QueryCodesResponse) XXX_DiscardUnknown()
func (*QueryCodesResponse) XXX_Marshal ¶
func (m *QueryCodesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCodesResponse) XXX_Merge ¶
func (m *QueryCodesResponse) XXX_Merge(src proto.Message)
func (*QueryCodesResponse) XXX_Size ¶
func (m *QueryCodesResponse) XXX_Size() int
func (*QueryCodesResponse) XXX_Unmarshal ¶
func (m *QueryCodesResponse) XXX_Unmarshal(b []byte) error
type QueryContractHistoryRequest ¶
type QueryContractHistoryRequest struct { // address is the address of the contract to query Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryContractHistoryRequest is the request type for the Query/ContractHistory RPC method
func (*QueryContractHistoryRequest) Descriptor ¶
func (*QueryContractHistoryRequest) Descriptor() ([]byte, []int)
func (*QueryContractHistoryRequest) Marshal ¶
func (m *QueryContractHistoryRequest) Marshal() (dAtA []byte, err error)
func (*QueryContractHistoryRequest) MarshalTo ¶
func (m *QueryContractHistoryRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryContractHistoryRequest) MarshalToSizedBuffer ¶
func (m *QueryContractHistoryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryContractHistoryRequest) ProtoMessage ¶
func (*QueryContractHistoryRequest) ProtoMessage()
func (*QueryContractHistoryRequest) Reset ¶
func (m *QueryContractHistoryRequest) Reset()
func (*QueryContractHistoryRequest) Size ¶
func (m *QueryContractHistoryRequest) Size() (n int)
func (*QueryContractHistoryRequest) String ¶
func (m *QueryContractHistoryRequest) String() string
func (*QueryContractHistoryRequest) Unmarshal ¶
func (m *QueryContractHistoryRequest) Unmarshal(dAtA []byte) error
func (*QueryContractHistoryRequest) XXX_DiscardUnknown ¶
func (m *QueryContractHistoryRequest) XXX_DiscardUnknown()
func (*QueryContractHistoryRequest) XXX_Marshal ¶
func (m *QueryContractHistoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryContractHistoryRequest) XXX_Merge ¶
func (m *QueryContractHistoryRequest) XXX_Merge(src proto.Message)
func (*QueryContractHistoryRequest) XXX_Size ¶
func (m *QueryContractHistoryRequest) XXX_Size() int
func (*QueryContractHistoryRequest) XXX_Unmarshal ¶
func (m *QueryContractHistoryRequest) XXX_Unmarshal(b []byte) error
type QueryContractHistoryResponse ¶
type QueryContractHistoryResponse struct { Entries []ContractCodeHistoryEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryContractHistoryResponse is the response type for the Query/ContractHistory RPC method
func (*QueryContractHistoryResponse) Descriptor ¶
func (*QueryContractHistoryResponse) Descriptor() ([]byte, []int)
func (*QueryContractHistoryResponse) Marshal ¶
func (m *QueryContractHistoryResponse) Marshal() (dAtA []byte, err error)
func (*QueryContractHistoryResponse) MarshalTo ¶
func (m *QueryContractHistoryResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryContractHistoryResponse) MarshalToSizedBuffer ¶
func (m *QueryContractHistoryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryContractHistoryResponse) ProtoMessage ¶
func (*QueryContractHistoryResponse) ProtoMessage()
func (*QueryContractHistoryResponse) Reset ¶
func (m *QueryContractHistoryResponse) Reset()
func (*QueryContractHistoryResponse) Size ¶
func (m *QueryContractHistoryResponse) Size() (n int)
func (*QueryContractHistoryResponse) String ¶
func (m *QueryContractHistoryResponse) String() string
func (*QueryContractHistoryResponse) Unmarshal ¶
func (m *QueryContractHistoryResponse) Unmarshal(dAtA []byte) error
func (*QueryContractHistoryResponse) XXX_DiscardUnknown ¶
func (m *QueryContractHistoryResponse) XXX_DiscardUnknown()
func (*QueryContractHistoryResponse) XXX_Marshal ¶
func (m *QueryContractHistoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryContractHistoryResponse) XXX_Merge ¶
func (m *QueryContractHistoryResponse) XXX_Merge(src proto.Message)
func (*QueryContractHistoryResponse) XXX_Size ¶
func (m *QueryContractHistoryResponse) XXX_Size() int
func (*QueryContractHistoryResponse) XXX_Unmarshal ¶
func (m *QueryContractHistoryResponse) XXX_Unmarshal(b []byte) error
type QueryContractInfoRequest ¶
type QueryContractInfoRequest struct { // address is the address of the contract to query Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` }
QueryContractInfoRequest is the request type for the Query/ContractInfo RPC method
func (*QueryContractInfoRequest) Descriptor ¶
func (*QueryContractInfoRequest) Descriptor() ([]byte, []int)
func (*QueryContractInfoRequest) Marshal ¶
func (m *QueryContractInfoRequest) Marshal() (dAtA []byte, err error)
func (*QueryContractInfoRequest) MarshalTo ¶
func (m *QueryContractInfoRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryContractInfoRequest) MarshalToSizedBuffer ¶
func (m *QueryContractInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryContractInfoRequest) ProtoMessage ¶
func (*QueryContractInfoRequest) ProtoMessage()
func (*QueryContractInfoRequest) Reset ¶
func (m *QueryContractInfoRequest) Reset()
func (*QueryContractInfoRequest) Size ¶
func (m *QueryContractInfoRequest) Size() (n int)
func (*QueryContractInfoRequest) String ¶
func (m *QueryContractInfoRequest) String() string
func (*QueryContractInfoRequest) Unmarshal ¶
func (m *QueryContractInfoRequest) Unmarshal(dAtA []byte) error
func (*QueryContractInfoRequest) XXX_DiscardUnknown ¶
func (m *QueryContractInfoRequest) XXX_DiscardUnknown()
func (*QueryContractInfoRequest) XXX_Marshal ¶
func (m *QueryContractInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryContractInfoRequest) XXX_Merge ¶
func (m *QueryContractInfoRequest) XXX_Merge(src proto.Message)
func (*QueryContractInfoRequest) XXX_Size ¶
func (m *QueryContractInfoRequest) XXX_Size() int
func (*QueryContractInfoRequest) XXX_Unmarshal ¶
func (m *QueryContractInfoRequest) XXX_Unmarshal(b []byte) error
type QueryContractInfoResponse ¶
type QueryContractInfoResponse struct { // address is the address of the contract Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` ContractInfo `protobuf:"bytes,2,opt,name=contract_info,json=contractInfo,proto3,embedded=contract_info" json:""` }
QueryContractInfoResponse is the response type for the Query/ContractInfo RPC method
func (*QueryContractInfoResponse) Descriptor ¶
func (*QueryContractInfoResponse) Descriptor() ([]byte, []int)
func (*QueryContractInfoResponse) Equal ¶
func (this *QueryContractInfoResponse) Equal(that interface{}) bool
func (*QueryContractInfoResponse) Marshal ¶
func (m *QueryContractInfoResponse) Marshal() (dAtA []byte, err error)
func (*QueryContractInfoResponse) MarshalTo ¶
func (m *QueryContractInfoResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryContractInfoResponse) MarshalToSizedBuffer ¶
func (m *QueryContractInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryContractInfoResponse) ProtoMessage ¶
func (*QueryContractInfoResponse) ProtoMessage()
func (*QueryContractInfoResponse) Reset ¶
func (m *QueryContractInfoResponse) Reset()
func (*QueryContractInfoResponse) Size ¶
func (m *QueryContractInfoResponse) Size() (n int)
func (*QueryContractInfoResponse) String ¶
func (m *QueryContractInfoResponse) String() string
func (*QueryContractInfoResponse) Unmarshal ¶
func (m *QueryContractInfoResponse) Unmarshal(dAtA []byte) error
func (*QueryContractInfoResponse) XXX_DiscardUnknown ¶
func (m *QueryContractInfoResponse) XXX_DiscardUnknown()
func (*QueryContractInfoResponse) XXX_Marshal ¶
func (m *QueryContractInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryContractInfoResponse) XXX_Merge ¶
func (m *QueryContractInfoResponse) XXX_Merge(src proto.Message)
func (*QueryContractInfoResponse) XXX_Size ¶
func (m *QueryContractInfoResponse) XXX_Size() int
func (*QueryContractInfoResponse) XXX_Unmarshal ¶
func (m *QueryContractInfoResponse) XXX_Unmarshal(b []byte) error
type QueryContractsByCodeRequest ¶
type QueryContractsByCodeRequest struct { CodeId uint64 `protobuf:"varint,1,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"` // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryContractsByCodeRequest is the request type for the Query/ContractsByCode RPC method
func (*QueryContractsByCodeRequest) Descriptor ¶
func (*QueryContractsByCodeRequest) Descriptor() ([]byte, []int)
func (*QueryContractsByCodeRequest) Marshal ¶
func (m *QueryContractsByCodeRequest) Marshal() (dAtA []byte, err error)
func (*QueryContractsByCodeRequest) MarshalTo ¶
func (m *QueryContractsByCodeRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryContractsByCodeRequest) MarshalToSizedBuffer ¶
func (m *QueryContractsByCodeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryContractsByCodeRequest) ProtoMessage ¶
func (*QueryContractsByCodeRequest) ProtoMessage()
func (*QueryContractsByCodeRequest) Reset ¶
func (m *QueryContractsByCodeRequest) Reset()
func (*QueryContractsByCodeRequest) Size ¶
func (m *QueryContractsByCodeRequest) Size() (n int)
func (*QueryContractsByCodeRequest) String ¶
func (m *QueryContractsByCodeRequest) String() string
func (*QueryContractsByCodeRequest) Unmarshal ¶
func (m *QueryContractsByCodeRequest) Unmarshal(dAtA []byte) error
func (*QueryContractsByCodeRequest) XXX_DiscardUnknown ¶
func (m *QueryContractsByCodeRequest) XXX_DiscardUnknown()
func (*QueryContractsByCodeRequest) XXX_Marshal ¶
func (m *QueryContractsByCodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryContractsByCodeRequest) XXX_Merge ¶
func (m *QueryContractsByCodeRequest) XXX_Merge(src proto.Message)
func (*QueryContractsByCodeRequest) XXX_Size ¶
func (m *QueryContractsByCodeRequest) XXX_Size() int
func (*QueryContractsByCodeRequest) XXX_Unmarshal ¶
func (m *QueryContractsByCodeRequest) XXX_Unmarshal(b []byte) error
type QueryContractsByCodeResponse ¶
type QueryContractsByCodeResponse struct { // contracts are a set of contract addresses Contracts []string `protobuf:"bytes,1,rep,name=contracts,proto3" json:"contracts,omitempty"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryContractsByCodeResponse is the response type for the Query/ContractsByCode RPC method
func (*QueryContractsByCodeResponse) Descriptor ¶
func (*QueryContractsByCodeResponse) Descriptor() ([]byte, []int)
func (*QueryContractsByCodeResponse) Marshal ¶
func (m *QueryContractsByCodeResponse) Marshal() (dAtA []byte, err error)
func (*QueryContractsByCodeResponse) MarshalTo ¶
func (m *QueryContractsByCodeResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryContractsByCodeResponse) MarshalToSizedBuffer ¶
func (m *QueryContractsByCodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryContractsByCodeResponse) ProtoMessage ¶
func (*QueryContractsByCodeResponse) ProtoMessage()
func (*QueryContractsByCodeResponse) Reset ¶
func (m *QueryContractsByCodeResponse) Reset()
func (*QueryContractsByCodeResponse) Size ¶
func (m *QueryContractsByCodeResponse) Size() (n int)
func (*QueryContractsByCodeResponse) String ¶
func (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 QueryExtraParams ¶ added in v1.7.0
type QueryExtraParams struct { GasFactor string `protobuf:"bytes,1,opt,name=gas_factor,json=gasFactor,proto3" json:"gas_factor,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*QueryExtraParams) Descriptor ¶ added in v1.7.0
func (*QueryExtraParams) Descriptor() ([]byte, []int)
func (*QueryExtraParams) GetGasFactor ¶ added in v1.7.0
func (m *QueryExtraParams) GetGasFactor() string
func (*QueryExtraParams) ProtoMessage ¶ added in v1.7.0
func (*QueryExtraParams) ProtoMessage()
func (*QueryExtraParams) Reset ¶ added in v1.7.0
func (m *QueryExtraParams) Reset()
func (*QueryExtraParams) String ¶ added in v1.7.0
func (m *QueryExtraParams) String() string
func (*QueryExtraParams) XXX_DiscardUnknown ¶ added in v1.7.0
func (m *QueryExtraParams) XXX_DiscardUnknown()
func (*QueryExtraParams) XXX_Marshal ¶ added in v1.7.0
func (m *QueryExtraParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryExtraParams) XXX_Merge ¶ added in v1.7.0
func (m *QueryExtraParams) XXX_Merge(src proto.Message)
func (*QueryExtraParams) XXX_Size ¶ added in v1.7.0
func (m *QueryExtraParams) XXX_Size() int
func (*QueryExtraParams) XXX_Unmarshal ¶ added in v1.7.0
func (m *QueryExtraParams) XXX_Unmarshal(b []byte) error
type QueryPinnedCodesRequest ¶
type QueryPinnedCodesRequest struct { // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryPinnedCodesRequest is the request type for the Query/PinnedCodes RPC method
func (*QueryPinnedCodesRequest) Descriptor ¶
func (*QueryPinnedCodesRequest) Descriptor() ([]byte, []int)
func (*QueryPinnedCodesRequest) Marshal ¶
func (m *QueryPinnedCodesRequest) Marshal() (dAtA []byte, err error)
func (*QueryPinnedCodesRequest) MarshalTo ¶
func (m *QueryPinnedCodesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryPinnedCodesRequest) MarshalToSizedBuffer ¶
func (m *QueryPinnedCodesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPinnedCodesRequest) ProtoMessage ¶
func (*QueryPinnedCodesRequest) ProtoMessage()
func (*QueryPinnedCodesRequest) Reset ¶
func (m *QueryPinnedCodesRequest) Reset()
func (*QueryPinnedCodesRequest) Size ¶
func (m *QueryPinnedCodesRequest) Size() (n int)
func (*QueryPinnedCodesRequest) String ¶
func (m *QueryPinnedCodesRequest) String() string
func (*QueryPinnedCodesRequest) Unmarshal ¶
func (m *QueryPinnedCodesRequest) Unmarshal(dAtA []byte) error
func (*QueryPinnedCodesRequest) XXX_DiscardUnknown ¶
func (m *QueryPinnedCodesRequest) XXX_DiscardUnknown()
func (*QueryPinnedCodesRequest) XXX_Marshal ¶
func (m *QueryPinnedCodesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPinnedCodesRequest) XXX_Merge ¶
func (m *QueryPinnedCodesRequest) XXX_Merge(src proto.Message)
func (*QueryPinnedCodesRequest) XXX_Size ¶
func (m *QueryPinnedCodesRequest) XXX_Size() int
func (*QueryPinnedCodesRequest) XXX_Unmarshal ¶
func (m *QueryPinnedCodesRequest) XXX_Unmarshal(b []byte) error
type QueryPinnedCodesResponse ¶
type QueryPinnedCodesResponse struct { CodeIDs []uint64 `protobuf:"varint,1,rep,packed,name=code_ids,json=codeIds,proto3" json:"code_ids,omitempty"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryPinnedCodesResponse is the response type for the Query/PinnedCodes RPC method
func (*QueryPinnedCodesResponse) Descriptor ¶
func (*QueryPinnedCodesResponse) Descriptor() ([]byte, []int)
func (*QueryPinnedCodesResponse) Marshal ¶
func (m *QueryPinnedCodesResponse) Marshal() (dAtA []byte, err error)
func (*QueryPinnedCodesResponse) MarshalTo ¶
func (m *QueryPinnedCodesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPinnedCodesResponse) MarshalToSizedBuffer ¶
func (m *QueryPinnedCodesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPinnedCodesResponse) ProtoMessage ¶
func (*QueryPinnedCodesResponse) ProtoMessage()
func (*QueryPinnedCodesResponse) Reset ¶
func (m *QueryPinnedCodesResponse) Reset()
func (*QueryPinnedCodesResponse) Size ¶
func (m *QueryPinnedCodesResponse) Size() (n int)
func (*QueryPinnedCodesResponse) String ¶
func (m *QueryPinnedCodesResponse) String() string
func (*QueryPinnedCodesResponse) Unmarshal ¶
func (m *QueryPinnedCodesResponse) Unmarshal(dAtA []byte) error
func (*QueryPinnedCodesResponse) XXX_DiscardUnknown ¶
func (m *QueryPinnedCodesResponse) XXX_DiscardUnknown()
func (*QueryPinnedCodesResponse) XXX_Marshal ¶
func (m *QueryPinnedCodesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPinnedCodesResponse) XXX_Merge ¶
func (m *QueryPinnedCodesResponse) XXX_Merge(src proto.Message)
func (*QueryPinnedCodesResponse) XXX_Size ¶
func (m *QueryPinnedCodesResponse) XXX_Size() int
func (*QueryPinnedCodesResponse) XXX_Unmarshal ¶
func (m *QueryPinnedCodesResponse) XXX_Unmarshal(b []byte) error
type QueryRawContractStateRequest ¶
type QueryRawContractStateRequest struct { // address is the address of the contract Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` QueryData []byte `protobuf:"bytes,2,opt,name=query_data,json=queryData,proto3" json:"query_data,omitempty"` }
QueryRawContractStateRequest is the request type for the Query/RawContractState RPC method
func (*QueryRawContractStateRequest) Descriptor ¶
func (*QueryRawContractStateRequest) Descriptor() ([]byte, []int)
func (*QueryRawContractStateRequest) Marshal ¶
func (m *QueryRawContractStateRequest) Marshal() (dAtA []byte, err error)
func (*QueryRawContractStateRequest) MarshalTo ¶
func (m *QueryRawContractStateRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryRawContractStateRequest) MarshalToSizedBuffer ¶
func (m *QueryRawContractStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRawContractStateRequest) ProtoMessage ¶
func (*QueryRawContractStateRequest) ProtoMessage()
func (*QueryRawContractStateRequest) Reset ¶
func (m *QueryRawContractStateRequest) Reset()
func (*QueryRawContractStateRequest) Size ¶
func (m *QueryRawContractStateRequest) Size() (n int)
func (*QueryRawContractStateRequest) String ¶
func (m *QueryRawContractStateRequest) String() string
func (*QueryRawContractStateRequest) Unmarshal ¶
func (m *QueryRawContractStateRequest) Unmarshal(dAtA []byte) error
func (*QueryRawContractStateRequest) XXX_DiscardUnknown ¶
func (m *QueryRawContractStateRequest) XXX_DiscardUnknown()
func (*QueryRawContractStateRequest) XXX_Marshal ¶
func (m *QueryRawContractStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRawContractStateRequest) XXX_Merge ¶
func (m *QueryRawContractStateRequest) XXX_Merge(src proto.Message)
func (*QueryRawContractStateRequest) XXX_Size ¶
func (m *QueryRawContractStateRequest) XXX_Size() int
func (*QueryRawContractStateRequest) XXX_Unmarshal ¶
func (m *QueryRawContractStateRequest) XXX_Unmarshal(b []byte) error
type QueryRawContractStateResponse ¶
type QueryRawContractStateResponse struct { // Data contains the raw store data Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` }
QueryRawContractStateResponse is the response type for the Query/RawContractState RPC method
func (*QueryRawContractStateResponse) Descriptor ¶
func (*QueryRawContractStateResponse) Descriptor() ([]byte, []int)
func (*QueryRawContractStateResponse) Marshal ¶
func (m *QueryRawContractStateResponse) Marshal() (dAtA []byte, err error)
func (*QueryRawContractStateResponse) MarshalTo ¶
func (m *QueryRawContractStateResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryRawContractStateResponse) MarshalToSizedBuffer ¶
func (m *QueryRawContractStateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRawContractStateResponse) ProtoMessage ¶
func (*QueryRawContractStateResponse) ProtoMessage()
func (*QueryRawContractStateResponse) Reset ¶
func (m *QueryRawContractStateResponse) Reset()
func (*QueryRawContractStateResponse) Size ¶
func (m *QueryRawContractStateResponse) Size() (n int)
func (*QueryRawContractStateResponse) String ¶
func (m *QueryRawContractStateResponse) String() string
func (*QueryRawContractStateResponse) Unmarshal ¶
func (m *QueryRawContractStateResponse) Unmarshal(dAtA []byte) error
func (*QueryRawContractStateResponse) XXX_DiscardUnknown ¶
func (m *QueryRawContractStateResponse) XXX_DiscardUnknown()
func (*QueryRawContractStateResponse) XXX_Marshal ¶
func (m *QueryRawContractStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRawContractStateResponse) XXX_Merge ¶
func (m *QueryRawContractStateResponse) XXX_Merge(src proto.Message)
func (*QueryRawContractStateResponse) XXX_Size ¶
func (m *QueryRawContractStateResponse) XXX_Size() int
func (*QueryRawContractStateResponse) XXX_Unmarshal ¶
func (m *QueryRawContractStateResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // ContractInfo gets the contract meta data ContractInfo(context.Context, *QueryContractInfoRequest) (*QueryContractInfoResponse, error) // ContractHistory gets the contract code history ContractHistory(context.Context, *QueryContractHistoryRequest) (*QueryContractHistoryResponse, error) // ContractsByCode lists all smart contracts for a code id ContractsByCode(context.Context, *QueryContractsByCodeRequest) (*QueryContractsByCodeResponse, error) // AllContractState gets all raw store data for a single contract AllContractState(context.Context, *QueryAllContractStateRequest) (*QueryAllContractStateResponse, error) // RawContractState gets single key from the raw store data of a contract RawContractState(context.Context, *QueryRawContractStateRequest) (*QueryRawContractStateResponse, error) // SmartContractState get smart query result from the contract SmartContractState(context.Context, *QuerySmartContractStateRequest) (*QuerySmartContractStateResponse, error) // Code gets the binary code and metadata for a singe wasm code Code(context.Context, *QueryCodeRequest) (*QueryCodeResponse, error) // Codes gets the metadata for all stored wasm codes Codes(context.Context, *QueryCodesRequest) (*QueryCodesResponse, error) // PinnedCodes gets the pinned code ids PinnedCodes(context.Context, *QueryPinnedCodesRequest) (*QueryPinnedCodesResponse, error) }
QueryServer is the server API for Query service.
type QuerySmartContractStateRequest ¶
type QuerySmartContractStateRequest struct { // address is the address of the contract Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // QueryData contains the query data passed to the contract QueryData RawContractMessage `protobuf:"bytes,2,opt,name=query_data,json=queryData,proto3,casttype=RawContractMessage" json:"query_data,omitempty"` }
QuerySmartContractStateRequest is the request type for the Query/SmartContractState RPC method
func (*QuerySmartContractStateRequest) Descriptor ¶
func (*QuerySmartContractStateRequest) Descriptor() ([]byte, []int)
func (*QuerySmartContractStateRequest) 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 contains the json data returned from the smart contract Data RawContractMessage `protobuf:"bytes,1,opt,name=data,proto3,casttype=RawContractMessage" json:"data,omitempty"` }
QuerySmartContractStateResponse is the response type for the Query/SmartContractState RPC method
func (*QuerySmartContractStateResponse) Descriptor ¶
func (*QuerySmartContractStateResponse) Descriptor() ([]byte, []int)
func (*QuerySmartContractStateResponse) 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 RawContractMessage ¶
type RawContractMessage []byte
RawContractMessage defines a json message that is sent or returned by a wasm contract. This type can hold any type of bytes. Until validateBasic is called there should not be any assumptions made that the data is valid syntax or semantic.
func (RawContractMessage) Bytes ¶
func (r RawContractMessage) Bytes() []byte
Bytes returns raw bytes type
func (RawContractMessage) MarshalJSON ¶
func (r RawContractMessage) MarshalJSON() ([]byte, error)
func (*RawContractMessage) UnmarshalJSON ¶
func (r *RawContractMessage) UnmarshalJSON(b []byte) error
func (*RawContractMessage) ValidateBasic ¶
func (r *RawContractMessage) ValidateBasic() error
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 key and value of an id generation 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 StakingKeeper ¶
type StakingKeeper interface { // BondDenom - Bondable coin denomination BondDenom(ctx sdk.Context) (res string) // GetValidator get a single validator GetValidator(ctx sdk.Context, addr sdk.ValAddress) (validator stakingtypes.Validator, found bool) // GetBondedValidatorsByPower get the current group of bonded validators sorted by power-rank GetBondedValidatorsByPower(ctx sdk.Context) []stakingtypes.Validator // GetAllDelegatorDelegations return all delegations for a delegator GetAllDelegatorDelegations(ctx sdk.Context, delegator sdk.AccAddress) []stakingtypes.Delegation // GetDelegation return a specific delegation GetDelegation(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (delegation stakingtypes.Delegation, found bool) // HasReceivingRedelegation check if validator is receiving a redelegation HasReceivingRedelegation(ctx sdk.Context, delAddr sdk.AccAddress, valDstAddr sdk.ValAddress) bool }
StakingKeeper defines a subset of methods implemented by the cosmos-sdk staking keeper
type StoreAdapter ¶
type StoreAdapter struct {
// contains filtered or unexported fields
}
func NewStoreAdapter ¶
func NewStoreAdapter(parent types.KVStore) StoreAdapter
func (StoreAdapter) Delete ¶
func (sa StoreAdapter) Delete(key []byte)
func (StoreAdapter) Get ¶
func (sa StoreAdapter) Get(key []byte) []byte
func (StoreAdapter) Iterator ¶
func (sa StoreAdapter) Iterator(start, end []byte) dbm.Iterator
Iterator over a domain of keys in ascending order. End is exclusive. Start must be less than end, or the Iterator is invalid. Iterator must be closed by caller. To iterate over entire domain, use store.Iterator(nil, nil)
func (StoreAdapter) ReverseIterator ¶
func (sa StoreAdapter) ReverseIterator(start, end []byte) dbm.Iterator
Iterator over a domain of keys in descending order. End is exclusive. Start must be less than end, or the Iterator is invalid. Iterator must be closed by caller.
func (StoreAdapter) Set ¶
func (sa StoreAdapter) Set(key, value []byte)
type StoreCodeProposal ¶
type StoreCodeProposal struct { // Title is a short summary Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` // Description is a human readable text Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // RunAs is the address that is passed to the contract's environment as sender RunAs string `protobuf:"bytes,3,opt,name=run_as,json=runAs,proto3" json:"run_as,omitempty"` // WASMByteCode can be raw or gzip compressed WASMByteCode []byte `protobuf:"bytes,4,opt,name=wasm_byte_code,json=wasmByteCode,proto3" json:"wasm_byte_code,omitempty"` // InstantiatePermission to apply on contract creation, optional InstantiatePermission *AccessConfig `protobuf:"bytes,7,opt,name=instantiate_permission,json=instantiatePermission,proto3" json:"instantiate_permission,omitempty"` }
StoreCodeProposal gov proposal content type to submit WASM code to the system
func StoreCodeProposalFixture ¶
func StoreCodeProposalFixture(mutators ...func(*StoreCodeProposal)) *StoreCodeProposal
func (*StoreCodeProposal) Descriptor ¶
func (*StoreCodeProposal) Descriptor() ([]byte, []int)
func (*StoreCodeProposal) Equal ¶
func (this *StoreCodeProposal) Equal(that interface{}) bool
func (StoreCodeProposal) GetDescription ¶
func (p StoreCodeProposal) GetDescription() string
GetDescription returns the human readable description of the proposal
func (*StoreCodeProposal) GetTitle ¶
func (p *StoreCodeProposal) GetTitle() string
GetTitle returns the title of the proposal
func (*StoreCodeProposal) Marshal ¶
func (m *StoreCodeProposal) Marshal() (dAtA []byte, err error)
func (*StoreCodeProposal) MarshalTo ¶
func (m *StoreCodeProposal) MarshalTo(dAtA []byte) (int, error)
func (*StoreCodeProposal) MarshalToSizedBuffer ¶
func (m *StoreCodeProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (StoreCodeProposal) MarshalYAML ¶
func (p StoreCodeProposal) MarshalYAML() (interface{}, error)
MarshalYAML pretty prints the wasm byte code
func (StoreCodeProposal) ProposalRoute ¶
func (p StoreCodeProposal) ProposalRoute() string
ProposalRoute returns the routing key of a parameter change proposal.
func (StoreCodeProposal) ProposalType ¶
func (p StoreCodeProposal) ProposalType() string
ProposalType returns the type
func (*StoreCodeProposal) ProtoMessage ¶
func (*StoreCodeProposal) ProtoMessage()
func (*StoreCodeProposal) Reset ¶
func (m *StoreCodeProposal) Reset()
func (*StoreCodeProposal) Size ¶
func (m *StoreCodeProposal) Size() (n int)
func (StoreCodeProposal) String ¶
func (p StoreCodeProposal) String() string
String implements the Stringer interface.
func (*StoreCodeProposal) Unmarshal ¶
func (m *StoreCodeProposal) Unmarshal(dAtA []byte) error
func (StoreCodeProposal) ValidateBasic ¶
func (p StoreCodeProposal) ValidateBasic() error
ValidateBasic validates the proposal
func (*StoreCodeProposal) XXX_DiscardUnknown ¶
func (m *StoreCodeProposal) XXX_DiscardUnknown()
func (*StoreCodeProposal) XXX_Marshal ¶
func (m *StoreCodeProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StoreCodeProposal) XXX_Merge ¶
func (m *StoreCodeProposal) XXX_Merge(src proto.Message)
func (*StoreCodeProposal) XXX_Size ¶
func (m *StoreCodeProposal) XXX_Size() int
func (*StoreCodeProposal) XXX_Unmarshal ¶
func (m *StoreCodeProposal) XXX_Unmarshal(b []byte) error
type SudoContractProposal ¶
type SudoContractProposal struct { // Title is a short summary Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` // Description is a human readable text Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // Contract is the address of the smart contract Contract string `protobuf:"bytes,3,opt,name=contract,proto3" json:"contract,omitempty"` // Msg json encoded message to be passed to the contract as sudo Msg RawContractMessage `protobuf:"bytes,4,opt,name=msg,proto3,casttype=RawContractMessage" json:"msg,omitempty"` }
SudoContractProposal gov proposal content type to call sudo on a contract.
func SudoContractProposalFixture ¶
func SudoContractProposalFixture(mutators ...func(p *SudoContractProposal)) *SudoContractProposal
func (*SudoContractProposal) Descriptor ¶
func (*SudoContractProposal) Descriptor() ([]byte, []int)
func (*SudoContractProposal) Equal ¶
func (this *SudoContractProposal) Equal(that interface{}) bool
func (SudoContractProposal) GetDescription ¶
func (p SudoContractProposal) GetDescription() string
GetDescription returns the human readable description of the proposal
func (*SudoContractProposal) GetTitle ¶
func (p *SudoContractProposal) GetTitle() string
GetTitle returns the title of the proposal
func (*SudoContractProposal) Marshal ¶
func (m *SudoContractProposal) Marshal() (dAtA []byte, err error)
func (*SudoContractProposal) MarshalTo ¶
func (m *SudoContractProposal) MarshalTo(dAtA []byte) (int, error)
func (*SudoContractProposal) MarshalToSizedBuffer ¶
func (m *SudoContractProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (SudoContractProposal) MarshalYAML ¶
func (p SudoContractProposal) MarshalYAML() (interface{}, error)
MarshalYAML pretty prints the migrate message
func (SudoContractProposal) ProposalRoute ¶
func (p SudoContractProposal) ProposalRoute() string
ProposalRoute returns the routing key of a parameter change proposal.
func (SudoContractProposal) ProposalType ¶
func (p SudoContractProposal) ProposalType() string
ProposalType returns the type
func (*SudoContractProposal) ProtoMessage ¶
func (*SudoContractProposal) ProtoMessage()
func (*SudoContractProposal) Reset ¶
func (m *SudoContractProposal) Reset()
func (*SudoContractProposal) Size ¶
func (m *SudoContractProposal) Size() (n int)
func (SudoContractProposal) String ¶
func (p SudoContractProposal) String() string
String implements the Stringer interface.
func (*SudoContractProposal) Unmarshal ¶
func (m *SudoContractProposal) Unmarshal(dAtA []byte) error
func (SudoContractProposal) ValidateBasic ¶
func (p SudoContractProposal) ValidateBasic() error
ValidateBasic validates the proposal
func (*SudoContractProposal) XXX_DiscardUnknown ¶
func (m *SudoContractProposal) XXX_DiscardUnknown()
func (*SudoContractProposal) XXX_Marshal ¶
func (m *SudoContractProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SudoContractProposal) XXX_Merge ¶
func (m *SudoContractProposal) XXX_Merge(src proto.Message)
func (*SudoContractProposal) XXX_Size ¶
func (m *SudoContractProposal) XXX_Size() int
func (*SudoContractProposal) XXX_Unmarshal ¶
func (m *SudoContractProposal) XXX_Unmarshal(b []byte) error
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct{}
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) ClearAdmin ¶
func (*UnimplementedMsgServer) ClearAdmin(ctx context.Context, req *MsgClearAdmin) (*MsgClearAdminResponse, error)
func (*UnimplementedMsgServer) ExecuteContract ¶
func (*UnimplementedMsgServer) ExecuteContract(ctx context.Context, req *MsgExecuteContract) (*MsgExecuteContractResponse, error)
func (*UnimplementedMsgServer) InstantiateContract ¶
func (*UnimplementedMsgServer) InstantiateContract(ctx context.Context, req *MsgInstantiateContract) (*MsgInstantiateContractResponse, error)
func (*UnimplementedMsgServer) MigrateContract ¶
func (*UnimplementedMsgServer) MigrateContract(ctx context.Context, req *MsgMigrateContract) (*MsgMigrateContractResponse, error)
func (*UnimplementedMsgServer) StoreCode ¶
func (*UnimplementedMsgServer) StoreCode(ctx context.Context, req *MsgStoreCode) (*MsgStoreCodeResponse, error)
func (*UnimplementedMsgServer) UpdateAdmin ¶
func (*UnimplementedMsgServer) UpdateAdmin(ctx context.Context, req *MsgUpdateAdmin) (*MsgUpdateAdminResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct{}
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) AllContractState ¶
func (*UnimplementedQueryServer) AllContractState(ctx context.Context, req *QueryAllContractStateRequest) (*QueryAllContractStateResponse, error)
func (*UnimplementedQueryServer) Code ¶
func (*UnimplementedQueryServer) Code(ctx context.Context, req *QueryCodeRequest) (*QueryCodeResponse, error)
func (*UnimplementedQueryServer) Codes ¶
func (*UnimplementedQueryServer) Codes(ctx context.Context, req *QueryCodesRequest) (*QueryCodesResponse, error)
func (*UnimplementedQueryServer) ContractHistory ¶
func (*UnimplementedQueryServer) ContractHistory(ctx context.Context, req *QueryContractHistoryRequest) (*QueryContractHistoryResponse, 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) PinnedCodes ¶
func (*UnimplementedQueryServer) PinnedCodes(ctx context.Context, req *QueryPinnedCodesRequest) (*QueryPinnedCodesResponse, error)
func (*UnimplementedQueryServer) RawContractState ¶
func (*UnimplementedQueryServer) RawContractState(ctx context.Context, req *QueryRawContractStateRequest) (*QueryRawContractStateResponse, error)
func (*UnimplementedQueryServer) SmartContractState ¶
func (*UnimplementedQueryServer) SmartContractState(ctx context.Context, req *QuerySmartContractStateRequest) (*QuerySmartContractStateResponse, error)
type UnpinCodesProposal ¶
type UnpinCodesProposal struct { // Title is a short summary Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty" yaml:"title"` // Description is a human readable text Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty" yaml:"description"` // CodeIDs references the WASM codes CodeIDs []uint64 `protobuf:"varint,3,rep,packed,name=code_ids,json=codeIds,proto3" json:"code_ids,omitempty" yaml:"code_ids"` }
UnpinCodesProposal gov proposal content type to unpin a set of code ids in the wasmvm cache.
func (*UnpinCodesProposal) Descriptor ¶
func (*UnpinCodesProposal) Descriptor() ([]byte, []int)
func (*UnpinCodesProposal) Equal ¶
func (this *UnpinCodesProposal) Equal(that interface{}) bool
func (UnpinCodesProposal) GetDescription ¶
func (p UnpinCodesProposal) GetDescription() string
GetDescription returns the human readable description of the proposal
func (*UnpinCodesProposal) GetTitle ¶
func (p *UnpinCodesProposal) GetTitle() string
GetTitle returns the title of the proposal
func (*UnpinCodesProposal) Marshal ¶
func (m *UnpinCodesProposal) Marshal() (dAtA []byte, err error)
func (*UnpinCodesProposal) MarshalTo ¶
func (m *UnpinCodesProposal) MarshalTo(dAtA []byte) (int, error)
func (*UnpinCodesProposal) MarshalToSizedBuffer ¶
func (m *UnpinCodesProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (UnpinCodesProposal) ProposalRoute ¶
func (p UnpinCodesProposal) ProposalRoute() string
ProposalRoute returns the routing key of a parameter change proposal.
func (UnpinCodesProposal) ProposalType ¶
func (p UnpinCodesProposal) ProposalType() string
ProposalType returns the type
func (*UnpinCodesProposal) ProtoMessage ¶
func (*UnpinCodesProposal) ProtoMessage()
func (*UnpinCodesProposal) Reset ¶
func (m *UnpinCodesProposal) Reset()
func (*UnpinCodesProposal) Size ¶
func (m *UnpinCodesProposal) Size() (n int)
func (UnpinCodesProposal) String ¶
func (p UnpinCodesProposal) String() string
String implements the Stringer interface.
func (*UnpinCodesProposal) Unmarshal ¶
func (m *UnpinCodesProposal) Unmarshal(dAtA []byte) error
func (UnpinCodesProposal) ValidateBasic ¶
func (p UnpinCodesProposal) ValidateBasic() error
ValidateBasic validates the proposal
func (*UnpinCodesProposal) XXX_DiscardUnknown ¶
func (m *UnpinCodesProposal) XXX_DiscardUnknown()
func (*UnpinCodesProposal) XXX_Marshal ¶
func (m *UnpinCodesProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UnpinCodesProposal) XXX_Merge ¶
func (m *UnpinCodesProposal) XXX_Merge(src proto.Message)
func (*UnpinCodesProposal) XXX_Size ¶
func (m *UnpinCodesProposal) XXX_Size() int
func (*UnpinCodesProposal) XXX_Unmarshal ¶
func (m *UnpinCodesProposal) XXX_Unmarshal(b []byte) error
type UpdateAdminProposal ¶
type UpdateAdminProposal struct { // Title is a short summary Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` // Description is a human readable text Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // NewAdmin address to be set NewAdmin string `protobuf:"bytes,3,opt,name=new_admin,json=newAdmin,proto3" json:"new_admin,omitempty" yaml:"new_admin"` // Contract is the address of the smart contract Contract string `protobuf:"bytes,4,opt,name=contract,proto3" json:"contract,omitempty"` }
UpdateAdminProposal gov proposal content type to set an admin for a contract.
func UpdateAdminProposalFixture ¶
func UpdateAdminProposalFixture(mutators ...func(p *UpdateAdminProposal)) *UpdateAdminProposal
func (*UpdateAdminProposal) Descriptor ¶
func (*UpdateAdminProposal) Descriptor() ([]byte, []int)
func (*UpdateAdminProposal) Equal ¶
func (this *UpdateAdminProposal) Equal(that interface{}) bool
func (UpdateAdminProposal) GetDescription ¶
func (p UpdateAdminProposal) GetDescription() string
GetDescription returns the human readable description of the proposal
func (*UpdateAdminProposal) GetTitle ¶
func (p *UpdateAdminProposal) GetTitle() string
GetTitle returns the title of the proposal
func (*UpdateAdminProposal) Marshal ¶
func (m *UpdateAdminProposal) Marshal() (dAtA []byte, err error)
func (*UpdateAdminProposal) MarshalTo ¶
func (m *UpdateAdminProposal) MarshalTo(dAtA []byte) (int, error)
func (*UpdateAdminProposal) MarshalToSizedBuffer ¶
func (m *UpdateAdminProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (UpdateAdminProposal) ProposalRoute ¶
func (p UpdateAdminProposal) ProposalRoute() string
ProposalRoute returns the routing key of a parameter change proposal.
func (UpdateAdminProposal) ProposalType ¶
func (p UpdateAdminProposal) ProposalType() string
ProposalType returns the type
func (*UpdateAdminProposal) ProtoMessage ¶
func (*UpdateAdminProposal) ProtoMessage()
func (*UpdateAdminProposal) Reset ¶
func (m *UpdateAdminProposal) Reset()
func (*UpdateAdminProposal) Size ¶
func (m *UpdateAdminProposal) Size() (n int)
func (UpdateAdminProposal) String ¶
func (p UpdateAdminProposal) String() string
String implements the Stringer interface.
func (*UpdateAdminProposal) Unmarshal ¶
func (m *UpdateAdminProposal) Unmarshal(dAtA []byte) error
func (UpdateAdminProposal) ValidateBasic ¶
func (p UpdateAdminProposal) ValidateBasic() error
ValidateBasic validates the proposal
func (*UpdateAdminProposal) XXX_DiscardUnknown ¶
func (m *UpdateAdminProposal) XXX_DiscardUnknown()
func (*UpdateAdminProposal) XXX_Marshal ¶
func (m *UpdateAdminProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateAdminProposal) XXX_Merge ¶
func (m *UpdateAdminProposal) XXX_Merge(src proto.Message)
func (*UpdateAdminProposal) XXX_Size ¶
func (m *UpdateAdminProposal) XXX_Size() int
func (*UpdateAdminProposal) XXX_Unmarshal ¶
func (m *UpdateAdminProposal) XXX_Unmarshal(b []byte) error
type UpdateDeploymentWhitelistProposal ¶ added in v1.6.4
type UpdateDeploymentWhitelistProposal struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` DistributorAddrs []string `protobuf:"bytes,3,rep,name=distributorAddrs,proto3" json:"distributorAddrs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UpdateDeploymentWhitelistProposal) Descriptor ¶ added in v1.6.4
func (*UpdateDeploymentWhitelistProposal) Descriptor() ([]byte, []int)
func (*UpdateDeploymentWhitelistProposal) GetDescription ¶ added in v1.6.4
func (m *UpdateDeploymentWhitelistProposal) GetDescription() string
func (*UpdateDeploymentWhitelistProposal) GetDistributorAddrs ¶ added in v1.6.4
func (m *UpdateDeploymentWhitelistProposal) GetDistributorAddrs() []string
func (*UpdateDeploymentWhitelistProposal) GetTitle ¶ added in v1.6.4
func (m *UpdateDeploymentWhitelistProposal) GetTitle() string
func (UpdateDeploymentWhitelistProposal) MarshalYAML ¶ added in v1.6.4
func (p UpdateDeploymentWhitelistProposal) MarshalYAML() (interface{}, error)
MarshalYAML pretty prints the wasm byte code
func (UpdateDeploymentWhitelistProposal) ProposalRoute ¶ added in v1.6.4
func (p UpdateDeploymentWhitelistProposal) ProposalRoute() string
ProposalRoute returns the routing key of a parameter change proposal.
func (UpdateDeploymentWhitelistProposal) ProposalType ¶ added in v1.6.4
func (p UpdateDeploymentWhitelistProposal) ProposalType() string
ProposalType returns the type
func (*UpdateDeploymentWhitelistProposal) ProtoMessage ¶ added in v1.6.4
func (*UpdateDeploymentWhitelistProposal) ProtoMessage()
func (*UpdateDeploymentWhitelistProposal) Reset ¶ added in v1.6.4
func (m *UpdateDeploymentWhitelistProposal) Reset()
func (*UpdateDeploymentWhitelistProposal) String ¶ added in v1.6.4
func (m *UpdateDeploymentWhitelistProposal) String() string
func (UpdateDeploymentWhitelistProposal) ValidateBasic ¶ added in v1.6.4
func (p UpdateDeploymentWhitelistProposal) ValidateBasic() error
ValidateBasic validates the proposal
func (*UpdateDeploymentWhitelistProposal) XXX_DiscardUnknown ¶ added in v1.6.4
func (m *UpdateDeploymentWhitelistProposal) XXX_DiscardUnknown()
func (*UpdateDeploymentWhitelistProposal) XXX_Marshal ¶ added in v1.6.4
func (m *UpdateDeploymentWhitelistProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateDeploymentWhitelistProposal) XXX_Merge ¶ added in v1.6.4
func (m *UpdateDeploymentWhitelistProposal) XXX_Merge(src proto.Message)
func (*UpdateDeploymentWhitelistProposal) XXX_Size ¶ added in v1.6.4
func (m *UpdateDeploymentWhitelistProposal) XXX_Size() int
func (*UpdateDeploymentWhitelistProposal) XXX_Unmarshal ¶ added in v1.6.4
func (m *UpdateDeploymentWhitelistProposal) XXX_Unmarshal(b []byte) error
type UpdateInstantiateConfigProposal ¶
type UpdateInstantiateConfigProposal struct { // Title is a short summary Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty" yaml:"title"` // Description is a human readable text Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty" yaml:"description"` // AccessConfigUpdate contains the list of code ids and the access config // to be applied. AccessConfigUpdates []AccessConfigUpdate `protobuf:"bytes,3,rep,name=access_config_updates,json=accessConfigUpdates,proto3" json:"access_config_updates"` }
UpdateInstantiateConfigProposal gov proposal content type to update instantiate config to a set of code ids.
func (*UpdateInstantiateConfigProposal) Descriptor ¶
func (*UpdateInstantiateConfigProposal) Descriptor() ([]byte, []int)
func (*UpdateInstantiateConfigProposal) Equal ¶
func (this *UpdateInstantiateConfigProposal) Equal(that interface{}) bool
func (UpdateInstantiateConfigProposal) GetDescription ¶
func (p UpdateInstantiateConfigProposal) GetDescription() string
GetDescription returns the human readable description of the proposal
func (*UpdateInstantiateConfigProposal) GetTitle ¶
func (p *UpdateInstantiateConfigProposal) GetTitle() string
GetTitle returns the title of the proposal
func (*UpdateInstantiateConfigProposal) Marshal ¶
func (m *UpdateInstantiateConfigProposal) Marshal() (dAtA []byte, err error)
func (*UpdateInstantiateConfigProposal) MarshalTo ¶
func (m *UpdateInstantiateConfigProposal) MarshalTo(dAtA []byte) (int, error)
func (*UpdateInstantiateConfigProposal) MarshalToSizedBuffer ¶
func (m *UpdateInstantiateConfigProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (UpdateInstantiateConfigProposal) ProposalRoute ¶
func (p UpdateInstantiateConfigProposal) ProposalRoute() string
ProposalRoute returns the routing key of a parameter change proposal.
func (UpdateInstantiateConfigProposal) ProposalType ¶
func (p UpdateInstantiateConfigProposal) ProposalType() string
ProposalType returns the type
func (*UpdateInstantiateConfigProposal) ProtoMessage ¶
func (*UpdateInstantiateConfigProposal) ProtoMessage()
func (*UpdateInstantiateConfigProposal) Reset ¶
func (m *UpdateInstantiateConfigProposal) Reset()
func (*UpdateInstantiateConfigProposal) Size ¶
func (m *UpdateInstantiateConfigProposal) Size() (n int)
func (UpdateInstantiateConfigProposal) String ¶
func (p UpdateInstantiateConfigProposal) String() string
String implements the Stringer interface.
func (*UpdateInstantiateConfigProposal) Unmarshal ¶
func (m *UpdateInstantiateConfigProposal) Unmarshal(dAtA []byte) error
func (UpdateInstantiateConfigProposal) ValidateBasic ¶
func (p UpdateInstantiateConfigProposal) ValidateBasic() error
ValidateBasic validates the proposal
func (*UpdateInstantiateConfigProposal) XXX_DiscardUnknown ¶
func (m *UpdateInstantiateConfigProposal) XXX_DiscardUnknown()
func (*UpdateInstantiateConfigProposal) XXX_Marshal ¶
func (m *UpdateInstantiateConfigProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateInstantiateConfigProposal) XXX_Merge ¶
func (m *UpdateInstantiateConfigProposal) XXX_Merge(src proto.Message)
func (*UpdateInstantiateConfigProposal) XXX_Size ¶
func (m *UpdateInstantiateConfigProposal) XXX_Size() int
func (*UpdateInstantiateConfigProposal) XXX_Unmarshal ¶
func (m *UpdateInstantiateConfigProposal) XXX_Unmarshal(b []byte) error
type UpdateWASMContractMethodBlockedListProposal ¶ added in v1.6.4
type UpdateWASMContractMethodBlockedListProposal struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` BlockedMethods *ContractMethods `protobuf:"bytes,3,opt,name=blockedMethods,proto3" json:"blockedMethods,omitempty"` IsDelete bool `protobuf:"varint,4,opt,name=isDelete,proto3" json:"isDelete,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UpdateWASMContractMethodBlockedListProposal) Descriptor ¶ added in v1.6.4
func (*UpdateWASMContractMethodBlockedListProposal) Descriptor() ([]byte, []int)
func (*UpdateWASMContractMethodBlockedListProposal) GetBlockedMethods ¶ added in v1.6.4
func (m *UpdateWASMContractMethodBlockedListProposal) GetBlockedMethods() *ContractMethods
func (*UpdateWASMContractMethodBlockedListProposal) GetDescription ¶ added in v1.6.4
func (m *UpdateWASMContractMethodBlockedListProposal) GetDescription() string
func (*UpdateWASMContractMethodBlockedListProposal) GetIsDelete ¶ added in v1.6.4
func (m *UpdateWASMContractMethodBlockedListProposal) GetIsDelete() bool
func (*UpdateWASMContractMethodBlockedListProposal) GetTitle ¶ added in v1.6.4
func (m *UpdateWASMContractMethodBlockedListProposal) GetTitle() string
func (UpdateWASMContractMethodBlockedListProposal) MarshalYAML ¶ added in v1.6.4
func (p UpdateWASMContractMethodBlockedListProposal) MarshalYAML() (interface{}, error)
MarshalYAML pretty prints the wasm byte code
func (UpdateWASMContractMethodBlockedListProposal) ProposalRoute ¶ added in v1.6.4
func (p UpdateWASMContractMethodBlockedListProposal) ProposalRoute() string
ProposalRoute returns the routing key of a parameter change proposal.
func (UpdateWASMContractMethodBlockedListProposal) ProposalType ¶ added in v1.6.4
func (p UpdateWASMContractMethodBlockedListProposal) ProposalType() string
ProposalType returns the type
func (*UpdateWASMContractMethodBlockedListProposal) ProtoMessage ¶ added in v1.6.4
func (*UpdateWASMContractMethodBlockedListProposal) ProtoMessage()
func (*UpdateWASMContractMethodBlockedListProposal) Reset ¶ added in v1.6.4
func (m *UpdateWASMContractMethodBlockedListProposal) Reset()
func (*UpdateWASMContractMethodBlockedListProposal) String ¶ added in v1.6.4
func (m *UpdateWASMContractMethodBlockedListProposal) String() string
func (UpdateWASMContractMethodBlockedListProposal) ValidateBasic ¶ added in v1.6.4
func (p UpdateWASMContractMethodBlockedListProposal) ValidateBasic() error
ValidateBasic validates the proposal
func (*UpdateWASMContractMethodBlockedListProposal) XXX_DiscardUnknown ¶ added in v1.6.4
func (m *UpdateWASMContractMethodBlockedListProposal) XXX_DiscardUnknown()
func (*UpdateWASMContractMethodBlockedListProposal) XXX_Marshal ¶ added in v1.6.4
func (m *UpdateWASMContractMethodBlockedListProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateWASMContractMethodBlockedListProposal) XXX_Merge ¶ added in v1.6.4
func (m *UpdateWASMContractMethodBlockedListProposal) XXX_Merge(src proto.Message)
func (*UpdateWASMContractMethodBlockedListProposal) XXX_Size ¶ added in v1.6.4
func (m *UpdateWASMContractMethodBlockedListProposal) XXX_Size() int
func (*UpdateWASMContractMethodBlockedListProposal) XXX_Unmarshal ¶ added in v1.6.4
func (m *UpdateWASMContractMethodBlockedListProposal) XXX_Unmarshal(b []byte) error
type ViewKeeper ¶
type ViewKeeper interface { GetContractHistory(ctx sdk.Context, contractAddr sdk.WasmAddress) []ContractCodeHistoryEntry QuerySmart(ctx sdk.Context, contractAddr sdk.WasmAddress, req []byte) ([]byte, error) QueryRaw(ctx sdk.Context, contractAddress sdk.WasmAddress, key []byte) []byte HasContractInfo(ctx sdk.Context, contractAddress sdk.WasmAddress) bool GetContractInfo(ctx sdk.Context, contractAddress sdk.WasmAddress) *ContractInfo IterateContractInfo(ctx sdk.Context, cb func(sdk.WasmAddress, ContractInfo) bool) IterateContractsByCode(ctx sdk.Context, codeID uint64, cb func(address sdk.WasmAddress) bool) IterateContractState(ctx sdk.Context, contractAddress sdk.WasmAddress, cb func(key, value []byte) bool) GetCodeInfo(ctx sdk.Context, codeID uint64) *CodeInfo IterateCodeInfos(ctx sdk.Context, cb func(uint64, CodeInfo) bool) GetByteCode(ctx sdk.Context, codeID uint64) ([]byte, error) IsPinnedCode(ctx sdk.Context, codeID uint64) bool GetContractMethodBlockedList(ctx sdk.Context, contractAddr string) *ContractMethods GetParams(ctx sdk.Context) Params GetGasFactor(ctx sdk.Context) uint64 }
ViewKeeper provides read only operations
type WasmConfig ¶
type WasmConfig struct { // SimulationGasLimit is the max gas to be used in a tx simulation call. // When not set the consensus max block gas is used instead SimulationGasLimit *uint64 // SimulationGasLimit is the max gas to be used in a smart query contract call SmartQueryGasLimit uint64 // MemoryCacheSize in MiB not bytes MemoryCacheSize uint32 // ContractDebugMode log what contract print ContractDebugMode bool }
WasmConfig is the extra config required for wasm
func DefaultWasmConfig ¶
func DefaultWasmConfig() WasmConfig
DefaultWasmConfig returns the default settings for WasmConfig
type WasmerEngine ¶
type WasmerEngine interface { // Create will compile the wasm code, and store the resulting pre-compile // as well as the original code. Both can be referenced later via CodeID // This must be done one time for given code, after which it can be // instatitated many times, and each instance called many times. // // For example, the code for all ERC-20 contracts should be the same. // This function stores the code for that contract only once, but it can // be instantiated with custom inputs in the future. Create(code wasmvm.WasmCode) (wasmvm.Checksum, error) // AnalyzeCode will statically analyze the code. // Currently just reports if it exposes all IBC entry points. AnalyzeCode(checksum wasmvm.Checksum) (*wasmvmtypes.AnalysisReport, error) // Instantiate will create a new contract based on the given codeID. // We can set the initMsg (contract "genesis") here, and it then receives // an account and address and can be invoked (Execute) many times. // // Storage should be set with a PrefixedKVStore that this code can safely access. // // Under the hood, we may recompile the wasm, use a cached native compile, or even use a cached instance // for performance. Instantiate( checksum wasmvm.Checksum, env wasmvmtypes.Env, info wasmvmtypes.MessageInfo, initMsg []byte, store wasmvm.KVStore, goapi wasmvm.GoAPI, querier wasmvm.Querier, gasMeter wasmvm.GasMeter, gasLimit uint64, deserCost wasmvmtypes.UFraction, ) (*wasmvmtypes.Response, uint64, error) // Execute calls a given contract. Since the only difference between contracts with the same CodeID is the // data in their local storage, and their address in the outside world, we need no ContractID here. // (That is a detail for the external, sdk-facing, side). // // The caller is responsible for passing the correct `store` (which must have been initialized exactly once), // and setting the env with relevant info on this instance (address, balance, etc) Execute( code wasmvm.Checksum, env wasmvmtypes.Env, info wasmvmtypes.MessageInfo, executeMsg []byte, store wasmvm.KVStore, goapi wasmvm.GoAPI, querier wasmvm.Querier, gasMeter wasmvm.GasMeter, gasLimit uint64, deserCost wasmvmtypes.UFraction, ) (*wasmvmtypes.Response, uint64, error) // Query allows a client to execute a contract-specific query. If the result is not empty, it should be // valid json-encoded data to return to the client. // The meaning of path and data can be determined by the code. Path is the suffix of the abci.QueryRequest.Path Query( code wasmvm.Checksum, env wasmvmtypes.Env, queryMsg []byte, store wasmvm.KVStore, goapi wasmvm.GoAPI, querier wasmvm.Querier, gasMeter wasmvm.GasMeter, gasLimit uint64, deserCost wasmvmtypes.UFraction, ) ([]byte, uint64, error) // Migrate will migrate an existing contract to a new code binary. // This takes storage of the data from the original contract and the CodeID of the new contract that should // replace it. This allows it to run a migration step if needed, or return an error if unable to migrate // the given data. // // MigrateMsg has some data on how to perform the migration. Migrate( checksum wasmvm.Checksum, env wasmvmtypes.Env, migrateMsg []byte, store wasmvm.KVStore, goapi wasmvm.GoAPI, querier wasmvm.Querier, gasMeter wasmvm.GasMeter, gasLimit uint64, deserCost wasmvmtypes.UFraction, ) (*wasmvmtypes.Response, uint64, error) // Sudo runs an existing contract in read/write mode (like Execute), but is never exposed to external callers // (either transactions or government proposals), but can only be called by other native Go modules directly. // // This allows a contract to expose custom "super user" functions or priviledged operations that can be // deeply integrated with native modules. Sudo( checksum wasmvm.Checksum, env wasmvmtypes.Env, sudoMsg []byte, store wasmvm.KVStore, goapi wasmvm.GoAPI, querier wasmvm.Querier, gasMeter wasmvm.GasMeter, gasLimit uint64, deserCost wasmvmtypes.UFraction, ) (*wasmvmtypes.Response, uint64, error) // Reply is called on the original dispatching contract after running a submessage Reply( checksum wasmvm.Checksum, env wasmvmtypes.Env, reply wasmvmtypes.Reply, store wasmvm.KVStore, goapi wasmvm.GoAPI, querier wasmvm.Querier, gasMeter wasmvm.GasMeter, gasLimit uint64, deserCost wasmvmtypes.UFraction, ) (*wasmvmtypes.Response, uint64, error) // GetCode will load the original wasm code for the given code id. // This will only succeed if that code id was previously returned from // a call to Create. // // This can be used so that the (short) code id (hash) is stored in the iavl tree // and the larger binary blobs (wasm and pre-compiles) are all managed by the // rust library GetCode(code wasmvm.Checksum) (wasmvm.WasmCode, error) // Cleanup should be called when no longer using this to free resources on the rust-side Cleanup() // IBCChannelOpen is available on IBC-enabled contracts and is a hook to call into // during the handshake pahse IBCChannelOpen( checksum wasmvm.Checksum, env wasmvmtypes.Env, channel wasmvmtypes.IBCChannelOpenMsg, store wasmvm.KVStore, goapi wasmvm.GoAPI, querier wasmvm.Querier, gasMeter wasmvm.GasMeter, gasLimit uint64, deserCost wasmvmtypes.UFraction, ) (*wasmvmtypes.IBC3ChannelOpenResponse, uint64, error) // IBCChannelConnect is available on IBC-enabled contracts and is a hook to call into // during the handshake pahse IBCChannelConnect( checksum wasmvm.Checksum, env wasmvmtypes.Env, channel wasmvmtypes.IBCChannelConnectMsg, store wasmvm.KVStore, goapi wasmvm.GoAPI, querier wasmvm.Querier, gasMeter wasmvm.GasMeter, gasLimit uint64, deserCost wasmvmtypes.UFraction, ) (*wasmvmtypes.IBCBasicResponse, uint64, error) // IBCChannelClose is available on IBC-enabled contracts and is a hook to call into // at the end of the channel lifetime IBCChannelClose( checksum wasmvm.Checksum, env wasmvmtypes.Env, channel wasmvmtypes.IBCChannelCloseMsg, store wasmvm.KVStore, goapi wasmvm.GoAPI, querier wasmvm.Querier, gasMeter wasmvm.GasMeter, gasLimit uint64, deserCost wasmvmtypes.UFraction, ) (*wasmvmtypes.IBCBasicResponse, uint64, error) // IBCPacketReceive is available on IBC-enabled contracts and is called when an incoming // packet is received on a channel belonging to this contract IBCPacketReceive( checksum wasmvm.Checksum, env wasmvmtypes.Env, packet wasmvmtypes.IBCPacketReceiveMsg, store wasmvm.KVStore, goapi wasmvm.GoAPI, querier wasmvm.Querier, gasMeter wasmvm.GasMeter, gasLimit uint64, deserCost wasmvmtypes.UFraction, ) (*wasmvmtypes.IBCReceiveResult, uint64, error) // IBCPacketAck is available on IBC-enabled contracts and is called when an // the response for an outgoing packet (previously sent by this contract) // is received IBCPacketAck( checksum wasmvm.Checksum, env wasmvmtypes.Env, ack wasmvmtypes.IBCPacketAckMsg, store wasmvm.KVStore, goapi wasmvm.GoAPI, querier wasmvm.Querier, gasMeter wasmvm.GasMeter, gasLimit uint64, deserCost wasmvmtypes.UFraction, ) (*wasmvmtypes.IBCBasicResponse, uint64, error) // IBCPacketTimeout is available on IBC-enabled contracts and is called when an // outgoing packet (previously sent by this contract) will provably never be executed. // Usually handled like ack returning an error IBCPacketTimeout( checksum wasmvm.Checksum, env wasmvmtypes.Env, packet wasmvmtypes.IBCPacketTimeoutMsg, store wasmvm.KVStore, goapi wasmvm.GoAPI, querier wasmvm.Querier, gasMeter wasmvm.GasMeter, gasLimit uint64, deserCost wasmvmtypes.UFraction, ) (*wasmvmtypes.IBCBasicResponse, uint64, error) // Pin pins a code to an in-memory cache, such that is // always loaded quickly when executed. // Pin is idempotent. Pin(checksum wasmvm.Checksum) error // Unpin removes the guarantee of a contract to be pinned (see Pin). // After calling this, the code may or may not remain in memory depending on // the implementor's choice. // Unpin is idempotent. Unpin(checksum wasmvm.Checksum) error // GetMetrics some internal metrics for monitoring purposes. GetMetrics() (*wasmvmtypes.Metrics, error) }
WasmerEngine defines the WASM contract runtime engine.
Source Files ¶
- address_adapter.go
- ante.go
- codec.go
- errors.go
- events.go
- expected_keepers.go
- exported_keepers.go
- feature_flag.go
- genesis.go
- genesis.pb.go
- ibc.pb.go
- innertx.go
- json_matching.go
- keys.go
- params.go
- proposal.go
- proposal.pb.go
- proposal_custom.go
- proposal_custom.pb.go
- querier.go
- query.pb.go
- query.pb.gw.go
- store_adapter.go
- test_fixtures.go
- tx.go
- tx.pb.go
- types.go
- types.pb.go
- validation.go
- wasmer_engine.go