Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func AbiStoreKey(addr crypto.Address) []byte
- func AddressMetaStoreKey(addr crypto.Address) []byte
- func BlockHashStoreKey(height int64) []byte
- func CodeStoreKey(addr crypto.Address) []byte
- func ErrCodedError(error errors.CodedError) *sdkerrors.Error
- func MetaHashStoreKey(metahash acmstate.MetadataHash) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func StorageStoreKey(addr crypto.Address, key binary.Word256) []byte
- type AccountKeeper
- type BankKeeper
- type CVMAccount
- func (*CVMAccount) Descriptor() ([]byte, []int)
- func (m *CVMAccount) GetAbi() string
- func (m *CVMAccount) GetCode() string
- func (m *CVMAccount) Marshal() (dAtA []byte, err error)
- func (m *CVMAccount) MarshalTo(dAtA []byte) (int, error)
- func (m *CVMAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CVMAccount) ProtoMessage()
- func (m *CVMAccount) Reset()
- func (m *CVMAccount) Size() (n int)
- func (m *CVMAccount) String() string
- func (m *CVMAccount) Unmarshal(dAtA []byte) error
- func (m *CVMAccount) XXX_DiscardUnknown()
- func (m *CVMAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CVMAccount) XXX_Merge(src proto.Message)
- func (m *CVMAccount) XXX_Size() int
- func (m *CVMAccount) XXX_Unmarshal(b []byte) error
- type CVMCode
- func (*CVMCode) Descriptor() ([]byte, []int)
- func (m *CVMCode) GetCodeType() int64
- func (m *CVMCode) Marshal() (dAtA []byte, err error)
- func (m *CVMCode) MarshalTo(dAtA []byte) (int, error)
- func (m *CVMCode) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CVMCode) ProtoMessage()
- func (m *CVMCode) Reset()
- func (m *CVMCode) Size() (n int)
- func (m *CVMCode) String() string
- func (m *CVMCode) Unmarshal(dAtA []byte) error
- func (m *CVMCode) XXX_DiscardUnknown()
- func (m *CVMCode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CVMCode) XXX_Merge(src proto.Message)
- func (*CVMCode) XXX_MessageName() string
- func (m *CVMCode) XXX_Size() int
- func (m *CVMCode) XXX_Unmarshal(b []byte) error
- type CertKeeper
- type Contract
- func (*Contract) Descriptor() ([]byte, []int)
- func (m *Contract) GetAbi() []byte
- func (m *Contract) GetCode() CVMCode
- func (m *Contract) GetMeta() []ContractMeta
- func (m *Contract) GetStorage() []Storage
- func (m *Contract) Marshal() (dAtA []byte, err error)
- func (m *Contract) MarshalTo(dAtA []byte) (int, error)
- func (m *Contract) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Contract) ProtoMessage()
- func (m *Contract) Reset()
- func (m *Contract) Size() (n int)
- func (m *Contract) String() string
- func (m *Contract) Unmarshal(dAtA []byte) error
- func (m *Contract) XXX_DiscardUnknown()
- func (m *Contract) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Contract) XXX_Merge(src proto.Message)
- func (*Contract) XXX_MessageName() string
- func (m *Contract) XXX_Size() int
- func (m *Contract) XXX_Unmarshal(b []byte) error
- type ContractMeta
- func (*ContractMeta) Descriptor() ([]byte, []int)
- func (m *ContractMeta) GetCodeHash() []byte
- func (m *ContractMeta) GetMetadataHash() []byte
- func (m *ContractMeta) Marshal() (dAtA []byte, err error)
- func (m *ContractMeta) MarshalTo(dAtA []byte) (int, error)
- func (m *ContractMeta) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ContractMeta) ProtoMessage()
- func (m *ContractMeta) Reset()
- func (m *ContractMeta) Size() (n int)
- func (m *ContractMeta) String() string
- func (m *ContractMeta) Unmarshal(dAtA []byte) error
- func (m *ContractMeta) XXX_DiscardUnknown()
- func (m *ContractMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ContractMeta) XXX_Merge(src proto.Message)
- func (*ContractMeta) XXX_MessageName() string
- func (m *ContractMeta) XXX_Size() int
- func (m *ContractMeta) XXX_Unmarshal(b []byte) error
- type ContractMetas
- func (*ContractMetas) Descriptor() ([]byte, []int)
- func (m *ContractMetas) GetMetas() []*acm.ContractMeta
- func (m *ContractMetas) Marshal() (dAtA []byte, err error)
- func (m *ContractMetas) MarshalTo(dAtA []byte) (int, error)
- func (m *ContractMetas) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ContractMetas) ProtoMessage()
- func (m *ContractMetas) Reset()
- func (m *ContractMetas) Size() (n int)
- func (m *ContractMetas) String() string
- func (m *ContractMetas) Unmarshal(dAtA []byte) error
- func (m *ContractMetas) XXX_DiscardUnknown()
- func (m *ContractMetas) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ContractMetas) XXX_Merge(src proto.Message)
- func (*ContractMetas) XXX_MessageName() string
- func (m *ContractMetas) XXX_Size() int
- func (m *ContractMetas) XXX_Unmarshal(b []byte) error
- type Contracts
- type DistributionKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetContracts() Contracts
- func (m *GenesisState) GetGasRate() uint64
- func (m *GenesisState) GetMetadatas() Metadatas
- 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 (gs GenesisState) Validate() 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 (*GenesisState) XXX_MessageName() string
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type Metadata
- func (*Metadata) Descriptor() ([]byte, []int)
- func (m *Metadata) GetHash() []byte
- func (m *Metadata) GetMetadata() string
- func (m *Metadata) Marshal() (dAtA []byte, err error)
- func (m *Metadata) MarshalTo(dAtA []byte) (int, error)
- func (m *Metadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Metadata) ProtoMessage()
- func (m *Metadata) Reset()
- func (m *Metadata) Size() (n int)
- func (m *Metadata) String() string
- func (m *Metadata) Unmarshal(dAtA []byte) error
- func (m *Metadata) XXX_DiscardUnknown()
- func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Metadata) XXX_Merge(src proto.Message)
- func (*Metadata) XXX_MessageName() string
- func (m *Metadata) XXX_Size() int
- func (m *Metadata) XXX_Unmarshal(b []byte) error
- type Metadatas
- type MsgCall
- func (*MsgCall) Descriptor() ([]byte, []int)
- func (m *MsgCall) GetCallee() string
- func (m *MsgCall) GetCaller() string
- func (m *MsgCall) GetData() []byte
- func (m MsgCall) GetSignBytes() []byte
- func (m MsgCall) GetSigners() []sdk.AccAddress
- func (m *MsgCall) GetValue() uint64
- func (m *MsgCall) Marshal() (dAtA []byte, err error)
- func (m *MsgCall) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCall) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCall) ProtoMessage()
- func (m *MsgCall) Reset()
- func (m MsgCall) Route() string
- func (m *MsgCall) Size() (n int)
- func (m *MsgCall) String() string
- func (m MsgCall) Type() string
- func (m *MsgCall) Unmarshal(dAtA []byte) error
- func (m MsgCall) ValidateBasic() error
- func (m *MsgCall) XXX_DiscardUnknown()
- func (m *MsgCall) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCall) XXX_Merge(src proto.Message)
- func (m *MsgCall) XXX_Size() int
- func (m *MsgCall) XXX_Unmarshal(b []byte) error
- type MsgCallResponse
- func (*MsgCallResponse) Descriptor() ([]byte, []int)
- func (m *MsgCallResponse) GetResult() []byte
- func (m *MsgCallResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCallResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCallResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCallResponse) ProtoMessage()
- func (m *MsgCallResponse) Reset()
- func (m *MsgCallResponse) Size() (n int)
- func (m *MsgCallResponse) String() string
- func (m *MsgCallResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCallResponse) XXX_DiscardUnknown()
- func (m *MsgCallResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCallResponse) XXX_Merge(src proto.Message)
- func (m *MsgCallResponse) XXX_Size() int
- func (m *MsgCallResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgDeploy
- func (*MsgDeploy) Descriptor() ([]byte, []int)
- func (m *MsgDeploy) GetAbi() string
- func (m *MsgDeploy) GetCaller() string
- func (m *MsgDeploy) GetCode() []byte
- func (m *MsgDeploy) GetIsEWASM() bool
- func (m *MsgDeploy) GetIsRuntime() bool
- func (m *MsgDeploy) GetMeta() []*payload.ContractMeta
- func (m MsgDeploy) GetSignBytes() []byte
- func (m MsgDeploy) GetSigners() []sdk.AccAddress
- func (m *MsgDeploy) GetValue() uint64
- func (m *MsgDeploy) Marshal() (dAtA []byte, err error)
- func (m *MsgDeploy) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeploy) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeploy) ProtoMessage()
- func (m *MsgDeploy) Reset()
- func (m MsgDeploy) Route() string
- func (m *MsgDeploy) Size() (n int)
- func (m *MsgDeploy) String() string
- func (m MsgDeploy) Type() string
- func (m *MsgDeploy) Unmarshal(dAtA []byte) error
- func (m MsgDeploy) ValidateBasic() error
- func (m *MsgDeploy) XXX_DiscardUnknown()
- func (m *MsgDeploy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeploy) XXX_Merge(src proto.Message)
- func (m *MsgDeploy) XXX_Size() int
- func (m *MsgDeploy) XXX_Unmarshal(b []byte) error
- type MsgDeployResponse
- func (*MsgDeployResponse) Descriptor() ([]byte, []int)
- func (m *MsgDeployResponse) GetResult() []byte
- func (m *MsgDeployResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDeployResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeployResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeployResponse) ProtoMessage()
- func (m *MsgDeployResponse) Reset()
- func (m *MsgDeployResponse) Size() (n int)
- func (m *MsgDeployResponse) String() string
- func (m *MsgDeployResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDeployResponse) XXX_DiscardUnknown()
- func (m *MsgDeployResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeployResponse) XXX_Merge(src proto.Message)
- func (m *MsgDeployResponse) XXX_Size() int
- func (m *MsgDeployResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type ParamSubspace
- type Params
- type QueryAbiRequest
- func (*QueryAbiRequest) Descriptor() ([]byte, []int)
- func (m *QueryAbiRequest) GetAddress() string
- func (m *QueryAbiRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAbiRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAbiRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAbiRequest) ProtoMessage()
- func (m *QueryAbiRequest) Reset()
- func (m *QueryAbiRequest) Size() (n int)
- func (m *QueryAbiRequest) String() string
- func (m *QueryAbiRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAbiRequest) XXX_DiscardUnknown()
- func (m *QueryAbiRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAbiRequest) XXX_Merge(src proto.Message)
- func (m *QueryAbiRequest) XXX_Size() int
- func (m *QueryAbiRequest) XXX_Unmarshal(b []byte) error
- type QueryAbiResponse
- func (*QueryAbiResponse) Descriptor() ([]byte, []int)
- func (m *QueryAbiResponse) GetAbi() string
- func (m *QueryAbiResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAbiResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAbiResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAbiResponse) ProtoMessage()
- func (m *QueryAbiResponse) Reset()
- func (m *QueryAbiResponse) Size() (n int)
- func (m *QueryAbiResponse) String() string
- func (m *QueryAbiResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAbiResponse) XXX_DiscardUnknown()
- func (m *QueryAbiResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAbiResponse) XXX_Merge(src proto.Message)
- func (m *QueryAbiResponse) XXX_Size() int
- func (m *QueryAbiResponse) XXX_Unmarshal(b []byte) error
- type QueryAccountRequest
- func (*QueryAccountRequest) Descriptor() ([]byte, []int)
- func (m *QueryAccountRequest) GetAddress() string
- func (m *QueryAccountRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAccountRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAccountRequest) ProtoMessage()
- func (m *QueryAccountRequest) Reset()
- func (m *QueryAccountRequest) Size() (n int)
- func (m *QueryAccountRequest) String() string
- func (m *QueryAccountRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAccountRequest) XXX_DiscardUnknown()
- func (m *QueryAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAccountRequest) XXX_Merge(src proto.Message)
- func (m *QueryAccountRequest) XXX_Size() int
- func (m *QueryAccountRequest) XXX_Unmarshal(b []byte) error
- type QueryAddressMetaRequest
- func (*QueryAddressMetaRequest) Descriptor() ([]byte, []int)
- func (m *QueryAddressMetaRequest) GetAddress() string
- func (m *QueryAddressMetaRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAddressMetaRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAddressMetaRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAddressMetaRequest) ProtoMessage()
- func (m *QueryAddressMetaRequest) Reset()
- func (m *QueryAddressMetaRequest) Size() (n int)
- func (m *QueryAddressMetaRequest) String() string
- func (m *QueryAddressMetaRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAddressMetaRequest) XXX_DiscardUnknown()
- func (m *QueryAddressMetaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAddressMetaRequest) XXX_Merge(src proto.Message)
- func (m *QueryAddressMetaRequest) XXX_Size() int
- func (m *QueryAddressMetaRequest) XXX_Unmarshal(b []byte) error
- type QueryAddressMetaResponse
- func (*QueryAddressMetaResponse) Descriptor() ([]byte, []int)
- func (m *QueryAddressMetaResponse) GetMetaHash() string
- func (m *QueryAddressMetaResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAddressMetaResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAddressMetaResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAddressMetaResponse) ProtoMessage()
- func (m *QueryAddressMetaResponse) Reset()
- func (m *QueryAddressMetaResponse) Size() (n int)
- func (m *QueryAddressMetaResponse) String() string
- func (m *QueryAddressMetaResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAddressMetaResponse) XXX_DiscardUnknown()
- func (m *QueryAddressMetaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAddressMetaResponse) XXX_Merge(src proto.Message)
- func (m *QueryAddressMetaResponse) XXX_Size() int
- func (m *QueryAddressMetaResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryCodeRequest
- func (*QueryCodeRequest) Descriptor() ([]byte, []int)
- func (m *QueryCodeRequest) GetAddress() string
- func (m *QueryCodeRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCodeRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCodeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCodeRequest) ProtoMessage()
- func (m *QueryCodeRequest) Reset()
- func (m *QueryCodeRequest) Size() (n int)
- func (m *QueryCodeRequest) String() string
- func (m *QueryCodeRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCodeRequest) XXX_DiscardUnknown()
- func (m *QueryCodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCodeRequest) XXX_Merge(src proto.Message)
- func (m *QueryCodeRequest) XXX_Size() int
- func (m *QueryCodeRequest) XXX_Unmarshal(b []byte) error
- type QueryCodeResponse
- func (*QueryCodeResponse) Descriptor() ([]byte, []int)
- func (m *QueryCodeResponse) GetCode() string
- func (m *QueryCodeResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCodeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCodeResponse) ProtoMessage()
- func (m *QueryCodeResponse) Reset()
- func (m *QueryCodeResponse) Size() (n int)
- func (m *QueryCodeResponse) String() string
- func (m *QueryCodeResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCodeResponse) XXX_DiscardUnknown()
- func (m *QueryCodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCodeResponse) XXX_Merge(src proto.Message)
- func (m *QueryCodeResponse) XXX_Size() int
- func (m *QueryCodeResponse) XXX_Unmarshal(b []byte) error
- type QueryMetaRequest
- func (*QueryMetaRequest) Descriptor() ([]byte, []int)
- func (m *QueryMetaRequest) GetHash() string
- func (m *QueryMetaRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryMetaRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryMetaRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryMetaRequest) ProtoMessage()
- func (m *QueryMetaRequest) Reset()
- func (m *QueryMetaRequest) Size() (n int)
- func (m *QueryMetaRequest) String() string
- func (m *QueryMetaRequest) Unmarshal(dAtA []byte) error
- func (m *QueryMetaRequest) XXX_DiscardUnknown()
- func (m *QueryMetaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryMetaRequest) XXX_Merge(src proto.Message)
- func (m *QueryMetaRequest) XXX_Size() int
- func (m *QueryMetaRequest) XXX_Unmarshal(b []byte) error
- type QueryMetaResponse
- func (*QueryMetaResponse) Descriptor() ([]byte, []int)
- func (m *QueryMetaResponse) GetMeta() string
- func (m *QueryMetaResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryMetaResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryMetaResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryMetaResponse) ProtoMessage()
- func (m *QueryMetaResponse) Reset()
- func (m *QueryMetaResponse) Size() (n int)
- func (m *QueryMetaResponse) String() string
- func (m *QueryMetaResponse) Unmarshal(dAtA []byte) error
- func (m *QueryMetaResponse) XXX_DiscardUnknown()
- func (m *QueryMetaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryMetaResponse) XXX_Merge(src proto.Message)
- func (m *QueryMetaResponse) XXX_Size() int
- func (m *QueryMetaResponse) XXX_Unmarshal(b []byte) error
- type QueryResAbi
- type QueryResAddrMeta
- type QueryResCode
- type QueryResMeta
- type QueryResStorage
- type QueryResView
- type QueryServer
- type QueryStorageRequest
- func (*QueryStorageRequest) Descriptor() ([]byte, []int)
- func (m *QueryStorageRequest) GetAddress() string
- func (m *QueryStorageRequest) GetKey() string
- func (m *QueryStorageRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryStorageRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryStorageRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryStorageRequest) ProtoMessage()
- func (m *QueryStorageRequest) Reset()
- func (m *QueryStorageRequest) Size() (n int)
- func (m *QueryStorageRequest) String() string
- func (m *QueryStorageRequest) Unmarshal(dAtA []byte) error
- func (m *QueryStorageRequest) XXX_DiscardUnknown()
- func (m *QueryStorageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryStorageRequest) XXX_Merge(src proto.Message)
- func (m *QueryStorageRequest) XXX_Size() int
- func (m *QueryStorageRequest) XXX_Unmarshal(b []byte) error
- type QueryStorageResponse
- func (*QueryStorageResponse) Descriptor() ([]byte, []int)
- func (m *QueryStorageResponse) GetValue() []byte
- func (m *QueryStorageResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryStorageResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryStorageResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryStorageResponse) ProtoMessage()
- func (m *QueryStorageResponse) Reset()
- func (m *QueryStorageResponse) Size() (n int)
- func (m *QueryStorageResponse) String() string
- func (m *QueryStorageResponse) Unmarshal(dAtA []byte) error
- func (m *QueryStorageResponse) XXX_DiscardUnknown()
- func (m *QueryStorageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryStorageResponse) XXX_Merge(src proto.Message)
- func (m *QueryStorageResponse) XXX_Size() int
- func (m *QueryStorageResponse) XXX_Unmarshal(b []byte) error
- type QueryViewRequest
- func (*QueryViewRequest) Descriptor() ([]byte, []int)
- func (m *QueryViewRequest) GetAbiSpec() []byte
- func (m *QueryViewRequest) GetCallee() string
- func (m *QueryViewRequest) GetCaller() string
- func (m *QueryViewRequest) GetData() []byte
- func (m *QueryViewRequest) GetFunctionName() string
- func (m *QueryViewRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryViewRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryViewRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryViewRequest) ProtoMessage()
- func (m *QueryViewRequest) Reset()
- func (m *QueryViewRequest) Size() (n int)
- func (m *QueryViewRequest) String() string
- func (m *QueryViewRequest) Unmarshal(dAtA []byte) error
- func (m *QueryViewRequest) XXX_DiscardUnknown()
- func (m *QueryViewRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryViewRequest) XXX_Merge(src proto.Message)
- func (m *QueryViewRequest) XXX_Size() int
- func (m *QueryViewRequest) XXX_Unmarshal(b []byte) error
- type QueryViewResponse
- func (*QueryViewResponse) Descriptor() ([]byte, []int)
- func (m *QueryViewResponse) GetReturnVars() []*ReturnVars
- func (m *QueryViewResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryViewResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryViewResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryViewResponse) ProtoMessage()
- func (m *QueryViewResponse) Reset()
- func (m *QueryViewResponse) Size() (n int)
- func (m *QueryViewResponse) String() string
- func (m *QueryViewResponse) Unmarshal(dAtA []byte) error
- func (m *QueryViewResponse) XXX_DiscardUnknown()
- func (m *QueryViewResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryViewResponse) XXX_Merge(src proto.Message)
- func (m *QueryViewResponse) XXX_Size() int
- func (m *QueryViewResponse) XXX_Unmarshal(b []byte) error
- type ReturnVars
- func (*ReturnVars) Descriptor() ([]byte, []int)
- func (m *ReturnVars) GetName() string
- func (m *ReturnVars) GetValue() string
- func (m *ReturnVars) Marshal() (dAtA []byte, err error)
- func (m *ReturnVars) MarshalTo(dAtA []byte) (int, error)
- func (m *ReturnVars) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ReturnVars) ProtoMessage()
- func (m *ReturnVars) Reset()
- func (m *ReturnVars) Size() (n int)
- func (m *ReturnVars) String() string
- func (m *ReturnVars) Unmarshal(dAtA []byte) error
- func (m *ReturnVars) XXX_DiscardUnknown()
- func (m *ReturnVars) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReturnVars) XXX_Merge(src proto.Message)
- func (m *ReturnVars) XXX_Size() int
- func (m *ReturnVars) XXX_Unmarshal(b []byte) error
- type StakingKeeper
- type Storage
- func (*Storage) Descriptor() ([]byte, []int)
- func (m *Storage) GetValue() []byte
- func (m *Storage) Marshal() (dAtA []byte, err error)
- func (m *Storage) MarshalTo(dAtA []byte) (int, error)
- func (m *Storage) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Storage) ProtoMessage()
- func (m *Storage) Reset()
- func (m *Storage) Size() (n int)
- func (m *Storage) String() string
- func (m *Storage) Unmarshal(dAtA []byte) error
- func (m *Storage) XXX_DiscardUnknown()
- func (m *Storage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Storage) XXX_Merge(src proto.Message)
- func (*Storage) XXX_MessageName() string
- func (m *Storage) XXX_Size() int
- func (m *Storage) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Abi(ctx context.Context, req *QueryAbiRequest) (*QueryAbiResponse, error)
- func (*UnimplementedQueryServer) Account(ctx context.Context, req *QueryAccountRequest) (*acm.Account, error)
- func (*UnimplementedQueryServer) AddressMeta(ctx context.Context, req *QueryAddressMetaRequest) (*QueryAddressMetaResponse, error)
- func (*UnimplementedQueryServer) Code(ctx context.Context, req *QueryCodeRequest) (*QueryCodeResponse, error)
- func (*UnimplementedQueryServer) Meta(ctx context.Context, req *QueryMetaRequest) (*QueryMetaResponse, error)
- func (*UnimplementedQueryServer) Storage(ctx context.Context, req *QueryStorageRequest) (*QueryStorageResponse, error)
- func (*UnimplementedQueryServer) View(ctx context.Context, req *QueryViewRequest) (*QueryViewResponse, error)
Constants ¶
const ( CVMCodeTypeEVMCode = 0 CVMCodeTypeEWASMCode = 1 )
CVM code types
const ( EventTypeCVMEvent = "cvm-event" EventTypeCall = "call" EventTypeDeploy = "deploy" EventTypeInternalCall = "internal-call" AttributeKeyNewContractAddress = "new-contract-address" AttributeKeyRecipient = "recipient" AttributeKeyValue = "value" )
const ( // ModuleName is the name of the staking module. ModuleName = "cvm" // StoreKey is the string store representation. StoreKey = ModuleName // QuerierRoute is the querier route for the staking module. QuerierRoute = ModuleName // RouterKey is the msg router key for the staking module. RouterKey = ModuleName // DefaultParamspace is the default name for parameter store. DefaultParamspace = ModuleName )
const ( TypeMsgDeploy = "deploy" TypeMsgCall = "call" )
Governance message types and routes
const ( QueryCode = "code" QueryStorage = "storage" QueryAbi = "abi" QueryAddrMeta = "address-meta" QueryMeta = "meta" QueryView = "view" QueryAccount = "account" )
querier keys
const BurrowErrorCodeStart = 200
BurrowErrorCodeStart is the default sdk code type.
const (
DefaultGasRate uint64 = 1
)
Default parameter values
Variables ¶
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 ( // StorageStoreKeyPrefix is the prefix of CVM storage kv-store keys. StorageStoreKeyPrefix = []byte{0x00} // BlockHashStoreKeyPrefix is the prefix of block hash kv-store keys. BlockHashStoreKeyPrefix = []byte{0x01} // CodeStoreKeyPrefix is the prefix of code kv-store keys. CodeStoreKeyPrefix = []byte{0x02} // AbiStoreKeyPrefix is the prefix of code ABI kv-store keys. AbiStoreKeyPrefix = []byte{0x03} // MetaHashStoreKeyPrefix is the prefix of contract metadata hash kv-store keys. MetaHashStoreKeyPrefix = []byte{0x04} // AddressMetaHashStoreKeyPrefix is the prefix of contract metadata hash kv-store keys. AddressMetaHashStoreKeyPrefix = []byte{0x5} )
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 ( // ModuleCdc references the global x/cvm 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/cvm and // defined at the application level. ModuleCdc = codec.NewAminoCodec(amino) )
var (
ParamStoreKeyGasRate = []byte("GasRate")
)
Parameter keys
Functions ¶
func AbiStoreKey ¶
AbiStoreKey returns the kv-store key for the contract's code ABI key.
func AddressMetaStoreKey ¶
AddressMetaStoreKey returns the kv-store key for the address-metahash key.
func BlockHashStoreKey ¶
BlockHashStoreKey returns the kv-store key for the chain's block hashes.
func CodeStoreKey ¶
CodeStoreKey returns the kv-store key for the contract's storage key.
func ErrCodedError ¶
func ErrCodedError(error errors.CodedError) *sdkerrors.Error
ErrCodedError wraps execution CodedError into sdk Error.
func MetaHashStoreKey ¶
func MetaHashStoreKey(metahash acmstate.MetadataHash) []byte
metaHashStoreKey returns the kv-store key for the metahash key.
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
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)
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { IterateAccounts(ctx sdk.Context, process func(i authtypes.AccountI) (stop bool)) GetAccount(ctx sdk.Context, address sdk.AccAddress) authtypes.AccountI SetAccount(ctx sdk.Context, account authtypes.AccountI) NewAccount(ctx sdk.Context, account authtypes.AccountI) authtypes.AccountI NewAccountWithAddress(sdk.Context, sdk.AccAddress) authtypes.AccountI }
AccountKeeper defines the expected account keeper (noalias)
type BankKeeper ¶
type BankKeeper interface { GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin SetBalances(ctx sdk.Context, addr sdk.AccAddress, balances sdk.Coins) error LockedCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error BurnCoins(ctx sdk.Context, name string, amt sdk.Coins) error }
BankKeeper defines the expected bank keeper (noalias)
type CVMAccount ¶
type CVMAccount struct { *types.BaseAccount `` /* 136-byte string literal not displayed */ Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty" yaml:"code"` Abi string `protobuf:"bytes,3,opt,name=abi,proto3" json:"abi,omitempty" yaml:"abi"` }
func (*CVMAccount) Descriptor ¶
func (*CVMAccount) Descriptor() ([]byte, []int)
func (*CVMAccount) GetAbi ¶
func (m *CVMAccount) GetAbi() string
func (*CVMAccount) GetCode ¶
func (m *CVMAccount) GetCode() string
func (*CVMAccount) Marshal ¶
func (m *CVMAccount) Marshal() (dAtA []byte, err error)
func (*CVMAccount) MarshalToSizedBuffer ¶
func (m *CVMAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CVMAccount) ProtoMessage ¶
func (*CVMAccount) ProtoMessage()
func (*CVMAccount) Reset ¶
func (m *CVMAccount) Reset()
func (*CVMAccount) Size ¶
func (m *CVMAccount) Size() (n int)
func (*CVMAccount) String ¶
func (m *CVMAccount) String() string
func (*CVMAccount) Unmarshal ¶
func (m *CVMAccount) Unmarshal(dAtA []byte) error
func (*CVMAccount) XXX_DiscardUnknown ¶
func (m *CVMAccount) XXX_DiscardUnknown()
func (*CVMAccount) XXX_Marshal ¶
func (m *CVMAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CVMAccount) XXX_Merge ¶
func (m *CVMAccount) XXX_Merge(src proto.Message)
func (*CVMAccount) XXX_Size ¶
func (m *CVMAccount) XXX_Size() int
func (*CVMAccount) XXX_Unmarshal ¶
func (m *CVMAccount) XXX_Unmarshal(b []byte) error
type CVMCode ¶
type CVMCode struct { CodeType int64 `protobuf:"varint,1,opt,name=code_type,json=codeType,proto3" json:"code_type,omitempty" yaml:"code_type"` Code github_com_hyperledger_burrow_acm.Bytecode `protobuf:"bytes,2,opt,name=code,proto3,customtype=github.com/hyperledger/burrow/acm.Bytecode" json:"code" yaml:"code"` }
func NewCVMCode ¶
NewCVMCode returns a new CVM code instance.
func (*CVMCode) Descriptor ¶
func (*CVMCode) GetCodeType ¶
func (*CVMCode) MarshalToSizedBuffer ¶
func (*CVMCode) ProtoMessage ¶
func (*CVMCode) ProtoMessage()
func (*CVMCode) XXX_DiscardUnknown ¶
func (m *CVMCode) XXX_DiscardUnknown()
func (*CVMCode) XXX_Marshal ¶
func (*CVMCode) XXX_MessageName ¶
func (*CVMCode) XXX_Unmarshal ¶
type CertKeeper ¶
type CertKeeper interface { IsCertified(ctx sdk.Context, content string, certType string) bool IsContentCertified(ctx sdk.Context, content string) bool IsCertifier(ctx sdk.Context, addr sdk.AccAddress) bool }
CertKeeper defines the expected cert keeper (noalias)
type Contract ¶
type Contract struct { Address github_com_hyperledger_burrow_crypto.Address `` /* 128-byte string literal not displayed */ Code CVMCode `protobuf:"bytes,2,opt,name=code,proto3" json:"code" yaml:"code"` Storage []Storage `protobuf:"bytes,3,rep,name=storage,proto3" json:"storage" yaml:"storage"` Abi []byte `protobuf:"bytes,4,opt,name=abi,proto3" json:"abi,omitempty" yaml:"abi"` Meta []ContractMeta `protobuf:"bytes,5,rep,name=meta,proto3" json:"meta" yaml:"contract_meta"` }
func (*Contract) Descriptor ¶
func (*Contract) GetMeta ¶
func (m *Contract) GetMeta() []ContractMeta
func (*Contract) GetStorage ¶
func (*Contract) MarshalToSizedBuffer ¶
func (*Contract) ProtoMessage ¶
func (*Contract) ProtoMessage()
func (*Contract) XXX_DiscardUnknown ¶
func (m *Contract) XXX_DiscardUnknown()
func (*Contract) XXX_Marshal ¶
func (*Contract) XXX_MessageName ¶
func (*Contract) XXX_Unmarshal ¶
type ContractMeta ¶
type ContractMeta struct { CodeHash []byte `protobuf:"bytes,1,opt,name=code_hash,json=codeHash,proto3" json:"code_hash,omitempty" yaml:"code_hash"` MetadataHash []byte `protobuf:"bytes,2,opt,name=metadata_hash,json=metadataHash,proto3" json:"metadata_hash,omitempty" yaml:"metadata_hash"` }
func (*ContractMeta) Descriptor ¶
func (*ContractMeta) Descriptor() ([]byte, []int)
func (*ContractMeta) GetCodeHash ¶
func (m *ContractMeta) GetCodeHash() []byte
func (*ContractMeta) GetMetadataHash ¶
func (m *ContractMeta) GetMetadataHash() []byte
func (*ContractMeta) Marshal ¶
func (m *ContractMeta) Marshal() (dAtA []byte, err error)
func (*ContractMeta) MarshalToSizedBuffer ¶
func (m *ContractMeta) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ContractMeta) ProtoMessage ¶
func (*ContractMeta) ProtoMessage()
func (*ContractMeta) Reset ¶
func (m *ContractMeta) Reset()
func (*ContractMeta) Size ¶
func (m *ContractMeta) Size() (n int)
func (*ContractMeta) String ¶
func (m *ContractMeta) String() string
func (*ContractMeta) Unmarshal ¶
func (m *ContractMeta) Unmarshal(dAtA []byte) error
func (*ContractMeta) XXX_DiscardUnknown ¶
func (m *ContractMeta) XXX_DiscardUnknown()
func (*ContractMeta) XXX_Marshal ¶
func (m *ContractMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ContractMeta) XXX_Merge ¶
func (m *ContractMeta) XXX_Merge(src proto.Message)
func (*ContractMeta) XXX_MessageName ¶
func (*ContractMeta) XXX_MessageName() string
func (*ContractMeta) XXX_Size ¶
func (m *ContractMeta) XXX_Size() int
func (*ContractMeta) XXX_Unmarshal ¶
func (m *ContractMeta) XXX_Unmarshal(b []byte) error
type ContractMetas ¶
type ContractMetas struct {
Metas []*acm.ContractMeta `protobuf:"bytes,1,rep,name=metas,proto3" json:"metas,omitempty"`
}
func (*ContractMetas) Descriptor ¶
func (*ContractMetas) Descriptor() ([]byte, []int)
func (*ContractMetas) GetMetas ¶
func (m *ContractMetas) GetMetas() []*acm.ContractMeta
func (*ContractMetas) Marshal ¶
func (m *ContractMetas) Marshal() (dAtA []byte, err error)
func (*ContractMetas) MarshalToSizedBuffer ¶
func (m *ContractMetas) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ContractMetas) ProtoMessage ¶
func (*ContractMetas) ProtoMessage()
func (*ContractMetas) Reset ¶
func (m *ContractMetas) Reset()
func (*ContractMetas) Size ¶
func (m *ContractMetas) Size() (n int)
func (*ContractMetas) String ¶
func (m *ContractMetas) String() string
func (*ContractMetas) Unmarshal ¶
func (m *ContractMetas) Unmarshal(dAtA []byte) error
func (*ContractMetas) XXX_DiscardUnknown ¶
func (m *ContractMetas) XXX_DiscardUnknown()
func (*ContractMetas) XXX_Marshal ¶
func (m *ContractMetas) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ContractMetas) XXX_Merge ¶
func (m *ContractMetas) XXX_Merge(src proto.Message)
func (*ContractMetas) XXX_MessageName ¶
func (*ContractMetas) XXX_MessageName() string
func (*ContractMetas) XXX_Size ¶
func (m *ContractMetas) XXX_Size() int
func (*ContractMetas) XXX_Unmarshal ¶
func (m *ContractMetas) XXX_Unmarshal(b []byte) error
type DistributionKeeper ¶
type DistributionKeeper interface {
FundCommunityPool(ctx sdk.Context, amount sdk.Coins, sender sdk.AccAddress) error
}
DistributionKeeper defines the expected distribution keeper (noalias)
type GenesisState ¶
type GenesisState struct { GasRate uint64 `protobuf:"varint,1,opt,name=gas_rate,json=gasRate,proto3" json:"gas_rate,omitempty" yaml:"gas_rate"` Contracts Contracts `protobuf:"bytes,2,rep,name=contracts,proto3,castrepeated=Contracts" json:"contracts"` Metadatas Metadatas `protobuf:"bytes,3,rep,name=metadatas,proto3,castrepeated=Metadatas" json:"metadatas"` }
GenesisState defines the gov module's genesis state.
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState creates a default GenesisState object.
func NewGenesisState ¶
func NewGenesisState(rate uint64) GenesisState
NewGenesisState creates a new GenesisState object.
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetContracts ¶
func (m *GenesisState) GetContracts() Contracts
func (*GenesisState) GetGasRate ¶
func (m *GenesisState) GetGasRate() uint64
func (*GenesisState) GetMetadatas ¶
func (m *GenesisState) GetMetadatas() Metadatas
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) Validate ¶
func (gs GenesisState) Validate() error
Validate performs validation of cvm genesis data.
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_MessageName ¶
func (*GenesisState) XXX_MessageName() string
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type Metadata ¶
type Metadata struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty" yaml:"hash"` Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty" yaml:"metadata"` }
func (*Metadata) Descriptor ¶
func (*Metadata) GetMetadata ¶
func (*Metadata) MarshalToSizedBuffer ¶
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) XXX_DiscardUnknown ¶
func (m *Metadata) XXX_DiscardUnknown()
func (*Metadata) XXX_Marshal ¶
func (*Metadata) XXX_MessageName ¶
func (*Metadata) XXX_Unmarshal ¶
type MsgCall ¶
type MsgCall struct { Caller string `protobuf:"bytes,1,opt,name=caller,proto3" json:"caller,omitempty" yaml:"caller"` Callee string `protobuf:"bytes,2,opt,name=callee,proto3" json:"callee,omitempty" yaml:"callee"` Value uint64 `protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty" yaml:"value"` Data []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty" yaml:"data"` }
func NewMsgCall ¶
NewMsgCall returns a new CVM call message.
func (*MsgCall) Descriptor ¶
func (MsgCall) GetSignBytes ¶
GetSignBytes encodes the message for signing.
func (MsgCall) GetSigners ¶
func (m MsgCall) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required.
func (*MsgCall) MarshalToSizedBuffer ¶
func (*MsgCall) ProtoMessage ¶
func (*MsgCall) ProtoMessage()
func (MsgCall) ValidateBasic ¶
ValidateBasic runs stateless checks on the message.
func (*MsgCall) XXX_DiscardUnknown ¶
func (m *MsgCall) XXX_DiscardUnknown()
func (*MsgCall) XXX_Marshal ¶
func (*MsgCall) XXX_Unmarshal ¶
type MsgCallResponse ¶
type MsgCallResponse struct {
Result []byte `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty" yaml:"result"`
}
func (*MsgCallResponse) Descriptor ¶
func (*MsgCallResponse) Descriptor() ([]byte, []int)
func (*MsgCallResponse) GetResult ¶
func (m *MsgCallResponse) GetResult() []byte
func (*MsgCallResponse) Marshal ¶
func (m *MsgCallResponse) Marshal() (dAtA []byte, err error)
func (*MsgCallResponse) MarshalToSizedBuffer ¶
func (m *MsgCallResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCallResponse) ProtoMessage ¶
func (*MsgCallResponse) ProtoMessage()
func (*MsgCallResponse) Reset ¶
func (m *MsgCallResponse) Reset()
func (*MsgCallResponse) Size ¶
func (m *MsgCallResponse) Size() (n int)
func (*MsgCallResponse) String ¶
func (m *MsgCallResponse) String() string
func (*MsgCallResponse) Unmarshal ¶
func (m *MsgCallResponse) Unmarshal(dAtA []byte) error
func (*MsgCallResponse) XXX_DiscardUnknown ¶
func (m *MsgCallResponse) XXX_DiscardUnknown()
func (*MsgCallResponse) XXX_Marshal ¶
func (m *MsgCallResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCallResponse) XXX_Merge ¶
func (m *MsgCallResponse) XXX_Merge(src proto.Message)
func (*MsgCallResponse) XXX_Size ¶
func (m *MsgCallResponse) XXX_Size() int
func (*MsgCallResponse) XXX_Unmarshal ¶
func (m *MsgCallResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { Call(ctx context.Context, in *MsgCall, opts ...grpc.CallOption) (*MsgCallResponse, error) Deploy(ctx context.Context, in *MsgDeploy, opts ...grpc.CallOption) (*MsgDeployResponse, 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 MsgDeploy ¶
type MsgDeploy struct { // Caller is the sender of the CVM-message. Caller string `protobuf:"bytes,1,opt,name=caller,proto3" json:"caller,omitempty" yaml:"caller"` // Value is the amount of CTK transferred with the call. Value uint64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty" yaml:"value"` // Code is the contract byte code. Code []byte `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty" yaml:"code"` // Abi is the Solidity ABI bytes for the contract code. Abi string `protobuf:"bytes,4,opt,name=abi,proto3" json:"abi,omitempty" yaml:"abi"` // Meta is the metadata for the contract. Meta []*payload.ContractMeta `protobuf:"bytes,5,rep,name=meta,proto3" json:"meta,omitempty" yaml:"meta"` // is_eWASM is true if the code is EWASM code. IsEWASM bool `protobuf:"varint,6,opt,name=is_eWASM,json=isEWASM,proto3" json:"is_eWASM,omitempty" yaml:"is_EWASM"` // is_runtime is true if the code is runtime code. IsRuntime bool `protobuf:"varint,7,opt,name=is_runtime,json=isRuntime,proto3" json:"is_runtime,omitempty" yaml:"is_runtime"` }
func NewMsgDeploy ¶
func NewMsgDeploy(caller string, value uint64, code acm.Bytecode, abi string, meta []*payload.ContractMeta, isEWASM, isRuntime bool) MsgDeploy
NewMsgDeploy returns a new CVM deploy message.
func (*MsgDeploy) Descriptor ¶
func (*MsgDeploy) GetIsEWASM ¶
func (*MsgDeploy) GetIsRuntime ¶
func (*MsgDeploy) GetMeta ¶
func (m *MsgDeploy) GetMeta() []*payload.ContractMeta
func (MsgDeploy) GetSignBytes ¶
GetSignBytes encodes the message for signing.
func (MsgDeploy) GetSigners ¶
func (m MsgDeploy) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required.
func (*MsgDeploy) MarshalToSizedBuffer ¶
func (*MsgDeploy) ProtoMessage ¶
func (*MsgDeploy) ProtoMessage()
func (MsgDeploy) ValidateBasic ¶
ValidateBasic runs stateless checks on the message.
func (*MsgDeploy) XXX_DiscardUnknown ¶
func (m *MsgDeploy) XXX_DiscardUnknown()
func (*MsgDeploy) XXX_Marshal ¶
func (*MsgDeploy) XXX_Unmarshal ¶
type MsgDeployResponse ¶
type MsgDeployResponse struct {
Result []byte `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty" yaml:"result"`
}
func (*MsgDeployResponse) Descriptor ¶
func (*MsgDeployResponse) Descriptor() ([]byte, []int)
func (*MsgDeployResponse) GetResult ¶
func (m *MsgDeployResponse) GetResult() []byte
func (*MsgDeployResponse) Marshal ¶
func (m *MsgDeployResponse) Marshal() (dAtA []byte, err error)
func (*MsgDeployResponse) MarshalTo ¶
func (m *MsgDeployResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeployResponse) MarshalToSizedBuffer ¶
func (m *MsgDeployResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeployResponse) ProtoMessage ¶
func (*MsgDeployResponse) ProtoMessage()
func (*MsgDeployResponse) Reset ¶
func (m *MsgDeployResponse) Reset()
func (*MsgDeployResponse) Size ¶
func (m *MsgDeployResponse) Size() (n int)
func (*MsgDeployResponse) String ¶
func (m *MsgDeployResponse) String() string
func (*MsgDeployResponse) Unmarshal ¶
func (m *MsgDeployResponse) Unmarshal(dAtA []byte) error
func (*MsgDeployResponse) XXX_DiscardUnknown ¶
func (m *MsgDeployResponse) XXX_DiscardUnknown()
func (*MsgDeployResponse) XXX_Marshal ¶
func (m *MsgDeployResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeployResponse) XXX_Merge ¶
func (m *MsgDeployResponse) XXX_Merge(src proto.Message)
func (*MsgDeployResponse) XXX_Size ¶
func (m *MsgDeployResponse) XXX_Size() int
func (*MsgDeployResponse) XXX_Unmarshal ¶
func (m *MsgDeployResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { Call(context.Context, *MsgCall) (*MsgCallResponse, error) Deploy(context.Context, *MsgDeploy) (*MsgDeployResponse, error) }
MsgServer is the server API for Msg service.
type ParamSubspace ¶
type ParamSubspace interface { Get(ctx sdk.Context, key []byte, ptr interface{}) Set(ctx sdk.Context, key []byte, param interface{}) }
ParamSubspace defines the expected Subspace interface for parameters (noalias)
type Params ¶
type Params struct {
GasRate uint64 `json:"gas_rate"`
}
Params defines the parameters for the cvm module.
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs implements the ParamSet interface and returns all the key/value pairs pairs of cvm module's parameters.
type QueryAbiRequest ¶
type QueryAbiRequest struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"`
}
func (*QueryAbiRequest) Descriptor ¶
func (*QueryAbiRequest) Descriptor() ([]byte, []int)
func (*QueryAbiRequest) GetAddress ¶
func (m *QueryAbiRequest) GetAddress() string
func (*QueryAbiRequest) Marshal ¶
func (m *QueryAbiRequest) Marshal() (dAtA []byte, err error)
func (*QueryAbiRequest) MarshalToSizedBuffer ¶
func (m *QueryAbiRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAbiRequest) ProtoMessage ¶
func (*QueryAbiRequest) ProtoMessage()
func (*QueryAbiRequest) Reset ¶
func (m *QueryAbiRequest) Reset()
func (*QueryAbiRequest) Size ¶
func (m *QueryAbiRequest) Size() (n int)
func (*QueryAbiRequest) String ¶
func (m *QueryAbiRequest) String() string
func (*QueryAbiRequest) Unmarshal ¶
func (m *QueryAbiRequest) Unmarshal(dAtA []byte) error
func (*QueryAbiRequest) XXX_DiscardUnknown ¶
func (m *QueryAbiRequest) XXX_DiscardUnknown()
func (*QueryAbiRequest) XXX_Marshal ¶
func (m *QueryAbiRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAbiRequest) XXX_Merge ¶
func (m *QueryAbiRequest) XXX_Merge(src proto.Message)
func (*QueryAbiRequest) XXX_Size ¶
func (m *QueryAbiRequest) XXX_Size() int
func (*QueryAbiRequest) XXX_Unmarshal ¶
func (m *QueryAbiRequest) XXX_Unmarshal(b []byte) error
type QueryAbiResponse ¶
type QueryAbiResponse struct {
Abi string `protobuf:"bytes,1,opt,name=abi,proto3" json:"abi,omitempty" yaml:"abi"`
}
func (*QueryAbiResponse) Descriptor ¶
func (*QueryAbiResponse) Descriptor() ([]byte, []int)
func (*QueryAbiResponse) GetAbi ¶
func (m *QueryAbiResponse) GetAbi() string
func (*QueryAbiResponse) Marshal ¶
func (m *QueryAbiResponse) Marshal() (dAtA []byte, err error)
func (*QueryAbiResponse) MarshalToSizedBuffer ¶
func (m *QueryAbiResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAbiResponse) ProtoMessage ¶
func (*QueryAbiResponse) ProtoMessage()
func (*QueryAbiResponse) Reset ¶
func (m *QueryAbiResponse) Reset()
func (*QueryAbiResponse) Size ¶
func (m *QueryAbiResponse) Size() (n int)
func (*QueryAbiResponse) String ¶
func (m *QueryAbiResponse) String() string
func (*QueryAbiResponse) Unmarshal ¶
func (m *QueryAbiResponse) Unmarshal(dAtA []byte) error
func (*QueryAbiResponse) XXX_DiscardUnknown ¶
func (m *QueryAbiResponse) XXX_DiscardUnknown()
func (*QueryAbiResponse) XXX_Marshal ¶
func (m *QueryAbiResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAbiResponse) XXX_Merge ¶
func (m *QueryAbiResponse) XXX_Merge(src proto.Message)
func (*QueryAbiResponse) XXX_Size ¶
func (m *QueryAbiResponse) XXX_Size() int
func (*QueryAbiResponse) XXX_Unmarshal ¶
func (m *QueryAbiResponse) XXX_Unmarshal(b []byte) error
type QueryAccountRequest ¶
type QueryAccountRequest struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"`
}
func (*QueryAccountRequest) Descriptor ¶
func (*QueryAccountRequest) Descriptor() ([]byte, []int)
func (*QueryAccountRequest) GetAddress ¶
func (m *QueryAccountRequest) GetAddress() string
func (*QueryAccountRequest) Marshal ¶
func (m *QueryAccountRequest) Marshal() (dAtA []byte, err error)
func (*QueryAccountRequest) MarshalTo ¶
func (m *QueryAccountRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAccountRequest) MarshalToSizedBuffer ¶
func (m *QueryAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAccountRequest) ProtoMessage ¶
func (*QueryAccountRequest) ProtoMessage()
func (*QueryAccountRequest) Reset ¶
func (m *QueryAccountRequest) Reset()
func (*QueryAccountRequest) Size ¶
func (m *QueryAccountRequest) Size() (n int)
func (*QueryAccountRequest) String ¶
func (m *QueryAccountRequest) String() string
func (*QueryAccountRequest) Unmarshal ¶
func (m *QueryAccountRequest) Unmarshal(dAtA []byte) error
func (*QueryAccountRequest) XXX_DiscardUnknown ¶
func (m *QueryAccountRequest) XXX_DiscardUnknown()
func (*QueryAccountRequest) XXX_Marshal ¶
func (m *QueryAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAccountRequest) XXX_Merge ¶
func (m *QueryAccountRequest) XXX_Merge(src proto.Message)
func (*QueryAccountRequest) XXX_Size ¶
func (m *QueryAccountRequest) XXX_Size() int
func (*QueryAccountRequest) XXX_Unmarshal ¶
func (m *QueryAccountRequest) XXX_Unmarshal(b []byte) error
type QueryAddressMetaRequest ¶
type QueryAddressMetaRequest struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"`
}
func (*QueryAddressMetaRequest) Descriptor ¶
func (*QueryAddressMetaRequest) Descriptor() ([]byte, []int)
func (*QueryAddressMetaRequest) GetAddress ¶
func (m *QueryAddressMetaRequest) GetAddress() string
func (*QueryAddressMetaRequest) Marshal ¶
func (m *QueryAddressMetaRequest) Marshal() (dAtA []byte, err error)
func (*QueryAddressMetaRequest) MarshalTo ¶
func (m *QueryAddressMetaRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAddressMetaRequest) MarshalToSizedBuffer ¶
func (m *QueryAddressMetaRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAddressMetaRequest) ProtoMessage ¶
func (*QueryAddressMetaRequest) ProtoMessage()
func (*QueryAddressMetaRequest) Reset ¶
func (m *QueryAddressMetaRequest) Reset()
func (*QueryAddressMetaRequest) Size ¶
func (m *QueryAddressMetaRequest) Size() (n int)
func (*QueryAddressMetaRequest) String ¶
func (m *QueryAddressMetaRequest) String() string
func (*QueryAddressMetaRequest) Unmarshal ¶
func (m *QueryAddressMetaRequest) Unmarshal(dAtA []byte) error
func (*QueryAddressMetaRequest) XXX_DiscardUnknown ¶
func (m *QueryAddressMetaRequest) XXX_DiscardUnknown()
func (*QueryAddressMetaRequest) XXX_Marshal ¶
func (m *QueryAddressMetaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAddressMetaRequest) XXX_Merge ¶
func (m *QueryAddressMetaRequest) XXX_Merge(src proto.Message)
func (*QueryAddressMetaRequest) XXX_Size ¶
func (m *QueryAddressMetaRequest) XXX_Size() int
func (*QueryAddressMetaRequest) XXX_Unmarshal ¶
func (m *QueryAddressMetaRequest) XXX_Unmarshal(b []byte) error
type QueryAddressMetaResponse ¶
type QueryAddressMetaResponse struct {
MetaHash string `protobuf:"bytes,1,opt,name=meta_hash,json=metaHash,proto3" json:"meta_hash,omitempty" yaml:"metaHash"`
}
func (*QueryAddressMetaResponse) Descriptor ¶
func (*QueryAddressMetaResponse) Descriptor() ([]byte, []int)
func (*QueryAddressMetaResponse) GetMetaHash ¶
func (m *QueryAddressMetaResponse) GetMetaHash() string
func (*QueryAddressMetaResponse) Marshal ¶
func (m *QueryAddressMetaResponse) Marshal() (dAtA []byte, err error)
func (*QueryAddressMetaResponse) MarshalTo ¶
func (m *QueryAddressMetaResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAddressMetaResponse) MarshalToSizedBuffer ¶
func (m *QueryAddressMetaResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAddressMetaResponse) ProtoMessage ¶
func (*QueryAddressMetaResponse) ProtoMessage()
func (*QueryAddressMetaResponse) Reset ¶
func (m *QueryAddressMetaResponse) Reset()
func (*QueryAddressMetaResponse) Size ¶
func (m *QueryAddressMetaResponse) Size() (n int)
func (*QueryAddressMetaResponse) String ¶
func (m *QueryAddressMetaResponse) String() string
func (*QueryAddressMetaResponse) Unmarshal ¶
func (m *QueryAddressMetaResponse) Unmarshal(dAtA []byte) error
func (*QueryAddressMetaResponse) XXX_DiscardUnknown ¶
func (m *QueryAddressMetaResponse) XXX_DiscardUnknown()
func (*QueryAddressMetaResponse) XXX_Marshal ¶
func (m *QueryAddressMetaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAddressMetaResponse) XXX_Merge ¶
func (m *QueryAddressMetaResponse) XXX_Merge(src proto.Message)
func (*QueryAddressMetaResponse) XXX_Size ¶
func (m *QueryAddressMetaResponse) XXX_Size() int
func (*QueryAddressMetaResponse) XXX_Unmarshal ¶
func (m *QueryAddressMetaResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { Code(ctx context.Context, in *QueryCodeRequest, opts ...grpc.CallOption) (*QueryCodeResponse, error) Abi(ctx context.Context, in *QueryAbiRequest, opts ...grpc.CallOption) (*QueryAbiResponse, error) Storage(ctx context.Context, in *QueryStorageRequest, opts ...grpc.CallOption) (*QueryStorageResponse, error) AddressMeta(ctx context.Context, in *QueryAddressMetaRequest, opts ...grpc.CallOption) (*QueryAddressMetaResponse, error) Meta(ctx context.Context, in *QueryMetaRequest, opts ...grpc.CallOption) (*QueryMetaResponse, error) Account(ctx context.Context, in *QueryAccountRequest, opts ...grpc.CallOption) (*acm.Account, error) View(ctx context.Context, in *QueryViewRequest, opts ...grpc.CallOption) (*QueryViewResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryCodeRequest ¶
type QueryCodeRequest struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"`
}
func (*QueryCodeRequest) Descriptor ¶
func (*QueryCodeRequest) Descriptor() ([]byte, []int)
func (*QueryCodeRequest) GetAddress ¶
func (m *QueryCodeRequest) GetAddress() string
func (*QueryCodeRequest) Marshal ¶
func (m *QueryCodeRequest) Marshal() (dAtA []byte, err error)
func (*QueryCodeRequest) MarshalToSizedBuffer ¶
func (m *QueryCodeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCodeRequest) ProtoMessage ¶
func (*QueryCodeRequest) ProtoMessage()
func (*QueryCodeRequest) Reset ¶
func (m *QueryCodeRequest) Reset()
func (*QueryCodeRequest) Size ¶
func (m *QueryCodeRequest) Size() (n int)
func (*QueryCodeRequest) String ¶
func (m *QueryCodeRequest) String() string
func (*QueryCodeRequest) Unmarshal ¶
func (m *QueryCodeRequest) Unmarshal(dAtA []byte) error
func (*QueryCodeRequest) XXX_DiscardUnknown ¶
func (m *QueryCodeRequest) XXX_DiscardUnknown()
func (*QueryCodeRequest) XXX_Marshal ¶
func (m *QueryCodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCodeRequest) XXX_Merge ¶
func (m *QueryCodeRequest) XXX_Merge(src proto.Message)
func (*QueryCodeRequest) XXX_Size ¶
func (m *QueryCodeRequest) XXX_Size() int
func (*QueryCodeRequest) XXX_Unmarshal ¶
func (m *QueryCodeRequest) XXX_Unmarshal(b []byte) error
type QueryCodeResponse ¶
type QueryCodeResponse struct {
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty" yaml:"code"`
}
func (*QueryCodeResponse) Descriptor ¶
func (*QueryCodeResponse) Descriptor() ([]byte, []int)
func (*QueryCodeResponse) GetCode ¶
func (m *QueryCodeResponse) GetCode() string
func (*QueryCodeResponse) Marshal ¶
func (m *QueryCodeResponse) Marshal() (dAtA []byte, err error)
func (*QueryCodeResponse) MarshalTo ¶
func (m *QueryCodeResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCodeResponse) MarshalToSizedBuffer ¶
func (m *QueryCodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCodeResponse) ProtoMessage ¶
func (*QueryCodeResponse) ProtoMessage()
func (*QueryCodeResponse) Reset ¶
func (m *QueryCodeResponse) Reset()
func (*QueryCodeResponse) Size ¶
func (m *QueryCodeResponse) Size() (n int)
func (*QueryCodeResponse) String ¶
func (m *QueryCodeResponse) String() string
func (*QueryCodeResponse) Unmarshal ¶
func (m *QueryCodeResponse) Unmarshal(dAtA []byte) error
func (*QueryCodeResponse) XXX_DiscardUnknown ¶
func (m *QueryCodeResponse) XXX_DiscardUnknown()
func (*QueryCodeResponse) XXX_Marshal ¶
func (m *QueryCodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCodeResponse) XXX_Merge ¶
func (m *QueryCodeResponse) XXX_Merge(src proto.Message)
func (*QueryCodeResponse) XXX_Size ¶
func (m *QueryCodeResponse) XXX_Size() int
func (*QueryCodeResponse) XXX_Unmarshal ¶
func (m *QueryCodeResponse) XXX_Unmarshal(b []byte) error
type QueryMetaRequest ¶
type QueryMetaRequest struct {
Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty" yaml:"hash"`
}
func (*QueryMetaRequest) Descriptor ¶
func (*QueryMetaRequest) Descriptor() ([]byte, []int)
func (*QueryMetaRequest) GetHash ¶
func (m *QueryMetaRequest) GetHash() string
func (*QueryMetaRequest) Marshal ¶
func (m *QueryMetaRequest) Marshal() (dAtA []byte, err error)
func (*QueryMetaRequest) MarshalToSizedBuffer ¶
func (m *QueryMetaRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryMetaRequest) ProtoMessage ¶
func (*QueryMetaRequest) ProtoMessage()
func (*QueryMetaRequest) Reset ¶
func (m *QueryMetaRequest) Reset()
func (*QueryMetaRequest) Size ¶
func (m *QueryMetaRequest) Size() (n int)
func (*QueryMetaRequest) String ¶
func (m *QueryMetaRequest) String() string
func (*QueryMetaRequest) Unmarshal ¶
func (m *QueryMetaRequest) Unmarshal(dAtA []byte) error
func (*QueryMetaRequest) XXX_DiscardUnknown ¶
func (m *QueryMetaRequest) XXX_DiscardUnknown()
func (*QueryMetaRequest) XXX_Marshal ¶
func (m *QueryMetaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryMetaRequest) XXX_Merge ¶
func (m *QueryMetaRequest) XXX_Merge(src proto.Message)
func (*QueryMetaRequest) XXX_Size ¶
func (m *QueryMetaRequest) XXX_Size() int
func (*QueryMetaRequest) XXX_Unmarshal ¶
func (m *QueryMetaRequest) XXX_Unmarshal(b []byte) error
type QueryMetaResponse ¶
type QueryMetaResponse struct {
Meta string `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty" yaml:"meta"`
}
func (*QueryMetaResponse) Descriptor ¶
func (*QueryMetaResponse) Descriptor() ([]byte, []int)
func (*QueryMetaResponse) GetMeta ¶
func (m *QueryMetaResponse) GetMeta() string
func (*QueryMetaResponse) Marshal ¶
func (m *QueryMetaResponse) Marshal() (dAtA []byte, err error)
func (*QueryMetaResponse) MarshalTo ¶
func (m *QueryMetaResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryMetaResponse) MarshalToSizedBuffer ¶
func (m *QueryMetaResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryMetaResponse) ProtoMessage ¶
func (*QueryMetaResponse) ProtoMessage()
func (*QueryMetaResponse) Reset ¶
func (m *QueryMetaResponse) Reset()
func (*QueryMetaResponse) Size ¶
func (m *QueryMetaResponse) Size() (n int)
func (*QueryMetaResponse) String ¶
func (m *QueryMetaResponse) String() string
func (*QueryMetaResponse) Unmarshal ¶
func (m *QueryMetaResponse) Unmarshal(dAtA []byte) error
func (*QueryMetaResponse) XXX_DiscardUnknown ¶
func (m *QueryMetaResponse) XXX_DiscardUnknown()
func (*QueryMetaResponse) XXX_Marshal ¶
func (m *QueryMetaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryMetaResponse) XXX_Merge ¶
func (m *QueryMetaResponse) XXX_Merge(src proto.Message)
func (*QueryMetaResponse) XXX_Size ¶
func (m *QueryMetaResponse) XXX_Size() int
func (*QueryMetaResponse) XXX_Unmarshal ¶
func (m *QueryMetaResponse) XXX_Unmarshal(b []byte) error
type QueryResAbi ¶
type QueryResAbi struct {
Abi []byte `json:"abi"`
}
QueryResAbi is the query result payload for a contract code ABI query.
type QueryResAddrMeta ¶
type QueryResAddrMeta struct {
Metahash string `json:"metahash"`
}
QueryResAddrMeta is the query result payload for a contract address meta query.
func (QueryResAddrMeta) String ¶
func (q QueryResAddrMeta) String() string
String implements fmt.Stringer.
type QueryResCode ¶
QueryResCode is the query result payload for a contract code query.
type QueryResMeta ¶
type QueryResMeta struct {
Meta string `json:"meta"`
}
QueryResMeta is the query result payload for a contract code ABI query.
type QueryResStorage ¶
type QueryResStorage struct {
Value []byte `json:"value"`
}
QueryResStorage is the query result payload for a storage query.
func (QueryResStorage) String ¶
func (q QueryResStorage) String() string
String implements fmt.Stringer.
type QueryResView ¶
type QueryResView struct {
Ret []byte `json:"ret"`
}
QueryResView is the query result payload for a storage query.
type QueryServer ¶
type QueryServer interface { Code(context.Context, *QueryCodeRequest) (*QueryCodeResponse, error) Abi(context.Context, *QueryAbiRequest) (*QueryAbiResponse, error) Storage(context.Context, *QueryStorageRequest) (*QueryStorageResponse, error) AddressMeta(context.Context, *QueryAddressMetaRequest) (*QueryAddressMetaResponse, error) Meta(context.Context, *QueryMetaRequest) (*QueryMetaResponse, error) Account(context.Context, *QueryAccountRequest) (*acm.Account, error) View(context.Context, *QueryViewRequest) (*QueryViewResponse, error) }
QueryServer is the server API for Query service.
type QueryStorageRequest ¶
type QueryStorageRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" yaml:"address"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty" yaml:"key"` }
func (*QueryStorageRequest) Descriptor ¶
func (*QueryStorageRequest) Descriptor() ([]byte, []int)
func (*QueryStorageRequest) GetAddress ¶
func (m *QueryStorageRequest) GetAddress() string
func (*QueryStorageRequest) GetKey ¶
func (m *QueryStorageRequest) GetKey() string
func (*QueryStorageRequest) Marshal ¶
func (m *QueryStorageRequest) Marshal() (dAtA []byte, err error)
func (*QueryStorageRequest) MarshalTo ¶
func (m *QueryStorageRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryStorageRequest) MarshalToSizedBuffer ¶
func (m *QueryStorageRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryStorageRequest) ProtoMessage ¶
func (*QueryStorageRequest) ProtoMessage()
func (*QueryStorageRequest) Reset ¶
func (m *QueryStorageRequest) Reset()
func (*QueryStorageRequest) Size ¶
func (m *QueryStorageRequest) Size() (n int)
func (*QueryStorageRequest) String ¶
func (m *QueryStorageRequest) String() string
func (*QueryStorageRequest) Unmarshal ¶
func (m *QueryStorageRequest) Unmarshal(dAtA []byte) error
func (*QueryStorageRequest) XXX_DiscardUnknown ¶
func (m *QueryStorageRequest) XXX_DiscardUnknown()
func (*QueryStorageRequest) XXX_Marshal ¶
func (m *QueryStorageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryStorageRequest) XXX_Merge ¶
func (m *QueryStorageRequest) XXX_Merge(src proto.Message)
func (*QueryStorageRequest) XXX_Size ¶
func (m *QueryStorageRequest) XXX_Size() int
func (*QueryStorageRequest) XXX_Unmarshal ¶
func (m *QueryStorageRequest) XXX_Unmarshal(b []byte) error
type QueryStorageResponse ¶
type QueryStorageResponse struct {
Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty" yaml:"value"`
}
func (*QueryStorageResponse) Descriptor ¶
func (*QueryStorageResponse) Descriptor() ([]byte, []int)
func (*QueryStorageResponse) GetValue ¶
func (m *QueryStorageResponse) GetValue() []byte
func (*QueryStorageResponse) Marshal ¶
func (m *QueryStorageResponse) Marshal() (dAtA []byte, err error)
func (*QueryStorageResponse) MarshalTo ¶
func (m *QueryStorageResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryStorageResponse) MarshalToSizedBuffer ¶
func (m *QueryStorageResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryStorageResponse) ProtoMessage ¶
func (*QueryStorageResponse) ProtoMessage()
func (*QueryStorageResponse) Reset ¶
func (m *QueryStorageResponse) Reset()
func (*QueryStorageResponse) Size ¶
func (m *QueryStorageResponse) Size() (n int)
func (*QueryStorageResponse) String ¶
func (m *QueryStorageResponse) String() string
func (*QueryStorageResponse) Unmarshal ¶
func (m *QueryStorageResponse) Unmarshal(dAtA []byte) error
func (*QueryStorageResponse) XXX_DiscardUnknown ¶
func (m *QueryStorageResponse) XXX_DiscardUnknown()
func (*QueryStorageResponse) XXX_Marshal ¶
func (m *QueryStorageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryStorageResponse) XXX_Merge ¶
func (m *QueryStorageResponse) XXX_Merge(src proto.Message)
func (*QueryStorageResponse) XXX_Size ¶
func (m *QueryStorageResponse) XXX_Size() int
func (*QueryStorageResponse) XXX_Unmarshal ¶
func (m *QueryStorageResponse) XXX_Unmarshal(b []byte) error
type QueryViewRequest ¶
type QueryViewRequest struct { Caller string `protobuf:"bytes,1,opt,name=caller,proto3" json:"caller,omitempty" yaml:"caller"` Callee string `protobuf:"bytes,2,opt,name=callee,proto3" json:"callee,omitempty" yaml:"callee"` AbiSpec []byte `protobuf:"bytes,3,opt,name=abi_spec,json=abiSpec,proto3" json:"abi_spec,omitempty" yaml:"abi_spec"` FunctionName string `protobuf:"bytes,4,opt,name=function_name,json=functionName,proto3" json:"function_name,omitempty" yaml:"function_name"` Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty" yaml:"data"` }
func (*QueryViewRequest) Descriptor ¶
func (*QueryViewRequest) Descriptor() ([]byte, []int)
func (*QueryViewRequest) GetAbiSpec ¶
func (m *QueryViewRequest) GetAbiSpec() []byte
func (*QueryViewRequest) GetCallee ¶
func (m *QueryViewRequest) GetCallee() string
func (*QueryViewRequest) GetCaller ¶
func (m *QueryViewRequest) GetCaller() string
func (*QueryViewRequest) GetData ¶
func (m *QueryViewRequest) GetData() []byte
func (*QueryViewRequest) GetFunctionName ¶
func (m *QueryViewRequest) GetFunctionName() string
func (*QueryViewRequest) Marshal ¶
func (m *QueryViewRequest) Marshal() (dAtA []byte, err error)
func (*QueryViewRequest) MarshalToSizedBuffer ¶
func (m *QueryViewRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryViewRequest) ProtoMessage ¶
func (*QueryViewRequest) ProtoMessage()
func (*QueryViewRequest) Reset ¶
func (m *QueryViewRequest) Reset()
func (*QueryViewRequest) Size ¶
func (m *QueryViewRequest) Size() (n int)
func (*QueryViewRequest) String ¶
func (m *QueryViewRequest) String() string
func (*QueryViewRequest) Unmarshal ¶
func (m *QueryViewRequest) Unmarshal(dAtA []byte) error
func (*QueryViewRequest) XXX_DiscardUnknown ¶
func (m *QueryViewRequest) XXX_DiscardUnknown()
func (*QueryViewRequest) XXX_Marshal ¶
func (m *QueryViewRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryViewRequest) XXX_Merge ¶
func (m *QueryViewRequest) XXX_Merge(src proto.Message)
func (*QueryViewRequest) XXX_Size ¶
func (m *QueryViewRequest) XXX_Size() int
func (*QueryViewRequest) XXX_Unmarshal ¶
func (m *QueryViewRequest) XXX_Unmarshal(b []byte) error
type QueryViewResponse ¶
type QueryViewResponse struct {
ReturnVars []*ReturnVars `protobuf:"bytes,1,rep,name=return_vars,json=returnVars,proto3" json:"return_vars,omitempty" yaml:"return_vars"`
}
func (*QueryViewResponse) Descriptor ¶
func (*QueryViewResponse) Descriptor() ([]byte, []int)
func (*QueryViewResponse) GetReturnVars ¶
func (m *QueryViewResponse) GetReturnVars() []*ReturnVars
func (*QueryViewResponse) Marshal ¶
func (m *QueryViewResponse) Marshal() (dAtA []byte, err error)
func (*QueryViewResponse) MarshalTo ¶
func (m *QueryViewResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryViewResponse) MarshalToSizedBuffer ¶
func (m *QueryViewResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryViewResponse) ProtoMessage ¶
func (*QueryViewResponse) ProtoMessage()
func (*QueryViewResponse) Reset ¶
func (m *QueryViewResponse) Reset()
func (*QueryViewResponse) Size ¶
func (m *QueryViewResponse) Size() (n int)
func (*QueryViewResponse) String ¶
func (m *QueryViewResponse) String() string
func (*QueryViewResponse) Unmarshal ¶
func (m *QueryViewResponse) Unmarshal(dAtA []byte) error
func (*QueryViewResponse) XXX_DiscardUnknown ¶
func (m *QueryViewResponse) XXX_DiscardUnknown()
func (*QueryViewResponse) XXX_Marshal ¶
func (m *QueryViewResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryViewResponse) XXX_Merge ¶
func (m *QueryViewResponse) XXX_Merge(src proto.Message)
func (*QueryViewResponse) XXX_Size ¶
func (m *QueryViewResponse) XXX_Size() int
func (*QueryViewResponse) XXX_Unmarshal ¶
func (m *QueryViewResponse) XXX_Unmarshal(b []byte) error
type ReturnVars ¶
type ReturnVars struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" yaml:"name"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty" yaml:"value"` }
func (*ReturnVars) Descriptor ¶
func (*ReturnVars) Descriptor() ([]byte, []int)
func (*ReturnVars) GetName ¶
func (m *ReturnVars) GetName() string
func (*ReturnVars) GetValue ¶
func (m *ReturnVars) GetValue() string
func (*ReturnVars) Marshal ¶
func (m *ReturnVars) Marshal() (dAtA []byte, err error)
func (*ReturnVars) MarshalToSizedBuffer ¶
func (m *ReturnVars) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ReturnVars) ProtoMessage ¶
func (*ReturnVars) ProtoMessage()
func (*ReturnVars) Reset ¶
func (m *ReturnVars) Reset()
func (*ReturnVars) Size ¶
func (m *ReturnVars) Size() (n int)
func (*ReturnVars) String ¶
func (m *ReturnVars) String() string
func (*ReturnVars) Unmarshal ¶
func (m *ReturnVars) Unmarshal(dAtA []byte) error
func (*ReturnVars) XXX_DiscardUnknown ¶
func (m *ReturnVars) XXX_DiscardUnknown()
func (*ReturnVars) XXX_Marshal ¶
func (m *ReturnVars) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReturnVars) XXX_Merge ¶
func (m *ReturnVars) XXX_Merge(src proto.Message)
func (*ReturnVars) XXX_Size ¶
func (m *ReturnVars) XXX_Size() int
func (*ReturnVars) XXX_Unmarshal ¶
func (m *ReturnVars) XXX_Unmarshal(b []byte) error
type StakingKeeper ¶
StakingKeeper defines the expected staking keeper
type Storage ¶
type Storage struct { Key github_com_hyperledger_burrow_binary.Word256 `protobuf:"bytes,1,opt,name=key,proto3,customtype=github.com/hyperledger/burrow/binary.Word256" json:"key" yaml:"key"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty" yaml:"value"` }
func (*Storage) Descriptor ¶
func (*Storage) MarshalToSizedBuffer ¶
func (*Storage) ProtoMessage ¶
func (*Storage) ProtoMessage()
func (*Storage) XXX_DiscardUnknown ¶
func (m *Storage) XXX_DiscardUnknown()
func (*Storage) XXX_Marshal ¶
func (*Storage) XXX_MessageName ¶
func (*Storage) XXX_Unmarshal ¶
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) Call ¶
func (*UnimplementedMsgServer) Call(ctx context.Context, req *MsgCall) (*MsgCallResponse, error)
func (*UnimplementedMsgServer) Deploy ¶
func (*UnimplementedMsgServer) Deploy(ctx context.Context, req *MsgDeploy) (*MsgDeployResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Abi ¶
func (*UnimplementedQueryServer) Abi(ctx context.Context, req *QueryAbiRequest) (*QueryAbiResponse, error)
func (*UnimplementedQueryServer) Account ¶
func (*UnimplementedQueryServer) Account(ctx context.Context, req *QueryAccountRequest) (*acm.Account, error)
func (*UnimplementedQueryServer) AddressMeta ¶
func (*UnimplementedQueryServer) AddressMeta(ctx context.Context, req *QueryAddressMetaRequest) (*QueryAddressMetaResponse, error)
func (*UnimplementedQueryServer) Code ¶
func (*UnimplementedQueryServer) Code(ctx context.Context, req *QueryCodeRequest) (*QueryCodeResponse, error)
func (*UnimplementedQueryServer) Meta ¶
func (*UnimplementedQueryServer) Meta(ctx context.Context, req *QueryMetaRequest) (*QueryMetaResponse, error)
func (*UnimplementedQueryServer) Storage ¶
func (*UnimplementedQueryServer) Storage(ctx context.Context, req *QueryStorageRequest) (*QueryStorageResponse, error)
func (*UnimplementedQueryServer) View ¶
func (*UnimplementedQueryServer) View(ctx context.Context, req *QueryViewRequest) (*QueryViewResponse, error)