Documentation ¶
Overview ¶
NOTE: Usage of x/params to manage parameters is deprecated in favor of x/gov controlled execution of MsgUpdateParams messages. These types remains solely for migration purposes and will be removed in a future release.
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func AcceptGrantedMessage[T AuthzableWasmMsg](ctx sdk.Context, grants []ContractGrant, msg sdk.Msg, ...) (authztypes.AcceptResponse, error)
- func ConfigTemplate(c WasmConfig) string
- func DefaultConfigTemplate() string
- func DefaultPerByteUncompressCost() wasmvmtypes.UFraction
- func EmitAcknowledgementEvent(ctx sdk.Context, contractAddr sdk.AccAddress, ack exported.Acknowledgement, ...)
- func GetCodeKey(codeID uint64) []byte
- func GetContractAddressKey(addr sdk.AccAddress) []byte
- func GetContractByCodeIDSecondaryIndexPrefix(codeID uint64) []byte
- func GetContractByCreatedSecondaryIndexKey(contractAddr sdk.AccAddress, c ContractCodeHistoryEntry) []byte
- func GetContractByCreatorSecondaryIndexKey(bz, position []byte, contractAddr sdk.AccAddress) []byte
- func GetContractCodeHistoryElementKey(contractAddr sdk.AccAddress, pos uint64) []byte
- func GetContractCodeHistoryElementPrefix(contractAddr sdk.AccAddress) []byte
- func GetContractStorePrefix(addr sdk.AccAddress) []byte
- func GetContractsByCreatorPrefix(addr sdk.AccAddress) []byte
- func GetPinnedCodeIndexPrefix(codeID uint64) []byte
- func NewEnv(ctx sdk.Context, contractAddr sdk.AccAddress) wasmvmtypes.Env
- func NewInfo(creator sdk.AccAddress, deposit sdk.Coins) wasmvmtypes.MessageInfo
- func NewWasmCoins(cosmosCoins sdk.Coins) (wasmCoins []wasmvmtypes.Coin)
- func OnlyGenesisFields(info *ContractInfo)
- func ParamKeyTable() paramtypes.KeyTabledeprecated
- func ParsePinnedCodeIndex(s []byte) uint64
- func QueryStackSize(ctx context.Context) (uint32, bool)
- func RandCreatedFields(info *ContractInfo)
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func TXCounter(ctx context.Context) (uint32, bool)
- func ValidateGenesis(data GenesisState) error
- func ValidateLabel(label string) error
- func ValidateSalt(salt []byte) error
- func ValidateVerificationInfo(source, builder string, codeHash []byte) error
- func VerifyAddressLen() func(addr []byte) error
- func WasmVMFlavouredErrorFactory[T any](sdkErr *errorsmod.Error, wasmVMErrBuilder func(T) error) func(T) WasmVMFlavouredError
- func WithGasRegister(ctx sdk.Context, gr GasRegister) sdk.Context
- func WithQueryStackSize(ctx sdk.Context, counter uint32) sdk.Context
- func WithSHA256CodeHash(wasmCode []byte) func(info *CodeInfo)
- func WithSubMsgAuthzPolicy(ctx sdk.Context, policy AuthorizationPolicy) sdk.Context
- 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 AcceptedMessageKeysFilter
- func (f *AcceptedMessageKeysFilter) Accept(ctx sdk.Context, msg RawContractMessage) (bool, error)
- func (*AcceptedMessageKeysFilter) Descriptor() ([]byte, []int)
- func (m *AcceptedMessageKeysFilter) Marshal() (dAtA []byte, err error)
- func (m *AcceptedMessageKeysFilter) MarshalTo(dAtA []byte) (int, error)
- func (m *AcceptedMessageKeysFilter) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AcceptedMessageKeysFilter) ProtoMessage()
- func (m *AcceptedMessageKeysFilter) Reset()
- func (m *AcceptedMessageKeysFilter) Size() (n int)
- func (m *AcceptedMessageKeysFilter) String() string
- func (m *AcceptedMessageKeysFilter) Unmarshal(dAtA []byte) error
- func (f AcceptedMessageKeysFilter) ValidateBasic() error
- func (m *AcceptedMessageKeysFilter) XXX_DiscardUnknown()
- func (m *AcceptedMessageKeysFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AcceptedMessageKeysFilter) XXX_Merge(src proto.Message)
- func (m *AcceptedMessageKeysFilter) XXX_Size() int
- func (m *AcceptedMessageKeysFilter) XXX_Unmarshal(b []byte) error
- type AcceptedMessagesFilter
- func (f *AcceptedMessagesFilter) Accept(_ sdk.Context, msg RawContractMessage) (bool, error)
- func (*AcceptedMessagesFilter) Descriptor() ([]byte, []int)
- func (m *AcceptedMessagesFilter) Marshal() (dAtA []byte, err error)
- func (m *AcceptedMessagesFilter) MarshalTo(dAtA []byte) (int, error)
- func (m *AcceptedMessagesFilter) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AcceptedMessagesFilter) ProtoMessage()
- func (m *AcceptedMessagesFilter) Reset()
- func (m *AcceptedMessagesFilter) Size() (n int)
- func (m *AcceptedMessagesFilter) String() string
- func (m *AcceptedMessagesFilter) Unmarshal(dAtA []byte) error
- func (f AcceptedMessagesFilter) ValidateBasic() error
- func (m *AcceptedMessagesFilter) XXX_DiscardUnknown()
- func (m *AcceptedMessagesFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AcceptedMessagesFilter) XXX_Merge(src proto.Message)
- func (m *AcceptedMessagesFilter) XXX_Size() int
- func (m *AcceptedMessagesFilter) XXX_Unmarshal(b []byte) error
- type AccessConfig
- func (a AccessConfig) AllAuthorizedAddresses() []string
- func (a AccessConfig) Allowed(actor sdk.AccAddress) 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 (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 (m *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) IsSubset(superSet AccessType) bool
- 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(addrs ...sdk.AccAddress) 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 AllowAllMessagesFilter
- func (f *AllowAllMessagesFilter) Accept(_ sdk.Context, msg RawContractMessage) (bool, error)
- func (*AllowAllMessagesFilter) Descriptor() ([]byte, []int)
- func (m *AllowAllMessagesFilter) Marshal() (dAtA []byte, err error)
- func (m *AllowAllMessagesFilter) MarshalTo(dAtA []byte) (int, error)
- func (m *AllowAllMessagesFilter) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AllowAllMessagesFilter) ProtoMessage()
- func (m *AllowAllMessagesFilter) Reset()
- func (m *AllowAllMessagesFilter) Size() (n int)
- func (m *AllowAllMessagesFilter) String() string
- func (m *AllowAllMessagesFilter) Unmarshal(dAtA []byte) error
- func (f AllowAllMessagesFilter) ValidateBasic() error
- func (m *AllowAllMessagesFilter) XXX_DiscardUnknown()
- func (m *AllowAllMessagesFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AllowAllMessagesFilter) XXX_Merge(src proto.Message)
- func (m *AllowAllMessagesFilter) XXX_Size() int
- func (m *AllowAllMessagesFilter) XXX_Unmarshal(b []byte) error
- type AuthorizationPolicy
- type AuthorizationPolicyAction
- type AuthzableWasmMsg
- type BankKeeper
- type BankViewKeeper
- type Burner
- type CapabilityKeeper
- type ChainAccessConfigs
- type ChannelKeeper
- 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 CodeGrant
- func (g CodeGrant) Accept(checksum []byte, permission *AccessConfig) bool
- func (*CodeGrant) Descriptor() ([]byte, []int)
- func (m *CodeGrant) Marshal() (dAtA []byte, err error)
- func (m *CodeGrant) MarshalTo(dAtA []byte) (int, error)
- func (m *CodeGrant) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CodeGrant) ProtoMessage()
- func (m *CodeGrant) Reset()
- func (m *CodeGrant) Size() (n int)
- func (m *CodeGrant) String() string
- func (m *CodeGrant) Unmarshal(dAtA []byte) error
- func (g CodeGrant) ValidateBasic() error
- func (m *CodeGrant) XXX_DiscardUnknown()
- func (m *CodeGrant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CodeGrant) XXX_Merge(src proto.Message)
- func (m *CodeGrant) XXX_Size() int
- func (m *CodeGrant) 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 CombinedLimit
- func (l CombinedLimit) Accept(_ sdk.Context, msg AuthzableWasmMsg) (*ContractAuthzLimitAcceptResult, error)
- func (*CombinedLimit) Descriptor() ([]byte, []int)
- func (m *CombinedLimit) Marshal() (dAtA []byte, err error)
- func (m *CombinedLimit) MarshalTo(dAtA []byte) (int, error)
- func (m *CombinedLimit) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CombinedLimit) ProtoMessage()
- func (m *CombinedLimit) Reset()
- func (m *CombinedLimit) Size() (n int)
- func (m *CombinedLimit) String() string
- func (m *CombinedLimit) Unmarshal(dAtA []byte) error
- func (l CombinedLimit) ValidateBasic() error
- func (m *CombinedLimit) XXX_DiscardUnknown()
- func (m *CombinedLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CombinedLimit) XXX_Merge(src proto.Message)
- func (m *CombinedLimit) XXX_Size() int
- func (m *CombinedLimit) XXX_Unmarshal(b []byte) error
- type ConnectionKeeper
- type Contract
- func (*Contract) Descriptor() ([]byte, []int)
- func (m *Contract) GetContractAddress() string
- func (m *Contract) GetContractCodeHistory() []ContractCodeHistoryEntry
- 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 ContractAuthzFactory
- type ContractAuthzFilterX
- type ContractAuthzLimitAcceptResult
- type ContractAuthzLimitX
- 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 (c ContractCodeHistoryEntry) ValidateBasic() 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 ContractExecutionAuthorization
- func (a *ContractExecutionAuthorization) Accept(goCtx context.Context, msg sdk.Msg) (authztypes.AcceptResponse, error)
- func (*ContractExecutionAuthorization) Descriptor() ([]byte, []int)
- func (m *ContractExecutionAuthorization) Marshal() (dAtA []byte, err error)
- func (m *ContractExecutionAuthorization) MarshalTo(dAtA []byte) (int, error)
- func (m *ContractExecutionAuthorization) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (a ContractExecutionAuthorization) MsgTypeURL() string
- func (a ContractExecutionAuthorization) NewAuthz(g []ContractGrant) authztypes.Authorization
- func (*ContractExecutionAuthorization) ProtoMessage()
- func (m *ContractExecutionAuthorization) Reset()
- func (m *ContractExecutionAuthorization) Size() (n int)
- func (m *ContractExecutionAuthorization) String() string
- func (m *ContractExecutionAuthorization) Unmarshal(dAtA []byte) error
- func (a ContractExecutionAuthorization) UnpackInterfaces(unpacker cdctypes.AnyUnpacker) error
- func (a ContractExecutionAuthorization) ValidateBasic() error
- func (m *ContractExecutionAuthorization) XXX_DiscardUnknown()
- func (m *ContractExecutionAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ContractExecutionAuthorization) XXX_Merge(src proto.Message)
- func (m *ContractExecutionAuthorization) XXX_Size() int
- func (m *ContractExecutionAuthorization) XXX_Unmarshal(b []byte) error
- type ContractGrant
- func (*ContractGrant) Descriptor() ([]byte, []int)
- func (g ContractGrant) GetFilter() ContractAuthzFilterX
- func (g ContractGrant) GetLimit() ContractAuthzLimitX
- func (m *ContractGrant) Marshal() (dAtA []byte, err error)
- func (m *ContractGrant) MarshalTo(dAtA []byte) (int, error)
- func (m *ContractGrant) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ContractGrant) ProtoMessage()
- func (m *ContractGrant) Reset()
- func (m *ContractGrant) Size() (n int)
- func (m *ContractGrant) String() string
- func (m *ContractGrant) Unmarshal(dAtA []byte) error
- func (g ContractGrant) UnpackInterfaces(unpacker cdctypes.AnyUnpacker) error
- func (g ContractGrant) ValidateBasic() error
- func (g ContractGrant) WithNewLimits(limit ContractAuthzLimitX) (*ContractGrant, error)
- func (m *ContractGrant) XXX_DiscardUnknown()
- func (m *ContractGrant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ContractGrant) XXX_Merge(src proto.Message)
- func (m *ContractGrant) XXX_Size() int
- func (m *ContractGrant) XXX_Unmarshal(b []byte) error
- type ContractInfo
- func (c *ContractInfo) AddMigration(ctx sdk.Context, codeID uint64, msg []byte) ContractCodeHistoryEntry
- func (c *ContractInfo) AdminAddr() sdk.AccAddress
- 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) 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 ContractMigrationAuthorization
- func (a *ContractMigrationAuthorization) Accept(goCtx context.Context, msg sdk.Msg) (authztypes.AcceptResponse, error)
- func (*ContractMigrationAuthorization) Descriptor() ([]byte, []int)
- func (m *ContractMigrationAuthorization) Marshal() (dAtA []byte, err error)
- func (m *ContractMigrationAuthorization) MarshalTo(dAtA []byte) (int, error)
- func (m *ContractMigrationAuthorization) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (a ContractMigrationAuthorization) MsgTypeURL() string
- func (a ContractMigrationAuthorization) NewAuthz(g []ContractGrant) authztypes.Authorization
- func (*ContractMigrationAuthorization) ProtoMessage()
- func (m *ContractMigrationAuthorization) Reset()
- func (m *ContractMigrationAuthorization) Size() (n int)
- func (m *ContractMigrationAuthorization) String() string
- func (m *ContractMigrationAuthorization) Unmarshal(dAtA []byte) error
- func (a ContractMigrationAuthorization) UnpackInterfaces(unpacker cdctypes.AnyUnpacker) error
- func (a ContractMigrationAuthorization) ValidateBasic() error
- func (m *ContractMigrationAuthorization) XXX_DiscardUnknown()
- func (m *ContractMigrationAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ContractMigrationAuthorization) XXX_Merge(src proto.Message)
- func (m *ContractMigrationAuthorization) XXX_Size() int
- func (m *ContractMigrationAuthorization) XXX_Unmarshal(b []byte) error
- type ContractOpsKeeper
- type DistributionKeeper
- type GasRegister
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetCodes() []Code
- func (m *GenesisState) GetContracts() []Contract
- 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 IBCContractKeeper
- type ICS20TransferPortSource
- type ICS4Wrapper
- type MaxCallsLimit
- func (m MaxCallsLimit) Accept(_ sdk.Context, msg AuthzableWasmMsg) (*ContractAuthzLimitAcceptResult, error)
- func (*MaxCallsLimit) Descriptor() ([]byte, []int)
- func (m *MaxCallsLimit) Marshal() (dAtA []byte, err error)
- func (m *MaxCallsLimit) MarshalTo(dAtA []byte) (int, error)
- func (m *MaxCallsLimit) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MaxCallsLimit) ProtoMessage()
- func (m *MaxCallsLimit) Reset()
- func (m *MaxCallsLimit) Size() (n int)
- func (m *MaxCallsLimit) String() string
- func (m *MaxCallsLimit) Unmarshal(dAtA []byte) error
- func (m MaxCallsLimit) ValidateBasic() error
- func (m *MaxCallsLimit) XXX_DiscardUnknown()
- func (m *MaxCallsLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MaxCallsLimit) XXX_Merge(src proto.Message)
- func (m *MaxCallsLimit) XXX_Size() int
- func (m *MaxCallsLimit) XXX_Unmarshal(b []byte) error
- type MaxFundsLimit
- func (m MaxFundsLimit) Accept(_ sdk.Context, msg AuthzableWasmMsg) (*ContractAuthzLimitAcceptResult, error)
- func (*MaxFundsLimit) Descriptor() ([]byte, []int)
- func (m *MaxFundsLimit) Marshal() (dAtA []byte, err error)
- func (m *MaxFundsLimit) MarshalTo(dAtA []byte) (int, error)
- func (m *MaxFundsLimit) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MaxFundsLimit) ProtoMessage()
- func (m *MaxFundsLimit) Reset()
- func (m *MaxFundsLimit) Size() (n int)
- func (m *MaxFundsLimit) String() string
- func (m *MaxFundsLimit) Unmarshal(dAtA []byte) error
- func (m MaxFundsLimit) ValidateBasic() error
- func (m *MaxFundsLimit) XXX_DiscardUnknown()
- func (m *MaxFundsLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MaxFundsLimit) XXX_Merge(src proto.Message)
- func (m *MaxFundsLimit) XXX_Size() int
- func (m *MaxFundsLimit) 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 MsgAddCodeUploadParamsAddresses
- func (*MsgAddCodeUploadParamsAddresses) Descriptor() ([]byte, []int)
- func (msg MsgAddCodeUploadParamsAddresses) GetSigners() []sdk.AccAddress
- func (m *MsgAddCodeUploadParamsAddresses) Marshal() (dAtA []byte, err error)
- func (m *MsgAddCodeUploadParamsAddresses) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddCodeUploadParamsAddresses) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddCodeUploadParamsAddresses) ProtoMessage()
- func (m *MsgAddCodeUploadParamsAddresses) Reset()
- func (msg MsgAddCodeUploadParamsAddresses) Route() string
- func (m *MsgAddCodeUploadParamsAddresses) Size() (n int)
- func (m *MsgAddCodeUploadParamsAddresses) String() string
- func (msg MsgAddCodeUploadParamsAddresses) Type() string
- func (m *MsgAddCodeUploadParamsAddresses) Unmarshal(dAtA []byte) error
- func (msg MsgAddCodeUploadParamsAddresses) ValidateBasic() error
- func (m *MsgAddCodeUploadParamsAddresses) XXX_DiscardUnknown()
- func (m *MsgAddCodeUploadParamsAddresses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddCodeUploadParamsAddresses) XXX_Merge(src proto.Message)
- func (m *MsgAddCodeUploadParamsAddresses) XXX_Size() int
- func (m *MsgAddCodeUploadParamsAddresses) XXX_Unmarshal(b []byte) error
- type MsgAddCodeUploadParamsAddressesResponse
- func (*MsgAddCodeUploadParamsAddressesResponse) Descriptor() ([]byte, []int)
- func (m *MsgAddCodeUploadParamsAddressesResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgAddCodeUploadParamsAddressesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddCodeUploadParamsAddressesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddCodeUploadParamsAddressesResponse) ProtoMessage()
- func (m *MsgAddCodeUploadParamsAddressesResponse) Reset()
- func (m *MsgAddCodeUploadParamsAddressesResponse) Size() (n int)
- func (m *MsgAddCodeUploadParamsAddressesResponse) String() string
- func (m *MsgAddCodeUploadParamsAddressesResponse) Unmarshal(dAtA []byte) error
- func (m *MsgAddCodeUploadParamsAddressesResponse) XXX_DiscardUnknown()
- func (m *MsgAddCodeUploadParamsAddressesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddCodeUploadParamsAddressesResponse) XXX_Merge(src proto.Message)
- func (m *MsgAddCodeUploadParamsAddressesResponse) XXX_Size() int
- func (m *MsgAddCodeUploadParamsAddressesResponse) XXX_Unmarshal(b []byte) error
- type MsgClearAdmin
- func (*MsgClearAdmin) Descriptor() ([]byte, []int)
- 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) GetContract() string
- func (msg MsgExecuteContract) GetFunds() sdk.Coins
- func (msg MsgExecuteContract) GetMsg() RawContractMessage
- 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) 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) 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 MsgIBCSendResponse
- func (*MsgIBCSendResponse) Descriptor() ([]byte, []int)
- func (m *MsgIBCSendResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgIBCSendResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgIBCSendResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgIBCSendResponse) ProtoMessage()
- func (m *MsgIBCSendResponse) Reset()
- func (m *MsgIBCSendResponse) Size() (n int)
- func (m *MsgIBCSendResponse) String() string
- func (m *MsgIBCSendResponse) Unmarshal(dAtA []byte) error
- func (m *MsgIBCSendResponse) XXX_DiscardUnknown()
- func (m *MsgIBCSendResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgIBCSendResponse) XXX_Merge(src proto.Message)
- func (m *MsgIBCSendResponse) XXX_Size() int
- func (m *MsgIBCSendResponse) XXX_Unmarshal(b []byte) error
- type MsgInstantiateContract
- func (*MsgInstantiateContract) Descriptor() ([]byte, []int)
- 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 MsgInstantiateContract2
- func (*MsgInstantiateContract2) Descriptor() ([]byte, []int)
- func (msg MsgInstantiateContract2) GetSigners() []sdk.AccAddress
- func (m *MsgInstantiateContract2) Marshal() (dAtA []byte, err error)
- func (m *MsgInstantiateContract2) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgInstantiateContract2) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgInstantiateContract2) ProtoMessage()
- func (m *MsgInstantiateContract2) Reset()
- func (msg MsgInstantiateContract2) Route() string
- func (m *MsgInstantiateContract2) Size() (n int)
- func (m *MsgInstantiateContract2) String() string
- func (msg MsgInstantiateContract2) Type() string
- func (m *MsgInstantiateContract2) Unmarshal(dAtA []byte) error
- func (msg MsgInstantiateContract2) ValidateBasic() error
- func (m *MsgInstantiateContract2) XXX_DiscardUnknown()
- func (m *MsgInstantiateContract2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgInstantiateContract2) XXX_Merge(src proto.Message)
- func (m *MsgInstantiateContract2) XXX_Size() int
- func (m *MsgInstantiateContract2) XXX_Unmarshal(b []byte) error
- type MsgInstantiateContract2Response
- func (*MsgInstantiateContract2Response) Descriptor() ([]byte, []int)
- func (m *MsgInstantiateContract2Response) Marshal() (dAtA []byte, err error)
- func (m *MsgInstantiateContract2Response) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgInstantiateContract2Response) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgInstantiateContract2Response) ProtoMessage()
- func (m *MsgInstantiateContract2Response) Reset()
- func (m *MsgInstantiateContract2Response) Size() (n int)
- func (m *MsgInstantiateContract2Response) String() string
- func (m *MsgInstantiateContract2Response) Unmarshal(dAtA []byte) error
- func (m *MsgInstantiateContract2Response) XXX_DiscardUnknown()
- func (m *MsgInstantiateContract2Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgInstantiateContract2Response) XXX_Merge(src proto.Message)
- func (m *MsgInstantiateContract2Response) XXX_Size() int
- func (m *MsgInstantiateContract2Response) 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) GetContract() string
- func (msg MsgMigrateContract) GetFunds() sdk.Coins
- func (msg MsgMigrateContract) GetMsg() RawContractMessage
- 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 MsgPinCodes
- func (*MsgPinCodes) Descriptor() ([]byte, []int)
- func (msg MsgPinCodes) GetSigners() []sdk.AccAddress
- func (m *MsgPinCodes) Marshal() (dAtA []byte, err error)
- func (m *MsgPinCodes) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgPinCodes) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgPinCodes) ProtoMessage()
- func (m *MsgPinCodes) Reset()
- func (msg MsgPinCodes) Route() string
- func (m *MsgPinCodes) Size() (n int)
- func (m *MsgPinCodes) String() string
- func (msg MsgPinCodes) Type() string
- func (m *MsgPinCodes) Unmarshal(dAtA []byte) error
- func (msg MsgPinCodes) ValidateBasic() error
- func (m *MsgPinCodes) XXX_DiscardUnknown()
- func (m *MsgPinCodes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgPinCodes) XXX_Merge(src proto.Message)
- func (m *MsgPinCodes) XXX_Size() int
- func (m *MsgPinCodes) XXX_Unmarshal(b []byte) error
- type MsgPinCodesResponse
- func (*MsgPinCodesResponse) Descriptor() ([]byte, []int)
- func (m *MsgPinCodesResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgPinCodesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgPinCodesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgPinCodesResponse) ProtoMessage()
- func (m *MsgPinCodesResponse) Reset()
- func (m *MsgPinCodesResponse) Size() (n int)
- func (m *MsgPinCodesResponse) String() string
- func (m *MsgPinCodesResponse) Unmarshal(dAtA []byte) error
- func (m *MsgPinCodesResponse) XXX_DiscardUnknown()
- func (m *MsgPinCodesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgPinCodesResponse) XXX_Merge(src proto.Message)
- func (m *MsgPinCodesResponse) XXX_Size() int
- func (m *MsgPinCodesResponse) XXX_Unmarshal(b []byte) error
- type MsgRemoveCodeUploadParamsAddresses
- func (*MsgRemoveCodeUploadParamsAddresses) Descriptor() ([]byte, []int)
- func (msg MsgRemoveCodeUploadParamsAddresses) GetSigners() []sdk.AccAddress
- func (m *MsgRemoveCodeUploadParamsAddresses) Marshal() (dAtA []byte, err error)
- func (m *MsgRemoveCodeUploadParamsAddresses) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRemoveCodeUploadParamsAddresses) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRemoveCodeUploadParamsAddresses) ProtoMessage()
- func (m *MsgRemoveCodeUploadParamsAddresses) Reset()
- func (msg MsgRemoveCodeUploadParamsAddresses) Route() string
- func (m *MsgRemoveCodeUploadParamsAddresses) Size() (n int)
- func (m *MsgRemoveCodeUploadParamsAddresses) String() string
- func (msg MsgRemoveCodeUploadParamsAddresses) Type() string
- func (m *MsgRemoveCodeUploadParamsAddresses) Unmarshal(dAtA []byte) error
- func (msg MsgRemoveCodeUploadParamsAddresses) ValidateBasic() error
- func (m *MsgRemoveCodeUploadParamsAddresses) XXX_DiscardUnknown()
- func (m *MsgRemoveCodeUploadParamsAddresses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRemoveCodeUploadParamsAddresses) XXX_Merge(src proto.Message)
- func (m *MsgRemoveCodeUploadParamsAddresses) XXX_Size() int
- func (m *MsgRemoveCodeUploadParamsAddresses) XXX_Unmarshal(b []byte) error
- type MsgRemoveCodeUploadParamsAddressesResponse
- func (*MsgRemoveCodeUploadParamsAddressesResponse) Descriptor() ([]byte, []int)
- func (m *MsgRemoveCodeUploadParamsAddressesResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRemoveCodeUploadParamsAddressesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRemoveCodeUploadParamsAddressesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRemoveCodeUploadParamsAddressesResponse) ProtoMessage()
- func (m *MsgRemoveCodeUploadParamsAddressesResponse) Reset()
- func (m *MsgRemoveCodeUploadParamsAddressesResponse) Size() (n int)
- func (m *MsgRemoveCodeUploadParamsAddressesResponse) String() string
- func (m *MsgRemoveCodeUploadParamsAddressesResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRemoveCodeUploadParamsAddressesResponse) XXX_DiscardUnknown()
- func (m *MsgRemoveCodeUploadParamsAddressesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRemoveCodeUploadParamsAddressesResponse) XXX_Merge(src proto.Message)
- func (m *MsgRemoveCodeUploadParamsAddressesResponse) XXX_Size() int
- func (m *MsgRemoveCodeUploadParamsAddressesResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgStoreAndInstantiateContract
- func (*MsgStoreAndInstantiateContract) Descriptor() ([]byte, []int)
- func (msg MsgStoreAndInstantiateContract) GetSigners() []sdk.AccAddress
- func (m *MsgStoreAndInstantiateContract) Marshal() (dAtA []byte, err error)
- func (m *MsgStoreAndInstantiateContract) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgStoreAndInstantiateContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgStoreAndInstantiateContract) ProtoMessage()
- func (m *MsgStoreAndInstantiateContract) Reset()
- func (msg MsgStoreAndInstantiateContract) Route() string
- func (m *MsgStoreAndInstantiateContract) Size() (n int)
- func (m *MsgStoreAndInstantiateContract) String() string
- func (msg MsgStoreAndInstantiateContract) Type() string
- func (m *MsgStoreAndInstantiateContract) Unmarshal(dAtA []byte) error
- func (msg MsgStoreAndInstantiateContract) ValidateBasic() error
- func (m *MsgStoreAndInstantiateContract) XXX_DiscardUnknown()
- func (m *MsgStoreAndInstantiateContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgStoreAndInstantiateContract) XXX_Merge(src proto.Message)
- func (m *MsgStoreAndInstantiateContract) XXX_Size() int
- func (m *MsgStoreAndInstantiateContract) XXX_Unmarshal(b []byte) error
- type MsgStoreAndInstantiateContractResponse
- func (*MsgStoreAndInstantiateContractResponse) Descriptor() ([]byte, []int)
- func (m *MsgStoreAndInstantiateContractResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgStoreAndInstantiateContractResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgStoreAndInstantiateContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgStoreAndInstantiateContractResponse) ProtoMessage()
- func (m *MsgStoreAndInstantiateContractResponse) Reset()
- func (m *MsgStoreAndInstantiateContractResponse) Size() (n int)
- func (m *MsgStoreAndInstantiateContractResponse) String() string
- func (m *MsgStoreAndInstantiateContractResponse) Unmarshal(dAtA []byte) error
- func (m *MsgStoreAndInstantiateContractResponse) XXX_DiscardUnknown()
- func (m *MsgStoreAndInstantiateContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgStoreAndInstantiateContractResponse) XXX_Merge(src proto.Message)
- func (m *MsgStoreAndInstantiateContractResponse) XXX_Size() int
- func (m *MsgStoreAndInstantiateContractResponse) XXX_Unmarshal(b []byte) error
- type MsgStoreAndMigrateContract
- func (*MsgStoreAndMigrateContract) Descriptor() ([]byte, []int)
- func (msg MsgStoreAndMigrateContract) GetSigners() []sdk.AccAddress
- func (m *MsgStoreAndMigrateContract) Marshal() (dAtA []byte, err error)
- func (m *MsgStoreAndMigrateContract) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgStoreAndMigrateContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgStoreAndMigrateContract) ProtoMessage()
- func (m *MsgStoreAndMigrateContract) Reset()
- func (msg MsgStoreAndMigrateContract) Route() string
- func (m *MsgStoreAndMigrateContract) Size() (n int)
- func (m *MsgStoreAndMigrateContract) String() string
- func (msg MsgStoreAndMigrateContract) Type() string
- func (m *MsgStoreAndMigrateContract) Unmarshal(dAtA []byte) error
- func (msg MsgStoreAndMigrateContract) ValidateBasic() error
- func (m *MsgStoreAndMigrateContract) XXX_DiscardUnknown()
- func (m *MsgStoreAndMigrateContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgStoreAndMigrateContract) XXX_Merge(src proto.Message)
- func (m *MsgStoreAndMigrateContract) XXX_Size() int
- func (m *MsgStoreAndMigrateContract) XXX_Unmarshal(b []byte) error
- type MsgStoreAndMigrateContractResponse
- func (*MsgStoreAndMigrateContractResponse) Descriptor() ([]byte, []int)
- func (m *MsgStoreAndMigrateContractResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgStoreAndMigrateContractResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgStoreAndMigrateContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgStoreAndMigrateContractResponse) ProtoMessage()
- func (m *MsgStoreAndMigrateContractResponse) Reset()
- func (m *MsgStoreAndMigrateContractResponse) Size() (n int)
- func (m *MsgStoreAndMigrateContractResponse) String() string
- func (m *MsgStoreAndMigrateContractResponse) Unmarshal(dAtA []byte) error
- func (m *MsgStoreAndMigrateContractResponse) XXX_DiscardUnknown()
- func (m *MsgStoreAndMigrateContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgStoreAndMigrateContractResponse) XXX_Merge(src proto.Message)
- func (m *MsgStoreAndMigrateContractResponse) XXX_Size() int
- func (m *MsgStoreAndMigrateContractResponse) XXX_Unmarshal(b []byte) error
- type MsgStoreCode
- func (*MsgStoreCode) Descriptor() ([]byte, []int)
- 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 MsgSudoContract
- func (*MsgSudoContract) Descriptor() ([]byte, []int)
- func (msg MsgSudoContract) GetSigners() []sdk.AccAddress
- func (m *MsgSudoContract) Marshal() (dAtA []byte, err error)
- func (m *MsgSudoContract) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSudoContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSudoContract) ProtoMessage()
- func (m *MsgSudoContract) Reset()
- func (msg MsgSudoContract) Route() string
- func (m *MsgSudoContract) Size() (n int)
- func (m *MsgSudoContract) String() string
- func (msg MsgSudoContract) Type() string
- func (m *MsgSudoContract) Unmarshal(dAtA []byte) error
- func (msg MsgSudoContract) ValidateBasic() error
- func (m *MsgSudoContract) XXX_DiscardUnknown()
- func (m *MsgSudoContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSudoContract) XXX_Merge(src proto.Message)
- func (m *MsgSudoContract) XXX_Size() int
- func (m *MsgSudoContract) XXX_Unmarshal(b []byte) error
- type MsgSudoContractResponse
- func (*MsgSudoContractResponse) Descriptor() ([]byte, []int)
- func (m *MsgSudoContractResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSudoContractResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSudoContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSudoContractResponse) ProtoMessage()
- func (m *MsgSudoContractResponse) Reset()
- func (m *MsgSudoContractResponse) Size() (n int)
- func (m *MsgSudoContractResponse) String() string
- func (m *MsgSudoContractResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSudoContractResponse) XXX_DiscardUnknown()
- func (m *MsgSudoContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSudoContractResponse) XXX_Merge(src proto.Message)
- func (m *MsgSudoContractResponse) XXX_Size() int
- func (m *MsgSudoContractResponse) XXX_Unmarshal(b []byte) error
- type MsgUnpinCodes
- func (*MsgUnpinCodes) Descriptor() ([]byte, []int)
- func (msg MsgUnpinCodes) GetSigners() []sdk.AccAddress
- func (m *MsgUnpinCodes) Marshal() (dAtA []byte, err error)
- func (m *MsgUnpinCodes) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUnpinCodes) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUnpinCodes) ProtoMessage()
- func (m *MsgUnpinCodes) Reset()
- func (msg MsgUnpinCodes) Route() string
- func (m *MsgUnpinCodes) Size() (n int)
- func (m *MsgUnpinCodes) String() string
- func (msg MsgUnpinCodes) Type() string
- func (m *MsgUnpinCodes) Unmarshal(dAtA []byte) error
- func (msg MsgUnpinCodes) ValidateBasic() error
- func (m *MsgUnpinCodes) XXX_DiscardUnknown()
- func (m *MsgUnpinCodes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUnpinCodes) XXX_Merge(src proto.Message)
- func (m *MsgUnpinCodes) XXX_Size() int
- func (m *MsgUnpinCodes) XXX_Unmarshal(b []byte) error
- type MsgUnpinCodesResponse
- func (*MsgUnpinCodesResponse) Descriptor() ([]byte, []int)
- func (m *MsgUnpinCodesResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUnpinCodesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUnpinCodesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUnpinCodesResponse) ProtoMessage()
- func (m *MsgUnpinCodesResponse) Reset()
- func (m *MsgUnpinCodesResponse) Size() (n int)
- func (m *MsgUnpinCodesResponse) String() string
- func (m *MsgUnpinCodesResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUnpinCodesResponse) XXX_DiscardUnknown()
- func (m *MsgUnpinCodesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUnpinCodesResponse) XXX_Merge(src proto.Message)
- func (m *MsgUnpinCodesResponse) XXX_Size() int
- func (m *MsgUnpinCodesResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateAdmin
- func (*MsgUpdateAdmin) Descriptor() ([]byte, []int)
- 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 MsgUpdateContractLabel
- func (*MsgUpdateContractLabel) Descriptor() ([]byte, []int)
- func (msg MsgUpdateContractLabel) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateContractLabel) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateContractLabel) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateContractLabel) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateContractLabel) ProtoMessage()
- func (m *MsgUpdateContractLabel) Reset()
- func (msg MsgUpdateContractLabel) Route() string
- func (m *MsgUpdateContractLabel) Size() (n int)
- func (m *MsgUpdateContractLabel) String() string
- func (msg MsgUpdateContractLabel) Type() string
- func (m *MsgUpdateContractLabel) Unmarshal(dAtA []byte) error
- func (msg MsgUpdateContractLabel) ValidateBasic() error
- func (m *MsgUpdateContractLabel) XXX_DiscardUnknown()
- func (m *MsgUpdateContractLabel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateContractLabel) XXX_Merge(src proto.Message)
- func (m *MsgUpdateContractLabel) XXX_Size() int
- func (m *MsgUpdateContractLabel) XXX_Unmarshal(b []byte) error
- type MsgUpdateContractLabelResponse
- func (*MsgUpdateContractLabelResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateContractLabelResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateContractLabelResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateContractLabelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateContractLabelResponse) ProtoMessage()
- func (m *MsgUpdateContractLabelResponse) Reset()
- func (m *MsgUpdateContractLabelResponse) Size() (n int)
- func (m *MsgUpdateContractLabelResponse) String() string
- func (m *MsgUpdateContractLabelResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateContractLabelResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateContractLabelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateContractLabelResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateContractLabelResponse) XXX_Size() int
- func (m *MsgUpdateContractLabelResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateInstantiateConfig
- func (*MsgUpdateInstantiateConfig) Descriptor() ([]byte, []int)
- func (msg MsgUpdateInstantiateConfig) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateInstantiateConfig) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateInstantiateConfig) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateInstantiateConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateInstantiateConfig) ProtoMessage()
- func (m *MsgUpdateInstantiateConfig) Reset()
- func (msg MsgUpdateInstantiateConfig) Route() string
- func (m *MsgUpdateInstantiateConfig) Size() (n int)
- func (m *MsgUpdateInstantiateConfig) String() string
- func (msg MsgUpdateInstantiateConfig) Type() string
- func (m *MsgUpdateInstantiateConfig) Unmarshal(dAtA []byte) error
- func (msg MsgUpdateInstantiateConfig) ValidateBasic() error
- func (m *MsgUpdateInstantiateConfig) XXX_DiscardUnknown()
- func (m *MsgUpdateInstantiateConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateInstantiateConfig) XXX_Merge(src proto.Message)
- func (m *MsgUpdateInstantiateConfig) XXX_Size() int
- func (m *MsgUpdateInstantiateConfig) XXX_Unmarshal(b []byte) error
- type MsgUpdateInstantiateConfigResponse
- func (*MsgUpdateInstantiateConfigResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateInstantiateConfigResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateInstantiateConfigResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateInstantiateConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateInstantiateConfigResponse) ProtoMessage()
- func (m *MsgUpdateInstantiateConfigResponse) Reset()
- func (m *MsgUpdateInstantiateConfigResponse) Size() (n int)
- func (m *MsgUpdateInstantiateConfigResponse) String() string
- func (m *MsgUpdateInstantiateConfigResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateInstantiateConfigResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateInstantiateConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateInstantiateConfigResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateInstantiateConfigResponse) XXX_Size() int
- func (m *MsgUpdateInstantiateConfigResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (msg MsgUpdateParams) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (msg MsgUpdateParams) Route() string
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (msg MsgUpdateParams) Type() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (msg MsgUpdateParams) ValidateBasic() error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) 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 PortKeeper
- 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 QueryContractsByCreatorRequest
- func (*QueryContractsByCreatorRequest) Descriptor() ([]byte, []int)
- func (m *QueryContractsByCreatorRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryContractsByCreatorRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryContractsByCreatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryContractsByCreatorRequest) ProtoMessage()
- func (m *QueryContractsByCreatorRequest) Reset()
- func (m *QueryContractsByCreatorRequest) Size() (n int)
- func (m *QueryContractsByCreatorRequest) String() string
- func (m *QueryContractsByCreatorRequest) Unmarshal(dAtA []byte) error
- func (m *QueryContractsByCreatorRequest) XXX_DiscardUnknown()
- func (m *QueryContractsByCreatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryContractsByCreatorRequest) XXX_Merge(src proto.Message)
- func (m *QueryContractsByCreatorRequest) XXX_Size() int
- func (m *QueryContractsByCreatorRequest) XXX_Unmarshal(b []byte) error
- type QueryContractsByCreatorResponse
- func (*QueryContractsByCreatorResponse) Descriptor() ([]byte, []int)
- func (m *QueryContractsByCreatorResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryContractsByCreatorResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryContractsByCreatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryContractsByCreatorResponse) ProtoMessage()
- func (m *QueryContractsByCreatorResponse) Reset()
- func (m *QueryContractsByCreatorResponse) Size() (n int)
- func (m *QueryContractsByCreatorResponse) String() string
- func (m *QueryContractsByCreatorResponse) Unmarshal(dAtA []byte) error
- func (m *QueryContractsByCreatorResponse) XXX_DiscardUnknown()
- func (m *QueryContractsByCreatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryContractsByCreatorResponse) XXX_Merge(src proto.Message)
- func (m *QueryContractsByCreatorResponse) XXX_Size() int
- func (m *QueryContractsByCreatorResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) 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 StoreCodeAuthorization
- func (a *StoreCodeAuthorization) Accept(ctx context.Context, msg sdk.Msg) (authztypes.AcceptResponse, error)
- func (*StoreCodeAuthorization) Descriptor() ([]byte, []int)
- func (m *StoreCodeAuthorization) Marshal() (dAtA []byte, err error)
- func (m *StoreCodeAuthorization) MarshalTo(dAtA []byte) (int, error)
- func (m *StoreCodeAuthorization) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (a StoreCodeAuthorization) MsgTypeURL() string
- func (*StoreCodeAuthorization) ProtoMessage()
- func (m *StoreCodeAuthorization) Reset()
- func (m *StoreCodeAuthorization) Size() (n int)
- func (m *StoreCodeAuthorization) String() string
- func (m *StoreCodeAuthorization) Unmarshal(dAtA []byte) error
- func (a StoreCodeAuthorization) ValidateBasic() error
- func (m *StoreCodeAuthorization) XXX_DiscardUnknown()
- func (m *StoreCodeAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StoreCodeAuthorization) XXX_Merge(src proto.Message)
- func (m *StoreCodeAuthorization) XXX_Size() int
- func (m *StoreCodeAuthorization) XXX_Unmarshal(b []byte) error
- type UndefinedFilter
- type UndefinedLimit
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) AddCodeUploadParamsAddresses(ctx context.Context, req *MsgAddCodeUploadParamsAddresses) (*MsgAddCodeUploadParamsAddressesResponse, error)
- 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) InstantiateContract2(ctx context.Context, req *MsgInstantiateContract2) (*MsgInstantiateContract2Response, error)
- func (*UnimplementedMsgServer) MigrateContract(ctx context.Context, req *MsgMigrateContract) (*MsgMigrateContractResponse, error)
- func (*UnimplementedMsgServer) PinCodes(ctx context.Context, req *MsgPinCodes) (*MsgPinCodesResponse, error)
- func (*UnimplementedMsgServer) RemoveCodeUploadParamsAddresses(ctx context.Context, req *MsgRemoveCodeUploadParamsAddresses) (*MsgRemoveCodeUploadParamsAddressesResponse, error)
- func (*UnimplementedMsgServer) StoreAndInstantiateContract(ctx context.Context, req *MsgStoreAndInstantiateContract) (*MsgStoreAndInstantiateContractResponse, error)
- func (*UnimplementedMsgServer) StoreAndMigrateContract(ctx context.Context, req *MsgStoreAndMigrateContract) (*MsgStoreAndMigrateContractResponse, error)
- func (*UnimplementedMsgServer) StoreCode(ctx context.Context, req *MsgStoreCode) (*MsgStoreCodeResponse, error)
- func (*UnimplementedMsgServer) SudoContract(ctx context.Context, req *MsgSudoContract) (*MsgSudoContractResponse, error)
- func (*UnimplementedMsgServer) UnpinCodes(ctx context.Context, req *MsgUnpinCodes) (*MsgUnpinCodesResponse, error)
- func (*UnimplementedMsgServer) UpdateAdmin(ctx context.Context, req *MsgUpdateAdmin) (*MsgUpdateAdminResponse, error)
- func (*UnimplementedMsgServer) UpdateContractLabel(ctx context.Context, req *MsgUpdateContractLabel) (*MsgUpdateContractLabelResponse, error)
- func (*UnimplementedMsgServer) UpdateInstantiateConfig(ctx context.Context, req *MsgUpdateInstantiateConfig) (*MsgUpdateInstantiateConfigResponse, error)
- func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, 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) ContractsByCreator(ctx context.Context, req *QueryContractsByCreatorRequest) (*QueryContractsByCreatorResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, 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 ViewKeeper
- type WasmConfig
- type WasmEngine
- type WasmGasRegister
- func (g WasmGasRegister) CompileCosts(byteLength int) storetypes.Gas
- func (g WasmGasRegister) EventCosts(attrs []wasmvmtypes.EventAttribute, events wasmvmtypes.Events) storetypes.Gas
- func (g WasmGasRegister) FromWasmVMGas(source uint64) storetypes.Gas
- func (g WasmGasRegister) InstantiateContractCosts(pinned bool, msgLen int) storetypes.Gas
- func (g WasmGasRegister) NewContractInstanceCosts(pinned bool, msgLen int) storetypes.Gas
- func (g WasmGasRegister) ReplyCosts(pinned bool, reply wasmvmtypes.Reply) storetypes.Gas
- func (g WasmGasRegister) ToWasmVMGas(source storetypes.Gas) uint64
- func (g WasmGasRegister) UncompressCosts(byteLength int) storetypes.Gas
- type WasmGasRegisterConfig
- type WasmVMErrorable
- type WasmVMFlavouredError
- func (e WasmVMFlavouredError) Cause() error
- func (e WasmVMFlavouredError) Error() string
- func (e WasmVMFlavouredError) ToWasmVMError() error
- func (e WasmVMFlavouredError) Unwrap() error
- func (e WasmVMFlavouredError) Wrap(desc string) error
- func (e WasmVMFlavouredError) Wrapf(desc string, args ...interface{}) error
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" EventTypeUpdateContractAdmin = "update_contract_admin" EventTypeUpdateContractLabel = "update_contract_label" EventTypeUpdateCodeAccessConfig = "update_code_access_config" EventTypePacketRecv = "ibc_packet_received" )
const ( AttributeReservedPrefix = "_" AttributeKeyContractAddr = "_contract_address" AttributeKeyCodeID = "code_id" AttributeKeyChecksum = "code_checksum" AttributeKeyResultDataHex = "result" AttributeKeyRequiredCapability = "required_capability" AttributeKeyNewAdmin = "new_admin_address" AttributeKeyNewLabel = "new_label" AttributeKeyCodePermission = "code_permission" AttributeKeyAuthorizedAddresses = "authorized_addresses" AttributeKeyAckSuccess = "success" AttributeKeyAckError = "error" )
event attributes returned from contract execution
const ( // DefaultGasMultiplier is how many CosmWasm gas points = 1 Cosmos SDK gas point. // // CosmWasm gas strategy is documented in https://github.com/CosmWasm/cosmwasm/blob/v1.0.0-beta/docs/GAS.md. // Cosmos SDK reference costs can be found here: https://github.com/cosmos/cosmos-sdk/blob/v0.42.10/store/types/gas.go#L198-L209. // // The original multiplier of 100 up to CosmWasm 0.16 was based on // "A write at ~3000 gas and ~200us = 10 gas per us (microsecond) cpu/io // Rough timing have 88k gas at 90us, which is equal to 1k sdk gas... (one read)" // as well as manual Wasmer benchmarks from 2019. This was then multiplied by 150_000 // in the 0.16 -> 1.0 upgrade (https://github.com/CosmWasm/cosmwasm/pull/1120). // // The multiplier deserves more reproducible benchmarking and a strategy that allows easy adjustments. // This is tracked in https://github.com/CosmWasm/wasmd/issues/566 and https://github.com/CosmWasm/wasmd/issues/631. // Gas adjustments are consensus breaking but may happen in any release marked as consensus breaking. // Do not make assumptions on how much gas an operation will consume in places that are hard to adjust, // such as hardcoding them in contracts. // // Please note that all gas prices returned to wasmvm should have this multiplied. // Benchmarks and numbers were discussed in: https://github.com/CosmWasm/wasmd/pull/634#issuecomment-938055852 DefaultGasMultiplier uint64 = 140_000_000 // DefaultInstanceCost is how much SDK gas we charge each time we load a WASM instance. // Creating a new instance is costly, and this helps put a recursion limit to contracts calling contracts. // Benchmarks and numbers were discussed in: https://github.com/CosmWasm/wasmd/pull/634#issuecomment-938056803 DefaultInstanceCost uint64 = 60_000 // DefaultCompileCost is how much SDK gas is charged *per byte* for compiling WASM code. // Benchmarks and numbers were discussed in: https://github.com/CosmWasm/wasmd/pull/634#issuecomment-938056803 DefaultCompileCost uint64 = 3 // DefaultEventAttributeDataCost is how much SDK gas is charged *per byte* for attribute data in events. // This is used with len(key) + len(value) DefaultEventAttributeDataCost uint64 = 1 // DefaultContractMessageDataCost is how much SDK gas is charged *per byte* of the message that goes to the contract // This is used with len(msg). Note that the message is deserialized in the receiving contract and this is charged // with wasm gas already. The derserialization of results is also charged in wasmvm. I am unsure if we need to add // additional costs here. // Note: also used for error fields on reply, and data on reply. Maybe these should be pulled out to a different (non-zero) field DefaultContractMessageDataCost uint64 = 0 // DefaultPerAttributeCost is how much SDK gas we charge per attribute count. DefaultPerAttributeCost uint64 = 10 // DefaultPerCustomEventCost is how much SDK gas we charge per event count. DefaultPerCustomEventCost uint64 = 20 // DefaultEventAttributeDataFreeTier number of bytes of total attribute data we do not charge. DefaultEventAttributeDataFreeTier = 100 )
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 ( // ContractAddrLen defines a valid address length for contracts ContractAddrLen = 32 // SDKAddrLen defines a valid address length that was used in sdk address generation SDKAddrLen = 20 )
const AbsoluteTxPositionLen = 16
AbsoluteTxPositionLen number of elements in byte representation
const (
// CodehashWildcard matches any code hash
CodehashWildcard = "*"
)
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 MaxSaltSize = 64
MaxSaltSize is the longest salt that can be used when instantiating a contract
Variables ¶
var ( ErrInvalidLengthAuthz = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowAuthz = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupAuthz = fmt.Errorf("proto: unexpected end of group") )
var ( DefaultCodespace = ModuleName // ErrCreateFailed error for wasm code that has already been uploaded or failed ErrCreateFailed = errorsmod.Register(DefaultCodespace, 2, "create wasm contract failed") // ErrAccountExists error for a contract account that already exists ErrAccountExists = errorsmod.Register(DefaultCodespace, 3, "contract account already exists") // ErrInstantiateFailed error for rust instantiate contract failure ErrInstantiateFailed = errorsmod.Register(DefaultCodespace, 4, "instantiate wasm contract failed") // ErrExecuteFailed error for rust execution contract failure ErrExecuteFailed = errorsmod.Register(DefaultCodespace, 5, "execute wasm contract failed") // ErrGasLimit error for out of gas ErrGasLimit = errorsmod.Register(DefaultCodespace, 6, "insufficient gas") // ErrInvalidGenesis error for invalid genesis file syntax ErrInvalidGenesis = errorsmod.Register(DefaultCodespace, 7, "invalid genesis") // ErrNotFound error for an entry not found in the store ErrNotFound = errorsmod.Register(DefaultCodespace, 8, "not found") // ErrQueryFailed error for rust smart query contract failure ErrQueryFailed = errorsmod.Register(DefaultCodespace, 9, "query wasm contract failed") // ErrInvalidMsg error when we cannot process the error returned from the contract ErrInvalidMsg = errorsmod.Register(DefaultCodespace, 10, "invalid CosmosMsg from the contract") // ErrMigrationFailed error for rust execution contract failure ErrMigrationFailed = errorsmod.Register(DefaultCodespace, 11, "migrate wasm contract failed") // ErrEmpty error for empty content ErrEmpty = errorsmod.Register(DefaultCodespace, 12, "empty") // ErrLimit error for content that exceeds a limit ErrLimit = errorsmod.Register(DefaultCodespace, 13, "exceeds limit") // ErrInvalid error for content that is invalid in this context ErrInvalid = errorsmod.Register(DefaultCodespace, 14, "invalid") // ErrDuplicate error for content that exists ErrDuplicate = errorsmod.Register(DefaultCodespace, 15, "duplicate") // ErrMaxIBCChannels error for maximum number of ibc channels reached ErrMaxIBCChannels = errorsmod.Register(DefaultCodespace, 16, "max transfer channels") // ErrUnsupportedForContract error when a capability is used that is not supported for/ by this contract ErrUnsupportedForContract = errorsmod.Register(DefaultCodespace, 17, "unsupported for this contract") // ErrPinContractFailed error for pinning contract failures ErrPinContractFailed = errorsmod.Register(DefaultCodespace, 18, "pinning contract failed") // ErrUnpinContractFailed error for unpinning contract failures ErrUnpinContractFailed = errorsmod.Register(DefaultCodespace, 19, "unpinning contract failed") // ErrUnknownMsg error by a message handler to show that it is not responsible for this message type ErrUnknownMsg = errorsmod.Register(DefaultCodespace, 20, "unknown message from the contract") // ErrInvalidEvent error if an attribute/event from the contract is invalid ErrInvalidEvent = errorsmod.Register(DefaultCodespace, 21, "invalid event") // ErrNoSuchContractFn error factory for an error when an address does not belong to a contract ErrNoSuchContractFn = WasmVMFlavouredErrorFactory(errorsmod.Register(DefaultCodespace, 22, "no such contract"), func(addr string) error { return wasmvmtypes.NoSuchContract{Addr: addr} }, ) // ErrExceedMaxQueryStackSize error if max query stack size is exceeded ErrExceedMaxQueryStackSize = errorsmod.Register(DefaultCodespace, 27, "max query stack size exceeded") // ErrNoSuchCodeFn factory for an error when a code id does not belong to a code info ErrNoSuchCodeFn = WasmVMFlavouredErrorFactory(errorsmod.Register(DefaultCodespace, 28, "no such code"), func(id uint64) error { return wasmvmtypes.NoSuchCode{CodeID: id} }, ) )
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} ContractsByCreatorPrefix = []byte{0x09} ParamsKey = []byte{0x10} KeySequenceCodeID = append(SequenceKeyPrefix, []byte("lastCodeId")...) KeySequenceInstanceID = append(SequenceKeyPrefix, []byte("lastContractId")...) )
var ( DefaultUploadAccess = AllowEverybody AllowEverybody = AccessConfig{Permission: AccessTypeEverybody} AllowNobody = AccessConfig{Permission: AccessTypeNobody} )
var ( ParamStoreKeyUploadAccess = []byte("uploadAccess") ParamStoreKeyInstantiateAccess = []byte("instantiateAccess") )
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. // MaxProposalWasmSize is the largest a gov proposal compiled contract code can be when storing code on chain MaxProposalWasmSize = 3 * 1024 * 1024 // extension point for chains to customize via compile flag. )
var AccessType_name = map[int32]string{
0: "ACCESS_TYPE_UNSPECIFIED",
1: "ACCESS_TYPE_NOBODY",
3: "ACCESS_TYPE_EVERYBODY",
4: "ACCESS_TYPE_ANY_OF_ADDRESSES",
}
var AccessType_value = map[string]int32{
"ACCESS_TYPE_UNSPECIFIED": 0,
"ACCESS_TYPE_NOBODY": 1,
"ACCESS_TYPE_EVERYBODY": 3,
"ACCESS_TYPE_ANY_OF_ADDRESSES": 4,
}
var AllAccessTypes = []AccessType{ AccessTypeNobody, AccessTypeAnyOfAddresses, 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,
}
Functions ¶
func AcceptGrantedMessage ¶ added in v0.30.0
func AcceptGrantedMessage[T AuthzableWasmMsg](ctx sdk.Context, grants []ContractGrant, msg sdk.Msg, factory ContractAuthzFactory) (authztypes.AcceptResponse, error)
AcceptGrantedMessage determines whether this grant permits the provided sdk.Msg to be performed, and if so provides an upgraded authorization instance.
func ConfigTemplate ¶ added in v0.40.0
func ConfigTemplate(c WasmConfig) string
ConfigTemplate toml snippet for app.toml
func DefaultConfigTemplate ¶ added in v0.40.0
func DefaultConfigTemplate() string
DefaultConfigTemplate toml snippet with default values for app.toml
func DefaultPerByteUncompressCost ¶ added in v0.42.0
func DefaultPerByteUncompressCost() wasmvmtypes.UFraction
DefaultPerByteUncompressCost is how much SDK gas we charge per source byte to unpack
func EmitAcknowledgementEvent ¶ added in v0.32.0
func EmitAcknowledgementEvent(ctx sdk.Context, contractAddr sdk.AccAddress, ack exported.Acknowledgement, err error)
EmitAcknowledgementEvent emits an event signaling a successful or failed acknowledgement and including the error details if any.
func GetCodeKey ¶
GetCodeKey constructs the key for retreiving the ID for the WASM code
func GetContractAddressKey ¶
func GetContractAddressKey(addr sdk.AccAddress) []byte
GetContractAddressKey returns the key for the WASM contract instance
func GetContractByCodeIDSecondaryIndexPrefix ¶
GetContractByCodeIDSecondaryIndexPrefix returns the prefix for the second index: `<prefix><codeID>`
func GetContractByCreatedSecondaryIndexKey ¶
func GetContractByCreatedSecondaryIndexKey(contractAddr sdk.AccAddress, c ContractCodeHistoryEntry) []byte
GetContractByCreatedSecondaryIndexKey returns the key for the secondary index: `<prefix><codeID><created/last-migrated><contractAddr>`
func GetContractByCreatorSecondaryIndexKey ¶ added in v0.30.0
func GetContractByCreatorSecondaryIndexKey(bz, position []byte, contractAddr sdk.AccAddress) []byte
GetContractByCreatorSecondaryIndexKey returns the key for the second index: `<prefix><creatorAddress length><created time><creatorAddress><contractAddr>`
func GetContractCodeHistoryElementKey ¶
func GetContractCodeHistoryElementKey(contractAddr sdk.AccAddress, pos uint64) []byte
GetContractCodeHistoryElementKey returns the key a contract code history entry: `<prefix><contractAddr><position>`
func GetContractCodeHistoryElementPrefix ¶
func GetContractCodeHistoryElementPrefix(contractAddr sdk.AccAddress) []byte
GetContractCodeHistoryElementPrefix returns the key prefix for a contract code history entry: `<prefix><contractAddr>`
func GetContractStorePrefix ¶
func GetContractStorePrefix(addr sdk.AccAddress) []byte
GetContractStorePrefix returns the store prefix for the WASM contract instance
func GetContractsByCreatorPrefix ¶ added in v0.30.0
func GetContractsByCreatorPrefix(addr sdk.AccAddress) []byte
GetContractsByCreatorPrefix returns the contracts by creator prefix for the WASM contract instance
func GetPinnedCodeIndexPrefix ¶
GetPinnedCodeIndexPrefix returns the key prefix for a code id pinned into the wasmvm cache
func NewEnv ¶
func NewEnv(ctx sdk.Context, contractAddr sdk.AccAddress) wasmvmtypes.Env
NewEnv initializes the environment for a contract instance
func NewInfo ¶
func NewInfo(creator sdk.AccAddress, deposit sdk.Coins) wasmvmtypes.MessageInfo
NewInfo initializes the MessageInfo for a contract instance
func NewWasmCoins ¶
func NewWasmCoins(cosmosCoins sdk.Coins) (wasmCoins []wasmvmtypes.Coin)
NewWasmCoins translates between Cosmos SDK coins and Wasm coins
func OnlyGenesisFields ¶
func OnlyGenesisFields(info *ContractInfo)
func ParamKeyTable
deprecated
func ParamKeyTable() paramtypes.KeyTable
Deprecated: Type declaration for parameters
func ParsePinnedCodeIndex ¶
ParsePinnedCodeIndex converts the serialized code ID back.
func QueryStackSize ¶ added in v0.41.0
QueryStackSize reads the stack position for smart queries from the context
func RandCreatedFields ¶ added in v0.30.0
func RandCreatedFields(info *ContractInfo)
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
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 to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func TXCounter ¶ added in v0.20.0
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 ValidateLabel ¶ added in v0.29.0
ValidateLabel ensure label constraints
func ValidateSalt ¶ added in v0.29.0
ValidateSalt ensure salt constraints
func ValidateVerificationInfo ¶ added in v0.30.0
ValidateVerificationInfo ensure source, builder and checksum constraints
func VerifyAddressLen ¶ added in v0.22.0
VerifyAddressLen ensures that the address matches the expected length
func WasmVMFlavouredErrorFactory ¶ added in v0.31.0
func WasmVMFlavouredErrorFactory[T any](sdkErr *errorsmod.Error, wasmVMErrBuilder func(T) error) func(T) WasmVMFlavouredError
WasmVMFlavouredErrorFactory is a factory method to build a WasmVMFlavouredError type
func WithGasRegister ¶ added in v0.42.0
func WithGasRegister(ctx sdk.Context, gr GasRegister) sdk.Context
WithGasRegister stores the gas register into the context returned
func WithQueryStackSize ¶ added in v0.41.0
WithQueryStackSize stores the stack position for smart queries in the context returned
func WithSHA256CodeHash ¶
func WithSubMsgAuthzPolicy ¶ added in v0.41.0
func WithSubMsgAuthzPolicy(ctx sdk.Context, policy AuthorizationPolicy) sdk.Context
WithSubMsgAuthzPolicy stores the authorization policy for submessages into the context returned
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 AcceptedMessageKeysFilter ¶ added in v0.30.0
type AcceptedMessageKeysFilter struct { // Messages is the list of unique keys Keys []string `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"` }
AcceptedMessageKeysFilter accept only the specific contract message keys in the json object to be executed. Since: wasmd 0.30
func NewAcceptedMessageKeysFilter ¶ added in v0.30.0
func NewAcceptedMessageKeysFilter(acceptedKeys ...string) *AcceptedMessageKeysFilter
NewAcceptedMessageKeysFilter constructor
func (*AcceptedMessageKeysFilter) Accept ¶ added in v0.30.0
func (f *AcceptedMessageKeysFilter) Accept(ctx sdk.Context, msg RawContractMessage) (bool, error)
Accept only payload messages which contain one of the accepted key names in the json object.
func (*AcceptedMessageKeysFilter) Descriptor ¶ added in v0.30.0
func (*AcceptedMessageKeysFilter) Descriptor() ([]byte, []int)
func (*AcceptedMessageKeysFilter) Marshal ¶ added in v0.30.0
func (m *AcceptedMessageKeysFilter) Marshal() (dAtA []byte, err error)
func (*AcceptedMessageKeysFilter) MarshalTo ¶ added in v0.30.0
func (m *AcceptedMessageKeysFilter) MarshalTo(dAtA []byte) (int, error)
func (*AcceptedMessageKeysFilter) MarshalToSizedBuffer ¶ added in v0.30.0
func (m *AcceptedMessageKeysFilter) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AcceptedMessageKeysFilter) ProtoMessage ¶ added in v0.30.0
func (*AcceptedMessageKeysFilter) ProtoMessage()
func (*AcceptedMessageKeysFilter) Reset ¶ added in v0.30.0
func (m *AcceptedMessageKeysFilter) Reset()
func (*AcceptedMessageKeysFilter) Size ¶ added in v0.30.0
func (m *AcceptedMessageKeysFilter) Size() (n int)
func (*AcceptedMessageKeysFilter) String ¶ added in v0.30.0
func (m *AcceptedMessageKeysFilter) String() string
func (*AcceptedMessageKeysFilter) Unmarshal ¶ added in v0.30.0
func (m *AcceptedMessageKeysFilter) Unmarshal(dAtA []byte) error
func (AcceptedMessageKeysFilter) ValidateBasic ¶ added in v0.30.0
func (f AcceptedMessageKeysFilter) ValidateBasic() error
ValidateBasic validates the filter
func (*AcceptedMessageKeysFilter) XXX_DiscardUnknown ¶ added in v0.30.0
func (m *AcceptedMessageKeysFilter) XXX_DiscardUnknown()
func (*AcceptedMessageKeysFilter) XXX_Marshal ¶ added in v0.30.0
func (m *AcceptedMessageKeysFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AcceptedMessageKeysFilter) XXX_Merge ¶ added in v0.30.0
func (m *AcceptedMessageKeysFilter) XXX_Merge(src proto.Message)
func (*AcceptedMessageKeysFilter) XXX_Size ¶ added in v0.30.0
func (m *AcceptedMessageKeysFilter) XXX_Size() int
func (*AcceptedMessageKeysFilter) XXX_Unmarshal ¶ added in v0.30.0
func (m *AcceptedMessageKeysFilter) XXX_Unmarshal(b []byte) error
type AcceptedMessagesFilter ¶ added in v0.30.0
type AcceptedMessagesFilter struct { // Messages is the list of raw contract messages Messages []RawContractMessage `protobuf:"bytes,1,rep,name=messages,proto3,casttype=RawContractMessage" json:"messages,omitempty"` }
AcceptedMessagesFilter accept only the specific raw contract messages to be executed. Since: wasmd 0.30
func NewAcceptedMessagesFilter ¶ added in v0.30.0
func NewAcceptedMessagesFilter(msgs ...RawContractMessage) *AcceptedMessagesFilter
NewAcceptedMessagesFilter constructor
func (*AcceptedMessagesFilter) Accept ¶ added in v0.30.0
func (f *AcceptedMessagesFilter) Accept(_ sdk.Context, msg RawContractMessage) (bool, error)
Accept only payload messages which are equal to the granted one.
func (*AcceptedMessagesFilter) Descriptor ¶ added in v0.30.0
func (*AcceptedMessagesFilter) Descriptor() ([]byte, []int)
func (*AcceptedMessagesFilter) Marshal ¶ added in v0.30.0
func (m *AcceptedMessagesFilter) Marshal() (dAtA []byte, err error)
func (*AcceptedMessagesFilter) MarshalTo ¶ added in v0.30.0
func (m *AcceptedMessagesFilter) MarshalTo(dAtA []byte) (int, error)
func (*AcceptedMessagesFilter) MarshalToSizedBuffer ¶ added in v0.30.0
func (m *AcceptedMessagesFilter) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AcceptedMessagesFilter) ProtoMessage ¶ added in v0.30.0
func (*AcceptedMessagesFilter) ProtoMessage()
func (*AcceptedMessagesFilter) Reset ¶ added in v0.30.0
func (m *AcceptedMessagesFilter) Reset()
func (*AcceptedMessagesFilter) Size ¶ added in v0.30.0
func (m *AcceptedMessagesFilter) Size() (n int)
func (*AcceptedMessagesFilter) String ¶ added in v0.30.0
func (m *AcceptedMessagesFilter) String() string
func (*AcceptedMessagesFilter) Unmarshal ¶ added in v0.30.0
func (m *AcceptedMessagesFilter) Unmarshal(dAtA []byte) error
func (AcceptedMessagesFilter) ValidateBasic ¶ added in v0.30.0
func (f AcceptedMessagesFilter) ValidateBasic() error
ValidateBasic validates the filter
func (*AcceptedMessagesFilter) XXX_DiscardUnknown ¶ added in v0.30.0
func (m *AcceptedMessagesFilter) XXX_DiscardUnknown()
func (*AcceptedMessagesFilter) XXX_Marshal ¶ added in v0.30.0
func (m *AcceptedMessagesFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AcceptedMessagesFilter) XXX_Merge ¶ added in v0.30.0
func (m *AcceptedMessagesFilter) XXX_Merge(src proto.Message)
func (*AcceptedMessagesFilter) XXX_Size ¶ added in v0.30.0
func (m *AcceptedMessagesFilter) XXX_Size() int
func (*AcceptedMessagesFilter) XXX_Unmarshal ¶ added in v0.30.0
func (m *AcceptedMessagesFilter) 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"` Addresses []string `protobuf:"bytes,3,rep,name=addresses,proto3" json:"addresses,omitempty"` }
AccessConfig access control type.
func (AccessConfig) AllAuthorizedAddresses ¶ added in v0.31.0
func (a AccessConfig) AllAuthorizedAddresses() []string
AllAuthorizedAddresses returns the list of authorized addresses. Can be empty.
func (AccessConfig) Allowed ¶
func (a AccessConfig) Allowed(actor sdk.AccAddress) bool
Allowed returns if permission includes the actor. Actor address must be valid and not nil
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 ¶ added in v0.27.0
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
ValidateBasic performs basic validation
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 ¶ added in v0.27.0
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 ¶ added in v0.27.0
func (*AccessConfigUpdate) Descriptor() ([]byte, []int)
func (*AccessConfigUpdate) Marshal ¶ added in v0.27.0
func (m *AccessConfigUpdate) Marshal() (dAtA []byte, err error)
func (*AccessConfigUpdate) MarshalTo ¶ added in v0.27.0
func (m *AccessConfigUpdate) MarshalTo(dAtA []byte) (int, error)
func (*AccessConfigUpdate) MarshalToSizedBuffer ¶ added in v0.27.0
func (m *AccessConfigUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AccessConfigUpdate) ProtoMessage ¶ added in v0.27.0
func (*AccessConfigUpdate) ProtoMessage()
func (*AccessConfigUpdate) Reset ¶ added in v0.27.0
func (m *AccessConfigUpdate) Reset()
func (*AccessConfigUpdate) Size ¶ added in v0.27.0
func (m *AccessConfigUpdate) Size() (n int)
func (*AccessConfigUpdate) String ¶ added in v0.27.0
func (m *AccessConfigUpdate) String() string
func (*AccessConfigUpdate) Unmarshal ¶ added in v0.27.0
func (m *AccessConfigUpdate) Unmarshal(dAtA []byte) error
func (*AccessConfigUpdate) XXX_DiscardUnknown ¶ added in v0.27.0
func (m *AccessConfigUpdate) XXX_DiscardUnknown()
func (*AccessConfigUpdate) XXX_Marshal ¶ added in v0.27.0
func (m *AccessConfigUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AccessConfigUpdate) XXX_Merge ¶ added in v0.27.0
func (m *AccessConfigUpdate) XXX_Merge(src proto.Message)
func (*AccessConfigUpdate) XXX_Size ¶ added in v0.27.0
func (m *AccessConfigUpdate) XXX_Size() int
func (*AccessConfigUpdate) XXX_Unmarshal ¶ added in v0.27.0
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 // AccessTypeEverybody unrestricted AccessTypeEverybody AccessType = 3 // AccessTypeAnyOfAddresses allow any of the addresses AccessTypeAnyOfAddresses AccessType = 4 )
func (AccessType) EnumDescriptor ¶
func (AccessType) EnumDescriptor() ([]byte, []int)
func (AccessType) IsSubset ¶ added in v0.29.0
func (a AccessType) IsSubset(superSet AccessType) 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 (*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(addrs ...sdk.AccAddress) 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 context.Context, addr sdk.AccAddress) sdk.AccountI // Retrieve an account from the store. GetAccount(ctx context.Context, addr sdk.AccAddress) sdk.AccountI // Set an account in the store. SetAccount(ctx context.Context, acc sdk.AccountI) }
AccountKeeper defines a subset of methods implemented by the cosmos-sdk account keeper
type AllowAllMessagesFilter ¶ added in v0.30.0
type AllowAllMessagesFilter struct{}
AllowAllMessagesFilter is a wildcard to allow any type of contract payload message. Since: wasmd 0.30
func NewAllowAllMessagesFilter ¶ added in v0.30.0
func NewAllowAllMessagesFilter() *AllowAllMessagesFilter
NewAllowAllMessagesFilter constructor
func (*AllowAllMessagesFilter) Accept ¶ added in v0.30.0
func (f *AllowAllMessagesFilter) Accept(_ sdk.Context, msg RawContractMessage) (bool, error)
Accept accepts any valid json message content.
func (*AllowAllMessagesFilter) Descriptor ¶ added in v0.30.0
func (*AllowAllMessagesFilter) Descriptor() ([]byte, []int)
func (*AllowAllMessagesFilter) Marshal ¶ added in v0.30.0
func (m *AllowAllMessagesFilter) Marshal() (dAtA []byte, err error)
func (*AllowAllMessagesFilter) MarshalTo ¶ added in v0.30.0
func (m *AllowAllMessagesFilter) MarshalTo(dAtA []byte) (int, error)
func (*AllowAllMessagesFilter) MarshalToSizedBuffer ¶ added in v0.30.0
func (m *AllowAllMessagesFilter) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AllowAllMessagesFilter) ProtoMessage ¶ added in v0.30.0
func (*AllowAllMessagesFilter) ProtoMessage()
func (*AllowAllMessagesFilter) Reset ¶ added in v0.30.0
func (m *AllowAllMessagesFilter) Reset()
func (*AllowAllMessagesFilter) Size ¶ added in v0.30.0
func (m *AllowAllMessagesFilter) Size() (n int)
func (*AllowAllMessagesFilter) String ¶ added in v0.30.0
func (m *AllowAllMessagesFilter) String() string
func (*AllowAllMessagesFilter) Unmarshal ¶ added in v0.30.0
func (m *AllowAllMessagesFilter) Unmarshal(dAtA []byte) error
func (AllowAllMessagesFilter) ValidateBasic ¶ added in v0.30.0
func (f AllowAllMessagesFilter) ValidateBasic() error
ValidateBasic returns always nil
func (*AllowAllMessagesFilter) XXX_DiscardUnknown ¶ added in v0.30.0
func (m *AllowAllMessagesFilter) XXX_DiscardUnknown()
func (*AllowAllMessagesFilter) XXX_Marshal ¶ added in v0.30.0
func (m *AllowAllMessagesFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AllowAllMessagesFilter) XXX_Merge ¶ added in v0.30.0
func (m *AllowAllMessagesFilter) XXX_Merge(src proto.Message)
func (*AllowAllMessagesFilter) XXX_Size ¶ added in v0.30.0
func (m *AllowAllMessagesFilter) XXX_Size() int
func (*AllowAllMessagesFilter) XXX_Unmarshal ¶ added in v0.30.0
func (m *AllowAllMessagesFilter) XXX_Unmarshal(b []byte) error
type AuthorizationPolicy ¶ added in v0.41.0
type AuthorizationPolicy interface { CanCreateCode(chainConfigs ChainAccessConfigs, actor types.AccAddress, contractConfig AccessConfig) bool CanInstantiateContract(c AccessConfig, actor types.AccAddress) bool CanModifyContract(admin, actor types.AccAddress) bool CanModifyCodeAccessConfig(creator, actor types.AccAddress, isSubset bool) bool // SubMessageAuthorizationPolicy returns authorization policy to be used for submessages. Must never be nil SubMessageAuthorizationPolicy(entrypoint AuthorizationPolicyAction) AuthorizationPolicy }
AuthorizationPolicy is an abstract authorization ruleset defined as an extension point that can be customized by chains
func SubMsgAuthzPolicy ¶ added in v0.41.0
func SubMsgAuthzPolicy(ctx context.Context) (AuthorizationPolicy, bool)
SubMsgAuthzPolicy reads the authorization policy for submessages from the context
type AuthorizationPolicyAction ¶ added in v0.41.0
type AuthorizationPolicyAction uint64
const ( AuthZActionInstantiate AuthorizationPolicyAction AuthZActionMigrateContract )
type AuthzableWasmMsg ¶ added in v0.30.0
type AuthzableWasmMsg interface { GetFunds() sdk.Coins GetMsg() RawContractMessage GetContract() string ValidateBasic() error }
AuthzableWasmMsg is abstract wasm tx message that is supported in authz
type BankKeeper ¶
type BankKeeper interface { BankViewKeeper Burner IsSendEnabledCoins(ctx context.Context, coins ...sdk.Coin) error BlockedAddr(addr sdk.AccAddress) bool SendCoins(ctx context.Context, fromAddr, toAddr sdk.AccAddress, amt sdk.Coins) error }
BankKeeper defines a subset of methods implemented by the cosmos-sdk bank keeper
type BankViewKeeper ¶
type BankViewKeeper interface { GetAllBalances(ctx context.Context, addr sdk.AccAddress) sdk.Coins GetBalance(ctx context.Context, addr sdk.AccAddress, denom string) sdk.Coin GetSupply(ctx context.Context, denom string) sdk.Coin GetDenomMetaData(ctx context.Context, denom string) (banktypes.Metadata, bool) DenomsMetadata(ctx context.Context, req *banktypes.QueryDenomsMetadataRequest) (*banktypes.QueryDenomsMetadataResponse, error) }
BankViewKeeper defines a subset of methods implemented by the cosmos-sdk bank keeper
type Burner ¶
type Burner interface { BurnCoins(ctx context.Context, moduleName string, amt sdk.Coins) error SendCoinsFromAccountToModule(ctx context.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error }
Burner is a subset of the sdk bank keeper methods
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 ChainAccessConfigs ¶ added in v0.41.0
type ChainAccessConfigs struct { Upload AccessConfig Instantiate AccessConfig }
ChainAccessConfigs chain settings
func NewChainAccessConfigs ¶ added in v0.41.0
func NewChainAccessConfigs(upload, instantiate AccessConfig) ChainAccessConfigs
NewChainAccessConfigs constructor
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) ChanCloseInit(ctx sdk.Context, portID, channelID string, chanCap *capabilitytypes.Capability) error GetAllChannels(ctx sdk.Context) (channels []channeltypes.IdentifiedChannel) SetChannel(ctx sdk.Context, portID, channelID string, channel channeltypes.Channel) GetAllChannelsWithPortPrefix(ctx sdk.Context, portPrefix string) []channeltypes.IdentifiedChannel }
ChannelKeeper defines the expected IBC channel keeper
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 CodeGrant ¶ added in v0.42.0
type CodeGrant struct { // CodeHash is the unique identifier created by wasmvm // Wildcard "*" is used to specify any kind of grant. CodeHash []byte `protobuf:"bytes,1,opt,name=code_hash,json=codeHash,proto3" json:"code_hash,omitempty"` // InstantiatePermission is the superset access control to apply // on contract creation. // Optional InstantiatePermission *AccessConfig `protobuf:"bytes,2,opt,name=instantiate_permission,json=instantiatePermission,proto3" json:"instantiate_permission,omitempty"` }
CodeGrant a granted permission for a single code
func NewCodeGrant ¶ added in v0.42.0
func NewCodeGrant(codeHash []byte, instantiatePermission *AccessConfig) (*CodeGrant, error)
NewCodeGrant constructor
func (CodeGrant) Accept ¶ added in v0.42.0
func (g CodeGrant) Accept(checksum []byte, permission *AccessConfig) bool
Accept checks if checksum and permission match the grant
func (*CodeGrant) Descriptor ¶ added in v0.42.0
func (*CodeGrant) MarshalToSizedBuffer ¶ added in v0.42.0
func (*CodeGrant) ProtoMessage ¶ added in v0.42.0
func (*CodeGrant) ProtoMessage()
func (CodeGrant) ValidateBasic ¶ added in v0.42.0
ValidateBasic validates the grant
func (*CodeGrant) XXX_DiscardUnknown ¶ added in v0.42.0
func (m *CodeGrant) XXX_DiscardUnknown()
func (*CodeGrant) XXX_Marshal ¶ added in v0.42.0
func (*CodeGrant) XXX_Unmarshal ¶ added in v0.42.0
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.AccAddress, 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_cometbft_cometbft_libs_bytes.HexBytes `` /* 143-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 CombinedLimit ¶ added in v0.30.0
type CombinedLimit struct { // Remaining number that is decremented on each execution CallsRemaining uint64 `protobuf:"varint,1,opt,name=calls_remaining,json=callsRemaining,proto3" json:"calls_remaining,omitempty"` // Amounts is the maximal amount of tokens transferable to the contract. Amounts github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=amounts,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amounts"` }
CombinedLimit defines the maximal amounts that can be sent to a contract and the maximal number of calls executable. Both need to remain >0 to be valid. Since: wasmd 0.30
func NewCombinedLimit ¶ added in v0.30.0
func NewCombinedLimit(maxCalls uint64, maxAmounts ...sdk.Coin) *CombinedLimit
NewCombinedLimit constructor A panic will occur if the coin set is not valid.
func (CombinedLimit) Accept ¶ added in v0.30.0
func (l CombinedLimit) Accept(_ sdk.Context, msg AuthzableWasmMsg) (*ContractAuthzLimitAcceptResult, error)
Accept until the max calls is reached or the token budget is spent.
func (*CombinedLimit) Descriptor ¶ added in v0.30.0
func (*CombinedLimit) Descriptor() ([]byte, []int)
func (*CombinedLimit) Marshal ¶ added in v0.30.0
func (m *CombinedLimit) Marshal() (dAtA []byte, err error)
func (*CombinedLimit) MarshalTo ¶ added in v0.30.0
func (m *CombinedLimit) MarshalTo(dAtA []byte) (int, error)
func (*CombinedLimit) MarshalToSizedBuffer ¶ added in v0.30.0
func (m *CombinedLimit) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CombinedLimit) ProtoMessage ¶ added in v0.30.0
func (*CombinedLimit) ProtoMessage()
func (*CombinedLimit) Reset ¶ added in v0.30.0
func (m *CombinedLimit) Reset()
func (*CombinedLimit) Size ¶ added in v0.30.0
func (m *CombinedLimit) Size() (n int)
func (*CombinedLimit) String ¶ added in v0.30.0
func (m *CombinedLimit) String() string
func (*CombinedLimit) Unmarshal ¶ added in v0.30.0
func (m *CombinedLimit) Unmarshal(dAtA []byte) error
func (CombinedLimit) ValidateBasic ¶ added in v0.30.0
func (l CombinedLimit) ValidateBasic() error
ValidateBasic validates the limit
func (*CombinedLimit) XXX_DiscardUnknown ¶ added in v0.30.0
func (m *CombinedLimit) XXX_DiscardUnknown()
func (*CombinedLimit) XXX_Marshal ¶ added in v0.30.0
func (m *CombinedLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CombinedLimit) XXX_Merge ¶ added in v0.30.0
func (m *CombinedLimit) XXX_Merge(src proto.Message)
func (*CombinedLimit) XXX_Size ¶ added in v0.30.0
func (m *CombinedLimit) XXX_Size() int
func (*CombinedLimit) XXX_Unmarshal ¶ added in v0.30.0
func (m *CombinedLimit) 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"` ContractCodeHistory []ContractCodeHistoryEntry `protobuf:"bytes,4,rep,name=contract_code_history,json=contractCodeHistory,proto3" json:"contract_code_history"` }
Contract struct encompasses ContractAddress, ContractInfo, and ContractState
func ContractFixture ¶
func (*Contract) Descriptor ¶
func (*Contract) GetContractAddress ¶
func (*Contract) GetContractCodeHistory ¶ added in v0.30.0
func (m *Contract) GetContractCodeHistory() []ContractCodeHistoryEntry
func (*Contract) GetContractInfo ¶
func (m *Contract) GetContractInfo() ContractInfo
func (*Contract) GetContractState ¶
func (*Contract) MarshalToSizedBuffer ¶
func (*Contract) ProtoMessage ¶
func (*Contract) ProtoMessage()
func (*Contract) UnpackInterfaces ¶ added in v0.26.0
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 ContractAuthzFactory ¶ added in v0.30.0
type ContractAuthzFactory interface {
NewAuthz([]ContractGrant) authztypes.Authorization
}
ContractAuthzFactory factory to create an updated Authorization object
type ContractAuthzFilterX ¶ added in v0.30.0
type ContractAuthzFilterX interface { // Accept returns applicable or error Accept(ctx sdk.Context, msg RawContractMessage) (bool, error) ValidateBasic() error }
ContractAuthzFilterX define more fine-grained control on the message payload passed to the contract in the operation. When no filter applies on execution, the operation is prohibited.
type ContractAuthzLimitAcceptResult ¶ added in v0.30.0
type ContractAuthzLimitAcceptResult struct { // Accepted is true when limit applies Accepted bool // DeleteLimit when set it is the end of life for this limit. Grant is removed from persistent store DeleteLimit bool // UpdateLimit update persistent state with new value UpdateLimit ContractAuthzLimitX }
ContractAuthzLimitAcceptResult result of the ContractAuthzLimitX.Accept method
type ContractAuthzLimitX ¶ added in v0.30.0
type ContractAuthzLimitX interface { Accept(ctx sdk.Context, msg AuthzableWasmMsg) (*ContractAuthzLimitAcceptResult, error) ValidateBasic() error }
ContractAuthzLimitX define execution limits that are enforced and updated when the grant is applied. When the limit lapsed the grant is removed.
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 ContractCodeHistoryEntryFixture ¶ added in v0.30.0
func ContractCodeHistoryEntryFixture(mutators ...func(*ContractCodeHistoryEntry)) ContractCodeHistoryEntry
ContractCodeHistoryEntryFixture test fixture
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) ValidateBasic ¶ added in v0.30.0
func (c ContractCodeHistoryEntry) ValidateBasic() error
ValidateBasic syntax checks
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 ContractExecutionAuthorization ¶ added in v0.30.0
type ContractExecutionAuthorization struct { // Grants for contract executions Grants []ContractGrant `protobuf:"bytes,1,rep,name=grants,proto3" json:"grants"` }
ContractExecutionAuthorization defines authorization for wasm execute. Since: wasmd 0.30
func NewContractExecutionAuthorization ¶ added in v0.30.0
func NewContractExecutionAuthorization(grants ...ContractGrant) *ContractExecutionAuthorization
NewContractExecutionAuthorization constructor
func (*ContractExecutionAuthorization) Accept ¶ added in v0.30.0
func (a *ContractExecutionAuthorization) Accept(goCtx context.Context, msg sdk.Msg) (authztypes.AcceptResponse, error)
Accept implements Authorization.Accept.
func (*ContractExecutionAuthorization) Descriptor ¶ added in v0.30.0
func (*ContractExecutionAuthorization) Descriptor() ([]byte, []int)
func (*ContractExecutionAuthorization) Marshal ¶ added in v0.30.0
func (m *ContractExecutionAuthorization) Marshal() (dAtA []byte, err error)
func (*ContractExecutionAuthorization) MarshalTo ¶ added in v0.30.0
func (m *ContractExecutionAuthorization) MarshalTo(dAtA []byte) (int, error)
func (*ContractExecutionAuthorization) MarshalToSizedBuffer ¶ added in v0.30.0
func (m *ContractExecutionAuthorization) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (ContractExecutionAuthorization) MsgTypeURL ¶ added in v0.30.0
func (a ContractExecutionAuthorization) MsgTypeURL() string
MsgTypeURL implements Authorization.MsgTypeURL.
func (ContractExecutionAuthorization) NewAuthz ¶ added in v0.30.0
func (a ContractExecutionAuthorization) NewAuthz(g []ContractGrant) authztypes.Authorization
NewAuthz factory method to create an Authorization with updated grants
func (*ContractExecutionAuthorization) ProtoMessage ¶ added in v0.30.0
func (*ContractExecutionAuthorization) ProtoMessage()
func (*ContractExecutionAuthorization) Reset ¶ added in v0.30.0
func (m *ContractExecutionAuthorization) Reset()
func (*ContractExecutionAuthorization) Size ¶ added in v0.30.0
func (m *ContractExecutionAuthorization) Size() (n int)
func (*ContractExecutionAuthorization) String ¶ added in v0.30.0
func (m *ContractExecutionAuthorization) String() string
func (*ContractExecutionAuthorization) Unmarshal ¶ added in v0.30.0
func (m *ContractExecutionAuthorization) Unmarshal(dAtA []byte) error
func (ContractExecutionAuthorization) UnpackInterfaces ¶ added in v0.30.0
func (a ContractExecutionAuthorization) UnpackInterfaces(unpacker cdctypes.AnyUnpacker) error
UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces
func (ContractExecutionAuthorization) ValidateBasic ¶ added in v0.30.0
func (a ContractExecutionAuthorization) ValidateBasic() error
ValidateBasic implements Authorization.ValidateBasic.
func (*ContractExecutionAuthorization) XXX_DiscardUnknown ¶ added in v0.30.0
func (m *ContractExecutionAuthorization) XXX_DiscardUnknown()
func (*ContractExecutionAuthorization) XXX_Marshal ¶ added in v0.30.0
func (m *ContractExecutionAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ContractExecutionAuthorization) XXX_Merge ¶ added in v0.30.0
func (m *ContractExecutionAuthorization) XXX_Merge(src proto.Message)
func (*ContractExecutionAuthorization) XXX_Size ¶ added in v0.30.0
func (m *ContractExecutionAuthorization) XXX_Size() int
func (*ContractExecutionAuthorization) XXX_Unmarshal ¶ added in v0.30.0
func (m *ContractExecutionAuthorization) XXX_Unmarshal(b []byte) error
type ContractGrant ¶ added in v0.30.0
type ContractGrant struct { // Contract is the bech32 address of the smart contract Contract string `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"` // Limit defines execution limits that are enforced and updated when the grant // is applied. When the limit lapsed the grant is removed. Limit *types.Any `protobuf:"bytes,2,opt,name=limit,proto3" json:"limit,omitempty"` // Filter define more fine-grained control on the message payload passed // to the contract in the operation. When no filter applies on execution, the // operation is prohibited. Filter *types.Any `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"` }
ContractGrant a granted permission for a single contract Since: wasmd 0.30
func NewContractGrant ¶ added in v0.30.0
func NewContractGrant(contract sdk.AccAddress, limit ContractAuthzLimitX, filter ContractAuthzFilterX) (*ContractGrant, error)
NewContractGrant constructor
func (*ContractGrant) Descriptor ¶ added in v0.30.0
func (*ContractGrant) Descriptor() ([]byte, []int)
func (ContractGrant) GetFilter ¶ added in v0.30.0
func (g ContractGrant) GetFilter() ContractAuthzFilterX
GetFilter returns the cached value from the ContractGrant.Filter if present.
func (ContractGrant) GetLimit ¶ added in v0.30.0
func (g ContractGrant) GetLimit() ContractAuthzLimitX
GetLimit returns the cached value from the ContractGrant.Limit if present.
func (*ContractGrant) Marshal ¶ added in v0.30.0
func (m *ContractGrant) Marshal() (dAtA []byte, err error)
func (*ContractGrant) MarshalTo ¶ added in v0.30.0
func (m *ContractGrant) MarshalTo(dAtA []byte) (int, error)
func (*ContractGrant) MarshalToSizedBuffer ¶ added in v0.30.0
func (m *ContractGrant) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ContractGrant) ProtoMessage ¶ added in v0.30.0
func (*ContractGrant) ProtoMessage()
func (*ContractGrant) Reset ¶ added in v0.30.0
func (m *ContractGrant) Reset()
func (*ContractGrant) Size ¶ added in v0.30.0
func (m *ContractGrant) Size() (n int)
func (*ContractGrant) String ¶ added in v0.30.0
func (m *ContractGrant) String() string
func (*ContractGrant) Unmarshal ¶ added in v0.30.0
func (m *ContractGrant) Unmarshal(dAtA []byte) error
func (ContractGrant) UnpackInterfaces ¶ added in v0.30.0
func (g ContractGrant) UnpackInterfaces(unpacker cdctypes.AnyUnpacker) error
UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces
func (ContractGrant) ValidateBasic ¶ added in v0.30.0
func (g ContractGrant) ValidateBasic() error
ValidateBasic validates the grant
func (ContractGrant) WithNewLimits ¶ added in v0.30.0
func (g ContractGrant) WithNewLimits(limit ContractAuthzLimitX) (*ContractGrant, error)
WithNewLimits factory method to create a new grant with given limit
func (*ContractGrant) XXX_DiscardUnknown ¶ added in v0.30.0
func (m *ContractGrant) XXX_DiscardUnknown()
func (*ContractGrant) XXX_Marshal ¶ added in v0.30.0
func (m *ContractGrant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ContractGrant) XXX_Merge ¶ added in v0.30.0
func (m *ContractGrant) XXX_Merge(src proto.Message)
func (*ContractGrant) XXX_Size ¶ added in v0.30.0
func (m *ContractGrant) XXX_Size() int
func (*ContractGrant) XXX_Unmarshal ¶ added in v0.30.0
func (m *ContractGrant) XXX_Unmarshal(b []byte) error
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. 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.AccAddress, 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.AccAddress
AdminAddr convert into sdk.AccAddress 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, errorsmod.Wrap(err, "extension") }
func (*ContractInfo) Reset ¶
func (m *ContractInfo) Reset()
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 ContractMigrationAuthorization ¶ added in v0.30.0
type ContractMigrationAuthorization struct { // Grants for contract migrations Grants []ContractGrant `protobuf:"bytes,1,rep,name=grants,proto3" json:"grants"` }
ContractMigrationAuthorization defines authorization for wasm contract migration. Since: wasmd 0.30
func NewContractMigrationAuthorization ¶ added in v0.30.0
func NewContractMigrationAuthorization(grants ...ContractGrant) *ContractMigrationAuthorization
NewContractMigrationAuthorization constructor
func (*ContractMigrationAuthorization) Accept ¶ added in v0.30.0
func (a *ContractMigrationAuthorization) Accept(goCtx context.Context, msg sdk.Msg) (authztypes.AcceptResponse, error)
Accept implements Authorization.Accept.
func (*ContractMigrationAuthorization) Descriptor ¶ added in v0.30.0
func (*ContractMigrationAuthorization) Descriptor() ([]byte, []int)
func (*ContractMigrationAuthorization) Marshal ¶ added in v0.30.0
func (m *ContractMigrationAuthorization) Marshal() (dAtA []byte, err error)
func (*ContractMigrationAuthorization) MarshalTo ¶ added in v0.30.0
func (m *ContractMigrationAuthorization) MarshalTo(dAtA []byte) (int, error)
func (*ContractMigrationAuthorization) MarshalToSizedBuffer ¶ added in v0.30.0
func (m *ContractMigrationAuthorization) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (ContractMigrationAuthorization) MsgTypeURL ¶ added in v0.30.0
func (a ContractMigrationAuthorization) MsgTypeURL() string
MsgTypeURL implements Authorization.MsgTypeURL.
func (ContractMigrationAuthorization) NewAuthz ¶ added in v0.30.0
func (a ContractMigrationAuthorization) NewAuthz(g []ContractGrant) authztypes.Authorization
NewAuthz factory method to create an Authorization with updated grants
func (*ContractMigrationAuthorization) ProtoMessage ¶ added in v0.30.0
func (*ContractMigrationAuthorization) ProtoMessage()
func (*ContractMigrationAuthorization) Reset ¶ added in v0.30.0
func (m *ContractMigrationAuthorization) Reset()
func (*ContractMigrationAuthorization) Size ¶ added in v0.30.0
func (m *ContractMigrationAuthorization) Size() (n int)
func (*ContractMigrationAuthorization) String ¶ added in v0.30.0
func (m *ContractMigrationAuthorization) String() string
func (*ContractMigrationAuthorization) Unmarshal ¶ added in v0.30.0
func (m *ContractMigrationAuthorization) Unmarshal(dAtA []byte) error
func (ContractMigrationAuthorization) UnpackInterfaces ¶ added in v0.30.0
func (a ContractMigrationAuthorization) UnpackInterfaces(unpacker cdctypes.AnyUnpacker) error
UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces
func (ContractMigrationAuthorization) ValidateBasic ¶ added in v0.30.0
func (a ContractMigrationAuthorization) ValidateBasic() error
ValidateBasic implements Authorization.ValidateBasic.
func (*ContractMigrationAuthorization) XXX_DiscardUnknown ¶ added in v0.30.0
func (m *ContractMigrationAuthorization) XXX_DiscardUnknown()
func (*ContractMigrationAuthorization) XXX_Marshal ¶ added in v0.30.0
func (m *ContractMigrationAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ContractMigrationAuthorization) XXX_Merge ¶ added in v0.30.0
func (m *ContractMigrationAuthorization) XXX_Merge(src proto.Message)
func (*ContractMigrationAuthorization) XXX_Size ¶ added in v0.30.0
func (m *ContractMigrationAuthorization) XXX_Size() int
func (*ContractMigrationAuthorization) XXX_Unmarshal ¶ added in v0.30.0
func (m *ContractMigrationAuthorization) 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.AccAddress, wasmCode []byte, instantiateAccess *AccessConfig) (codeID uint64, checksum []byte, err error) // Instantiate creates an instance of a WASM contract using the classic sequence based address generator Instantiate( ctx sdk.Context, codeID uint64, creator, admin sdk.AccAddress, initMsg []byte, label string, deposit sdk.Coins, ) (sdk.AccAddress, []byte, error) // Instantiate2 creates an instance of a WASM contract using the predictable address generator Instantiate2( ctx sdk.Context, codeID uint64, creator, admin sdk.AccAddress, initMsg []byte, label string, deposit sdk.Coins, salt []byte, fixMsg bool, ) (sdk.AccAddress, []byte, error) // Execute executes the contract instance Execute(ctx sdk.Context, contractAddress, caller sdk.AccAddress, 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, caller sdk.AccAddress, newCodeID uint64, msg []byte) ([]byte, error) // Sudo allows to call privileged entry point of a contract. Sudo(ctx sdk.Context, contractAddress sdk.AccAddress, 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, caller, newAdmin sdk.AccAddress) error // ClearContractAdmin sets the admin value on the ContractInfo to nil, to disable further migrations/ updates. ClearContractAdmin(ctx sdk.Context, contractAddress, caller sdk.AccAddress) 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.AccAddress, extra ContractInfoExtension) error // SetAccessConfig updates the access config of a code id. SetAccessConfig(ctx sdk.Context, codeID uint64, caller sdk.AccAddress, newConfig AccessConfig) error }
ContractOpsKeeper contains mutable operations on a contract.
type DistributionKeeper ¶
type DistributionKeeper interface { DelegatorWithdrawAddress(c context.Context, req *distrtypes.QueryDelegatorWithdrawAddressRequest) (*distrtypes.QueryDelegatorWithdrawAddressResponse, error) DelegationRewards(c context.Context, req *distrtypes.QueryDelegationRewardsRequest) (*distrtypes.QueryDelegationRewardsResponse, error) DelegationTotalRewards(c context.Context, req *distrtypes.QueryDelegationTotalRewardsRequest) (*distrtypes.QueryDelegationTotalRewardsResponse, error) DelegatorValidators(c context.Context, req *distrtypes.QueryDelegatorValidatorsRequest) (*distrtypes.QueryDelegatorValidatorsResponse, error) }
DistributionKeeper defines a subset of methods implemented by the cosmos-sdk distribution keeper
type GasRegister ¶ added in v0.42.0
type GasRegister interface { // NewContractInstanceCosts costs to create a new contract instance from code NewContractInstanceCosts(pinned bool, msgLen int) storetypes.Gas // CompileCosts costs to persist and "compile" a new wasm contract CompileCosts(byteLength int) storetypes.Gas // UncompressCosts costs to unpack a new wasm contract UncompressCosts(byteLength int) storetypes.Gas // InstantiateContractCosts costs when interacting with a wasm contract InstantiateContractCosts(pinned bool, msgLen int) storetypes.Gas // ReplyCosts costs to to handle a message reply ReplyCosts(pinned bool, reply wasmvmtypes.Reply) storetypes.Gas // EventCosts costs to persist an event EventCosts(attrs []wasmvmtypes.EventAttribute, events wasmvmtypes.Events) storetypes.Gas // ToWasmVMGas converts from Cosmos SDK gas units to [CosmWasm gas] (aka. wasmvm gas) // // [CosmWasm gas]: https://github.com/CosmWasm/cosmwasm/blob/v1.3.1/docs/GAS.md ToWasmVMGas(source storetypes.Gas) uint64 // FromWasmVMGas converts from [CosmWasm gas] (aka. wasmvm gas) to Cosmos SDK gas units // // [CosmWasm gas]: https://github.com/CosmWasm/cosmwasm/blob/v1.3.1/docs/GAS.md FromWasmVMGas(source uint64) storetypes.Gas }
GasRegister abstract source for gas costs
func GasRegisterFromContext ¶ added in v0.42.0
func GasRegisterFromContext(ctx context.Context) (GasRegister, bool)
GasRegisterFromContext reads the gas register from the context
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"` }
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) 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 ¶ added in v0.26.0
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 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, ) (ibcexported.Acknowledgement, 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 ICS4Wrapper ¶ added in v0.32.0
type ICS4Wrapper interface { // SendPacket is called by a module in order to send an IBC packet on a channel. // The packet sequence generated for the packet to be sent is returned. An error // is returned if one occurs. SendPacket( ctx sdk.Context, channelCap *capabilitytypes.Capability, sourcePort string, sourceChannel string, timeoutHeight clienttypes.Height, timeoutTimestamp uint64, data []byte, ) (uint64, error) }
ICS4Wrapper defines the method for an IBC data package to be submitted. The interface is implemented by the channel keeper on the lowest level in ibc-go. Middlewares or other abstractions can add functionality on top of it. See ics4Wrapper in ibc-go. It is important to choose the right implementation that is configured for any middleware used in the ibc-stack of wasm.
For example, when ics-29 fee middleware is set up for the wasm ibc-stack, then the IBCFeeKeeper should be used, so that they are in sync.
type MaxCallsLimit ¶ added in v0.30.0
type MaxCallsLimit struct { // Remaining number that is decremented on each execution Remaining uint64 `protobuf:"varint,1,opt,name=remaining,proto3" json:"remaining,omitempty"` }
MaxCallsLimit limited number of calls to the contract. No funds transferable. Since: wasmd 0.30
func NewMaxCallsLimit ¶ added in v0.30.0
func NewMaxCallsLimit(number uint64) *MaxCallsLimit
NewMaxCallsLimit constructor
func (MaxCallsLimit) Accept ¶ added in v0.30.0
func (m MaxCallsLimit) Accept(_ sdk.Context, msg AuthzableWasmMsg) (*ContractAuthzLimitAcceptResult, error)
Accept only the defined number of message calls. No token transfers to the contract allowed.
func (*MaxCallsLimit) Descriptor ¶ added in v0.30.0
func (*MaxCallsLimit) Descriptor() ([]byte, []int)
func (*MaxCallsLimit) Marshal ¶ added in v0.30.0
func (m *MaxCallsLimit) Marshal() (dAtA []byte, err error)
func (*MaxCallsLimit) MarshalTo ¶ added in v0.30.0
func (m *MaxCallsLimit) MarshalTo(dAtA []byte) (int, error)
func (*MaxCallsLimit) MarshalToSizedBuffer ¶ added in v0.30.0
func (m *MaxCallsLimit) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MaxCallsLimit) ProtoMessage ¶ added in v0.30.0
func (*MaxCallsLimit) ProtoMessage()
func (*MaxCallsLimit) Reset ¶ added in v0.30.0
func (m *MaxCallsLimit) Reset()
func (*MaxCallsLimit) Size ¶ added in v0.30.0
func (m *MaxCallsLimit) Size() (n int)
func (*MaxCallsLimit) String ¶ added in v0.30.0
func (m *MaxCallsLimit) String() string
func (*MaxCallsLimit) Unmarshal ¶ added in v0.30.0
func (m *MaxCallsLimit) Unmarshal(dAtA []byte) error
func (MaxCallsLimit) ValidateBasic ¶ added in v0.30.0
func (m MaxCallsLimit) ValidateBasic() error
ValidateBasic validates the limit
func (*MaxCallsLimit) XXX_DiscardUnknown ¶ added in v0.30.0
func (m *MaxCallsLimit) XXX_DiscardUnknown()
func (*MaxCallsLimit) XXX_Marshal ¶ added in v0.30.0
func (m *MaxCallsLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MaxCallsLimit) XXX_Merge ¶ added in v0.30.0
func (m *MaxCallsLimit) XXX_Merge(src proto.Message)
func (*MaxCallsLimit) XXX_Size ¶ added in v0.30.0
func (m *MaxCallsLimit) XXX_Size() int
func (*MaxCallsLimit) XXX_Unmarshal ¶ added in v0.30.0
func (m *MaxCallsLimit) XXX_Unmarshal(b []byte) error
type MaxFundsLimit ¶ added in v0.30.0
type MaxFundsLimit struct { // Amounts is the maximal amount of tokens transferable to the contract. Amounts github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=amounts,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amounts"` }
MaxFundsLimit defines the maximal amounts that can be sent to the contract. Since: wasmd 0.30
func NewMaxFundsLimit ¶ added in v0.30.0
func NewMaxFundsLimit(max ...sdk.Coin) *MaxFundsLimit
NewMaxFundsLimit constructor A panic will occur if the coin set is not valid.
func (MaxFundsLimit) Accept ¶ added in v0.30.0
func (m MaxFundsLimit) Accept(_ sdk.Context, msg AuthzableWasmMsg) (*ContractAuthzLimitAcceptResult, error)
Accept until the defined budget for token transfers to the contract is spent
func (*MaxFundsLimit) Descriptor ¶ added in v0.30.0
func (*MaxFundsLimit) Descriptor() ([]byte, []int)
func (*MaxFundsLimit) Marshal ¶ added in v0.30.0
func (m *MaxFundsLimit) Marshal() (dAtA []byte, err error)
func (*MaxFundsLimit) MarshalTo ¶ added in v0.30.0
func (m *MaxFundsLimit) MarshalTo(dAtA []byte) (int, error)
func (*MaxFundsLimit) MarshalToSizedBuffer ¶ added in v0.30.0
func (m *MaxFundsLimit) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MaxFundsLimit) ProtoMessage ¶ added in v0.30.0
func (*MaxFundsLimit) ProtoMessage()
func (*MaxFundsLimit) Reset ¶ added in v0.30.0
func (m *MaxFundsLimit) Reset()
func (*MaxFundsLimit) Size ¶ added in v0.30.0
func (m *MaxFundsLimit) Size() (n int)
func (*MaxFundsLimit) String ¶ added in v0.30.0
func (m *MaxFundsLimit) String() string
func (*MaxFundsLimit) Unmarshal ¶ added in v0.30.0
func (m *MaxFundsLimit) Unmarshal(dAtA []byte) error
func (MaxFundsLimit) ValidateBasic ¶ added in v0.30.0
func (m MaxFundsLimit) ValidateBasic() error
ValidateBasic validates the limit
func (*MaxFundsLimit) XXX_DiscardUnknown ¶ added in v0.30.0
func (m *MaxFundsLimit) XXX_DiscardUnknown()
func (*MaxFundsLimit) XXX_Marshal ¶ added in v0.30.0
func (m *MaxFundsLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MaxFundsLimit) XXX_Merge ¶ added in v0.30.0
func (m *MaxFundsLimit) XXX_Merge(src proto.Message)
func (*MaxFundsLimit) XXX_Size ¶ added in v0.30.0
func (m *MaxFundsLimit) XXX_Size() int
func (*MaxFundsLimit) XXX_Unmarshal ¶ added in v0.30.0
func (m *MaxFundsLimit) XXX_Unmarshal(b []byte) error
type Model ¶
type Model struct { // hex-encode key to read it better (this is often ascii) Key github_com_cometbft_cometbft_libs_bytes.HexBytes `protobuf:"bytes,1,opt,name=key,proto3,casttype=github.com/cometbft/cometbft/libs/bytes.HexBytes" json:"key,omitempty"` // base64-encode raw value Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` }
Model is a struct that holds a KV pair
func (*Model) Descriptor ¶
func (*Model) ProtoMessage ¶
func (*Model) ProtoMessage()
func (Model) ValidateBasic ¶
func (*Model) XXX_DiscardUnknown ¶
func (m *Model) XXX_DiscardUnknown()
func (*Model) XXX_Marshal ¶
func (*Model) XXX_Unmarshal ¶
type MsgAddCodeUploadParamsAddresses ¶ added in v0.41.0
type MsgAddCodeUploadParamsAddresses struct { // Authority is the address of the governance account. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` Addresses []string `protobuf:"bytes,2,rep,name=addresses,proto3" json:"addresses,omitempty" yaml:"addresses"` }
MsgAddCodeUploadParamsAddresses is the MsgAddCodeUploadParamsAddresses request type.
func (*MsgAddCodeUploadParamsAddresses) Descriptor ¶ added in v0.41.0
func (*MsgAddCodeUploadParamsAddresses) Descriptor() ([]byte, []int)
func (MsgAddCodeUploadParamsAddresses) GetSigners ¶ added in v0.41.0
func (msg MsgAddCodeUploadParamsAddresses) GetSigners() []sdk.AccAddress
func (*MsgAddCodeUploadParamsAddresses) Marshal ¶ added in v0.41.0
func (m *MsgAddCodeUploadParamsAddresses) Marshal() (dAtA []byte, err error)
func (*MsgAddCodeUploadParamsAddresses) MarshalTo ¶ added in v0.41.0
func (m *MsgAddCodeUploadParamsAddresses) MarshalTo(dAtA []byte) (int, error)
func (*MsgAddCodeUploadParamsAddresses) MarshalToSizedBuffer ¶ added in v0.41.0
func (m *MsgAddCodeUploadParamsAddresses) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddCodeUploadParamsAddresses) ProtoMessage ¶ added in v0.41.0
func (*MsgAddCodeUploadParamsAddresses) ProtoMessage()
func (*MsgAddCodeUploadParamsAddresses) Reset ¶ added in v0.41.0
func (m *MsgAddCodeUploadParamsAddresses) Reset()
func (MsgAddCodeUploadParamsAddresses) Route ¶ added in v0.41.0
func (msg MsgAddCodeUploadParamsAddresses) Route() string
func (*MsgAddCodeUploadParamsAddresses) Size ¶ added in v0.41.0
func (m *MsgAddCodeUploadParamsAddresses) Size() (n int)
func (*MsgAddCodeUploadParamsAddresses) String ¶ added in v0.41.0
func (m *MsgAddCodeUploadParamsAddresses) String() string
func (MsgAddCodeUploadParamsAddresses) Type ¶ added in v0.41.0
func (msg MsgAddCodeUploadParamsAddresses) Type() string
func (*MsgAddCodeUploadParamsAddresses) Unmarshal ¶ added in v0.41.0
func (m *MsgAddCodeUploadParamsAddresses) Unmarshal(dAtA []byte) error
func (MsgAddCodeUploadParamsAddresses) ValidateBasic ¶ added in v0.41.0
func (msg MsgAddCodeUploadParamsAddresses) ValidateBasic() error
func (*MsgAddCodeUploadParamsAddresses) XXX_DiscardUnknown ¶ added in v0.41.0
func (m *MsgAddCodeUploadParamsAddresses) XXX_DiscardUnknown()
func (*MsgAddCodeUploadParamsAddresses) XXX_Marshal ¶ added in v0.41.0
func (m *MsgAddCodeUploadParamsAddresses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddCodeUploadParamsAddresses) XXX_Merge ¶ added in v0.41.0
func (m *MsgAddCodeUploadParamsAddresses) XXX_Merge(src proto.Message)
func (*MsgAddCodeUploadParamsAddresses) XXX_Size ¶ added in v0.41.0
func (m *MsgAddCodeUploadParamsAddresses) XXX_Size() int
func (*MsgAddCodeUploadParamsAddresses) XXX_Unmarshal ¶ added in v0.41.0
func (m *MsgAddCodeUploadParamsAddresses) XXX_Unmarshal(b []byte) error
type MsgAddCodeUploadParamsAddressesResponse ¶ added in v0.41.0
type MsgAddCodeUploadParamsAddressesResponse struct{}
MsgAddCodeUploadParamsAddressesResponse defines the response structure for executing a MsgAddCodeUploadParamsAddresses message.
func (*MsgAddCodeUploadParamsAddressesResponse) Descriptor ¶ added in v0.41.0
func (*MsgAddCodeUploadParamsAddressesResponse) Descriptor() ([]byte, []int)
func (*MsgAddCodeUploadParamsAddressesResponse) Marshal ¶ added in v0.41.0
func (m *MsgAddCodeUploadParamsAddressesResponse) Marshal() (dAtA []byte, err error)
func (*MsgAddCodeUploadParamsAddressesResponse) MarshalTo ¶ added in v0.41.0
func (m *MsgAddCodeUploadParamsAddressesResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgAddCodeUploadParamsAddressesResponse) MarshalToSizedBuffer ¶ added in v0.41.0
func (m *MsgAddCodeUploadParamsAddressesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddCodeUploadParamsAddressesResponse) ProtoMessage ¶ added in v0.41.0
func (*MsgAddCodeUploadParamsAddressesResponse) ProtoMessage()
func (*MsgAddCodeUploadParamsAddressesResponse) Reset ¶ added in v0.41.0
func (m *MsgAddCodeUploadParamsAddressesResponse) Reset()
func (*MsgAddCodeUploadParamsAddressesResponse) Size ¶ added in v0.41.0
func (m *MsgAddCodeUploadParamsAddressesResponse) Size() (n int)
func (*MsgAddCodeUploadParamsAddressesResponse) String ¶ added in v0.41.0
func (m *MsgAddCodeUploadParamsAddressesResponse) String() string
func (*MsgAddCodeUploadParamsAddressesResponse) Unmarshal ¶ added in v0.41.0
func (m *MsgAddCodeUploadParamsAddressesResponse) Unmarshal(dAtA []byte) error
func (*MsgAddCodeUploadParamsAddressesResponse) XXX_DiscardUnknown ¶ added in v0.41.0
func (m *MsgAddCodeUploadParamsAddressesResponse) XXX_DiscardUnknown()
func (*MsgAddCodeUploadParamsAddressesResponse) XXX_Marshal ¶ added in v0.41.0
func (m *MsgAddCodeUploadParamsAddressesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddCodeUploadParamsAddressesResponse) XXX_Merge ¶ added in v0.41.0
func (m *MsgAddCodeUploadParamsAddressesResponse) XXX_Merge(src proto.Message)
func (*MsgAddCodeUploadParamsAddressesResponse) XXX_Size ¶ added in v0.41.0
func (m *MsgAddCodeUploadParamsAddressesResponse) XXX_Size() int
func (*MsgAddCodeUploadParamsAddressesResponse) XXX_Unmarshal ¶ added in v0.41.0
func (m *MsgAddCodeUploadParamsAddressesResponse) XXX_Unmarshal(b []byte) error
type MsgClearAdmin ¶
type MsgClearAdmin struct { // Sender is the 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) 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) // InstantiateContract creates a new smart contract instance for the given // code id. InstantiateContract(ctx context.Context, in *MsgInstantiateContract, opts ...grpc.CallOption) (*MsgInstantiateContractResponse, error) // InstantiateContract2 creates a new smart contract instance for the given // code id with a predictable address InstantiateContract2(ctx context.Context, in *MsgInstantiateContract2, opts ...grpc.CallOption) (*MsgInstantiateContract2Response, 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) // UpdateInstantiateConfig updates instantiate config for a smart contract UpdateInstantiateConfig(ctx context.Context, in *MsgUpdateInstantiateConfig, opts ...grpc.CallOption) (*MsgUpdateInstantiateConfigResponse, error) // UpdateParams defines a governance operation for updating the x/wasm // module parameters. The authority is defined in the keeper. // // Since: 0.40 UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) // SudoContract defines a governance operation for calling sudo // on a contract. The authority is defined in the keeper. // // Since: 0.40 SudoContract(ctx context.Context, in *MsgSudoContract, opts ...grpc.CallOption) (*MsgSudoContractResponse, error) // PinCodes defines a governance operation for pinning a set of // code ids in the wasmvm cache. The authority is defined in the keeper. // // Since: 0.40 PinCodes(ctx context.Context, in *MsgPinCodes, opts ...grpc.CallOption) (*MsgPinCodesResponse, error) // UnpinCodes defines a governance operation for unpinning a set of // code ids in the wasmvm cache. The authority is defined in the keeper. // // Since: 0.40 UnpinCodes(ctx context.Context, in *MsgUnpinCodes, opts ...grpc.CallOption) (*MsgUnpinCodesResponse, error) // StoreAndInstantiateContract defines a governance operation for storing // and instantiating the contract. The authority is defined in the keeper. // // Since: 0.40 StoreAndInstantiateContract(ctx context.Context, in *MsgStoreAndInstantiateContract, opts ...grpc.CallOption) (*MsgStoreAndInstantiateContractResponse, error) // RemoveCodeUploadParamsAddresses defines a governance operation for // removing addresses from code upload params. // The authority is defined in the keeper. RemoveCodeUploadParamsAddresses(ctx context.Context, in *MsgRemoveCodeUploadParamsAddresses, opts ...grpc.CallOption) (*MsgRemoveCodeUploadParamsAddressesResponse, error) // AddCodeUploadParamsAddresses defines a governance operation for // adding addresses to code upload params. // The authority is defined in the keeper. AddCodeUploadParamsAddresses(ctx context.Context, in *MsgAddCodeUploadParamsAddresses, opts ...grpc.CallOption) (*MsgAddCodeUploadParamsAddressesResponse, error) // StoreAndMigrateContract defines a governance operation for storing // and migrating the contract. The authority is defined in the keeper. // // Since: 0.42 StoreAndMigrateContract(ctx context.Context, in *MsgStoreAndMigrateContract, opts ...grpc.CallOption) (*MsgStoreAndMigrateContractResponse, error) // UpdateContractLabel sets a new label for a smart contract // // Since: 0.43 UpdateContractLabel(ctx context.Context, in *MsgUpdateContractLabel, opts ...grpc.CallOption) (*MsgUpdateContractLabelResponse, 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.Coins `protobuf:"bytes,5,rep,name=funds,proto3,castrepeated=github.com/cosmos/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) GetContract ¶ added in v0.30.0
func (msg MsgExecuteContract) GetContract() string
GetContract returns the bech32 address of the contract
func (MsgExecuteContract) GetFunds ¶ added in v0.30.0
func (msg MsgExecuteContract) GetFunds() sdk.Coins
GetFunds returns tokens send to the contract
func (MsgExecuteContract) GetMsg ¶ added in v0.30.0
func (msg MsgExecuteContract) GetMsg() RawContractMessage
GetMsg returns the payload message send to the contract
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 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) 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) 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 MsgIBCSendResponse ¶ added in v0.31.0
type MsgIBCSendResponse struct { // Sequence number of the IBC packet sent Sequence uint64 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"` }
MsgIBCSendResponse
func (*MsgIBCSendResponse) Descriptor ¶ added in v0.31.0
func (*MsgIBCSendResponse) Descriptor() ([]byte, []int)
func (*MsgIBCSendResponse) Marshal ¶ added in v0.31.0
func (m *MsgIBCSendResponse) Marshal() (dAtA []byte, err error)
func (*MsgIBCSendResponse) MarshalTo ¶ added in v0.31.0
func (m *MsgIBCSendResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgIBCSendResponse) MarshalToSizedBuffer ¶ added in v0.31.0
func (m *MsgIBCSendResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgIBCSendResponse) ProtoMessage ¶ added in v0.31.0
func (*MsgIBCSendResponse) ProtoMessage()
func (*MsgIBCSendResponse) Reset ¶ added in v0.31.0
func (m *MsgIBCSendResponse) Reset()
func (*MsgIBCSendResponse) Size ¶ added in v0.31.0
func (m *MsgIBCSendResponse) Size() (n int)
func (*MsgIBCSendResponse) String ¶ added in v0.31.0
func (m *MsgIBCSendResponse) String() string
func (*MsgIBCSendResponse) Unmarshal ¶ added in v0.31.0
func (m *MsgIBCSendResponse) Unmarshal(dAtA []byte) error
func (*MsgIBCSendResponse) XXX_DiscardUnknown ¶ added in v0.31.0
func (m *MsgIBCSendResponse) XXX_DiscardUnknown()
func (*MsgIBCSendResponse) XXX_Marshal ¶ added in v0.31.0
func (m *MsgIBCSendResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgIBCSendResponse) XXX_Merge ¶ added in v0.31.0
func (m *MsgIBCSendResponse) XXX_Merge(src proto.Message)
func (*MsgIBCSendResponse) XXX_Size ¶ added in v0.31.0
func (m *MsgIBCSendResponse) XXX_Size() int
func (*MsgIBCSendResponse) XXX_Unmarshal ¶ added in v0.31.0
func (m *MsgIBCSendResponse) 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.Coins `protobuf:"bytes,6,rep,name=funds,proto3,castrepeated=github.com/cosmos/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) 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 MsgInstantiateContract2 ¶ added in v0.29.0
type MsgInstantiateContract2 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.Coins `protobuf:"bytes,6,rep,name=funds,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"funds"` // Salt is an arbitrary value provided by the sender. Size can be 1 to 64. Salt []byte `protobuf:"bytes,7,opt,name=salt,proto3" json:"salt,omitempty"` // FixMsg include the msg value into the hash for the predictable address. // Default is false FixMsg bool `protobuf:"varint,8,opt,name=fix_msg,json=fixMsg,proto3" json:"fix_msg,omitempty"` }
MsgInstantiateContract2 create a new smart contract instance for the given code id with a predicable address.
func (*MsgInstantiateContract2) Descriptor ¶ added in v0.29.0
func (*MsgInstantiateContract2) Descriptor() ([]byte, []int)
func (MsgInstantiateContract2) GetSigners ¶ added in v0.29.0
func (msg MsgInstantiateContract2) GetSigners() []sdk.AccAddress
func (*MsgInstantiateContract2) Marshal ¶ added in v0.29.0
func (m *MsgInstantiateContract2) Marshal() (dAtA []byte, err error)
func (*MsgInstantiateContract2) MarshalTo ¶ added in v0.29.0
func (m *MsgInstantiateContract2) MarshalTo(dAtA []byte) (int, error)
func (*MsgInstantiateContract2) MarshalToSizedBuffer ¶ added in v0.29.0
func (m *MsgInstantiateContract2) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgInstantiateContract2) ProtoMessage ¶ added in v0.29.0
func (*MsgInstantiateContract2) ProtoMessage()
func (*MsgInstantiateContract2) Reset ¶ added in v0.29.0
func (m *MsgInstantiateContract2) Reset()
func (MsgInstantiateContract2) Route ¶ added in v0.29.0
func (msg MsgInstantiateContract2) Route() string
func (*MsgInstantiateContract2) Size ¶ added in v0.29.0
func (m *MsgInstantiateContract2) Size() (n int)
func (*MsgInstantiateContract2) String ¶ added in v0.29.0
func (m *MsgInstantiateContract2) String() string
func (MsgInstantiateContract2) Type ¶ added in v0.29.0
func (msg MsgInstantiateContract2) Type() string
func (*MsgInstantiateContract2) Unmarshal ¶ added in v0.29.0
func (m *MsgInstantiateContract2) Unmarshal(dAtA []byte) error
func (MsgInstantiateContract2) ValidateBasic ¶ added in v0.29.0
func (msg MsgInstantiateContract2) ValidateBasic() error
func (*MsgInstantiateContract2) XXX_DiscardUnknown ¶ added in v0.29.0
func (m *MsgInstantiateContract2) XXX_DiscardUnknown()
func (*MsgInstantiateContract2) XXX_Marshal ¶ added in v0.29.0
func (m *MsgInstantiateContract2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgInstantiateContract2) XXX_Merge ¶ added in v0.29.0
func (m *MsgInstantiateContract2) XXX_Merge(src proto.Message)
func (*MsgInstantiateContract2) XXX_Size ¶ added in v0.29.0
func (m *MsgInstantiateContract2) XXX_Size() int
func (*MsgInstantiateContract2) XXX_Unmarshal ¶ added in v0.29.0
func (m *MsgInstantiateContract2) XXX_Unmarshal(b []byte) error
type MsgInstantiateContract2Response ¶ added in v0.29.0
type MsgInstantiateContract2Response 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 bytes to returned from the contract Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` }
MsgInstantiateContract2Response return instantiation result data
func (*MsgInstantiateContract2Response) Descriptor ¶ added in v0.29.0
func (*MsgInstantiateContract2Response) Descriptor() ([]byte, []int)
func (*MsgInstantiateContract2Response) Marshal ¶ added in v0.29.0
func (m *MsgInstantiateContract2Response) Marshal() (dAtA []byte, err error)
func (*MsgInstantiateContract2Response) MarshalTo ¶ added in v0.29.0
func (m *MsgInstantiateContract2Response) MarshalTo(dAtA []byte) (int, error)
func (*MsgInstantiateContract2Response) MarshalToSizedBuffer ¶ added in v0.29.0
func (m *MsgInstantiateContract2Response) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgInstantiateContract2Response) ProtoMessage ¶ added in v0.29.0
func (*MsgInstantiateContract2Response) ProtoMessage()
func (*MsgInstantiateContract2Response) Reset ¶ added in v0.29.0
func (m *MsgInstantiateContract2Response) Reset()
func (*MsgInstantiateContract2Response) Size ¶ added in v0.29.0
func (m *MsgInstantiateContract2Response) Size() (n int)
func (*MsgInstantiateContract2Response) String ¶ added in v0.29.0
func (m *MsgInstantiateContract2Response) String() string
func (*MsgInstantiateContract2Response) Unmarshal ¶ added in v0.29.0
func (m *MsgInstantiateContract2Response) Unmarshal(dAtA []byte) error
func (*MsgInstantiateContract2Response) XXX_DiscardUnknown ¶ added in v0.29.0
func (m *MsgInstantiateContract2Response) XXX_DiscardUnknown()
func (*MsgInstantiateContract2Response) XXX_Marshal ¶ added in v0.29.0
func (m *MsgInstantiateContract2Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgInstantiateContract2Response) XXX_Merge ¶ added in v0.29.0
func (m *MsgInstantiateContract2Response) XXX_Merge(src proto.Message)
func (*MsgInstantiateContract2Response) XXX_Size ¶ added in v0.29.0
func (m *MsgInstantiateContract2Response) XXX_Size() int
func (*MsgInstantiateContract2Response) XXX_Unmarshal ¶ added in v0.29.0
func (m *MsgInstantiateContract2Response) 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 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) GetContract ¶ added in v0.30.0
func (msg MsgMigrateContract) GetContract() string
GetContract returns the bech32 address of the contract
func (MsgMigrateContract) GetFunds ¶ added in v0.30.0
func (msg MsgMigrateContract) GetFunds() sdk.Coins
GetFunds returns tokens send to the contract
func (MsgMigrateContract) GetMsg ¶ added in v0.30.0
func (msg MsgMigrateContract) GetMsg() RawContractMessage
GetMsg returns the payload message send to the contract
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 MsgPinCodes ¶ added in v0.40.0
type MsgPinCodes struct { // Authority is the address of the governance account. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // CodeIDs references the new WASM codes CodeIDs []uint64 `protobuf:"varint,2,rep,packed,name=code_ids,json=codeIds,proto3" json:"code_ids,omitempty" yaml:"code_ids"` }
MsgPinCodes is the MsgPinCodes request type.
Since: 0.40
func (*MsgPinCodes) Descriptor ¶ added in v0.40.0
func (*MsgPinCodes) Descriptor() ([]byte, []int)
func (MsgPinCodes) GetSigners ¶ added in v0.40.0
func (msg MsgPinCodes) GetSigners() []sdk.AccAddress
func (*MsgPinCodes) Marshal ¶ added in v0.40.0
func (m *MsgPinCodes) Marshal() (dAtA []byte, err error)
func (*MsgPinCodes) MarshalTo ¶ added in v0.40.0
func (m *MsgPinCodes) MarshalTo(dAtA []byte) (int, error)
func (*MsgPinCodes) MarshalToSizedBuffer ¶ added in v0.40.0
func (m *MsgPinCodes) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgPinCodes) ProtoMessage ¶ added in v0.40.0
func (*MsgPinCodes) ProtoMessage()
func (*MsgPinCodes) Reset ¶ added in v0.40.0
func (m *MsgPinCodes) Reset()
func (MsgPinCodes) Route ¶ added in v0.40.0
func (msg MsgPinCodes) Route() string
func (*MsgPinCodes) Size ¶ added in v0.40.0
func (m *MsgPinCodes) Size() (n int)
func (*MsgPinCodes) String ¶ added in v0.40.0
func (m *MsgPinCodes) String() string
func (MsgPinCodes) Type ¶ added in v0.40.0
func (msg MsgPinCodes) Type() string
func (*MsgPinCodes) Unmarshal ¶ added in v0.40.0
func (m *MsgPinCodes) Unmarshal(dAtA []byte) error
func (MsgPinCodes) ValidateBasic ¶ added in v0.40.0
func (msg MsgPinCodes) ValidateBasic() error
func (*MsgPinCodes) XXX_DiscardUnknown ¶ added in v0.40.0
func (m *MsgPinCodes) XXX_DiscardUnknown()
func (*MsgPinCodes) XXX_Marshal ¶ added in v0.40.0
func (m *MsgPinCodes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgPinCodes) XXX_Merge ¶ added in v0.40.0
func (m *MsgPinCodes) XXX_Merge(src proto.Message)
func (*MsgPinCodes) XXX_Size ¶ added in v0.40.0
func (m *MsgPinCodes) XXX_Size() int
func (*MsgPinCodes) XXX_Unmarshal ¶ added in v0.40.0
func (m *MsgPinCodes) XXX_Unmarshal(b []byte) error
type MsgPinCodesResponse ¶ added in v0.40.0
type MsgPinCodesResponse struct{}
MsgPinCodesResponse defines the response structure for executing a MsgPinCodes message.
Since: 0.40
func (*MsgPinCodesResponse) Descriptor ¶ added in v0.40.0
func (*MsgPinCodesResponse) Descriptor() ([]byte, []int)
func (*MsgPinCodesResponse) Marshal ¶ added in v0.40.0
func (m *MsgPinCodesResponse) Marshal() (dAtA []byte, err error)
func (*MsgPinCodesResponse) MarshalTo ¶ added in v0.40.0
func (m *MsgPinCodesResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgPinCodesResponse) MarshalToSizedBuffer ¶ added in v0.40.0
func (m *MsgPinCodesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgPinCodesResponse) ProtoMessage ¶ added in v0.40.0
func (*MsgPinCodesResponse) ProtoMessage()
func (*MsgPinCodesResponse) Reset ¶ added in v0.40.0
func (m *MsgPinCodesResponse) Reset()
func (*MsgPinCodesResponse) Size ¶ added in v0.40.0
func (m *MsgPinCodesResponse) Size() (n int)
func (*MsgPinCodesResponse) String ¶ added in v0.40.0
func (m *MsgPinCodesResponse) String() string
func (*MsgPinCodesResponse) Unmarshal ¶ added in v0.40.0
func (m *MsgPinCodesResponse) Unmarshal(dAtA []byte) error
func (*MsgPinCodesResponse) XXX_DiscardUnknown ¶ added in v0.40.0
func (m *MsgPinCodesResponse) XXX_DiscardUnknown()
func (*MsgPinCodesResponse) XXX_Marshal ¶ added in v0.40.0
func (m *MsgPinCodesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgPinCodesResponse) XXX_Merge ¶ added in v0.40.0
func (m *MsgPinCodesResponse) XXX_Merge(src proto.Message)
func (*MsgPinCodesResponse) XXX_Size ¶ added in v0.40.0
func (m *MsgPinCodesResponse) XXX_Size() int
func (*MsgPinCodesResponse) XXX_Unmarshal ¶ added in v0.40.0
func (m *MsgPinCodesResponse) XXX_Unmarshal(b []byte) error
type MsgRemoveCodeUploadParamsAddresses ¶ added in v0.41.0
type MsgRemoveCodeUploadParamsAddresses struct { // Authority is the address of the governance account. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` Addresses []string `protobuf:"bytes,2,rep,name=addresses,proto3" json:"addresses,omitempty" yaml:"addresses"` }
MsgRemoveCodeUploadParamsAddresses is the MsgRemoveCodeUploadParamsAddresses request type.
func (*MsgRemoveCodeUploadParamsAddresses) Descriptor ¶ added in v0.41.0
func (*MsgRemoveCodeUploadParamsAddresses) Descriptor() ([]byte, []int)
func (MsgRemoveCodeUploadParamsAddresses) GetSigners ¶ added in v0.41.0
func (msg MsgRemoveCodeUploadParamsAddresses) GetSigners() []sdk.AccAddress
func (*MsgRemoveCodeUploadParamsAddresses) Marshal ¶ added in v0.41.0
func (m *MsgRemoveCodeUploadParamsAddresses) Marshal() (dAtA []byte, err error)
func (*MsgRemoveCodeUploadParamsAddresses) MarshalTo ¶ added in v0.41.0
func (m *MsgRemoveCodeUploadParamsAddresses) MarshalTo(dAtA []byte) (int, error)
func (*MsgRemoveCodeUploadParamsAddresses) MarshalToSizedBuffer ¶ added in v0.41.0
func (m *MsgRemoveCodeUploadParamsAddresses) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRemoveCodeUploadParamsAddresses) ProtoMessage ¶ added in v0.41.0
func (*MsgRemoveCodeUploadParamsAddresses) ProtoMessage()
func (*MsgRemoveCodeUploadParamsAddresses) Reset ¶ added in v0.41.0
func (m *MsgRemoveCodeUploadParamsAddresses) Reset()
func (MsgRemoveCodeUploadParamsAddresses) Route ¶ added in v0.41.0
func (msg MsgRemoveCodeUploadParamsAddresses) Route() string
func (*MsgRemoveCodeUploadParamsAddresses) Size ¶ added in v0.41.0
func (m *MsgRemoveCodeUploadParamsAddresses) Size() (n int)
func (*MsgRemoveCodeUploadParamsAddresses) String ¶ added in v0.41.0
func (m *MsgRemoveCodeUploadParamsAddresses) String() string
func (MsgRemoveCodeUploadParamsAddresses) Type ¶ added in v0.41.0
func (msg MsgRemoveCodeUploadParamsAddresses) Type() string
func (*MsgRemoveCodeUploadParamsAddresses) Unmarshal ¶ added in v0.41.0
func (m *MsgRemoveCodeUploadParamsAddresses) Unmarshal(dAtA []byte) error
func (MsgRemoveCodeUploadParamsAddresses) ValidateBasic ¶ added in v0.41.0
func (msg MsgRemoveCodeUploadParamsAddresses) ValidateBasic() error
func (*MsgRemoveCodeUploadParamsAddresses) XXX_DiscardUnknown ¶ added in v0.41.0
func (m *MsgRemoveCodeUploadParamsAddresses) XXX_DiscardUnknown()
func (*MsgRemoveCodeUploadParamsAddresses) XXX_Marshal ¶ added in v0.41.0
func (m *MsgRemoveCodeUploadParamsAddresses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRemoveCodeUploadParamsAddresses) XXX_Merge ¶ added in v0.41.0
func (m *MsgRemoveCodeUploadParamsAddresses) XXX_Merge(src proto.Message)
func (*MsgRemoveCodeUploadParamsAddresses) XXX_Size ¶ added in v0.41.0
func (m *MsgRemoveCodeUploadParamsAddresses) XXX_Size() int
func (*MsgRemoveCodeUploadParamsAddresses) XXX_Unmarshal ¶ added in v0.41.0
func (m *MsgRemoveCodeUploadParamsAddresses) XXX_Unmarshal(b []byte) error
type MsgRemoveCodeUploadParamsAddressesResponse ¶ added in v0.41.0
type MsgRemoveCodeUploadParamsAddressesResponse struct{}
MsgRemoveCodeUploadParamsAddressesResponse defines the response structure for executing a MsgRemoveCodeUploadParamsAddresses message.
func (*MsgRemoveCodeUploadParamsAddressesResponse) Descriptor ¶ added in v0.41.0
func (*MsgRemoveCodeUploadParamsAddressesResponse) Descriptor() ([]byte, []int)
func (*MsgRemoveCodeUploadParamsAddressesResponse) Marshal ¶ added in v0.41.0
func (m *MsgRemoveCodeUploadParamsAddressesResponse) Marshal() (dAtA []byte, err error)
func (*MsgRemoveCodeUploadParamsAddressesResponse) MarshalTo ¶ added in v0.41.0
func (m *MsgRemoveCodeUploadParamsAddressesResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRemoveCodeUploadParamsAddressesResponse) MarshalToSizedBuffer ¶ added in v0.41.0
func (m *MsgRemoveCodeUploadParamsAddressesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRemoveCodeUploadParamsAddressesResponse) ProtoMessage ¶ added in v0.41.0
func (*MsgRemoveCodeUploadParamsAddressesResponse) ProtoMessage()
func (*MsgRemoveCodeUploadParamsAddressesResponse) Reset ¶ added in v0.41.0
func (m *MsgRemoveCodeUploadParamsAddressesResponse) Reset()
func (*MsgRemoveCodeUploadParamsAddressesResponse) Size ¶ added in v0.41.0
func (m *MsgRemoveCodeUploadParamsAddressesResponse) Size() (n int)
func (*MsgRemoveCodeUploadParamsAddressesResponse) String ¶ added in v0.41.0
func (m *MsgRemoveCodeUploadParamsAddressesResponse) String() string
func (*MsgRemoveCodeUploadParamsAddressesResponse) Unmarshal ¶ added in v0.41.0
func (m *MsgRemoveCodeUploadParamsAddressesResponse) Unmarshal(dAtA []byte) error
func (*MsgRemoveCodeUploadParamsAddressesResponse) XXX_DiscardUnknown ¶ added in v0.41.0
func (m *MsgRemoveCodeUploadParamsAddressesResponse) XXX_DiscardUnknown()
func (*MsgRemoveCodeUploadParamsAddressesResponse) XXX_Marshal ¶ added in v0.41.0
func (m *MsgRemoveCodeUploadParamsAddressesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRemoveCodeUploadParamsAddressesResponse) XXX_Merge ¶ added in v0.41.0
func (m *MsgRemoveCodeUploadParamsAddressesResponse) XXX_Merge(src proto.Message)
func (*MsgRemoveCodeUploadParamsAddressesResponse) XXX_Size ¶ added in v0.41.0
func (m *MsgRemoveCodeUploadParamsAddressesResponse) XXX_Size() int
func (*MsgRemoveCodeUploadParamsAddressesResponse) XXX_Unmarshal ¶ added in v0.41.0
func (m *MsgRemoveCodeUploadParamsAddressesResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // StoreCode to submit Wasm code to the system StoreCode(context.Context, *MsgStoreCode) (*MsgStoreCodeResponse, error) // InstantiateContract creates a new smart contract instance for the given // code id. InstantiateContract(context.Context, *MsgInstantiateContract) (*MsgInstantiateContractResponse, error) // InstantiateContract2 creates a new smart contract instance for the given // code id with a predictable address InstantiateContract2(context.Context, *MsgInstantiateContract2) (*MsgInstantiateContract2Response, 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) // UpdateInstantiateConfig updates instantiate config for a smart contract UpdateInstantiateConfig(context.Context, *MsgUpdateInstantiateConfig) (*MsgUpdateInstantiateConfigResponse, error) // UpdateParams defines a governance operation for updating the x/wasm // module parameters. The authority is defined in the keeper. // // Since: 0.40 UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) // SudoContract defines a governance operation for calling sudo // on a contract. The authority is defined in the keeper. // // Since: 0.40 SudoContract(context.Context, *MsgSudoContract) (*MsgSudoContractResponse, error) // PinCodes defines a governance operation for pinning a set of // code ids in the wasmvm cache. The authority is defined in the keeper. // // Since: 0.40 PinCodes(context.Context, *MsgPinCodes) (*MsgPinCodesResponse, error) // UnpinCodes defines a governance operation for unpinning a set of // code ids in the wasmvm cache. The authority is defined in the keeper. // // Since: 0.40 UnpinCodes(context.Context, *MsgUnpinCodes) (*MsgUnpinCodesResponse, error) // StoreAndInstantiateContract defines a governance operation for storing // and instantiating the contract. The authority is defined in the keeper. // // Since: 0.40 StoreAndInstantiateContract(context.Context, *MsgStoreAndInstantiateContract) (*MsgStoreAndInstantiateContractResponse, error) // RemoveCodeUploadParamsAddresses defines a governance operation for // removing addresses from code upload params. // The authority is defined in the keeper. RemoveCodeUploadParamsAddresses(context.Context, *MsgRemoveCodeUploadParamsAddresses) (*MsgRemoveCodeUploadParamsAddressesResponse, error) // AddCodeUploadParamsAddresses defines a governance operation for // adding addresses to code upload params. // The authority is defined in the keeper. AddCodeUploadParamsAddresses(context.Context, *MsgAddCodeUploadParamsAddresses) (*MsgAddCodeUploadParamsAddressesResponse, error) // StoreAndMigrateContract defines a governance operation for storing // and migrating the contract. The authority is defined in the keeper. // // Since: 0.42 StoreAndMigrateContract(context.Context, *MsgStoreAndMigrateContract) (*MsgStoreAndMigrateContractResponse, error) // UpdateContractLabel sets a new label for a smart contract // // Since: 0.43 UpdateContractLabel(context.Context, *MsgUpdateContractLabel) (*MsgUpdateContractLabelResponse, error) }
MsgServer is the server API for Msg service.
type MsgStoreAndInstantiateContract ¶ added in v0.40.0
type MsgStoreAndInstantiateContract struct { // Authority is the address of the governance account. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // WASMByteCode can be raw or gzip compressed WASMByteCode []byte `protobuf:"bytes,3,opt,name=wasm_byte_code,json=wasmByteCode,proto3" json:"wasm_byte_code,omitempty"` // InstantiatePermission to apply on contract creation, optional InstantiatePermission *AccessConfig `protobuf:"bytes,4,opt,name=instantiate_permission,json=instantiatePermission,proto3" json:"instantiate_permission,omitempty"` // UnpinCode code on upload, optional. As default the uploaded contract is // pinned to cache. UnpinCode bool `protobuf:"varint,5,opt,name=unpin_code,json=unpinCode,proto3" json:"unpin_code,omitempty"` // Admin is an optional address that can execute migrations Admin string `protobuf:"bytes,6,opt,name=admin,proto3" json:"admin,omitempty"` // Label is optional metadata to be stored with a constract instance. Label string `protobuf:"bytes,7,opt,name=label,proto3" json:"label,omitempty"` // Msg json encoded message to be passed to the contract on instantiation Msg RawContractMessage `protobuf:"bytes,8,opt,name=msg,proto3,casttype=RawContractMessage" json:"msg,omitempty"` // Funds coins that are transferred from the authority account to the contract // on instantiation Funds github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,9,rep,name=funds,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"funds"` // Source is the URL where the code is hosted Source string `protobuf:"bytes,10,opt,name=source,proto3" json:"source,omitempty"` // Builder is the docker image used to build the code deterministically, used // for smart contract verification Builder string `protobuf:"bytes,11,opt,name=builder,proto3" json:"builder,omitempty"` // CodeHash is the SHA256 sum of the code outputted by builder, used for smart // contract verification CodeHash []byte `protobuf:"bytes,12,opt,name=code_hash,json=codeHash,proto3" json:"code_hash,omitempty"` }
MsgStoreAndInstantiateContract is the MsgStoreAndInstantiateContract request type.
Since: 0.40
func (*MsgStoreAndInstantiateContract) Descriptor ¶ added in v0.40.0
func (*MsgStoreAndInstantiateContract) Descriptor() ([]byte, []int)
func (MsgStoreAndInstantiateContract) GetSigners ¶ added in v0.40.0
func (msg MsgStoreAndInstantiateContract) GetSigners() []sdk.AccAddress
func (*MsgStoreAndInstantiateContract) Marshal ¶ added in v0.40.0
func (m *MsgStoreAndInstantiateContract) Marshal() (dAtA []byte, err error)
func (*MsgStoreAndInstantiateContract) MarshalTo ¶ added in v0.40.0
func (m *MsgStoreAndInstantiateContract) MarshalTo(dAtA []byte) (int, error)
func (*MsgStoreAndInstantiateContract) MarshalToSizedBuffer ¶ added in v0.40.0
func (m *MsgStoreAndInstantiateContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgStoreAndInstantiateContract) ProtoMessage ¶ added in v0.40.0
func (*MsgStoreAndInstantiateContract) ProtoMessage()
func (*MsgStoreAndInstantiateContract) Reset ¶ added in v0.40.0
func (m *MsgStoreAndInstantiateContract) Reset()
func (MsgStoreAndInstantiateContract) Route ¶ added in v0.40.0
func (msg MsgStoreAndInstantiateContract) Route() string
func (*MsgStoreAndInstantiateContract) Size ¶ added in v0.40.0
func (m *MsgStoreAndInstantiateContract) Size() (n int)
func (*MsgStoreAndInstantiateContract) String ¶ added in v0.40.0
func (m *MsgStoreAndInstantiateContract) String() string
func (MsgStoreAndInstantiateContract) Type ¶ added in v0.40.0
func (msg MsgStoreAndInstantiateContract) Type() string
func (*MsgStoreAndInstantiateContract) Unmarshal ¶ added in v0.40.0
func (m *MsgStoreAndInstantiateContract) Unmarshal(dAtA []byte) error
func (MsgStoreAndInstantiateContract) ValidateBasic ¶ added in v0.40.0
func (msg MsgStoreAndInstantiateContract) ValidateBasic() error
func (*MsgStoreAndInstantiateContract) XXX_DiscardUnknown ¶ added in v0.40.0
func (m *MsgStoreAndInstantiateContract) XXX_DiscardUnknown()
func (*MsgStoreAndInstantiateContract) XXX_Marshal ¶ added in v0.40.0
func (m *MsgStoreAndInstantiateContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgStoreAndInstantiateContract) XXX_Merge ¶ added in v0.40.0
func (m *MsgStoreAndInstantiateContract) XXX_Merge(src proto.Message)
func (*MsgStoreAndInstantiateContract) XXX_Size ¶ added in v0.40.0
func (m *MsgStoreAndInstantiateContract) XXX_Size() int
func (*MsgStoreAndInstantiateContract) XXX_Unmarshal ¶ added in v0.40.0
func (m *MsgStoreAndInstantiateContract) XXX_Unmarshal(b []byte) error
type MsgStoreAndInstantiateContractResponse ¶ added in v0.40.0
type MsgStoreAndInstantiateContractResponse 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 bytes to returned from the contract Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` }
MsgStoreAndInstantiateContractResponse defines the response structure for executing a MsgStoreAndInstantiateContract message.
Since: 0.40
func (*MsgStoreAndInstantiateContractResponse) Descriptor ¶ added in v0.40.0
func (*MsgStoreAndInstantiateContractResponse) Descriptor() ([]byte, []int)
func (*MsgStoreAndInstantiateContractResponse) Marshal ¶ added in v0.40.0
func (m *MsgStoreAndInstantiateContractResponse) Marshal() (dAtA []byte, err error)
func (*MsgStoreAndInstantiateContractResponse) MarshalTo ¶ added in v0.40.0
func (m *MsgStoreAndInstantiateContractResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgStoreAndInstantiateContractResponse) MarshalToSizedBuffer ¶ added in v0.40.0
func (m *MsgStoreAndInstantiateContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgStoreAndInstantiateContractResponse) ProtoMessage ¶ added in v0.40.0
func (*MsgStoreAndInstantiateContractResponse) ProtoMessage()
func (*MsgStoreAndInstantiateContractResponse) Reset ¶ added in v0.40.0
func (m *MsgStoreAndInstantiateContractResponse) Reset()
func (*MsgStoreAndInstantiateContractResponse) Size ¶ added in v0.40.0
func (m *MsgStoreAndInstantiateContractResponse) Size() (n int)
func (*MsgStoreAndInstantiateContractResponse) String ¶ added in v0.40.0
func (m *MsgStoreAndInstantiateContractResponse) String() string
func (*MsgStoreAndInstantiateContractResponse) Unmarshal ¶ added in v0.40.0
func (m *MsgStoreAndInstantiateContractResponse) Unmarshal(dAtA []byte) error
func (*MsgStoreAndInstantiateContractResponse) XXX_DiscardUnknown ¶ added in v0.40.0
func (m *MsgStoreAndInstantiateContractResponse) XXX_DiscardUnknown()
func (*MsgStoreAndInstantiateContractResponse) XXX_Marshal ¶ added in v0.40.0
func (m *MsgStoreAndInstantiateContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgStoreAndInstantiateContractResponse) XXX_Merge ¶ added in v0.40.0
func (m *MsgStoreAndInstantiateContractResponse) XXX_Merge(src proto.Message)
func (*MsgStoreAndInstantiateContractResponse) XXX_Size ¶ added in v0.40.0
func (m *MsgStoreAndInstantiateContractResponse) XXX_Size() int
func (*MsgStoreAndInstantiateContractResponse) XXX_Unmarshal ¶ added in v0.40.0
func (m *MsgStoreAndInstantiateContractResponse) XXX_Unmarshal(b []byte) error
type MsgStoreAndMigrateContract ¶ added in v0.42.0
type MsgStoreAndMigrateContract struct { // Authority is the address of the governance account. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,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 to apply on contract creation, optional InstantiatePermission *AccessConfig `protobuf:"bytes,3,opt,name=instantiate_permission,json=instantiatePermission,proto3" json:"instantiate_permission,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 on migration Msg RawContractMessage `protobuf:"bytes,5,opt,name=msg,proto3,casttype=RawContractMessage" json:"msg,omitempty"` }
MsgStoreAndMigrateContract is the MsgStoreAndMigrateContract request type.
Since: 0.42
func (*MsgStoreAndMigrateContract) Descriptor ¶ added in v0.42.0
func (*MsgStoreAndMigrateContract) Descriptor() ([]byte, []int)
func (MsgStoreAndMigrateContract) GetSigners ¶ added in v0.42.0
func (msg MsgStoreAndMigrateContract) GetSigners() []sdk.AccAddress
func (*MsgStoreAndMigrateContract) Marshal ¶ added in v0.42.0
func (m *MsgStoreAndMigrateContract) Marshal() (dAtA []byte, err error)
func (*MsgStoreAndMigrateContract) MarshalTo ¶ added in v0.42.0
func (m *MsgStoreAndMigrateContract) MarshalTo(dAtA []byte) (int, error)
func (*MsgStoreAndMigrateContract) MarshalToSizedBuffer ¶ added in v0.42.0
func (m *MsgStoreAndMigrateContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgStoreAndMigrateContract) ProtoMessage ¶ added in v0.42.0
func (*MsgStoreAndMigrateContract) ProtoMessage()
func (*MsgStoreAndMigrateContract) Reset ¶ added in v0.42.0
func (m *MsgStoreAndMigrateContract) Reset()
func (MsgStoreAndMigrateContract) Route ¶ added in v0.42.0
func (msg MsgStoreAndMigrateContract) Route() string
func (*MsgStoreAndMigrateContract) Size ¶ added in v0.42.0
func (m *MsgStoreAndMigrateContract) Size() (n int)
func (*MsgStoreAndMigrateContract) String ¶ added in v0.42.0
func (m *MsgStoreAndMigrateContract) String() string
func (MsgStoreAndMigrateContract) Type ¶ added in v0.42.0
func (msg MsgStoreAndMigrateContract) Type() string
func (*MsgStoreAndMigrateContract) Unmarshal ¶ added in v0.42.0
func (m *MsgStoreAndMigrateContract) Unmarshal(dAtA []byte) error
func (MsgStoreAndMigrateContract) ValidateBasic ¶ added in v0.42.0
func (msg MsgStoreAndMigrateContract) ValidateBasic() error
func (*MsgStoreAndMigrateContract) XXX_DiscardUnknown ¶ added in v0.42.0
func (m *MsgStoreAndMigrateContract) XXX_DiscardUnknown()
func (*MsgStoreAndMigrateContract) XXX_Marshal ¶ added in v0.42.0
func (m *MsgStoreAndMigrateContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgStoreAndMigrateContract) XXX_Merge ¶ added in v0.42.0
func (m *MsgStoreAndMigrateContract) XXX_Merge(src proto.Message)
func (*MsgStoreAndMigrateContract) XXX_Size ¶ added in v0.42.0
func (m *MsgStoreAndMigrateContract) XXX_Size() int
func (*MsgStoreAndMigrateContract) XXX_Unmarshal ¶ added in v0.42.0
func (m *MsgStoreAndMigrateContract) XXX_Unmarshal(b []byte) error
type MsgStoreAndMigrateContractResponse ¶ added in v0.42.0
type MsgStoreAndMigrateContractResponse 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"` // Checksum is the sha256 hash of the stored code Checksum []byte `protobuf:"bytes,2,opt,name=checksum,proto3" json:"checksum,omitempty"` // Data contains bytes to returned from the contract Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` }
MsgStoreAndMigrateContractResponse defines the response structure for executing a MsgStoreAndMigrateContract message.
Since: 0.42
func (*MsgStoreAndMigrateContractResponse) Descriptor ¶ added in v0.42.0
func (*MsgStoreAndMigrateContractResponse) Descriptor() ([]byte, []int)
func (*MsgStoreAndMigrateContractResponse) Marshal ¶ added in v0.42.0
func (m *MsgStoreAndMigrateContractResponse) Marshal() (dAtA []byte, err error)
func (*MsgStoreAndMigrateContractResponse) MarshalTo ¶ added in v0.42.0
func (m *MsgStoreAndMigrateContractResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgStoreAndMigrateContractResponse) MarshalToSizedBuffer ¶ added in v0.42.0
func (m *MsgStoreAndMigrateContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgStoreAndMigrateContractResponse) ProtoMessage ¶ added in v0.42.0
func (*MsgStoreAndMigrateContractResponse) ProtoMessage()
func (*MsgStoreAndMigrateContractResponse) Reset ¶ added in v0.42.0
func (m *MsgStoreAndMigrateContractResponse) Reset()
func (*MsgStoreAndMigrateContractResponse) Size ¶ added in v0.42.0
func (m *MsgStoreAndMigrateContractResponse) Size() (n int)
func (*MsgStoreAndMigrateContractResponse) String ¶ added in v0.42.0
func (m *MsgStoreAndMigrateContractResponse) String() string
func (*MsgStoreAndMigrateContractResponse) Unmarshal ¶ added in v0.42.0
func (m *MsgStoreAndMigrateContractResponse) Unmarshal(dAtA []byte) error
func (*MsgStoreAndMigrateContractResponse) XXX_DiscardUnknown ¶ added in v0.42.0
func (m *MsgStoreAndMigrateContractResponse) XXX_DiscardUnknown()
func (*MsgStoreAndMigrateContractResponse) XXX_Marshal ¶ added in v0.42.0
func (m *MsgStoreAndMigrateContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgStoreAndMigrateContractResponse) XXX_Merge ¶ added in v0.42.0
func (m *MsgStoreAndMigrateContractResponse) XXX_Merge(src proto.Message)
func (*MsgStoreAndMigrateContractResponse) XXX_Size ¶ added in v0.42.0
func (m *MsgStoreAndMigrateContractResponse) XXX_Size() int
func (*MsgStoreAndMigrateContractResponse) XXX_Unmarshal ¶ added in v0.42.0
func (m *MsgStoreAndMigrateContractResponse) XXX_Unmarshal(b []byte) error
type MsgStoreCode ¶
type MsgStoreCode struct { // Sender is the 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) 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"` // Checksum is the sha256 hash of the stored code Checksum []byte `protobuf:"bytes,2,opt,name=checksum,proto3" json:"checksum,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 MsgSudoContract ¶ added in v0.40.0
type MsgSudoContract struct { // Authority is the address of the governance account. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,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 as sudo Msg RawContractMessage `protobuf:"bytes,3,opt,name=msg,proto3,casttype=RawContractMessage" json:"msg,omitempty"` }
MsgSudoContract is the MsgSudoContract request type.
Since: 0.40
func (*MsgSudoContract) Descriptor ¶ added in v0.40.0
func (*MsgSudoContract) Descriptor() ([]byte, []int)
func (MsgSudoContract) GetSigners ¶ added in v0.40.0
func (msg MsgSudoContract) GetSigners() []sdk.AccAddress
func (*MsgSudoContract) Marshal ¶ added in v0.40.0
func (m *MsgSudoContract) Marshal() (dAtA []byte, err error)
func (*MsgSudoContract) MarshalTo ¶ added in v0.40.0
func (m *MsgSudoContract) MarshalTo(dAtA []byte) (int, error)
func (*MsgSudoContract) MarshalToSizedBuffer ¶ added in v0.40.0
func (m *MsgSudoContract) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSudoContract) ProtoMessage ¶ added in v0.40.0
func (*MsgSudoContract) ProtoMessage()
func (*MsgSudoContract) Reset ¶ added in v0.40.0
func (m *MsgSudoContract) Reset()
func (MsgSudoContract) Route ¶ added in v0.40.0
func (msg MsgSudoContract) Route() string
func (*MsgSudoContract) Size ¶ added in v0.40.0
func (m *MsgSudoContract) Size() (n int)
func (*MsgSudoContract) String ¶ added in v0.40.0
func (m *MsgSudoContract) String() string
func (MsgSudoContract) Type ¶ added in v0.40.0
func (msg MsgSudoContract) Type() string
func (*MsgSudoContract) Unmarshal ¶ added in v0.40.0
func (m *MsgSudoContract) Unmarshal(dAtA []byte) error
func (MsgSudoContract) ValidateBasic ¶ added in v0.40.0
func (msg MsgSudoContract) ValidateBasic() error
func (*MsgSudoContract) XXX_DiscardUnknown ¶ added in v0.40.0
func (m *MsgSudoContract) XXX_DiscardUnknown()
func (*MsgSudoContract) XXX_Marshal ¶ added in v0.40.0
func (m *MsgSudoContract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSudoContract) XXX_Merge ¶ added in v0.40.0
func (m *MsgSudoContract) XXX_Merge(src proto.Message)
func (*MsgSudoContract) XXX_Size ¶ added in v0.40.0
func (m *MsgSudoContract) XXX_Size() int
func (*MsgSudoContract) XXX_Unmarshal ¶ added in v0.40.0
func (m *MsgSudoContract) XXX_Unmarshal(b []byte) error
type MsgSudoContractResponse ¶ added in v0.40.0
type MsgSudoContractResponse struct { // Data contains bytes to returned from the contract Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` }
MsgSudoContractResponse defines the response structure for executing a MsgSudoContract message.
Since: 0.40
func (*MsgSudoContractResponse) Descriptor ¶ added in v0.40.0
func (*MsgSudoContractResponse) Descriptor() ([]byte, []int)
func (*MsgSudoContractResponse) Marshal ¶ added in v0.40.0
func (m *MsgSudoContractResponse) Marshal() (dAtA []byte, err error)
func (*MsgSudoContractResponse) MarshalTo ¶ added in v0.40.0
func (m *MsgSudoContractResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSudoContractResponse) MarshalToSizedBuffer ¶ added in v0.40.0
func (m *MsgSudoContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSudoContractResponse) ProtoMessage ¶ added in v0.40.0
func (*MsgSudoContractResponse) ProtoMessage()
func (*MsgSudoContractResponse) Reset ¶ added in v0.40.0
func (m *MsgSudoContractResponse) Reset()
func (*MsgSudoContractResponse) Size ¶ added in v0.40.0
func (m *MsgSudoContractResponse) Size() (n int)
func (*MsgSudoContractResponse) String ¶ added in v0.40.0
func (m *MsgSudoContractResponse) String() string
func (*MsgSudoContractResponse) Unmarshal ¶ added in v0.40.0
func (m *MsgSudoContractResponse) Unmarshal(dAtA []byte) error
func (*MsgSudoContractResponse) XXX_DiscardUnknown ¶ added in v0.40.0
func (m *MsgSudoContractResponse) XXX_DiscardUnknown()
func (*MsgSudoContractResponse) XXX_Marshal ¶ added in v0.40.0
func (m *MsgSudoContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSudoContractResponse) XXX_Merge ¶ added in v0.40.0
func (m *MsgSudoContractResponse) XXX_Merge(src proto.Message)
func (*MsgSudoContractResponse) XXX_Size ¶ added in v0.40.0
func (m *MsgSudoContractResponse) XXX_Size() int
func (*MsgSudoContractResponse) XXX_Unmarshal ¶ added in v0.40.0
func (m *MsgSudoContractResponse) XXX_Unmarshal(b []byte) error
type MsgUnpinCodes ¶ added in v0.40.0
type MsgUnpinCodes struct { // Authority is the address of the governance account. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // CodeIDs references the WASM codes CodeIDs []uint64 `protobuf:"varint,2,rep,packed,name=code_ids,json=codeIds,proto3" json:"code_ids,omitempty" yaml:"code_ids"` }
MsgUnpinCodes is the MsgUnpinCodes request type.
Since: 0.40
func (*MsgUnpinCodes) Descriptor ¶ added in v0.40.0
func (*MsgUnpinCodes) Descriptor() ([]byte, []int)
func (MsgUnpinCodes) GetSigners ¶ added in v0.40.0
func (msg MsgUnpinCodes) GetSigners() []sdk.AccAddress
func (*MsgUnpinCodes) Marshal ¶ added in v0.40.0
func (m *MsgUnpinCodes) Marshal() (dAtA []byte, err error)
func (*MsgUnpinCodes) MarshalTo ¶ added in v0.40.0
func (m *MsgUnpinCodes) MarshalTo(dAtA []byte) (int, error)
func (*MsgUnpinCodes) MarshalToSizedBuffer ¶ added in v0.40.0
func (m *MsgUnpinCodes) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUnpinCodes) ProtoMessage ¶ added in v0.40.0
func (*MsgUnpinCodes) ProtoMessage()
func (*MsgUnpinCodes) Reset ¶ added in v0.40.0
func (m *MsgUnpinCodes) Reset()
func (MsgUnpinCodes) Route ¶ added in v0.40.0
func (msg MsgUnpinCodes) Route() string
func (*MsgUnpinCodes) Size ¶ added in v0.40.0
func (m *MsgUnpinCodes) Size() (n int)
func (*MsgUnpinCodes) String ¶ added in v0.40.0
func (m *MsgUnpinCodes) String() string
func (MsgUnpinCodes) Type ¶ added in v0.40.0
func (msg MsgUnpinCodes) Type() string
func (*MsgUnpinCodes) Unmarshal ¶ added in v0.40.0
func (m *MsgUnpinCodes) Unmarshal(dAtA []byte) error
func (MsgUnpinCodes) ValidateBasic ¶ added in v0.40.0
func (msg MsgUnpinCodes) ValidateBasic() error
func (*MsgUnpinCodes) XXX_DiscardUnknown ¶ added in v0.40.0
func (m *MsgUnpinCodes) XXX_DiscardUnknown()
func (*MsgUnpinCodes) XXX_Marshal ¶ added in v0.40.0
func (m *MsgUnpinCodes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUnpinCodes) XXX_Merge ¶ added in v0.40.0
func (m *MsgUnpinCodes) XXX_Merge(src proto.Message)
func (*MsgUnpinCodes) XXX_Size ¶ added in v0.40.0
func (m *MsgUnpinCodes) XXX_Size() int
func (*MsgUnpinCodes) XXX_Unmarshal ¶ added in v0.40.0
func (m *MsgUnpinCodes) XXX_Unmarshal(b []byte) error
type MsgUnpinCodesResponse ¶ added in v0.40.0
type MsgUnpinCodesResponse struct{}
MsgUnpinCodesResponse defines the response structure for executing a MsgUnpinCodes message.
Since: 0.40
func (*MsgUnpinCodesResponse) Descriptor ¶ added in v0.40.0
func (*MsgUnpinCodesResponse) Descriptor() ([]byte, []int)
func (*MsgUnpinCodesResponse) Marshal ¶ added in v0.40.0
func (m *MsgUnpinCodesResponse) Marshal() (dAtA []byte, err error)
func (*MsgUnpinCodesResponse) MarshalTo ¶ added in v0.40.0
func (m *MsgUnpinCodesResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUnpinCodesResponse) MarshalToSizedBuffer ¶ added in v0.40.0
func (m *MsgUnpinCodesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUnpinCodesResponse) ProtoMessage ¶ added in v0.40.0
func (*MsgUnpinCodesResponse) ProtoMessage()
func (*MsgUnpinCodesResponse) Reset ¶ added in v0.40.0
func (m *MsgUnpinCodesResponse) Reset()
func (*MsgUnpinCodesResponse) Size ¶ added in v0.40.0
func (m *MsgUnpinCodesResponse) Size() (n int)
func (*MsgUnpinCodesResponse) String ¶ added in v0.40.0
func (m *MsgUnpinCodesResponse) String() string
func (*MsgUnpinCodesResponse) Unmarshal ¶ added in v0.40.0
func (m *MsgUnpinCodesResponse) Unmarshal(dAtA []byte) error
func (*MsgUnpinCodesResponse) XXX_DiscardUnknown ¶ added in v0.40.0
func (m *MsgUnpinCodesResponse) XXX_DiscardUnknown()
func (*MsgUnpinCodesResponse) XXX_Marshal ¶ added in v0.40.0
func (m *MsgUnpinCodesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUnpinCodesResponse) XXX_Merge ¶ added in v0.40.0
func (m *MsgUnpinCodesResponse) XXX_Merge(src proto.Message)
func (*MsgUnpinCodesResponse) XXX_Size ¶ added in v0.40.0
func (m *MsgUnpinCodesResponse) XXX_Size() int
func (*MsgUnpinCodesResponse) XXX_Unmarshal ¶ added in v0.40.0
func (m *MsgUnpinCodesResponse) 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) 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 MsgUpdateContractLabel ¶ added in v0.43.0
type MsgUpdateContractLabel struct { // Sender is the that actor that signed the messages Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // NewLabel string to be set NewLabel string `protobuf:"bytes,2,opt,name=new_label,json=newLabel,proto3" json:"new_label,omitempty"` // Contract is the address of the smart contract Contract string `protobuf:"bytes,3,opt,name=contract,proto3" json:"contract,omitempty"` }
MsgUpdateContractLabel sets a new label for a smart contract
func (*MsgUpdateContractLabel) Descriptor ¶ added in v0.43.0
func (*MsgUpdateContractLabel) Descriptor() ([]byte, []int)
func (MsgUpdateContractLabel) GetSigners ¶ added in v0.43.0
func (msg MsgUpdateContractLabel) GetSigners() []sdk.AccAddress
func (*MsgUpdateContractLabel) Marshal ¶ added in v0.43.0
func (m *MsgUpdateContractLabel) Marshal() (dAtA []byte, err error)
func (*MsgUpdateContractLabel) MarshalTo ¶ added in v0.43.0
func (m *MsgUpdateContractLabel) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateContractLabel) MarshalToSizedBuffer ¶ added in v0.43.0
func (m *MsgUpdateContractLabel) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateContractLabel) ProtoMessage ¶ added in v0.43.0
func (*MsgUpdateContractLabel) ProtoMessage()
func (*MsgUpdateContractLabel) Reset ¶ added in v0.43.0
func (m *MsgUpdateContractLabel) Reset()
func (MsgUpdateContractLabel) Route ¶ added in v0.43.0
func (msg MsgUpdateContractLabel) Route() string
func (*MsgUpdateContractLabel) Size ¶ added in v0.43.0
func (m *MsgUpdateContractLabel) Size() (n int)
func (*MsgUpdateContractLabel) String ¶ added in v0.43.0
func (m *MsgUpdateContractLabel) String() string
func (MsgUpdateContractLabel) Type ¶ added in v0.43.0
func (msg MsgUpdateContractLabel) Type() string
func (*MsgUpdateContractLabel) Unmarshal ¶ added in v0.43.0
func (m *MsgUpdateContractLabel) Unmarshal(dAtA []byte) error
func (MsgUpdateContractLabel) ValidateBasic ¶ added in v0.43.0
func (msg MsgUpdateContractLabel) ValidateBasic() error
func (*MsgUpdateContractLabel) XXX_DiscardUnknown ¶ added in v0.43.0
func (m *MsgUpdateContractLabel) XXX_DiscardUnknown()
func (*MsgUpdateContractLabel) XXX_Marshal ¶ added in v0.43.0
func (m *MsgUpdateContractLabel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateContractLabel) XXX_Merge ¶ added in v0.43.0
func (m *MsgUpdateContractLabel) XXX_Merge(src proto.Message)
func (*MsgUpdateContractLabel) XXX_Size ¶ added in v0.43.0
func (m *MsgUpdateContractLabel) XXX_Size() int
func (*MsgUpdateContractLabel) XXX_Unmarshal ¶ added in v0.43.0
func (m *MsgUpdateContractLabel) XXX_Unmarshal(b []byte) error
type MsgUpdateContractLabelResponse ¶ added in v0.43.0
type MsgUpdateContractLabelResponse struct{}
MsgUpdateContractLabelResponse returns empty data
func (*MsgUpdateContractLabelResponse) Descriptor ¶ added in v0.43.0
func (*MsgUpdateContractLabelResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateContractLabelResponse) Marshal ¶ added in v0.43.0
func (m *MsgUpdateContractLabelResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateContractLabelResponse) MarshalTo ¶ added in v0.43.0
func (m *MsgUpdateContractLabelResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateContractLabelResponse) MarshalToSizedBuffer ¶ added in v0.43.0
func (m *MsgUpdateContractLabelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateContractLabelResponse) ProtoMessage ¶ added in v0.43.0
func (*MsgUpdateContractLabelResponse) ProtoMessage()
func (*MsgUpdateContractLabelResponse) Reset ¶ added in v0.43.0
func (m *MsgUpdateContractLabelResponse) Reset()
func (*MsgUpdateContractLabelResponse) Size ¶ added in v0.43.0
func (m *MsgUpdateContractLabelResponse) Size() (n int)
func (*MsgUpdateContractLabelResponse) String ¶ added in v0.43.0
func (m *MsgUpdateContractLabelResponse) String() string
func (*MsgUpdateContractLabelResponse) Unmarshal ¶ added in v0.43.0
func (m *MsgUpdateContractLabelResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateContractLabelResponse) XXX_DiscardUnknown ¶ added in v0.43.0
func (m *MsgUpdateContractLabelResponse) XXX_DiscardUnknown()
func (*MsgUpdateContractLabelResponse) XXX_Marshal ¶ added in v0.43.0
func (m *MsgUpdateContractLabelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateContractLabelResponse) XXX_Merge ¶ added in v0.43.0
func (m *MsgUpdateContractLabelResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateContractLabelResponse) XXX_Size ¶ added in v0.43.0
func (m *MsgUpdateContractLabelResponse) XXX_Size() int
func (*MsgUpdateContractLabelResponse) XXX_Unmarshal ¶ added in v0.43.0
func (m *MsgUpdateContractLabelResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateInstantiateConfig ¶ added in v0.31.0
type MsgUpdateInstantiateConfig struct { // Sender is the that actor that signed the messages Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // CodeID references the stored WASM code CodeID uint64 `protobuf:"varint,2,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"` // NewInstantiatePermission is the new access control NewInstantiatePermission *AccessConfig `` /* 135-byte string literal not displayed */ }
MsgUpdateInstantiateConfig updates instantiate config for a smart contract
func (*MsgUpdateInstantiateConfig) Descriptor ¶ added in v0.31.0
func (*MsgUpdateInstantiateConfig) Descriptor() ([]byte, []int)
func (MsgUpdateInstantiateConfig) GetSigners ¶ added in v0.31.0
func (msg MsgUpdateInstantiateConfig) GetSigners() []sdk.AccAddress
func (*MsgUpdateInstantiateConfig) Marshal ¶ added in v0.31.0
func (m *MsgUpdateInstantiateConfig) Marshal() (dAtA []byte, err error)
func (*MsgUpdateInstantiateConfig) MarshalTo ¶ added in v0.31.0
func (m *MsgUpdateInstantiateConfig) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateInstantiateConfig) MarshalToSizedBuffer ¶ added in v0.31.0
func (m *MsgUpdateInstantiateConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateInstantiateConfig) ProtoMessage ¶ added in v0.31.0
func (*MsgUpdateInstantiateConfig) ProtoMessage()
func (*MsgUpdateInstantiateConfig) Reset ¶ added in v0.31.0
func (m *MsgUpdateInstantiateConfig) Reset()
func (MsgUpdateInstantiateConfig) Route ¶ added in v0.31.0
func (msg MsgUpdateInstantiateConfig) Route() string
func (*MsgUpdateInstantiateConfig) Size ¶ added in v0.31.0
func (m *MsgUpdateInstantiateConfig) Size() (n int)
func (*MsgUpdateInstantiateConfig) String ¶ added in v0.31.0
func (m *MsgUpdateInstantiateConfig) String() string
func (MsgUpdateInstantiateConfig) Type ¶ added in v0.31.0
func (msg MsgUpdateInstantiateConfig) Type() string
func (*MsgUpdateInstantiateConfig) Unmarshal ¶ added in v0.31.0
func (m *MsgUpdateInstantiateConfig) Unmarshal(dAtA []byte) error
func (MsgUpdateInstantiateConfig) ValidateBasic ¶ added in v0.31.0
func (msg MsgUpdateInstantiateConfig) ValidateBasic() error
func (*MsgUpdateInstantiateConfig) XXX_DiscardUnknown ¶ added in v0.31.0
func (m *MsgUpdateInstantiateConfig) XXX_DiscardUnknown()
func (*MsgUpdateInstantiateConfig) XXX_Marshal ¶ added in v0.31.0
func (m *MsgUpdateInstantiateConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateInstantiateConfig) XXX_Merge ¶ added in v0.31.0
func (m *MsgUpdateInstantiateConfig) XXX_Merge(src proto.Message)
func (*MsgUpdateInstantiateConfig) XXX_Size ¶ added in v0.31.0
func (m *MsgUpdateInstantiateConfig) XXX_Size() int
func (*MsgUpdateInstantiateConfig) XXX_Unmarshal ¶ added in v0.31.0
func (m *MsgUpdateInstantiateConfig) XXX_Unmarshal(b []byte) error
type MsgUpdateInstantiateConfigResponse ¶ added in v0.31.0
type MsgUpdateInstantiateConfigResponse struct{}
MsgUpdateInstantiateConfigResponse returns empty data
func (*MsgUpdateInstantiateConfigResponse) Descriptor ¶ added in v0.31.0
func (*MsgUpdateInstantiateConfigResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateInstantiateConfigResponse) Marshal ¶ added in v0.31.0
func (m *MsgUpdateInstantiateConfigResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateInstantiateConfigResponse) MarshalTo ¶ added in v0.31.0
func (m *MsgUpdateInstantiateConfigResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateInstantiateConfigResponse) MarshalToSizedBuffer ¶ added in v0.31.0
func (m *MsgUpdateInstantiateConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateInstantiateConfigResponse) ProtoMessage ¶ added in v0.31.0
func (*MsgUpdateInstantiateConfigResponse) ProtoMessage()
func (*MsgUpdateInstantiateConfigResponse) Reset ¶ added in v0.31.0
func (m *MsgUpdateInstantiateConfigResponse) Reset()
func (*MsgUpdateInstantiateConfigResponse) Size ¶ added in v0.31.0
func (m *MsgUpdateInstantiateConfigResponse) Size() (n int)
func (*MsgUpdateInstantiateConfigResponse) String ¶ added in v0.31.0
func (m *MsgUpdateInstantiateConfigResponse) String() string
func (*MsgUpdateInstantiateConfigResponse) Unmarshal ¶ added in v0.31.0
func (m *MsgUpdateInstantiateConfigResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateInstantiateConfigResponse) XXX_DiscardUnknown ¶ added in v0.31.0
func (m *MsgUpdateInstantiateConfigResponse) XXX_DiscardUnknown()
func (*MsgUpdateInstantiateConfigResponse) XXX_Marshal ¶ added in v0.31.0
func (m *MsgUpdateInstantiateConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateInstantiateConfigResponse) XXX_Merge ¶ added in v0.31.0
func (m *MsgUpdateInstantiateConfigResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateInstantiateConfigResponse) XXX_Size ¶ added in v0.31.0
func (m *MsgUpdateInstantiateConfigResponse) XXX_Size() int
func (*MsgUpdateInstantiateConfigResponse) XXX_Unmarshal ¶ added in v0.31.0
func (m *MsgUpdateInstantiateConfigResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateParams ¶ added in v0.40.0
type MsgUpdateParams struct { // Authority is the address of the governance account. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the x/wasm parameters to update. // // NOTE: All parameters must be supplied. Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` }
MsgUpdateParams is the MsgUpdateParams request type.
Since: 0.40
func (*MsgUpdateParams) Descriptor ¶ added in v0.40.0
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
func (MsgUpdateParams) GetSigners ¶ added in v0.40.0
func (msg MsgUpdateParams) GetSigners() []sdk.AccAddress
func (*MsgUpdateParams) Marshal ¶ added in v0.40.0
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalTo ¶ added in v0.40.0
func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶ added in v0.40.0
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶ added in v0.40.0
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶ added in v0.40.0
func (m *MsgUpdateParams) Reset()
func (MsgUpdateParams) Route ¶ added in v0.40.0
func (msg MsgUpdateParams) Route() string
func (*MsgUpdateParams) Size ¶ added in v0.40.0
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶ added in v0.40.0
func (m *MsgUpdateParams) String() string
func (MsgUpdateParams) Type ¶ added in v0.40.0
func (msg MsgUpdateParams) Type() string
func (*MsgUpdateParams) Unmarshal ¶ added in v0.40.0
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (MsgUpdateParams) ValidateBasic ¶ added in v0.40.0
func (msg MsgUpdateParams) ValidateBasic() error
func (*MsgUpdateParams) XXX_DiscardUnknown ¶ added in v0.40.0
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶ added in v0.40.0
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶ added in v0.40.0
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶ added in v0.40.0
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶ added in v0.40.0
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶ added in v0.40.0
type MsgUpdateParamsResponse struct{}
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
Since: 0.40
func (*MsgUpdateParamsResponse) Descriptor ¶ added in v0.40.0
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶ added in v0.40.0
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶ added in v0.40.0
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶ added in v0.40.0
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶ added in v0.40.0
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶ added in v0.40.0
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶ added in v0.40.0
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶ added in v0.40.0
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶ added in v0.40.0
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶ added in v0.40.0
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶ added in v0.40.0
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶ added in v0.40.0
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶ added in v0.40.0
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶ added in v0.40.0
func (m *MsgUpdateParamsResponse) 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 */ }
Params defines the set of wasm parameters.
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 PortKeeper ¶
type PortKeeper interface {
BindPort(ctx sdk.Context, portID string) *capabilitytypes.Capability
}
PortKeeper defines the expected IBC port keeper
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) // Params gets the module params Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // ContractsByCreator gets the contracts by creator ContractsByCreator(ctx context.Context, in *QueryContractsByCreatorRequest, opts ...grpc.CallOption) (*QueryContractsByCreatorResponse, 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 QueryContractsByCreatorRequest ¶ added in v0.30.0
type QueryContractsByCreatorRequest struct { // CreatorAddress is the address of contract creator CreatorAddress string `protobuf:"bytes,1,opt,name=creator_address,json=creatorAddress,proto3" json:"creator_address,omitempty"` // Pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryContractsByCreatorRequest is the request type for the Query/ContractsByCreator RPC method.
func (*QueryContractsByCreatorRequest) Descriptor ¶ added in v0.30.0
func (*QueryContractsByCreatorRequest) Descriptor() ([]byte, []int)
func (*QueryContractsByCreatorRequest) Marshal ¶ added in v0.30.0
func (m *QueryContractsByCreatorRequest) Marshal() (dAtA []byte, err error)
func (*QueryContractsByCreatorRequest) MarshalTo ¶ added in v0.30.0
func (m *QueryContractsByCreatorRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryContractsByCreatorRequest) MarshalToSizedBuffer ¶ added in v0.30.0
func (m *QueryContractsByCreatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryContractsByCreatorRequest) ProtoMessage ¶ added in v0.30.0
func (*QueryContractsByCreatorRequest) ProtoMessage()
func (*QueryContractsByCreatorRequest) Reset ¶ added in v0.30.0
func (m *QueryContractsByCreatorRequest) Reset()
func (*QueryContractsByCreatorRequest) Size ¶ added in v0.30.0
func (m *QueryContractsByCreatorRequest) Size() (n int)
func (*QueryContractsByCreatorRequest) String ¶ added in v0.30.0
func (m *QueryContractsByCreatorRequest) String() string
func (*QueryContractsByCreatorRequest) Unmarshal ¶ added in v0.30.0
func (m *QueryContractsByCreatorRequest) Unmarshal(dAtA []byte) error
func (*QueryContractsByCreatorRequest) XXX_DiscardUnknown ¶ added in v0.30.0
func (m *QueryContractsByCreatorRequest) XXX_DiscardUnknown()
func (*QueryContractsByCreatorRequest) XXX_Marshal ¶ added in v0.30.0
func (m *QueryContractsByCreatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryContractsByCreatorRequest) XXX_Merge ¶ added in v0.30.0
func (m *QueryContractsByCreatorRequest) XXX_Merge(src proto.Message)
func (*QueryContractsByCreatorRequest) XXX_Size ¶ added in v0.30.0
func (m *QueryContractsByCreatorRequest) XXX_Size() int
func (*QueryContractsByCreatorRequest) XXX_Unmarshal ¶ added in v0.30.0
func (m *QueryContractsByCreatorRequest) XXX_Unmarshal(b []byte) error
type QueryContractsByCreatorResponse ¶ added in v0.30.0
type QueryContractsByCreatorResponse struct { // ContractAddresses result set ContractAddresses []string `protobuf:"bytes,1,rep,name=contract_addresses,json=contractAddresses,proto3" json:"contract_addresses,omitempty"` // Pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryContractsByCreatorResponse is the response type for the Query/ContractsByCreator RPC method.
func (*QueryContractsByCreatorResponse) Descriptor ¶ added in v0.30.0
func (*QueryContractsByCreatorResponse) Descriptor() ([]byte, []int)
func (*QueryContractsByCreatorResponse) Marshal ¶ added in v0.30.0
func (m *QueryContractsByCreatorResponse) Marshal() (dAtA []byte, err error)
func (*QueryContractsByCreatorResponse) MarshalTo ¶ added in v0.30.0
func (m *QueryContractsByCreatorResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryContractsByCreatorResponse) MarshalToSizedBuffer ¶ added in v0.30.0
func (m *QueryContractsByCreatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryContractsByCreatorResponse) ProtoMessage ¶ added in v0.30.0
func (*QueryContractsByCreatorResponse) ProtoMessage()
func (*QueryContractsByCreatorResponse) Reset ¶ added in v0.30.0
func (m *QueryContractsByCreatorResponse) Reset()
func (*QueryContractsByCreatorResponse) Size ¶ added in v0.30.0
func (m *QueryContractsByCreatorResponse) Size() (n int)
func (*QueryContractsByCreatorResponse) String ¶ added in v0.30.0
func (m *QueryContractsByCreatorResponse) String() string
func (*QueryContractsByCreatorResponse) Unmarshal ¶ added in v0.30.0
func (m *QueryContractsByCreatorResponse) Unmarshal(dAtA []byte) error
func (*QueryContractsByCreatorResponse) XXX_DiscardUnknown ¶ added in v0.30.0
func (m *QueryContractsByCreatorResponse) XXX_DiscardUnknown()
func (*QueryContractsByCreatorResponse) XXX_Marshal ¶ added in v0.30.0
func (m *QueryContractsByCreatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryContractsByCreatorResponse) XXX_Merge ¶ added in v0.30.0
func (m *QueryContractsByCreatorResponse) XXX_Merge(src proto.Message)
func (*QueryContractsByCreatorResponse) XXX_Size ¶ added in v0.30.0
func (m *QueryContractsByCreatorResponse) XXX_Size() int
func (*QueryContractsByCreatorResponse) XXX_Unmarshal ¶ added in v0.30.0
func (m *QueryContractsByCreatorResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶ added in v0.29.0
type QueryParamsRequest struct{}
QueryParamsRequest is the request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶ added in v0.29.0
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶ added in v0.29.0
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶ added in v0.29.0
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶ added in v0.29.0
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶ added in v0.29.0
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶ added in v0.29.0
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶ added in v0.29.0
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶ added in v0.29.0
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶ added in v0.29.0
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶ added in v0.29.0
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶ added in v0.29.0
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶ added in v0.29.0
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶ added in v0.29.0
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶ added in v0.29.0
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶ added in v0.29.0
type QueryParamsResponse struct { // params defines the parameters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is the response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶ added in v0.29.0
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) Marshal ¶ added in v0.29.0
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶ added in v0.29.0
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶ added in v0.29.0
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶ added in v0.29.0
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶ added in v0.29.0
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶ added in v0.29.0
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶ added in v0.29.0
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶ added in v0.29.0
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶ added in v0.29.0
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶ added in v0.29.0
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶ added in v0.29.0
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶ added in v0.29.0
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶ added in v0.29.0
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryPinnedCodesRequest ¶ added in v0.20.0
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 ¶ added in v0.20.0
func (*QueryPinnedCodesRequest) Descriptor() ([]byte, []int)
func (*QueryPinnedCodesRequest) Marshal ¶ added in v0.20.0
func (m *QueryPinnedCodesRequest) Marshal() (dAtA []byte, err error)
func (*QueryPinnedCodesRequest) MarshalTo ¶ added in v0.20.0
func (m *QueryPinnedCodesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryPinnedCodesRequest) MarshalToSizedBuffer ¶ added in v0.20.0
func (m *QueryPinnedCodesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPinnedCodesRequest) ProtoMessage ¶ added in v0.20.0
func (*QueryPinnedCodesRequest) ProtoMessage()
func (*QueryPinnedCodesRequest) Reset ¶ added in v0.20.0
func (m *QueryPinnedCodesRequest) Reset()
func (*QueryPinnedCodesRequest) Size ¶ added in v0.20.0
func (m *QueryPinnedCodesRequest) Size() (n int)
func (*QueryPinnedCodesRequest) String ¶ added in v0.20.0
func (m *QueryPinnedCodesRequest) String() string
func (*QueryPinnedCodesRequest) Unmarshal ¶ added in v0.20.0
func (m *QueryPinnedCodesRequest) Unmarshal(dAtA []byte) error
func (*QueryPinnedCodesRequest) XXX_DiscardUnknown ¶ added in v0.20.0
func (m *QueryPinnedCodesRequest) XXX_DiscardUnknown()
func (*QueryPinnedCodesRequest) XXX_Marshal ¶ added in v0.20.0
func (m *QueryPinnedCodesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPinnedCodesRequest) XXX_Merge ¶ added in v0.20.0
func (m *QueryPinnedCodesRequest) XXX_Merge(src proto.Message)
func (*QueryPinnedCodesRequest) XXX_Size ¶ added in v0.20.0
func (m *QueryPinnedCodesRequest) XXX_Size() int
func (*QueryPinnedCodesRequest) XXX_Unmarshal ¶ added in v0.20.0
func (m *QueryPinnedCodesRequest) XXX_Unmarshal(b []byte) error
type QueryPinnedCodesResponse ¶ added in v0.20.0
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 ¶ added in v0.20.0
func (*QueryPinnedCodesResponse) Descriptor() ([]byte, []int)
func (*QueryPinnedCodesResponse) Marshal ¶ added in v0.20.0
func (m *QueryPinnedCodesResponse) Marshal() (dAtA []byte, err error)
func (*QueryPinnedCodesResponse) MarshalTo ¶ added in v0.20.0
func (m *QueryPinnedCodesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPinnedCodesResponse) MarshalToSizedBuffer ¶ added in v0.20.0
func (m *QueryPinnedCodesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPinnedCodesResponse) ProtoMessage ¶ added in v0.20.0
func (*QueryPinnedCodesResponse) ProtoMessage()
func (*QueryPinnedCodesResponse) Reset ¶ added in v0.20.0
func (m *QueryPinnedCodesResponse) Reset()
func (*QueryPinnedCodesResponse) Size ¶ added in v0.20.0
func (m *QueryPinnedCodesResponse) Size() (n int)
func (*QueryPinnedCodesResponse) String ¶ added in v0.20.0
func (m *QueryPinnedCodesResponse) String() string
func (*QueryPinnedCodesResponse) Unmarshal ¶ added in v0.20.0
func (m *QueryPinnedCodesResponse) Unmarshal(dAtA []byte) error
func (*QueryPinnedCodesResponse) XXX_DiscardUnknown ¶ added in v0.20.0
func (m *QueryPinnedCodesResponse) XXX_DiscardUnknown()
func (*QueryPinnedCodesResponse) XXX_Marshal ¶ added in v0.20.0
func (m *QueryPinnedCodesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPinnedCodesResponse) XXX_Merge ¶ added in v0.20.0
func (m *QueryPinnedCodesResponse) XXX_Merge(src proto.Message)
func (*QueryPinnedCodesResponse) XXX_Size ¶ added in v0.20.0
func (m *QueryPinnedCodesResponse) XXX_Size() int
func (*QueryPinnedCodesResponse) XXX_Unmarshal ¶ added in v0.20.0
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) // Params gets the module params Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // ContractsByCreator gets the contracts by creator ContractsByCreator(context.Context, *QueryContractsByCreatorRequest) (*QueryContractsByCreatorResponse, 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 ¶ added in v0.21.0
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 ¶ added in v0.21.0
func (r RawContractMessage) Bytes() []byte
Bytes returns raw bytes type
func (RawContractMessage) Equal ¶ added in v0.30.0
func (r RawContractMessage) Equal(o RawContractMessage) bool
Equal content is equal json. Byte equal but this can change in the future.
func (RawContractMessage) MarshalJSON ¶ added in v0.21.0
func (r RawContractMessage) MarshalJSON() ([]byte, error)
func (*RawContractMessage) UnmarshalJSON ¶ added in v0.21.0
func (r *RawContractMessage) UnmarshalJSON(b []byte) error
func (*RawContractMessage) ValidateBasic ¶ added in v0.21.0
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 context.Context) (string, error) // GetValidator get a single validator GetValidator(ctx context.Context, addr sdk.ValAddress) (validator stakingtypes.Validator, err error) // GetBondedValidatorsByPower get the current group of bonded validators sorted by power-rank GetBondedValidatorsByPower(ctx context.Context) ([]stakingtypes.Validator, error) // GetAllDelegatorDelegations return all delegations for a delegator GetAllDelegatorDelegations(ctx context.Context, delegator sdk.AccAddress) ([]stakingtypes.Delegation, error) // GetDelegation return a specific delegation GetDelegation(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (stakingtypes.Delegation, error) // HasReceivingRedelegation check if validator is receiving a redelegation HasReceivingRedelegation(ctx context.Context, delAddr sdk.AccAddress, valDstAddr sdk.ValAddress) (bool, error) }
StakingKeeper defines a subset of methods implemented by the cosmos-sdk staking keeper
type StoreAdapter ¶ added in v0.31.0
type StoreAdapter struct {
// contains filtered or unexported fields
}
StoreAdapter adapter to bridge SDK store impl to wasmvm
func NewStoreAdapter ¶ added in v0.31.0
func NewStoreAdapter(s storetypes.KVStore) *StoreAdapter
NewStoreAdapter constructor
func (StoreAdapter) Delete ¶ added in v0.31.0
func (s StoreAdapter) Delete(key []byte)
func (StoreAdapter) Get ¶ added in v0.31.0
func (s StoreAdapter) Get(key []byte) []byte
func (StoreAdapter) Iterator ¶ added in v0.31.0
func (s StoreAdapter) Iterator(start, end []byte) wasmvmtypes.Iterator
func (StoreAdapter) ReverseIterator ¶ added in v0.31.0
func (s StoreAdapter) ReverseIterator(start, end []byte) wasmvmtypes.Iterator
func (StoreAdapter) Set ¶ added in v0.31.0
func (s StoreAdapter) Set(key, value []byte)
type StoreCodeAuthorization ¶ added in v0.42.0
type StoreCodeAuthorization struct { // Grants for code upload Grants []CodeGrant `protobuf:"bytes,1,rep,name=grants,proto3" json:"grants"` }
StoreCodeAuthorization defines authorization for wasm code upload. Since: wasmd 0.42
func NewStoreCodeAuthorization ¶ added in v0.42.0
func NewStoreCodeAuthorization(grants ...CodeGrant) *StoreCodeAuthorization
NewStoreCodeAuthorization constructor
func (*StoreCodeAuthorization) Accept ¶ added in v0.42.0
func (a *StoreCodeAuthorization) Accept(ctx context.Context, msg sdk.Msg) (authztypes.AcceptResponse, error)
Accept implements Authorization.Accept.
func (*StoreCodeAuthorization) Descriptor ¶ added in v0.42.0
func (*StoreCodeAuthorization) Descriptor() ([]byte, []int)
func (*StoreCodeAuthorization) Marshal ¶ added in v0.42.0
func (m *StoreCodeAuthorization) Marshal() (dAtA []byte, err error)
func (*StoreCodeAuthorization) MarshalTo ¶ added in v0.42.0
func (m *StoreCodeAuthorization) MarshalTo(dAtA []byte) (int, error)
func (*StoreCodeAuthorization) MarshalToSizedBuffer ¶ added in v0.42.0
func (m *StoreCodeAuthorization) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (StoreCodeAuthorization) MsgTypeURL ¶ added in v0.42.0
func (a StoreCodeAuthorization) MsgTypeURL() string
MsgTypeURL implements Authorization.MsgTypeURL.
func (*StoreCodeAuthorization) ProtoMessage ¶ added in v0.42.0
func (*StoreCodeAuthorization) ProtoMessage()
func (*StoreCodeAuthorization) Reset ¶ added in v0.42.0
func (m *StoreCodeAuthorization) Reset()
func (*StoreCodeAuthorization) Size ¶ added in v0.42.0
func (m *StoreCodeAuthorization) Size() (n int)
func (*StoreCodeAuthorization) String ¶ added in v0.42.0
func (m *StoreCodeAuthorization) String() string
func (*StoreCodeAuthorization) Unmarshal ¶ added in v0.42.0
func (m *StoreCodeAuthorization) Unmarshal(dAtA []byte) error
func (StoreCodeAuthorization) ValidateBasic ¶ added in v0.42.0
func (a StoreCodeAuthorization) ValidateBasic() error
ValidateBasic implements Authorization.ValidateBasic.
func (*StoreCodeAuthorization) XXX_DiscardUnknown ¶ added in v0.42.0
func (m *StoreCodeAuthorization) XXX_DiscardUnknown()
func (*StoreCodeAuthorization) XXX_Marshal ¶ added in v0.42.0
func (m *StoreCodeAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StoreCodeAuthorization) XXX_Merge ¶ added in v0.42.0
func (m *StoreCodeAuthorization) XXX_Merge(src proto.Message)
func (*StoreCodeAuthorization) XXX_Size ¶ added in v0.42.0
func (m *StoreCodeAuthorization) XXX_Size() int
func (*StoreCodeAuthorization) XXX_Unmarshal ¶ added in v0.42.0
func (m *StoreCodeAuthorization) XXX_Unmarshal(b []byte) error
type UndefinedFilter ¶ added in v0.30.0
type UndefinedFilter struct{}
UndefinedFilter null object that is always rejected in execution
func (*UndefinedFilter) Accept ¶ added in v0.30.0
func (f *UndefinedFilter) Accept(_ sdk.Context, _ RawContractMessage) (bool, error)
Accept always returns error
func (UndefinedFilter) ValidateBasic ¶ added in v0.30.0
func (f UndefinedFilter) ValidateBasic() error
ValidateBasic always returns error
type UndefinedLimit ¶ added in v0.30.0
type UndefinedLimit struct{}
UndefinedLimit null object that is always rejected in execution
func (UndefinedLimit) Accept ¶ added in v0.30.0
func (u UndefinedLimit) Accept(_ sdk.Context, _ AuthzableWasmMsg) (*ContractAuthzLimitAcceptResult, error)
Accept always returns error
func (UndefinedLimit) ValidateBasic ¶ added in v0.30.0
func (u UndefinedLimit) ValidateBasic() error
ValidateBasic always returns error
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct{}
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) AddCodeUploadParamsAddresses ¶ added in v0.41.0
func (*UnimplementedMsgServer) AddCodeUploadParamsAddresses(ctx context.Context, req *MsgAddCodeUploadParamsAddresses) (*MsgAddCodeUploadParamsAddressesResponse, error)
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) InstantiateContract2 ¶ added in v0.29.0
func (*UnimplementedMsgServer) InstantiateContract2(ctx context.Context, req *MsgInstantiateContract2) (*MsgInstantiateContract2Response, error)
func (*UnimplementedMsgServer) MigrateContract ¶
func (*UnimplementedMsgServer) MigrateContract(ctx context.Context, req *MsgMigrateContract) (*MsgMigrateContractResponse, error)
func (*UnimplementedMsgServer) PinCodes ¶ added in v0.40.0
func (*UnimplementedMsgServer) PinCodes(ctx context.Context, req *MsgPinCodes) (*MsgPinCodesResponse, error)
func (*UnimplementedMsgServer) RemoveCodeUploadParamsAddresses ¶ added in v0.41.0
func (*UnimplementedMsgServer) RemoveCodeUploadParamsAddresses(ctx context.Context, req *MsgRemoveCodeUploadParamsAddresses) (*MsgRemoveCodeUploadParamsAddressesResponse, error)
func (*UnimplementedMsgServer) StoreAndInstantiateContract ¶ added in v0.40.0
func (*UnimplementedMsgServer) StoreAndInstantiateContract(ctx context.Context, req *MsgStoreAndInstantiateContract) (*MsgStoreAndInstantiateContractResponse, error)
func (*UnimplementedMsgServer) StoreAndMigrateContract ¶ added in v0.42.0
func (*UnimplementedMsgServer) StoreAndMigrateContract(ctx context.Context, req *MsgStoreAndMigrateContract) (*MsgStoreAndMigrateContractResponse, error)
func (*UnimplementedMsgServer) StoreCode ¶
func (*UnimplementedMsgServer) StoreCode(ctx context.Context, req *MsgStoreCode) (*MsgStoreCodeResponse, error)
func (*UnimplementedMsgServer) SudoContract ¶ added in v0.40.0
func (*UnimplementedMsgServer) SudoContract(ctx context.Context, req *MsgSudoContract) (*MsgSudoContractResponse, error)
func (*UnimplementedMsgServer) UnpinCodes ¶ added in v0.40.0
func (*UnimplementedMsgServer) UnpinCodes(ctx context.Context, req *MsgUnpinCodes) (*MsgUnpinCodesResponse, error)
func (*UnimplementedMsgServer) UpdateAdmin ¶
func (*UnimplementedMsgServer) UpdateAdmin(ctx context.Context, req *MsgUpdateAdmin) (*MsgUpdateAdminResponse, error)
func (*UnimplementedMsgServer) UpdateContractLabel ¶ added in v0.43.0
func (*UnimplementedMsgServer) UpdateContractLabel(ctx context.Context, req *MsgUpdateContractLabel) (*MsgUpdateContractLabelResponse, error)
func (*UnimplementedMsgServer) UpdateInstantiateConfig ¶ added in v0.31.0
func (*UnimplementedMsgServer) UpdateInstantiateConfig(ctx context.Context, req *MsgUpdateInstantiateConfig) (*MsgUpdateInstantiateConfigResponse, error)
func (*UnimplementedMsgServer) UpdateParams ¶ added in v0.40.0
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, 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) ContractsByCreator ¶ added in v0.30.0
func (*UnimplementedQueryServer) ContractsByCreator(ctx context.Context, req *QueryContractsByCreatorRequest) (*QueryContractsByCreatorResponse, error)
func (*UnimplementedQueryServer) Params ¶ added in v0.29.0
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) PinnedCodes ¶ added in v0.20.0
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 ViewKeeper ¶
type ViewKeeper interface { GetContractHistory(ctx context.Context, contractAddr sdk.AccAddress) []ContractCodeHistoryEntry QuerySmart(ctx context.Context, contractAddr sdk.AccAddress, req []byte) ([]byte, error) QueryRaw(ctx context.Context, contractAddress sdk.AccAddress, key []byte) []byte HasContractInfo(ctx context.Context, contractAddress sdk.AccAddress) bool GetContractInfo(ctx context.Context, contractAddress sdk.AccAddress) *ContractInfo IterateContractInfo(ctx context.Context, cb func(sdk.AccAddress, ContractInfo) bool) IterateContractsByCreator(ctx context.Context, creator sdk.AccAddress, cb func(address sdk.AccAddress) bool) IterateContractsByCode(ctx context.Context, codeID uint64, cb func(address sdk.AccAddress) bool) IterateContractState(ctx context.Context, contractAddress sdk.AccAddress, cb func(key, value []byte) bool) GetCodeInfo(ctx context.Context, codeID uint64) *CodeInfo IterateCodeInfos(ctx context.Context, cb func(uint64, CodeInfo) bool) GetByteCode(ctx context.Context, codeID uint64) ([]byte, error) IsPinnedCode(ctx context.Context, codeID uint64) bool GetParams(ctx context.Context) Params }
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 `mapstructure:"simulation_gas_limit"` // SmartQueryGasLimit is the max gas to be used in a smart query contract call SmartQueryGasLimit uint64 `mapstructure:"query_gas_limit"` // MemoryCacheSize in MiB not bytes MemoryCacheSize uint32 `mapstructure:"memory_cache_size"` // 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 WasmEngine ¶ added in v0.42.0
type WasmEngine 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. // // Deprecated: use StoreCode instead. Create(code wasmvm.WasmCode) (wasmvm.Checksum, error) // Create will compile the wasm code, and store the resulting pre-compile // as well as the original code. Both can be referenced later via checksum // This must be done one time for given code, after which it can be // instatitated many times, and each instance called many times. // It does the same as StoreCodeUnchecked plus the static checks. StoreCode(code wasmvm.WasmCode) (wasmvm.Checksum, error) // Create will compile the wasm code, and store the resulting pre-compile // as well as the original code. Both can be referenced later via checksum // This must be done one time for given code, after which it can be // instatitated many times, and each instance called many times. // It does the same as StoreCode but without the static checks. StoreCodeUnchecked(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 phase 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 phase 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 probably 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) }
WasmEngine defines the WASM contract runtime engine.
type WasmGasRegister ¶ added in v0.42.0
type WasmGasRegister struct {
// contains filtered or unexported fields
}
WasmGasRegister implements GasRegister interface
func NewDefaultWasmGasRegister ¶ added in v0.42.0
func NewDefaultWasmGasRegister() WasmGasRegister
NewDefaultWasmGasRegister creates instance with default values
func NewWasmGasRegister ¶ added in v0.42.0
func NewWasmGasRegister(c WasmGasRegisterConfig) WasmGasRegister
NewWasmGasRegister constructor
func (WasmGasRegister) CompileCosts ¶ added in v0.42.0
func (g WasmGasRegister) CompileCosts(byteLength int) storetypes.Gas
CompileCosts costs to persist and "compile" a new wasm contract
func (WasmGasRegister) EventCosts ¶ added in v0.42.0
func (g WasmGasRegister) EventCosts(attrs []wasmvmtypes.EventAttribute, events wasmvmtypes.Events) storetypes.Gas
EventCosts costs to persist an event
func (WasmGasRegister) FromWasmVMGas ¶ added in v0.42.0
func (g WasmGasRegister) FromWasmVMGas(source uint64) storetypes.Gas
FromWasmVMGas converts from CosmWasm gas (aka. wasmvm gas) to Cosmos SDK gas units
func (WasmGasRegister) InstantiateContractCosts ¶ added in v0.42.0
func (g WasmGasRegister) InstantiateContractCosts(pinned bool, msgLen int) storetypes.Gas
InstantiateContractCosts costs when interacting with a wasm contract
func (WasmGasRegister) NewContractInstanceCosts ¶ added in v0.42.0
func (g WasmGasRegister) NewContractInstanceCosts(pinned bool, msgLen int) storetypes.Gas
NewContractInstanceCosts costs to create a new contract instance from code
func (WasmGasRegister) ReplyCosts ¶ added in v0.42.0
func (g WasmGasRegister) ReplyCosts(pinned bool, reply wasmvmtypes.Reply) storetypes.Gas
ReplyCosts costs to to handle a message reply
func (WasmGasRegister) ToWasmVMGas ¶ added in v0.42.0
func (g WasmGasRegister) ToWasmVMGas(source storetypes.Gas) uint64
ToWasmVMGas converts from Cosmos SDK gas units to CosmWasm gas (aka. wasmvm gas)
func (WasmGasRegister) UncompressCosts ¶ added in v0.42.0
func (g WasmGasRegister) UncompressCosts(byteLength int) storetypes.Gas
UncompressCosts costs to unpack a new wasm contract
type WasmGasRegisterConfig ¶ added in v0.42.0
type WasmGasRegisterConfig struct { // InstanceCost costs when interacting with a wasm contract InstanceCost storetypes.Gas // CompileCosts costs to persist and "compile" a new wasm contract CompileCost storetypes.Gas // UncompressCost costs per byte to unpack a contract UncompressCost wasmvmtypes.UFraction // GasMultiplier is how many cosmwasm gas points = 1 sdk gas point // SDK reference costs can be found here: https://github.com/cosmos/cosmos-sdk/blob/02c6c9fafd58da88550ab4d7d494724a477c8a68/store/types/gas.go#L153-L164 GasMultiplier storetypes.Gas // EventPerAttributeCost is how much SDK gas is charged *per byte* for attribute data in events. // This is used with len(key) + len(value) EventPerAttributeCost storetypes.Gas // EventAttributeDataCost is how much SDK gas is charged *per byte* for attribute data in events. // This is used with len(key) + len(value) EventAttributeDataCost storetypes.Gas // EventAttributeDataFreeTier number of bytes of total attribute data that is free of charge EventAttributeDataFreeTier uint64 // ContractMessageDataCost SDK gas charged *per byte* of the message that goes to the contract // This is used with len(msg) ContractMessageDataCost storetypes.Gas // CustomEventCost cost per custom event CustomEventCost uint64 }
WasmGasRegisterConfig config type
func DefaultGasRegisterConfig ¶ added in v0.42.0
func DefaultGasRegisterConfig() WasmGasRegisterConfig
DefaultGasRegisterConfig default values
type WasmVMErrorable ¶ added in v0.31.0
type WasmVMErrorable interface { // ToWasmVMError convert instance to wasmvm friendly error if possible otherwise root cause. never nil ToWasmVMError() error }
WasmVMErrorable mapped error type in wasmvm and are not redacted
type WasmVMFlavouredError ¶ added in v0.31.0
type WasmVMFlavouredError struct {
// contains filtered or unexported fields
}
WasmVMFlavouredError wrapper for sdk error that supports wasmvm error types
func NewWasmVMFlavouredError ¶ added in v0.31.0
func NewWasmVMFlavouredError(sdkErr *errorsmod.Error, wasmVMErr error) WasmVMFlavouredError
NewWasmVMFlavouredError constructor
func (WasmVMFlavouredError) Cause ¶ added in v0.31.0
func (e WasmVMFlavouredError) Cause() error
Cause is the same as unwrap but used by errors.abci
func (WasmVMFlavouredError) Error ¶ added in v0.31.0
func (e WasmVMFlavouredError) Error() string
implements stdlib error
func (WasmVMFlavouredError) ToWasmVMError ¶ added in v0.31.0
func (e WasmVMFlavouredError) ToWasmVMError() error
ToWasmVMError implements WasmVMError-able
func (WasmVMFlavouredError) Unwrap ¶ added in v0.31.0
func (e WasmVMFlavouredError) Unwrap() error
Unwrap implements the built-in errors.Unwrap
func (WasmVMFlavouredError) Wrap ¶ added in v0.31.0
func (e WasmVMFlavouredError) Wrap(desc string) error
Wrap extends this error with additional information. It's a handy function to call Wrap with sdk errors.
func (WasmVMFlavouredError) Wrapf ¶ added in v0.31.0
func (e WasmVMFlavouredError) Wrapf(desc string, args ...interface{}) error
Wrapf extends this error with additional information. It's a handy function to call Wrapf with sdk errors.
Source Files ¶
- authz.go
- authz.pb.go
- authz_policy.go
- codec.go
- context.go
- errors.go
- events.go
- expected_keepers.go
- exported_keepers.go
- feature_flag.go
- gas_register.go
- genesis.go
- genesis.pb.go
- ibc.pb.go
- json_matching.go
- keys.go
- params.go
- params_legacy.go
- query.pb.go
- query.pb.gw.go
- test_fixtures.go
- tx.go
- tx.pb.go
- types.go
- types.pb.go
- validation.go
- wasmer_engine.go