Documentation ¶
Overview ¶
noalias
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func BuildExecuteEntryFunctionPayload(moduleOwner sdk.AccAddress, moduleName string, functionName string, ...) (vmtypes.EntryFunction, error)
- func BuildExecuteScriptPayload(byteCodes []byte, typeArgs []string, args [][]byte) (vmtypes.Script, error)
- func CompileCoinModule(moduleName string) ([]byte, error)
- func DenomHashFromStructTagStr(structTagStr string) []byte
- func GetDenomTraceKey(denomHash []byte) []byte
- func GetModuleKey(addr sdk.AccAddress, moduleName string) ([]byte, error)
- func GetModulePrefix(addr sdk.AccAddress) []byte
- func GetResourceKey(addr sdk.AccAddress, structTag vmtypes.StructTag) ([]byte, error)
- func GetResourcePrefix(addr sdk.AccAddress) []byte
- func GetStorageFeeKey(addr sdk.AccAddress) []byte
- func GetTableEntryKey(tableAddr sdk.AccAddress, key []byte) []byte
- func GetTableEntryPrefix(tableAddr sdk.AccAddress) []byte
- func GetTableMetaKey(tableAddr sdk.AccAddress) []byte
- func GetTableMetaPrefix(tableAddr sdk.AccAddress) []byte
- func IBCDenomFromStructTag(structTag vmtypes.StructTag) (string, error)
- func IsIBCDenom(denom string) bool
- func IsMoveDenom(denom string) bool
- func IsNativeDenom(denom string) bool
- func ModuleNameFromIBCDenom(denom string) string
- func ModuleNameFromNativeDenom(denom string) string
- func MoveDenomFromStructTag(structTag vmtypes.StructTag) (string, error)
- func NativeDenomFromStructTag(structTag vmtypes.StructTag) (string, error)
- func NormalizeAddrToHex(addr sdk.AccAddress) string
- func ParamKeyTable() paramstypes.KeyTable
- func RegisterInterfaces(registry codectypes.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 StructTagFromIBCDenom(denom string) vmtypes.StructTag
- func StructTagFromNativeDenom(denom string) vmtypes.StructTag
- func ValidateGenesis(data *GenesisState) error
- type AccountKeeper
- type BankKeeper
- type BankViewKeeper
- type DenomTrace
- func (*DenomTrace) Descriptor() ([]byte, []int)
- func (this *DenomTrace) Equal(that interface{}) bool
- func (m *DenomTrace) Marshal() (dAtA []byte, err error)
- func (m *DenomTrace) MarshalTo(dAtA []byte) (int, error)
- func (m *DenomTrace) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DenomTrace) ProtoMessage()
- func (m *DenomTrace) Reset()
- func (m *DenomTrace) Size() (n int)
- func (m *DenomTrace) String() string
- func (m *DenomTrace) Unmarshal(dAtA []byte) error
- func (m *DenomTrace) XXX_DiscardUnknown()
- func (m *DenomTrace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DenomTrace) XXX_Merge(src proto.Message)
- func (m *DenomTrace) XXX_Size() int
- func (m *DenomTrace) XXX_Unmarshal(b []byte) error
- type DistributionKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetDenomTraces() []DenomTrace
- func (m *GenesisState) GetModules() []Module
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetResources() []Resource
- func (m *GenesisState) GetStdlibs() []Module
- func (m *GenesisState) GetStorageFees() []StorageFee
- func (m *GenesisState) GetTableEntries() []TableEntry
- func (m *GenesisState) GetTableMetas() []TableMeta
- 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 (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 Module
- func (*Module) Descriptor() ([]byte, []int)
- func (this *Module) Equal(that interface{}) bool
- func (m *Module) Marshal() (dAtA []byte, err error)
- func (m *Module) MarshalTo(dAtA []byte) (int, error)
- func (m *Module) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Module) ProtoMessage()
- func (m *Module) Reset()
- func (m *Module) Size() (n int)
- func (m *Module) String() string
- func (m *Module) Unmarshal(dAtA []byte) error
- func (m *Module) XXX_DiscardUnknown()
- func (m *Module) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Module) XXX_Merge(src proto.Message)
- func (m *Module) XXX_Size() int
- func (m *Module) XXX_Unmarshal(b []byte) error
- type MoveCoin
- func (*MoveCoin) Descriptor() ([]byte, []int)
- func (this *MoveCoin) Equal(that interface{}) bool
- func (m *MoveCoin) Marshal() (dAtA []byte, err error)
- func (m *MoveCoin) MarshalTo(dAtA []byte) (int, error)
- func (m *MoveCoin) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MoveCoin) ProtoMessage()
- func (m *MoveCoin) Reset()
- func (m *MoveCoin) Size() (n int)
- func (m *MoveCoin) String() string
- func (m *MoveCoin) Unmarshal(dAtA []byte) error
- func (m *MoveCoin) XXX_DiscardUnknown()
- func (m *MoveCoin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MoveCoin) XXX_Merge(src proto.Message)
- func (m *MoveCoin) XXX_Size() int
- func (m *MoveCoin) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgConvertMoveCoin
- func (*MsgConvertMoveCoin) Descriptor() ([]byte, []int)
- func (msg MsgConvertMoveCoin) GetSignBytes() []byte
- func (msg MsgConvertMoveCoin) GetSigners() []sdk.AccAddress
- func (m *MsgConvertMoveCoin) Marshal() (dAtA []byte, err error)
- func (m *MsgConvertMoveCoin) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgConvertMoveCoin) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgConvertMoveCoin) ProtoMessage()
- func (m *MsgConvertMoveCoin) Reset()
- func (msg MsgConvertMoveCoin) Route() string
- func (m *MsgConvertMoveCoin) Size() (n int)
- func (m *MsgConvertMoveCoin) String() string
- func (msg MsgConvertMoveCoin) Type() string
- func (m *MsgConvertMoveCoin) Unmarshal(dAtA []byte) error
- func (msg MsgConvertMoveCoin) ValidateBasic() error
- func (m *MsgConvertMoveCoin) XXX_DiscardUnknown()
- func (m *MsgConvertMoveCoin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgConvertMoveCoin) XXX_Merge(src proto.Message)
- func (m *MsgConvertMoveCoin) XXX_Size() int
- func (m *MsgConvertMoveCoin) XXX_Unmarshal(b []byte) error
- type MsgConvertMoveCoinResponse
- func (*MsgConvertMoveCoinResponse) Descriptor() ([]byte, []int)
- func (m *MsgConvertMoveCoinResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgConvertMoveCoinResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgConvertMoveCoinResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgConvertMoveCoinResponse) ProtoMessage()
- func (m *MsgConvertMoveCoinResponse) Reset()
- func (m *MsgConvertMoveCoinResponse) Size() (n int)
- func (m *MsgConvertMoveCoinResponse) String() string
- func (m *MsgConvertMoveCoinResponse) Unmarshal(dAtA []byte) error
- func (m *MsgConvertMoveCoinResponse) XXX_DiscardUnknown()
- func (m *MsgConvertMoveCoinResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgConvertMoveCoinResponse) XXX_Merge(src proto.Message)
- func (m *MsgConvertMoveCoinResponse) XXX_Size() int
- func (m *MsgConvertMoveCoinResponse) XXX_Unmarshal(b []byte) error
- type MsgConvertNativeCoin
- func (*MsgConvertNativeCoin) Descriptor() ([]byte, []int)
- func (msg MsgConvertNativeCoin) GetSignBytes() []byte
- func (msg MsgConvertNativeCoin) GetSigners() []sdk.AccAddress
- func (m *MsgConvertNativeCoin) Marshal() (dAtA []byte, err error)
- func (m *MsgConvertNativeCoin) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgConvertNativeCoin) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgConvertNativeCoin) ProtoMessage()
- func (m *MsgConvertNativeCoin) Reset()
- func (msg MsgConvertNativeCoin) Route() string
- func (m *MsgConvertNativeCoin) Size() (n int)
- func (m *MsgConvertNativeCoin) String() string
- func (msg MsgConvertNativeCoin) Type() string
- func (m *MsgConvertNativeCoin) Unmarshal(dAtA []byte) error
- func (msg MsgConvertNativeCoin) ValidateBasic() error
- func (m *MsgConvertNativeCoin) XXX_DiscardUnknown()
- func (m *MsgConvertNativeCoin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgConvertNativeCoin) XXX_Merge(src proto.Message)
- func (m *MsgConvertNativeCoin) XXX_Size() int
- func (m *MsgConvertNativeCoin) XXX_Unmarshal(b []byte) error
- type MsgConvertNativeCoinResponse
- func (*MsgConvertNativeCoinResponse) Descriptor() ([]byte, []int)
- func (m *MsgConvertNativeCoinResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgConvertNativeCoinResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgConvertNativeCoinResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgConvertNativeCoinResponse) ProtoMessage()
- func (m *MsgConvertNativeCoinResponse) Reset()
- func (m *MsgConvertNativeCoinResponse) Size() (n int)
- func (m *MsgConvertNativeCoinResponse) String() string
- func (m *MsgConvertNativeCoinResponse) Unmarshal(dAtA []byte) error
- func (m *MsgConvertNativeCoinResponse) XXX_DiscardUnknown()
- func (m *MsgConvertNativeCoinResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgConvertNativeCoinResponse) XXX_Merge(src proto.Message)
- func (m *MsgConvertNativeCoinResponse) XXX_Size() int
- func (m *MsgConvertNativeCoinResponse) XXX_Unmarshal(b []byte) error
- type MsgExecuteEntryFunction
- func (*MsgExecuteEntryFunction) Descriptor() ([]byte, []int)
- func (msg MsgExecuteEntryFunction) GetSignBytes() []byte
- func (msg MsgExecuteEntryFunction) GetSigners() []sdk.AccAddress
- func (m *MsgExecuteEntryFunction) Marshal() (dAtA []byte, err error)
- func (m *MsgExecuteEntryFunction) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgExecuteEntryFunction) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgExecuteEntryFunction) ProtoMessage()
- func (m *MsgExecuteEntryFunction) Reset()
- func (msg MsgExecuteEntryFunction) Route() string
- func (m *MsgExecuteEntryFunction) Size() (n int)
- func (m *MsgExecuteEntryFunction) String() string
- func (msg MsgExecuteEntryFunction) Type() string
- func (m *MsgExecuteEntryFunction) Unmarshal(dAtA []byte) error
- func (msg MsgExecuteEntryFunction) ValidateBasic() error
- func (m *MsgExecuteEntryFunction) XXX_DiscardUnknown()
- func (m *MsgExecuteEntryFunction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgExecuteEntryFunction) XXX_Merge(src proto.Message)
- func (m *MsgExecuteEntryFunction) XXX_Size() int
- func (m *MsgExecuteEntryFunction) XXX_Unmarshal(b []byte) error
- type MsgExecuteEntryFunctionResponse
- func (*MsgExecuteEntryFunctionResponse) Descriptor() ([]byte, []int)
- func (m *MsgExecuteEntryFunctionResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgExecuteEntryFunctionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgExecuteEntryFunctionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgExecuteEntryFunctionResponse) ProtoMessage()
- func (m *MsgExecuteEntryFunctionResponse) Reset()
- func (m *MsgExecuteEntryFunctionResponse) Size() (n int)
- func (m *MsgExecuteEntryFunctionResponse) String() string
- func (m *MsgExecuteEntryFunctionResponse) Unmarshal(dAtA []byte) error
- func (m *MsgExecuteEntryFunctionResponse) XXX_DiscardUnknown()
- func (m *MsgExecuteEntryFunctionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgExecuteEntryFunctionResponse) XXX_Merge(src proto.Message)
- func (m *MsgExecuteEntryFunctionResponse) XXX_Size() int
- func (m *MsgExecuteEntryFunctionResponse) XXX_Unmarshal(b []byte) error
- type MsgExecuteScript
- func (*MsgExecuteScript) Descriptor() ([]byte, []int)
- func (msg MsgExecuteScript) GetSignBytes() []byte
- func (msg MsgExecuteScript) GetSigners() []sdk.AccAddress
- func (m *MsgExecuteScript) Marshal() (dAtA []byte, err error)
- func (m *MsgExecuteScript) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgExecuteScript) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgExecuteScript) ProtoMessage()
- func (m *MsgExecuteScript) Reset()
- func (msg MsgExecuteScript) Route() string
- func (m *MsgExecuteScript) Size() (n int)
- func (m *MsgExecuteScript) String() string
- func (msg MsgExecuteScript) Type() string
- func (m *MsgExecuteScript) Unmarshal(dAtA []byte) error
- func (msg MsgExecuteScript) ValidateBasic() error
- func (m *MsgExecuteScript) XXX_DiscardUnknown()
- func (m *MsgExecuteScript) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgExecuteScript) XXX_Merge(src proto.Message)
- func (m *MsgExecuteScript) XXX_Size() int
- func (m *MsgExecuteScript) XXX_Unmarshal(b []byte) error
- type MsgExecuteScriptResponse
- func (*MsgExecuteScriptResponse) Descriptor() ([]byte, []int)
- func (m *MsgExecuteScriptResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgExecuteScriptResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgExecuteScriptResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgExecuteScriptResponse) ProtoMessage()
- func (m *MsgExecuteScriptResponse) Reset()
- func (m *MsgExecuteScriptResponse) Size() (n int)
- func (m *MsgExecuteScriptResponse) String() string
- func (m *MsgExecuteScriptResponse) Unmarshal(dAtA []byte) error
- func (m *MsgExecuteScriptResponse) XXX_DiscardUnknown()
- func (m *MsgExecuteScriptResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgExecuteScriptResponse) XXX_Merge(src proto.Message)
- func (m *MsgExecuteScriptResponse) XXX_Size() int
- func (m *MsgExecuteScriptResponse) XXX_Unmarshal(b []byte) error
- type MsgPublishModuleBundle
- func (*MsgPublishModuleBundle) Descriptor() ([]byte, []int)
- func (msg MsgPublishModuleBundle) GetSignBytes() []byte
- func (msg MsgPublishModuleBundle) GetSigners() []sdk.AccAddress
- func (m *MsgPublishModuleBundle) Marshal() (dAtA []byte, err error)
- func (m *MsgPublishModuleBundle) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgPublishModuleBundle) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgPublishModuleBundle) ProtoMessage()
- func (m *MsgPublishModuleBundle) Reset()
- func (msg MsgPublishModuleBundle) Route() string
- func (m *MsgPublishModuleBundle) Size() (n int)
- func (m *MsgPublishModuleBundle) String() string
- func (msg MsgPublishModuleBundle) Type() string
- func (m *MsgPublishModuleBundle) Unmarshal(dAtA []byte) error
- func (msg MsgPublishModuleBundle) ValidateBasic() error
- func (m *MsgPublishModuleBundle) XXX_DiscardUnknown()
- func (m *MsgPublishModuleBundle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgPublishModuleBundle) XXX_Merge(src proto.Message)
- func (m *MsgPublishModuleBundle) XXX_Size() int
- func (m *MsgPublishModuleBundle) XXX_Unmarshal(b []byte) error
- type MsgPublishModuleBundleResponse
- func (*MsgPublishModuleBundleResponse) Descriptor() ([]byte, []int)
- func (m *MsgPublishModuleBundleResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgPublishModuleBundleResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgPublishModuleBundleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgPublishModuleBundleResponse) ProtoMessage()
- func (m *MsgPublishModuleBundleResponse) Reset()
- func (m *MsgPublishModuleBundleResponse) Size() (n int)
- func (m *MsgPublishModuleBundleResponse) String() string
- func (m *MsgPublishModuleBundleResponse) Unmarshal(dAtA []byte) error
- func (m *MsgPublishModuleBundleResponse) XXX_DiscardUnknown()
- func (m *MsgPublishModuleBundleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgPublishModuleBundleResponse) XXX_Merge(src proto.Message)
- func (m *MsgPublishModuleBundleResponse) XXX_Size() int
- func (m *MsgPublishModuleBundleResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- 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() paramstypes.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 PublishStdModuleProposal
- func (*PublishStdModuleProposal) Descriptor() ([]byte, []int)
- func (this *PublishStdModuleProposal) Equal(that interface{}) bool
- func (p PublishStdModuleProposal) GetDescription() string
- func (p *PublishStdModuleProposal) GetTitle() string
- func (m *PublishStdModuleProposal) Marshal() (dAtA []byte, err error)
- func (m *PublishStdModuleProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *PublishStdModuleProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p PublishStdModuleProposal) MarshalYAML() (interface{}, error)
- func (p PublishStdModuleProposal) ProposalRoute() string
- func (p PublishStdModuleProposal) ProposalType() string
- func (*PublishStdModuleProposal) ProtoMessage()
- func (m *PublishStdModuleProposal) Reset()
- func (m *PublishStdModuleProposal) Size() (n int)
- func (p PublishStdModuleProposal) String() string
- func (m *PublishStdModuleProposal) Unmarshal(dAtA []byte) error
- func (p PublishStdModuleProposal) ValidateBasic() error
- func (m *PublishStdModuleProposal) XXX_DiscardUnknown()
- func (m *PublishStdModuleProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PublishStdModuleProposal) XXX_Merge(src proto.Message)
- func (m *PublishStdModuleProposal) XXX_Size() int
- func (m *PublishStdModuleProposal) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryEntryFunctionRequest
- func (*QueryEntryFunctionRequest) Descriptor() ([]byte, []int)
- func (m *QueryEntryFunctionRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryEntryFunctionRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryEntryFunctionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryEntryFunctionRequest) ProtoMessage()
- func (m *QueryEntryFunctionRequest) Reset()
- func (m *QueryEntryFunctionRequest) Size() (n int)
- func (m *QueryEntryFunctionRequest) String() string
- func (m *QueryEntryFunctionRequest) Unmarshal(dAtA []byte) error
- func (m *QueryEntryFunctionRequest) XXX_DiscardUnknown()
- func (m *QueryEntryFunctionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryEntryFunctionRequest) XXX_Merge(src proto.Message)
- func (m *QueryEntryFunctionRequest) XXX_Size() int
- func (m *QueryEntryFunctionRequest) XXX_Unmarshal(b []byte) error
- type QueryEntryFunctionResponse
- func (*QueryEntryFunctionResponse) Descriptor() ([]byte, []int)
- func (m *QueryEntryFunctionResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryEntryFunctionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryEntryFunctionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryEntryFunctionResponse) ProtoMessage()
- func (m *QueryEntryFunctionResponse) Reset()
- func (m *QueryEntryFunctionResponse) Size() (n int)
- func (m *QueryEntryFunctionResponse) String() string
- func (m *QueryEntryFunctionResponse) Unmarshal(dAtA []byte) error
- func (m *QueryEntryFunctionResponse) XXX_DiscardUnknown()
- func (m *QueryEntryFunctionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryEntryFunctionResponse) XXX_Merge(src proto.Message)
- func (m *QueryEntryFunctionResponse) XXX_Size() int
- func (m *QueryEntryFunctionResponse) XXX_Unmarshal(b []byte) error
- type QueryModuleRequest
- func (*QueryModuleRequest) Descriptor() ([]byte, []int)
- func (m *QueryModuleRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryModuleRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryModuleRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryModuleRequest) ProtoMessage()
- func (m *QueryModuleRequest) Reset()
- func (m *QueryModuleRequest) Size() (n int)
- func (m *QueryModuleRequest) String() string
- func (m *QueryModuleRequest) Unmarshal(dAtA []byte) error
- func (m *QueryModuleRequest) XXX_DiscardUnknown()
- func (m *QueryModuleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryModuleRequest) XXX_Merge(src proto.Message)
- func (m *QueryModuleRequest) XXX_Size() int
- func (m *QueryModuleRequest) XXX_Unmarshal(b []byte) error
- type QueryModuleResponse
- func (*QueryModuleResponse) Descriptor() ([]byte, []int)
- func (this *QueryModuleResponse) Equal(that interface{}) bool
- func (m *QueryModuleResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryModuleResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryModuleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryModuleResponse) ProtoMessage()
- func (m *QueryModuleResponse) Reset()
- func (m *QueryModuleResponse) Size() (n int)
- func (m *QueryModuleResponse) String() string
- func (m *QueryModuleResponse) Unmarshal(dAtA []byte) error
- func (m *QueryModuleResponse) XXX_DiscardUnknown()
- func (m *QueryModuleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryModuleResponse) XXX_Merge(src proto.Message)
- func (m *QueryModuleResponse) XXX_Size() int
- func (m *QueryModuleResponse) XXX_Unmarshal(b []byte) error
- type QueryModulesRequest
- func (*QueryModulesRequest) Descriptor() ([]byte, []int)
- func (m *QueryModulesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryModulesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryModulesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryModulesRequest) ProtoMessage()
- func (m *QueryModulesRequest) Reset()
- func (m *QueryModulesRequest) Size() (n int)
- func (m *QueryModulesRequest) String() string
- func (m *QueryModulesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryModulesRequest) XXX_DiscardUnknown()
- func (m *QueryModulesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryModulesRequest) XXX_Merge(src proto.Message)
- func (m *QueryModulesRequest) XXX_Size() int
- func (m *QueryModulesRequest) XXX_Unmarshal(b []byte) error
- type QueryModulesResponse
- func (*QueryModulesResponse) Descriptor() ([]byte, []int)
- func (m *QueryModulesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryModulesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryModulesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryModulesResponse) ProtoMessage()
- func (m *QueryModulesResponse) Reset()
- func (m *QueryModulesResponse) Size() (n int)
- func (m *QueryModulesResponse) String() string
- func (m *QueryModulesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryModulesResponse) XXX_DiscardUnknown()
- func (m *QueryModulesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryModulesResponse) XXX_Merge(src proto.Message)
- func (m *QueryModulesResponse) XXX_Size() int
- func (m *QueryModulesResponse) XXX_Unmarshal(b []byte) error
- type QueryResourceRequest
- func (*QueryResourceRequest) Descriptor() ([]byte, []int)
- func (m *QueryResourceRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryResourceRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryResourceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryResourceRequest) ProtoMessage()
- func (m *QueryResourceRequest) Reset()
- func (m *QueryResourceRequest) Size() (n int)
- func (m *QueryResourceRequest) String() string
- func (m *QueryResourceRequest) Unmarshal(dAtA []byte) error
- func (m *QueryResourceRequest) XXX_DiscardUnknown()
- func (m *QueryResourceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryResourceRequest) XXX_Merge(src proto.Message)
- func (m *QueryResourceRequest) XXX_Size() int
- func (m *QueryResourceRequest) XXX_Unmarshal(b []byte) error
- type QueryResourceResponse
- func (*QueryResourceResponse) Descriptor() ([]byte, []int)
- func (this *QueryResourceResponse) Equal(that interface{}) bool
- func (m *QueryResourceResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryResourceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryResourceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryResourceResponse) ProtoMessage()
- func (m *QueryResourceResponse) Reset()
- func (m *QueryResourceResponse) Size() (n int)
- func (m *QueryResourceResponse) String() string
- func (m *QueryResourceResponse) Unmarshal(dAtA []byte) error
- func (m *QueryResourceResponse) XXX_DiscardUnknown()
- func (m *QueryResourceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryResourceResponse) XXX_Merge(src proto.Message)
- func (m *QueryResourceResponse) XXX_Size() int
- func (m *QueryResourceResponse) XXX_Unmarshal(b []byte) error
- type QueryResourcesRequest
- func (*QueryResourcesRequest) Descriptor() ([]byte, []int)
- func (m *QueryResourcesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryResourcesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryResourcesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryResourcesRequest) ProtoMessage()
- func (m *QueryResourcesRequest) Reset()
- func (m *QueryResourcesRequest) Size() (n int)
- func (m *QueryResourcesRequest) String() string
- func (m *QueryResourcesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryResourcesRequest) XXX_DiscardUnknown()
- func (m *QueryResourcesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryResourcesRequest) XXX_Merge(src proto.Message)
- func (m *QueryResourcesRequest) XXX_Size() int
- func (m *QueryResourcesRequest) XXX_Unmarshal(b []byte) error
- type QueryResourcesResponse
- func (*QueryResourcesResponse) Descriptor() ([]byte, []int)
- func (m *QueryResourcesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryResourcesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryResourcesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryResourcesResponse) ProtoMessage()
- func (m *QueryResourcesResponse) Reset()
- func (m *QueryResourcesResponse) Size() (n int)
- func (m *QueryResourcesResponse) String() string
- func (m *QueryResourcesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryResourcesResponse) XXX_DiscardUnknown()
- func (m *QueryResourcesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryResourcesResponse) XXX_Merge(src proto.Message)
- func (m *QueryResourcesResponse) XXX_Size() int
- func (m *QueryResourcesResponse) XXX_Unmarshal(b []byte) error
- type QueryScriptABIRequest
- func (*QueryScriptABIRequest) Descriptor() ([]byte, []int)
- func (m *QueryScriptABIRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryScriptABIRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryScriptABIRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryScriptABIRequest) ProtoMessage()
- func (m *QueryScriptABIRequest) Reset()
- func (m *QueryScriptABIRequest) Size() (n int)
- func (m *QueryScriptABIRequest) String() string
- func (m *QueryScriptABIRequest) Unmarshal(dAtA []byte) error
- func (m *QueryScriptABIRequest) XXX_DiscardUnknown()
- func (m *QueryScriptABIRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryScriptABIRequest) XXX_Merge(src proto.Message)
- func (m *QueryScriptABIRequest) XXX_Size() int
- func (m *QueryScriptABIRequest) XXX_Unmarshal(b []byte) error
- type QueryScriptABIResponse
- func (*QueryScriptABIResponse) Descriptor() ([]byte, []int)
- func (m *QueryScriptABIResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryScriptABIResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryScriptABIResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryScriptABIResponse) ProtoMessage()
- func (m *QueryScriptABIResponse) Reset()
- func (m *QueryScriptABIResponse) Size() (n int)
- func (m *QueryScriptABIResponse) String() string
- func (m *QueryScriptABIResponse) Unmarshal(dAtA []byte) error
- func (m *QueryScriptABIResponse) XXX_DiscardUnknown()
- func (m *QueryScriptABIResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryScriptABIResponse) XXX_Merge(src proto.Message)
- func (m *QueryScriptABIResponse) XXX_Size() int
- func (m *QueryScriptABIResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type Resource
- func (*Resource) Descriptor() ([]byte, []int)
- func (this *Resource) Equal(that interface{}) bool
- func (m *Resource) Marshal() (dAtA []byte, err error)
- func (m *Resource) MarshalTo(dAtA []byte) (int, error)
- func (m *Resource) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Resource) ProtoMessage()
- func (m *Resource) Reset()
- func (m *Resource) Size() (n int)
- func (m *Resource) String() string
- func (m *Resource) Unmarshal(dAtA []byte) error
- func (m *Resource) XXX_DiscardUnknown()
- func (m *Resource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Resource) XXX_Merge(src proto.Message)
- func (m *Resource) XXX_Size() int
- func (m *Resource) XXX_Unmarshal(b []byte) error
- type StakingKeeper
- type StorageFee
- func (*StorageFee) Descriptor() ([]byte, []int)
- func (this *StorageFee) Equal(that interface{}) bool
- func (m *StorageFee) Marshal() (dAtA []byte, err error)
- func (m *StorageFee) MarshalTo(dAtA []byte) (int, error)
- func (m *StorageFee) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*StorageFee) ProtoMessage()
- func (m *StorageFee) Reset()
- func (m *StorageFee) Size() (n int)
- func (m *StorageFee) String() string
- func (m *StorageFee) Unmarshal(dAtA []byte) error
- func (m *StorageFee) XXX_DiscardUnknown()
- func (m *StorageFee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StorageFee) XXX_Merge(src proto.Message)
- func (m *StorageFee) XXX_Size() int
- func (m *StorageFee) XXX_Unmarshal(b []byte) error
- type TableEntry
- func (*TableEntry) Descriptor() ([]byte, []int)
- func (this *TableEntry) Equal(that interface{}) bool
- func (m *TableEntry) Marshal() (dAtA []byte, err error)
- func (m *TableEntry) MarshalTo(dAtA []byte) (int, error)
- func (m *TableEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TableEntry) ProtoMessage()
- func (m *TableEntry) Reset()
- func (m *TableEntry) Size() (n int)
- func (m *TableEntry) String() string
- func (m *TableEntry) Unmarshal(dAtA []byte) error
- func (m *TableEntry) XXX_DiscardUnknown()
- func (m *TableEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TableEntry) XXX_Merge(src proto.Message)
- func (m *TableEntry) XXX_Size() int
- func (m *TableEntry) XXX_Unmarshal(b []byte) error
- type TableMeta
- func (*TableMeta) Descriptor() ([]byte, []int)
- func (this *TableMeta) Equal(that interface{}) bool
- func (m *TableMeta) Marshal() (dAtA []byte, err error)
- func (m *TableMeta) MarshalTo(dAtA []byte) (int, error)
- func (m *TableMeta) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TableMeta) ProtoMessage()
- func (m *TableMeta) Reset()
- func (m *TableMeta) Size() (n int)
- func (m *TableMeta) String() string
- func (m *TableMeta) Unmarshal(dAtA []byte) error
- func (m *TableMeta) XXX_DiscardUnknown()
- func (m *TableMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TableMeta) XXX_Merge(src proto.Message)
- func (m *TableMeta) XXX_Size() int
- func (m *TableMeta) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) ConvertMoveCoin(ctx context.Context, req *MsgConvertMoveCoin) (*MsgConvertMoveCoinResponse, error)
- func (*UnimplementedMsgServer) ConvertNativeCoin(ctx context.Context, req *MsgConvertNativeCoin) (*MsgConvertNativeCoinResponse, error)
- func (*UnimplementedMsgServer) ExecuteEntryFunction(ctx context.Context, req *MsgExecuteEntryFunction) (*MsgExecuteEntryFunctionResponse, error)
- func (*UnimplementedMsgServer) ExecuteScript(ctx context.Context, req *MsgExecuteScript) (*MsgExecuteScriptResponse, error)
- func (*UnimplementedMsgServer) PublishModuleBundle(ctx context.Context, req *MsgPublishModuleBundle) (*MsgPublishModuleBundleResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) EntryFunction(ctx context.Context, req *QueryEntryFunctionRequest) (*QueryEntryFunctionResponse, error)
- func (*UnimplementedQueryServer) Module(ctx context.Context, req *QueryModuleRequest) (*QueryModuleResponse, error)
- func (*UnimplementedQueryServer) Modules(ctx context.Context, req *QueryModulesRequest) (*QueryModulesResponse, error)
- func (*UnimplementedQueryServer) Resource(ctx context.Context, req *QueryResourceRequest) (*QueryResourceResponse, error)
- func (*UnimplementedQueryServer) Resources(ctx context.Context, req *QueryResourcesRequest) (*QueryResourcesResponse, error)
- func (*UnimplementedQueryServer) ScriptABI(ctx context.Context, req *QueryScriptABIRequest) (*QueryScriptABIResponse, error)
Constants ¶
const ( // function names for native coin <> move coin conversion ModuleNameCoin = "coin" FunctionNameCoinInitialize = "initialize_for_chain" FunctionNameCoinMintTo = "mint_to_for_chain" FunctionNameCoinBurnFrom = "burn_from_for_chain" FunctionNameCoinRegister = "register" // function names for move staking StakingModuleName = "staking" FunctionNameStakingInitialize = "initialize_for_chain" FunctionNameStakingDepositReward = "deposit_reward_for_chain" FunctionNameStakingDelegate = "delegate_script" FunctionNameStakingUndelegate = "undelegate_script" FunctionNameStakingRegister = "register" )
const ( EventTypePublishModuleBundle = "publish_module_bundle" EventTypeExecuteEntryFunction = "execute_entry_function" EventTypeExecuteScript = "execute_script" EventTypeMove = "move" AttributeKeySender = "sender" AttributeKeyModuleOwner = "module_owner" AttributeKeyModuleName = "module_name" AttributeKeyFunctionName = "function_name" // move type event attributes AttributeKeyKey = "key" AttributeKeyTypeTag = "type_tag" AttributeKeyData = "data" AttributeKeySequence = "sequence" )
Wasm module event types
const ( // ModuleName is the name of the move module ModuleName = "move" // 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 move module QuerierRoute = ModuleName // RouterKey is the msg router key for the move module RouterKey = ModuleName // AddressBytesLength address bytes length AddressBytesLength = 20 )
const ( ModuleSizeHardLimit = int(1024 * 1024) // 1MB ModuleNameLengthHardLimit = int(128) FunctionNameLengthHardLimit = int(128) NumArgumentsHardLimit = int(16) )
const (
ProposalTypePublishStdModule string = "PublishStdModuleProposal"
)
const StorageModuleName = "storage"
StorageModuleName is special purpose module name to store coins storage address: cosmos1fx39l8lwltl7etg0e5cv2rwfxvw0lz649sfxvx
Variables ¶
var ( // ErrFailedToParseCoin error for move coin parse error ErrFailedToParseCoin = sdkerrors.Register(ModuleName, 2, "failed to parse coin") // ErrEmpty error for empty content ErrEmpty = sdkerrors.Register(ModuleName, 3, "empty") // ErrLimit error for content that exceeds a limit ErrLimit = sdkerrors.Register(ModuleName, 4, "exceeds limit") // ErrMalformedDenom error for invalid denom format ErrMalformedDenom = sdkerrors.Register(ModuleName, 5, "malformed denom") // ErrMalformedStructTag error for invalid denom format ErrMalformedStructTag = sdkerrors.Register(ModuleName, 6, "malformed struct tag") // ErrMalformedDelta error for storage delta value ErrInvalidDelta = sdkerrors.Register(ModuleName, 7, "invalid delta value for storage") )
Move 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 ( PrefixKeyVMStore = []byte{0x11} // prefix for vm PrefixKeyDenomTrace = []byte{0x12} // prefix for denom trace PrefixKeyStorageFee = []byte{0x13} // prefix for storage ModuleSeparator = byte(0) ResourceSeparator = byte(1) TableEntrySeparator = byte(2) TableMetaSeparator = byte(3) )
Keys for move store Items are stored with the following key: values
var ( DenomTraceDenomPrefixIBC = "ibc/" DenomTraceDenomPrefixMove = "move/" DenomTraceModuleNamePrefixIBC = "ibc_" DenomTraceModuleNamePrefixNative = "native_" DenomTraceStructTagSuffix = "Coin" )
var ( ParamStoreKeyMaxModuleSize = []byte("MaxModuleSize") ParamStoreKeyStorageFeePerByte = []byte("StorageFeePerByte") )
Parameter keys
var ( DefaultMaxModuleSize = uint64(10 * 1024) // 10KB DefaultStorageFeePerByte = sdk.NewDecCoins( sdk.NewDecCoinFromDec( sdk.DefaultBondDenom, sdk.NewDecWithPrec(15, 1), ), ) // 1.5 stake )
Default parameter values
var ( ErrInvalidLengthProposal = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowProposal = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupProposal = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") )
var ( // ModuleCdc references the global x/move module codec. Note, the codec should // ONLY be used in certain instances of tests and for JSON encoding as Amino is // still used for that purpose. // // The actual codec used for serialization should be provided to x/staking and // defined at the application level. ModuleCdc = codec.NewAminoCodec(amino) )
var StdAddr = sdk.AccAddress(vmtypes.StdAddress[:])
0x1 address
Functions ¶
func BuildExecuteEntryFunctionPayload ¶
func BuildExecuteEntryFunctionPayload( moduleOwner sdk.AccAddress, moduleName string, functionName string, typeArgs []string, args [][]byte, ) (vmtypes.EntryFunction, error)
BuildExecuteEntryFunctionPayload return execute entry function payload
func BuildExecuteScriptPayload ¶
func BuildExecuteScriptPayload( byteCodes []byte, typeArgs []string, args [][]byte, ) (vmtypes.Script, error)
BuildExecuteScriptPayload return script payload
func CompileCoinModule ¶
CompileCoinModule return compiled coin module from the tmp dir
func DenomHashFromStructTagStr ¶
DenomHashFromStructTagStr create denom hash from the struct tag
func GetDenomTraceKey ¶
GetDenomTraceKey returns a store key of the denom trace assigned to a denom hash
func GetModuleKey ¶
func GetModuleKey(addr sdk.AccAddress, moduleName string) ([]byte, error)
GetModuleKey returns the key of the published move module
func GetModulePrefix ¶
func GetModulePrefix(addr sdk.AccAddress) []byte
GetModulePrefix returns the prefix key of an account module store
func GetResourceKey ¶
GetResourceKey returns the store key of the Move resource
func GetResourcePrefix ¶
func GetResourcePrefix(addr sdk.AccAddress) []byte
GetResourcePrefix returns the prefix key of an account resource store
func GetStorageFeeKey ¶
func GetStorageFeeKey(addr sdk.AccAddress) []byte
GetStorageFeeKey returns a store key of the storage assigned to an account
func GetTableEntryKey ¶
func GetTableEntryKey(tableAddr sdk.AccAddress, key []byte) []byte
GetTableEntryKey returns the store key of the Move resource
func GetTableEntryPrefix ¶
func GetTableEntryPrefix(tableAddr sdk.AccAddress) []byte
GetTableEntryPrefix returns the prefix key of an table store
func GetTableMetaKey ¶
func GetTableMetaKey(tableAddr sdk.AccAddress) []byte
GetTableMetaKey returns the store key of the Move resource
func GetTableMetaPrefix ¶
func GetTableMetaPrefix(tableAddr sdk.AccAddress) []byte
GetTableMetaPrefix returns the prefix key of an table meta store
func IBCDenomFromStructTag ¶
IBCDenomFromStructTag create ibc denom from struct tag
func IsIBCDenom ¶
IsIBCDenom return wether the denom is IBC denom or not
func IsMoveDenom ¶
IsMoveDenom return wether the denom is Move denom or not
func IsNativeDenom ¶
IsNativeDenom return wether the denom is native denom not
func ModuleNameFromIBCDenom ¶
ModuleNameFromIBCDenomHash build module name of IBC coin
func ModuleNameFromNativeDenom ¶
ModuleNameFromNativeDenom build module name of native coin
func MoveDenomFromStructTag ¶
MoveDenomFromStructTag create move denom from struct tag
func NativeDenomFromStructTag ¶
NativeDenomFromStructTag create native denom from struct tag
func NormalizeAddrToHex ¶
func NormalizeAddrToHex(addr sdk.AccAddress) string
NormalizeAddrToHex return normalized hex string address
func ParamKeyTable ¶
func ParamKeyTable() paramstypes.KeyTable
ParamKeyTable returns the parameter key table.
func RegisterInterfaces ¶
func RegisterInterfaces(registry codectypes.InterfaceRegistry)
RegisterInterfaces registers the x/market interfaces types with the interface registry
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers the move types and interface
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func StructTagFromIBCDenom ¶
StructTagFromIBCDenom convert ibc denom to struct tag
func StructTagFromNativeDenom ¶
StructTagFromNativeDenom convert native denom to struct tag
func ValidateGenesis ¶
func ValidateGenesis(data *GenesisState) error
ValidateGenesis performs basic validation of wasm genesis data returning an error for any failed validation criteria.
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { GetModuleAddress(name string) sdk.AccAddress GetModuleAccount(ctx sdk.Context, moduleName string) authtypes.ModuleAccountI }
AccountKeeper is expected keeper for auth module
type BankKeeper ¶
type BankKeeper interface { BankViewKeeper IsSendEnabledCoins(ctx sdk.Context, coins ...sdk.Coin) error BlockedAddr(addr sdk.AccAddress) bool SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error SendCoinsFromModuleToModule(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins) error MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error }
BankKeeper defines a subset of methods implemented by the cosmos-sdk bank keeper
type BankViewKeeper ¶
type BankViewKeeper interface { GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin }
BankViewKeeper defines a subset of methods implemented by the cosmos-sdk bank keeper
type DenomTrace ¶
type DenomTrace struct { StructTag string `protobuf:"bytes,1,opt,name=struct_tag,json=structTag,proto3" json:"struct_tag,omitempty"` DenomHash string `protobuf:"bytes,2,opt,name=denom_hash,json=denomHash,proto3" json:"denom_hash,omitempty"` }
DenomTrace is used to represent (denom hash <> struct tag) pair which are used for native coin conversion
func (*DenomTrace) Descriptor ¶
func (*DenomTrace) Descriptor() ([]byte, []int)
func (*DenomTrace) Equal ¶
func (this *DenomTrace) Equal(that interface{}) bool
func (*DenomTrace) Marshal ¶
func (m *DenomTrace) Marshal() (dAtA []byte, err error)
func (*DenomTrace) MarshalToSizedBuffer ¶
func (m *DenomTrace) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DenomTrace) ProtoMessage ¶
func (*DenomTrace) ProtoMessage()
func (*DenomTrace) Reset ¶
func (m *DenomTrace) Reset()
func (*DenomTrace) Size ¶
func (m *DenomTrace) Size() (n int)
func (*DenomTrace) String ¶
func (m *DenomTrace) String() string
func (*DenomTrace) Unmarshal ¶
func (m *DenomTrace) Unmarshal(dAtA []byte) error
func (*DenomTrace) XXX_DiscardUnknown ¶
func (m *DenomTrace) XXX_DiscardUnknown()
func (*DenomTrace) XXX_Marshal ¶
func (m *DenomTrace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DenomTrace) XXX_Merge ¶
func (m *DenomTrace) XXX_Merge(src proto.Message)
func (*DenomTrace) XXX_Size ¶
func (m *DenomTrace) XXX_Size() int
func (*DenomTrace) XXX_Unmarshal ¶
func (m *DenomTrace) XXX_Unmarshal(b []byte) error
type DistributionKeeper ¶
type DistributionKeeper interface { AllocateTokensToValidator(ctx sdk.Context, val stakingtypes.ValidatorI, tokens sdk.DecCoins) WithdrawDelegationRewards(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (sdk.Coins, error) // increment validator period, returning the period just ended IncrementValidatorPeriod(ctx sdk.Context, val stakingtypes.ValidatorI) uint64 // calculate the total rewards accrued by a delegation CalculateDelegationRewards(ctx sdk.Context, val stakingtypes.ValidatorI, del stakingtypes.DelegationI, endingPeriod uint64) (rewards sdk.DecCoins) // only used for simulation GetValidatorOutstandingRewardsCoins(ctx sdk.Context, val sdk.ValAddress) sdk.DecCoins }
DistributionKeeper is expected keeper for distribution module
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` Stdlibs []Module `protobuf:"bytes,2,rep,name=stdlibs,proto3" json:"stdlibs,omitempty"` Modules []Module `protobuf:"bytes,3,rep,name=modules,proto3" json:"modules,omitempty"` Resources []Resource `protobuf:"bytes,4,rep,name=resources,proto3" json:"resources,omitempty"` TableMetas []TableMeta `protobuf:"bytes,5,rep,name=table_metas,json=tableMetas,proto3" json:"table_metas,omitempty"` TableEntries []TableEntry `protobuf:"bytes,6,rep,name=table_entries,json=tableEntries,proto3" json:"table_entries,omitempty"` DenomTraces []DenomTrace `protobuf:"bytes,7,rep,name=denom_traces,json=denomTraces,proto3" json:"denom_traces,omitempty"` StorageFees []StorageFee `protobuf:"bytes,8,rep,name=storage_fees,json=storageFees,proto3" json:"storage_fees,omitempty"` }
GenesisState - genesis state of x/move
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState gets raw genesis raw message for testing
func NewGenesisState ¶
func NewGenesisState(params Params, modules []Module, resources []Resource, denomTraces []DenomTrace) *GenesisState
NewGenesisState creates a new GenesisState object
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetDenomTraces ¶
func (m *GenesisState) GetDenomTraces() []DenomTrace
func (*GenesisState) GetModules ¶
func (m *GenesisState) GetModules() []Module
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetResources ¶
func (m *GenesisState) GetResources() []Resource
func (*GenesisState) GetStdlibs ¶
func (m *GenesisState) GetStdlibs() []Module
func (*GenesisState) GetStorageFees ¶
func (m *GenesisState) GetStorageFees() []StorageFee
func (*GenesisState) GetTableEntries ¶
func (m *GenesisState) GetTableEntries() []TableEntry
func (*GenesisState) GetTableMetas ¶
func (m *GenesisState) GetTableMetas() []TableMeta
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) 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 Module ¶
type Module struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` ModuleName string `protobuf:"bytes,2,opt,name=module_name,json=moduleName,proto3" json:"module_name,omitempty"` CodeBytes []byte `protobuf:"bytes,3,opt,name=code_bytes,json=codeBytes,proto3" json:"code_bytes,omitempty"` Abi []byte `protobuf:"bytes,4,opt,name=abi,proto3" json:"abi,omitempty"` }
Module is data for the uploaded contract move code ex) 0000000000000000000000000000000000000001/0/BasicCoin
func (*Module) Descriptor ¶
func (*Module) MarshalToSizedBuffer ¶
func (*Module) ProtoMessage ¶
func (*Module) ProtoMessage()
func (*Module) XXX_DiscardUnknown ¶
func (m *Module) XXX_DiscardUnknown()
func (*Module) XXX_Marshal ¶
func (*Module) XXX_Unmarshal ¶
type MoveCoin ¶
type MoveCoin struct { StructTag string `protobuf:"bytes,1,opt,name=struct_tag,json=structTag,proto3" json:"struct_tag,omitempty"` Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` }
MoveCoin represent move side coin object
func (*MoveCoin) Descriptor ¶
func (*MoveCoin) MarshalToSizedBuffer ¶
func (*MoveCoin) ProtoMessage ¶
func (*MoveCoin) ProtoMessage()
func (*MoveCoin) XXX_DiscardUnknown ¶
func (m *MoveCoin) XXX_DiscardUnknown()
func (*MoveCoin) XXX_Marshal ¶
func (*MoveCoin) XXX_Unmarshal ¶
type MsgClient ¶
type MsgClient interface { // PublishModuleBundle to submit Move module to the system PublishModuleBundle(ctx context.Context, in *MsgPublishModuleBundle, opts ...grpc.CallOption) (*MsgPublishModuleBundleResponse, error) // ExecuteEntryFunction runs a entry function with the given message ExecuteEntryFunction(ctx context.Context, in *MsgExecuteEntryFunction, opts ...grpc.CallOption) (*MsgExecuteEntryFunctionResponse, error) // ExecuteScript runs a scripts with the given message ExecuteScript(ctx context.Context, in *MsgExecuteScript, opts ...grpc.CallOption) (*MsgExecuteScriptResponse, error) // ConvertNativeCoin converts a Native Coin to Move Coin ConvertNativeCoin(ctx context.Context, in *MsgConvertNativeCoin, opts ...grpc.CallOption) (*MsgConvertNativeCoinResponse, error) // ConvertMoveCoin converts a Move Coin to Native Coin ConvertMoveCoin(ctx context.Context, in *MsgConvertMoveCoin, opts ...grpc.CallOption) (*MsgConvertMoveCoinResponse, 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 MsgConvertMoveCoin ¶
type MsgConvertMoveCoin struct { // Sender is the that actor that signed the messages Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // Coin is the coin to convert MoveCoin MoveCoin `protobuf:"bytes,2,opt,name=move_coin,json=moveCoin,proto3" json:"move_coin"` }
MsgConvertMoveCoin convert Move Coin to Native Coin
func (*MsgConvertMoveCoin) Descriptor ¶
func (*MsgConvertMoveCoin) Descriptor() ([]byte, []int)
func (MsgConvertMoveCoin) GetSignBytes ¶
func (msg MsgConvertMoveCoin) GetSignBytes() []byte
func (MsgConvertMoveCoin) GetSigners ¶
func (msg MsgConvertMoveCoin) GetSigners() []sdk.AccAddress
func (*MsgConvertMoveCoin) Marshal ¶
func (m *MsgConvertMoveCoin) Marshal() (dAtA []byte, err error)
func (*MsgConvertMoveCoin) MarshalTo ¶
func (m *MsgConvertMoveCoin) MarshalTo(dAtA []byte) (int, error)
func (*MsgConvertMoveCoin) MarshalToSizedBuffer ¶
func (m *MsgConvertMoveCoin) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgConvertMoveCoin) ProtoMessage ¶
func (*MsgConvertMoveCoin) ProtoMessage()
func (*MsgConvertMoveCoin) Reset ¶
func (m *MsgConvertMoveCoin) Reset()
func (MsgConvertMoveCoin) Route ¶
func (msg MsgConvertMoveCoin) Route() string
func (*MsgConvertMoveCoin) Size ¶
func (m *MsgConvertMoveCoin) Size() (n int)
func (*MsgConvertMoveCoin) String ¶
func (m *MsgConvertMoveCoin) String() string
func (MsgConvertMoveCoin) Type ¶
func (msg MsgConvertMoveCoin) Type() string
func (*MsgConvertMoveCoin) Unmarshal ¶
func (m *MsgConvertMoveCoin) Unmarshal(dAtA []byte) error
func (MsgConvertMoveCoin) ValidateBasic ¶
func (msg MsgConvertMoveCoin) ValidateBasic() error
func (*MsgConvertMoveCoin) XXX_DiscardUnknown ¶
func (m *MsgConvertMoveCoin) XXX_DiscardUnknown()
func (*MsgConvertMoveCoin) XXX_Marshal ¶
func (m *MsgConvertMoveCoin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgConvertMoveCoin) XXX_Merge ¶
func (m *MsgConvertMoveCoin) XXX_Merge(src proto.Message)
func (*MsgConvertMoveCoin) XXX_Size ¶
func (m *MsgConvertMoveCoin) XXX_Size() int
func (*MsgConvertMoveCoin) XXX_Unmarshal ¶
func (m *MsgConvertMoveCoin) XXX_Unmarshal(b []byte) error
type MsgConvertMoveCoinResponse ¶
type MsgConvertMoveCoinResponse struct { }
MsgConvertMoveCoinResponse returns store result data.
func (*MsgConvertMoveCoinResponse) Descriptor ¶
func (*MsgConvertMoveCoinResponse) Descriptor() ([]byte, []int)
func (*MsgConvertMoveCoinResponse) Marshal ¶
func (m *MsgConvertMoveCoinResponse) Marshal() (dAtA []byte, err error)
func (*MsgConvertMoveCoinResponse) MarshalTo ¶
func (m *MsgConvertMoveCoinResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgConvertMoveCoinResponse) MarshalToSizedBuffer ¶
func (m *MsgConvertMoveCoinResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgConvertMoveCoinResponse) ProtoMessage ¶
func (*MsgConvertMoveCoinResponse) ProtoMessage()
func (*MsgConvertMoveCoinResponse) Reset ¶
func (m *MsgConvertMoveCoinResponse) Reset()
func (*MsgConvertMoveCoinResponse) Size ¶
func (m *MsgConvertMoveCoinResponse) Size() (n int)
func (*MsgConvertMoveCoinResponse) String ¶
func (m *MsgConvertMoveCoinResponse) String() string
func (*MsgConvertMoveCoinResponse) Unmarshal ¶
func (m *MsgConvertMoveCoinResponse) Unmarshal(dAtA []byte) error
func (*MsgConvertMoveCoinResponse) XXX_DiscardUnknown ¶
func (m *MsgConvertMoveCoinResponse) XXX_DiscardUnknown()
func (*MsgConvertMoveCoinResponse) XXX_Marshal ¶
func (m *MsgConvertMoveCoinResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgConvertMoveCoinResponse) XXX_Merge ¶
func (m *MsgConvertMoveCoinResponse) XXX_Merge(src proto.Message)
func (*MsgConvertMoveCoinResponse) XXX_Size ¶
func (m *MsgConvertMoveCoinResponse) XXX_Size() int
func (*MsgConvertMoveCoinResponse) XXX_Unmarshal ¶
func (m *MsgConvertMoveCoinResponse) XXX_Unmarshal(b []byte) error
type MsgConvertNativeCoin ¶
type MsgConvertNativeCoin struct { // Sender is the that actor that signed the messages Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // Coin is the coin to convert Coin types.Coin `protobuf:"bytes,2,opt,name=coin,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coin" json:"coin"` }
MsgConvertNativeCoin convert Native Coin to Move Coin
func (*MsgConvertNativeCoin) Descriptor ¶
func (*MsgConvertNativeCoin) Descriptor() ([]byte, []int)
func (MsgConvertNativeCoin) GetSignBytes ¶
func (msg MsgConvertNativeCoin) GetSignBytes() []byte
func (MsgConvertNativeCoin) GetSigners ¶
func (msg MsgConvertNativeCoin) GetSigners() []sdk.AccAddress
func (*MsgConvertNativeCoin) Marshal ¶
func (m *MsgConvertNativeCoin) Marshal() (dAtA []byte, err error)
func (*MsgConvertNativeCoin) MarshalTo ¶
func (m *MsgConvertNativeCoin) MarshalTo(dAtA []byte) (int, error)
func (*MsgConvertNativeCoin) MarshalToSizedBuffer ¶
func (m *MsgConvertNativeCoin) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgConvertNativeCoin) ProtoMessage ¶
func (*MsgConvertNativeCoin) ProtoMessage()
func (*MsgConvertNativeCoin) Reset ¶
func (m *MsgConvertNativeCoin) Reset()
func (MsgConvertNativeCoin) Route ¶
func (msg MsgConvertNativeCoin) Route() string
func (*MsgConvertNativeCoin) Size ¶
func (m *MsgConvertNativeCoin) Size() (n int)
func (*MsgConvertNativeCoin) String ¶
func (m *MsgConvertNativeCoin) String() string
func (MsgConvertNativeCoin) Type ¶
func (msg MsgConvertNativeCoin) Type() string
func (*MsgConvertNativeCoin) Unmarshal ¶
func (m *MsgConvertNativeCoin) Unmarshal(dAtA []byte) error
func (MsgConvertNativeCoin) ValidateBasic ¶
func (msg MsgConvertNativeCoin) ValidateBasic() error
func (*MsgConvertNativeCoin) XXX_DiscardUnknown ¶
func (m *MsgConvertNativeCoin) XXX_DiscardUnknown()
func (*MsgConvertNativeCoin) XXX_Marshal ¶
func (m *MsgConvertNativeCoin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgConvertNativeCoin) XXX_Merge ¶
func (m *MsgConvertNativeCoin) XXX_Merge(src proto.Message)
func (*MsgConvertNativeCoin) XXX_Size ¶
func (m *MsgConvertNativeCoin) XXX_Size() int
func (*MsgConvertNativeCoin) XXX_Unmarshal ¶
func (m *MsgConvertNativeCoin) XXX_Unmarshal(b []byte) error
type MsgConvertNativeCoinResponse ¶
type MsgConvertNativeCoinResponse struct { }
MsgConvertNativeCoinResponse returns store result data.
func (*MsgConvertNativeCoinResponse) Descriptor ¶
func (*MsgConvertNativeCoinResponse) Descriptor() ([]byte, []int)
func (*MsgConvertNativeCoinResponse) Marshal ¶
func (m *MsgConvertNativeCoinResponse) Marshal() (dAtA []byte, err error)
func (*MsgConvertNativeCoinResponse) MarshalTo ¶
func (m *MsgConvertNativeCoinResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgConvertNativeCoinResponse) MarshalToSizedBuffer ¶
func (m *MsgConvertNativeCoinResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgConvertNativeCoinResponse) ProtoMessage ¶
func (*MsgConvertNativeCoinResponse) ProtoMessage()
func (*MsgConvertNativeCoinResponse) Reset ¶
func (m *MsgConvertNativeCoinResponse) Reset()
func (*MsgConvertNativeCoinResponse) Size ¶
func (m *MsgConvertNativeCoinResponse) Size() (n int)
func (*MsgConvertNativeCoinResponse) String ¶
func (m *MsgConvertNativeCoinResponse) String() string
func (*MsgConvertNativeCoinResponse) Unmarshal ¶
func (m *MsgConvertNativeCoinResponse) Unmarshal(dAtA []byte) error
func (*MsgConvertNativeCoinResponse) XXX_DiscardUnknown ¶
func (m *MsgConvertNativeCoinResponse) XXX_DiscardUnknown()
func (*MsgConvertNativeCoinResponse) XXX_Marshal ¶
func (m *MsgConvertNativeCoinResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgConvertNativeCoinResponse) XXX_Merge ¶
func (m *MsgConvertNativeCoinResponse) XXX_Merge(src proto.Message)
func (*MsgConvertNativeCoinResponse) XXX_Size ¶
func (m *MsgConvertNativeCoinResponse) XXX_Size() int
func (*MsgConvertNativeCoinResponse) XXX_Unmarshal ¶
func (m *MsgConvertNativeCoinResponse) XXX_Unmarshal(b []byte) error
type MsgExecuteEntryFunction ¶
type MsgExecuteEntryFunction struct { // Sender is the that actor that signed the messages Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // ModuleOwner is the address of the module owner ModuleOwner string `protobuf:"bytes,2,opt,name=module_owner,json=moduleOwner,proto3" json:"module_owner,omitempty"` // ModuleName is the name of module to execute ModuleName string `protobuf:"bytes,3,opt,name=module_name,json=moduleName,proto3" json:"module_name,omitempty"` // FunctionName is the name of a function to execute FunctionName string `protobuf:"bytes,4,opt,name=function_name,json=functionName,proto3" json:"function_name,omitempty"` // TypeArgs is the type arguments of a function to execute // ex) "0x1::BasicCoin::Initia", "bool", "u8", "u64" TypeArgs []string `protobuf:"bytes,5,rep,name=type_args,json=typeArgs,proto3" json:"type_args,omitempty"` // Args is the arguments of a function to execute // - number: little endian // - string: base64 bytes Args [][]byte `protobuf:"bytes,6,rep,name=args,proto3" json:"args,omitempty"` }
MsgExecuteEntryFunction submits the given message data to a smart contract
func (*MsgExecuteEntryFunction) Descriptor ¶
func (*MsgExecuteEntryFunction) Descriptor() ([]byte, []int)
func (MsgExecuteEntryFunction) GetSignBytes ¶
func (msg MsgExecuteEntryFunction) GetSignBytes() []byte
func (MsgExecuteEntryFunction) GetSigners ¶
func (msg MsgExecuteEntryFunction) GetSigners() []sdk.AccAddress
func (*MsgExecuteEntryFunction) Marshal ¶
func (m *MsgExecuteEntryFunction) Marshal() (dAtA []byte, err error)
func (*MsgExecuteEntryFunction) MarshalTo ¶
func (m *MsgExecuteEntryFunction) MarshalTo(dAtA []byte) (int, error)
func (*MsgExecuteEntryFunction) MarshalToSizedBuffer ¶
func (m *MsgExecuteEntryFunction) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgExecuteEntryFunction) ProtoMessage ¶
func (*MsgExecuteEntryFunction) ProtoMessage()
func (*MsgExecuteEntryFunction) Reset ¶
func (m *MsgExecuteEntryFunction) Reset()
func (MsgExecuteEntryFunction) Route ¶
func (msg MsgExecuteEntryFunction) Route() string
func (*MsgExecuteEntryFunction) Size ¶
func (m *MsgExecuteEntryFunction) Size() (n int)
func (*MsgExecuteEntryFunction) String ¶
func (m *MsgExecuteEntryFunction) String() string
func (MsgExecuteEntryFunction) Type ¶
func (msg MsgExecuteEntryFunction) Type() string
func (*MsgExecuteEntryFunction) Unmarshal ¶
func (m *MsgExecuteEntryFunction) Unmarshal(dAtA []byte) error
func (MsgExecuteEntryFunction) ValidateBasic ¶
func (msg MsgExecuteEntryFunction) ValidateBasic() error
func (*MsgExecuteEntryFunction) XXX_DiscardUnknown ¶
func (m *MsgExecuteEntryFunction) XXX_DiscardUnknown()
func (*MsgExecuteEntryFunction) XXX_Marshal ¶
func (m *MsgExecuteEntryFunction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgExecuteEntryFunction) XXX_Merge ¶
func (m *MsgExecuteEntryFunction) XXX_Merge(src proto.Message)
func (*MsgExecuteEntryFunction) XXX_Size ¶
func (m *MsgExecuteEntryFunction) XXX_Size() int
func (*MsgExecuteEntryFunction) XXX_Unmarshal ¶
func (m *MsgExecuteEntryFunction) XXX_Unmarshal(b []byte) error
type MsgExecuteEntryFunctionResponse ¶
type MsgExecuteEntryFunctionResponse struct { }
MsgExecuteEntryFunctionResponse returns execution result data.
func (*MsgExecuteEntryFunctionResponse) Descriptor ¶
func (*MsgExecuteEntryFunctionResponse) Descriptor() ([]byte, []int)
func (*MsgExecuteEntryFunctionResponse) Marshal ¶
func (m *MsgExecuteEntryFunctionResponse) Marshal() (dAtA []byte, err error)
func (*MsgExecuteEntryFunctionResponse) MarshalTo ¶
func (m *MsgExecuteEntryFunctionResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgExecuteEntryFunctionResponse) MarshalToSizedBuffer ¶
func (m *MsgExecuteEntryFunctionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgExecuteEntryFunctionResponse) ProtoMessage ¶
func (*MsgExecuteEntryFunctionResponse) ProtoMessage()
func (*MsgExecuteEntryFunctionResponse) Reset ¶
func (m *MsgExecuteEntryFunctionResponse) Reset()
func (*MsgExecuteEntryFunctionResponse) Size ¶
func (m *MsgExecuteEntryFunctionResponse) Size() (n int)
func (*MsgExecuteEntryFunctionResponse) String ¶
func (m *MsgExecuteEntryFunctionResponse) String() string
func (*MsgExecuteEntryFunctionResponse) Unmarshal ¶
func (m *MsgExecuteEntryFunctionResponse) Unmarshal(dAtA []byte) error
func (*MsgExecuteEntryFunctionResponse) XXX_DiscardUnknown ¶
func (m *MsgExecuteEntryFunctionResponse) XXX_DiscardUnknown()
func (*MsgExecuteEntryFunctionResponse) XXX_Marshal ¶
func (m *MsgExecuteEntryFunctionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgExecuteEntryFunctionResponse) XXX_Merge ¶
func (m *MsgExecuteEntryFunctionResponse) XXX_Merge(src proto.Message)
func (*MsgExecuteEntryFunctionResponse) XXX_Size ¶
func (m *MsgExecuteEntryFunctionResponse) XXX_Size() int
func (*MsgExecuteEntryFunctionResponse) XXX_Unmarshal ¶
func (m *MsgExecuteEntryFunctionResponse) XXX_Unmarshal(b []byte) error
type MsgExecuteScript ¶
type MsgExecuteScript struct { // Sender is the that actor that signed the messages Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // CodeBytes is the script bytes code to execute CodeBytes []byte `protobuf:"bytes,2,opt,name=code_bytes,json=codeBytes,proto3" json:"code_bytes,omitempty"` // TypeArgs is the type arguments of a function to execute // ex) "0x1::BasicCoin::Initia", "bool", "u8", "u64" TypeArgs []string `protobuf:"bytes,3,rep,name=type_args,json=typeArgs,proto3" json:"type_args,omitempty"` // Args is the arguments of a function to execute // - number: little endian // - string: base64 bytes Args [][]byte `protobuf:"bytes,4,rep,name=args,proto3" json:"args,omitempty"` }
MsgExecuteScript submits the given message data to a smart contract
func (*MsgExecuteScript) Descriptor ¶
func (*MsgExecuteScript) Descriptor() ([]byte, []int)
func (MsgExecuteScript) GetSignBytes ¶
func (msg MsgExecuteScript) GetSignBytes() []byte
func (MsgExecuteScript) GetSigners ¶
func (msg MsgExecuteScript) GetSigners() []sdk.AccAddress
func (*MsgExecuteScript) Marshal ¶
func (m *MsgExecuteScript) Marshal() (dAtA []byte, err error)
func (*MsgExecuteScript) MarshalToSizedBuffer ¶
func (m *MsgExecuteScript) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgExecuteScript) ProtoMessage ¶
func (*MsgExecuteScript) ProtoMessage()
func (*MsgExecuteScript) Reset ¶
func (m *MsgExecuteScript) Reset()
func (MsgExecuteScript) Route ¶
func (msg MsgExecuteScript) Route() string
func (*MsgExecuteScript) Size ¶
func (m *MsgExecuteScript) Size() (n int)
func (*MsgExecuteScript) String ¶
func (m *MsgExecuteScript) String() string
func (MsgExecuteScript) Type ¶
func (msg MsgExecuteScript) Type() string
func (*MsgExecuteScript) Unmarshal ¶
func (m *MsgExecuteScript) Unmarshal(dAtA []byte) error
func (MsgExecuteScript) ValidateBasic ¶
func (msg MsgExecuteScript) ValidateBasic() error
func (*MsgExecuteScript) XXX_DiscardUnknown ¶
func (m *MsgExecuteScript) XXX_DiscardUnknown()
func (*MsgExecuteScript) XXX_Marshal ¶
func (m *MsgExecuteScript) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgExecuteScript) XXX_Merge ¶
func (m *MsgExecuteScript) XXX_Merge(src proto.Message)
func (*MsgExecuteScript) XXX_Size ¶
func (m *MsgExecuteScript) XXX_Size() int
func (*MsgExecuteScript) XXX_Unmarshal ¶
func (m *MsgExecuteScript) XXX_Unmarshal(b []byte) error
type MsgExecuteScriptResponse ¶
type MsgExecuteScriptResponse struct { }
MsgExecuteScriptResponse returns execution result data.
func (*MsgExecuteScriptResponse) Descriptor ¶
func (*MsgExecuteScriptResponse) Descriptor() ([]byte, []int)
func (*MsgExecuteScriptResponse) Marshal ¶
func (m *MsgExecuteScriptResponse) Marshal() (dAtA []byte, err error)
func (*MsgExecuteScriptResponse) MarshalTo ¶
func (m *MsgExecuteScriptResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgExecuteScriptResponse) MarshalToSizedBuffer ¶
func (m *MsgExecuteScriptResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgExecuteScriptResponse) ProtoMessage ¶
func (*MsgExecuteScriptResponse) ProtoMessage()
func (*MsgExecuteScriptResponse) Reset ¶
func (m *MsgExecuteScriptResponse) Reset()
func (*MsgExecuteScriptResponse) Size ¶
func (m *MsgExecuteScriptResponse) Size() (n int)
func (*MsgExecuteScriptResponse) String ¶
func (m *MsgExecuteScriptResponse) String() string
func (*MsgExecuteScriptResponse) Unmarshal ¶
func (m *MsgExecuteScriptResponse) Unmarshal(dAtA []byte) error
func (*MsgExecuteScriptResponse) XXX_DiscardUnknown ¶
func (m *MsgExecuteScriptResponse) XXX_DiscardUnknown()
func (*MsgExecuteScriptResponse) XXX_Marshal ¶
func (m *MsgExecuteScriptResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgExecuteScriptResponse) XXX_Merge ¶
func (m *MsgExecuteScriptResponse) XXX_Merge(src proto.Message)
func (*MsgExecuteScriptResponse) XXX_Size ¶
func (m *MsgExecuteScriptResponse) XXX_Size() int
func (*MsgExecuteScriptResponse) XXX_Unmarshal ¶
func (m *MsgExecuteScriptResponse) XXX_Unmarshal(b []byte) error
type MsgPublishModuleBundle ¶
type MsgPublishModuleBundle struct { // Sender is the that actor that signed the messages Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // CodeBytes raw move module bytes code CodeBytes [][]byte `protobuf:"bytes,2,rep,name=code_bytes,json=codeBytes,proto3" json:"code_bytes,omitempty"` }
MsgPublishModuleBundle submit Move module to the system
func (*MsgPublishModuleBundle) Descriptor ¶
func (*MsgPublishModuleBundle) Descriptor() ([]byte, []int)
func (MsgPublishModuleBundle) GetSignBytes ¶
func (msg MsgPublishModuleBundle) GetSignBytes() []byte
func (MsgPublishModuleBundle) GetSigners ¶
func (msg MsgPublishModuleBundle) GetSigners() []sdk.AccAddress
func (*MsgPublishModuleBundle) Marshal ¶
func (m *MsgPublishModuleBundle) Marshal() (dAtA []byte, err error)
func (*MsgPublishModuleBundle) MarshalTo ¶
func (m *MsgPublishModuleBundle) MarshalTo(dAtA []byte) (int, error)
func (*MsgPublishModuleBundle) MarshalToSizedBuffer ¶
func (m *MsgPublishModuleBundle) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgPublishModuleBundle) ProtoMessage ¶
func (*MsgPublishModuleBundle) ProtoMessage()
func (*MsgPublishModuleBundle) Reset ¶
func (m *MsgPublishModuleBundle) Reset()
func (MsgPublishModuleBundle) Route ¶
func (msg MsgPublishModuleBundle) Route() string
MsgPublishModuleBundle
func (*MsgPublishModuleBundle) Size ¶
func (m *MsgPublishModuleBundle) Size() (n int)
func (*MsgPublishModuleBundle) String ¶
func (m *MsgPublishModuleBundle) String() string
func (MsgPublishModuleBundle) Type ¶
func (msg MsgPublishModuleBundle) Type() string
func (*MsgPublishModuleBundle) Unmarshal ¶
func (m *MsgPublishModuleBundle) Unmarshal(dAtA []byte) error
func (MsgPublishModuleBundle) ValidateBasic ¶
func (msg MsgPublishModuleBundle) ValidateBasic() error
func (*MsgPublishModuleBundle) XXX_DiscardUnknown ¶
func (m *MsgPublishModuleBundle) XXX_DiscardUnknown()
func (*MsgPublishModuleBundle) XXX_Marshal ¶
func (m *MsgPublishModuleBundle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgPublishModuleBundle) XXX_Merge ¶
func (m *MsgPublishModuleBundle) XXX_Merge(src proto.Message)
func (*MsgPublishModuleBundle) XXX_Size ¶
func (m *MsgPublishModuleBundle) XXX_Size() int
func (*MsgPublishModuleBundle) XXX_Unmarshal ¶
func (m *MsgPublishModuleBundle) XXX_Unmarshal(b []byte) error
type MsgPublishModuleBundleResponse ¶
type MsgPublishModuleBundleResponse struct { }
MsgPublishModuleBundleResponse returns store result data.
func (*MsgPublishModuleBundleResponse) Descriptor ¶
func (*MsgPublishModuleBundleResponse) Descriptor() ([]byte, []int)
func (*MsgPublishModuleBundleResponse) Marshal ¶
func (m *MsgPublishModuleBundleResponse) Marshal() (dAtA []byte, err error)
func (*MsgPublishModuleBundleResponse) MarshalTo ¶
func (m *MsgPublishModuleBundleResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgPublishModuleBundleResponse) MarshalToSizedBuffer ¶
func (m *MsgPublishModuleBundleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgPublishModuleBundleResponse) ProtoMessage ¶
func (*MsgPublishModuleBundleResponse) ProtoMessage()
func (*MsgPublishModuleBundleResponse) Reset ¶
func (m *MsgPublishModuleBundleResponse) Reset()
func (*MsgPublishModuleBundleResponse) Size ¶
func (m *MsgPublishModuleBundleResponse) Size() (n int)
func (*MsgPublishModuleBundleResponse) String ¶
func (m *MsgPublishModuleBundleResponse) String() string
func (*MsgPublishModuleBundleResponse) Unmarshal ¶
func (m *MsgPublishModuleBundleResponse) Unmarshal(dAtA []byte) error
func (*MsgPublishModuleBundleResponse) XXX_DiscardUnknown ¶
func (m *MsgPublishModuleBundleResponse) XXX_DiscardUnknown()
func (*MsgPublishModuleBundleResponse) XXX_Marshal ¶
func (m *MsgPublishModuleBundleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgPublishModuleBundleResponse) XXX_Merge ¶
func (m *MsgPublishModuleBundleResponse) XXX_Merge(src proto.Message)
func (*MsgPublishModuleBundleResponse) XXX_Size ¶
func (m *MsgPublishModuleBundleResponse) XXX_Size() int
func (*MsgPublishModuleBundleResponse) XXX_Unmarshal ¶
func (m *MsgPublishModuleBundleResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // PublishModuleBundle to submit Move module to the system PublishModuleBundle(context.Context, *MsgPublishModuleBundle) (*MsgPublishModuleBundleResponse, error) // ExecuteEntryFunction runs a entry function with the given message ExecuteEntryFunction(context.Context, *MsgExecuteEntryFunction) (*MsgExecuteEntryFunctionResponse, error) // ExecuteScript runs a scripts with the given message ExecuteScript(context.Context, *MsgExecuteScript) (*MsgExecuteScriptResponse, error) // ConvertNativeCoin converts a Native Coin to Move Coin ConvertNativeCoin(context.Context, *MsgConvertNativeCoin) (*MsgConvertNativeCoinResponse, error) // ConvertMoveCoin converts a Move Coin to Native Coin ConvertMoveCoin(context.Context, *MsgConvertMoveCoin) (*MsgConvertMoveCoinResponse, error) }
MsgServer is the server API for Msg service.
type Params ¶
type Params struct { MaxModuleSize uint64 `protobuf:"varint,1,opt,name=max_module_size,json=maxModuleSize,proto3" json:"max_module_size,omitempty"` StorageFeePerByte github_com_cosmos_cosmos_sdk_types.DecCoins `` /* 191-byte string literal not displayed */ }
Params defines the set of move parameters.
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramstypes.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 PublishStdModuleProposal ¶
type PublishStdModuleProposal struct { // Title is a short summary Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` // Description is a human readable text Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // CodeBytes raw move module bytes code CodeBytes []byte `protobuf:"bytes,3,opt,name=code_bytes,json=codeBytes,proto3" json:"code_bytes,omitempty"` }
PublishStdModuleProposal gov proposal content type to submit stdlib module to the system
func (*PublishStdModuleProposal) Descriptor ¶
func (*PublishStdModuleProposal) Descriptor() ([]byte, []int)
func (*PublishStdModuleProposal) Equal ¶
func (this *PublishStdModuleProposal) Equal(that interface{}) bool
func (PublishStdModuleProposal) GetDescription ¶
func (p PublishStdModuleProposal) GetDescription() string
GetDescription returns the human readable description of the proposal
func (*PublishStdModuleProposal) GetTitle ¶
func (p *PublishStdModuleProposal) GetTitle() string
GetTitle returns the title of the proposal
func (*PublishStdModuleProposal) Marshal ¶
func (m *PublishStdModuleProposal) Marshal() (dAtA []byte, err error)
func (*PublishStdModuleProposal) MarshalTo ¶
func (m *PublishStdModuleProposal) MarshalTo(dAtA []byte) (int, error)
func (*PublishStdModuleProposal) MarshalToSizedBuffer ¶
func (m *PublishStdModuleProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (PublishStdModuleProposal) MarshalYAML ¶
func (p PublishStdModuleProposal) MarshalYAML() (interface{}, error)
MarshalYAML pretty prints the wasm byte code
func (PublishStdModuleProposal) ProposalRoute ¶
func (p PublishStdModuleProposal) ProposalRoute() string
ProposalRoute returns the routing key of a parameter change proposal.
func (PublishStdModuleProposal) ProposalType ¶
func (p PublishStdModuleProposal) ProposalType() string
ProposalType returns the type
func (*PublishStdModuleProposal) ProtoMessage ¶
func (*PublishStdModuleProposal) ProtoMessage()
func (*PublishStdModuleProposal) Reset ¶
func (m *PublishStdModuleProposal) Reset()
func (*PublishStdModuleProposal) Size ¶
func (m *PublishStdModuleProposal) Size() (n int)
func (PublishStdModuleProposal) String ¶
func (p PublishStdModuleProposal) String() string
String implements the Stringer interface.
func (*PublishStdModuleProposal) Unmarshal ¶
func (m *PublishStdModuleProposal) Unmarshal(dAtA []byte) error
func (PublishStdModuleProposal) ValidateBasic ¶
func (p PublishStdModuleProposal) ValidateBasic() error
ValidateBasic validates the proposal
func (*PublishStdModuleProposal) XXX_DiscardUnknown ¶
func (m *PublishStdModuleProposal) XXX_DiscardUnknown()
func (*PublishStdModuleProposal) XXX_Marshal ¶
func (m *PublishStdModuleProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PublishStdModuleProposal) XXX_Merge ¶
func (m *PublishStdModuleProposal) XXX_Merge(src proto.Message)
func (*PublishStdModuleProposal) XXX_Size ¶
func (m *PublishStdModuleProposal) XXX_Size() int
func (*PublishStdModuleProposal) XXX_Unmarshal ¶
func (m *PublishStdModuleProposal) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Module gets the module info Module(ctx context.Context, in *QueryModuleRequest, opts ...grpc.CallOption) (*QueryModuleResponse, error) // Modules gets the module infos Modules(ctx context.Context, in *QueryModulesRequest, opts ...grpc.CallOption) (*QueryModulesResponse, error) // Resource gets the module info Resource(ctx context.Context, in *QueryResourceRequest, opts ...grpc.CallOption) (*QueryResourceResponse, error) // Resources gets the module infos Resources(ctx context.Context, in *QueryResourcesRequest, opts ...grpc.CallOption) (*QueryResourcesResponse, error) // EntryFunction execute entry function and return the function result EntryFunction(ctx context.Context, in *QueryEntryFunctionRequest, opts ...grpc.CallOption) (*QueryEntryFunctionResponse, error) // ScriptABI decode script bytes into ABI ScriptABI(ctx context.Context, in *QueryScriptABIRequest, opts ...grpc.CallOption) (*QueryScriptABIResponse, 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 QueryEntryFunctionRequest ¶
type QueryEntryFunctionRequest struct { // Address is the owner address of the module to query Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // ModuleName is the module name of the entry function to query ModuleName string `protobuf:"bytes,2,opt,name=module_name,json=moduleName,proto3" json:"module_name,omitempty"` // FunctionName is the name of a function to query FunctionName string `protobuf:"bytes,3,opt,name=function_name,json=functionName,proto3" json:"function_name,omitempty"` // TypeArgs is the type arguments of a function to execute // ex) "0x1::BasicCoin::Initia", "bool", "u8", "u64" TypeArgs []string `protobuf:"bytes,4,rep,name=type_args,json=typeArgs,proto3" json:"type_args,omitempty"` // Args is the arguments of a function to execute // - number: little endian // - string: base64 bytes Args [][]byte `protobuf:"bytes,5,rep,name=args,proto3" json:"args,omitempty"` }
QueryEntryFunctionRequest is the request type for the Query/EntryFunction RPC method
func (*QueryEntryFunctionRequest) Descriptor ¶
func (*QueryEntryFunctionRequest) Descriptor() ([]byte, []int)
func (*QueryEntryFunctionRequest) Marshal ¶
func (m *QueryEntryFunctionRequest) Marshal() (dAtA []byte, err error)
func (*QueryEntryFunctionRequest) MarshalTo ¶
func (m *QueryEntryFunctionRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryEntryFunctionRequest) MarshalToSizedBuffer ¶
func (m *QueryEntryFunctionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryEntryFunctionRequest) ProtoMessage ¶
func (*QueryEntryFunctionRequest) ProtoMessage()
func (*QueryEntryFunctionRequest) Reset ¶
func (m *QueryEntryFunctionRequest) Reset()
func (*QueryEntryFunctionRequest) Size ¶
func (m *QueryEntryFunctionRequest) Size() (n int)
func (*QueryEntryFunctionRequest) String ¶
func (m *QueryEntryFunctionRequest) String() string
func (*QueryEntryFunctionRequest) Unmarshal ¶
func (m *QueryEntryFunctionRequest) Unmarshal(dAtA []byte) error
func (*QueryEntryFunctionRequest) XXX_DiscardUnknown ¶
func (m *QueryEntryFunctionRequest) XXX_DiscardUnknown()
func (*QueryEntryFunctionRequest) XXX_Marshal ¶
func (m *QueryEntryFunctionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryEntryFunctionRequest) XXX_Merge ¶
func (m *QueryEntryFunctionRequest) XXX_Merge(src proto.Message)
func (*QueryEntryFunctionRequest) XXX_Size ¶
func (m *QueryEntryFunctionRequest) XXX_Size() int
func (*QueryEntryFunctionRequest) XXX_Unmarshal ¶
func (m *QueryEntryFunctionRequest) XXX_Unmarshal(b []byte) error
type QueryEntryFunctionResponse ¶
type QueryEntryFunctionResponse struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}
QueryEntryFunctionResponse is the response type for the Query/EntryFunction RPC method
func (*QueryEntryFunctionResponse) Descriptor ¶
func (*QueryEntryFunctionResponse) Descriptor() ([]byte, []int)
func (*QueryEntryFunctionResponse) Marshal ¶
func (m *QueryEntryFunctionResponse) Marshal() (dAtA []byte, err error)
func (*QueryEntryFunctionResponse) MarshalTo ¶
func (m *QueryEntryFunctionResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryEntryFunctionResponse) MarshalToSizedBuffer ¶
func (m *QueryEntryFunctionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryEntryFunctionResponse) ProtoMessage ¶
func (*QueryEntryFunctionResponse) ProtoMessage()
func (*QueryEntryFunctionResponse) Reset ¶
func (m *QueryEntryFunctionResponse) Reset()
func (*QueryEntryFunctionResponse) Size ¶
func (m *QueryEntryFunctionResponse) Size() (n int)
func (*QueryEntryFunctionResponse) String ¶
func (m *QueryEntryFunctionResponse) String() string
func (*QueryEntryFunctionResponse) Unmarshal ¶
func (m *QueryEntryFunctionResponse) Unmarshal(dAtA []byte) error
func (*QueryEntryFunctionResponse) XXX_DiscardUnknown ¶
func (m *QueryEntryFunctionResponse) XXX_DiscardUnknown()
func (*QueryEntryFunctionResponse) XXX_Marshal ¶
func (m *QueryEntryFunctionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryEntryFunctionResponse) XXX_Merge ¶
func (m *QueryEntryFunctionResponse) XXX_Merge(src proto.Message)
func (*QueryEntryFunctionResponse) XXX_Size ¶
func (m *QueryEntryFunctionResponse) XXX_Size() int
func (*QueryEntryFunctionResponse) XXX_Unmarshal ¶
func (m *QueryEntryFunctionResponse) XXX_Unmarshal(b []byte) error
type QueryModuleRequest ¶
type QueryModuleRequest struct { // address is the owner address of the module to query Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // module_name is the module name to query ModuleName string `protobuf:"bytes,2,opt,name=module_name,json=moduleName,proto3" json:"module_name,omitempty"` }
QueryModuleRequest is the request type for the Query/Module RPC method
func (*QueryModuleRequest) Descriptor ¶
func (*QueryModuleRequest) Descriptor() ([]byte, []int)
func (*QueryModuleRequest) Marshal ¶
func (m *QueryModuleRequest) Marshal() (dAtA []byte, err error)
func (*QueryModuleRequest) MarshalTo ¶
func (m *QueryModuleRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryModuleRequest) MarshalToSizedBuffer ¶
func (m *QueryModuleRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryModuleRequest) ProtoMessage ¶
func (*QueryModuleRequest) ProtoMessage()
func (*QueryModuleRequest) Reset ¶
func (m *QueryModuleRequest) Reset()
func (*QueryModuleRequest) Size ¶
func (m *QueryModuleRequest) Size() (n int)
func (*QueryModuleRequest) String ¶
func (m *QueryModuleRequest) String() string
func (*QueryModuleRequest) Unmarshal ¶
func (m *QueryModuleRequest) Unmarshal(dAtA []byte) error
func (*QueryModuleRequest) XXX_DiscardUnknown ¶
func (m *QueryModuleRequest) XXX_DiscardUnknown()
func (*QueryModuleRequest) XXX_Marshal ¶
func (m *QueryModuleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryModuleRequest) XXX_Merge ¶
func (m *QueryModuleRequest) XXX_Merge(src proto.Message)
func (*QueryModuleRequest) XXX_Size ¶
func (m *QueryModuleRequest) XXX_Size() int
func (*QueryModuleRequest) XXX_Unmarshal ¶
func (m *QueryModuleRequest) XXX_Unmarshal(b []byte) error
type QueryModuleResponse ¶
type QueryModuleResponse struct {
Module `protobuf:"bytes,1,opt,name=module,proto3,embedded=module" json:""`
}
QueryModuleResponse is the response type for the Query/Module RPC method
func (*QueryModuleResponse) Descriptor ¶
func (*QueryModuleResponse) Descriptor() ([]byte, []int)
func (*QueryModuleResponse) Equal ¶
func (this *QueryModuleResponse) Equal(that interface{}) bool
func (*QueryModuleResponse) Marshal ¶
func (m *QueryModuleResponse) Marshal() (dAtA []byte, err error)
func (*QueryModuleResponse) MarshalTo ¶
func (m *QueryModuleResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryModuleResponse) MarshalToSizedBuffer ¶
func (m *QueryModuleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryModuleResponse) ProtoMessage ¶
func (*QueryModuleResponse) ProtoMessage()
func (*QueryModuleResponse) Reset ¶
func (m *QueryModuleResponse) Reset()
func (*QueryModuleResponse) Size ¶
func (m *QueryModuleResponse) Size() (n int)
func (*QueryModuleResponse) String ¶
func (m *QueryModuleResponse) String() string
func (*QueryModuleResponse) Unmarshal ¶
func (m *QueryModuleResponse) Unmarshal(dAtA []byte) error
func (*QueryModuleResponse) XXX_DiscardUnknown ¶
func (m *QueryModuleResponse) XXX_DiscardUnknown()
func (*QueryModuleResponse) XXX_Marshal ¶
func (m *QueryModuleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryModuleResponse) XXX_Merge ¶
func (m *QueryModuleResponse) XXX_Merge(src proto.Message)
func (*QueryModuleResponse) XXX_Size ¶
func (m *QueryModuleResponse) XXX_Size() int
func (*QueryModuleResponse) XXX_Unmarshal ¶
func (m *QueryModuleResponse) XXX_Unmarshal(b []byte) error
type QueryModulesRequest ¶
type QueryModulesRequest struct { // address is the owner address of the modules 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"` }
QueryModulesRequest is the request type for the Query/Modules RPC method
func (*QueryModulesRequest) Descriptor ¶
func (*QueryModulesRequest) Descriptor() ([]byte, []int)
func (*QueryModulesRequest) Marshal ¶
func (m *QueryModulesRequest) Marshal() (dAtA []byte, err error)
func (*QueryModulesRequest) MarshalTo ¶
func (m *QueryModulesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryModulesRequest) MarshalToSizedBuffer ¶
func (m *QueryModulesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryModulesRequest) ProtoMessage ¶
func (*QueryModulesRequest) ProtoMessage()
func (*QueryModulesRequest) Reset ¶
func (m *QueryModulesRequest) Reset()
func (*QueryModulesRequest) Size ¶
func (m *QueryModulesRequest) Size() (n int)
func (*QueryModulesRequest) String ¶
func (m *QueryModulesRequest) String() string
func (*QueryModulesRequest) Unmarshal ¶
func (m *QueryModulesRequest) Unmarshal(dAtA []byte) error
func (*QueryModulesRequest) XXX_DiscardUnknown ¶
func (m *QueryModulesRequest) XXX_DiscardUnknown()
func (*QueryModulesRequest) XXX_Marshal ¶
func (m *QueryModulesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryModulesRequest) XXX_Merge ¶
func (m *QueryModulesRequest) XXX_Merge(src proto.Message)
func (*QueryModulesRequest) XXX_Size ¶
func (m *QueryModulesRequest) XXX_Size() int
func (*QueryModulesRequest) XXX_Unmarshal ¶
func (m *QueryModulesRequest) XXX_Unmarshal(b []byte) error
type QueryModulesResponse ¶
type QueryModulesResponse struct { Modules []Module `protobuf:"bytes,1,rep,name=modules,proto3" json:"modules"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryModulesResponse is the response type for the Query/Modules RPC method
func (*QueryModulesResponse) Descriptor ¶
func (*QueryModulesResponse) Descriptor() ([]byte, []int)
func (*QueryModulesResponse) Marshal ¶
func (m *QueryModulesResponse) Marshal() (dAtA []byte, err error)
func (*QueryModulesResponse) MarshalTo ¶
func (m *QueryModulesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryModulesResponse) MarshalToSizedBuffer ¶
func (m *QueryModulesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryModulesResponse) ProtoMessage ¶
func (*QueryModulesResponse) ProtoMessage()
func (*QueryModulesResponse) Reset ¶
func (m *QueryModulesResponse) Reset()
func (*QueryModulesResponse) Size ¶
func (m *QueryModulesResponse) Size() (n int)
func (*QueryModulesResponse) String ¶
func (m *QueryModulesResponse) String() string
func (*QueryModulesResponse) Unmarshal ¶
func (m *QueryModulesResponse) Unmarshal(dAtA []byte) error
func (*QueryModulesResponse) XXX_DiscardUnknown ¶
func (m *QueryModulesResponse) XXX_DiscardUnknown()
func (*QueryModulesResponse) XXX_Marshal ¶
func (m *QueryModulesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryModulesResponse) XXX_Merge ¶
func (m *QueryModulesResponse) XXX_Merge(src proto.Message)
func (*QueryModulesResponse) XXX_Size ¶
func (m *QueryModulesResponse) XXX_Size() int
func (*QueryModulesResponse) XXX_Unmarshal ¶
func (m *QueryModulesResponse) XXX_Unmarshal(b []byte) error
type QueryResourceRequest ¶
type QueryResourceRequest struct { // address is the owner address of the module to query Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // struct_tag is the unique identifier of the resource to query // ex) 0x1::BasicCoin::Coin<0x1::BasicCoin::Initia> StructTagInBase64 string `protobuf:"bytes,2,opt,name=struct_tag_in_base64,json=structTagInBase64,proto3" json:"struct_tag_in_base64,omitempty"` }
QueryResourceRequest is the request type for the Query/Resource RPC method
func (*QueryResourceRequest) Descriptor ¶
func (*QueryResourceRequest) Descriptor() ([]byte, []int)
func (*QueryResourceRequest) Marshal ¶
func (m *QueryResourceRequest) Marshal() (dAtA []byte, err error)
func (*QueryResourceRequest) MarshalTo ¶
func (m *QueryResourceRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryResourceRequest) MarshalToSizedBuffer ¶
func (m *QueryResourceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryResourceRequest) ProtoMessage ¶
func (*QueryResourceRequest) ProtoMessage()
func (*QueryResourceRequest) Reset ¶
func (m *QueryResourceRequest) Reset()
func (*QueryResourceRequest) Size ¶
func (m *QueryResourceRequest) Size() (n int)
func (*QueryResourceRequest) String ¶
func (m *QueryResourceRequest) String() string
func (*QueryResourceRequest) Unmarshal ¶
func (m *QueryResourceRequest) Unmarshal(dAtA []byte) error
func (*QueryResourceRequest) XXX_DiscardUnknown ¶
func (m *QueryResourceRequest) XXX_DiscardUnknown()
func (*QueryResourceRequest) XXX_Marshal ¶
func (m *QueryResourceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryResourceRequest) XXX_Merge ¶
func (m *QueryResourceRequest) XXX_Merge(src proto.Message)
func (*QueryResourceRequest) XXX_Size ¶
func (m *QueryResourceRequest) XXX_Size() int
func (*QueryResourceRequest) XXX_Unmarshal ¶
func (m *QueryResourceRequest) XXX_Unmarshal(b []byte) error
type QueryResourceResponse ¶
type QueryResourceResponse struct {
Resource `protobuf:"bytes,1,opt,name=resource,proto3,embedded=resource" json:""`
}
QueryResourceResponse is the response type for the Query/Resource RPC method
func (*QueryResourceResponse) Descriptor ¶
func (*QueryResourceResponse) Descriptor() ([]byte, []int)
func (*QueryResourceResponse) Equal ¶
func (this *QueryResourceResponse) Equal(that interface{}) bool
func (*QueryResourceResponse) Marshal ¶
func (m *QueryResourceResponse) Marshal() (dAtA []byte, err error)
func (*QueryResourceResponse) MarshalTo ¶
func (m *QueryResourceResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryResourceResponse) MarshalToSizedBuffer ¶
func (m *QueryResourceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryResourceResponse) ProtoMessage ¶
func (*QueryResourceResponse) ProtoMessage()
func (*QueryResourceResponse) Reset ¶
func (m *QueryResourceResponse) Reset()
func (*QueryResourceResponse) Size ¶
func (m *QueryResourceResponse) Size() (n int)
func (*QueryResourceResponse) String ¶
func (m *QueryResourceResponse) String() string
func (*QueryResourceResponse) Unmarshal ¶
func (m *QueryResourceResponse) Unmarshal(dAtA []byte) error
func (*QueryResourceResponse) XXX_DiscardUnknown ¶
func (m *QueryResourceResponse) XXX_DiscardUnknown()
func (*QueryResourceResponse) XXX_Marshal ¶
func (m *QueryResourceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryResourceResponse) XXX_Merge ¶
func (m *QueryResourceResponse) XXX_Merge(src proto.Message)
func (*QueryResourceResponse) XXX_Size ¶
func (m *QueryResourceResponse) XXX_Size() int
func (*QueryResourceResponse) XXX_Unmarshal ¶
func (m *QueryResourceResponse) XXX_Unmarshal(b []byte) error
type QueryResourcesRequest ¶
type QueryResourcesRequest struct { // address is the owner address of the module 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"` }
QueryResourcesRequest is the request type for the Query/Resources RPC method
func (*QueryResourcesRequest) Descriptor ¶
func (*QueryResourcesRequest) Descriptor() ([]byte, []int)
func (*QueryResourcesRequest) Marshal ¶
func (m *QueryResourcesRequest) Marshal() (dAtA []byte, err error)
func (*QueryResourcesRequest) MarshalTo ¶
func (m *QueryResourcesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryResourcesRequest) MarshalToSizedBuffer ¶
func (m *QueryResourcesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryResourcesRequest) ProtoMessage ¶
func (*QueryResourcesRequest) ProtoMessage()
func (*QueryResourcesRequest) Reset ¶
func (m *QueryResourcesRequest) Reset()
func (*QueryResourcesRequest) Size ¶
func (m *QueryResourcesRequest) Size() (n int)
func (*QueryResourcesRequest) String ¶
func (m *QueryResourcesRequest) String() string
func (*QueryResourcesRequest) Unmarshal ¶
func (m *QueryResourcesRequest) Unmarshal(dAtA []byte) error
func (*QueryResourcesRequest) XXX_DiscardUnknown ¶
func (m *QueryResourcesRequest) XXX_DiscardUnknown()
func (*QueryResourcesRequest) XXX_Marshal ¶
func (m *QueryResourcesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryResourcesRequest) XXX_Merge ¶
func (m *QueryResourcesRequest) XXX_Merge(src proto.Message)
func (*QueryResourcesRequest) XXX_Size ¶
func (m *QueryResourcesRequest) XXX_Size() int
func (*QueryResourcesRequest) XXX_Unmarshal ¶
func (m *QueryResourcesRequest) XXX_Unmarshal(b []byte) error
type QueryResourcesResponse ¶
type QueryResourcesResponse struct { Resources []Resource `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryResourcesResponse is the response type for the Query/Resources RPC method
func (*QueryResourcesResponse) Descriptor ¶
func (*QueryResourcesResponse) Descriptor() ([]byte, []int)
func (*QueryResourcesResponse) Marshal ¶
func (m *QueryResourcesResponse) Marshal() (dAtA []byte, err error)
func (*QueryResourcesResponse) MarshalTo ¶
func (m *QueryResourcesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryResourcesResponse) MarshalToSizedBuffer ¶
func (m *QueryResourcesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryResourcesResponse) ProtoMessage ¶
func (*QueryResourcesResponse) ProtoMessage()
func (*QueryResourcesResponse) Reset ¶
func (m *QueryResourcesResponse) Reset()
func (*QueryResourcesResponse) Size ¶
func (m *QueryResourcesResponse) Size() (n int)
func (*QueryResourcesResponse) String ¶
func (m *QueryResourcesResponse) String() string
func (*QueryResourcesResponse) Unmarshal ¶
func (m *QueryResourcesResponse) Unmarshal(dAtA []byte) error
func (*QueryResourcesResponse) XXX_DiscardUnknown ¶
func (m *QueryResourcesResponse) XXX_DiscardUnknown()
func (*QueryResourcesResponse) XXX_Marshal ¶
func (m *QueryResourcesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryResourcesResponse) XXX_Merge ¶
func (m *QueryResourcesResponse) XXX_Merge(src proto.Message)
func (*QueryResourcesResponse) XXX_Size ¶
func (m *QueryResourcesResponse) XXX_Size() int
func (*QueryResourcesResponse) XXX_Unmarshal ¶
func (m *QueryResourcesResponse) XXX_Unmarshal(b []byte) error
type QueryScriptABIRequest ¶
type QueryScriptABIRequest struct { // CodeBytes is the script code for query operation CodeBytes []byte `protobuf:"bytes,1,opt,name=code_bytes,json=codeBytes,proto3" json:"code_bytes,omitempty"` }
QueryScriptABIRequest is the request type for the Query/ScriptABI RPC method
func (*QueryScriptABIRequest) Descriptor ¶
func (*QueryScriptABIRequest) Descriptor() ([]byte, []int)
func (*QueryScriptABIRequest) Marshal ¶
func (m *QueryScriptABIRequest) Marshal() (dAtA []byte, err error)
func (*QueryScriptABIRequest) MarshalTo ¶
func (m *QueryScriptABIRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryScriptABIRequest) MarshalToSizedBuffer ¶
func (m *QueryScriptABIRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryScriptABIRequest) ProtoMessage ¶
func (*QueryScriptABIRequest) ProtoMessage()
func (*QueryScriptABIRequest) Reset ¶
func (m *QueryScriptABIRequest) Reset()
func (*QueryScriptABIRequest) Size ¶
func (m *QueryScriptABIRequest) Size() (n int)
func (*QueryScriptABIRequest) String ¶
func (m *QueryScriptABIRequest) String() string
func (*QueryScriptABIRequest) Unmarshal ¶
func (m *QueryScriptABIRequest) Unmarshal(dAtA []byte) error
func (*QueryScriptABIRequest) XXX_DiscardUnknown ¶
func (m *QueryScriptABIRequest) XXX_DiscardUnknown()
func (*QueryScriptABIRequest) XXX_Marshal ¶
func (m *QueryScriptABIRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryScriptABIRequest) XXX_Merge ¶
func (m *QueryScriptABIRequest) XXX_Merge(src proto.Message)
func (*QueryScriptABIRequest) XXX_Size ¶
func (m *QueryScriptABIRequest) XXX_Size() int
func (*QueryScriptABIRequest) XXX_Unmarshal ¶
func (m *QueryScriptABIRequest) XXX_Unmarshal(b []byte) error
type QueryScriptABIResponse ¶
type QueryScriptABIResponse struct {
Abi []byte `protobuf:"bytes,1,opt,name=abi,proto3" json:"abi,omitempty"`
}
QueryScriptABIResponse is the response type for the Query/ScriptABI RPC method
func (*QueryScriptABIResponse) Descriptor ¶
func (*QueryScriptABIResponse) Descriptor() ([]byte, []int)
func (*QueryScriptABIResponse) Marshal ¶
func (m *QueryScriptABIResponse) Marshal() (dAtA []byte, err error)
func (*QueryScriptABIResponse) MarshalTo ¶
func (m *QueryScriptABIResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryScriptABIResponse) MarshalToSizedBuffer ¶
func (m *QueryScriptABIResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryScriptABIResponse) ProtoMessage ¶
func (*QueryScriptABIResponse) ProtoMessage()
func (*QueryScriptABIResponse) Reset ¶
func (m *QueryScriptABIResponse) Reset()
func (*QueryScriptABIResponse) Size ¶
func (m *QueryScriptABIResponse) Size() (n int)
func (*QueryScriptABIResponse) String ¶
func (m *QueryScriptABIResponse) String() string
func (*QueryScriptABIResponse) Unmarshal ¶
func (m *QueryScriptABIResponse) Unmarshal(dAtA []byte) error
func (*QueryScriptABIResponse) XXX_DiscardUnknown ¶
func (m *QueryScriptABIResponse) XXX_DiscardUnknown()
func (*QueryScriptABIResponse) XXX_Marshal ¶
func (m *QueryScriptABIResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryScriptABIResponse) XXX_Merge ¶
func (m *QueryScriptABIResponse) XXX_Merge(src proto.Message)
func (*QueryScriptABIResponse) XXX_Size ¶
func (m *QueryScriptABIResponse) XXX_Size() int
func (*QueryScriptABIResponse) XXX_Unmarshal ¶
func (m *QueryScriptABIResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Module gets the module info Module(context.Context, *QueryModuleRequest) (*QueryModuleResponse, error) // Modules gets the module infos Modules(context.Context, *QueryModulesRequest) (*QueryModulesResponse, error) // Resource gets the module info Resource(context.Context, *QueryResourceRequest) (*QueryResourceResponse, error) // Resources gets the module infos Resources(context.Context, *QueryResourcesRequest) (*QueryResourcesResponse, error) // EntryFunction execute entry function and return the function result EntryFunction(context.Context, *QueryEntryFunctionRequest) (*QueryEntryFunctionResponse, error) // ScriptABI decode script bytes into ABI ScriptABI(context.Context, *QueryScriptABIRequest) (*QueryScriptABIResponse, error) }
QueryServer is the server API for Query service.
type Resource ¶
type Resource struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` StructTag string `protobuf:"bytes,2,opt,name=struct_tag,json=structTag,proto3" json:"struct_tag,omitempty"` ResourceBytes []byte `protobuf:"bytes,3,opt,name=resource_bytes,json=resourceBytes,proto3" json:"resource_bytes,omitempty"` MoveResource []byte `protobuf:"bytes,4,opt,name=move_resource,json=moveResource,proto3" json:"move_resource,omitempty"` }
Resource is data for the stored move resource ex) 0000000000000000000000000000000000000002/1/0x1::BasicCoin::Coin<0x1::BasicCoin::Initia>
func (*Resource) Descriptor ¶
func (*Resource) MarshalToSizedBuffer ¶
func (*Resource) ProtoMessage ¶
func (*Resource) ProtoMessage()
func (*Resource) XXX_DiscardUnknown ¶
func (m *Resource) XXX_DiscardUnknown()
func (*Resource) XXX_Marshal ¶
func (*Resource) XXX_Unmarshal ¶
type StakingKeeper ¶
type StakingKeeper interface { Validator(ctx sdk.Context, address sdk.ValAddress) stakingtypes.ValidatorI GetBondedValidatorsByPower(ctx sdk.Context) []stakingtypes.Validator UnbondingTime(ctx sdk.Context) time.Duration Delegate(ctx sdk.Context, delAddr sdk.AccAddress, bondAmt sdk.Int, tokenSrc stakingtypes.BondStatus, validator stakingtypes.Validator, subtractAccount bool) (sdk.Dec, error) GetValidator(ctx sdk.Context, addr sdk.ValAddress) (stakingtypes.Validator, bool) Unbond(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress, shares sdk.Dec) (amount sdk.Int, err error) Delegation(sdk.Context, sdk.AccAddress, sdk.ValAddress) stakingtypes.DelegationI BondDenom(ctx sdk.Context) (res string) }
StakingKeeper is expected keeper for staking module
type StorageFee ¶
type StorageFee struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // Assigned is the storage amount in bytes unit AssignedBytes uint64 `protobuf:"varint,2,opt,name=assigned_bytes,json=assignedBytes,proto3" json:"assigned_bytes,omitempty"` // Fee is the paid coin for the storage allocation Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount" yaml:"amount"` }
StorageFee contains paid fee and assigned bytes of storage
func (*StorageFee) Descriptor ¶
func (*StorageFee) Descriptor() ([]byte, []int)
func (*StorageFee) Equal ¶
func (this *StorageFee) Equal(that interface{}) bool
func (*StorageFee) Marshal ¶
func (m *StorageFee) Marshal() (dAtA []byte, err error)
func (*StorageFee) MarshalToSizedBuffer ¶
func (m *StorageFee) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*StorageFee) ProtoMessage ¶
func (*StorageFee) ProtoMessage()
func (*StorageFee) Reset ¶
func (m *StorageFee) Reset()
func (*StorageFee) Size ¶
func (m *StorageFee) Size() (n int)
func (*StorageFee) String ¶
func (m *StorageFee) String() string
func (*StorageFee) Unmarshal ¶
func (m *StorageFee) Unmarshal(dAtA []byte) error
func (*StorageFee) XXX_DiscardUnknown ¶
func (m *StorageFee) XXX_DiscardUnknown()
func (*StorageFee) XXX_Marshal ¶
func (m *StorageFee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StorageFee) XXX_Merge ¶
func (m *StorageFee) XXX_Merge(src proto.Message)
func (*StorageFee) XXX_Size ¶
func (m *StorageFee) XXX_Size() int
func (*StorageFee) XXX_Unmarshal ¶
func (m *StorageFee) XXX_Unmarshal(b []byte) error
type TableEntry ¶
type TableEntry struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Key []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` }
TableEntry is data stored under Table address
func (*TableEntry) Descriptor ¶
func (*TableEntry) Descriptor() ([]byte, []int)
func (*TableEntry) Equal ¶
func (this *TableEntry) Equal(that interface{}) bool
func (*TableEntry) Marshal ¶
func (m *TableEntry) Marshal() (dAtA []byte, err error)
func (*TableEntry) MarshalToSizedBuffer ¶
func (m *TableEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TableEntry) ProtoMessage ¶
func (*TableEntry) ProtoMessage()
func (*TableEntry) Reset ¶
func (m *TableEntry) Reset()
func (*TableEntry) Size ¶
func (m *TableEntry) Size() (n int)
func (*TableEntry) String ¶
func (m *TableEntry) String() string
func (*TableEntry) Unmarshal ¶
func (m *TableEntry) Unmarshal(dAtA []byte) error
func (*TableEntry) XXX_DiscardUnknown ¶
func (m *TableEntry) XXX_DiscardUnknown()
func (*TableEntry) XXX_Marshal ¶
func (m *TableEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TableEntry) XXX_Merge ¶
func (m *TableEntry) XXX_Merge(src proto.Message)
func (*TableEntry) XXX_Size ¶
func (m *TableEntry) XXX_Size() int
func (*TableEntry) XXX_Unmarshal ¶
func (m *TableEntry) XXX_Unmarshal(b []byte) error
type TableMeta ¶
type TableMeta struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` MetaBytes []byte `protobuf:"bytes,2,opt,name=meta_bytes,json=metaBytes,proto3" json:"meta_bytes,omitempty"` }
TableMeta is table meta data which is required to implement stroage fee
func (*TableMeta) Descriptor ¶
func (*TableMeta) MarshalToSizedBuffer ¶
func (*TableMeta) ProtoMessage ¶
func (*TableMeta) ProtoMessage()
func (*TableMeta) XXX_DiscardUnknown ¶
func (m *TableMeta) XXX_DiscardUnknown()
func (*TableMeta) XXX_Marshal ¶
func (*TableMeta) XXX_Unmarshal ¶
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) ConvertMoveCoin ¶
func (*UnimplementedMsgServer) ConvertMoveCoin(ctx context.Context, req *MsgConvertMoveCoin) (*MsgConvertMoveCoinResponse, error)
func (*UnimplementedMsgServer) ConvertNativeCoin ¶
func (*UnimplementedMsgServer) ConvertNativeCoin(ctx context.Context, req *MsgConvertNativeCoin) (*MsgConvertNativeCoinResponse, error)
func (*UnimplementedMsgServer) ExecuteEntryFunction ¶
func (*UnimplementedMsgServer) ExecuteEntryFunction(ctx context.Context, req *MsgExecuteEntryFunction) (*MsgExecuteEntryFunctionResponse, error)
func (*UnimplementedMsgServer) ExecuteScript ¶
func (*UnimplementedMsgServer) ExecuteScript(ctx context.Context, req *MsgExecuteScript) (*MsgExecuteScriptResponse, error)
func (*UnimplementedMsgServer) PublishModuleBundle ¶
func (*UnimplementedMsgServer) PublishModuleBundle(ctx context.Context, req *MsgPublishModuleBundle) (*MsgPublishModuleBundleResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) EntryFunction ¶
func (*UnimplementedQueryServer) EntryFunction(ctx context.Context, req *QueryEntryFunctionRequest) (*QueryEntryFunctionResponse, error)
func (*UnimplementedQueryServer) Module ¶
func (*UnimplementedQueryServer) Module(ctx context.Context, req *QueryModuleRequest) (*QueryModuleResponse, error)
func (*UnimplementedQueryServer) Modules ¶
func (*UnimplementedQueryServer) Modules(ctx context.Context, req *QueryModulesRequest) (*QueryModulesResponse, error)
func (*UnimplementedQueryServer) Resource ¶
func (*UnimplementedQueryServer) Resource(ctx context.Context, req *QueryResourceRequest) (*QueryResourceResponse, error)
func (*UnimplementedQueryServer) Resources ¶
func (*UnimplementedQueryServer) Resources(ctx context.Context, req *QueryResourcesRequest) (*QueryResourcesResponse, error)
func (*UnimplementedQueryServer) ScriptABI ¶
func (*UnimplementedQueryServer) ScriptABI(ctx context.Context, req *QueryScriptABIRequest) (*QueryScriptABIResponse, error)