v3types

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2023 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

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) MarshalTo

func (m *V3GenesisState) MarshalTo(dAtA []byte) (int, 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 NewParams

func NewParams(
	enableErc20 bool,
	enableEVMHook bool,
) V3Params

NewParams creates a new Params object

func (*V3Params) Descriptor

func (*V3Params) Descriptor() ([]byte, []int)

func (*V3Params) GetEnableEVMHook

func (m *V3Params) GetEnableEVMHook() bool

func (*V3Params) GetEnableErc20

func (m *V3Params) GetEnableErc20() bool

func (*V3Params) Marshal

func (m *V3Params) Marshal() (dAtA []byte, err error)

func (*V3Params) MarshalTo

func (m *V3Params) MarshalTo(dAtA []byte) (int, error)

func (*V3Params) MarshalToSizedBuffer

func (m *V3Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*V3Params) ParamSetPairs

func (p *V3Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs returns the parameter set pairs.

func (*V3Params) ProtoMessage

func (*V3Params) ProtoMessage()

func (*V3Params) Reset

func (m *V3Params) Reset()

func (*V3Params) Size

func (m *V3Params) Size() (n int)

func (*V3Params) String

func (m *V3Params) String() string

func (*V3Params) Unmarshal

func (m *V3Params) Unmarshal(dAtA []byte) error

func (V3Params) Validate

func (p V3Params) Validate() error

func (*V3Params) XXX_DiscardUnknown

func (m *V3Params) XXX_DiscardUnknown()

func (*V3Params) XXX_Marshal

func (m *V3Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*V3Params) XXX_Merge

func (m *V3Params) XXX_Merge(src proto.Message)

func (*V3Params) XXX_Size

func (m *V3Params) XXX_Size() int

func (*V3Params) XXX_Unmarshal

func (m *V3Params) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL