Documentation ¶
Overview ¶
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Index ¶
- Constants
- Variables
- func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
- func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)deprecated
- func (x *GenesisState) GetDenomIndexes() []*TokenPairDenomIndex
- func (x *GenesisState) GetErc20AddressIndexes() []*TokenPairERC20AddressIndex
- func (x *GenesisState) GetParams() *Params
- func (x *GenesisState) GetTokenPairs() []*TokenPair
- func (*GenesisState) ProtoMessage()
- func (x *GenesisState) ProtoReflect() protoreflect.Message
- func (x *GenesisState) Reset()
- func (x *GenesisState) String() string
- type MsgClient
- type MsgConvertCoin
- func (*MsgConvertCoin) Descriptor() ([]byte, []int)deprecated
- func (x *MsgConvertCoin) GetCoin() *v1beta1.Coin
- func (x *MsgConvertCoin) GetReceiver() string
- func (x *MsgConvertCoin) GetSender() string
- func (*MsgConvertCoin) ProtoMessage()
- func (x *MsgConvertCoin) ProtoReflect() protoreflect.Message
- func (x *MsgConvertCoin) Reset()
- func (x *MsgConvertCoin) String() string
- type MsgConvertCoinResponse
- type MsgConvertERC20
- func (*MsgConvertERC20) Descriptor() ([]byte, []int)deprecated
- func (x *MsgConvertERC20) GetAmount() string
- func (x *MsgConvertERC20) GetContractAddress() string
- func (x *MsgConvertERC20) GetReceiver() string
- func (x *MsgConvertERC20) GetSender() string
- func (*MsgConvertERC20) ProtoMessage()
- func (x *MsgConvertERC20) ProtoReflect() protoreflect.Message
- func (x *MsgConvertERC20) Reset()
- func (x *MsgConvertERC20) String() string
- type MsgConvertERC20Response
- type MsgRegisterCoin
- func (*MsgRegisterCoin) Descriptor() ([]byte, []int)deprecated
- func (x *MsgRegisterCoin) GetAuthority() string
- func (x *MsgRegisterCoin) GetDescription() string
- func (x *MsgRegisterCoin) GetMetadata() *v1beta11.Metadata
- func (x *MsgRegisterCoin) GetTitle() string
- func (*MsgRegisterCoin) ProtoMessage()
- func (x *MsgRegisterCoin) ProtoReflect() protoreflect.Message
- func (x *MsgRegisterCoin) Reset()
- func (x *MsgRegisterCoin) String() string
- type MsgRegisterCoinResponse
- type MsgRegisterERC20
- func (*MsgRegisterERC20) Descriptor() ([]byte, []int)deprecated
- func (x *MsgRegisterERC20) GetAuthority() string
- func (x *MsgRegisterERC20) GetDescription() string
- func (x *MsgRegisterERC20) GetErc20Address() string
- func (x *MsgRegisterERC20) GetTitle() string
- func (*MsgRegisterERC20) ProtoMessage()
- func (x *MsgRegisterERC20) ProtoReflect() protoreflect.Message
- func (x *MsgRegisterERC20) Reset()
- func (x *MsgRegisterERC20) String() string
- type MsgRegisterERC20Response
- type MsgServer
- type MsgToggleTokenConversion
- func (*MsgToggleTokenConversion) Descriptor() ([]byte, []int)deprecated
- func (x *MsgToggleTokenConversion) GetAuthority() string
- func (x *MsgToggleTokenConversion) GetDescription() string
- func (x *MsgToggleTokenConversion) GetTitle() string
- func (x *MsgToggleTokenConversion) GetToken() string
- func (*MsgToggleTokenConversion) ProtoMessage()
- func (x *MsgToggleTokenConversion) ProtoReflect() protoreflect.Message
- func (x *MsgToggleTokenConversion) Reset()
- func (x *MsgToggleTokenConversion) String() string
- type MsgToggleTokenConversionResponse
- func (*MsgToggleTokenConversionResponse) Descriptor() ([]byte, []int)deprecated
- func (*MsgToggleTokenConversionResponse) ProtoMessage()
- func (x *MsgToggleTokenConversionResponse) ProtoReflect() protoreflect.Message
- func (x *MsgToggleTokenConversionResponse) Reset()
- func (x *MsgToggleTokenConversionResponse) String() string
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUpdateParams) GetAuthority() string
- func (x *MsgUpdateParams) GetParams() *Params
- func (*MsgUpdateParams) ProtoMessage()
- func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateParams) Reset()
- func (x *MsgUpdateParams) String() string
- type MsgUpdateParamsResponse
- type Owner
- type Params
- type QueryClient
- type QueryParamsRequest
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryParamsResponse) GetParams() *Params
- func (*QueryParamsResponse) ProtoMessage()
- func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryParamsResponse) Reset()
- func (x *QueryParamsResponse) String() string
- type QueryServer
- type QueryTokenPairRequest
- func (*QueryTokenPairRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryTokenPairRequest) GetToken() string
- func (*QueryTokenPairRequest) ProtoMessage()
- func (x *QueryTokenPairRequest) ProtoReflect() protoreflect.Message
- func (x *QueryTokenPairRequest) Reset()
- func (x *QueryTokenPairRequest) String() string
- type QueryTokenPairResponse
- func (*QueryTokenPairResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryTokenPairResponse) GetTokenPair() *TokenPair
- func (*QueryTokenPairResponse) ProtoMessage()
- func (x *QueryTokenPairResponse) ProtoReflect() protoreflect.Message
- func (x *QueryTokenPairResponse) Reset()
- func (x *QueryTokenPairResponse) String() string
- type QueryTokenPairsRequest
- func (*QueryTokenPairsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryTokenPairsRequest) GetPagination() *v1beta1.PageRequest
- func (*QueryTokenPairsRequest) ProtoMessage()
- func (x *QueryTokenPairsRequest) ProtoReflect() protoreflect.Message
- func (x *QueryTokenPairsRequest) Reset()
- func (x *QueryTokenPairsRequest) String() string
- type QueryTokenPairsResponse
- func (*QueryTokenPairsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryTokenPairsResponse) GetPagination() *v1beta1.PageResponse
- func (x *QueryTokenPairsResponse) GetTokenPairs() []*TokenPair
- func (*QueryTokenPairsResponse) ProtoMessage()
- func (x *QueryTokenPairsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryTokenPairsResponse) Reset()
- func (x *QueryTokenPairsResponse) String() string
- type RegisterCoinProposaldeprecated
- func (*RegisterCoinProposal) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterCoinProposal) GetDescription() string
- func (x *RegisterCoinProposal) GetMetadata() *v1beta1.Metadata
- func (x *RegisterCoinProposal) GetTitle() string
- func (*RegisterCoinProposal) ProtoMessage()
- func (x *RegisterCoinProposal) ProtoReflect() protoreflect.Message
- func (x *RegisterCoinProposal) Reset()
- func (x *RegisterCoinProposal) String() string
- type RegisterERC20Proposaldeprecated
- func (*RegisterERC20Proposal) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterERC20Proposal) GetDescription() string
- func (x *RegisterERC20Proposal) GetErc20Address() string
- func (x *RegisterERC20Proposal) GetTitle() string
- func (*RegisterERC20Proposal) ProtoMessage()
- func (x *RegisterERC20Proposal) ProtoReflect() protoreflect.Message
- func (x *RegisterERC20Proposal) Reset()
- func (x *RegisterERC20Proposal) String() string
- type ToggleTokenConversionProposaldeprecated
- func (*ToggleTokenConversionProposal) Descriptor() ([]byte, []int)deprecated
- func (x *ToggleTokenConversionProposal) GetDescription() string
- func (x *ToggleTokenConversionProposal) GetTitle() string
- func (x *ToggleTokenConversionProposal) GetToken() string
- func (*ToggleTokenConversionProposal) ProtoMessage()
- func (x *ToggleTokenConversionProposal) ProtoReflect() protoreflect.Message
- func (x *ToggleTokenConversionProposal) Reset()
- func (x *ToggleTokenConversionProposal) String() string
- type TokenPair
- func (*TokenPair) Descriptor() ([]byte, []int)deprecated
- func (x *TokenPair) GetContractOwner() Owner
- func (x *TokenPair) GetDenom() string
- func (x *TokenPair) GetEnabled() bool
- func (x *TokenPair) GetErc20Address() string
- func (*TokenPair) ProtoMessage()
- func (x *TokenPair) ProtoReflect() protoreflect.Message
- func (x *TokenPair) Reset()
- func (x *TokenPair) String() string
- type TokenPairDenomIndex
- func (*TokenPairDenomIndex) Descriptor() ([]byte, []int)deprecated
- func (x *TokenPairDenomIndex) GetDenom() string
- func (x *TokenPairDenomIndex) GetTokenPairId() []byte
- func (*TokenPairDenomIndex) ProtoMessage()
- func (x *TokenPairDenomIndex) ProtoReflect() protoreflect.Message
- func (x *TokenPairDenomIndex) Reset()
- func (x *TokenPairDenomIndex) String() string
- type TokenPairERC20AddressIndex
- func (*TokenPairERC20AddressIndex) Descriptor() ([]byte, []int)deprecated
- func (x *TokenPairERC20AddressIndex) GetErc20Address() []byte
- func (x *TokenPairERC20AddressIndex) GetTokenPairId() []byte
- func (*TokenPairERC20AddressIndex) ProtoMessage()
- func (x *TokenPairERC20AddressIndex) ProtoReflect() protoreflect.Message
- func (x *TokenPairERC20AddressIndex) Reset()
- func (x *TokenPairERC20AddressIndex) String() string
- type UnimplementedMsgServer
- func (UnimplementedMsgServer) ConvertCoin(context.Context, *MsgConvertCoin) (*MsgConvertCoinResponse, error)
- func (UnimplementedMsgServer) ConvertERC20(context.Context, *MsgConvertERC20) (*MsgConvertERC20Response, error)
- func (UnimplementedMsgServer) RegisterCoinProposal(context.Context, *MsgRegisterCoin) (*MsgRegisterCoinResponse, error)
- func (UnimplementedMsgServer) RegisterERC20Proposal(context.Context, *MsgRegisterERC20) (*MsgRegisterERC20Response, error)
- func (UnimplementedMsgServer) ToggleTokenConversionProposal(context.Context, *MsgToggleTokenConversion) (*MsgToggleTokenConversionResponse, error)
- func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- type UnimplementedQueryServer
- func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
- func (UnimplementedQueryServer) TokenPair(context.Context, *QueryTokenPairRequest) (*QueryTokenPairResponse, error)
- func (UnimplementedQueryServer) TokenPairs(context.Context, *QueryTokenPairsRequest) (*QueryTokenPairsResponse, error)
- type UnsafeMsgServer
- type UnsafeQueryServer
Constants ¶
const ( Query_TokenPairs_FullMethodName = "/canto.erc20.v1.Query/TokenPairs" Query_TokenPair_FullMethodName = "/canto.erc20.v1.Query/TokenPair" Query_Params_FullMethodName = "/canto.erc20.v1.Query/Params" )
const ( Msg_ConvertCoin_FullMethodName = "/canto.erc20.v1.Msg/ConvertCoin" Msg_ConvertERC20_FullMethodName = "/canto.erc20.v1.Msg/ConvertERC20" Msg_UpdateParams_FullMethodName = "/canto.erc20.v1.Msg/UpdateParams" Msg_RegisterCoinProposal_FullMethodName = "/canto.erc20.v1.Msg/RegisterCoinProposal" Msg_RegisterERC20Proposal_FullMethodName = "/canto.erc20.v1.Msg/RegisterERC20Proposal" Msg_ToggleTokenConversionProposal_FullMethodName = "/canto.erc20.v1.Msg/ToggleTokenConversionProposal" )
Variables ¶
var ( Owner_name = map[int32]string{ 0: "OWNER_UNSPECIFIED", 1: "OWNER_MODULE", 2: "OWNER_EXTERNAL", } Owner_value = map[string]int32{ "OWNER_UNSPECIFIED": 0, "OWNER_MODULE": 1, "OWNER_EXTERNAL": 2, } )
Enum value maps for Owner.
var File_canto_erc20_v1_erc20_proto protoreflect.FileDescriptor
var File_canto_erc20_v1_genesis_proto protoreflect.FileDescriptor
var File_canto_erc20_v1_query_proto protoreflect.FileDescriptor
var File_canto_erc20_v1_tx_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "canto.erc20.v1.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ConvertCoin", Handler: _Msg_ConvertCoin_Handler, }, { MethodName: "ConvertERC20", Handler: _Msg_ConvertERC20_Handler, }, { MethodName: "UpdateParams", Handler: _Msg_UpdateParams_Handler, }, { MethodName: "RegisterCoinProposal", Handler: _Msg_RegisterCoinProposal_Handler, }, { MethodName: "RegisterERC20Proposal", Handler: _Msg_RegisterERC20Proposal_Handler, }, { MethodName: "ToggleTokenConversionProposal", Handler: _Msg_ToggleTokenConversionProposal_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "canto/erc20/v1/tx.proto", }
Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Query_ServiceDesc = grpc.ServiceDesc{ ServiceName: "canto.erc20.v1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "TokenPairs", Handler: _Query_TokenPairs_Handler, }, { MethodName: "TokenPair", Handler: _Query_TokenPair_Handler, }, { MethodName: "Params", Handler: _Query_Params_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "canto/erc20/v1/query.proto", }
Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMsgServer ¶
func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
Types ¶
type GenesisState ¶
type GenesisState struct { // module parameters Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` // registered token pairs TokenPairs []*TokenPair `protobuf:"bytes,2,rep,name=token_pairs,json=tokenPairs,proto3" json:"token_pairs,omitempty"` // 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,omitempty"` // 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,omitempty"` // contains filtered or unexported fields }
GenesisState defines the module's genesis state.
func (*GenesisState) Descriptor
deprecated
func (*GenesisState) Descriptor() ([]byte, []int)
Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) GetDenomIndexes ¶
func (x *GenesisState) GetDenomIndexes() []*TokenPairDenomIndex
func (*GenesisState) GetErc20AddressIndexes ¶
func (x *GenesisState) GetErc20AddressIndexes() []*TokenPairERC20AddressIndex
func (*GenesisState) GetParams ¶
func (x *GenesisState) GetParams() *Params
func (*GenesisState) GetTokenPairs ¶
func (x *GenesisState) GetTokenPairs() []*TokenPair
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) ProtoReflect ¶
func (x *GenesisState) ProtoReflect() protoreflect.Message
func (*GenesisState) Reset ¶
func (x *GenesisState) Reset()
func (*GenesisState) String ¶
func (x *GenesisState) String() string
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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc.ClientConnInterface) 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 *v1beta1.Coin `protobuf:"bytes,1,opt,name=coin,proto3" json:"coin,omitempty"` // 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"` // contains filtered or unexported fields }
MsgConvertCoin defines a Msg to convert a native Cosmos coin to a ERC20 token
func (*MsgConvertCoin) Descriptor
deprecated
func (*MsgConvertCoin) Descriptor() ([]byte, []int)
Deprecated: Use MsgConvertCoin.ProtoReflect.Descriptor instead.
func (*MsgConvertCoin) GetCoin ¶
func (x *MsgConvertCoin) GetCoin() *v1beta1.Coin
func (*MsgConvertCoin) GetReceiver ¶
func (x *MsgConvertCoin) GetReceiver() string
func (*MsgConvertCoin) GetSender ¶
func (x *MsgConvertCoin) GetSender() string
func (*MsgConvertCoin) ProtoMessage ¶
func (*MsgConvertCoin) ProtoMessage()
func (*MsgConvertCoin) ProtoReflect ¶
func (x *MsgConvertCoin) ProtoReflect() protoreflect.Message
func (*MsgConvertCoin) Reset ¶
func (x *MsgConvertCoin) Reset()
func (*MsgConvertCoin) String ¶
func (x *MsgConvertCoin) String() string
type MsgConvertCoinResponse ¶
type MsgConvertCoinResponse struct {
// contains filtered or unexported fields
}
MsgConvertCoinResponse returns no fields
func (*MsgConvertCoinResponse) Descriptor
deprecated
func (*MsgConvertCoinResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgConvertCoinResponse.ProtoReflect.Descriptor instead.
func (*MsgConvertCoinResponse) ProtoMessage ¶
func (*MsgConvertCoinResponse) ProtoMessage()
func (*MsgConvertCoinResponse) ProtoReflect ¶
func (x *MsgConvertCoinResponse) ProtoReflect() protoreflect.Message
func (*MsgConvertCoinResponse) Reset ¶
func (x *MsgConvertCoinResponse) Reset()
func (*MsgConvertCoinResponse) String ¶
func (x *MsgConvertCoinResponse) String() string
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 string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` // 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"` // contains filtered or unexported fields }
MsgConvertERC20 defines a Msg to convert a ERC20 token to a native Cosmos coin.
func (*MsgConvertERC20) Descriptor
deprecated
func (*MsgConvertERC20) Descriptor() ([]byte, []int)
Deprecated: Use MsgConvertERC20.ProtoReflect.Descriptor instead.
func (*MsgConvertERC20) GetAmount ¶
func (x *MsgConvertERC20) GetAmount() string
func (*MsgConvertERC20) GetContractAddress ¶
func (x *MsgConvertERC20) GetContractAddress() string
func (*MsgConvertERC20) GetReceiver ¶
func (x *MsgConvertERC20) GetReceiver() string
func (*MsgConvertERC20) GetSender ¶
func (x *MsgConvertERC20) GetSender() string
func (*MsgConvertERC20) ProtoMessage ¶
func (*MsgConvertERC20) ProtoMessage()
func (*MsgConvertERC20) ProtoReflect ¶
func (x *MsgConvertERC20) ProtoReflect() protoreflect.Message
func (*MsgConvertERC20) Reset ¶
func (x *MsgConvertERC20) Reset()
func (*MsgConvertERC20) String ¶
func (x *MsgConvertERC20) String() string
type MsgConvertERC20Response ¶
type MsgConvertERC20Response struct {
// contains filtered or unexported fields
}
MsgConvertERC20Response returns no fields
func (*MsgConvertERC20Response) Descriptor
deprecated
func (*MsgConvertERC20Response) Descriptor() ([]byte, []int)
Deprecated: Use MsgConvertERC20Response.ProtoReflect.Descriptor instead.
func (*MsgConvertERC20Response) ProtoMessage ¶
func (*MsgConvertERC20Response) ProtoMessage()
func (*MsgConvertERC20Response) ProtoReflect ¶
func (x *MsgConvertERC20Response) ProtoReflect() protoreflect.Message
func (*MsgConvertERC20Response) Reset ¶
func (x *MsgConvertERC20Response) Reset()
func (*MsgConvertERC20Response) String ¶
func (x *MsgConvertERC20Response) String() string
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 *v1beta11.Metadata `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
MsgRegisterCoin is a gov Content type to register a token pair for a native Cosmos coin.
func (*MsgRegisterCoin) Descriptor
deprecated
func (*MsgRegisterCoin) Descriptor() ([]byte, []int)
Deprecated: Use MsgRegisterCoin.ProtoReflect.Descriptor instead.
func (*MsgRegisterCoin) GetAuthority ¶
func (x *MsgRegisterCoin) GetAuthority() string
func (*MsgRegisterCoin) GetDescription ¶
func (x *MsgRegisterCoin) GetDescription() string
func (*MsgRegisterCoin) GetMetadata ¶
func (x *MsgRegisterCoin) GetMetadata() *v1beta11.Metadata
func (*MsgRegisterCoin) GetTitle ¶
func (x *MsgRegisterCoin) GetTitle() string
func (*MsgRegisterCoin) ProtoMessage ¶
func (*MsgRegisterCoin) ProtoMessage()
func (*MsgRegisterCoin) ProtoReflect ¶
func (x *MsgRegisterCoin) ProtoReflect() protoreflect.Message
func (*MsgRegisterCoin) Reset ¶
func (x *MsgRegisterCoin) Reset()
func (*MsgRegisterCoin) String ¶
func (x *MsgRegisterCoin) String() string
type MsgRegisterCoinResponse ¶
type MsgRegisterCoinResponse struct {
// contains filtered or unexported fields
}
func (*MsgRegisterCoinResponse) Descriptor
deprecated
func (*MsgRegisterCoinResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgRegisterCoinResponse.ProtoReflect.Descriptor instead.
func (*MsgRegisterCoinResponse) ProtoMessage ¶
func (*MsgRegisterCoinResponse) ProtoMessage()
func (*MsgRegisterCoinResponse) ProtoReflect ¶
func (x *MsgRegisterCoinResponse) ProtoReflect() protoreflect.Message
func (*MsgRegisterCoinResponse) Reset ¶
func (x *MsgRegisterCoinResponse) Reset()
func (*MsgRegisterCoinResponse) String ¶
func (x *MsgRegisterCoinResponse) String() string
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"` // contains filtered or unexported fields }
MsgRegisterERC20 is a gov Content type to register a token pair for an ERC20 token
func (*MsgRegisterERC20) Descriptor
deprecated
func (*MsgRegisterERC20) Descriptor() ([]byte, []int)
Deprecated: Use MsgRegisterERC20.ProtoReflect.Descriptor instead.
func (*MsgRegisterERC20) GetAuthority ¶
func (x *MsgRegisterERC20) GetAuthority() string
func (*MsgRegisterERC20) GetDescription ¶
func (x *MsgRegisterERC20) GetDescription() string
func (*MsgRegisterERC20) GetErc20Address ¶
func (x *MsgRegisterERC20) GetErc20Address() string
func (*MsgRegisterERC20) GetTitle ¶
func (x *MsgRegisterERC20) GetTitle() string
func (*MsgRegisterERC20) ProtoMessage ¶
func (*MsgRegisterERC20) ProtoMessage()
func (*MsgRegisterERC20) ProtoReflect ¶
func (x *MsgRegisterERC20) ProtoReflect() protoreflect.Message
func (*MsgRegisterERC20) Reset ¶
func (x *MsgRegisterERC20) Reset()
func (*MsgRegisterERC20) String ¶
func (x *MsgRegisterERC20) String() string
type MsgRegisterERC20Response ¶
type MsgRegisterERC20Response struct {
// contains filtered or unexported fields
}
func (*MsgRegisterERC20Response) Descriptor
deprecated
func (*MsgRegisterERC20Response) Descriptor() ([]byte, []int)
Deprecated: Use MsgRegisterERC20Response.ProtoReflect.Descriptor instead.
func (*MsgRegisterERC20Response) ProtoMessage ¶
func (*MsgRegisterERC20Response) ProtoMessage()
func (*MsgRegisterERC20Response) ProtoReflect ¶
func (x *MsgRegisterERC20Response) ProtoReflect() protoreflect.Message
func (*MsgRegisterERC20Response) Reset ¶
func (x *MsgRegisterERC20Response) Reset()
func (*MsgRegisterERC20Response) String ¶
func (x *MsgRegisterERC20Response) String() string
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) // contains filtered or unexported methods }
MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility
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"` // contains filtered or unexported fields }
MsgToggleTokenConversion is a gov Content type to toggle the conversion of a token pair.
func (*MsgToggleTokenConversion) Descriptor
deprecated
func (*MsgToggleTokenConversion) Descriptor() ([]byte, []int)
Deprecated: Use MsgToggleTokenConversion.ProtoReflect.Descriptor instead.
func (*MsgToggleTokenConversion) GetAuthority ¶
func (x *MsgToggleTokenConversion) GetAuthority() string
func (*MsgToggleTokenConversion) GetDescription ¶
func (x *MsgToggleTokenConversion) GetDescription() string
func (*MsgToggleTokenConversion) GetTitle ¶
func (x *MsgToggleTokenConversion) GetTitle() string
func (*MsgToggleTokenConversion) GetToken ¶
func (x *MsgToggleTokenConversion) GetToken() string
func (*MsgToggleTokenConversion) ProtoMessage ¶
func (*MsgToggleTokenConversion) ProtoMessage()
func (*MsgToggleTokenConversion) ProtoReflect ¶
func (x *MsgToggleTokenConversion) ProtoReflect() protoreflect.Message
func (*MsgToggleTokenConversion) Reset ¶
func (x *MsgToggleTokenConversion) Reset()
func (*MsgToggleTokenConversion) String ¶
func (x *MsgToggleTokenConversion) String() string
type MsgToggleTokenConversionResponse ¶
type MsgToggleTokenConversionResponse struct {
// contains filtered or unexported fields
}
func (*MsgToggleTokenConversionResponse) Descriptor
deprecated
func (*MsgToggleTokenConversionResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgToggleTokenConversionResponse.ProtoReflect.Descriptor instead.
func (*MsgToggleTokenConversionResponse) ProtoMessage ¶
func (*MsgToggleTokenConversionResponse) ProtoMessage()
func (*MsgToggleTokenConversionResponse) ProtoReflect ¶
func (x *MsgToggleTokenConversionResponse) ProtoReflect() protoreflect.Message
func (*MsgToggleTokenConversionResponse) Reset ¶
func (x *MsgToggleTokenConversionResponse) Reset()
func (*MsgToggleTokenConversionResponse) String ¶
func (x *MsgToggleTokenConversionResponse) String() string
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,omitempty"` // contains filtered or unexported fields }
func (*MsgUpdateParams) Descriptor
deprecated
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.
func (*MsgUpdateParams) GetAuthority ¶
func (x *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶
func (x *MsgUpdateParams) GetParams() *Params
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) ProtoReflect ¶
func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message
func (*MsgUpdateParams) Reset ¶
func (x *MsgUpdateParams) Reset()
func (*MsgUpdateParams) String ¶
func (x *MsgUpdateParams) String() string
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct {
// contains filtered or unexported fields
}
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
Since: cosmos-sdk 0.47
func (*MsgUpdateParamsResponse) Descriptor
deprecated
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) ProtoReflect ¶
func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message
func (*MsgUpdateParamsResponse) Reset ¶
func (x *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) String ¶
func (x *MsgUpdateParamsResponse) String() string
type Owner ¶
type Owner int32
Owner enumerates the ownership of a ERC20 contract.
func (Owner) Descriptor ¶
func (Owner) Descriptor() protoreflect.EnumDescriptor
func (Owner) EnumDescriptor
deprecated
func (Owner) Number ¶
func (x Owner) Number() protoreflect.EnumNumber
func (Owner) Type ¶
func (Owner) Type() protoreflect.EnumType
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"` // contains filtered or unexported fields }
Params defines the erc20 module params
func (*Params) Descriptor
deprecated
func (*Params) GetEnableErc20 ¶
func (*Params) GetEnableEvmHook ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) ProtoReflect ¶
func (x *Params) ProtoReflect() protoreflect.Message
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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient
type QueryParamsRequest ¶
type QueryParamsRequest struct {
// contains filtered or unexported fields
}
QueryParamsRequest is the request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor
deprecated
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) ProtoReflect ¶
func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message
func (*QueryParamsRequest) Reset ¶
func (x *QueryParamsRequest) Reset()
func (*QueryParamsRequest) String ¶
func (x *QueryParamsRequest) String() string
type QueryParamsResponse ¶
type QueryParamsResponse struct { Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
QueryParamsResponse is the response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor
deprecated
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.
func (*QueryParamsResponse) GetParams ¶
func (x *QueryParamsResponse) GetParams() *Params
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) ProtoReflect ¶
func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message
func (*QueryParamsResponse) Reset ¶
func (x *QueryParamsResponse) Reset()
func (*QueryParamsResponse) String ¶
func (x *QueryParamsResponse) String() string
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) // contains filtered or unexported methods }
QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility
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"` // contains filtered or unexported fields }
QueryTokenPairRequest is the request type for the Query/TokenPair RPC method.
func (*QueryTokenPairRequest) Descriptor
deprecated
func (*QueryTokenPairRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryTokenPairRequest.ProtoReflect.Descriptor instead.
func (*QueryTokenPairRequest) GetToken ¶
func (x *QueryTokenPairRequest) GetToken() string
func (*QueryTokenPairRequest) ProtoMessage ¶
func (*QueryTokenPairRequest) ProtoMessage()
func (*QueryTokenPairRequest) ProtoReflect ¶
func (x *QueryTokenPairRequest) ProtoReflect() protoreflect.Message
func (*QueryTokenPairRequest) Reset ¶
func (x *QueryTokenPairRequest) Reset()
func (*QueryTokenPairRequest) String ¶
func (x *QueryTokenPairRequest) String() string
type QueryTokenPairResponse ¶
type QueryTokenPairResponse struct { TokenPair *TokenPair `protobuf:"bytes,1,opt,name=token_pair,json=tokenPair,proto3" json:"token_pair,omitempty"` // contains filtered or unexported fields }
QueryTokenPairResponse is the response type for the Query/TokenPair RPC method.
func (*QueryTokenPairResponse) Descriptor
deprecated
func (*QueryTokenPairResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryTokenPairResponse.ProtoReflect.Descriptor instead.
func (*QueryTokenPairResponse) GetTokenPair ¶
func (x *QueryTokenPairResponse) GetTokenPair() *TokenPair
func (*QueryTokenPairResponse) ProtoMessage ¶
func (*QueryTokenPairResponse) ProtoMessage()
func (*QueryTokenPairResponse) ProtoReflect ¶
func (x *QueryTokenPairResponse) ProtoReflect() protoreflect.Message
func (*QueryTokenPairResponse) Reset ¶
func (x *QueryTokenPairResponse) Reset()
func (*QueryTokenPairResponse) String ¶
func (x *QueryTokenPairResponse) String() string
type QueryTokenPairsRequest ¶
type QueryTokenPairsRequest struct { // pagination defines an optional pagination for the request. Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QueryTokenPairsRequest is the request type for the Query/TokenPairs RPC method.
func (*QueryTokenPairsRequest) Descriptor
deprecated
func (*QueryTokenPairsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryTokenPairsRequest.ProtoReflect.Descriptor instead.
func (*QueryTokenPairsRequest) GetPagination ¶
func (x *QueryTokenPairsRequest) GetPagination() *v1beta1.PageRequest
func (*QueryTokenPairsRequest) ProtoMessage ¶
func (*QueryTokenPairsRequest) ProtoMessage()
func (*QueryTokenPairsRequest) ProtoReflect ¶
func (x *QueryTokenPairsRequest) ProtoReflect() protoreflect.Message
func (*QueryTokenPairsRequest) Reset ¶
func (x *QueryTokenPairsRequest) Reset()
func (*QueryTokenPairsRequest) String ¶
func (x *QueryTokenPairsRequest) String() string
type QueryTokenPairsResponse ¶
type QueryTokenPairsResponse struct { TokenPairs []*TokenPair `protobuf:"bytes,1,rep,name=token_pairs,json=tokenPairs,proto3" json:"token_pairs,omitempty"` // pagination defines the pagination in the response. Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QueryTokenPairsResponse is the response type for the Query/TokenPairs RPC method.
func (*QueryTokenPairsResponse) Descriptor
deprecated
func (*QueryTokenPairsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryTokenPairsResponse.ProtoReflect.Descriptor instead.
func (*QueryTokenPairsResponse) GetPagination ¶
func (x *QueryTokenPairsResponse) GetPagination() *v1beta1.PageResponse
func (*QueryTokenPairsResponse) GetTokenPairs ¶
func (x *QueryTokenPairsResponse) GetTokenPairs() []*TokenPair
func (*QueryTokenPairsResponse) ProtoMessage ¶
func (*QueryTokenPairsResponse) ProtoMessage()
func (*QueryTokenPairsResponse) ProtoReflect ¶
func (x *QueryTokenPairsResponse) ProtoReflect() protoreflect.Message
func (*QueryTokenPairsResponse) Reset ¶
func (x *QueryTokenPairsResponse) Reset()
func (*QueryTokenPairsResponse) String ¶
func (x *QueryTokenPairsResponse) String() string
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 *v1beta1.Metadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
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
deprecated
func (*RegisterCoinProposal) Descriptor() ([]byte, []int)
Deprecated: Use RegisterCoinProposal.ProtoReflect.Descriptor instead.
func (*RegisterCoinProposal) GetDescription ¶
func (x *RegisterCoinProposal) GetDescription() string
func (*RegisterCoinProposal) GetMetadata ¶
func (x *RegisterCoinProposal) GetMetadata() *v1beta1.Metadata
func (*RegisterCoinProposal) GetTitle ¶
func (x *RegisterCoinProposal) GetTitle() string
func (*RegisterCoinProposal) ProtoMessage ¶
func (*RegisterCoinProposal) ProtoMessage()
func (*RegisterCoinProposal) ProtoReflect ¶
func (x *RegisterCoinProposal) ProtoReflect() protoreflect.Message
func (*RegisterCoinProposal) Reset ¶
func (x *RegisterCoinProposal) Reset()
func (*RegisterCoinProposal) String ¶
func (x *RegisterCoinProposal) String() string
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"` // contains filtered or unexported fields }
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
deprecated
func (*RegisterERC20Proposal) Descriptor() ([]byte, []int)
Deprecated: Use RegisterERC20Proposal.ProtoReflect.Descriptor instead.
func (*RegisterERC20Proposal) GetDescription ¶
func (x *RegisterERC20Proposal) GetDescription() string
func (*RegisterERC20Proposal) GetErc20Address ¶
func (x *RegisterERC20Proposal) GetErc20Address() string
func (*RegisterERC20Proposal) GetTitle ¶
func (x *RegisterERC20Proposal) GetTitle() string
func (*RegisterERC20Proposal) ProtoMessage ¶
func (*RegisterERC20Proposal) ProtoMessage()
func (*RegisterERC20Proposal) ProtoReflect ¶
func (x *RegisterERC20Proposal) ProtoReflect() protoreflect.Message
func (*RegisterERC20Proposal) Reset ¶
func (x *RegisterERC20Proposal) Reset()
func (*RegisterERC20Proposal) String ¶
func (x *RegisterERC20Proposal) String() string
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"` // contains filtered or unexported fields }
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
deprecated
func (*ToggleTokenConversionProposal) Descriptor() ([]byte, []int)
Deprecated: Use ToggleTokenConversionProposal.ProtoReflect.Descriptor instead.
func (*ToggleTokenConversionProposal) GetDescription ¶
func (x *ToggleTokenConversionProposal) GetDescription() string
func (*ToggleTokenConversionProposal) GetTitle ¶
func (x *ToggleTokenConversionProposal) GetTitle() string
func (*ToggleTokenConversionProposal) GetToken ¶
func (x *ToggleTokenConversionProposal) GetToken() string
func (*ToggleTokenConversionProposal) ProtoMessage ¶
func (*ToggleTokenConversionProposal) ProtoMessage()
func (*ToggleTokenConversionProposal) ProtoReflect ¶
func (x *ToggleTokenConversionProposal) ProtoReflect() protoreflect.Message
func (*ToggleTokenConversionProposal) Reset ¶
func (x *ToggleTokenConversionProposal) Reset()
func (*ToggleTokenConversionProposal) String ¶
func (x *ToggleTokenConversionProposal) String() string
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 */ // contains filtered or unexported fields }
TokenPair defines an instance that records a pairing consisting of a native
Cosmos Coin and an ERC20 token address.
func (*TokenPair) Descriptor
deprecated
func (*TokenPair) GetContractOwner ¶
func (*TokenPair) GetEnabled ¶
func (*TokenPair) GetErc20Address ¶
func (*TokenPair) ProtoMessage ¶
func (*TokenPair) ProtoMessage()
func (*TokenPair) ProtoReflect ¶
func (x *TokenPair) ProtoReflect() protoreflect.Message
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"` // contains filtered or unexported fields }
TokenPairDenomIndex is a mapping of a token pair's denom to its token pair ID.
func (*TokenPairDenomIndex) Descriptor
deprecated
func (*TokenPairDenomIndex) Descriptor() ([]byte, []int)
Deprecated: Use TokenPairDenomIndex.ProtoReflect.Descriptor instead.
func (*TokenPairDenomIndex) GetDenom ¶
func (x *TokenPairDenomIndex) GetDenom() string
func (*TokenPairDenomIndex) GetTokenPairId ¶
func (x *TokenPairDenomIndex) GetTokenPairId() []byte
func (*TokenPairDenomIndex) ProtoMessage ¶
func (*TokenPairDenomIndex) ProtoMessage()
func (*TokenPairDenomIndex) ProtoReflect ¶
func (x *TokenPairDenomIndex) ProtoReflect() protoreflect.Message
func (*TokenPairDenomIndex) Reset ¶
func (x *TokenPairDenomIndex) Reset()
func (*TokenPairDenomIndex) String ¶
func (x *TokenPairDenomIndex) String() string
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"` // contains filtered or unexported fields }
TokenPairERC20AddressIndex is a mapping of a token pair's ERC20 address to its token pair ID.
func (*TokenPairERC20AddressIndex) Descriptor
deprecated
func (*TokenPairERC20AddressIndex) Descriptor() ([]byte, []int)
Deprecated: Use TokenPairERC20AddressIndex.ProtoReflect.Descriptor instead.
func (*TokenPairERC20AddressIndex) GetErc20Address ¶
func (x *TokenPairERC20AddressIndex) GetErc20Address() []byte
func (*TokenPairERC20AddressIndex) GetTokenPairId ¶
func (x *TokenPairERC20AddressIndex) GetTokenPairId() []byte
func (*TokenPairERC20AddressIndex) ProtoMessage ¶
func (*TokenPairERC20AddressIndex) ProtoMessage()
func (*TokenPairERC20AddressIndex) ProtoReflect ¶
func (x *TokenPairERC20AddressIndex) ProtoReflect() protoreflect.Message
func (*TokenPairERC20AddressIndex) Reset ¶
func (x *TokenPairERC20AddressIndex) Reset()
func (*TokenPairERC20AddressIndex) String ¶
func (x *TokenPairERC20AddressIndex) String() string
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer must be embedded to have forward compatible implementations.
func (UnimplementedMsgServer) ConvertCoin ¶
func (UnimplementedMsgServer) ConvertCoin(context.Context, *MsgConvertCoin) (*MsgConvertCoinResponse, error)
func (UnimplementedMsgServer) ConvertERC20 ¶
func (UnimplementedMsgServer) ConvertERC20(context.Context, *MsgConvertERC20) (*MsgConvertERC20Response, error)
func (UnimplementedMsgServer) RegisterCoinProposal ¶
func (UnimplementedMsgServer) RegisterCoinProposal(context.Context, *MsgRegisterCoin) (*MsgRegisterCoinResponse, error)
func (UnimplementedMsgServer) RegisterERC20Proposal ¶
func (UnimplementedMsgServer) RegisterERC20Proposal(context.Context, *MsgRegisterERC20) (*MsgRegisterERC20Response, error)
func (UnimplementedMsgServer) ToggleTokenConversionProposal ¶
func (UnimplementedMsgServer) ToggleTokenConversionProposal(context.Context, *MsgToggleTokenConversion) (*MsgToggleTokenConversionResponse, error)
func (UnimplementedMsgServer) UpdateParams ¶
func (UnimplementedMsgServer) UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer must be embedded to have forward compatible implementations.
func (UnimplementedQueryServer) Params ¶
func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
func (UnimplementedQueryServer) TokenPair ¶
func (UnimplementedQueryServer) TokenPair(context.Context, *QueryTokenPairRequest) (*QueryTokenPairResponse, error)
func (UnimplementedQueryServer) TokenPairs ¶
func (UnimplementedQueryServer) TokenPairs(context.Context, *QueryTokenPairsRequest) (*QueryTokenPairsResponse, error)
type UnsafeMsgServer ¶
type UnsafeMsgServer interface {
// contains filtered or unexported methods
}
UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.
type UnsafeQueryServer ¶
type UnsafeQueryServer interface {
// contains filtered or unexported methods
}
UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.