Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func ContractNameToContractAddressKey(contractname string) []byte
- func ContractToDenomKey(contract []byte) []byte
- func DenomToAutoContractKey(denom string) []byte
- func DenomToExternalContractKey(denom string) []byte
- func IsValidDenomToWrap(denom string) bool
- func IsValidGravityDenom(denom string) bool
- func IsValidIBCDenom(denom string) bool
- func NewConvertVouchersEvent(sender string, amount fmt.Stringer) sdk.Event
- func NewTransferTokensEvent(sender string, recipient string, amount fmt.Stringer) sdk.Event
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- 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)
- type AccountKeeper
- type BankKeeper
- type ByteString
- type CompiledContract
- type ContractByDenomRequest
- func (*ContractByDenomRequest) Descriptor() ([]byte, []int)
- func (m *ContractByDenomRequest) GetDenom() string
- func (m *ContractByDenomRequest) Marshal() (dAtA []byte, err error)
- func (m *ContractByDenomRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ContractByDenomRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ContractByDenomRequest) ProtoMessage()
- func (m *ContractByDenomRequest) Reset()
- func (m *ContractByDenomRequest) Size() (n int)
- func (m *ContractByDenomRequest) String() string
- func (m *ContractByDenomRequest) Unmarshal(dAtA []byte) error
- func (m *ContractByDenomRequest) XXX_DiscardUnknown()
- func (m *ContractByDenomRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ContractByDenomRequest) XXX_Merge(src proto.Message)
- func (m *ContractByDenomRequest) XXX_Size() int
- func (m *ContractByDenomRequest) XXX_Unmarshal(b []byte) error
- type ContractByDenomResponse
- func (*ContractByDenomResponse) Descriptor() ([]byte, []int)
- func (m *ContractByDenomResponse) GetAutoContract() string
- func (m *ContractByDenomResponse) GetContract() string
- func (m *ContractByDenomResponse) Marshal() (dAtA []byte, err error)
- func (m *ContractByDenomResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *ContractByDenomResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ContractByDenomResponse) ProtoMessage()
- func (m *ContractByDenomResponse) Reset()
- func (m *ContractByDenomResponse) Size() (n int)
- func (m *ContractByDenomResponse) String() string
- func (m *ContractByDenomResponse) Unmarshal(dAtA []byte) error
- func (m *ContractByDenomResponse) XXX_DiscardUnknown()
- func (m *ContractByDenomResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ContractByDenomResponse) XXX_Merge(src proto.Message)
- func (m *ContractByDenomResponse) XXX_Size() int
- func (m *ContractByDenomResponse) XXX_Unmarshal(b []byte) error
- type DenomByContractRequest
- func (*DenomByContractRequest) Descriptor() ([]byte, []int)
- func (m *DenomByContractRequest) GetContract() string
- func (m *DenomByContractRequest) Marshal() (dAtA []byte, err error)
- func (m *DenomByContractRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *DenomByContractRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DenomByContractRequest) ProtoMessage()
- func (m *DenomByContractRequest) Reset()
- func (m *DenomByContractRequest) Size() (n int)
- func (m *DenomByContractRequest) String() string
- func (m *DenomByContractRequest) Unmarshal(dAtA []byte) error
- func (m *DenomByContractRequest) XXX_DiscardUnknown()
- func (m *DenomByContractRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DenomByContractRequest) XXX_Merge(src proto.Message)
- func (m *DenomByContractRequest) XXX_Size() int
- func (m *DenomByContractRequest) XXX_Unmarshal(b []byte) error
- type DenomByContractResponse
- func (*DenomByContractResponse) Descriptor() ([]byte, []int)
- func (m *DenomByContractResponse) GetDenom() string
- func (m *DenomByContractResponse) Marshal() (dAtA []byte, err error)
- func (m *DenomByContractResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *DenomByContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DenomByContractResponse) ProtoMessage()
- func (m *DenomByContractResponse) Reset()
- func (m *DenomByContractResponse) Size() (n int)
- func (m *DenomByContractResponse) String() string
- func (m *DenomByContractResponse) Unmarshal(dAtA []byte) error
- func (m *DenomByContractResponse) XXX_DiscardUnknown()
- func (m *DenomByContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DenomByContractResponse) XXX_Merge(src proto.Message)
- func (m *DenomByContractResponse) XXX_Size() int
- func (m *DenomByContractResponse) XXX_Unmarshal(b []byte) error
- type DistributionKeeper
- type DummyTracer
- func (dt DummyTracer) CaptureEnd(output []byte, gasUsed uint64, t time.Duration, err error)
- func (dt DummyTracer) CaptureFault(env *vm.EVM, pc uint64, op vm.OpCode, gas, cost uint64, scope *vm.ScopeContext, ...)
- func (dt DummyTracer) CaptureStart(env *vm.EVM, from common.Address, to common.Address, create bool, input []byte, ...)
- func (dt DummyTracer) CaptureState(env *vm.EVM, pc uint64, op vm.OpCode, gas, cost uint64, scope *vm.ScopeContext, ...)
- type EvmLogHandler
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetAutoContracts() []TokenMapping
- func (m *GenesisState) GetExternalContracts() []TokenMapping
- func (m *GenesisState) GetParams() Params
- 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 (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type GravityKeeper
- type MsgClient
- type MsgConvertVouchers
- func (*MsgConvertVouchers) Descriptor() ([]byte, []int)
- func (m *MsgConvertVouchers) GetAddress() string
- func (m *MsgConvertVouchers) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins
- func (msg *MsgConvertVouchers) GetSignBytes() []byte
- func (msg *MsgConvertVouchers) GetSigners() []sdk.AccAddress
- func (m *MsgConvertVouchers) Marshal() (dAtA []byte, err error)
- func (m *MsgConvertVouchers) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgConvertVouchers) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgConvertVouchers) ProtoMessage()
- func (m *MsgConvertVouchers) Reset()
- func (msg MsgConvertVouchers) Route() string
- func (m *MsgConvertVouchers) Size() (n int)
- func (m *MsgConvertVouchers) String() string
- func (msg MsgConvertVouchers) Type() string
- func (m *MsgConvertVouchers) Unmarshal(dAtA []byte) error
- func (msg *MsgConvertVouchers) ValidateBasic() error
- func (m *MsgConvertVouchers) XXX_DiscardUnknown()
- func (m *MsgConvertVouchers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgConvertVouchers) XXX_Merge(src proto.Message)
- func (m *MsgConvertVouchers) XXX_Size() int
- func (m *MsgConvertVouchers) XXX_Unmarshal(b []byte) error
- type MsgConvertVouchersResponse
- func (*MsgConvertVouchersResponse) Descriptor() ([]byte, []int)
- func (m *MsgConvertVouchersResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgConvertVouchersResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgConvertVouchersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgConvertVouchersResponse) ProtoMessage()
- func (m *MsgConvertVouchersResponse) Reset()
- func (m *MsgConvertVouchersResponse) Size() (n int)
- func (m *MsgConvertVouchersResponse) String() string
- func (m *MsgConvertVouchersResponse) Unmarshal(dAtA []byte) error
- func (m *MsgConvertVouchersResponse) XXX_DiscardUnknown()
- func (m *MsgConvertVouchersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgConvertVouchersResponse) XXX_Merge(src proto.Message)
- func (m *MsgConvertVouchersResponse) XXX_Size() int
- func (m *MsgConvertVouchersResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgTransferTokens
- func (*MsgTransferTokens) Descriptor() ([]byte, []int)
- func (m *MsgTransferTokens) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgTransferTokens) GetFrom() string
- func (msg *MsgTransferTokens) GetSignBytes() []byte
- func (msg *MsgTransferTokens) GetSigners() []sdk.AccAddress
- func (m *MsgTransferTokens) GetTo() string
- func (m *MsgTransferTokens) Marshal() (dAtA []byte, err error)
- func (m *MsgTransferTokens) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgTransferTokens) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgTransferTokens) ProtoMessage()
- func (m *MsgTransferTokens) Reset()
- func (msg MsgTransferTokens) Route() string
- func (m *MsgTransferTokens) Size() (n int)
- func (m *MsgTransferTokens) String() string
- func (msg MsgTransferTokens) Type() string
- func (m *MsgTransferTokens) Unmarshal(dAtA []byte) error
- func (msg *MsgTransferTokens) ValidateBasic() error
- func (m *MsgTransferTokens) XXX_DiscardUnknown()
- func (m *MsgTransferTokens) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgTransferTokens) XXX_Merge(src proto.Message)
- func (m *MsgTransferTokens) XXX_Size() int
- func (m *MsgTransferTokens) XXX_Unmarshal(b []byte) error
- type MsgTransferTokensResponse
- func (*MsgTransferTokensResponse) Descriptor() ([]byte, []int)
- func (m *MsgTransferTokensResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgTransferTokensResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgTransferTokensResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgTransferTokensResponse) ProtoMessage()
- func (m *MsgTransferTokensResponse) Reset()
- func (m *MsgTransferTokensResponse) Size() (n int)
- func (m *MsgTransferTokensResponse) String() string
- func (m *MsgTransferTokensResponse) Unmarshal(dAtA []byte) error
- func (m *MsgTransferTokensResponse) XXX_DiscardUnknown()
- func (m *MsgTransferTokensResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgTransferTokensResponse) XXX_Merge(src proto.Message)
- func (m *MsgTransferTokensResponse) XXX_Size() int
- func (m *MsgTransferTokensResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateTokenMapping
- func (*MsgUpdateTokenMapping) Descriptor() ([]byte, []int)
- func (m *MsgUpdateTokenMapping) GetContract() string
- func (m *MsgUpdateTokenMapping) GetDenom() string
- func (m *MsgUpdateTokenMapping) GetSender() string
- func (msg *MsgUpdateTokenMapping) GetSignBytes() []byte
- func (msg *MsgUpdateTokenMapping) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateTokenMapping) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateTokenMapping) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateTokenMapping) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateTokenMapping) ProtoMessage()
- func (m *MsgUpdateTokenMapping) Reset()
- func (msg MsgUpdateTokenMapping) Route() string
- func (m *MsgUpdateTokenMapping) Size() (n int)
- func (m *MsgUpdateTokenMapping) String() string
- func (msg MsgUpdateTokenMapping) Type() string
- func (m *MsgUpdateTokenMapping) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateTokenMapping) ValidateBasic() error
- func (m *MsgUpdateTokenMapping) XXX_DiscardUnknown()
- func (m *MsgUpdateTokenMapping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateTokenMapping) XXX_Merge(src proto.Message)
- func (m *MsgUpdateTokenMapping) XXX_Size() int
- func (m *MsgUpdateTokenMapping) XXX_Unmarshal(b []byte) error
- type MsgUpdateTokenMappingResponse
- func (*MsgUpdateTokenMappingResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateTokenMappingResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateTokenMappingResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateTokenMappingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateTokenMappingResponse) ProtoMessage()
- func (m *MsgUpdateTokenMappingResponse) Reset()
- func (m *MsgUpdateTokenMappingResponse) Size() (n int)
- func (m *MsgUpdateTokenMappingResponse) String() string
- func (m *MsgUpdateTokenMappingResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateTokenMappingResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateTokenMappingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateTokenMappingResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateTokenMappingResponse) XXX_Size() int
- func (m *MsgUpdateTokenMappingResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetEnableAutoDeployment() bool
- func (m *Params) GetIbcCroDenom() string
- func (m *Params) GetIbcTimeout() uint64
- func (m *Params) GetSeeleAdmin() string
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() 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 QueryClient
- type QueryServer
- type StakingKeeper
- type TokenMapping
- func (*TokenMapping) Descriptor() ([]byte, []int)
- func (m *TokenMapping) GetContract() string
- func (m *TokenMapping) GetDenom() string
- func (m *TokenMapping) Marshal() (dAtA []byte, err error)
- func (m *TokenMapping) MarshalTo(dAtA []byte) (int, error)
- func (m *TokenMapping) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TokenMapping) ProtoMessage()
- func (m *TokenMapping) Reset()
- func (m *TokenMapping) Size() (n int)
- func (m *TokenMapping) String() string
- func (m *TokenMapping) Unmarshal(dAtA []byte) error
- func (m *TokenMapping) XXX_DiscardUnknown()
- func (m *TokenMapping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TokenMapping) XXX_Merge(src proto.Message)
- func (m *TokenMapping) XXX_Size() int
- func (m *TokenMapping) XXX_Unmarshal(b []byte) error
- type TokenMappingChangeProposal
- func (*TokenMappingChangeProposal) Descriptor() ([]byte, []int)
- func (tcp *TokenMappingChangeProposal) GetDescription() string
- func (tcp *TokenMappingChangeProposal) GetTitle() string
- func (m *TokenMappingChangeProposal) Marshal() (dAtA []byte, err error)
- func (m *TokenMappingChangeProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *TokenMappingChangeProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (tcp *TokenMappingChangeProposal) ProposalRoute() string
- func (tcp *TokenMappingChangeProposal) ProposalType() string
- func (*TokenMappingChangeProposal) ProtoMessage()
- func (m *TokenMappingChangeProposal) Reset()
- func (m *TokenMappingChangeProposal) Size() (n int)
- func (tcp TokenMappingChangeProposal) String() string
- func (m *TokenMappingChangeProposal) Unmarshal(dAtA []byte) error
- func (tcp *TokenMappingChangeProposal) ValidateBasic() error
- func (m *TokenMappingChangeProposal) XXX_DiscardUnknown()
- func (m *TokenMappingChangeProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TokenMappingChangeProposal) XXX_Merge(src proto.Message)
- func (m *TokenMappingChangeProposal) XXX_Size() int
- func (m *TokenMappingChangeProposal) XXX_Unmarshal(b []byte) error
- type TransferKeeper
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) ConvertVouchers(ctx context.Context, req *MsgConvertVouchers) (*MsgConvertVouchersResponse, error)
- func (*UnimplementedMsgServer) TransferTokens(ctx context.Context, req *MsgTransferTokens) (*MsgTransferTokensResponse, error)
- func (*UnimplementedMsgServer) UpdateTokenMapping(ctx context.Context, req *MsgUpdateTokenMapping) (*MsgUpdateTokenMappingResponse, error)
- type UnimplementedQueryServer
Constants ¶
const ( AttributeValueCategory = ModuleName AttributeKeyRecipient = "recipient" AttributeKeySender = "sender" AttributeKeyAmount = "amount" AttributeKeyReceiver = "receiver" AttributeKeyEthereumTokenContract = "ethereum_token_contract" // events EventTypeConvertVouchers = "convert_vouchers" EventTypeTransferTokens = "transfer_tokens" EventTypeEthereumSendToCosmosHandled = "ethereum_send_to_cosmos_handled" )
const ( // ModuleName defines the module name ModuleName = "seele" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey is the message route for slashing RouterKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_seele" )
const ( TypeMsgConvertVouchers = "ConvertVouchers" TypeMsgTransferTokens = "TransferTokens" TypeMsgUpdateTokenMapping = "UpdateTokenMapping" )
const DefaultIndex uint64 = 1
DefaultIndex is the default capability global index
const EVMModuleName = "seele-evm"
const IbcCroDenomDefaultValue = "ibc/6B5A664BF0AF4F71B2F0BAA33141E2F1321242FBD5D19762F541EC971ACB0865"
const IbcTimeoutDefaultValue = uint64(86400000000000) // 1 day
const (
// ProposalTypeTokenMappingChange defines the type for a TokenMappingChangeProposal
ProposalTypeTokenMappingChange = "TokenMappingChange"
)
Variables ¶
var ( ErrIbcCroDenomEmpty = sdkerrors.Register(ModuleName, codeErrIbcCroDenomEmpty, "ibc seele denom is not set") ErrIbcCroDenomInvalid = sdkerrors.Register(ModuleName, codeErrIbcCroDenomInvalid, "ibc seele denom is invalid") ErrContractAddressInvalid = sdkerrors.Register(ModuleName, codeErrContractAddressInvalid, "contract address invalid") )
x/seele module sentinel 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 ( KeyPrefixDenomToExternalContract = []byte{prefixDenomToExternalContract} KeyPrefixDenomToAutoContract = []byte{prefixDenomToAutoContract} KeyPrefixContractToDenom = []byte{prefixContractToDenom} KeyPrefixContractNameToContractAddress = []byte{prefixContractNameToContractAddress} )
KVStore key prefixes
var ( // KeyIbcCroDenom is store's key for the IBC Cro denomination KeyIbcCroDenom = []byte("IbcCroDenom") // KeyIbcTimeout is store's key for the IBC Timeout KeyIbcTimeout = []byte("KeyIbcTimeout") // KeySeeleAdmin is store's key for the admin address KeySeeleAdmin = []byte("KeySeeleAdmin") // KeyEnableAutoDeployment is store's key for the EnableAutoDeployment KeyEnableAutoDeployment = []byte("KeyEnableAutoDeployment") )
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 ( ErrInvalidLengthSeele = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowSeele = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupSeele = 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 = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry())
)
Functions ¶
func ContractNameToContractAddressKey ¶
ContractNameToContractAddressKey defines the store key for contractname to auto contract address mapping
func ContractToDenomKey ¶
ContractToDenomKey defines the store key for contract to denom reverse index
func DenomToAutoContractKey ¶
DenomToAutoContractKey defines the store key for denom to auto contract mapping
func DenomToExternalContractKey ¶
DenomToExternalContractKey defines the store key for denom to contract mapping
func IsValidDenomToWrap ¶
IsValidDenomToWrap returns if it's ok to wrap the native denom in erc20 Currently only supports ibc and gravity denom
func IsValidGravityDenom ¶
IsValidGravityDenom returns if denom is a valid gravity denom
func IsValidIBCDenom ¶
IsValidIBCDenom returns if denom is a valid ibc denom
func NewConvertVouchersEvent ¶
NewConvertVouchersEvent constructs a new voucher convert sdk.Event nolint: interfacer
func NewTransferTokensEvent ¶
NewTransferTokensEvent constructs a new transfer sdk.Event
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable returns the parameter key table.
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
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 {
GetModuleAccount(ctx sdk.Context, moduleName string) authtypes.ModuleAccountI
}
AccountKeeper defines the expected account keeper interface
type BankKeeper ¶
type BankKeeper interface { GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin 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 MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error SendCoins(ctx sdk.Context, senderAddr sdk.AccAddress, recipientAddr sdk.AccAddress, amt sdk.Coins) error }
BankKeeper defines the expected interface needed to retrieve account balances.
type ByteString ¶
type ByteString []byte
ByteString is a byte array that serializes to hex
func (ByteString) MarshalJSON ¶
func (s ByteString) MarshalJSON() ([]byte, error)
MarshalJSON serializes ByteArray to hex
func (*ByteString) UnmarshalJSON ¶
func (s *ByteString) UnmarshalJSON(data []byte) error
UnmarshalJSON deserializes ByteArray to hex
type CompiledContract ¶
type CompiledContract struct { ContractName string ABI abi.ABI Bin ByteString }
CompiledContract contains compiled bytecode and abi
var ( // ModuleSRC20Contract is the compiled seele erc20 contract ModuleSRC20Contract CompiledContract // SnpDelegateContract is the compiled Snp Delegate contract SnpDelegateContract CompiledContract // EVMModuleAddress is the native module address for EVM EVMModuleAddress common.Address )
type ContractByDenomRequest ¶
type ContractByDenomRequest struct {
Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}
ContractByDenomRequest is the request type of ContractByDenom call
func (*ContractByDenomRequest) Descriptor ¶
func (*ContractByDenomRequest) Descriptor() ([]byte, []int)
func (*ContractByDenomRequest) GetDenom ¶
func (m *ContractByDenomRequest) GetDenom() string
func (*ContractByDenomRequest) Marshal ¶
func (m *ContractByDenomRequest) Marshal() (dAtA []byte, err error)
func (*ContractByDenomRequest) MarshalTo ¶
func (m *ContractByDenomRequest) MarshalTo(dAtA []byte) (int, error)
func (*ContractByDenomRequest) MarshalToSizedBuffer ¶
func (m *ContractByDenomRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ContractByDenomRequest) ProtoMessage ¶
func (*ContractByDenomRequest) ProtoMessage()
func (*ContractByDenomRequest) Reset ¶
func (m *ContractByDenomRequest) Reset()
func (*ContractByDenomRequest) Size ¶
func (m *ContractByDenomRequest) Size() (n int)
func (*ContractByDenomRequest) String ¶
func (m *ContractByDenomRequest) String() string
func (*ContractByDenomRequest) Unmarshal ¶
func (m *ContractByDenomRequest) Unmarshal(dAtA []byte) error
func (*ContractByDenomRequest) XXX_DiscardUnknown ¶
func (m *ContractByDenomRequest) XXX_DiscardUnknown()
func (*ContractByDenomRequest) XXX_Marshal ¶
func (m *ContractByDenomRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ContractByDenomRequest) XXX_Merge ¶
func (m *ContractByDenomRequest) XXX_Merge(src proto.Message)
func (*ContractByDenomRequest) XXX_Size ¶
func (m *ContractByDenomRequest) XXX_Size() int
func (*ContractByDenomRequest) XXX_Unmarshal ¶
func (m *ContractByDenomRequest) XXX_Unmarshal(b []byte) error
type ContractByDenomResponse ¶
type ContractByDenomResponse struct { Contract string `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"` AutoContract string `protobuf:"bytes,2,opt,name=auto_contract,json=autoContract,proto3" json:"auto_contract,omitempty"` }
ContractByDenomRequest is the response type of ContractByDenom call
func (*ContractByDenomResponse) Descriptor ¶
func (*ContractByDenomResponse) Descriptor() ([]byte, []int)
func (*ContractByDenomResponse) GetAutoContract ¶
func (m *ContractByDenomResponse) GetAutoContract() string
func (*ContractByDenomResponse) GetContract ¶
func (m *ContractByDenomResponse) GetContract() string
func (*ContractByDenomResponse) Marshal ¶
func (m *ContractByDenomResponse) Marshal() (dAtA []byte, err error)
func (*ContractByDenomResponse) MarshalTo ¶
func (m *ContractByDenomResponse) MarshalTo(dAtA []byte) (int, error)
func (*ContractByDenomResponse) MarshalToSizedBuffer ¶
func (m *ContractByDenomResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ContractByDenomResponse) ProtoMessage ¶
func (*ContractByDenomResponse) ProtoMessage()
func (*ContractByDenomResponse) Reset ¶
func (m *ContractByDenomResponse) Reset()
func (*ContractByDenomResponse) Size ¶
func (m *ContractByDenomResponse) Size() (n int)
func (*ContractByDenomResponse) String ¶
func (m *ContractByDenomResponse) String() string
func (*ContractByDenomResponse) Unmarshal ¶
func (m *ContractByDenomResponse) Unmarshal(dAtA []byte) error
func (*ContractByDenomResponse) XXX_DiscardUnknown ¶
func (m *ContractByDenomResponse) XXX_DiscardUnknown()
func (*ContractByDenomResponse) XXX_Marshal ¶
func (m *ContractByDenomResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ContractByDenomResponse) XXX_Merge ¶
func (m *ContractByDenomResponse) XXX_Merge(src proto.Message)
func (*ContractByDenomResponse) XXX_Size ¶
func (m *ContractByDenomResponse) XXX_Size() int
func (*ContractByDenomResponse) XXX_Unmarshal ¶
func (m *ContractByDenomResponse) XXX_Unmarshal(b []byte) error
type DenomByContractRequest ¶
type DenomByContractRequest struct {
Contract string `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"`
}
DenomByContractRequest is the request type of DenomByContract call
func (*DenomByContractRequest) Descriptor ¶
func (*DenomByContractRequest) Descriptor() ([]byte, []int)
func (*DenomByContractRequest) GetContract ¶
func (m *DenomByContractRequest) GetContract() string
func (*DenomByContractRequest) Marshal ¶
func (m *DenomByContractRequest) Marshal() (dAtA []byte, err error)
func (*DenomByContractRequest) MarshalTo ¶
func (m *DenomByContractRequest) MarshalTo(dAtA []byte) (int, error)
func (*DenomByContractRequest) MarshalToSizedBuffer ¶
func (m *DenomByContractRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DenomByContractRequest) ProtoMessage ¶
func (*DenomByContractRequest) ProtoMessage()
func (*DenomByContractRequest) Reset ¶
func (m *DenomByContractRequest) Reset()
func (*DenomByContractRequest) Size ¶
func (m *DenomByContractRequest) Size() (n int)
func (*DenomByContractRequest) String ¶
func (m *DenomByContractRequest) String() string
func (*DenomByContractRequest) Unmarshal ¶
func (m *DenomByContractRequest) Unmarshal(dAtA []byte) error
func (*DenomByContractRequest) XXX_DiscardUnknown ¶
func (m *DenomByContractRequest) XXX_DiscardUnknown()
func (*DenomByContractRequest) XXX_Marshal ¶
func (m *DenomByContractRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DenomByContractRequest) XXX_Merge ¶
func (m *DenomByContractRequest) XXX_Merge(src proto.Message)
func (*DenomByContractRequest) XXX_Size ¶
func (m *DenomByContractRequest) XXX_Size() int
func (*DenomByContractRequest) XXX_Unmarshal ¶
func (m *DenomByContractRequest) XXX_Unmarshal(b []byte) error
type DenomByContractResponse ¶
type DenomByContractResponse struct {
Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}
DenomByContractResponse is the response type of DenomByContract call
func (*DenomByContractResponse) Descriptor ¶
func (*DenomByContractResponse) Descriptor() ([]byte, []int)
func (*DenomByContractResponse) GetDenom ¶
func (m *DenomByContractResponse) GetDenom() string
func (*DenomByContractResponse) Marshal ¶
func (m *DenomByContractResponse) Marshal() (dAtA []byte, err error)
func (*DenomByContractResponse) MarshalTo ¶
func (m *DenomByContractResponse) MarshalTo(dAtA []byte) (int, error)
func (*DenomByContractResponse) MarshalToSizedBuffer ¶
func (m *DenomByContractResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DenomByContractResponse) ProtoMessage ¶
func (*DenomByContractResponse) ProtoMessage()
func (*DenomByContractResponse) Reset ¶
func (m *DenomByContractResponse) Reset()
func (*DenomByContractResponse) Size ¶
func (m *DenomByContractResponse) Size() (n int)
func (*DenomByContractResponse) String ¶
func (m *DenomByContractResponse) String() string
func (*DenomByContractResponse) Unmarshal ¶
func (m *DenomByContractResponse) Unmarshal(dAtA []byte) error
func (*DenomByContractResponse) XXX_DiscardUnknown ¶
func (m *DenomByContractResponse) XXX_DiscardUnknown()
func (*DenomByContractResponse) XXX_Marshal ¶
func (m *DenomByContractResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DenomByContractResponse) XXX_Merge ¶
func (m *DenomByContractResponse) XXX_Merge(src proto.Message)
func (*DenomByContractResponse) XXX_Size ¶
func (m *DenomByContractResponse) XXX_Size() int
func (*DenomByContractResponse) XXX_Unmarshal ¶
func (m *DenomByContractResponse) XXX_Unmarshal(b []byte) error
type DistributionKeeper ¶
type DistributionKeeper interface { WithdrawDelegationRewards(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (sdk.Coins, error) WithdrawValidatorCommission(ctx sdk.Context, valAddr sdk.ValAddress) (sdk.Coins, error) }
DistributionKeeper expected distribution keeper (noalias)
type DummyTracer ¶
type DummyTracer struct{}
func NewDummyTracer ¶
func NewDummyTracer() *DummyTracer
func (DummyTracer) CaptureEnd ¶
func (DummyTracer) CaptureFault ¶
func (DummyTracer) CaptureStart ¶
func (DummyTracer) CaptureState ¶
type EvmLogHandler ¶
type EvmLogHandler interface { // Return the id of the log signature it handles EventID() common.Hash // Process the log Handle(ctx sdk.Context, contract common.Address, data []byte) error }
EvmLogHandler defines the interface for evm log handler
type GenesisState ¶
type GenesisState struct { // params defines all the paramaters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` ExternalContracts []TokenMapping `protobuf:"bytes,2,rep,name=external_contracts,json=externalContracts,proto3" json:"external_contracts"` AutoContracts []TokenMapping `protobuf:"bytes,3,rep,name=auto_contracts,json=autoContracts,proto3" json:"auto_contracts"` }
GenesisState defines the seele module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default Capability genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetAutoContracts ¶
func (m *GenesisState) GetAutoContracts() []TokenMapping
func (*GenesisState) GetExternalContracts ¶
func (m *GenesisState) GetExternalContracts() []TokenMapping
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
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 basic genesis state validation returning an error upon any failure.
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 GravityKeeper ¶
type GravityKeeper interface {
ERC20ToDenomLookup(ctx sdk.Context, tokenContract string) (bool, string)
}
GravityKeeper defines the expected gravity keeper interface
type MsgClient ¶
type MsgClient interface { // ConvertVouchers defines a method for converting ibc voucher to seele evm coins. ConvertVouchers(ctx context.Context, in *MsgConvertVouchers, opts ...grpc.CallOption) (*MsgConvertVouchersResponse, error) // TransferTokens defines a method to transfer seele evm coins to another chain through IBC TransferTokens(ctx context.Context, in *MsgTransferTokens, opts ...grpc.CallOption) (*MsgTransferTokensResponse, error) // UpdateTokenMapping defines a method to update token mapping UpdateTokenMapping(ctx context.Context, in *MsgUpdateTokenMapping, opts ...grpc.CallOption) (*MsgUpdateTokenMappingResponse, 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 MsgConvertVouchers ¶
type MsgConvertVouchers struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"` }
MsgConvertVouchers represents a message to convert ibc voucher coins to seele evm coins.
func NewMsgConvertVouchers ¶
func NewMsgConvertVouchers(address string, coins sdk.Coins) *MsgConvertVouchers
func (*MsgConvertVouchers) Descriptor ¶
func (*MsgConvertVouchers) Descriptor() ([]byte, []int)
func (*MsgConvertVouchers) GetAddress ¶
func (m *MsgConvertVouchers) GetAddress() string
func (*MsgConvertVouchers) GetCoins ¶
func (m *MsgConvertVouchers) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgConvertVouchers) GetSignBytes ¶
func (msg *MsgConvertVouchers) GetSignBytes() []byte
GetSignBytes ...
func (*MsgConvertVouchers) GetSigners ¶
func (msg *MsgConvertVouchers) GetSigners() []sdk.AccAddress
GetSigners ...
func (*MsgConvertVouchers) Marshal ¶
func (m *MsgConvertVouchers) Marshal() (dAtA []byte, err error)
func (*MsgConvertVouchers) MarshalTo ¶
func (m *MsgConvertVouchers) MarshalTo(dAtA []byte) (int, error)
func (*MsgConvertVouchers) MarshalToSizedBuffer ¶
func (m *MsgConvertVouchers) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgConvertVouchers) ProtoMessage ¶
func (*MsgConvertVouchers) ProtoMessage()
func (*MsgConvertVouchers) Reset ¶
func (m *MsgConvertVouchers) Reset()
func (*MsgConvertVouchers) Size ¶
func (m *MsgConvertVouchers) Size() (n int)
func (*MsgConvertVouchers) String ¶
func (m *MsgConvertVouchers) String() string
func (*MsgConvertVouchers) Unmarshal ¶
func (m *MsgConvertVouchers) Unmarshal(dAtA []byte) error
func (*MsgConvertVouchers) ValidateBasic ¶
func (msg *MsgConvertVouchers) ValidateBasic() error
ValidateBasic ...
func (*MsgConvertVouchers) XXX_DiscardUnknown ¶
func (m *MsgConvertVouchers) XXX_DiscardUnknown()
func (*MsgConvertVouchers) XXX_Marshal ¶
func (m *MsgConvertVouchers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgConvertVouchers) XXX_Merge ¶
func (m *MsgConvertVouchers) XXX_Merge(src proto.Message)
func (*MsgConvertVouchers) XXX_Size ¶
func (m *MsgConvertVouchers) XXX_Size() int
func (*MsgConvertVouchers) XXX_Unmarshal ¶
func (m *MsgConvertVouchers) XXX_Unmarshal(b []byte) error
type MsgConvertVouchersResponse ¶
type MsgConvertVouchersResponse struct { }
MsgConvertVouchersResponse defines the ConvertVouchers response type.
func (*MsgConvertVouchersResponse) Descriptor ¶
func (*MsgConvertVouchersResponse) Descriptor() ([]byte, []int)
func (*MsgConvertVouchersResponse) Marshal ¶
func (m *MsgConvertVouchersResponse) Marshal() (dAtA []byte, err error)
func (*MsgConvertVouchersResponse) MarshalTo ¶
func (m *MsgConvertVouchersResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgConvertVouchersResponse) MarshalToSizedBuffer ¶
func (m *MsgConvertVouchersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgConvertVouchersResponse) ProtoMessage ¶
func (*MsgConvertVouchersResponse) ProtoMessage()
func (*MsgConvertVouchersResponse) Reset ¶
func (m *MsgConvertVouchersResponse) Reset()
func (*MsgConvertVouchersResponse) Size ¶
func (m *MsgConvertVouchersResponse) Size() (n int)
func (*MsgConvertVouchersResponse) String ¶
func (m *MsgConvertVouchersResponse) String() string
func (*MsgConvertVouchersResponse) Unmarshal ¶
func (m *MsgConvertVouchersResponse) Unmarshal(dAtA []byte) error
func (*MsgConvertVouchersResponse) XXX_DiscardUnknown ¶
func (m *MsgConvertVouchersResponse) XXX_DiscardUnknown()
func (*MsgConvertVouchersResponse) XXX_Marshal ¶
func (m *MsgConvertVouchersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgConvertVouchersResponse) XXX_Merge ¶
func (m *MsgConvertVouchersResponse) XXX_Merge(src proto.Message)
func (*MsgConvertVouchersResponse) XXX_Size ¶
func (m *MsgConvertVouchersResponse) XXX_Size() int
func (*MsgConvertVouchersResponse) XXX_Unmarshal ¶
func (m *MsgConvertVouchersResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // ConvertVouchers defines a method for converting ibc voucher to seele evm coins. ConvertVouchers(context.Context, *MsgConvertVouchers) (*MsgConvertVouchersResponse, error) // TransferTokens defines a method to transfer seele evm coins to another chain through IBC TransferTokens(context.Context, *MsgTransferTokens) (*MsgTransferTokensResponse, error) // UpdateTokenMapping defines a method to update token mapping UpdateTokenMapping(context.Context, *MsgUpdateTokenMapping) (*MsgUpdateTokenMappingResponse, error) }
MsgServer is the server API for Msg service.
type MsgTransferTokens ¶
type MsgTransferTokens struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"` Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"` }
MsgTransferTokens represents a message to transfer seele evm coins through ibc.
func NewMsgTransferTokens ¶
func NewMsgTransferTokens(from string, to string, coins sdk.Coins) *MsgTransferTokens
func (*MsgTransferTokens) Descriptor ¶
func (*MsgTransferTokens) Descriptor() ([]byte, []int)
func (*MsgTransferTokens) GetCoins ¶
func (m *MsgTransferTokens) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgTransferTokens) GetFrom ¶
func (m *MsgTransferTokens) GetFrom() string
func (*MsgTransferTokens) GetSignBytes ¶
func (msg *MsgTransferTokens) GetSignBytes() []byte
GetSignBytes ...
func (*MsgTransferTokens) GetSigners ¶
func (msg *MsgTransferTokens) GetSigners() []sdk.AccAddress
GetSigners ...
func (*MsgTransferTokens) GetTo ¶
func (m *MsgTransferTokens) GetTo() string
func (*MsgTransferTokens) Marshal ¶
func (m *MsgTransferTokens) Marshal() (dAtA []byte, err error)
func (*MsgTransferTokens) MarshalTo ¶
func (m *MsgTransferTokens) MarshalTo(dAtA []byte) (int, error)
func (*MsgTransferTokens) MarshalToSizedBuffer ¶
func (m *MsgTransferTokens) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgTransferTokens) ProtoMessage ¶
func (*MsgTransferTokens) ProtoMessage()
func (*MsgTransferTokens) Reset ¶
func (m *MsgTransferTokens) Reset()
func (*MsgTransferTokens) Size ¶
func (m *MsgTransferTokens) Size() (n int)
func (*MsgTransferTokens) String ¶
func (m *MsgTransferTokens) String() string
func (*MsgTransferTokens) Unmarshal ¶
func (m *MsgTransferTokens) Unmarshal(dAtA []byte) error
func (*MsgTransferTokens) ValidateBasic ¶
func (msg *MsgTransferTokens) ValidateBasic() error
ValidateBasic ...
func (*MsgTransferTokens) XXX_DiscardUnknown ¶
func (m *MsgTransferTokens) XXX_DiscardUnknown()
func (*MsgTransferTokens) XXX_Marshal ¶
func (m *MsgTransferTokens) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgTransferTokens) XXX_Merge ¶
func (m *MsgTransferTokens) XXX_Merge(src proto.Message)
func (*MsgTransferTokens) XXX_Size ¶
func (m *MsgTransferTokens) XXX_Size() int
func (*MsgTransferTokens) XXX_Unmarshal ¶
func (m *MsgTransferTokens) XXX_Unmarshal(b []byte) error
type MsgTransferTokensResponse ¶
type MsgTransferTokensResponse struct { }
MsgTransferTokensResponse defines the TransferTokens response type.
func (*MsgTransferTokensResponse) Descriptor ¶
func (*MsgTransferTokensResponse) Descriptor() ([]byte, []int)
func (*MsgTransferTokensResponse) Marshal ¶
func (m *MsgTransferTokensResponse) Marshal() (dAtA []byte, err error)
func (*MsgTransferTokensResponse) MarshalTo ¶
func (m *MsgTransferTokensResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgTransferTokensResponse) MarshalToSizedBuffer ¶
func (m *MsgTransferTokensResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgTransferTokensResponse) ProtoMessage ¶
func (*MsgTransferTokensResponse) ProtoMessage()
func (*MsgTransferTokensResponse) Reset ¶
func (m *MsgTransferTokensResponse) Reset()
func (*MsgTransferTokensResponse) Size ¶
func (m *MsgTransferTokensResponse) Size() (n int)
func (*MsgTransferTokensResponse) String ¶
func (m *MsgTransferTokensResponse) String() string
func (*MsgTransferTokensResponse) Unmarshal ¶
func (m *MsgTransferTokensResponse) Unmarshal(dAtA []byte) error
func (*MsgTransferTokensResponse) XXX_DiscardUnknown ¶
func (m *MsgTransferTokensResponse) XXX_DiscardUnknown()
func (*MsgTransferTokensResponse) XXX_Marshal ¶
func (m *MsgTransferTokensResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgTransferTokensResponse) XXX_Merge ¶
func (m *MsgTransferTokensResponse) XXX_Merge(src proto.Message)
func (*MsgTransferTokensResponse) XXX_Size ¶
func (m *MsgTransferTokensResponse) XXX_Size() int
func (*MsgTransferTokensResponse) XXX_Unmarshal ¶
func (m *MsgTransferTokensResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateTokenMapping ¶
type MsgUpdateTokenMapping struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` Contract string `protobuf:"bytes,3,opt,name=contract,proto3" json:"contract,omitempty"` }
MsgUpdateTokenMapping defines the request type
func NewMsgUpdateTokenMapping ¶
func NewMsgUpdateTokenMapping(admin string, denom string, contract string) *MsgUpdateTokenMapping
NewMsgUpdateTokenMapping ...
func (*MsgUpdateTokenMapping) Descriptor ¶
func (*MsgUpdateTokenMapping) Descriptor() ([]byte, []int)
func (*MsgUpdateTokenMapping) GetContract ¶
func (m *MsgUpdateTokenMapping) GetContract() string
func (*MsgUpdateTokenMapping) GetDenom ¶
func (m *MsgUpdateTokenMapping) GetDenom() string
func (*MsgUpdateTokenMapping) GetSender ¶
func (m *MsgUpdateTokenMapping) GetSender() string
func (*MsgUpdateTokenMapping) GetSignBytes ¶
func (msg *MsgUpdateTokenMapping) GetSignBytes() []byte
GetSignBytes ...
func (*MsgUpdateTokenMapping) GetSigners ¶
func (msg *MsgUpdateTokenMapping) GetSigners() []sdk.AccAddress
GetSigners ...
func (*MsgUpdateTokenMapping) Marshal ¶
func (m *MsgUpdateTokenMapping) Marshal() (dAtA []byte, err error)
func (*MsgUpdateTokenMapping) MarshalTo ¶
func (m *MsgUpdateTokenMapping) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateTokenMapping) MarshalToSizedBuffer ¶
func (m *MsgUpdateTokenMapping) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateTokenMapping) ProtoMessage ¶
func (*MsgUpdateTokenMapping) ProtoMessage()
func (*MsgUpdateTokenMapping) Reset ¶
func (m *MsgUpdateTokenMapping) Reset()
func (*MsgUpdateTokenMapping) Size ¶
func (m *MsgUpdateTokenMapping) Size() (n int)
func (*MsgUpdateTokenMapping) String ¶
func (m *MsgUpdateTokenMapping) String() string
func (*MsgUpdateTokenMapping) Unmarshal ¶
func (m *MsgUpdateTokenMapping) Unmarshal(dAtA []byte) error
func (*MsgUpdateTokenMapping) ValidateBasic ¶
func (msg *MsgUpdateTokenMapping) ValidateBasic() error
ValidateBasic ...
func (*MsgUpdateTokenMapping) XXX_DiscardUnknown ¶
func (m *MsgUpdateTokenMapping) XXX_DiscardUnknown()
func (*MsgUpdateTokenMapping) XXX_Marshal ¶
func (m *MsgUpdateTokenMapping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateTokenMapping) XXX_Merge ¶
func (m *MsgUpdateTokenMapping) XXX_Merge(src proto.Message)
func (*MsgUpdateTokenMapping) XXX_Size ¶
func (m *MsgUpdateTokenMapping) XXX_Size() int
func (*MsgUpdateTokenMapping) XXX_Unmarshal ¶
func (m *MsgUpdateTokenMapping) XXX_Unmarshal(b []byte) error
type MsgUpdateTokenMappingResponse ¶
type MsgUpdateTokenMappingResponse struct { }
MsgUpdateTokenMappingResponse defines the response type
func (*MsgUpdateTokenMappingResponse) Descriptor ¶
func (*MsgUpdateTokenMappingResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateTokenMappingResponse) Marshal ¶
func (m *MsgUpdateTokenMappingResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateTokenMappingResponse) MarshalTo ¶
func (m *MsgUpdateTokenMappingResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateTokenMappingResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateTokenMappingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateTokenMappingResponse) ProtoMessage ¶
func (*MsgUpdateTokenMappingResponse) ProtoMessage()
func (*MsgUpdateTokenMappingResponse) Reset ¶
func (m *MsgUpdateTokenMappingResponse) Reset()
func (*MsgUpdateTokenMappingResponse) Size ¶
func (m *MsgUpdateTokenMappingResponse) Size() (n int)
func (*MsgUpdateTokenMappingResponse) String ¶
func (m *MsgUpdateTokenMappingResponse) String() string
func (*MsgUpdateTokenMappingResponse) Unmarshal ¶
func (m *MsgUpdateTokenMappingResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateTokenMappingResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateTokenMappingResponse) XXX_DiscardUnknown()
func (*MsgUpdateTokenMappingResponse) XXX_Marshal ¶
func (m *MsgUpdateTokenMappingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateTokenMappingResponse) XXX_Merge ¶
func (m *MsgUpdateTokenMappingResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateTokenMappingResponse) XXX_Size ¶
func (m *MsgUpdateTokenMappingResponse) XXX_Size() int
func (*MsgUpdateTokenMappingResponse) XXX_Unmarshal ¶
func (m *MsgUpdateTokenMappingResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { IbcCroDenom string `` /* 133-byte string literal not displayed */ IbcTimeout uint64 `protobuf:"varint,2,opt,name=ibc_timeout,json=ibcTimeout,proto3" json:"ibc_timeout,omitempty"` // the admin address who can update token mapping SeeleAdmin string `protobuf:"bytes,3,opt,name=seele_admin,json=SeeleAdmin,proto3" json:"seele_admin,omitempty"` EnableAutoDeployment bool `protobuf:"varint,4,opt,name=enable_auto_deployment,json=enableAutoDeployment,proto3" json:"enable_auto_deployment,omitempty"` }
Params defines the parameters for the seele module.
func DefaultParams ¶
func DefaultParams() Params
DefaultParams is the default parameter configuration for the seele module
func NewParams ¶
func NewParams(ibcCroDenom string, ibcTimeout uint64, SeeleAdmin string, enableAutoDeployment bool) Params
NewParams creates a new parameter configuration for the seele module
func (*Params) Descriptor ¶
func (*Params) GetEnableAutoDeployment ¶
func (*Params) GetIbcCroDenom ¶
func (*Params) GetIbcTimeout ¶
func (*Params) GetSeeleAdmin ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs implements params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryClient ¶
type QueryClient interface { // ContractByDenom queries contract addresses by native denom ContractByDenom(ctx context.Context, in *ContractByDenomRequest, opts ...grpc.CallOption) (*ContractByDenomResponse, error) // DenomByContract queries native denom by contract address DenomByContract(ctx context.Context, in *DenomByContractRequest, opts ...grpc.CallOption) (*DenomByContractResponse, 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 QueryServer ¶
type QueryServer interface { // ContractByDenom queries contract addresses by native denom ContractByDenom(context.Context, *ContractByDenomRequest) (*ContractByDenomResponse, error) // DenomByContract queries native denom by contract address DenomByContract(context.Context, *DenomByContractRequest) (*DenomByContractResponse, error) }
QueryServer is the server API for Query service.
type StakingKeeper ¶
type StakingKeeper interface { GetValidator(ctx sdk.Context, addr sdk.ValAddress) (validator stakingtypes.Validator, found bool) Delegate(ctx sdk.Context, delAddr sdk.AccAddress, bondAmt sdk.Int, tokenSrc stakingtypes.BondStatus, validator stakingtypes.Validator, subtractAccount bool) (newShares sdk.Dec, err error) Undelegate(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress, sharesAmount sdk.Dec) (time.Time, error) BeginRedelegation(ctx sdk.Context, delAddr sdk.AccAddress, valSrcAddr, valDstAddr sdk.ValAddress, sharesAmount sdk.Dec) (completionTime time.Time, err error) ValidateUnbondAmount(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress, amt sdk.Int) (shares sdk.Dec, err error) }
StakingKeeper defines the expected interface needed to stake/unstake.
type TokenMapping ¶
type TokenMapping struct { Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` Contract string `protobuf:"bytes,2,opt,name=contract,proto3" json:"contract,omitempty"` }
TokenMapping defines a mapping between native denom and contract
func (*TokenMapping) Descriptor ¶
func (*TokenMapping) Descriptor() ([]byte, []int)
func (*TokenMapping) GetContract ¶
func (m *TokenMapping) GetContract() string
func (*TokenMapping) GetDenom ¶
func (m *TokenMapping) GetDenom() string
func (*TokenMapping) Marshal ¶
func (m *TokenMapping) Marshal() (dAtA []byte, err error)
func (*TokenMapping) MarshalToSizedBuffer ¶
func (m *TokenMapping) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TokenMapping) ProtoMessage ¶
func (*TokenMapping) ProtoMessage()
func (*TokenMapping) Reset ¶
func (m *TokenMapping) Reset()
func (*TokenMapping) Size ¶
func (m *TokenMapping) Size() (n int)
func (*TokenMapping) String ¶
func (m *TokenMapping) String() string
func (*TokenMapping) Unmarshal ¶
func (m *TokenMapping) Unmarshal(dAtA []byte) error
func (*TokenMapping) XXX_DiscardUnknown ¶
func (m *TokenMapping) XXX_DiscardUnknown()
func (*TokenMapping) XXX_Marshal ¶
func (m *TokenMapping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TokenMapping) XXX_Merge ¶
func (m *TokenMapping) XXX_Merge(src proto.Message)
func (*TokenMapping) XXX_Size ¶
func (m *TokenMapping) XXX_Size() int
func (*TokenMapping) XXX_Unmarshal ¶
func (m *TokenMapping) XXX_Unmarshal(b []byte) error
type TokenMappingChangeProposal ¶
type TokenMappingChangeProposal struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"` Contract string `protobuf:"bytes,4,opt,name=contract,proto3" json:"contract,omitempty"` }
TokenMappingChangeProposal defines a proposal to change one token mapping.
func NewTokenMappingChangeProposal ¶
func NewTokenMappingChangeProposal(title, description, denom string, contractAddr *common.Address) *TokenMappingChangeProposal
func (*TokenMappingChangeProposal) Descriptor ¶
func (*TokenMappingChangeProposal) Descriptor() ([]byte, []int)
func (*TokenMappingChangeProposal) GetDescription ¶
func (tcp *TokenMappingChangeProposal) GetDescription() string
GetDescription returns the description of a parameter change proposal.
func (*TokenMappingChangeProposal) GetTitle ¶
func (tcp *TokenMappingChangeProposal) GetTitle() string
GetTitle returns the title of a parameter change proposal.
func (*TokenMappingChangeProposal) Marshal ¶
func (m *TokenMappingChangeProposal) Marshal() (dAtA []byte, err error)
func (*TokenMappingChangeProposal) MarshalTo ¶
func (m *TokenMappingChangeProposal) MarshalTo(dAtA []byte) (int, error)
func (*TokenMappingChangeProposal) MarshalToSizedBuffer ¶
func (m *TokenMappingChangeProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TokenMappingChangeProposal) ProposalRoute ¶
func (tcp *TokenMappingChangeProposal) ProposalRoute() string
ProposalRoute returns the routing key of a parameter change proposal.
func (*TokenMappingChangeProposal) ProposalType ¶
func (tcp *TokenMappingChangeProposal) ProposalType() string
ProposalType returns the type of a parameter change proposal.
func (*TokenMappingChangeProposal) ProtoMessage ¶
func (*TokenMappingChangeProposal) ProtoMessage()
func (*TokenMappingChangeProposal) Reset ¶
func (m *TokenMappingChangeProposal) Reset()
func (*TokenMappingChangeProposal) Size ¶
func (m *TokenMappingChangeProposal) Size() (n int)
func (TokenMappingChangeProposal) String ¶
func (tcp TokenMappingChangeProposal) String() string
String implements the Stringer interface.
func (*TokenMappingChangeProposal) Unmarshal ¶
func (m *TokenMappingChangeProposal) Unmarshal(dAtA []byte) error
func (*TokenMappingChangeProposal) ValidateBasic ¶
func (tcp *TokenMappingChangeProposal) ValidateBasic() error
ValidateBasic validates the parameter change proposal
func (*TokenMappingChangeProposal) XXX_DiscardUnknown ¶
func (m *TokenMappingChangeProposal) XXX_DiscardUnknown()
func (*TokenMappingChangeProposal) XXX_Marshal ¶
func (m *TokenMappingChangeProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TokenMappingChangeProposal) XXX_Merge ¶
func (m *TokenMappingChangeProposal) XXX_Merge(src proto.Message)
func (*TokenMappingChangeProposal) XXX_Size ¶
func (m *TokenMappingChangeProposal) XXX_Size() int
func (*TokenMappingChangeProposal) XXX_Unmarshal ¶
func (m *TokenMappingChangeProposal) XXX_Unmarshal(b []byte) error
type TransferKeeper ¶
type TransferKeeper interface { SendTransfer( ctx sdk.Context, sourcePort, sourceChannel string, token sdk.Coin, sender sdk.AccAddress, receiver string, timeoutHeight clienttypes.Height, timeoutTimestamp uint64, ) error GetDenomTrace(ctx sdk.Context, denomTraceHash tmbytes.HexBytes) (types.DenomTrace, bool) }
TransferKeeper defines the expected interface needed to transfer coin through IBC.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) ConvertVouchers ¶
func (*UnimplementedMsgServer) ConvertVouchers(ctx context.Context, req *MsgConvertVouchers) (*MsgConvertVouchersResponse, error)
func (*UnimplementedMsgServer) TransferTokens ¶
func (*UnimplementedMsgServer) TransferTokens(ctx context.Context, req *MsgTransferTokens) (*MsgTransferTokensResponse, error)
func (*UnimplementedMsgServer) UpdateTokenMapping ¶
func (*UnimplementedMsgServer) UpdateTokenMapping(ctx context.Context, req *MsgUpdateTokenMapping) (*MsgUpdateTokenMappingResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) ContractByDenom ¶
func (*UnimplementedQueryServer) ContractByDenom(ctx context.Context, req *ContractByDenomRequest) (*ContractByDenomResponse, error)
func (*UnimplementedQueryServer) DenomByContract ¶
func (*UnimplementedQueryServer) DenomByContract(ctx context.Context, req *DenomByContractRequest) (*DenomByContractResponse, error)