Documentation
¶
Index ¶
- Variables
- func ParamKeyTable() paramtypes.KeyTable
- type V3GenesisState
- func (*V3GenesisState) Descriptor() ([]byte, []int)
- func (m *V3GenesisState) GetTokenPairs() []types.TokenPair
- func (m *V3GenesisState) GetV3Params() V3Params
- func (m *V3GenesisState) Marshal() (dAtA []byte, err error)
- func (m *V3GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *V3GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*V3GenesisState) ProtoMessage()
- func (m *V3GenesisState) Reset()
- func (m *V3GenesisState) Size() (n int)
- func (m *V3GenesisState) String() string
- func (m *V3GenesisState) Unmarshal(dAtA []byte) error
- func (m *V3GenesisState) XXX_DiscardUnknown()
- func (m *V3GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *V3GenesisState) XXX_Merge(src proto.Message)
- func (m *V3GenesisState) XXX_Size() int
- func (m *V3GenesisState) XXX_Unmarshal(b []byte) error
- type V3Params
- func (*V3Params) Descriptor() ([]byte, []int)
- func (m *V3Params) GetEnableEVMHook() bool
- func (m *V3Params) GetEnableErc20() bool
- func (m *V3Params) Marshal() (dAtA []byte, err error)
- func (m *V3Params) MarshalTo(dAtA []byte) (int, error)
- func (m *V3Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *V3Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*V3Params) ProtoMessage()
- func (m *V3Params) Reset()
- func (m *V3Params) Size() (n int)
- func (m *V3Params) String() string
- func (m *V3Params) Unmarshal(dAtA []byte) error
- func (p V3Params) Validate() error
- func (m *V3Params) XXX_DiscardUnknown()
- func (m *V3Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *V3Params) XXX_Merge(src proto.Message)
- func (m *V3Params) XXX_Size() int
- func (m *V3Params) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
View Source
var ( DefaultErc20 = true DefaultEVMHook = true )
View Source
var ( ParamStoreKeyEnableErc20 = []byte("EnableErc20") ParamStoreKeyEnableEVMHook = []byte("EnableEVMHook") )
Parameter store key
Functions ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable returns the parameter key table.
Types ¶
type V3GenesisState ¶
type V3GenesisState struct {
// V3Params are the erc20 module parameters at genesis
V3Params V3Params `protobuf:"bytes,1,opt,name=V3Params,proto3" json:"V3Params"`
// token_pairs is a slice of the registered token pairs at genesis
TokenPairs []types.TokenPair `protobuf:"bytes,2,rep,name=token_pairs,json=tokenPairs,proto3" json:"token_pairs"`
}
V3GenesisState defines the module's genesis state.
func (*V3GenesisState) Descriptor ¶
func (*V3GenesisState) Descriptor() ([]byte, []int)
func (*V3GenesisState) GetTokenPairs ¶
func (m *V3GenesisState) GetTokenPairs() []types.TokenPair
func (*V3GenesisState) GetV3Params ¶
func (m *V3GenesisState) GetV3Params() V3Params
func (*V3GenesisState) Marshal ¶
func (m *V3GenesisState) Marshal() (dAtA []byte, err error)
func (*V3GenesisState) MarshalToSizedBuffer ¶
func (m *V3GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*V3GenesisState) ProtoMessage ¶
func (*V3GenesisState) ProtoMessage()
func (*V3GenesisState) Reset ¶
func (m *V3GenesisState) Reset()
func (*V3GenesisState) Size ¶
func (m *V3GenesisState) Size() (n int)
func (*V3GenesisState) String ¶
func (m *V3GenesisState) String() string
func (*V3GenesisState) Unmarshal ¶
func (m *V3GenesisState) Unmarshal(dAtA []byte) error
func (*V3GenesisState) XXX_DiscardUnknown ¶
func (m *V3GenesisState) XXX_DiscardUnknown()
func (*V3GenesisState) XXX_Marshal ¶
func (m *V3GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*V3GenesisState) XXX_Merge ¶
func (m *V3GenesisState) XXX_Merge(src proto.Message)
func (*V3GenesisState) XXX_Size ¶
func (m *V3GenesisState) XXX_Size() int
func (*V3GenesisState) XXX_Unmarshal ¶
func (m *V3GenesisState) XXX_Unmarshal(b []byte) error
type V3Params ¶
type V3Params struct {
// enable_erc20 is the parameter to enable the conversion of Cosmos coins <--> ERC20 tokens.
EnableErc20 bool `protobuf:"varint,1,opt,name=enable_erc20,json=enableErc20,proto3" json:"enable_erc20,omitempty"`
// enable_evm_hook is the parameter to enable the EVM hook that converts an ERC20 token to a Cosmos
// Coin by transferring the Tokens through a MsgEthereumTx to the ModuleAddress Ethereum address.
EnableEVMHook bool `protobuf:"varint,2,opt,name=enable_evm_hook,json=enableEvmHook,proto3" json:"enable_evm_hook,omitempty"`
}
V3Params defines the erc20 module V3Params
func DefaultParams ¶
func DefaultParams() V3Params
func (*V3Params) Descriptor ¶
func (*V3Params) GetEnableEVMHook ¶
func (*V3Params) GetEnableErc20 ¶
func (*V3Params) MarshalToSizedBuffer ¶
func (*V3Params) ParamSetPairs ¶
func (p *V3Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs returns the parameter set pairs.
func (*V3Params) ProtoMessage ¶
func (*V3Params) ProtoMessage()
func (*V3Params) XXX_DiscardUnknown ¶
func (m *V3Params) XXX_DiscardUnknown()
func (*V3Params) XXX_Marshal ¶
func (*V3Params) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.