Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func CreateDenom(address string) string
- func CreateDenomDescription(address string) string
- func EqualMetadata(a, b banktypes.Metadata) error
- func EqualStringSlice(aliasesA, aliasesB []string) bool
- func GenRandomCoinMetadata(r *rand.Rand) banktypes.Metadata
- func GetSignersFromMsgConvertERC20V2(msg protov2.Message) ([][]byte, error)
- func NewRegisterCoinProposal(title, description string, coinMetadata banktypes.Metadata) govtypes.Content
- func NewRegisterERC20Proposal(title, description, erc20Addr string) govtypes.Content
- func NewToggleTokenConversionProposal(title, description string, token string) govtypes.Content
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(registry codectypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func SanitizeERC20Name(name string) string
- func ValidateErc20Denom(denom string) error
- type AccountKeeper
- type BankKeeper
- type ERC20BoolResponse
- type ERC20Data
- type ERC20StringResponse
- type ERC20Uint8Response
- type EVMKeeper
- type FeeMarketKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetDenomIndexes() []TokenPairDenomIndex
- func (m *GenesisState) GetErc20AddressIndexes() []TokenPairERC20AddressIndex
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetTokenPairs() []TokenPair
- 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 LogTransfer
- type MsgClient
- type MsgConvertCoin
- func (*MsgConvertCoin) Descriptor() ([]byte, []int)
- func (m *MsgConvertCoin) GetCoin() types.Coin
- func (m *MsgConvertCoin) GetReceiver() string
- func (m *MsgConvertCoin) GetSender() string
- func (m *MsgConvertCoin) Marshal() (dAtA []byte, err error)
- func (m *MsgConvertCoin) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgConvertCoin) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgConvertCoin) ProtoMessage()
- func (m *MsgConvertCoin) Reset()
- func (m *MsgConvertCoin) Size() (n int)
- func (m *MsgConvertCoin) String() string
- func (m *MsgConvertCoin) Unmarshal(dAtA []byte) error
- func (m *MsgConvertCoin) XXX_DiscardUnknown()
- func (m *MsgConvertCoin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgConvertCoin) XXX_Merge(src proto.Message)
- func (m *MsgConvertCoin) XXX_Size() int
- func (m *MsgConvertCoin) XXX_Unmarshal(b []byte) error
- type MsgConvertCoinResponse
- func (*MsgConvertCoinResponse) Descriptor() ([]byte, []int)
- func (m *MsgConvertCoinResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgConvertCoinResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgConvertCoinResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgConvertCoinResponse) ProtoMessage()
- func (m *MsgConvertCoinResponse) Reset()
- func (m *MsgConvertCoinResponse) Size() (n int)
- func (m *MsgConvertCoinResponse) String() string
- func (m *MsgConvertCoinResponse) Unmarshal(dAtA []byte) error
- func (m *MsgConvertCoinResponse) XXX_DiscardUnknown()
- func (m *MsgConvertCoinResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgConvertCoinResponse) XXX_Merge(src proto.Message)
- func (m *MsgConvertCoinResponse) XXX_Size() int
- func (m *MsgConvertCoinResponse) XXX_Unmarshal(b []byte) error
- type MsgConvertERC20
- func (*MsgConvertERC20) Descriptor() ([]byte, []int)
- func (m *MsgConvertERC20) GetContractAddress() string
- func (m *MsgConvertERC20) GetReceiver() string
- func (m *MsgConvertERC20) GetSender() string
- func (msg MsgConvertERC20) GetSigners() []sdk.AccAddress
- func (m *MsgConvertERC20) Marshal() (dAtA []byte, err error)
- func (m *MsgConvertERC20) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgConvertERC20) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgConvertERC20) ProtoMessage()
- func (m *MsgConvertERC20) Reset()
- func (m *MsgConvertERC20) Size() (n int)
- func (m *MsgConvertERC20) String() string
- func (m *MsgConvertERC20) Unmarshal(dAtA []byte) error
- func (m *MsgConvertERC20) XXX_DiscardUnknown()
- func (m *MsgConvertERC20) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgConvertERC20) XXX_Merge(src proto.Message)
- func (m *MsgConvertERC20) XXX_Size() int
- func (m *MsgConvertERC20) XXX_Unmarshal(b []byte) error
- type MsgConvertERC20Response
- func (*MsgConvertERC20Response) Descriptor() ([]byte, []int)
- func (m *MsgConvertERC20Response) Marshal() (dAtA []byte, err error)
- func (m *MsgConvertERC20Response) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgConvertERC20Response) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgConvertERC20Response) ProtoMessage()
- func (m *MsgConvertERC20Response) Reset()
- func (m *MsgConvertERC20Response) Size() (n int)
- func (m *MsgConvertERC20Response) String() string
- func (m *MsgConvertERC20Response) Unmarshal(dAtA []byte) error
- func (m *MsgConvertERC20Response) XXX_DiscardUnknown()
- func (m *MsgConvertERC20Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgConvertERC20Response) XXX_Merge(src proto.Message)
- func (m *MsgConvertERC20Response) XXX_Size() int
- func (m *MsgConvertERC20Response) XXX_Unmarshal(b []byte) error
- type MsgRegisterCoin
- func (*MsgRegisterCoin) Descriptor() ([]byte, []int)
- func (m *MsgRegisterCoin) GetAuthority() string
- func (m *MsgRegisterCoin) GetDescription() string
- func (m *MsgRegisterCoin) GetMetadata() types1.Metadata
- func (m *MsgRegisterCoin) GetTitle() string
- func (m *MsgRegisterCoin) Marshal() (dAtA []byte, err error)
- func (m *MsgRegisterCoin) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRegisterCoin) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRegisterCoin) ProtoMessage()
- func (m *MsgRegisterCoin) Reset()
- func (m *MsgRegisterCoin) Size() (n int)
- func (m *MsgRegisterCoin) String() string
- func (m *MsgRegisterCoin) Unmarshal(dAtA []byte) error
- func (m *MsgRegisterCoin) XXX_DiscardUnknown()
- func (m *MsgRegisterCoin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRegisterCoin) XXX_Merge(src proto.Message)
- func (m *MsgRegisterCoin) XXX_Size() int
- func (m *MsgRegisterCoin) XXX_Unmarshal(b []byte) error
- type MsgRegisterCoinResponse
- func (*MsgRegisterCoinResponse) Descriptor() ([]byte, []int)
- func (m *MsgRegisterCoinResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRegisterCoinResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRegisterCoinResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRegisterCoinResponse) ProtoMessage()
- func (m *MsgRegisterCoinResponse) Reset()
- func (m *MsgRegisterCoinResponse) Size() (n int)
- func (m *MsgRegisterCoinResponse) String() string
- func (m *MsgRegisterCoinResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRegisterCoinResponse) XXX_DiscardUnknown()
- func (m *MsgRegisterCoinResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRegisterCoinResponse) XXX_Merge(src proto.Message)
- func (m *MsgRegisterCoinResponse) XXX_Size() int
- func (m *MsgRegisterCoinResponse) XXX_Unmarshal(b []byte) error
- type MsgRegisterERC20
- func (*MsgRegisterERC20) Descriptor() ([]byte, []int)
- func (m *MsgRegisterERC20) GetAuthority() string
- func (m *MsgRegisterERC20) GetDescription() string
- func (m *MsgRegisterERC20) GetErc20Address() string
- func (m *MsgRegisterERC20) GetTitle() string
- func (m *MsgRegisterERC20) Marshal() (dAtA []byte, err error)
- func (m *MsgRegisterERC20) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRegisterERC20) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRegisterERC20) ProtoMessage()
- func (m *MsgRegisterERC20) Reset()
- func (m *MsgRegisterERC20) Size() (n int)
- func (m *MsgRegisterERC20) String() string
- func (m *MsgRegisterERC20) Unmarshal(dAtA []byte) error
- func (m *MsgRegisterERC20) XXX_DiscardUnknown()
- func (m *MsgRegisterERC20) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRegisterERC20) XXX_Merge(src proto.Message)
- func (m *MsgRegisterERC20) XXX_Size() int
- func (m *MsgRegisterERC20) XXX_Unmarshal(b []byte) error
- type MsgRegisterERC20Response
- func (*MsgRegisterERC20Response) Descriptor() ([]byte, []int)
- func (m *MsgRegisterERC20Response) Marshal() (dAtA []byte, err error)
- func (m *MsgRegisterERC20Response) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRegisterERC20Response) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRegisterERC20Response) ProtoMessage()
- func (m *MsgRegisterERC20Response) Reset()
- func (m *MsgRegisterERC20Response) Size() (n int)
- func (m *MsgRegisterERC20Response) String() string
- func (m *MsgRegisterERC20Response) Unmarshal(dAtA []byte) error
- func (m *MsgRegisterERC20Response) XXX_DiscardUnknown()
- func (m *MsgRegisterERC20Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRegisterERC20Response) XXX_Merge(src proto.Message)
- func (m *MsgRegisterERC20Response) XXX_Size() int
- func (m *MsgRegisterERC20Response) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgToggleTokenConversion
- func (*MsgToggleTokenConversion) Descriptor() ([]byte, []int)
- func (this *MsgToggleTokenConversion) Equal(that interface{}) bool
- func (m *MsgToggleTokenConversion) GetAuthority() string
- func (m *MsgToggleTokenConversion) GetDescription() string
- func (m *MsgToggleTokenConversion) GetTitle() string
- func (m *MsgToggleTokenConversion) GetToken() string
- func (m *MsgToggleTokenConversion) Marshal() (dAtA []byte, err error)
- func (m *MsgToggleTokenConversion) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgToggleTokenConversion) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgToggleTokenConversion) ProtoMessage()
- func (m *MsgToggleTokenConversion) Reset()
- func (m *MsgToggleTokenConversion) Size() (n int)
- func (m *MsgToggleTokenConversion) String() string
- func (m *MsgToggleTokenConversion) Unmarshal(dAtA []byte) error
- func (m *MsgToggleTokenConversion) XXX_DiscardUnknown()
- func (m *MsgToggleTokenConversion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgToggleTokenConversion) XXX_Merge(src proto.Message)
- func (m *MsgToggleTokenConversion) XXX_Size() int
- func (m *MsgToggleTokenConversion) XXX_Unmarshal(b []byte) error
- type MsgToggleTokenConversionResponse
- func (*MsgToggleTokenConversionResponse) Descriptor() ([]byte, []int)
- func (m *MsgToggleTokenConversionResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgToggleTokenConversionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgToggleTokenConversionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgToggleTokenConversionResponse) ProtoMessage()
- func (m *MsgToggleTokenConversionResponse) Reset()
- func (m *MsgToggleTokenConversionResponse) Size() (n int)
- func (m *MsgToggleTokenConversionResponse) String() string
- func (m *MsgToggleTokenConversionResponse) Unmarshal(dAtA []byte) error
- func (m *MsgToggleTokenConversionResponse) XXX_DiscardUnknown()
- func (m *MsgToggleTokenConversionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgToggleTokenConversionResponse) XXX_Merge(src proto.Message)
- func (m *MsgToggleTokenConversionResponse) XXX_Size() int
- func (m *MsgToggleTokenConversionResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetAuthority() string
- func (m *MsgUpdateParams) GetParams() Params
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type Owner
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetEnableEVMHook() bool
- func (m *Params) GetEnableErc20() bool
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *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 QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type QueryTokenPairRequest
- func (*QueryTokenPairRequest) Descriptor() ([]byte, []int)
- func (m *QueryTokenPairRequest) GetToken() string
- func (m *QueryTokenPairRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryTokenPairRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTokenPairRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTokenPairRequest) ProtoMessage()
- func (m *QueryTokenPairRequest) Reset()
- func (m *QueryTokenPairRequest) Size() (n int)
- func (m *QueryTokenPairRequest) String() string
- func (m *QueryTokenPairRequest) Unmarshal(dAtA []byte) error
- func (m *QueryTokenPairRequest) XXX_DiscardUnknown()
- func (m *QueryTokenPairRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTokenPairRequest) XXX_Merge(src proto.Message)
- func (m *QueryTokenPairRequest) XXX_Size() int
- func (m *QueryTokenPairRequest) XXX_Unmarshal(b []byte) error
- type QueryTokenPairResponse
- func (*QueryTokenPairResponse) Descriptor() ([]byte, []int)
- func (m *QueryTokenPairResponse) GetTokenPair() TokenPair
- func (m *QueryTokenPairResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryTokenPairResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTokenPairResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTokenPairResponse) ProtoMessage()
- func (m *QueryTokenPairResponse) Reset()
- func (m *QueryTokenPairResponse) Size() (n int)
- func (m *QueryTokenPairResponse) String() string
- func (m *QueryTokenPairResponse) Unmarshal(dAtA []byte) error
- func (m *QueryTokenPairResponse) XXX_DiscardUnknown()
- func (m *QueryTokenPairResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTokenPairResponse) XXX_Merge(src proto.Message)
- func (m *QueryTokenPairResponse) XXX_Size() int
- func (m *QueryTokenPairResponse) XXX_Unmarshal(b []byte) error
- type QueryTokenPairsRequest
- func (*QueryTokenPairsRequest) Descriptor() ([]byte, []int)
- func (m *QueryTokenPairsRequest) GetPagination() *query.PageRequest
- func (m *QueryTokenPairsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryTokenPairsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTokenPairsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTokenPairsRequest) ProtoMessage()
- func (m *QueryTokenPairsRequest) Reset()
- func (m *QueryTokenPairsRequest) Size() (n int)
- func (m *QueryTokenPairsRequest) String() string
- func (m *QueryTokenPairsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryTokenPairsRequest) XXX_DiscardUnknown()
- func (m *QueryTokenPairsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTokenPairsRequest) XXX_Merge(src proto.Message)
- func (m *QueryTokenPairsRequest) XXX_Size() int
- func (m *QueryTokenPairsRequest) XXX_Unmarshal(b []byte) error
- type QueryTokenPairsResponse
- func (*QueryTokenPairsResponse) Descriptor() ([]byte, []int)
- func (m *QueryTokenPairsResponse) GetPagination() *query.PageResponse
- func (m *QueryTokenPairsResponse) GetTokenPairs() []TokenPair
- func (m *QueryTokenPairsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryTokenPairsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTokenPairsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTokenPairsResponse) ProtoMessage()
- func (m *QueryTokenPairsResponse) Reset()
- func (m *QueryTokenPairsResponse) Size() (n int)
- func (m *QueryTokenPairsResponse) String() string
- func (m *QueryTokenPairsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryTokenPairsResponse) XXX_DiscardUnknown()
- func (m *QueryTokenPairsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTokenPairsResponse) XXX_Merge(src proto.Message)
- func (m *QueryTokenPairsResponse) XXX_Size() int
- func (m *QueryTokenPairsResponse) XXX_Unmarshal(b []byte) error
- type RegisterCoinProposaldeprecated
- func (*RegisterCoinProposal) Descriptor() ([]byte, []int)
- func (m *RegisterCoinProposal) GetDescription() string
- func (m *RegisterCoinProposal) GetMetadata() types.Metadata
- func (m *RegisterCoinProposal) GetTitle() string
- func (m *RegisterCoinProposal) Marshal() (dAtA []byte, err error)
- func (m *RegisterCoinProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *RegisterCoinProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RegisterCoinProposal) ProposalRoute() string
- func (*RegisterCoinProposal) ProposalType() string
- func (*RegisterCoinProposal) ProtoMessage()
- func (m *RegisterCoinProposal) Reset()
- func (m *RegisterCoinProposal) Size() (n int)
- func (m *RegisterCoinProposal) String() string
- func (m *RegisterCoinProposal) Unmarshal(dAtA []byte) error
- func (rtbp *RegisterCoinProposal) ValidateBasic() error
- func (m *RegisterCoinProposal) XXX_DiscardUnknown()
- func (m *RegisterCoinProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RegisterCoinProposal) XXX_Merge(src proto.Message)
- func (m *RegisterCoinProposal) XXX_Size() int
- func (m *RegisterCoinProposal) XXX_Unmarshal(b []byte) error
- type RegisterERC20Proposaldeprecated
- func (*RegisterERC20Proposal) Descriptor() ([]byte, []int)
- func (m *RegisterERC20Proposal) GetDescription() string
- func (m *RegisterERC20Proposal) GetErc20Address() string
- func (m *RegisterERC20Proposal) GetTitle() string
- func (m *RegisterERC20Proposal) Marshal() (dAtA []byte, err error)
- func (m *RegisterERC20Proposal) MarshalTo(dAtA []byte) (int, error)
- func (m *RegisterERC20Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RegisterERC20Proposal) ProposalRoute() string
- func (*RegisterERC20Proposal) ProposalType() string
- func (*RegisterERC20Proposal) ProtoMessage()
- func (m *RegisterERC20Proposal) Reset()
- func (m *RegisterERC20Proposal) Size() (n int)
- func (m *RegisterERC20Proposal) String() string
- func (m *RegisterERC20Proposal) Unmarshal(dAtA []byte) error
- func (rtbp *RegisterERC20Proposal) ValidateBasic() error
- func (m *RegisterERC20Proposal) XXX_DiscardUnknown()
- func (m *RegisterERC20Proposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RegisterERC20Proposal) XXX_Merge(src proto.Message)
- func (m *RegisterERC20Proposal) XXX_Size() int
- func (m *RegisterERC20Proposal) XXX_Unmarshal(b []byte) error
- type ToggleTokenConversionProposaldeprecated
- func (*ToggleTokenConversionProposal) Descriptor() ([]byte, []int)
- func (m *ToggleTokenConversionProposal) GetDescription() string
- func (m *ToggleTokenConversionProposal) GetTitle() string
- func (m *ToggleTokenConversionProposal) GetToken() string
- func (m *ToggleTokenConversionProposal) Marshal() (dAtA []byte, err error)
- func (m *ToggleTokenConversionProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *ToggleTokenConversionProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ToggleTokenConversionProposal) ProposalRoute() string
- func (*ToggleTokenConversionProposal) ProposalType() string
- func (*ToggleTokenConversionProposal) ProtoMessage()
- func (m *ToggleTokenConversionProposal) Reset()
- func (m *ToggleTokenConversionProposal) Size() (n int)
- func (m *ToggleTokenConversionProposal) String() string
- func (m *ToggleTokenConversionProposal) Unmarshal(dAtA []byte) error
- func (ttcp *ToggleTokenConversionProposal) ValidateBasic() error
- func (m *ToggleTokenConversionProposal) XXX_DiscardUnknown()
- func (m *ToggleTokenConversionProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ToggleTokenConversionProposal) XXX_Merge(src proto.Message)
- func (m *ToggleTokenConversionProposal) XXX_Size() int
- func (m *ToggleTokenConversionProposal) XXX_Unmarshal(b []byte) error
- type TokenPair
- func (*TokenPair) Descriptor() ([]byte, []int)
- func (this *TokenPair) Equal(that interface{}) bool
- func (m *TokenPair) GetContractOwner() Owner
- func (m *TokenPair) GetDenom() string
- func (tp TokenPair) GetERC20Contract() common.Address
- func (m *TokenPair) GetEnabled() bool
- func (m *TokenPair) GetErc20Address() string
- func (tp TokenPair) GetID() []byte
- func (tp TokenPair) IsNativeCoin() bool
- func (tp TokenPair) IsNativeERC20() bool
- func (m *TokenPair) Marshal() (dAtA []byte, err error)
- func (m *TokenPair) MarshalTo(dAtA []byte) (int, error)
- func (m *TokenPair) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TokenPair) ProtoMessage()
- func (m *TokenPair) Reset()
- func (m *TokenPair) Size() (n int)
- func (m *TokenPair) String() string
- func (m *TokenPair) Unmarshal(dAtA []byte) error
- func (tp TokenPair) Validate() error
- func (m *TokenPair) XXX_DiscardUnknown()
- func (m *TokenPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TokenPair) XXX_Merge(src proto.Message)
- func (m *TokenPair) XXX_Size() int
- func (m *TokenPair) XXX_Unmarshal(b []byte) error
- type TokenPairDenomIndex
- func (*TokenPairDenomIndex) Descriptor() ([]byte, []int)
- func (this *TokenPairDenomIndex) Equal(that interface{}) bool
- func (m *TokenPairDenomIndex) GetDenom() string
- func (m *TokenPairDenomIndex) GetTokenPairId() []byte
- func (m *TokenPairDenomIndex) Marshal() (dAtA []byte, err error)
- func (m *TokenPairDenomIndex) MarshalTo(dAtA []byte) (int, error)
- func (m *TokenPairDenomIndex) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TokenPairDenomIndex) ProtoMessage()
- func (m *TokenPairDenomIndex) Reset()
- func (m *TokenPairDenomIndex) Size() (n int)
- func (m *TokenPairDenomIndex) String() string
- func (m *TokenPairDenomIndex) Unmarshal(dAtA []byte) error
- func (m *TokenPairDenomIndex) XXX_DiscardUnknown()
- func (m *TokenPairDenomIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TokenPairDenomIndex) XXX_Merge(src proto.Message)
- func (m *TokenPairDenomIndex) XXX_Size() int
- func (m *TokenPairDenomIndex) XXX_Unmarshal(b []byte) error
- type TokenPairERC20AddressIndex
- func (*TokenPairERC20AddressIndex) Descriptor() ([]byte, []int)
- func (this *TokenPairERC20AddressIndex) Equal(that interface{}) bool
- func (m *TokenPairERC20AddressIndex) GetErc20Address() []byte
- func (m *TokenPairERC20AddressIndex) GetTokenPairId() []byte
- func (m *TokenPairERC20AddressIndex) Marshal() (dAtA []byte, err error)
- func (m *TokenPairERC20AddressIndex) MarshalTo(dAtA []byte) (int, error)
- func (m *TokenPairERC20AddressIndex) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TokenPairERC20AddressIndex) ProtoMessage()
- func (m *TokenPairERC20AddressIndex) Reset()
- func (m *TokenPairERC20AddressIndex) Size() (n int)
- func (m *TokenPairERC20AddressIndex) String() string
- func (m *TokenPairERC20AddressIndex) Unmarshal(dAtA []byte) error
- func (m *TokenPairERC20AddressIndex) XXX_DiscardUnknown()
- func (m *TokenPairERC20AddressIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TokenPairERC20AddressIndex) XXX_Merge(src proto.Message)
- func (m *TokenPairERC20AddressIndex) XXX_Size() int
- func (m *TokenPairERC20AddressIndex) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) ConvertCoin(ctx context.Context, req *MsgConvertCoin) (*MsgConvertCoinResponse, error)
- func (*UnimplementedMsgServer) ConvertERC20(ctx context.Context, req *MsgConvertERC20) (*MsgConvertERC20Response, error)
- func (*UnimplementedMsgServer) RegisterCoinProposal(ctx context.Context, req *MsgRegisterCoin) (*MsgRegisterCoinResponse, error)
- func (*UnimplementedMsgServer) RegisterERC20Proposal(ctx context.Context, req *MsgRegisterERC20) (*MsgRegisterERC20Response, error)
- func (*UnimplementedMsgServer) ToggleTokenConversionProposal(ctx context.Context, req *MsgToggleTokenConversion) (*MsgToggleTokenConversionResponse, error)
- func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) TokenPair(ctx context.Context, req *QueryTokenPairRequest) (*QueryTokenPairResponse, error)
- func (*UnimplementedQueryServer) TokenPairs(ctx context.Context, req *QueryTokenPairsRequest) (*QueryTokenPairsResponse, error)
Constants ¶
const ( EventTypeTokenLock = "token_lock" EventTypeTokenUnlock = "token_unlock" EventTypeMint = "mint" EventTypeConvertCoin = "convert_coin" EventTypeConvertERC20 = "convert_erc20" EventTypeBurn = "burn" EventTypeRegisterCoin = "register_coin" EventTypeRegisterERC20 = "register_erc20" EventTypeToggleTokenConversion = "toggle_token_conversion" // #nosec AttributeKeyCosmosCoin = "cosmos_coin" AttributeKeyERC20Token = "erc20_token" // #nosec AttributeKeyReceiver = "receiver" ERC20EventTransfer = "Transfer" )
erc20 events
const ( // module name ModuleName = "erc20" // StoreKey to be used when creating the KVStore StoreKey = ModuleName // RouterKey to be used for message routing RouterKey = ModuleName )
constants
const ( ProposalTypeRegisterCoin string = "RegisterCoin" ProposalTypeRegisterERC20 string = "RegisterERC20" ProposalTypeToggleTokenConversion string = "ToggleTokenConversion" // #nosec )
constants
Variables ¶
var ( // ModuleCdc references the global erc20 module codec. Note, the codec should // ONLY be used in certain instances of tests and for JSON encoding. // // The actual codec used for serialization should be provided to modules/erc20 and // defined at the application level. ModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry()) // AminoCdc is a amino codec created to support amino JSON compatible msgs. AminoCdc = codec.NewAminoCodec(amino) )
var ( ErrInvalidLengthErc20 = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowErc20 = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupErc20 = fmt.Errorf("proto: unexpected end of group") )
var ( ErrERC20Disabled = errorsmod.Register(ModuleName, 2, "erc20 module is disabled") ErrInternalTokenPair = errorsmod.Register(ModuleName, 3, "internal ethereum token mapping error") ErrTokenPairNotFound = errorsmod.Register(ModuleName, 4, "token pair not found") ErrTokenPairAlreadyExists = errorsmod.Register(ModuleName, 5, "token pair already exists") ErrUndefinedOwner = errorsmod.Register(ModuleName, 6, "undefined owner of contract pair") ErrBalanceInvariance = errorsmod.Register(ModuleName, 7, "post transfer balance invariant failed") ErrUnexpectedEvent = errorsmod.Register(ModuleName, 8, "unexpected event") ErrABIPack = errorsmod.Register(ModuleName, 9, "contract ABI pack failed") ErrABIUnpack = errorsmod.Register(ModuleName, 10, "contract ABI unpack failed") ErrEVMDenom = errorsmod.Register(ModuleName, 11, "EVM denomination registration") ErrEVMCall = errorsmod.Register(ModuleName, 12, "EVM call unexpected error") ErrERC20TokenPairDisabled = errorsmod.Register(ModuleName, 13, "erc20 token pair is disabled") )
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 ( KeyPrefixTokenPair = []byte{prefixTokenPair} KeyPrefixTokenPairByERC20Address = []byte{prefixTokenPairByERC20Address} KeyPrefixTokenPairByDenom = []byte{prefixTokenPairByDenom} )
KVStore key prefixes
var ( ParamStoreKeyEnableErc20 = []byte("EnableErc20") ParamStoreKeyEnableEVMHook = []byte("EnableEVMHook") )
Parameter store key
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 ModuleAddress common.Address
ModuleAddress is the native module address for EVM
var Owner_name = map[int32]string{
0: "OWNER_UNSPECIFIED",
1: "OWNER_MODULE",
2: "OWNER_EXTERNAL",
}
var Owner_value = map[string]int32{
"OWNER_UNSPECIFIED": 0,
"OWNER_MODULE": 1,
"OWNER_EXTERNAL": 2,
}
Functions ¶
func CreateDenom ¶
CreateDenom generates a string the module name plus the address to avoid conflicts with names staring with a number
func CreateDenomDescription ¶
CreateDenomDescription generates a string with the coin description
func EqualMetadata ¶
EqualMetadata checks if all the fields of the provided coin metadata are equal.
func EqualStringSlice ¶
EqualStringSlice checks if two string slices are equal.
func NewRegisterCoinProposal ¶
func NewRegisterCoinProposal(title, description string, coinMetadata banktypes.Metadata) govtypes.Content
NewRegisterCoinProposal returns new instance of RegisterCoinProposal
func NewRegisterERC20Proposal ¶
NewRegisterERC20Proposal returns new instance of RegisterERC20Proposal
func NewToggleTokenConversionProposal ¶
NewToggleTokenConversionProposal returns new instance of ToggleTokenConversionProposal
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable returns the parameter key table.
func RegisterInterfaces ¶
func RegisterInterfaces(registry codectypes.InterfaceRegistry)
RegisterInterfaces register implementations
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers the necessary x/erc20 interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization and EIP-712 compatibility.
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 to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func SanitizeERC20Name ¶
SanitizeERC20Name enforces 128 max string length, deletes leading numbers removes special characters (except /) and spaces from the ERC20 name
func ValidateErc20Denom ¶
ValidateErc20Denom checks if a denom is a valid erc20/ denomination
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { GetModuleAddress(moduleName string) sdk.AccAddress GetSequence(context.Context, sdk.AccAddress) (uint64, error) GetAccount(ctx context.Context, addr sdk.AccAddress) sdk.AccountI }
AccountKeeper defines the expected interface needed to retrieve account info.
type BankKeeper ¶
type BankKeeper interface { SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error SendCoinsFromAccountToModule(ctx context.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error SendCoinsFromModuleToModule(ctx context.Context, senderModule, recipientModule string, amt sdk.Coins) error MintCoins(ctx context.Context, moduleName string, amt sdk.Coins) error BurnCoins(ctx context.Context, moduleName string, amt sdk.Coins) error IsSendEnabledCoin(ctx context.Context, coin sdk.Coin) bool BlockedAddr(addr sdk.AccAddress) bool GetDenomMetaData(ctx context.Context, denom string) (banktypes.Metadata, bool) SetDenomMetaData(ctx context.Context, denomMetaData banktypes.Metadata) HasSupply(ctx context.Context, denom string) bool GetBalance(ctx context.Context, addr sdk.AccAddress, denom string) sdk.Coin SpendableCoins(ctx context.Context, addr sdk.AccAddress) sdk.Coins GetParams(ctx context.Context) banktypes.Params SetParams(ctx context.Context, params banktypes.Params) error }
BankKeeper defines the expected interface needed to retrieve account balances.
type ERC20BoolResponse ¶
type ERC20BoolResponse struct {
Value bool
}
ERC20BoolResponse defines the bool value from the call response
type ERC20Data ¶
ERC20Data represents the ERC20 token details used to map the token to a Cosmos Coin
func NewERC20Data ¶
NewERC20Data creates a new ERC20Data instance
type ERC20StringResponse ¶
type ERC20StringResponse struct {
Value string
}
ERC20StringResponse defines the string value from the call response
type ERC20Uint8Response ¶
type ERC20Uint8Response struct {
Value uint8
}
ERC20Uint8Response defines the uint8 value from the call response
type EVMKeeper ¶
type EVMKeeper interface { GetParams(ctx sdk.Context) evmtypes.Params SetParams(ctx sdk.Context, params evmtypes.Params) error GetAccountWithoutBalance(ctx sdk.Context, addr common.Address) *statedb.Account EstimateGas(c context.Context, req *evmtypes.EthCallRequest) (*evmtypes.EstimateGasResponse, error) ApplyMessage(ctx sdk.Context, msg core.Message, tracer vm.EVMLogger, commit bool) (*evmtypes.MsgEthereumTxResponse, error) ChainID() *big.Int GetNonce(ctx sdk.Context, addr common.Address) uint64 EthereumTx(goCtx context.Context, msg *evmtypes.MsgEthereumTx) (*evmtypes.MsgEthereumTxResponse, error) }
EVMKeeper defines the expected EVM keeper interface used on erc20
type FeeMarketKeeper ¶
type GenesisState ¶
type GenesisState struct { // module parameters Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` // registered token pairs TokenPairs []TokenPair `protobuf:"bytes,2,rep,name=token_pairs,json=tokenPairs,proto3" json:"token_pairs"` // list of mappings from Cosmos denoms to token pair IDs, used for indexing // token pairs by their denom DenomIndexes []TokenPairDenomIndex `protobuf:"bytes,3,rep,name=denom_indexes,json=denomIndexes,proto3" json:"denom_indexes"` // list of mappings from ERC20 addresses to token pair IDs, used for indexing // token pairs by their ERC20 address Erc20AddressIndexes []TokenPairERC20AddressIndex `protobuf:"bytes,4,rep,name=erc20_address_indexes,json=erc20AddressIndexes,proto3" json:"erc20_address_indexes"` }
GenesisState defines the module's genesis state.
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState sets default evm genesis state with empty accounts and default params and chain config values.
func NewGenesisState ¶
func NewGenesisState( params Params, pairs []TokenPair, denomIndexes []TokenPairDenomIndex, erc20AddrIndexes []TokenPairERC20AddressIndex, ) GenesisState
NewGenesisState creates a new genesis state.
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetDenomIndexes ¶
func (m *GenesisState) GetDenomIndexes() []TokenPairDenomIndex
func (*GenesisState) GetErc20AddressIndexes ¶
func (m *GenesisState) GetErc20AddressIndexes() []TokenPairERC20AddressIndex
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetTokenPairs ¶
func (m *GenesisState) GetTokenPairs() []TokenPair
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 LogTransfer ¶
Event type for Transfer(address from, address to, uint256 value)
type MsgClient ¶
type MsgClient interface { // ConvertCoin mints a ERC20 representation of the native Cosmos coin denom // that is registered on the token mapping. ConvertCoin(ctx context.Context, in *MsgConvertCoin, opts ...grpc.CallOption) (*MsgConvertCoinResponse, error) // ConvertERC20 mints a native Cosmos coin representation of the ERC20 token // contract that is registered on the token mapping. ConvertERC20(ctx context.Context, in *MsgConvertERC20, opts ...grpc.CallOption) (*MsgConvertERC20Response, error) // UpdateParams updates the parameters of the x/erc20 module. UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) // RegisterCoinProposal defines a method to create a proposal to register a // token pair for a native Cosmos coin. RegisterCoinProposal(ctx context.Context, in *MsgRegisterCoin, opts ...grpc.CallOption) (*MsgRegisterCoinResponse, error) // RegisterERC20Proposal defines a method to create a proposal to register a // token pair for an ERC20 token. RegisterERC20Proposal(ctx context.Context, in *MsgRegisterERC20, opts ...grpc.CallOption) (*MsgRegisterERC20Response, error) // ToggleTokenConversionProposal defines a method to create a proposal to // toggle the conversion of a token pair. ToggleTokenConversionProposal(ctx context.Context, in *MsgToggleTokenConversion, opts ...grpc.CallOption) (*MsgToggleTokenConversionResponse, 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 MsgConvertCoin ¶
type MsgConvertCoin struct { // Cosmos coin which denomination is registered in a token pair. The coin // amount defines the amount of coins to convert. Coin types.Coin `protobuf:"bytes,1,opt,name=coin,proto3" json:"coin"` // recipient hex address to receive ERC20 token Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` // cosmos bech32 address from the owner of the given Cosmos coins Sender string `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"` }
MsgConvertCoin defines a Msg to convert a native Cosmos coin to a ERC20 token
func NewMsgConvertCoin ¶
func NewMsgConvertCoin(coin sdk.Coin, receiver common.Address, sender sdk.AccAddress) *MsgConvertCoin
NewMsgConvertCoin creates a new instance of MsgConvertCoin
func (*MsgConvertCoin) Descriptor ¶
func (*MsgConvertCoin) Descriptor() ([]byte, []int)
func (*MsgConvertCoin) GetCoin ¶
func (m *MsgConvertCoin) GetCoin() types.Coin
func (*MsgConvertCoin) GetReceiver ¶
func (m *MsgConvertCoin) GetReceiver() string
func (*MsgConvertCoin) GetSender ¶
func (m *MsgConvertCoin) GetSender() string
func (*MsgConvertCoin) Marshal ¶
func (m *MsgConvertCoin) Marshal() (dAtA []byte, err error)
func (*MsgConvertCoin) MarshalToSizedBuffer ¶
func (m *MsgConvertCoin) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgConvertCoin) ProtoMessage ¶
func (*MsgConvertCoin) ProtoMessage()
func (*MsgConvertCoin) Reset ¶
func (m *MsgConvertCoin) Reset()
func (*MsgConvertCoin) Size ¶
func (m *MsgConvertCoin) Size() (n int)
func (*MsgConvertCoin) String ¶
func (m *MsgConvertCoin) String() string
func (*MsgConvertCoin) Unmarshal ¶
func (m *MsgConvertCoin) Unmarshal(dAtA []byte) error
func (*MsgConvertCoin) XXX_DiscardUnknown ¶
func (m *MsgConvertCoin) XXX_DiscardUnknown()
func (*MsgConvertCoin) XXX_Marshal ¶
func (m *MsgConvertCoin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgConvertCoin) XXX_Merge ¶
func (m *MsgConvertCoin) XXX_Merge(src proto.Message)
func (*MsgConvertCoin) XXX_Size ¶
func (m *MsgConvertCoin) XXX_Size() int
func (*MsgConvertCoin) XXX_Unmarshal ¶
func (m *MsgConvertCoin) XXX_Unmarshal(b []byte) error
type MsgConvertCoinResponse ¶
type MsgConvertCoinResponse struct { }
MsgConvertCoinResponse returns no fields
func (*MsgConvertCoinResponse) Descriptor ¶
func (*MsgConvertCoinResponse) Descriptor() ([]byte, []int)
func (*MsgConvertCoinResponse) Marshal ¶
func (m *MsgConvertCoinResponse) Marshal() (dAtA []byte, err error)
func (*MsgConvertCoinResponse) MarshalTo ¶
func (m *MsgConvertCoinResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgConvertCoinResponse) MarshalToSizedBuffer ¶
func (m *MsgConvertCoinResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgConvertCoinResponse) ProtoMessage ¶
func (*MsgConvertCoinResponse) ProtoMessage()
func (*MsgConvertCoinResponse) Reset ¶
func (m *MsgConvertCoinResponse) Reset()
func (*MsgConvertCoinResponse) Size ¶
func (m *MsgConvertCoinResponse) Size() (n int)
func (*MsgConvertCoinResponse) String ¶
func (m *MsgConvertCoinResponse) String() string
func (*MsgConvertCoinResponse) Unmarshal ¶
func (m *MsgConvertCoinResponse) Unmarshal(dAtA []byte) error
func (*MsgConvertCoinResponse) XXX_DiscardUnknown ¶
func (m *MsgConvertCoinResponse) XXX_DiscardUnknown()
func (*MsgConvertCoinResponse) XXX_Marshal ¶
func (m *MsgConvertCoinResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgConvertCoinResponse) XXX_Merge ¶
func (m *MsgConvertCoinResponse) XXX_Merge(src proto.Message)
func (*MsgConvertCoinResponse) XXX_Size ¶
func (m *MsgConvertCoinResponse) XXX_Size() int
func (*MsgConvertCoinResponse) XXX_Unmarshal ¶
func (m *MsgConvertCoinResponse) XXX_Unmarshal(b []byte) error
type MsgConvertERC20 ¶
type MsgConvertERC20 struct { // ERC20 token contract address registered in a token pair ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"` // amount of ERC20 tokens to convert Amount cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` // bech32 address to receive native Cosmos coins Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"` // sender hex address from the owner of the given ERC20 tokens Sender string `protobuf:"bytes,4,opt,name=sender,proto3" json:"sender,omitempty"` }
MsgConvertERC20 defines a Msg to convert a ERC20 token to a native Cosmos coin.
func NewMsgConvertERC20 ¶
func NewMsgConvertERC20(amount sdkmath.Int, receiver sdk.AccAddress, contract, sender common.Address) *MsgConvertERC20
NewMsgConvertERC20 creates a new instance of MsgConvertERC20
func (*MsgConvertERC20) Descriptor ¶
func (*MsgConvertERC20) Descriptor() ([]byte, []int)
func (*MsgConvertERC20) GetContractAddress ¶
func (m *MsgConvertERC20) GetContractAddress() string
func (*MsgConvertERC20) GetReceiver ¶
func (m *MsgConvertERC20) GetReceiver() string
func (*MsgConvertERC20) GetSender ¶
func (m *MsgConvertERC20) GetSender() string
func (MsgConvertERC20) GetSigners ¶
func (msg MsgConvertERC20) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (*MsgConvertERC20) Marshal ¶
func (m *MsgConvertERC20) Marshal() (dAtA []byte, err error)
func (*MsgConvertERC20) MarshalToSizedBuffer ¶
func (m *MsgConvertERC20) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgConvertERC20) ProtoMessage ¶
func (*MsgConvertERC20) ProtoMessage()
func (*MsgConvertERC20) Reset ¶
func (m *MsgConvertERC20) Reset()
func (*MsgConvertERC20) Size ¶
func (m *MsgConvertERC20) Size() (n int)
func (*MsgConvertERC20) String ¶
func (m *MsgConvertERC20) String() string
func (*MsgConvertERC20) Unmarshal ¶
func (m *MsgConvertERC20) Unmarshal(dAtA []byte) error
func (*MsgConvertERC20) XXX_DiscardUnknown ¶
func (m *MsgConvertERC20) XXX_DiscardUnknown()
func (*MsgConvertERC20) XXX_Marshal ¶
func (m *MsgConvertERC20) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgConvertERC20) XXX_Merge ¶
func (m *MsgConvertERC20) XXX_Merge(src proto.Message)
func (*MsgConvertERC20) XXX_Size ¶
func (m *MsgConvertERC20) XXX_Size() int
func (*MsgConvertERC20) XXX_Unmarshal ¶
func (m *MsgConvertERC20) XXX_Unmarshal(b []byte) error
type MsgConvertERC20Response ¶
type MsgConvertERC20Response struct { }
MsgConvertERC20Response returns no fields
func (*MsgConvertERC20Response) Descriptor ¶
func (*MsgConvertERC20Response) Descriptor() ([]byte, []int)
func (*MsgConvertERC20Response) Marshal ¶
func (m *MsgConvertERC20Response) Marshal() (dAtA []byte, err error)
func (*MsgConvertERC20Response) MarshalTo ¶
func (m *MsgConvertERC20Response) MarshalTo(dAtA []byte) (int, error)
func (*MsgConvertERC20Response) MarshalToSizedBuffer ¶
func (m *MsgConvertERC20Response) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgConvertERC20Response) ProtoMessage ¶
func (*MsgConvertERC20Response) ProtoMessage()
func (*MsgConvertERC20Response) Reset ¶
func (m *MsgConvertERC20Response) Reset()
func (*MsgConvertERC20Response) Size ¶
func (m *MsgConvertERC20Response) Size() (n int)
func (*MsgConvertERC20Response) String ¶
func (m *MsgConvertERC20Response) String() string
func (*MsgConvertERC20Response) Unmarshal ¶
func (m *MsgConvertERC20Response) Unmarshal(dAtA []byte) error
func (*MsgConvertERC20Response) XXX_DiscardUnknown ¶
func (m *MsgConvertERC20Response) XXX_DiscardUnknown()
func (*MsgConvertERC20Response) XXX_Marshal ¶
func (m *MsgConvertERC20Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgConvertERC20Response) XXX_Merge ¶
func (m *MsgConvertERC20Response) XXX_Merge(src proto.Message)
func (*MsgConvertERC20Response) XXX_Size ¶
func (m *MsgConvertERC20Response) XXX_Size() int
func (*MsgConvertERC20Response) XXX_Unmarshal ¶
func (m *MsgConvertERC20Response) XXX_Unmarshal(b []byte) error
type MsgRegisterCoin ¶
type MsgRegisterCoin struct { // authority is the address that controls the module (defaults to x/gov unless // overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // title of the proposal Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` // proposal description Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // metadata of the native Cosmos coin Metadata types1.Metadata `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata"` }
MsgRegisterCoin is a gov Content type to register a token pair for a native Cosmos coin.
func (*MsgRegisterCoin) Descriptor ¶
func (*MsgRegisterCoin) Descriptor() ([]byte, []int)
func (*MsgRegisterCoin) GetAuthority ¶
func (m *MsgRegisterCoin) GetAuthority() string
func (*MsgRegisterCoin) GetDescription ¶
func (m *MsgRegisterCoin) GetDescription() string
func (*MsgRegisterCoin) GetMetadata ¶
func (m *MsgRegisterCoin) GetMetadata() types1.Metadata
func (*MsgRegisterCoin) GetTitle ¶
func (m *MsgRegisterCoin) GetTitle() string
func (*MsgRegisterCoin) Marshal ¶
func (m *MsgRegisterCoin) Marshal() (dAtA []byte, err error)
func (*MsgRegisterCoin) MarshalToSizedBuffer ¶
func (m *MsgRegisterCoin) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRegisterCoin) ProtoMessage ¶
func (*MsgRegisterCoin) ProtoMessage()
func (*MsgRegisterCoin) Reset ¶
func (m *MsgRegisterCoin) Reset()
func (*MsgRegisterCoin) Size ¶
func (m *MsgRegisterCoin) Size() (n int)
func (*MsgRegisterCoin) String ¶
func (m *MsgRegisterCoin) String() string
func (*MsgRegisterCoin) Unmarshal ¶
func (m *MsgRegisterCoin) Unmarshal(dAtA []byte) error
func (*MsgRegisterCoin) XXX_DiscardUnknown ¶
func (m *MsgRegisterCoin) XXX_DiscardUnknown()
func (*MsgRegisterCoin) XXX_Marshal ¶
func (m *MsgRegisterCoin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRegisterCoin) XXX_Merge ¶
func (m *MsgRegisterCoin) XXX_Merge(src proto.Message)
func (*MsgRegisterCoin) XXX_Size ¶
func (m *MsgRegisterCoin) XXX_Size() int
func (*MsgRegisterCoin) XXX_Unmarshal ¶
func (m *MsgRegisterCoin) XXX_Unmarshal(b []byte) error
type MsgRegisterCoinResponse ¶
type MsgRegisterCoinResponse struct { }
func (*MsgRegisterCoinResponse) Descriptor ¶
func (*MsgRegisterCoinResponse) Descriptor() ([]byte, []int)
func (*MsgRegisterCoinResponse) Marshal ¶
func (m *MsgRegisterCoinResponse) Marshal() (dAtA []byte, err error)
func (*MsgRegisterCoinResponse) MarshalTo ¶
func (m *MsgRegisterCoinResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRegisterCoinResponse) MarshalToSizedBuffer ¶
func (m *MsgRegisterCoinResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRegisterCoinResponse) ProtoMessage ¶
func (*MsgRegisterCoinResponse) ProtoMessage()
func (*MsgRegisterCoinResponse) Reset ¶
func (m *MsgRegisterCoinResponse) Reset()
func (*MsgRegisterCoinResponse) Size ¶
func (m *MsgRegisterCoinResponse) Size() (n int)
func (*MsgRegisterCoinResponse) String ¶
func (m *MsgRegisterCoinResponse) String() string
func (*MsgRegisterCoinResponse) Unmarshal ¶
func (m *MsgRegisterCoinResponse) Unmarshal(dAtA []byte) error
func (*MsgRegisterCoinResponse) XXX_DiscardUnknown ¶
func (m *MsgRegisterCoinResponse) XXX_DiscardUnknown()
func (*MsgRegisterCoinResponse) XXX_Marshal ¶
func (m *MsgRegisterCoinResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRegisterCoinResponse) XXX_Merge ¶
func (m *MsgRegisterCoinResponse) XXX_Merge(src proto.Message)
func (*MsgRegisterCoinResponse) XXX_Size ¶
func (m *MsgRegisterCoinResponse) XXX_Size() int
func (*MsgRegisterCoinResponse) XXX_Unmarshal ¶
func (m *MsgRegisterCoinResponse) XXX_Unmarshal(b []byte) error
type MsgRegisterERC20 ¶
type MsgRegisterERC20 struct { // authority is the address that controls the module (defaults to x/gov unless // overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // title of the proposa string title = 1; Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` // proposal description Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // contract address of ERC20 token Erc20Address string `protobuf:"bytes,4,opt,name=erc20address,proto3" json:"erc20address,omitempty"` }
MsgRegisterERC20 is a gov Content type to register a token pair for an ERC20 token
func (*MsgRegisterERC20) Descriptor ¶
func (*MsgRegisterERC20) Descriptor() ([]byte, []int)
func (*MsgRegisterERC20) GetAuthority ¶
func (m *MsgRegisterERC20) GetAuthority() string
func (*MsgRegisterERC20) GetDescription ¶
func (m *MsgRegisterERC20) GetDescription() string
func (*MsgRegisterERC20) GetErc20Address ¶
func (m *MsgRegisterERC20) GetErc20Address() string
func (*MsgRegisterERC20) GetTitle ¶
func (m *MsgRegisterERC20) GetTitle() string
func (*MsgRegisterERC20) Marshal ¶
func (m *MsgRegisterERC20) Marshal() (dAtA []byte, err error)
func (*MsgRegisterERC20) MarshalToSizedBuffer ¶
func (m *MsgRegisterERC20) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRegisterERC20) ProtoMessage ¶
func (*MsgRegisterERC20) ProtoMessage()
func (*MsgRegisterERC20) Reset ¶
func (m *MsgRegisterERC20) Reset()
func (*MsgRegisterERC20) Size ¶
func (m *MsgRegisterERC20) Size() (n int)
func (*MsgRegisterERC20) String ¶
func (m *MsgRegisterERC20) String() string
func (*MsgRegisterERC20) Unmarshal ¶
func (m *MsgRegisterERC20) Unmarshal(dAtA []byte) error
func (*MsgRegisterERC20) XXX_DiscardUnknown ¶
func (m *MsgRegisterERC20) XXX_DiscardUnknown()
func (*MsgRegisterERC20) XXX_Marshal ¶
func (m *MsgRegisterERC20) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRegisterERC20) XXX_Merge ¶
func (m *MsgRegisterERC20) XXX_Merge(src proto.Message)
func (*MsgRegisterERC20) XXX_Size ¶
func (m *MsgRegisterERC20) XXX_Size() int
func (*MsgRegisterERC20) XXX_Unmarshal ¶
func (m *MsgRegisterERC20) XXX_Unmarshal(b []byte) error
type MsgRegisterERC20Response ¶
type MsgRegisterERC20Response struct { }
func (*MsgRegisterERC20Response) Descriptor ¶
func (*MsgRegisterERC20Response) Descriptor() ([]byte, []int)
func (*MsgRegisterERC20Response) Marshal ¶
func (m *MsgRegisterERC20Response) Marshal() (dAtA []byte, err error)
func (*MsgRegisterERC20Response) MarshalTo ¶
func (m *MsgRegisterERC20Response) MarshalTo(dAtA []byte) (int, error)
func (*MsgRegisterERC20Response) MarshalToSizedBuffer ¶
func (m *MsgRegisterERC20Response) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRegisterERC20Response) ProtoMessage ¶
func (*MsgRegisterERC20Response) ProtoMessage()
func (*MsgRegisterERC20Response) Reset ¶
func (m *MsgRegisterERC20Response) Reset()
func (*MsgRegisterERC20Response) Size ¶
func (m *MsgRegisterERC20Response) Size() (n int)
func (*MsgRegisterERC20Response) String ¶
func (m *MsgRegisterERC20Response) String() string
func (*MsgRegisterERC20Response) Unmarshal ¶
func (m *MsgRegisterERC20Response) Unmarshal(dAtA []byte) error
func (*MsgRegisterERC20Response) XXX_DiscardUnknown ¶
func (m *MsgRegisterERC20Response) XXX_DiscardUnknown()
func (*MsgRegisterERC20Response) XXX_Marshal ¶
func (m *MsgRegisterERC20Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRegisterERC20Response) XXX_Merge ¶
func (m *MsgRegisterERC20Response) XXX_Merge(src proto.Message)
func (*MsgRegisterERC20Response) XXX_Size ¶
func (m *MsgRegisterERC20Response) XXX_Size() int
func (*MsgRegisterERC20Response) XXX_Unmarshal ¶
func (m *MsgRegisterERC20Response) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // ConvertCoin mints a ERC20 representation of the native Cosmos coin denom // that is registered on the token mapping. ConvertCoin(context.Context, *MsgConvertCoin) (*MsgConvertCoinResponse, error) // ConvertERC20 mints a native Cosmos coin representation of the ERC20 token // contract that is registered on the token mapping. ConvertERC20(context.Context, *MsgConvertERC20) (*MsgConvertERC20Response, error) // UpdateParams updates the parameters of the x/erc20 module. UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) // RegisterCoinProposal defines a method to create a proposal to register a // token pair for a native Cosmos coin. RegisterCoinProposal(context.Context, *MsgRegisterCoin) (*MsgRegisterCoinResponse, error) // RegisterERC20Proposal defines a method to create a proposal to register a // token pair for an ERC20 token. RegisterERC20Proposal(context.Context, *MsgRegisterERC20) (*MsgRegisterERC20Response, error) // ToggleTokenConversionProposal defines a method to create a proposal to // toggle the conversion of a token pair. ToggleTokenConversionProposal(context.Context, *MsgToggleTokenConversion) (*MsgToggleTokenConversionResponse, error) }
MsgServer is the server API for Msg service.
type MsgToggleTokenConversion ¶
type MsgToggleTokenConversion struct { // authority is the address that controls the module (defaults to x/gov unless // overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // title of the proposal Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` // proposal description Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // token identifier can be either the hex contract address of the ERC20 or the // Cosmos base denomination Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` }
MsgToggleTokenConversion is a gov Content type to toggle the conversion of a token pair.
func (*MsgToggleTokenConversion) Descriptor ¶
func (*MsgToggleTokenConversion) Descriptor() ([]byte, []int)
func (*MsgToggleTokenConversion) Equal ¶
func (this *MsgToggleTokenConversion) Equal(that interface{}) bool
func (*MsgToggleTokenConversion) GetAuthority ¶
func (m *MsgToggleTokenConversion) GetAuthority() string
func (*MsgToggleTokenConversion) GetDescription ¶
func (m *MsgToggleTokenConversion) GetDescription() string
func (*MsgToggleTokenConversion) GetTitle ¶
func (m *MsgToggleTokenConversion) GetTitle() string
func (*MsgToggleTokenConversion) GetToken ¶
func (m *MsgToggleTokenConversion) GetToken() string
func (*MsgToggleTokenConversion) Marshal ¶
func (m *MsgToggleTokenConversion) Marshal() (dAtA []byte, err error)
func (*MsgToggleTokenConversion) MarshalTo ¶
func (m *MsgToggleTokenConversion) MarshalTo(dAtA []byte) (int, error)
func (*MsgToggleTokenConversion) MarshalToSizedBuffer ¶
func (m *MsgToggleTokenConversion) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgToggleTokenConversion) ProtoMessage ¶
func (*MsgToggleTokenConversion) ProtoMessage()
func (*MsgToggleTokenConversion) Reset ¶
func (m *MsgToggleTokenConversion) Reset()
func (*MsgToggleTokenConversion) Size ¶
func (m *MsgToggleTokenConversion) Size() (n int)
func (*MsgToggleTokenConversion) String ¶
func (m *MsgToggleTokenConversion) String() string
func (*MsgToggleTokenConversion) Unmarshal ¶
func (m *MsgToggleTokenConversion) Unmarshal(dAtA []byte) error
func (*MsgToggleTokenConversion) XXX_DiscardUnknown ¶
func (m *MsgToggleTokenConversion) XXX_DiscardUnknown()
func (*MsgToggleTokenConversion) XXX_Marshal ¶
func (m *MsgToggleTokenConversion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgToggleTokenConversion) XXX_Merge ¶
func (m *MsgToggleTokenConversion) XXX_Merge(src proto.Message)
func (*MsgToggleTokenConversion) XXX_Size ¶
func (m *MsgToggleTokenConversion) XXX_Size() int
func (*MsgToggleTokenConversion) XXX_Unmarshal ¶
func (m *MsgToggleTokenConversion) XXX_Unmarshal(b []byte) error
type MsgToggleTokenConversionResponse ¶
type MsgToggleTokenConversionResponse struct { }
func (*MsgToggleTokenConversionResponse) Descriptor ¶
func (*MsgToggleTokenConversionResponse) Descriptor() ([]byte, []int)
func (*MsgToggleTokenConversionResponse) Marshal ¶
func (m *MsgToggleTokenConversionResponse) Marshal() (dAtA []byte, err error)
func (*MsgToggleTokenConversionResponse) MarshalTo ¶
func (m *MsgToggleTokenConversionResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgToggleTokenConversionResponse) MarshalToSizedBuffer ¶
func (m *MsgToggleTokenConversionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgToggleTokenConversionResponse) ProtoMessage ¶
func (*MsgToggleTokenConversionResponse) ProtoMessage()
func (*MsgToggleTokenConversionResponse) Reset ¶
func (m *MsgToggleTokenConversionResponse) Reset()
func (*MsgToggleTokenConversionResponse) Size ¶
func (m *MsgToggleTokenConversionResponse) Size() (n int)
func (*MsgToggleTokenConversionResponse) String ¶
func (m *MsgToggleTokenConversionResponse) String() string
func (*MsgToggleTokenConversionResponse) Unmarshal ¶
func (m *MsgToggleTokenConversionResponse) Unmarshal(dAtA []byte) error
func (*MsgToggleTokenConversionResponse) XXX_DiscardUnknown ¶
func (m *MsgToggleTokenConversionResponse) XXX_DiscardUnknown()
func (*MsgToggleTokenConversionResponse) XXX_Marshal ¶
func (m *MsgToggleTokenConversionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgToggleTokenConversionResponse) XXX_Merge ¶
func (m *MsgToggleTokenConversionResponse) XXX_Merge(src proto.Message)
func (*MsgToggleTokenConversionResponse) XXX_Size ¶
func (m *MsgToggleTokenConversionResponse) XXX_Size() int
func (*MsgToggleTokenConversionResponse) XXX_Unmarshal ¶
func (m *MsgToggleTokenConversionResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateParams ¶
type MsgUpdateParams struct { // authority is the address that controls the module (defaults to x/gov unless // overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the x/erc20 parameters to update. // // NOTE: All parameters must be supplied. Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` }
func (*MsgUpdateParams) Descriptor ¶
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
func (*MsgUpdateParams) GetAuthority ¶
func (m *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶
func (m *MsgUpdateParams) GetParams() Params
func (*MsgUpdateParams) Marshal ¶
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶
func (m *MsgUpdateParams) Reset()
func (*MsgUpdateParams) Size ¶
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶
func (m *MsgUpdateParams) String() string
func (*MsgUpdateParams) Unmarshal ¶
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (*MsgUpdateParams) XXX_DiscardUnknown ¶
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct { }
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
Since: cosmos-sdk 0.47
func (*MsgUpdateParamsResponse) Descriptor ¶
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
type Owner ¶
type Owner int32
Owner enumerates the ownership of a ERC20 contract.
func (Owner) EnumDescriptor ¶
type Params ¶
type Params struct { // 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"` // 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"` }
Params defines the erc20 module params
func DefaultParams ¶
func DefaultParams() Params
func (*Params) Descriptor ¶
func (*Params) GetEnableEVMHook ¶
func (*Params) GetEnableErc20 ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs returns the parameter set pairs.
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 { // TokenPairs retrieves registered token pairs TokenPairs(ctx context.Context, in *QueryTokenPairsRequest, opts ...grpc.CallOption) (*QueryTokenPairsResponse, error) // TokenPair retrieves a registered token pair TokenPair(ctx context.Context, in *QueryTokenPairRequest, opts ...grpc.CallOption) (*QueryTokenPairResponse, error) // Params retrieves the erc20 module params Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, 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 QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is the request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
QueryParamsResponse is the response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // TokenPairs retrieves registered token pairs TokenPairs(context.Context, *QueryTokenPairsRequest) (*QueryTokenPairsResponse, error) // TokenPair retrieves a registered token pair TokenPair(context.Context, *QueryTokenPairRequest) (*QueryTokenPairResponse, error) // Params retrieves the erc20 module params Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) }
QueryServer is the server API for Query service.
type QueryTokenPairRequest ¶
type QueryTokenPairRequest struct { // token identifier can be either the hex contract address of the ERC20 or the // Cosmos base denomination Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` }
QueryTokenPairRequest is the request type for the Query/TokenPair RPC method.
func (*QueryTokenPairRequest) Descriptor ¶
func (*QueryTokenPairRequest) Descriptor() ([]byte, []int)
func (*QueryTokenPairRequest) GetToken ¶
func (m *QueryTokenPairRequest) GetToken() string
func (*QueryTokenPairRequest) Marshal ¶
func (m *QueryTokenPairRequest) Marshal() (dAtA []byte, err error)
func (*QueryTokenPairRequest) MarshalTo ¶
func (m *QueryTokenPairRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryTokenPairRequest) MarshalToSizedBuffer ¶
func (m *QueryTokenPairRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTokenPairRequest) ProtoMessage ¶
func (*QueryTokenPairRequest) ProtoMessage()
func (*QueryTokenPairRequest) Reset ¶
func (m *QueryTokenPairRequest) Reset()
func (*QueryTokenPairRequest) Size ¶
func (m *QueryTokenPairRequest) Size() (n int)
func (*QueryTokenPairRequest) String ¶
func (m *QueryTokenPairRequest) String() string
func (*QueryTokenPairRequest) Unmarshal ¶
func (m *QueryTokenPairRequest) Unmarshal(dAtA []byte) error
func (*QueryTokenPairRequest) XXX_DiscardUnknown ¶
func (m *QueryTokenPairRequest) XXX_DiscardUnknown()
func (*QueryTokenPairRequest) XXX_Marshal ¶
func (m *QueryTokenPairRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTokenPairRequest) XXX_Merge ¶
func (m *QueryTokenPairRequest) XXX_Merge(src proto.Message)
func (*QueryTokenPairRequest) XXX_Size ¶
func (m *QueryTokenPairRequest) XXX_Size() int
func (*QueryTokenPairRequest) XXX_Unmarshal ¶
func (m *QueryTokenPairRequest) XXX_Unmarshal(b []byte) error
type QueryTokenPairResponse ¶
type QueryTokenPairResponse struct {
TokenPair TokenPair `protobuf:"bytes,1,opt,name=token_pair,json=tokenPair,proto3" json:"token_pair"`
}
QueryTokenPairResponse is the response type for the Query/TokenPair RPC method.
func (*QueryTokenPairResponse) Descriptor ¶
func (*QueryTokenPairResponse) Descriptor() ([]byte, []int)
func (*QueryTokenPairResponse) GetTokenPair ¶
func (m *QueryTokenPairResponse) GetTokenPair() TokenPair
func (*QueryTokenPairResponse) Marshal ¶
func (m *QueryTokenPairResponse) Marshal() (dAtA []byte, err error)
func (*QueryTokenPairResponse) MarshalTo ¶
func (m *QueryTokenPairResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryTokenPairResponse) MarshalToSizedBuffer ¶
func (m *QueryTokenPairResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTokenPairResponse) ProtoMessage ¶
func (*QueryTokenPairResponse) ProtoMessage()
func (*QueryTokenPairResponse) Reset ¶
func (m *QueryTokenPairResponse) Reset()
func (*QueryTokenPairResponse) Size ¶
func (m *QueryTokenPairResponse) Size() (n int)
func (*QueryTokenPairResponse) String ¶
func (m *QueryTokenPairResponse) String() string
func (*QueryTokenPairResponse) Unmarshal ¶
func (m *QueryTokenPairResponse) Unmarshal(dAtA []byte) error
func (*QueryTokenPairResponse) XXX_DiscardUnknown ¶
func (m *QueryTokenPairResponse) XXX_DiscardUnknown()
func (*QueryTokenPairResponse) XXX_Marshal ¶
func (m *QueryTokenPairResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTokenPairResponse) XXX_Merge ¶
func (m *QueryTokenPairResponse) XXX_Merge(src proto.Message)
func (*QueryTokenPairResponse) XXX_Size ¶
func (m *QueryTokenPairResponse) XXX_Size() int
func (*QueryTokenPairResponse) XXX_Unmarshal ¶
func (m *QueryTokenPairResponse) XXX_Unmarshal(b []byte) error
type QueryTokenPairsRequest ¶
type QueryTokenPairsRequest struct { // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryTokenPairsRequest is the request type for the Query/TokenPairs RPC method.
func (*QueryTokenPairsRequest) Descriptor ¶
func (*QueryTokenPairsRequest) Descriptor() ([]byte, []int)
func (*QueryTokenPairsRequest) GetPagination ¶
func (m *QueryTokenPairsRequest) GetPagination() *query.PageRequest
func (*QueryTokenPairsRequest) Marshal ¶
func (m *QueryTokenPairsRequest) Marshal() (dAtA []byte, err error)
func (*QueryTokenPairsRequest) MarshalTo ¶
func (m *QueryTokenPairsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryTokenPairsRequest) MarshalToSizedBuffer ¶
func (m *QueryTokenPairsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTokenPairsRequest) ProtoMessage ¶
func (*QueryTokenPairsRequest) ProtoMessage()
func (*QueryTokenPairsRequest) Reset ¶
func (m *QueryTokenPairsRequest) Reset()
func (*QueryTokenPairsRequest) Size ¶
func (m *QueryTokenPairsRequest) Size() (n int)
func (*QueryTokenPairsRequest) String ¶
func (m *QueryTokenPairsRequest) String() string
func (*QueryTokenPairsRequest) Unmarshal ¶
func (m *QueryTokenPairsRequest) Unmarshal(dAtA []byte) error
func (*QueryTokenPairsRequest) XXX_DiscardUnknown ¶
func (m *QueryTokenPairsRequest) XXX_DiscardUnknown()
func (*QueryTokenPairsRequest) XXX_Marshal ¶
func (m *QueryTokenPairsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTokenPairsRequest) XXX_Merge ¶
func (m *QueryTokenPairsRequest) XXX_Merge(src proto.Message)
func (*QueryTokenPairsRequest) XXX_Size ¶
func (m *QueryTokenPairsRequest) XXX_Size() int
func (*QueryTokenPairsRequest) XXX_Unmarshal ¶
func (m *QueryTokenPairsRequest) XXX_Unmarshal(b []byte) error
type QueryTokenPairsResponse ¶
type QueryTokenPairsResponse struct { TokenPairs []TokenPair `protobuf:"bytes,1,rep,name=token_pairs,json=tokenPairs,proto3" json:"token_pairs"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryTokenPairsResponse is the response type for the Query/TokenPairs RPC method.
func (*QueryTokenPairsResponse) Descriptor ¶
func (*QueryTokenPairsResponse) Descriptor() ([]byte, []int)
func (*QueryTokenPairsResponse) GetPagination ¶
func (m *QueryTokenPairsResponse) GetPagination() *query.PageResponse
func (*QueryTokenPairsResponse) GetTokenPairs ¶
func (m *QueryTokenPairsResponse) GetTokenPairs() []TokenPair
func (*QueryTokenPairsResponse) Marshal ¶
func (m *QueryTokenPairsResponse) Marshal() (dAtA []byte, err error)
func (*QueryTokenPairsResponse) MarshalTo ¶
func (m *QueryTokenPairsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryTokenPairsResponse) MarshalToSizedBuffer ¶
func (m *QueryTokenPairsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTokenPairsResponse) ProtoMessage ¶
func (*QueryTokenPairsResponse) ProtoMessage()
func (*QueryTokenPairsResponse) Reset ¶
func (m *QueryTokenPairsResponse) Reset()
func (*QueryTokenPairsResponse) Size ¶
func (m *QueryTokenPairsResponse) Size() (n int)
func (*QueryTokenPairsResponse) String ¶
func (m *QueryTokenPairsResponse) String() string
func (*QueryTokenPairsResponse) Unmarshal ¶
func (m *QueryTokenPairsResponse) Unmarshal(dAtA []byte) error
func (*QueryTokenPairsResponse) XXX_DiscardUnknown ¶
func (m *QueryTokenPairsResponse) XXX_DiscardUnknown()
func (*QueryTokenPairsResponse) XXX_Marshal ¶
func (m *QueryTokenPairsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTokenPairsResponse) XXX_Merge ¶
func (m *QueryTokenPairsResponse) XXX_Merge(src proto.Message)
func (*QueryTokenPairsResponse) XXX_Size ¶
func (m *QueryTokenPairsResponse) XXX_Size() int
func (*QueryTokenPairsResponse) XXX_Unmarshal ¶
func (m *QueryTokenPairsResponse) XXX_Unmarshal(b []byte) error
type RegisterCoinProposal
deprecated
type RegisterCoinProposal struct { // title of the proposal Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` // proposal description Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // metadata of the native Cosmos coin Metadata types.Metadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata"` }
RegisterCoinProposal is a gov Content type to register a token pair for a native Cosmos coin. Deprecated: This legacy proposal is deprecated in favor of Msg-based gov proposals, see MsgRegisterCoin.
Deprecated: Do not use.
func (*RegisterCoinProposal) Descriptor ¶
func (*RegisterCoinProposal) Descriptor() ([]byte, []int)
func (*RegisterCoinProposal) GetDescription ¶
func (m *RegisterCoinProposal) GetDescription() string
func (*RegisterCoinProposal) GetMetadata ¶
func (m *RegisterCoinProposal) GetMetadata() types.Metadata
func (*RegisterCoinProposal) GetTitle ¶
func (m *RegisterCoinProposal) GetTitle() string
func (*RegisterCoinProposal) Marshal ¶
func (m *RegisterCoinProposal) Marshal() (dAtA []byte, err error)
func (*RegisterCoinProposal) MarshalTo ¶
func (m *RegisterCoinProposal) MarshalTo(dAtA []byte) (int, error)
func (*RegisterCoinProposal) MarshalToSizedBuffer ¶
func (m *RegisterCoinProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RegisterCoinProposal) ProposalRoute ¶
func (*RegisterCoinProposal) ProposalRoute() string
ProposalRoute returns router key for this proposal
func (*RegisterCoinProposal) ProposalType ¶
func (*RegisterCoinProposal) ProposalType() string
ProposalType returns proposal type for this proposal
func (*RegisterCoinProposal) ProtoMessage ¶
func (*RegisterCoinProposal) ProtoMessage()
func (*RegisterCoinProposal) Reset ¶
func (m *RegisterCoinProposal) Reset()
func (*RegisterCoinProposal) Size ¶
func (m *RegisterCoinProposal) Size() (n int)
func (*RegisterCoinProposal) String ¶
func (m *RegisterCoinProposal) String() string
func (*RegisterCoinProposal) Unmarshal ¶
func (m *RegisterCoinProposal) Unmarshal(dAtA []byte) error
func (*RegisterCoinProposal) ValidateBasic ¶
func (rtbp *RegisterCoinProposal) ValidateBasic() error
ValidateBasic performs a stateless check of the proposal fields
func (*RegisterCoinProposal) XXX_DiscardUnknown ¶
func (m *RegisterCoinProposal) XXX_DiscardUnknown()
func (*RegisterCoinProposal) XXX_Marshal ¶
func (m *RegisterCoinProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RegisterCoinProposal) XXX_Merge ¶
func (m *RegisterCoinProposal) XXX_Merge(src proto.Message)
func (*RegisterCoinProposal) XXX_Size ¶
func (m *RegisterCoinProposal) XXX_Size() int
func (*RegisterCoinProposal) XXX_Unmarshal ¶
func (m *RegisterCoinProposal) XXX_Unmarshal(b []byte) error
type RegisterERC20Proposal
deprecated
type RegisterERC20Proposal struct { // title of the proposa string title = 1; Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` // proposal description Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // contract address of ERC20 token Erc20Address string `protobuf:"bytes,3,opt,name=erc20address,proto3" json:"erc20address,omitempty"` }
RegisterERC20Proposal is a gov Content type to register a token pair for an ERC20 token Deprecated: This legacy proposal is deprecated in favor of Msg-based gov proposals, see MsgRegisterERC20.
Deprecated: Do not use.
func (*RegisterERC20Proposal) Descriptor ¶
func (*RegisterERC20Proposal) Descriptor() ([]byte, []int)
func (*RegisterERC20Proposal) GetDescription ¶
func (m *RegisterERC20Proposal) GetDescription() string
func (*RegisterERC20Proposal) GetErc20Address ¶
func (m *RegisterERC20Proposal) GetErc20Address() string
func (*RegisterERC20Proposal) GetTitle ¶
func (m *RegisterERC20Proposal) GetTitle() string
func (*RegisterERC20Proposal) Marshal ¶
func (m *RegisterERC20Proposal) Marshal() (dAtA []byte, err error)
func (*RegisterERC20Proposal) MarshalTo ¶
func (m *RegisterERC20Proposal) MarshalTo(dAtA []byte) (int, error)
func (*RegisterERC20Proposal) MarshalToSizedBuffer ¶
func (m *RegisterERC20Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RegisterERC20Proposal) ProposalRoute ¶
func (*RegisterERC20Proposal) ProposalRoute() string
ProposalRoute returns router key for this proposal
func (*RegisterERC20Proposal) ProposalType ¶
func (*RegisterERC20Proposal) ProposalType() string
ProposalType returns proposal type for this proposal
func (*RegisterERC20Proposal) ProtoMessage ¶
func (*RegisterERC20Proposal) ProtoMessage()
func (*RegisterERC20Proposal) Reset ¶
func (m *RegisterERC20Proposal) Reset()
func (*RegisterERC20Proposal) Size ¶
func (m *RegisterERC20Proposal) Size() (n int)
func (*RegisterERC20Proposal) String ¶
func (m *RegisterERC20Proposal) String() string
func (*RegisterERC20Proposal) Unmarshal ¶
func (m *RegisterERC20Proposal) Unmarshal(dAtA []byte) error
func (*RegisterERC20Proposal) ValidateBasic ¶
func (rtbp *RegisterERC20Proposal) ValidateBasic() error
ValidateBasic performs a stateless check of the proposal fields
func (*RegisterERC20Proposal) XXX_DiscardUnknown ¶
func (m *RegisterERC20Proposal) XXX_DiscardUnknown()
func (*RegisterERC20Proposal) XXX_Marshal ¶
func (m *RegisterERC20Proposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RegisterERC20Proposal) XXX_Merge ¶
func (m *RegisterERC20Proposal) XXX_Merge(src proto.Message)
func (*RegisterERC20Proposal) XXX_Size ¶
func (m *RegisterERC20Proposal) XXX_Size() int
func (*RegisterERC20Proposal) XXX_Unmarshal ¶
func (m *RegisterERC20Proposal) XXX_Unmarshal(b []byte) error
type ToggleTokenConversionProposal
deprecated
type ToggleTokenConversionProposal struct { // title of the proposal Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` // proposal description Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // token identifier can be either the hex contract address of the ERC20 or the // Cosmos base denomination Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` }
ToggleTokenConversionProposal is a gov Content type to toggle the conversion of a token pair. Deprecated: This legacy proposal is deprecated in favor of Msg-based gov proposals, see MsgToggleTokenConversion.
Deprecated: Do not use.
func (*ToggleTokenConversionProposal) Descriptor ¶
func (*ToggleTokenConversionProposal) Descriptor() ([]byte, []int)
func (*ToggleTokenConversionProposal) GetDescription ¶
func (m *ToggleTokenConversionProposal) GetDescription() string
func (*ToggleTokenConversionProposal) GetTitle ¶
func (m *ToggleTokenConversionProposal) GetTitle() string
func (*ToggleTokenConversionProposal) GetToken ¶
func (m *ToggleTokenConversionProposal) GetToken() string
func (*ToggleTokenConversionProposal) Marshal ¶
func (m *ToggleTokenConversionProposal) Marshal() (dAtA []byte, err error)
func (*ToggleTokenConversionProposal) MarshalTo ¶
func (m *ToggleTokenConversionProposal) MarshalTo(dAtA []byte) (int, error)
func (*ToggleTokenConversionProposal) MarshalToSizedBuffer ¶
func (m *ToggleTokenConversionProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ToggleTokenConversionProposal) ProposalRoute ¶
func (*ToggleTokenConversionProposal) ProposalRoute() string
ProposalRoute returns router key for this proposal
func (*ToggleTokenConversionProposal) ProposalType ¶
func (*ToggleTokenConversionProposal) ProposalType() string
ProposalType returns proposal type for this proposal
func (*ToggleTokenConversionProposal) ProtoMessage ¶
func (*ToggleTokenConversionProposal) ProtoMessage()
func (*ToggleTokenConversionProposal) Reset ¶
func (m *ToggleTokenConversionProposal) Reset()
func (*ToggleTokenConversionProposal) Size ¶
func (m *ToggleTokenConversionProposal) Size() (n int)
func (*ToggleTokenConversionProposal) String ¶
func (m *ToggleTokenConversionProposal) String() string
func (*ToggleTokenConversionProposal) Unmarshal ¶
func (m *ToggleTokenConversionProposal) Unmarshal(dAtA []byte) error
func (*ToggleTokenConversionProposal) ValidateBasic ¶
func (ttcp *ToggleTokenConversionProposal) ValidateBasic() error
ValidateBasic performs a stateless check of the proposal fields
func (*ToggleTokenConversionProposal) XXX_DiscardUnknown ¶
func (m *ToggleTokenConversionProposal) XXX_DiscardUnknown()
func (*ToggleTokenConversionProposal) XXX_Marshal ¶
func (m *ToggleTokenConversionProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ToggleTokenConversionProposal) XXX_Merge ¶
func (m *ToggleTokenConversionProposal) XXX_Merge(src proto.Message)
func (*ToggleTokenConversionProposal) XXX_Size ¶
func (m *ToggleTokenConversionProposal) XXX_Size() int
func (*ToggleTokenConversionProposal) XXX_Unmarshal ¶
func (m *ToggleTokenConversionProposal) XXX_Unmarshal(b []byte) error
type TokenPair ¶
type TokenPair struct { // address of ERC20 contract token Erc20Address string `protobuf:"bytes,1,opt,name=erc20_address,json=erc20Address,proto3" json:"erc20_address,omitempty"` // cosmos base denomination to be mapped to Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` // shows token mapping enable status Enabled bool `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"` // ERC20 owner address ENUM (0 invalid, 1 ModuleAccount, 2 external address) ContractOwner Owner `` /* 127-byte string literal not displayed */ }
TokenPair defines an instance that records a pairing consisting of a native
Cosmos Coin and an ERC20 token address.
func NewTokenPair ¶
func NewTokenPair(erc20Address common.Address, denom string, enabled bool, contractOwner Owner) TokenPair
NewTokenPair returns an instance of TokenPair
func (*TokenPair) Descriptor ¶
func (*TokenPair) GetContractOwner ¶
func (TokenPair) GetERC20Contract ¶
GetErc20Contract casts the hex string address of the ERC20 to common.Address
func (*TokenPair) GetEnabled ¶
func (*TokenPair) GetErc20Address ¶
func (TokenPair) IsNativeCoin ¶
IsNativeCoin returns true if the owner of the ERC20 contract is the erc20 module account
func (TokenPair) IsNativeERC20 ¶
IsNativeERC20 returns true if the owner of the ERC20 contract not the erc20 module account
func (*TokenPair) MarshalToSizedBuffer ¶
func (*TokenPair) ProtoMessage ¶
func (*TokenPair) ProtoMessage()
func (*TokenPair) XXX_DiscardUnknown ¶
func (m *TokenPair) XXX_DiscardUnknown()
func (*TokenPair) XXX_Marshal ¶
func (*TokenPair) XXX_Unmarshal ¶
type TokenPairDenomIndex ¶
type TokenPairDenomIndex struct { Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` TokenPairId []byte `protobuf:"bytes,2,opt,name=token_pair_id,json=tokenPairId,proto3" json:"token_pair_id,omitempty"` }
TokenPairDenomIndex is a mapping of a token pair's denom to its token pair ID.
func (*TokenPairDenomIndex) Descriptor ¶
func (*TokenPairDenomIndex) Descriptor() ([]byte, []int)
func (*TokenPairDenomIndex) Equal ¶
func (this *TokenPairDenomIndex) Equal(that interface{}) bool
func (*TokenPairDenomIndex) GetDenom ¶
func (m *TokenPairDenomIndex) GetDenom() string
func (*TokenPairDenomIndex) GetTokenPairId ¶
func (m *TokenPairDenomIndex) GetTokenPairId() []byte
func (*TokenPairDenomIndex) Marshal ¶
func (m *TokenPairDenomIndex) Marshal() (dAtA []byte, err error)
func (*TokenPairDenomIndex) MarshalTo ¶
func (m *TokenPairDenomIndex) MarshalTo(dAtA []byte) (int, error)
func (*TokenPairDenomIndex) MarshalToSizedBuffer ¶
func (m *TokenPairDenomIndex) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TokenPairDenomIndex) ProtoMessage ¶
func (*TokenPairDenomIndex) ProtoMessage()
func (*TokenPairDenomIndex) Reset ¶
func (m *TokenPairDenomIndex) Reset()
func (*TokenPairDenomIndex) Size ¶
func (m *TokenPairDenomIndex) Size() (n int)
func (*TokenPairDenomIndex) String ¶
func (m *TokenPairDenomIndex) String() string
func (*TokenPairDenomIndex) Unmarshal ¶
func (m *TokenPairDenomIndex) Unmarshal(dAtA []byte) error
func (*TokenPairDenomIndex) XXX_DiscardUnknown ¶
func (m *TokenPairDenomIndex) XXX_DiscardUnknown()
func (*TokenPairDenomIndex) XXX_Marshal ¶
func (m *TokenPairDenomIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TokenPairDenomIndex) XXX_Merge ¶
func (m *TokenPairDenomIndex) XXX_Merge(src proto.Message)
func (*TokenPairDenomIndex) XXX_Size ¶
func (m *TokenPairDenomIndex) XXX_Size() int
func (*TokenPairDenomIndex) XXX_Unmarshal ¶
func (m *TokenPairDenomIndex) XXX_Unmarshal(b []byte) error
type TokenPairERC20AddressIndex ¶
type TokenPairERC20AddressIndex struct { Erc20Address []byte `protobuf:"bytes,1,opt,name=erc20_address,json=erc20Address,proto3" json:"erc20_address,omitempty"` TokenPairId []byte `protobuf:"bytes,2,opt,name=token_pair_id,json=tokenPairId,proto3" json:"token_pair_id,omitempty"` }
TokenPairERC20AddressIndex is a mapping of a token pair's ERC20 address to its token pair ID.
func (*TokenPairERC20AddressIndex) Descriptor ¶
func (*TokenPairERC20AddressIndex) Descriptor() ([]byte, []int)
func (*TokenPairERC20AddressIndex) Equal ¶
func (this *TokenPairERC20AddressIndex) Equal(that interface{}) bool
func (*TokenPairERC20AddressIndex) GetErc20Address ¶
func (m *TokenPairERC20AddressIndex) GetErc20Address() []byte
func (*TokenPairERC20AddressIndex) GetTokenPairId ¶
func (m *TokenPairERC20AddressIndex) GetTokenPairId() []byte
func (*TokenPairERC20AddressIndex) Marshal ¶
func (m *TokenPairERC20AddressIndex) Marshal() (dAtA []byte, err error)
func (*TokenPairERC20AddressIndex) MarshalTo ¶
func (m *TokenPairERC20AddressIndex) MarshalTo(dAtA []byte) (int, error)
func (*TokenPairERC20AddressIndex) MarshalToSizedBuffer ¶
func (m *TokenPairERC20AddressIndex) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TokenPairERC20AddressIndex) ProtoMessage ¶
func (*TokenPairERC20AddressIndex) ProtoMessage()
func (*TokenPairERC20AddressIndex) Reset ¶
func (m *TokenPairERC20AddressIndex) Reset()
func (*TokenPairERC20AddressIndex) Size ¶
func (m *TokenPairERC20AddressIndex) Size() (n int)
func (*TokenPairERC20AddressIndex) String ¶
func (m *TokenPairERC20AddressIndex) String() string
func (*TokenPairERC20AddressIndex) Unmarshal ¶
func (m *TokenPairERC20AddressIndex) Unmarshal(dAtA []byte) error
func (*TokenPairERC20AddressIndex) XXX_DiscardUnknown ¶
func (m *TokenPairERC20AddressIndex) XXX_DiscardUnknown()
func (*TokenPairERC20AddressIndex) XXX_Marshal ¶
func (m *TokenPairERC20AddressIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TokenPairERC20AddressIndex) XXX_Merge ¶
func (m *TokenPairERC20AddressIndex) XXX_Merge(src proto.Message)
func (*TokenPairERC20AddressIndex) XXX_Size ¶
func (m *TokenPairERC20AddressIndex) XXX_Size() int
func (*TokenPairERC20AddressIndex) XXX_Unmarshal ¶
func (m *TokenPairERC20AddressIndex) XXX_Unmarshal(b []byte) error
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) ConvertCoin ¶
func (*UnimplementedMsgServer) ConvertCoin(ctx context.Context, req *MsgConvertCoin) (*MsgConvertCoinResponse, error)
func (*UnimplementedMsgServer) ConvertERC20 ¶
func (*UnimplementedMsgServer) ConvertERC20(ctx context.Context, req *MsgConvertERC20) (*MsgConvertERC20Response, error)
func (*UnimplementedMsgServer) RegisterCoinProposal ¶
func (*UnimplementedMsgServer) RegisterCoinProposal(ctx context.Context, req *MsgRegisterCoin) (*MsgRegisterCoinResponse, error)
func (*UnimplementedMsgServer) RegisterERC20Proposal ¶
func (*UnimplementedMsgServer) RegisterERC20Proposal(ctx context.Context, req *MsgRegisterERC20) (*MsgRegisterERC20Response, error)
func (*UnimplementedMsgServer) ToggleTokenConversionProposal ¶
func (*UnimplementedMsgServer) ToggleTokenConversionProposal(ctx context.Context, req *MsgToggleTokenConversion) (*MsgToggleTokenConversionResponse, error)
func (*UnimplementedMsgServer) UpdateParams ¶
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) TokenPair ¶
func (*UnimplementedQueryServer) TokenPair(ctx context.Context, req *QueryTokenPairRequest) (*QueryTokenPairResponse, error)
func (*UnimplementedQueryServer) TokenPairs ¶
func (*UnimplementedQueryServer) TokenPairs(ctx context.Context, req *QueryTokenPairsRequest) (*QueryTokenPairsResponse, error)