erc20v1

package
v8.0.0-...-5b23e30 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

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.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

View Source
const (
	Query_TokenPairs_FullMethodName = "/fx.erc20.v1.Query/TokenPairs"
	Query_TokenPair_FullMethodName  = "/fx.erc20.v1.Query/TokenPair"
	Query_Params_FullMethodName     = "/fx.erc20.v1.Query/Params"
)
View Source
const (
	Msg_ConvertCoin_FullMethodName           = "/fx.erc20.v1.Msg/ConvertCoin"
	Msg_UpdateParams_FullMethodName          = "/fx.erc20.v1.Msg/UpdateParams"
	Msg_ToggleTokenConversion_FullMethodName = "/fx.erc20.v1.Msg/ToggleTokenConversion"
)

Variables

View Source
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.

View Source
var File_fx_erc20_v1_genesis_proto protoreflect.FileDescriptor
View Source
var File_fx_erc20_v1_legacy_proto protoreflect.FileDescriptor
View Source
var File_fx_erc20_v1_query_proto protoreflect.FileDescriptor
View Source
var File_fx_erc20_v1_tx_proto protoreflect.FileDescriptor
View Source
var File_fx_erc20_v1_types_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "fx.erc20.v1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ConvertCoin",
			Handler:    _Msg_ConvertCoin_Handler,
		},
		{
			MethodName: "UpdateParams",
			Handler:    _Msg_UpdateParams_Handler,
		},
		{
			MethodName: "ToggleTokenConversion",
			Handler:    _Msg_ToggleTokenConversion_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "fx/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)

View Source
var Query_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "fx.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: "fx/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 BridgeToken

type BridgeToken struct {
	ChainName string `protobuf:"bytes,1,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"`
	Contract  string `protobuf:"bytes,2,opt,name=contract,proto3" json:"contract,omitempty"`
	Denom     string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"`
	IsNative  bool   `protobuf:"varint,4,opt,name=is_native,json=isNative,proto3" json:"is_native,omitempty"`
	// contains filtered or unexported fields
}

func (*BridgeToken) Descriptor deprecated

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

Deprecated: Use BridgeToken.ProtoReflect.Descriptor instead.

func (*BridgeToken) GetChainName

func (x *BridgeToken) GetChainName() string

func (*BridgeToken) GetContract

func (x *BridgeToken) GetContract() string

func (*BridgeToken) GetDenom

func (x *BridgeToken) GetDenom() string

func (*BridgeToken) GetIsNative

func (x *BridgeToken) GetIsNative() bool

func (*BridgeToken) ProtoMessage

func (*BridgeToken) ProtoMessage()

func (*BridgeToken) ProtoReflect

func (x *BridgeToken) ProtoReflect() protoreflect.Message

func (*BridgeToken) Reset

func (x *BridgeToken) Reset()

func (*BridgeToken) String

func (x *BridgeToken) String() string

type ERC20Token

type ERC20Token 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 module account, 2 external address)
	ContractOwner Owner `protobuf:"varint,4,opt,name=contract_owner,json=contractOwner,proto3,enum=fx.erc20.v1.Owner" json:"contract_owner,omitempty"`
	// contains filtered or unexported fields
}

ERC20Token defines an instance that records pairing consisting of a Cosmos native Coin and an ERC20 token address.

func (*ERC20Token) Descriptor deprecated

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

Deprecated: Use ERC20Token.ProtoReflect.Descriptor instead.

func (*ERC20Token) GetContractOwner

func (x *ERC20Token) GetContractOwner() Owner

func (*ERC20Token) GetDenom

func (x *ERC20Token) GetDenom() string

func (*ERC20Token) GetEnabled

func (x *ERC20Token) GetEnabled() bool

func (*ERC20Token) GetErc20Address

func (x *ERC20Token) GetErc20Address() string

func (*ERC20Token) ProtoMessage

func (*ERC20Token) ProtoMessage()

func (*ERC20Token) ProtoReflect

func (x *ERC20Token) ProtoReflect() protoreflect.Message

func (*ERC20Token) Reset

func (x *ERC20Token) Reset()

func (*ERC20Token) String

func (x *ERC20Token) String() string

type GenesisState

type GenesisState struct {
	Params     *Params       `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	TokenPairs []*ERC20Token `protobuf:"bytes,2,rep,name=token_pairs,json=tokenPairs,proto3" json:"token_pairs,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) GetParams

func (x *GenesisState) GetParams() *Params

func (*GenesisState) GetTokenPairs

func (x *GenesisState) GetTokenPairs() []*ERC20Token

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 IBCToken

type IBCToken struct {
	Channel  string `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"`
	IbcDenom string `protobuf:"bytes,2,opt,name=ibc_denom,json=ibcDenom,proto3" json:"ibc_denom,omitempty"`
	// contains filtered or unexported fields
}

func (*IBCToken) Descriptor deprecated

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

Deprecated: Use IBCToken.ProtoReflect.Descriptor instead.

func (*IBCToken) GetChannel

func (x *IBCToken) GetChannel() string

func (*IBCToken) GetIbcDenom

func (x *IBCToken) GetIbcDenom() string

func (*IBCToken) ProtoMessage

func (*IBCToken) ProtoMessage()

func (*IBCToken) ProtoReflect

func (x *IBCToken) ProtoReflect() protoreflect.Message

func (*IBCToken) Reset

func (x *IBCToken) Reset()

func (*IBCToken) String

func (x *IBCToken) String() string

type LegacyParams

type LegacyParams struct {
	EnableErc20   bool                 `protobuf:"varint,1,opt,name=enable_erc20,json=enableErc20,proto3" json:"enable_erc20,omitempty"`
	EnableEvmHook bool                 `protobuf:"varint,2,opt,name=enable_evm_hook,json=enableEvmHook,proto3" json:"enable_evm_hook,omitempty"`
	IbcTimeout    *durationpb.Duration `protobuf:"bytes,3,opt,name=ibc_timeout,json=ibcTimeout,proto3" json:"ibc_timeout,omitempty"`
	// contains filtered or unexported fields
}

func (*LegacyParams) Descriptor deprecated

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

Deprecated: Use LegacyParams.ProtoReflect.Descriptor instead.

func (*LegacyParams) GetEnableErc20

func (x *LegacyParams) GetEnableErc20() bool

func (*LegacyParams) GetEnableEvmHook

func (x *LegacyParams) GetEnableEvmHook() bool

func (*LegacyParams) GetIbcTimeout

func (x *LegacyParams) GetIbcTimeout() *durationpb.Duration

func (*LegacyParams) ProtoMessage

func (*LegacyParams) ProtoMessage()

func (*LegacyParams) ProtoReflect

func (x *LegacyParams) ProtoReflect() protoreflect.Message

func (*LegacyParams) Reset

func (x *LegacyParams) Reset()

func (*LegacyParams) String

func (x *LegacyParams) String() string

type MsgClient

type MsgClient interface {
	// ConvertCoin mints a ERC20 representation of the SDK Coin denom that is
	// registered on the token mapping.
	ConvertCoin(ctx context.Context, in *MsgConvertCoin, opts ...grpc.CallOption) (*MsgConvertCoinResponse, error)
	// UpdateParams defines a governance operation for updating the x/erc20 module
	// parameters. The authority is hard-coded to the x/gov module account.
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
	ToggleTokenConversion(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 on erc20 bridge.
	// The coin amount defines the total ERC20 tokens 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 ERC20 tokens
	Sender string `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"`
	// contains filtered or unexported fields
}

MsgConvertCoin defines a Msg to convert a 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 MsgConvertDenom deprecated

type MsgConvertDenom struct {
	Sender   string        `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	Receiver string        `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"`
	Coin     *v1beta1.Coin `protobuf:"bytes,3,opt,name=coin,proto3" json:"coin,omitempty"`
	Target   string        `protobuf:"bytes,4,opt,name=target,proto3" json:"target,omitempty"`
	// contains filtered or unexported fields
}

Deprecated: Do not use.

func (*MsgConvertDenom) Descriptor deprecated

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

Deprecated: Use MsgConvertDenom.ProtoReflect.Descriptor instead.

func (*MsgConvertDenom) GetCoin

func (x *MsgConvertDenom) GetCoin() *v1beta1.Coin

func (*MsgConvertDenom) GetReceiver

func (x *MsgConvertDenom) GetReceiver() string

func (*MsgConvertDenom) GetSender

func (x *MsgConvertDenom) GetSender() string

func (*MsgConvertDenom) GetTarget

func (x *MsgConvertDenom) GetTarget() string

func (*MsgConvertDenom) ProtoMessage

func (*MsgConvertDenom) ProtoMessage()

func (*MsgConvertDenom) ProtoReflect

func (x *MsgConvertDenom) ProtoReflect() protoreflect.Message

func (*MsgConvertDenom) Reset

func (x *MsgConvertDenom) Reset()

func (*MsgConvertDenom) String

func (x *MsgConvertDenom) String() string

type MsgConvertERC20 deprecated

type MsgConvertERC20 struct {
	ContractAddress string `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	Amount          string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	Receiver        string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"`
	Sender          string `protobuf:"bytes,4,opt,name=sender,proto3" json:"sender,omitempty"`
	// contains filtered or unexported fields
}

Deprecated: Do not use.

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 MsgRegisterCoin deprecated

type MsgRegisterCoin struct {
	Authority string             `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	Metadata  *v1beta11.Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

Deprecated: Do not use.

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

func (x *MsgRegisterCoin) GetMetadata() *v1beta11.Metadata

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 deprecated

type MsgRegisterCoinResponse struct {
	Pair *ERC20Token `protobuf:"bytes,1,opt,name=pair,proto3" json:"pair,omitempty"`
	// contains filtered or unexported fields
}

Deprecated: Do not use.

func (*MsgRegisterCoinResponse) Descriptor deprecated

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

Deprecated: Use MsgRegisterCoinResponse.ProtoReflect.Descriptor instead.

func (*MsgRegisterCoinResponse) GetPair

func (x *MsgRegisterCoinResponse) GetPair() *ERC20Token

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 deprecated

type MsgRegisterERC20 struct {
	Authority    string   `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	Erc20Address string   `protobuf:"bytes,2,opt,name=erc20address,proto3" json:"erc20address,omitempty"`
	Aliases      []string `protobuf:"bytes,3,rep,name=aliases,proto3" json:"aliases,omitempty"`
	// contains filtered or unexported fields
}

Deprecated: Do not use.

func (*MsgRegisterERC20) Descriptor deprecated

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

Deprecated: Use MsgRegisterERC20.ProtoReflect.Descriptor instead.

func (*MsgRegisterERC20) GetAliases

func (x *MsgRegisterERC20) GetAliases() []string

func (*MsgRegisterERC20) GetAuthority

func (x *MsgRegisterERC20) GetAuthority() string

func (*MsgRegisterERC20) GetErc20Address

func (x *MsgRegisterERC20) GetErc20Address() 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 deprecated

type MsgRegisterERC20Response struct {
	Pair *ERC20Token `protobuf:"bytes,1,opt,name=pair,proto3" json:"pair,omitempty"`
	// contains filtered or unexported fields
}

Deprecated: Do not use.

func (*MsgRegisterERC20Response) Descriptor deprecated

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

Deprecated: Use MsgRegisterERC20Response.ProtoReflect.Descriptor instead.

func (*MsgRegisterERC20Response) GetPair

func (x *MsgRegisterERC20Response) GetPair() *ERC20Token

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 SDK Coin denom that is
	// registered on the token mapping.
	ConvertCoin(context.Context, *MsgConvertCoin) (*MsgConvertCoinResponse, error)
	// UpdateParams defines a governance operation for updating the x/erc20 module
	// parameters. The authority is hard-coded to the x/gov module account.
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
	ToggleTokenConversion(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 of the governance account.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// token identifier can be either the hex contract address of the ERC20 or the
	// Cosmos base denomination
	Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

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) 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 {
	Erc20Token *ERC20Token `protobuf:"bytes,1,opt,name=erc20_token,json=erc20Token,proto3" json:"erc20_token,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgToggleTokenConversionResponse) Descriptor deprecated

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

Deprecated: Use MsgToggleTokenConversionResponse.ProtoReflect.Descriptor instead.

func (*MsgToggleTokenConversionResponse) GetErc20Token

func (x *MsgToggleTokenConversionResponse) GetErc20Token() *ERC20Token

func (*MsgToggleTokenConversionResponse) ProtoMessage

func (*MsgToggleTokenConversionResponse) ProtoMessage()

func (*MsgToggleTokenConversionResponse) ProtoReflect

func (*MsgToggleTokenConversionResponse) Reset

func (*MsgToggleTokenConversionResponse) String

type MsgUpdateDenomAlias deprecated

type MsgUpdateDenomAlias struct {
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	Denom     string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
	Alias     string `protobuf:"bytes,3,opt,name=alias,proto3" json:"alias,omitempty"`
	// contains filtered or unexported fields
}

Deprecated: Do not use.

func (*MsgUpdateDenomAlias) Descriptor deprecated

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

Deprecated: Use MsgUpdateDenomAlias.ProtoReflect.Descriptor instead.

func (*MsgUpdateDenomAlias) GetAlias

func (x *MsgUpdateDenomAlias) GetAlias() string

func (*MsgUpdateDenomAlias) GetAuthority

func (x *MsgUpdateDenomAlias) GetAuthority() string

func (*MsgUpdateDenomAlias) GetDenom

func (x *MsgUpdateDenomAlias) GetDenom() string

func (*MsgUpdateDenomAlias) ProtoMessage

func (*MsgUpdateDenomAlias) ProtoMessage()

func (*MsgUpdateDenomAlias) ProtoReflect

func (x *MsgUpdateDenomAlias) ProtoReflect() protoreflect.Message

func (*MsgUpdateDenomAlias) Reset

func (x *MsgUpdateDenomAlias) Reset()

func (*MsgUpdateDenomAlias) String

func (x *MsgUpdateDenomAlias) String() string

type MsgUpdateParams

type MsgUpdateParams struct {

	// authority is the address of the governance account.
	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
}

MsgUpdateParams is the Msg/UpdateParams request type.

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.

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

ERC20Owner enumerates the ownership of a ERC20 contract.

const (
	// OWNER_UNSPECIFIED defines an invalid/undefined owner.
	Owner_OWNER_UNSPECIFIED Owner = 0
	// OWNER_MODULE erc20 is owned by the erc20 module account.
	Owner_OWNER_MODULE Owner = 1
	// EXTERNAL erc20 is owned by an external address.
	Owner_OWNER_EXTERNAL Owner = 2
)

func (Owner) Descriptor

func (Owner) Descriptor() protoreflect.EnumDescriptor

func (Owner) Enum

func (x Owner) Enum() *Owner

func (Owner) EnumDescriptor deprecated

func (Owner) EnumDescriptor() ([]byte, []int)

Deprecated: Use Owner.Descriptor instead.

func (Owner) Number

func (x Owner) Number() protoreflect.EnumNumber

func (Owner) String

func (x Owner) String() string

func (Owner) Type

func (Owner) Type() protoreflect.EnumType

type Params

type Params struct {
	EnableErc20 bool `protobuf:"varint,1,opt,name=enable_erc20,json=enableErc20,proto3" json:"enable_erc20,omitempty"`
	// contains filtered or unexported fields
}

Params defines the erc20 module params

func (*Params) Descriptor deprecated

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

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetEnableErc20

func (x *Params) GetEnableErc20() bool

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) ProtoReflect

func (x *Params) ProtoReflect() protoreflect.Message

func (*Params) Reset

func (x *Params) Reset()

func (*Params) String

func (x *Params) String() string

type QueryClient

type QueryClient interface {
	// Deprecated: TokenPairs Retrieves registered token pairs
	TokenPairs(ctx context.Context, in *QueryTokenPairsRequest, opts ...grpc.CallOption) (*QueryTokenPairsResponse, error)
	// Deprecated: 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 {
	// Deprecated: TokenPairs Retrieves registered token pairs
	TokenPairs(context.Context, *QueryTokenPairsRequest) (*QueryTokenPairsResponse, error)
	// Deprecated: 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 deprecated

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.

Deprecated: Do not use.

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 deprecated

type QueryTokenPairResponse struct {
	Erc20Token *ERC20Token `protobuf:"bytes,1,opt,name=erc20_token,json=erc20Token,proto3" json:"erc20_token,omitempty"`
	// contains filtered or unexported fields
}

QueryTokenPairResponse is the response type for the Query/TokenPair RPC method.

Deprecated: Do not use.

func (*QueryTokenPairResponse) Descriptor deprecated

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

Deprecated: Use QueryTokenPairResponse.ProtoReflect.Descriptor instead.

func (*QueryTokenPairResponse) GetErc20Token

func (x *QueryTokenPairResponse) GetErc20Token() *ERC20Token

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 deprecated

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.

Deprecated: Do not use.

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 deprecated

type QueryTokenPairsResponse struct {
	Erc20Tokens []*ERC20Token `protobuf:"bytes,1,rep,name=erc20_tokens,json=erc20Tokens,proto3" json:"erc20_tokens,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.

Deprecated: Do not use.

func (*QueryTokenPairsResponse) Descriptor deprecated

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

Deprecated: Use QueryTokenPairsResponse.ProtoReflect.Descriptor instead.

func (*QueryTokenPairsResponse) GetErc20Tokens

func (x *QueryTokenPairsResponse) GetErc20Tokens() []*ERC20Token

func (*QueryTokenPairsResponse) GetPagination

func (x *QueryTokenPairsResponse) GetPagination() *v1beta1.PageResponse

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       string             `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description string             `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Metadata    *v1beta11.Metadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

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() *v1beta11.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        string   `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description  string   `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Erc20Address string   `protobuf:"bytes,3,opt,name=erc20address,proto3" json:"erc20address,omitempty"`
	Aliases      []string `protobuf:"bytes,4,rep,name=aliases,proto3" json:"aliases,omitempty"`
	// contains filtered or unexported fields
}

Deprecated: Do not use.

func (*RegisterERC20Proposal) Descriptor deprecated

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

Deprecated: Use RegisterERC20Proposal.ProtoReflect.Descriptor instead.

func (*RegisterERC20Proposal) GetAliases

func (x *RegisterERC20Proposal) GetAliases() []string

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       string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Token       string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

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 (*ToggleTokenConversionProposal) Reset

func (x *ToggleTokenConversionProposal) Reset()

func (*ToggleTokenConversionProposal) String

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) ConvertCoin

func (UnimplementedMsgServer) UpdateParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) Params

func (UnimplementedQueryServer) TokenPair

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.

type UpdateDenomAliasProposal deprecated

type UpdateDenomAliasProposal struct {
	Title       string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Denom       string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"`
	Alias       string `protobuf:"bytes,4,opt,name=alias,proto3" json:"alias,omitempty"`
	// contains filtered or unexported fields
}

Deprecated: Do not use.

func (*UpdateDenomAliasProposal) Descriptor deprecated

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

Deprecated: Use UpdateDenomAliasProposal.ProtoReflect.Descriptor instead.

func (*UpdateDenomAliasProposal) GetAlias

func (x *UpdateDenomAliasProposal) GetAlias() string

func (*UpdateDenomAliasProposal) GetDenom

func (x *UpdateDenomAliasProposal) GetDenom() string

func (*UpdateDenomAliasProposal) GetDescription

func (x *UpdateDenomAliasProposal) GetDescription() string

func (*UpdateDenomAliasProposal) GetTitle

func (x *UpdateDenomAliasProposal) GetTitle() string

func (*UpdateDenomAliasProposal) ProtoMessage

func (*UpdateDenomAliasProposal) ProtoMessage()

func (*UpdateDenomAliasProposal) ProtoReflect

func (x *UpdateDenomAliasProposal) ProtoReflect() protoreflect.Message

func (*UpdateDenomAliasProposal) Reset

func (x *UpdateDenomAliasProposal) Reset()

func (*UpdateDenomAliasProposal) String

func (x *UpdateDenomAliasProposal) String() string

Jump to

Keyboard shortcuts

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