tokenv1

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 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_Tokens_FullMethodName    = "/irismod.token.v1.Query/Tokens"
	Query_Token_FullMethodName     = "/irismod.token.v1.Query/Token"
	Query_Fees_FullMethodName      = "/irismod.token.v1.Query/Fees"
	Query_Params_FullMethodName    = "/irismod.token.v1.Query/Params"
	Query_TotalBurn_FullMethodName = "/irismod.token.v1.Query/TotalBurn"
	Query_Balances_FullMethodName  = "/irismod.token.v1.Query/Balances"
)
View Source
const (
	Msg_IssueToken_FullMethodName         = "/irismod.token.v1.Msg/IssueToken"
	Msg_EditToken_FullMethodName          = "/irismod.token.v1.Msg/EditToken"
	Msg_MintToken_FullMethodName          = "/irismod.token.v1.Msg/MintToken"
	Msg_BurnToken_FullMethodName          = "/irismod.token.v1.Msg/BurnToken"
	Msg_TransferTokenOwner_FullMethodName = "/irismod.token.v1.Msg/TransferTokenOwner"
	Msg_SwapFeeToken_FullMethodName       = "/irismod.token.v1.Msg/SwapFeeToken"
	Msg_SwapToERC20_FullMethodName        = "/irismod.token.v1.Msg/SwapToERC20"
	Msg_SwapFromERC20_FullMethodName      = "/irismod.token.v1.Msg/SwapFromERC20"
	Msg_UpdateParams_FullMethodName       = "/irismod.token.v1.Msg/UpdateParams"
	Msg_DeployERC20_FullMethodName        = "/irismod.token.v1.Msg/DeployERC20"
	Msg_UpgradeERC20_FullMethodName       = "/irismod.token.v1.Msg/UpgradeERC20"
)

Variables

View Source
var File_irismod_token_v1_event_proto protoreflect.FileDescriptor
View Source
var File_irismod_token_v1_genesis_proto protoreflect.FileDescriptor
View Source
var File_irismod_token_v1_query_proto protoreflect.FileDescriptor
View Source
var File_irismod_token_v1_token_proto protoreflect.FileDescriptor
View Source
var File_irismod_token_v1_tx_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "irismod.token.v1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "IssueToken",
			Handler:    _Msg_IssueToken_Handler,
		},
		{
			MethodName: "EditToken",
			Handler:    _Msg_EditToken_Handler,
		},
		{
			MethodName: "MintToken",
			Handler:    _Msg_MintToken_Handler,
		},
		{
			MethodName: "BurnToken",
			Handler:    _Msg_BurnToken_Handler,
		},
		{
			MethodName: "TransferTokenOwner",
			Handler:    _Msg_TransferTokenOwner_Handler,
		},
		{
			MethodName: "SwapFeeToken",
			Handler:    _Msg_SwapFeeToken_Handler,
		},
		{
			MethodName: "SwapToERC20",
			Handler:    _Msg_SwapToERC20_Handler,
		},
		{
			MethodName: "SwapFromERC20",
			Handler:    _Msg_SwapFromERC20_Handler,
		},
		{
			MethodName: "UpdateParams",
			Handler:    _Msg_UpdateParams_Handler,
		},
		{
			MethodName: "DeployERC20",
			Handler:    _Msg_DeployERC20_Handler,
		},
		{
			MethodName: "UpgradeERC20",
			Handler:    _Msg_UpgradeERC20_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "irismod/token/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: "irismod.token.v1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Tokens",
			Handler:    _Query_Tokens_Handler,
		},
		{
			MethodName: "Token",
			Handler:    _Query_Token_Handler,
		},
		{
			MethodName: "Fees",
			Handler:    _Query_Fees_Handler,
		},
		{
			MethodName: "Params",
			Handler:    _Query_Params_Handler,
		},
		{
			MethodName: "TotalBurn",
			Handler:    _Query_TotalBurn_Handler,
		},
		{
			MethodName: "Balances",
			Handler:    _Query_Balances_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "irismod/token/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 EventDeployERC20 added in v1.9.0

type EventDeployERC20 struct {
	Symbol   string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
	Name     string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Scale    uint32 `protobuf:"varint,3,opt,name=scale,proto3" json:"scale,omitempty"`
	MinUnit  string `protobuf:"bytes,4,opt,name=min_unit,json=minUnit,proto3" json:"min_unit,omitempty"`
	Contract string `protobuf:"bytes,5,opt,name=contract,proto3" json:"contract,omitempty"`
	// contains filtered or unexported fields
}

EventDeployERC20 is an event emitted when deploying ERC20.

func (*EventDeployERC20) Descriptor deprecated added in v1.9.0

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

Deprecated: Use EventDeployERC20.ProtoReflect.Descriptor instead.

func (*EventDeployERC20) GetContract added in v1.9.0

func (x *EventDeployERC20) GetContract() string

func (*EventDeployERC20) GetMinUnit added in v1.9.0

func (x *EventDeployERC20) GetMinUnit() string

func (*EventDeployERC20) GetName added in v1.9.0

func (x *EventDeployERC20) GetName() string

func (*EventDeployERC20) GetScale added in v1.9.0

func (x *EventDeployERC20) GetScale() uint32

func (*EventDeployERC20) GetSymbol added in v1.9.0

func (x *EventDeployERC20) GetSymbol() string

func (*EventDeployERC20) ProtoMessage added in v1.9.0

func (*EventDeployERC20) ProtoMessage()

func (*EventDeployERC20) ProtoReflect added in v1.9.0

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

func (*EventDeployERC20) Reset added in v1.9.0

func (x *EventDeployERC20) Reset()

func (*EventDeployERC20) String added in v1.9.0

func (x *EventDeployERC20) String() string

type EventSwapFromERC20 added in v1.9.0

type EventSwapFromERC20 struct {
	WantedAmount *v1beta1.Coin `protobuf:"bytes,1,opt,name=wanted_amount,json=wantedAmount,proto3" json:"wanted_amount,omitempty"`
	Sender       string        `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"`
	Receiver     string        `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"`
	FromContract string        `protobuf:"bytes,4,opt,name=from_contract,json=fromContract,proto3" json:"from_contract,omitempty"`
	// contains filtered or unexported fields
}

EventSwapFromERC20 is an event emitted when swapping token from ERC20 to native token.

func (*EventSwapFromERC20) Descriptor deprecated added in v1.9.0

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

Deprecated: Use EventSwapFromERC20.ProtoReflect.Descriptor instead.

func (*EventSwapFromERC20) GetFromContract added in v1.9.0

func (x *EventSwapFromERC20) GetFromContract() string

func (*EventSwapFromERC20) GetReceiver added in v1.9.0

func (x *EventSwapFromERC20) GetReceiver() string

func (*EventSwapFromERC20) GetSender added in v1.9.0

func (x *EventSwapFromERC20) GetSender() string

func (*EventSwapFromERC20) GetWantedAmount added in v1.9.0

func (x *EventSwapFromERC20) GetWantedAmount() *v1beta1.Coin

func (*EventSwapFromERC20) ProtoMessage added in v1.9.0

func (*EventSwapFromERC20) ProtoMessage()

func (*EventSwapFromERC20) ProtoReflect added in v1.9.0

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

func (*EventSwapFromERC20) Reset added in v1.9.0

func (x *EventSwapFromERC20) Reset()

func (*EventSwapFromERC20) String added in v1.9.0

func (x *EventSwapFromERC20) String() string

type EventSwapToERC20 added in v1.9.0

type EventSwapToERC20 struct {
	Amount     *v1beta1.Coin `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"`
	Sender     string        `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"`
	Receiver   string        `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"`
	ToContract string        `protobuf:"bytes,4,opt,name=to_contract,json=toContract,proto3" json:"to_contract,omitempty"`
	// contains filtered or unexported fields
}

EventSwapToERC20 is an event emitted when swapping token from native token to ERC20.

func (*EventSwapToERC20) Descriptor deprecated added in v1.9.0

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

Deprecated: Use EventSwapToERC20.ProtoReflect.Descriptor instead.

func (*EventSwapToERC20) GetAmount added in v1.9.0

func (x *EventSwapToERC20) GetAmount() *v1beta1.Coin

func (*EventSwapToERC20) GetReceiver added in v1.9.0

func (x *EventSwapToERC20) GetReceiver() string

func (*EventSwapToERC20) GetSender added in v1.9.0

func (x *EventSwapToERC20) GetSender() string

func (*EventSwapToERC20) GetToContract added in v1.9.0

func (x *EventSwapToERC20) GetToContract() string

func (*EventSwapToERC20) ProtoMessage added in v1.9.0

func (*EventSwapToERC20) ProtoMessage()

func (*EventSwapToERC20) ProtoReflect added in v1.9.0

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

func (*EventSwapToERC20) Reset added in v1.9.0

func (x *EventSwapToERC20) Reset()

func (*EventSwapToERC20) String added in v1.9.0

func (x *EventSwapToERC20) String() string

type GenesisState

type GenesisState struct {
	Params      *Params         `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	Tokens      []*Token        `protobuf:"bytes,2,rep,name=tokens,proto3" json:"tokens,omitempty"`
	BurnedCoins []*v1beta1.Coin `protobuf:"bytes,3,rep,name=burned_coins,json=burnedCoins,proto3" json:"burned_coins,omitempty"`
	// contains filtered or unexported fields
}

GenesisState defines the token module's genesis state

func (*GenesisState) Descriptor deprecated

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

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetBurnedCoins

func (x *GenesisState) GetBurnedCoins() []*v1beta1.Coin

func (*GenesisState) GetParams

func (x *GenesisState) GetParams() *Params

func (*GenesisState) GetTokens

func (x *GenesisState) GetTokens() []*Token

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 MsgBurnToken

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

MsgBurnToken defines an SDK message for burning some tokens

func (*MsgBurnToken) Descriptor deprecated

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

Deprecated: Use MsgBurnToken.ProtoReflect.Descriptor instead.

func (*MsgBurnToken) GetCoin

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

func (*MsgBurnToken) GetSender

func (x *MsgBurnToken) GetSender() string

func (*MsgBurnToken) ProtoMessage

func (*MsgBurnToken) ProtoMessage()

func (*MsgBurnToken) ProtoReflect

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

func (*MsgBurnToken) Reset

func (x *MsgBurnToken) Reset()

func (*MsgBurnToken) String

func (x *MsgBurnToken) String() string

type MsgBurnTokenResponse

type MsgBurnTokenResponse struct {
	// contains filtered or unexported fields
}

MsgBurnTokenResponse defines the Msg/BurnToken response type

func (*MsgBurnTokenResponse) Descriptor deprecated

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

Deprecated: Use MsgBurnTokenResponse.ProtoReflect.Descriptor instead.

func (*MsgBurnTokenResponse) ProtoMessage

func (*MsgBurnTokenResponse) ProtoMessage()

func (*MsgBurnTokenResponse) ProtoReflect

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

func (*MsgBurnTokenResponse) Reset

func (x *MsgBurnTokenResponse) Reset()

func (*MsgBurnTokenResponse) String

func (x *MsgBurnTokenResponse) String() string

type MsgClient

type MsgClient interface {
	// IssueToken defines a method for issuing a new token
	IssueToken(ctx context.Context, in *MsgIssueToken, opts ...grpc.CallOption) (*MsgIssueTokenResponse, error)
	// EditToken defines a method for editing a token
	EditToken(ctx context.Context, in *MsgEditToken, opts ...grpc.CallOption) (*MsgEditTokenResponse, error)
	// MintToken defines a method for minting some tokens
	MintToken(ctx context.Context, in *MsgMintToken, opts ...grpc.CallOption) (*MsgMintTokenResponse, error)
	// BurnToken defines a method for burning some tokens
	BurnToken(ctx context.Context, in *MsgBurnToken, opts ...grpc.CallOption) (*MsgBurnTokenResponse, error)
	// TransferTokenOwner defines a method for transfering token owner
	TransferTokenOwner(ctx context.Context, in *MsgTransferTokenOwner, opts ...grpc.CallOption) (*MsgTransferTokenOwnerResponse, error)
	// SwapFeeToken defines a method for swapping between IRIS and ERIS
	SwapFeeToken(ctx context.Context, in *MsgSwapFeeToken, opts ...grpc.CallOption) (*MsgSwapFeeTokenResponse, error)
	// SwapToERC20 defines a method for swapping some native token to its ERC20
	// counterpart
	SwapToERC20(ctx context.Context, in *MsgSwapToERC20, opts ...grpc.CallOption) (*MsgSwapToERC20Response, error)
	// SwapFromERC20 defines a method for swapping some ERC20 token to its native
	// counterpart
	SwapFromERC20(ctx context.Context, in *MsgSwapFromERC20, opts ...grpc.CallOption) (*MsgSwapFromERC20Response, error)
	// UpdateParams defines a governance operation for updating the token
	// module parameters. The authority is defined in the keeper.
	//
	// Since: cosmos-sdk 0.47
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
	// DeployERC20 defines a governance operation for deploying an ERC20 contract
	// that binds to a native token
	DeployERC20(ctx context.Context, in *MsgDeployERC20, opts ...grpc.CallOption) (*MsgDeployERC20Response, error)
	// UpgradeERC20 defines a governance operation for upgrading an ERC20 contract
	UpgradeERC20(ctx context.Context, in *MsgUpgradeERC20, opts ...grpc.CallOption) (*MsgUpgradeERC20Response, 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 MsgDeployERC20 added in v1.9.0

type MsgDeployERC20 struct {
	Symbol    string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Scale     uint32 `protobuf:"varint,3,opt,name=scale,proto3" json:"scale,omitempty"`
	MinUnit   string `protobuf:"bytes,4,opt,name=min_unit,json=minUnit,proto3" json:"min_unit,omitempty"`
	Authority string `protobuf:"bytes,5,opt,name=authority,proto3" json:"authority,omitempty"`
	// contains filtered or unexported fields
}

MsgDeployERC20 defines an SDK message for DeployERC20

func (*MsgDeployERC20) Descriptor deprecated added in v1.9.0

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

Deprecated: Use MsgDeployERC20.ProtoReflect.Descriptor instead.

func (*MsgDeployERC20) GetAuthority added in v1.9.0

func (x *MsgDeployERC20) GetAuthority() string

func (*MsgDeployERC20) GetMinUnit added in v1.9.0

func (x *MsgDeployERC20) GetMinUnit() string

func (*MsgDeployERC20) GetName added in v1.9.0

func (x *MsgDeployERC20) GetName() string

func (*MsgDeployERC20) GetScale added in v1.9.0

func (x *MsgDeployERC20) GetScale() uint32

func (*MsgDeployERC20) GetSymbol added in v1.9.0

func (x *MsgDeployERC20) GetSymbol() string

func (*MsgDeployERC20) ProtoMessage added in v1.9.0

func (*MsgDeployERC20) ProtoMessage()

func (*MsgDeployERC20) ProtoReflect added in v1.9.0

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

func (*MsgDeployERC20) Reset added in v1.9.0

func (x *MsgDeployERC20) Reset()

func (*MsgDeployERC20) String added in v1.9.0

func (x *MsgDeployERC20) String() string

type MsgDeployERC20Response added in v1.9.0

type MsgDeployERC20Response struct {
	// contains filtered or unexported fields
}

MsgDeployERC20Response defines the Msg/DeployERC20 response type

func (*MsgDeployERC20Response) Descriptor deprecated added in v1.9.0

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

Deprecated: Use MsgDeployERC20Response.ProtoReflect.Descriptor instead.

func (*MsgDeployERC20Response) ProtoMessage added in v1.9.0

func (*MsgDeployERC20Response) ProtoMessage()

func (*MsgDeployERC20Response) ProtoReflect added in v1.9.0

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

func (*MsgDeployERC20Response) Reset added in v1.9.0

func (x *MsgDeployERC20Response) Reset()

func (*MsgDeployERC20Response) String added in v1.9.0

func (x *MsgDeployERC20Response) String() string

type MsgEditToken

type MsgEditToken struct {
	Symbol    string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	MaxSupply uint64 `protobuf:"varint,3,opt,name=max_supply,json=maxSupply,proto3" json:"max_supply,omitempty"`
	Mintable  string `protobuf:"bytes,4,opt,name=mintable,proto3" json:"mintable,omitempty"`
	Owner     string `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"`
	// contains filtered or unexported fields
}

MsgEditToken defines an SDK message for editing a new token

func (*MsgEditToken) Descriptor deprecated

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

Deprecated: Use MsgEditToken.ProtoReflect.Descriptor instead.

func (*MsgEditToken) GetMaxSupply

func (x *MsgEditToken) GetMaxSupply() uint64

func (*MsgEditToken) GetMintable

func (x *MsgEditToken) GetMintable() string

func (*MsgEditToken) GetName

func (x *MsgEditToken) GetName() string

func (*MsgEditToken) GetOwner

func (x *MsgEditToken) GetOwner() string

func (*MsgEditToken) GetSymbol

func (x *MsgEditToken) GetSymbol() string

func (*MsgEditToken) ProtoMessage

func (*MsgEditToken) ProtoMessage()

func (*MsgEditToken) ProtoReflect

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

func (*MsgEditToken) Reset

func (x *MsgEditToken) Reset()

func (*MsgEditToken) String

func (x *MsgEditToken) String() string

type MsgEditTokenResponse

type MsgEditTokenResponse struct {
	// contains filtered or unexported fields
}

MsgEditTokenResponse defines the Msg/EditToken response type

func (*MsgEditTokenResponse) Descriptor deprecated

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

Deprecated: Use MsgEditTokenResponse.ProtoReflect.Descriptor instead.

func (*MsgEditTokenResponse) ProtoMessage

func (*MsgEditTokenResponse) ProtoMessage()

func (*MsgEditTokenResponse) ProtoReflect

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

func (*MsgEditTokenResponse) Reset

func (x *MsgEditTokenResponse) Reset()

func (*MsgEditTokenResponse) String

func (x *MsgEditTokenResponse) String() string

type MsgIssueToken

type MsgIssueToken struct {
	Symbol        string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
	Name          string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Scale         uint32 `protobuf:"varint,3,opt,name=scale,proto3" json:"scale,omitempty"`
	MinUnit       string `protobuf:"bytes,4,opt,name=min_unit,json=minUnit,proto3" json:"min_unit,omitempty"`
	InitialSupply uint64 `protobuf:"varint,5,opt,name=initial_supply,json=initialSupply,proto3" json:"initial_supply,omitempty"`
	MaxSupply     uint64 `protobuf:"varint,6,opt,name=max_supply,json=maxSupply,proto3" json:"max_supply,omitempty"`
	Mintable      bool   `protobuf:"varint,7,opt,name=mintable,proto3" json:"mintable,omitempty"`
	Owner         string `protobuf:"bytes,8,opt,name=owner,proto3" json:"owner,omitempty"`
	// contains filtered or unexported fields
}

MsgIssueToken defines an SDK message for issuing a new token

func (*MsgIssueToken) Descriptor deprecated

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

Deprecated: Use MsgIssueToken.ProtoReflect.Descriptor instead.

func (*MsgIssueToken) GetInitialSupply

func (x *MsgIssueToken) GetInitialSupply() uint64

func (*MsgIssueToken) GetMaxSupply

func (x *MsgIssueToken) GetMaxSupply() uint64

func (*MsgIssueToken) GetMinUnit

func (x *MsgIssueToken) GetMinUnit() string

func (*MsgIssueToken) GetMintable

func (x *MsgIssueToken) GetMintable() bool

func (*MsgIssueToken) GetName

func (x *MsgIssueToken) GetName() string

func (*MsgIssueToken) GetOwner

func (x *MsgIssueToken) GetOwner() string

func (*MsgIssueToken) GetScale

func (x *MsgIssueToken) GetScale() uint32

func (*MsgIssueToken) GetSymbol

func (x *MsgIssueToken) GetSymbol() string

func (*MsgIssueToken) ProtoMessage

func (*MsgIssueToken) ProtoMessage()

func (*MsgIssueToken) ProtoReflect

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

func (*MsgIssueToken) Reset

func (x *MsgIssueToken) Reset()

func (*MsgIssueToken) String

func (x *MsgIssueToken) String() string

type MsgIssueTokenResponse

type MsgIssueTokenResponse struct {
	// contains filtered or unexported fields
}

MsgIssueTokenResponse defines the Msg/IssueToken response type

func (*MsgIssueTokenResponse) Descriptor deprecated

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

Deprecated: Use MsgIssueTokenResponse.ProtoReflect.Descriptor instead.

func (*MsgIssueTokenResponse) ProtoMessage

func (*MsgIssueTokenResponse) ProtoMessage()

func (*MsgIssueTokenResponse) ProtoReflect

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

func (*MsgIssueTokenResponse) Reset

func (x *MsgIssueTokenResponse) Reset()

func (*MsgIssueTokenResponse) String

func (x *MsgIssueTokenResponse) String() string

type MsgMintToken

type MsgMintToken struct {
	Coin     *v1beta1.Coin `protobuf:"bytes,1,opt,name=coin,proto3" json:"coin,omitempty"`
	Receiver string        `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"`
	Owner    string        `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
	// contains filtered or unexported fields
}

MsgMintToken defines an SDK message for minting a new token

func (*MsgMintToken) Descriptor deprecated

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

Deprecated: Use MsgMintToken.ProtoReflect.Descriptor instead.

func (*MsgMintToken) GetCoin

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

func (*MsgMintToken) GetOwner

func (x *MsgMintToken) GetOwner() string

func (*MsgMintToken) GetReceiver added in v1.9.0

func (x *MsgMintToken) GetReceiver() string

func (*MsgMintToken) ProtoMessage

func (*MsgMintToken) ProtoMessage()

func (*MsgMintToken) ProtoReflect

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

func (*MsgMintToken) Reset

func (x *MsgMintToken) Reset()

func (*MsgMintToken) String

func (x *MsgMintToken) String() string

type MsgMintTokenResponse

type MsgMintTokenResponse struct {
	// contains filtered or unexported fields
}

MsgMintTokenResponse defines the Msg/MintToken response type

func (*MsgMintTokenResponse) Descriptor deprecated

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

Deprecated: Use MsgMintTokenResponse.ProtoReflect.Descriptor instead.

func (*MsgMintTokenResponse) ProtoMessage

func (*MsgMintTokenResponse) ProtoMessage()

func (*MsgMintTokenResponse) ProtoReflect

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

func (*MsgMintTokenResponse) Reset

func (x *MsgMintTokenResponse) Reset()

func (*MsgMintTokenResponse) String

func (x *MsgMintTokenResponse) String() string

type MsgServer

type MsgServer interface {
	// IssueToken defines a method for issuing a new token
	IssueToken(context.Context, *MsgIssueToken) (*MsgIssueTokenResponse, error)
	// EditToken defines a method for editing a token
	EditToken(context.Context, *MsgEditToken) (*MsgEditTokenResponse, error)
	// MintToken defines a method for minting some tokens
	MintToken(context.Context, *MsgMintToken) (*MsgMintTokenResponse, error)
	// BurnToken defines a method for burning some tokens
	BurnToken(context.Context, *MsgBurnToken) (*MsgBurnTokenResponse, error)
	// TransferTokenOwner defines a method for transfering token owner
	TransferTokenOwner(context.Context, *MsgTransferTokenOwner) (*MsgTransferTokenOwnerResponse, error)
	// SwapFeeToken defines a method for swapping between IRIS and ERIS
	SwapFeeToken(context.Context, *MsgSwapFeeToken) (*MsgSwapFeeTokenResponse, error)
	// SwapToERC20 defines a method for swapping some native token to its ERC20
	// counterpart
	SwapToERC20(context.Context, *MsgSwapToERC20) (*MsgSwapToERC20Response, error)
	// SwapFromERC20 defines a method for swapping some ERC20 token to its native
	// counterpart
	SwapFromERC20(context.Context, *MsgSwapFromERC20) (*MsgSwapFromERC20Response, error)
	// UpdateParams defines a governance operation for updating the token
	// module parameters. The authority is defined in the keeper.
	//
	// Since: cosmos-sdk 0.47
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
	// DeployERC20 defines a governance operation for deploying an ERC20 contract
	// that binds to a native token
	DeployERC20(context.Context, *MsgDeployERC20) (*MsgDeployERC20Response, error)
	// UpgradeERC20 defines a governance operation for upgrading an ERC20 contract
	UpgradeERC20(context.Context, *MsgUpgradeERC20) (*MsgUpgradeERC20Response, error)
	// contains filtered or unexported methods
}

MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility

type MsgSwapFeeToken

type MsgSwapFeeToken struct {
	FeePaid  *v1beta1.Coin `protobuf:"bytes,1,opt,name=fee_paid,json=feePaid,proto3" json:"fee_paid,omitempty"`
	Receiver string        `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"`
	Sender   string        `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"`
	// contains filtered or unexported fields
}

MsgSwapFeeToken defines an SDK message for swap fee token

func (*MsgSwapFeeToken) Descriptor deprecated

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

Deprecated: Use MsgSwapFeeToken.ProtoReflect.Descriptor instead.

func (*MsgSwapFeeToken) GetFeePaid

func (x *MsgSwapFeeToken) GetFeePaid() *v1beta1.Coin

func (*MsgSwapFeeToken) GetReceiver added in v1.9.0

func (x *MsgSwapFeeToken) GetReceiver() string

func (*MsgSwapFeeToken) GetSender

func (x *MsgSwapFeeToken) GetSender() string

func (*MsgSwapFeeToken) ProtoMessage

func (*MsgSwapFeeToken) ProtoMessage()

func (*MsgSwapFeeToken) ProtoReflect

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

func (*MsgSwapFeeToken) Reset

func (x *MsgSwapFeeToken) Reset()

func (*MsgSwapFeeToken) String

func (x *MsgSwapFeeToken) String() string

type MsgSwapFeeTokenResponse

type MsgSwapFeeTokenResponse struct {
	FeeGot *v1beta1.Coin `protobuf:"bytes,1,opt,name=fee_got,json=feeGot,proto3" json:"fee_got,omitempty"`
	// contains filtered or unexported fields
}

MsgSwapFeeTokenResponse defines the Msg/SwapFeeToken response type

func (*MsgSwapFeeTokenResponse) Descriptor deprecated

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

Deprecated: Use MsgSwapFeeTokenResponse.ProtoReflect.Descriptor instead.

func (*MsgSwapFeeTokenResponse) GetFeeGot

func (x *MsgSwapFeeTokenResponse) GetFeeGot() *v1beta1.Coin

func (*MsgSwapFeeTokenResponse) ProtoMessage

func (*MsgSwapFeeTokenResponse) ProtoMessage()

func (*MsgSwapFeeTokenResponse) ProtoReflect

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

func (*MsgSwapFeeTokenResponse) Reset

func (x *MsgSwapFeeTokenResponse) Reset()

func (*MsgSwapFeeTokenResponse) String

func (x *MsgSwapFeeTokenResponse) String() string

type MsgSwapFromERC20 added in v1.9.0

type MsgSwapFromERC20 struct {
	WantedAmount *v1beta1.Coin `protobuf:"bytes,1,opt,name=wanted_amount,json=wantedAmount,proto3" json:"wanted_amount,omitempty"`
	Sender       string        `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"`
	Receiver     string        `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"`
	// contains filtered or unexported fields
}

MsgSwapFromERC20 defines an SDK message for SwapFromERC20

func (*MsgSwapFromERC20) Descriptor deprecated added in v1.9.0

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

Deprecated: Use MsgSwapFromERC20.ProtoReflect.Descriptor instead.

func (*MsgSwapFromERC20) GetReceiver added in v1.9.0

func (x *MsgSwapFromERC20) GetReceiver() string

func (*MsgSwapFromERC20) GetSender added in v1.9.0

func (x *MsgSwapFromERC20) GetSender() string

func (*MsgSwapFromERC20) GetWantedAmount added in v1.9.0

func (x *MsgSwapFromERC20) GetWantedAmount() *v1beta1.Coin

func (*MsgSwapFromERC20) ProtoMessage added in v1.9.0

func (*MsgSwapFromERC20) ProtoMessage()

func (*MsgSwapFromERC20) ProtoReflect added in v1.9.0

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

func (*MsgSwapFromERC20) Reset added in v1.9.0

func (x *MsgSwapFromERC20) Reset()

func (*MsgSwapFromERC20) String added in v1.9.0

func (x *MsgSwapFromERC20) String() string

type MsgSwapFromERC20Response added in v1.9.0

type MsgSwapFromERC20Response struct {
	// contains filtered or unexported fields
}

MsgSwapFromERC20Response defines the Msg/SwapFromERC20 response type

func (*MsgSwapFromERC20Response) Descriptor deprecated added in v1.9.0

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

Deprecated: Use MsgSwapFromERC20Response.ProtoReflect.Descriptor instead.

func (*MsgSwapFromERC20Response) ProtoMessage added in v1.9.0

func (*MsgSwapFromERC20Response) ProtoMessage()

func (*MsgSwapFromERC20Response) ProtoReflect added in v1.9.0

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

func (*MsgSwapFromERC20Response) Reset added in v1.9.0

func (x *MsgSwapFromERC20Response) Reset()

func (*MsgSwapFromERC20Response) String added in v1.9.0

func (x *MsgSwapFromERC20Response) String() string

type MsgSwapToERC20 added in v1.9.0

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

MsgSwapToERC20 defines an SDK message for SwapToERC20

func (*MsgSwapToERC20) Descriptor deprecated added in v1.9.0

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

Deprecated: Use MsgSwapToERC20.ProtoReflect.Descriptor instead.

func (*MsgSwapToERC20) GetAmount added in v1.9.0

func (x *MsgSwapToERC20) GetAmount() *v1beta1.Coin

func (*MsgSwapToERC20) GetReceiver added in v1.9.0

func (x *MsgSwapToERC20) GetReceiver() string

func (*MsgSwapToERC20) GetSender added in v1.9.0

func (x *MsgSwapToERC20) GetSender() string

func (*MsgSwapToERC20) ProtoMessage added in v1.9.0

func (*MsgSwapToERC20) ProtoMessage()

func (*MsgSwapToERC20) ProtoReflect added in v1.9.0

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

func (*MsgSwapToERC20) Reset added in v1.9.0

func (x *MsgSwapToERC20) Reset()

func (*MsgSwapToERC20) String added in v1.9.0

func (x *MsgSwapToERC20) String() string

type MsgSwapToERC20Response added in v1.9.0

type MsgSwapToERC20Response struct {
	// contains filtered or unexported fields
}

MsgSwapToERC20Response defines the Msg/SwapToERC20 response type

func (*MsgSwapToERC20Response) Descriptor deprecated added in v1.9.0

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

Deprecated: Use MsgSwapToERC20Response.ProtoReflect.Descriptor instead.

func (*MsgSwapToERC20Response) ProtoMessage added in v1.9.0

func (*MsgSwapToERC20Response) ProtoMessage()

func (*MsgSwapToERC20Response) ProtoReflect added in v1.9.0

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

func (*MsgSwapToERC20Response) Reset added in v1.9.0

func (x *MsgSwapToERC20Response) Reset()

func (*MsgSwapToERC20Response) String added in v1.9.0

func (x *MsgSwapToERC20Response) String() string

type MsgTransferTokenOwner

type MsgTransferTokenOwner struct {
	SrcOwner string `protobuf:"bytes,1,opt,name=src_owner,json=srcOwner,proto3" json:"src_owner,omitempty"`
	DstOwner string `protobuf:"bytes,2,opt,name=dst_owner,json=dstOwner,proto3" json:"dst_owner,omitempty"`
	Symbol   string `protobuf:"bytes,3,opt,name=symbol,proto3" json:"symbol,omitempty"`
	// contains filtered or unexported fields
}

MsgTransferTokenOwner defines an SDK message for transferring the token owner

func (*MsgTransferTokenOwner) Descriptor deprecated

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

Deprecated: Use MsgTransferTokenOwner.ProtoReflect.Descriptor instead.

func (*MsgTransferTokenOwner) GetDstOwner

func (x *MsgTransferTokenOwner) GetDstOwner() string

func (*MsgTransferTokenOwner) GetSrcOwner

func (x *MsgTransferTokenOwner) GetSrcOwner() string

func (*MsgTransferTokenOwner) GetSymbol

func (x *MsgTransferTokenOwner) GetSymbol() string

func (*MsgTransferTokenOwner) ProtoMessage

func (*MsgTransferTokenOwner) ProtoMessage()

func (*MsgTransferTokenOwner) ProtoReflect

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

func (*MsgTransferTokenOwner) Reset

func (x *MsgTransferTokenOwner) Reset()

func (*MsgTransferTokenOwner) String

func (x *MsgTransferTokenOwner) String() string

type MsgTransferTokenOwnerResponse

type MsgTransferTokenOwnerResponse struct {
	// contains filtered or unexported fields
}

MsgTransferTokenOwnerResponse defines the Msg/TransferTokenOwner response type

func (*MsgTransferTokenOwnerResponse) Descriptor deprecated

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

Deprecated: Use MsgTransferTokenOwnerResponse.ProtoReflect.Descriptor instead.

func (*MsgTransferTokenOwnerResponse) ProtoMessage

func (*MsgTransferTokenOwnerResponse) ProtoMessage()

func (*MsgTransferTokenOwnerResponse) ProtoReflect

func (*MsgTransferTokenOwnerResponse) Reset

func (x *MsgTransferTokenOwnerResponse) Reset()

func (*MsgTransferTokenOwnerResponse) String

type MsgUpdateParams

type MsgUpdateParams struct {

	// authority is the address that controls the module (defaults to token unless
	// overwritten).
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// params defines the token 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.

Since: cosmos-sdk 0.47

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 MsgUpgradeERC20 added in v1.9.0

type MsgUpgradeERC20 struct {

	// implementation is the new erc20 contract address
	Implementation string `protobuf:"bytes,1,opt,name=implementation,proto3" json:"implementation,omitempty"`
	Authority      string `protobuf:"bytes,2,opt,name=authority,proto3" json:"authority,omitempty"`
	// contains filtered or unexported fields
}

MsgUpgradeERC20 defines an SDK message for UpgradeERC20

func (*MsgUpgradeERC20) Descriptor deprecated added in v1.9.0

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

Deprecated: Use MsgUpgradeERC20.ProtoReflect.Descriptor instead.

func (*MsgUpgradeERC20) GetAuthority added in v1.9.0

func (x *MsgUpgradeERC20) GetAuthority() string

func (*MsgUpgradeERC20) GetImplementation added in v1.9.0

func (x *MsgUpgradeERC20) GetImplementation() string

func (*MsgUpgradeERC20) ProtoMessage added in v1.9.0

func (*MsgUpgradeERC20) ProtoMessage()

func (*MsgUpgradeERC20) ProtoReflect added in v1.9.0

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

func (*MsgUpgradeERC20) Reset added in v1.9.0

func (x *MsgUpgradeERC20) Reset()

func (*MsgUpgradeERC20) String added in v1.9.0

func (x *MsgUpgradeERC20) String() string

type MsgUpgradeERC20Response added in v1.9.0

type MsgUpgradeERC20Response struct {
	// contains filtered or unexported fields
}

MsgUpgradeERC20Response defines the Msg/UpgradeERC20 response type

func (*MsgUpgradeERC20Response) Descriptor deprecated added in v1.9.0

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

Deprecated: Use MsgUpgradeERC20Response.ProtoReflect.Descriptor instead.

func (*MsgUpgradeERC20Response) ProtoMessage added in v1.9.0

func (*MsgUpgradeERC20Response) ProtoMessage()

func (*MsgUpgradeERC20Response) ProtoReflect added in v1.9.0

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

func (*MsgUpgradeERC20Response) Reset added in v1.9.0

func (x *MsgUpgradeERC20Response) Reset()

func (*MsgUpgradeERC20Response) String added in v1.9.0

func (x *MsgUpgradeERC20Response) String() string

type Params

type Params struct {
	TokenTaxRate      string        `protobuf:"bytes,1,opt,name=token_tax_rate,json=tokenTaxRate,proto3" json:"token_tax_rate,omitempty"`
	IssueTokenBaseFee *v1beta1.Coin `protobuf:"bytes,2,opt,name=issue_token_base_fee,json=issueTokenBaseFee,proto3" json:"issue_token_base_fee,omitempty"`
	MintTokenFeeRatio string        `protobuf:"bytes,3,opt,name=mint_token_fee_ratio,json=mintTokenFeeRatio,proto3" json:"mint_token_fee_ratio,omitempty"`
	EnableErc20       bool          `protobuf:"varint,4,opt,name=enable_erc20,json=enableErc20,proto3" json:"enable_erc20,omitempty"`
	Beacon            string        `protobuf:"bytes,5,opt,name=beacon,proto3" json:"beacon,omitempty"`
	// contains filtered or unexported fields
}

Params defines token module's parameters

func (*Params) Descriptor deprecated

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

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetBeacon added in v1.9.0

func (x *Params) GetBeacon() string

func (*Params) GetEnableErc20 added in v1.9.0

func (x *Params) GetEnableErc20() bool

func (*Params) GetIssueTokenBaseFee

func (x *Params) GetIssueTokenBaseFee() *v1beta1.Coin

func (*Params) GetMintTokenFeeRatio

func (x *Params) GetMintTokenFeeRatio() string

func (*Params) GetTokenTaxRate

func (x *Params) GetTokenTaxRate() string

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 QueryBalancesRequest added in v1.9.0

type QueryBalancesRequest struct {
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	// address is the address to query balances for.
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

QueryBalancesRequest is request type for the Query/Balances RPC method

func (*QueryBalancesRequest) Descriptor deprecated added in v1.9.0

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

Deprecated: Use QueryBalancesRequest.ProtoReflect.Descriptor instead.

func (*QueryBalancesRequest) GetAddress added in v1.9.0

func (x *QueryBalancesRequest) GetAddress() string

func (*QueryBalancesRequest) GetDenom added in v1.9.0

func (x *QueryBalancesRequest) GetDenom() string

func (*QueryBalancesRequest) ProtoMessage added in v1.9.0

func (*QueryBalancesRequest) ProtoMessage()

func (*QueryBalancesRequest) ProtoReflect added in v1.9.0

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

func (*QueryBalancesRequest) Reset added in v1.9.0

func (x *QueryBalancesRequest) Reset()

func (*QueryBalancesRequest) String added in v1.9.0

func (x *QueryBalancesRequest) String() string

type QueryBalancesResponse added in v1.9.0

type QueryBalancesResponse struct {

	// balances is the balances of all the coins.
	Balances []*v1beta11.Coin `protobuf:"bytes,1,rep,name=balances,proto3" json:"balances,omitempty"`
	// contains filtered or unexported fields
}

QueryBalancesResponse is response type for the Query/Balances RPC method

func (*QueryBalancesResponse) Descriptor deprecated added in v1.9.0

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

Deprecated: Use QueryBalancesResponse.ProtoReflect.Descriptor instead.

func (*QueryBalancesResponse) GetBalances added in v1.9.0

func (x *QueryBalancesResponse) GetBalances() []*v1beta11.Coin

func (*QueryBalancesResponse) ProtoMessage added in v1.9.0

func (*QueryBalancesResponse) ProtoMessage()

func (*QueryBalancesResponse) ProtoReflect added in v1.9.0

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

func (*QueryBalancesResponse) Reset added in v1.9.0

func (x *QueryBalancesResponse) Reset()

func (*QueryBalancesResponse) String added in v1.9.0

func (x *QueryBalancesResponse) String() string

type QueryClient

type QueryClient interface {
	// Tokens returns the token list
	Tokens(ctx context.Context, in *QueryTokensRequest, opts ...grpc.CallOption) (*QueryTokensResponse, error)
	// Token returns token with token name
	Token(ctx context.Context, in *QueryTokenRequest, opts ...grpc.CallOption) (*QueryTokenResponse, error)
	// Fees returns the fees to issue or mint a token
	Fees(ctx context.Context, in *QueryFeesRequest, opts ...grpc.CallOption) (*QueryFeesResponse, error)
	// Params queries the token parameters
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// TotalBurn queries all the burnt coins
	TotalBurn(ctx context.Context, in *QueryTotalBurnRequest, opts ...grpc.CallOption) (*QueryTotalBurnResponse, error)
	// Balances queries the balance of the specified token (including erc20
	// balance)
	Balances(ctx context.Context, in *QueryBalancesRequest, opts ...grpc.CallOption) (*QueryBalancesResponse, 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 QueryFeesRequest

type QueryFeesRequest struct {
	Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
	// contains filtered or unexported fields
}

QueryFeesRequest is request type for the Query/Fees RPC method

func (*QueryFeesRequest) Descriptor deprecated

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

Deprecated: Use QueryFeesRequest.ProtoReflect.Descriptor instead.

func (*QueryFeesRequest) GetSymbol

func (x *QueryFeesRequest) GetSymbol() string

func (*QueryFeesRequest) ProtoMessage

func (*QueryFeesRequest) ProtoMessage()

func (*QueryFeesRequest) ProtoReflect

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

func (*QueryFeesRequest) Reset

func (x *QueryFeesRequest) Reset()

func (*QueryFeesRequest) String

func (x *QueryFeesRequest) String() string

type QueryFeesResponse

type QueryFeesResponse struct {
	Exist    bool           `protobuf:"varint,1,opt,name=exist,proto3" json:"exist,omitempty"`
	IssueFee *v1beta11.Coin `protobuf:"bytes,2,opt,name=issue_fee,json=issueFee,proto3" json:"issue_fee,omitempty"`
	MintFee  *v1beta11.Coin `protobuf:"bytes,3,opt,name=mint_fee,json=mintFee,proto3" json:"mint_fee,omitempty"`
	// contains filtered or unexported fields
}

QueryFeesResponse is response type for the Query/Fees RPC method

func (*QueryFeesResponse) Descriptor deprecated

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

Deprecated: Use QueryFeesResponse.ProtoReflect.Descriptor instead.

func (*QueryFeesResponse) GetExist

func (x *QueryFeesResponse) GetExist() bool

func (*QueryFeesResponse) GetIssueFee

func (x *QueryFeesResponse) GetIssueFee() *v1beta11.Coin

func (*QueryFeesResponse) GetMintFee

func (x *QueryFeesResponse) GetMintFee() *v1beta11.Coin

func (*QueryFeesResponse) ProtoMessage

func (*QueryFeesResponse) ProtoMessage()

func (*QueryFeesResponse) ProtoReflect

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

func (*QueryFeesResponse) Reset

func (x *QueryFeesResponse) Reset()

func (*QueryFeesResponse) String

func (x *QueryFeesResponse) String() string

type QueryParamsRequest

type QueryParamsRequest struct {
	// contains filtered or unexported fields
}

QueryParametersRequest is request type for the Query/Parameters 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"`
	Res    *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=res,proto3" json:"res,omitempty"`
	// contains filtered or unexported fields
}

QueryParametersResponse is response type for the Query/Parameters 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) GetRes

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 {
	// Tokens returns the token list
	Tokens(context.Context, *QueryTokensRequest) (*QueryTokensResponse, error)
	// Token returns token with token name
	Token(context.Context, *QueryTokenRequest) (*QueryTokenResponse, error)
	// Fees returns the fees to issue or mint a token
	Fees(context.Context, *QueryFeesRequest) (*QueryFeesResponse, error)
	// Params queries the token parameters
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// TotalBurn queries all the burnt coins
	TotalBurn(context.Context, *QueryTotalBurnRequest) (*QueryTotalBurnResponse, error)
	// Balances queries the balance of the specified token (including erc20
	// balance)
	Balances(context.Context, *QueryBalancesRequest) (*QueryBalancesResponse, error)
	// contains filtered or unexported methods
}

QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility

type QueryTokenRequest

type QueryTokenRequest struct {
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	// contains filtered or unexported fields
}

QueryTokenRequest is request type for the Query/Token RPC method

func (*QueryTokenRequest) Descriptor deprecated

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

Deprecated: Use QueryTokenRequest.ProtoReflect.Descriptor instead.

func (*QueryTokenRequest) GetDenom

func (x *QueryTokenRequest) GetDenom() string

func (*QueryTokenRequest) ProtoMessage

func (*QueryTokenRequest) ProtoMessage()

func (*QueryTokenRequest) ProtoReflect

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

func (*QueryTokenRequest) Reset

func (x *QueryTokenRequest) Reset()

func (*QueryTokenRequest) String

func (x *QueryTokenRequest) String() string

type QueryTokenResponse

type QueryTokenResponse struct {
	Token *anypb.Any `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

QueryTokenResponse is response type for the Query/Token RPC method

func (*QueryTokenResponse) Descriptor deprecated

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

Deprecated: Use QueryTokenResponse.ProtoReflect.Descriptor instead.

func (*QueryTokenResponse) GetToken

func (x *QueryTokenResponse) GetToken() *anypb.Any

func (*QueryTokenResponse) ProtoMessage

func (*QueryTokenResponse) ProtoMessage()

func (*QueryTokenResponse) ProtoReflect

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

func (*QueryTokenResponse) Reset

func (x *QueryTokenResponse) Reset()

func (*QueryTokenResponse) String

func (x *QueryTokenResponse) String() string

type QueryTokensRequest

type QueryTokensRequest struct {
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryTokensRequest is request type for the Query/Tokens RPC method

func (*QueryTokensRequest) Descriptor deprecated

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

Deprecated: Use QueryTokensRequest.ProtoReflect.Descriptor instead.

func (*QueryTokensRequest) GetOwner

func (x *QueryTokensRequest) GetOwner() string

func (*QueryTokensRequest) GetPagination

func (x *QueryTokensRequest) GetPagination() *v1beta1.PageRequest

func (*QueryTokensRequest) ProtoMessage

func (*QueryTokensRequest) ProtoMessage()

func (*QueryTokensRequest) ProtoReflect

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

func (*QueryTokensRequest) Reset

func (x *QueryTokensRequest) Reset()

func (*QueryTokensRequest) String

func (x *QueryTokensRequest) String() string

type QueryTokensResponse

type QueryTokensResponse struct {
	Tokens     []*anypb.Any          `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"`
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryTokensResponse is response type for the Query/Tokens RPC method

func (*QueryTokensResponse) Descriptor deprecated

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

Deprecated: Use QueryTokensResponse.ProtoReflect.Descriptor instead.

func (*QueryTokensResponse) GetPagination

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

func (*QueryTokensResponse) GetTokens

func (x *QueryTokensResponse) GetTokens() []*anypb.Any

func (*QueryTokensResponse) ProtoMessage

func (*QueryTokensResponse) ProtoMessage()

func (*QueryTokensResponse) ProtoReflect

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

func (*QueryTokensResponse) Reset

func (x *QueryTokensResponse) Reset()

func (*QueryTokensResponse) String

func (x *QueryTokensResponse) String() string

type QueryTotalBurnRequest

type QueryTotalBurnRequest struct {
	// contains filtered or unexported fields
}

QueryTokenRequest is request type for the Query/TotalBurn RPC method

func (*QueryTotalBurnRequest) Descriptor deprecated

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

Deprecated: Use QueryTotalBurnRequest.ProtoReflect.Descriptor instead.

func (*QueryTotalBurnRequest) ProtoMessage

func (*QueryTotalBurnRequest) ProtoMessage()

func (*QueryTotalBurnRequest) ProtoReflect

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

func (*QueryTotalBurnRequest) Reset

func (x *QueryTotalBurnRequest) Reset()

func (*QueryTotalBurnRequest) String

func (x *QueryTotalBurnRequest) String() string

type QueryTotalBurnResponse

type QueryTotalBurnResponse struct {
	BurnedCoins []*v1beta11.Coin `protobuf:"bytes,1,rep,name=burned_coins,json=burnedCoins,proto3" json:"burned_coins,omitempty"`
	// contains filtered or unexported fields
}

QueryTotalBurnResponse is response type for the Query/TotalBurn RPC method

func (*QueryTotalBurnResponse) Descriptor deprecated

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

Deprecated: Use QueryTotalBurnResponse.ProtoReflect.Descriptor instead.

func (*QueryTotalBurnResponse) GetBurnedCoins

func (x *QueryTotalBurnResponse) GetBurnedCoins() []*v1beta11.Coin

func (*QueryTotalBurnResponse) ProtoMessage

func (*QueryTotalBurnResponse) ProtoMessage()

func (*QueryTotalBurnResponse) ProtoReflect

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

func (*QueryTotalBurnResponse) Reset

func (x *QueryTotalBurnResponse) Reset()

func (*QueryTotalBurnResponse) String

func (x *QueryTotalBurnResponse) String() string

type Token

type Token struct {
	Symbol        string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
	Name          string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Scale         uint32 `protobuf:"varint,3,opt,name=scale,proto3" json:"scale,omitempty"`
	MinUnit       string `protobuf:"bytes,4,opt,name=min_unit,json=minUnit,proto3" json:"min_unit,omitempty"`
	InitialSupply uint64 `protobuf:"varint,5,opt,name=initial_supply,json=initialSupply,proto3" json:"initial_supply,omitempty"`
	MaxSupply     uint64 `protobuf:"varint,6,opt,name=max_supply,json=maxSupply,proto3" json:"max_supply,omitempty"`
	Mintable      bool   `protobuf:"varint,7,opt,name=mintable,proto3" json:"mintable,omitempty"`
	Owner         string `protobuf:"bytes,8,opt,name=owner,proto3" json:"owner,omitempty"`
	Contract      string `protobuf:"bytes,9,opt,name=contract,proto3" json:"contract,omitempty"`
	// contains filtered or unexported fields
}

Token defines a standard for the fungible token

func (*Token) Descriptor deprecated

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

Deprecated: Use Token.ProtoReflect.Descriptor instead.

func (*Token) GetContract added in v1.9.0

func (x *Token) GetContract() string

func (*Token) GetInitialSupply

func (x *Token) GetInitialSupply() uint64

func (*Token) GetMaxSupply

func (x *Token) GetMaxSupply() uint64

func (*Token) GetMinUnit

func (x *Token) GetMinUnit() string

func (*Token) GetMintable

func (x *Token) GetMintable() bool

func (*Token) GetName

func (x *Token) GetName() string

func (*Token) GetOwner

func (x *Token) GetOwner() string

func (*Token) GetScale

func (x *Token) GetScale() uint32

func (*Token) GetSymbol

func (x *Token) GetSymbol() string

func (*Token) ProtoMessage

func (*Token) ProtoMessage()

func (*Token) ProtoReflect

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

func (*Token) Reset

func (x *Token) Reset()

func (*Token) String

func (x *Token) String() string

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) BurnToken

func (UnimplementedMsgServer) DeployERC20 added in v1.9.0

func (UnimplementedMsgServer) EditToken

func (UnimplementedMsgServer) IssueToken

func (UnimplementedMsgServer) MintToken

func (UnimplementedMsgServer) SwapFeeToken

func (UnimplementedMsgServer) SwapFromERC20 added in v1.9.0

func (UnimplementedMsgServer) SwapToERC20 added in v1.9.0

func (UnimplementedMsgServer) UpdateParams

func (UnimplementedMsgServer) UpgradeERC20 added in v1.9.0

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) Balances added in v1.9.0

func (UnimplementedQueryServer) Fees

func (UnimplementedQueryServer) Params

func (UnimplementedQueryServer) Token

func (UnimplementedQueryServer) Tokens

func (UnimplementedQueryServer) TotalBurn

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.

Jump to

Keyboard shortcuts

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