types

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: 32 Imported by: 30

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName is the name of the module
	ModuleName = "mt"

	// StoreKey is the default store key for MT
	StoreKey = ModuleName

	// QuerierRoute is the querier route for the MT store.
	QuerierRoute = ModuleName

	// RouterKey is the message route for the MT module
	RouterKey = ModuleName

	// KeyNextDenomSequence is the key used to store the next denom sequence in the keeper
	KeyNextDenomSequence = "nextDenomSequence"

	// KeyNextMTSequence is the key used to store the next MT sequence in the keeper
	KeyNextMTSequence = "nextMTSequence"
)
View Source
const (
	TypeMsgIssueDenom    = "issue_denom"
	TypeMsgTransferDenom = "transfer_denom"

	TypeMsgMintMT     = "mint_mt"
	TypeMsgTransferMT = "transfer_mt"
	TypeMsgEditMT     = "edit_mt"
	TypeMsgBurnMT     = "burn_mt"
)

constant used to indicate that some field should not be updated

View Source
const (
	QuerySupply     = "supply"
	QueryOwner      = "owner"
	QueryCollection = "collection"
	QueryDenoms     = "denoms"
	QueryDenom      = "denom"
	QueryMT         = "mt"
)

query endpoints supported by the MT Querier

View Source
const (
	DoNotModify = "[do-not-modify]"
)

Variables

View Source
var (
	EventTypeIssueDenom    = "issue_denom"
	EventTypeTransfer      = "transfer_mt"
	EventTypeEditMT        = "edit_mt"
	EventTypeMintMT        = "mint_mt"
	EventTypeBurnMT        = "burn_mt"
	EventTypeTransferDenom = "transfer_denom"

	AttributeValueCategory = ModuleName

	AttributeKeySender    = "sender"
	AttributeKeyCreator   = "creator"
	AttributeKeyRecipient = "recipient"
	AttributeKeyOwner     = "owner"
	AttributeKeyMTID      = "mt_id"
	AttributeKeySupply    = "supply"
	AttributeKeyAmount    = "amount"
	AttributeKeyDenomID   = "denom_id"
	AttributeKeyDenomName = "denom_name"
)

MT module event types

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	PrefixDenom   = []byte{0x01}
	PrefixMT      = []byte{0x02}
	PrefixBalance = []byte{0x03}
	PrefixSupply  = []byte{0x04}

	Delimiter = []byte("/")
)
View Source
var (
	ErrInvalidLengthMt        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMt          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMt = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func KeyBalance

func KeyBalance(address sdk.AccAddress, denomID, mtID string) []byte

KeyBalance gets the key of a balance owned by an account address

func KeyDenom

func KeyDenom(id string) []byte

KeyDenom gets the storeKey by the denom

func KeyMT

func KeyMT(denomID, mtID string) []byte

KeyMT gets the key of MT stored by an denom and MT

func KeySupply

func KeySupply(denomID, mtID string) []byte

KeySupply gets the key of supply of a denom or MT

func Modified

func Modified(target string) bool

Modified returns whether the field is modified

func MustMarshalAmount

func MustMarshalAmount(cdc codec.Codec, amount uint64) []byte

func MustMarshalMTID

func MustMarshalMTID(cdc codec.Codec, mtID string) []byte

return the mtID protobuf code

func MustMarshalSupply

func MustMarshalSupply(cdc codec.Codec, supply uint64) []byte

return supply protobuf code

func MustUnMarshalAmount

func MustUnMarshalAmount(cdc codec.Codec, value []byte) uint64

func MustUnMarshalMTID

func MustUnMarshalMTID(cdc codec.Codec, value []byte) string

return th mtID

func MustUnMarshalSupply

func MustUnMarshalSupply(cdc codec.Codec, value []byte) uint64

return th supply

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec concrete types on codec

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func ValidateGenesis

func ValidateGenesis(data GenesisState) error

ValidateGenesis performs basic validation of mts genesis data returning an error for any failed validation criteria.

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI
}

AccountKeeper defines the expected account keeper for query account

type Balance

type Balance struct {
	MtId   string `protobuf:"bytes,1,opt,name=mt_id,json=mtId,proto3" json:"mt_id,omitempty"`
	Amount uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
}

Balance defines multi token balance for owners

func NewBalance

func NewBalance(mtID string, amount uint64) (b Balance)

NewBalance creates a new mt balance

func (*Balance) Descriptor

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

func (*Balance) Equal

func (this *Balance) Equal(that interface{}) bool

func (*Balance) Marshal

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

func (*Balance) MarshalTo

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

func (*Balance) MarshalToSizedBuffer

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

func (*Balance) ProtoMessage

func (*Balance) ProtoMessage()

func (*Balance) Reset

func (m *Balance) Reset()

func (*Balance) Size

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

func (*Balance) String

func (m *Balance) String() string

func (*Balance) Unmarshal

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

func (*Balance) XXX_DiscardUnknown

func (m *Balance) XXX_DiscardUnknown()

func (*Balance) XXX_Marshal

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

func (*Balance) XXX_Merge

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

func (*Balance) XXX_Size

func (m *Balance) XXX_Size() int

func (*Balance) XXX_Unmarshal

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

type BankKeeper

type BankKeeper interface {
	GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	LockedCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
}

BankKeeper defines the expected interface needed to retrieve account balances.

type Collection

type Collection struct {
	Denom *Denom `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Mts   []MT   `protobuf:"bytes,2,rep,name=mts,proto3" json:"mts"`
}

Collection defines a type of collection

func NewCollection

func NewCollection(denom Denom, mts []exported.MT) (c Collection)

--------------------------------------------- NewCollection creates a new MT Collection

func NewCollections

func NewCollections(c ...Collection) []Collection

NewCollections creates collections

func (Collection) AddMT

func (c Collection) AddMT(mt MT) Collection

AddMT adds an MT to the collection

func (*Collection) Descriptor

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

func (*Collection) Equal

func (this *Collection) Equal(that interface{}) bool

func (*Collection) GetDenom

func (m *Collection) GetDenom() *Denom

func (*Collection) GetMts

func (m *Collection) GetMts() []MT

func (*Collection) Marshal

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

func (*Collection) MarshalTo

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

func (*Collection) MarshalToSizedBuffer

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

func (*Collection) ProtoMessage

func (*Collection) ProtoMessage()

func (*Collection) Reset

func (m *Collection) Reset()

func (*Collection) Size

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

func (*Collection) String

func (m *Collection) String() string

func (Collection) Supply

func (c Collection) Supply() int

Supply queries supply of a collection

func (*Collection) Unmarshal

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

func (*Collection) XXX_DiscardUnknown

func (m *Collection) XXX_DiscardUnknown()

func (*Collection) XXX_Marshal

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

func (*Collection) XXX_Merge

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

func (*Collection) XXX_Size

func (m *Collection) XXX_Size() int

func (*Collection) XXX_Unmarshal

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

type Denom

type Denom struct {
	Id    string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name  string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Data  []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"`
}

Denom defines a class of MTs

func (*Denom) Descriptor

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

func (*Denom) Equal

func (this *Denom) Equal(that interface{}) bool

func (*Denom) Marshal

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

func (*Denom) MarshalTo

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

func (*Denom) MarshalToSizedBuffer

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

func (*Denom) ProtoMessage

func (*Denom) ProtoMessage()

func (*Denom) Reset

func (m *Denom) Reset()

func (*Denom) Size

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

func (*Denom) String

func (m *Denom) String() string

func (*Denom) Unmarshal

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

func (*Denom) XXX_DiscardUnknown

func (m *Denom) XXX_DiscardUnknown()

func (*Denom) XXX_Marshal

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

func (*Denom) XXX_Merge

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

func (*Denom) XXX_Size

func (m *Denom) XXX_Size() int

func (*Denom) XXX_Unmarshal

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

type DenomBalance

type DenomBalance struct {
	DenomId  string    `protobuf:"bytes,1,opt,name=denom_id,json=denomId,proto3" json:"denom_id,omitempty"`
	Balances []Balance `protobuf:"bytes,2,rep,name=balances,proto3" json:"balances"`
}

DenomBalance defines a type of denom balances owned by an account

func NewDenomBalance

func NewDenomBalance(denomID string, balances []Balance) (d DenomBalance)

NewDenomBalance creates a new denom balance

func (*DenomBalance) Descriptor

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

func (*DenomBalance) Equal

func (this *DenomBalance) Equal(that interface{}) bool

func (*DenomBalance) GetBalances

func (m *DenomBalance) GetBalances() []Balance

func (*DenomBalance) GetDenomId

func (m *DenomBalance) GetDenomId() string

func (*DenomBalance) Marshal

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

func (*DenomBalance) MarshalTo

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

func (*DenomBalance) MarshalToSizedBuffer

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

func (*DenomBalance) ProtoMessage

func (*DenomBalance) ProtoMessage()

func (*DenomBalance) Reset

func (m *DenomBalance) Reset()

func (*DenomBalance) Size

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

func (*DenomBalance) String

func (m *DenomBalance) String() string

func (*DenomBalance) Unmarshal

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

func (*DenomBalance) XXX_DiscardUnknown

func (m *DenomBalance) XXX_DiscardUnknown()

func (*DenomBalance) XXX_Marshal

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

func (*DenomBalance) XXX_Merge

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

func (*DenomBalance) XXX_Size

func (m *DenomBalance) XXX_Size() int

func (*DenomBalance) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	Collections []Collection `protobuf:"bytes,1,rep,name=collections,proto3" json:"collections"`
	Owners      []Owner      `protobuf:"bytes,2,rep,name=owners,proto3" json:"owners"`
}

GenesisState defines the MT module's genesis state

func NewGenesisState

func NewGenesisState(collections []Collection, owners []Owner) *GenesisState

NewGenesisState creates a new genesis state.

func (*GenesisState) Descriptor

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

func (*GenesisState) GetCollections

func (m *GenesisState) GetCollections() []Collection

func (*GenesisState) GetOwners

func (m *GenesisState) GetOwners() []Owner

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type MT

type MT struct {
	Id     string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Supply uint64 `protobuf:"varint,2,opt,name=supply,proto3" json:"supply,omitempty"`
	Data   []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
}

MT defines a multi token

func NewMT

func NewMT(id string, supply uint64, data []byte) MT

NewMT creates a new MT instance

func (*MT) Descriptor

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

func (*MT) Equal

func (this *MT) Equal(that interface{}) bool

func (MT) GetData

func (mt MT) GetData() []byte

GetData return the Data of MT

func (MT) GetID

func (mt MT) GetID() string

GetID return the id of MT

func (MT) GetSupply

func (mt MT) GetSupply() uint64

GetID return the supply of MT

func (*MT) Marshal

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

func (*MT) MarshalTo

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

func (*MT) MarshalToSizedBuffer

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

func (*MT) ProtoMessage

func (*MT) ProtoMessage()

func (*MT) Reset

func (m *MT) Reset()

func (*MT) Size

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

func (*MT) String

func (m *MT) String() string

func (*MT) Unmarshal

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

func (*MT) XXX_DiscardUnknown

func (m *MT) XXX_DiscardUnknown()

func (*MT) XXX_Marshal

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

func (*MT) XXX_Merge

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

func (*MT) XXX_Size

func (m *MT) XXX_Size() int

func (*MT) XXX_Unmarshal

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

type MTs

type MTs []exported.MT

MTs define a list of MT

func NewMTs

func NewMTs(nfts ...exported.MT) MTs

NewMTs creates a new set of MTs

type MsgBurnMT

type MsgBurnMT struct {
	Id      string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	DenomId string `protobuf:"bytes,2,opt,name=denom_id,json=denomId,proto3" json:"denom_id,omitempty"`
	Amount  uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	Sender  string `protobuf:"bytes,4,opt,name=sender,proto3" json:"sender,omitempty"`
}

MsgBurnMT defines an SDK message for burning an MT.

func NewMsgBurnMT

func NewMsgBurnMT(sender, mtID, denomID string, amount uint64) *MsgBurnMT

NewMsgBurnMT is a constructor function for MsgBurnMT

func (*MsgBurnMT) Descriptor

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

func (*MsgBurnMT) Equal

func (this *MsgBurnMT) Equal(that interface{}) bool

func (MsgBurnMT) GetSignBytes

func (msg MsgBurnMT) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgBurnMT) GetSigners

func (msg MsgBurnMT) GetSigners() []sdk.AccAddress

GetSigners Implements Msg.

func (*MsgBurnMT) Marshal

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

func (*MsgBurnMT) MarshalTo

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

func (*MsgBurnMT) MarshalToSizedBuffer

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

func (*MsgBurnMT) ProtoMessage

func (*MsgBurnMT) ProtoMessage()

func (*MsgBurnMT) Reset

func (m *MsgBurnMT) Reset()

func (MsgBurnMT) Route

func (msg MsgBurnMT) Route() string

Route Implements Msg

func (*MsgBurnMT) Size

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

func (*MsgBurnMT) String

func (m *MsgBurnMT) String() string

func (MsgBurnMT) Type

func (msg MsgBurnMT) Type() string

Type Implements Msg

func (*MsgBurnMT) Unmarshal

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

func (MsgBurnMT) ValidateBasic

func (msg MsgBurnMT) ValidateBasic() error

ValidateBasic Implements Msg.

func (*MsgBurnMT) XXX_DiscardUnknown

func (m *MsgBurnMT) XXX_DiscardUnknown()

func (*MsgBurnMT) XXX_Marshal

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

func (*MsgBurnMT) XXX_Merge

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

func (*MsgBurnMT) XXX_Size

func (m *MsgBurnMT) XXX_Size() int

func (*MsgBurnMT) XXX_Unmarshal

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

type MsgBurnMTResponse

type MsgBurnMTResponse struct {
}

MsgBurnMTResponse defines the Msg/BurnMT response type.

func (*MsgBurnMTResponse) Descriptor

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

func (*MsgBurnMTResponse) Marshal

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

func (*MsgBurnMTResponse) MarshalTo

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

func (*MsgBurnMTResponse) MarshalToSizedBuffer

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

func (*MsgBurnMTResponse) ProtoMessage

func (*MsgBurnMTResponse) ProtoMessage()

func (*MsgBurnMTResponse) Reset

func (m *MsgBurnMTResponse) Reset()

func (*MsgBurnMTResponse) Size

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

func (*MsgBurnMTResponse) String

func (m *MsgBurnMTResponse) String() string

func (*MsgBurnMTResponse) Unmarshal

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

func (*MsgBurnMTResponse) XXX_DiscardUnknown

func (m *MsgBurnMTResponse) XXX_DiscardUnknown()

func (*MsgBurnMTResponse) XXX_Marshal

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

func (*MsgBurnMTResponse) XXX_Merge

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

func (*MsgBurnMTResponse) XXX_Size

func (m *MsgBurnMTResponse) XXX_Size() int

func (*MsgBurnMTResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// IssueDenom defines a method for issuing a denom.
	IssueDenom(ctx context.Context, in *MsgIssueDenom, opts ...grpc.CallOption) (*MsgIssueDenomResponse, error)
	// TransferDenom defines a method for transferring a denom.
	TransferDenom(ctx context.Context, in *MsgTransferDenom, opts ...grpc.CallOption) (*MsgTransferDenomResponse, error)
	// MintMT defines a method for creating a new MT or minting amounts of an
	// existing MT
	MintMT(ctx context.Context, in *MsgMintMT, opts ...grpc.CallOption) (*MsgMintMTResponse, error)
	// EditMT defines a method for editing an MT.
	EditMT(ctx context.Context, in *MsgEditMT, opts ...grpc.CallOption) (*MsgEditMTResponse, error)
	// TransferMT defines a method for transferring an MT.
	TransferMT(ctx context.Context, in *MsgTransferMT, opts ...grpc.CallOption) (*MsgTransferMTResponse, error)
	// BurnMT defines a method for burning an MT.
	BurnMT(ctx context.Context, in *MsgBurnMT, opts ...grpc.CallOption) (*MsgBurnMTResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgEditMT

type MsgEditMT struct {
	Id      string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	DenomId string `protobuf:"bytes,2,opt,name=denom_id,json=denomId,proto3" json:"denom_id,omitempty"`
	Data    []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	Sender  string `protobuf:"bytes,4,opt,name=sender,proto3" json:"sender,omitempty"`
}

MsgEditMT defines an SDK message for editing an MT.

func NewMsgEditMT

func NewMsgEditMT(
	mtID, denomID, tokenData, sender string,
) *MsgEditMT

NewMsgEditMT is a constructor function for MsgEditMT

func (*MsgEditMT) Descriptor

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

func (*MsgEditMT) Equal

func (this *MsgEditMT) Equal(that interface{}) bool

func (MsgEditMT) GetSignBytes

func (msg MsgEditMT) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgEditMT) GetSigners

func (msg MsgEditMT) GetSigners() []sdk.AccAddress

GetSigners Implements Msg.

func (*MsgEditMT) Marshal

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

func (*MsgEditMT) MarshalTo

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

func (*MsgEditMT) MarshalToSizedBuffer

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

func (*MsgEditMT) ProtoMessage

func (*MsgEditMT) ProtoMessage()

func (*MsgEditMT) Reset

func (m *MsgEditMT) Reset()

func (MsgEditMT) Route

func (msg MsgEditMT) Route() string

Route Implements Msg

func (*MsgEditMT) Size

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

func (*MsgEditMT) String

func (m *MsgEditMT) String() string

func (MsgEditMT) Type

func (msg MsgEditMT) Type() string

Type Implements Msg

func (*MsgEditMT) Unmarshal

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

func (MsgEditMT) ValidateBasic

func (msg MsgEditMT) ValidateBasic() error

ValidateBasic Implements Msg.

func (*MsgEditMT) XXX_DiscardUnknown

func (m *MsgEditMT) XXX_DiscardUnknown()

func (*MsgEditMT) XXX_Marshal

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

func (*MsgEditMT) XXX_Merge

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

func (*MsgEditMT) XXX_Size

func (m *MsgEditMT) XXX_Size() int

func (*MsgEditMT) XXX_Unmarshal

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

type MsgEditMTResponse

type MsgEditMTResponse struct {
}

MsgEditMTResponse defines the Msg/EditMT response type.

func (*MsgEditMTResponse) Descriptor

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

func (*MsgEditMTResponse) Marshal

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

func (*MsgEditMTResponse) MarshalTo

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

func (*MsgEditMTResponse) MarshalToSizedBuffer

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

func (*MsgEditMTResponse) ProtoMessage

func (*MsgEditMTResponse) ProtoMessage()

func (*MsgEditMTResponse) Reset

func (m *MsgEditMTResponse) Reset()

func (*MsgEditMTResponse) Size

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

func (*MsgEditMTResponse) String

func (m *MsgEditMTResponse) String() string

func (*MsgEditMTResponse) Unmarshal

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

func (*MsgEditMTResponse) XXX_DiscardUnknown

func (m *MsgEditMTResponse) XXX_DiscardUnknown()

func (*MsgEditMTResponse) XXX_Marshal

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

func (*MsgEditMTResponse) XXX_Merge

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

func (*MsgEditMTResponse) XXX_Size

func (m *MsgEditMTResponse) XXX_Size() int

func (*MsgEditMTResponse) XXX_Unmarshal

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

type MsgIssueDenom

type MsgIssueDenom struct {
	Name   string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Data   []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	Sender string `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"`
}

MsgIssueDenom defines an SDK message for creating a new denom.

func NewMsgIssueDenom

func NewMsgIssueDenom(name, data, sender string) *MsgIssueDenom

NewMsgIssueDenom is a constructor function for MsgIssueDenom

func (*MsgIssueDenom) Descriptor

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

func (*MsgIssueDenom) Equal

func (this *MsgIssueDenom) Equal(that interface{}) bool

func (MsgIssueDenom) GetSignBytes

func (msg MsgIssueDenom) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgIssueDenom) GetSigners

func (msg MsgIssueDenom) GetSigners() []sdk.AccAddress

GetSigners Implements Msg.

func (*MsgIssueDenom) Marshal

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

func (*MsgIssueDenom) MarshalTo

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

func (*MsgIssueDenom) MarshalToSizedBuffer

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

func (*MsgIssueDenom) ProtoMessage

func (*MsgIssueDenom) ProtoMessage()

func (*MsgIssueDenom) Reset

func (m *MsgIssueDenom) Reset()

func (MsgIssueDenom) Route

func (msg MsgIssueDenom) Route() string

Route Implements Msg

func (*MsgIssueDenom) Size

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

func (*MsgIssueDenom) String

func (m *MsgIssueDenom) String() string

func (MsgIssueDenom) Type

func (msg MsgIssueDenom) Type() string

Type Implements Msg

func (*MsgIssueDenom) Unmarshal

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

func (MsgIssueDenom) ValidateBasic

func (msg MsgIssueDenom) ValidateBasic() error

ValidateBasic Implements Msg.

func (*MsgIssueDenom) XXX_DiscardUnknown

func (m *MsgIssueDenom) XXX_DiscardUnknown()

func (*MsgIssueDenom) XXX_Marshal

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

func (*MsgIssueDenom) XXX_Merge

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

func (*MsgIssueDenom) XXX_Size

func (m *MsgIssueDenom) XXX_Size() int

func (*MsgIssueDenom) XXX_Unmarshal

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

type MsgIssueDenomResponse

type MsgIssueDenomResponse struct {
}

MsgIssueDenomResponse defines the Msg/IssueDenom response type.

func (*MsgIssueDenomResponse) Descriptor

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

func (*MsgIssueDenomResponse) Marshal

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

func (*MsgIssueDenomResponse) MarshalTo

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

func (*MsgIssueDenomResponse) MarshalToSizedBuffer

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

func (*MsgIssueDenomResponse) ProtoMessage

func (*MsgIssueDenomResponse) ProtoMessage()

func (*MsgIssueDenomResponse) Reset

func (m *MsgIssueDenomResponse) Reset()

func (*MsgIssueDenomResponse) Size

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

func (*MsgIssueDenomResponse) String

func (m *MsgIssueDenomResponse) String() string

func (*MsgIssueDenomResponse) Unmarshal

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

func (*MsgIssueDenomResponse) XXX_DiscardUnknown

func (m *MsgIssueDenomResponse) XXX_DiscardUnknown()

func (*MsgIssueDenomResponse) XXX_Marshal

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

func (*MsgIssueDenomResponse) XXX_Merge

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

func (*MsgIssueDenomResponse) XXX_Size

func (m *MsgIssueDenomResponse) XXX_Size() int

func (*MsgIssueDenomResponse) XXX_Unmarshal

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

type MsgMintMT

type MsgMintMT struct {
	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	DenomId   string `protobuf:"bytes,2,opt,name=denom_id,json=denomId,proto3" json:"denom_id,omitempty"`
	Amount    uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	Data      []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
	Sender    string `protobuf:"bytes,5,opt,name=sender,proto3" json:"sender,omitempty"`
	Recipient string `protobuf:"bytes,6,opt,name=recipient,proto3" json:"recipient,omitempty"`
}

MsgMintMT defines an SDK message for creating a new MT.

func NewMsgMintMT

func NewMsgMintMT(
	mtID, denomID string, amount uint64, tokenData, sender, recipient string,
) *MsgMintMT

NewMsgMintMT is a constructor function for MsgMintMT

func (*MsgMintMT) Descriptor

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

func (*MsgMintMT) Equal

func (this *MsgMintMT) Equal(that interface{}) bool

func (MsgMintMT) GetSignBytes

func (msg MsgMintMT) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgMintMT) GetSigners

func (msg MsgMintMT) GetSigners() []sdk.AccAddress

GetSigners Implements Msg.

func (*MsgMintMT) Marshal

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

func (*MsgMintMT) MarshalTo

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

func (*MsgMintMT) MarshalToSizedBuffer

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

func (*MsgMintMT) ProtoMessage

func (*MsgMintMT) ProtoMessage()

func (*MsgMintMT) Reset

func (m *MsgMintMT) Reset()

func (MsgMintMT) Route

func (msg MsgMintMT) Route() string

Route Implements Msg

func (*MsgMintMT) Size

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

func (*MsgMintMT) String

func (m *MsgMintMT) String() string

func (MsgMintMT) Type

func (msg MsgMintMT) Type() string

Type Implements Msg

func (*MsgMintMT) Unmarshal

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

func (MsgMintMT) ValidateBasic

func (msg MsgMintMT) ValidateBasic() error

ValidateBasic Implements Msg.

func (*MsgMintMT) XXX_DiscardUnknown

func (m *MsgMintMT) XXX_DiscardUnknown()

func (*MsgMintMT) XXX_Marshal

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

func (*MsgMintMT) XXX_Merge

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

func (*MsgMintMT) XXX_Size

func (m *MsgMintMT) XXX_Size() int

func (*MsgMintMT) XXX_Unmarshal

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

type MsgMintMTResponse

type MsgMintMTResponse struct {
}

MsgMintMTResponse defines the Msg/MintMT response type.

func (*MsgMintMTResponse) Descriptor

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

func (*MsgMintMTResponse) Marshal

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

func (*MsgMintMTResponse) MarshalTo

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

func (*MsgMintMTResponse) MarshalToSizedBuffer

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

func (*MsgMintMTResponse) ProtoMessage

func (*MsgMintMTResponse) ProtoMessage()

func (*MsgMintMTResponse) Reset

func (m *MsgMintMTResponse) Reset()

func (*MsgMintMTResponse) Size

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

func (*MsgMintMTResponse) String

func (m *MsgMintMTResponse) String() string

func (*MsgMintMTResponse) Unmarshal

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

func (*MsgMintMTResponse) XXX_DiscardUnknown

func (m *MsgMintMTResponse) XXX_DiscardUnknown()

func (*MsgMintMTResponse) XXX_Marshal

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

func (*MsgMintMTResponse) XXX_Merge

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

func (*MsgMintMTResponse) XXX_Size

func (m *MsgMintMTResponse) XXX_Size() int

func (*MsgMintMTResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// IssueDenom defines a method for issuing a denom.
	IssueDenom(context.Context, *MsgIssueDenom) (*MsgIssueDenomResponse, error)
	// TransferDenom defines a method for transferring a denom.
	TransferDenom(context.Context, *MsgTransferDenom) (*MsgTransferDenomResponse, error)
	// MintMT defines a method for creating a new MT or minting amounts of an
	// existing MT
	MintMT(context.Context, *MsgMintMT) (*MsgMintMTResponse, error)
	// EditMT defines a method for editing an MT.
	EditMT(context.Context, *MsgEditMT) (*MsgEditMTResponse, error)
	// TransferMT defines a method for transferring an MT.
	TransferMT(context.Context, *MsgTransferMT) (*MsgTransferMTResponse, error)
	// BurnMT defines a method for burning an MT.
	BurnMT(context.Context, *MsgBurnMT) (*MsgBurnMTResponse, error)
}

MsgServer is the server API for Msg service.

type MsgTransferDenom

type MsgTransferDenom struct {
	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Sender    string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"`
	Recipient string `protobuf:"bytes,3,opt,name=recipient,proto3" json:"recipient,omitempty"`
}

MsgTransferDenom defines an SDK message for transferring an denom to recipient.

func NewMsgTransferDenom

func NewMsgTransferDenom(denomId, sender, recipient string) *MsgTransferDenom

NewMsgTransferDenom is a constructor function for MsgTransferDenom

func (*MsgTransferDenom) Descriptor

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

func (*MsgTransferDenom) Equal

func (this *MsgTransferDenom) Equal(that interface{}) bool

func (MsgTransferDenom) GetSignBytes

func (msg MsgTransferDenom) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgTransferDenom) GetSigners

func (msg MsgTransferDenom) GetSigners() []sdk.AccAddress

GetSigners Implements Msg.

func (*MsgTransferDenom) Marshal

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

func (*MsgTransferDenom) MarshalTo

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

func (*MsgTransferDenom) MarshalToSizedBuffer

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

func (*MsgTransferDenom) ProtoMessage

func (*MsgTransferDenom) ProtoMessage()

func (*MsgTransferDenom) Reset

func (m *MsgTransferDenom) Reset()

func (MsgTransferDenom) Route

func (msg MsgTransferDenom) Route() string

Route Implements Msg

func (*MsgTransferDenom) Size

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

func (*MsgTransferDenom) String

func (m *MsgTransferDenom) String() string

func (MsgTransferDenom) Type

func (msg MsgTransferDenom) Type() string

Type Implements Msg

func (*MsgTransferDenom) Unmarshal

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

func (MsgTransferDenom) ValidateBasic

func (msg MsgTransferDenom) ValidateBasic() error

ValidateBasic Implements Msg.

func (*MsgTransferDenom) XXX_DiscardUnknown

func (m *MsgTransferDenom) XXX_DiscardUnknown()

func (*MsgTransferDenom) XXX_Marshal

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

func (*MsgTransferDenom) XXX_Merge

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

func (*MsgTransferDenom) XXX_Size

func (m *MsgTransferDenom) XXX_Size() int

func (*MsgTransferDenom) XXX_Unmarshal

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

type MsgTransferDenomResponse

type MsgTransferDenomResponse struct {
}

MsgTransferDenomResponse defines the Msg/TransferDenom response type.

func (*MsgTransferDenomResponse) Descriptor

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

func (*MsgTransferDenomResponse) Marshal

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

func (*MsgTransferDenomResponse) MarshalTo

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

func (*MsgTransferDenomResponse) MarshalToSizedBuffer

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

func (*MsgTransferDenomResponse) ProtoMessage

func (*MsgTransferDenomResponse) ProtoMessage()

func (*MsgTransferDenomResponse) Reset

func (m *MsgTransferDenomResponse) Reset()

func (*MsgTransferDenomResponse) Size

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

func (*MsgTransferDenomResponse) String

func (m *MsgTransferDenomResponse) String() string

func (*MsgTransferDenomResponse) Unmarshal

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

func (*MsgTransferDenomResponse) XXX_DiscardUnknown

func (m *MsgTransferDenomResponse) XXX_DiscardUnknown()

func (*MsgTransferDenomResponse) XXX_Marshal

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

func (*MsgTransferDenomResponse) XXX_Merge

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

func (*MsgTransferDenomResponse) XXX_Size

func (m *MsgTransferDenomResponse) XXX_Size() int

func (*MsgTransferDenomResponse) XXX_Unmarshal

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

type MsgTransferMT

type MsgTransferMT struct {
	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	DenomId   string `protobuf:"bytes,2,opt,name=denom_id,json=denomId,proto3" json:"denom_id,omitempty"`
	Amount    uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	Sender    string `protobuf:"bytes,4,opt,name=sender,proto3" json:"sender,omitempty"`
	Recipient string `protobuf:"bytes,5,opt,name=recipient,proto3" json:"recipient,omitempty"`
}

MsgTransferMT defines an SDK message for transferring an MT to recipient.

func NewMsgTransferMT

func NewMsgTransferMT(
	mtID, denomID, sender, recipient string, amount uint64,
) *MsgTransferMT

NewMsgTransferMT is a constructor function for MsgTransferMT

func (*MsgTransferMT) Descriptor

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

func (*MsgTransferMT) Equal

func (this *MsgTransferMT) Equal(that interface{}) bool

func (MsgTransferMT) GetSignBytes

func (msg MsgTransferMT) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgTransferMT) GetSigners

func (msg MsgTransferMT) GetSigners() []sdk.AccAddress

GetSigners Implements Msg.

func (*MsgTransferMT) Marshal

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

func (*MsgTransferMT) MarshalTo

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

func (*MsgTransferMT) MarshalToSizedBuffer

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

func (*MsgTransferMT) ProtoMessage

func (*MsgTransferMT) ProtoMessage()

func (*MsgTransferMT) Reset

func (m *MsgTransferMT) Reset()

func (MsgTransferMT) Route

func (msg MsgTransferMT) Route() string

Route Implements Msg

func (*MsgTransferMT) Size

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

func (*MsgTransferMT) String

func (m *MsgTransferMT) String() string

func (MsgTransferMT) Type

func (msg MsgTransferMT) Type() string

Type Implements Msg

func (*MsgTransferMT) Unmarshal

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

func (MsgTransferMT) ValidateBasic

func (msg MsgTransferMT) ValidateBasic() error

ValidateBasic Implements Msg.

func (*MsgTransferMT) XXX_DiscardUnknown

func (m *MsgTransferMT) XXX_DiscardUnknown()

func (*MsgTransferMT) XXX_Marshal

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

func (*MsgTransferMT) XXX_Merge

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

func (*MsgTransferMT) XXX_Size

func (m *MsgTransferMT) XXX_Size() int

func (*MsgTransferMT) XXX_Unmarshal

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

type MsgTransferMTResponse

type MsgTransferMTResponse struct {
}

MsgTransferMTResponse defines the Msg/TransferMT response type.

func (*MsgTransferMTResponse) Descriptor

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

func (*MsgTransferMTResponse) Marshal

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

func (*MsgTransferMTResponse) MarshalTo

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

func (*MsgTransferMTResponse) MarshalToSizedBuffer

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

func (*MsgTransferMTResponse) ProtoMessage

func (*MsgTransferMTResponse) ProtoMessage()

func (*MsgTransferMTResponse) Reset

func (m *MsgTransferMTResponse) Reset()

func (*MsgTransferMTResponse) Size

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

func (*MsgTransferMTResponse) String

func (m *MsgTransferMTResponse) String() string

func (*MsgTransferMTResponse) Unmarshal

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

func (*MsgTransferMTResponse) XXX_DiscardUnknown

func (m *MsgTransferMTResponse) XXX_DiscardUnknown()

func (*MsgTransferMTResponse) XXX_Marshal

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

func (*MsgTransferMTResponse) XXX_Merge

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

func (*MsgTransferMTResponse) XXX_Size

func (m *MsgTransferMTResponse) XXX_Size() int

func (*MsgTransferMTResponse) XXX_Unmarshal

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

type Owner

type Owner struct {
	Address string         `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Denoms  []DenomBalance `protobuf:"bytes,2,rep,name=denoms,proto3" json:"denoms"`
}

Owner defines a type of account balances

func NewOwner

func NewOwner(address string, denoms []DenomBalance) (o Owner)

--------------------------------------------- NewOwner creates a new owner balance

func (*Owner) Descriptor

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

func (*Owner) Equal

func (this *Owner) Equal(that interface{}) bool

func (*Owner) GetAddress

func (m *Owner) GetAddress() string

func (*Owner) GetDenoms

func (m *Owner) GetDenoms() []DenomBalance

func (*Owner) Marshal

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

func (*Owner) MarshalTo

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

func (*Owner) MarshalToSizedBuffer

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

func (*Owner) ProtoMessage

func (*Owner) ProtoMessage()

func (*Owner) Reset

func (m *Owner) Reset()

func (*Owner) Size

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

func (*Owner) String

func (m *Owner) String() string

func (*Owner) Unmarshal

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

func (*Owner) XXX_DiscardUnknown

func (m *Owner) XXX_DiscardUnknown()

func (*Owner) XXX_Marshal

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

func (*Owner) XXX_Merge

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

func (*Owner) XXX_Size

func (m *Owner) XXX_Size() int

func (*Owner) XXX_Unmarshal

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

type QueryBalancesRequest

type QueryBalancesRequest struct {
	Owner   string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	DenomId string `protobuf:"bytes,2,opt,name=denom_id,json=denomId,proto3" json:"denom_id,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryBalancesRequest is the request type for the Query/Balances RPC method

func (*QueryBalancesRequest) Descriptor

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

func (*QueryBalancesRequest) GetDenomId

func (m *QueryBalancesRequest) GetDenomId() string

func (*QueryBalancesRequest) GetOwner

func (m *QueryBalancesRequest) GetOwner() string

func (*QueryBalancesRequest) GetPagination

func (m *QueryBalancesRequest) GetPagination() *query.PageRequest

func (*QueryBalancesRequest) Marshal

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

func (*QueryBalancesRequest) MarshalTo

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

func (*QueryBalancesRequest) MarshalToSizedBuffer

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

func (*QueryBalancesRequest) ProtoMessage

func (*QueryBalancesRequest) ProtoMessage()

func (*QueryBalancesRequest) Reset

func (m *QueryBalancesRequest) Reset()

func (*QueryBalancesRequest) Size

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

func (*QueryBalancesRequest) String

func (m *QueryBalancesRequest) String() string

func (*QueryBalancesRequest) Unmarshal

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

func (*QueryBalancesRequest) XXX_DiscardUnknown

func (m *QueryBalancesRequest) XXX_DiscardUnknown()

func (*QueryBalancesRequest) XXX_Marshal

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

func (*QueryBalancesRequest) XXX_Merge

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

func (*QueryBalancesRequest) XXX_Size

func (m *QueryBalancesRequest) XXX_Size() int

func (*QueryBalancesRequest) XXX_Unmarshal

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

type QueryBalancesResponse

type QueryBalancesResponse struct {
	Balance    []Balance           `protobuf:"bytes,1,rep,name=balance,proto3" json:"balance"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryBalancesResponse is the response type for the Query/Balances RPC method

func (*QueryBalancesResponse) Descriptor

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

func (*QueryBalancesResponse) GetBalance

func (m *QueryBalancesResponse) GetBalance() []Balance

func (*QueryBalancesResponse) GetPagination

func (m *QueryBalancesResponse) GetPagination() *query.PageResponse

func (*QueryBalancesResponse) Marshal

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

func (*QueryBalancesResponse) MarshalTo

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

func (*QueryBalancesResponse) MarshalToSizedBuffer

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

func (*QueryBalancesResponse) ProtoMessage

func (*QueryBalancesResponse) ProtoMessage()

func (*QueryBalancesResponse) Reset

func (m *QueryBalancesResponse) Reset()

func (*QueryBalancesResponse) Size

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

func (*QueryBalancesResponse) String

func (m *QueryBalancesResponse) String() string

func (*QueryBalancesResponse) Unmarshal

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

func (*QueryBalancesResponse) XXX_DiscardUnknown

func (m *QueryBalancesResponse) XXX_DiscardUnknown()

func (*QueryBalancesResponse) XXX_Marshal

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

func (*QueryBalancesResponse) XXX_Merge

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

func (*QueryBalancesResponse) XXX_Size

func (m *QueryBalancesResponse) XXX_Size() int

func (*QueryBalancesResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Supply queries the total supply of a given denom or owner
	Supply(ctx context.Context, in *QuerySupplyRequest, opts ...grpc.CallOption) (*QuerySupplyResponse, error)
	// Denoms queries all the denoms
	Denoms(ctx context.Context, in *QueryDenomsRequest, opts ...grpc.CallOption) (*QueryDenomsResponse, error)
	// Denom queries the definition of a given denom ID
	Denom(ctx context.Context, in *QueryDenomRequest, opts ...grpc.CallOption) (*QueryDenomResponse, error)
	// MTSupply queries the total supply of given denom and mt ID
	MTSupply(ctx context.Context, in *QueryMTSupplyRequest, opts ...grpc.CallOption) (*QueryMTSupplyResponse, error)
	// MTs queries all the MTs of a given denom ID
	MTs(ctx context.Context, in *QueryMTsRequest, opts ...grpc.CallOption) (*QueryMTsResponse, error)
	// MT queries the MT of the given denom and mt ID
	MT(ctx context.Context, in *QueryMTRequest, opts ...grpc.CallOption) (*QueryMTResponse, error)
	// Balances queries the MT balances of a specified owner
	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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryCollectionParams

type QueryCollectionParams struct {
	Denom string
}

QuerySupplyParams defines the params for queries:

func NewQueryCollectionParams

func NewQueryCollectionParams(denom string) QueryCollectionParams

NewQueryCollectionParams creates a new instance of QueryCollectionParams

type QueryDenomParams

type QueryDenomParams struct {
	ID string
}

QueryDenomParams defines the params for queries:

func NewQueryDenomParams

func NewQueryDenomParams(id string) QueryDenomParams

NewQueryDenomParams creates a new instance of QueryDenomParams

type QueryDenomRequest

type QueryDenomRequest struct {
	DenomId string `protobuf:"bytes,1,opt,name=denom_id,json=denomId,proto3" json:"denom_id,omitempty"`
}

QueryDenomRequest is the request type for the Query/Denom RPC method

func (*QueryDenomRequest) Descriptor

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

func (*QueryDenomRequest) GetDenomId

func (m *QueryDenomRequest) GetDenomId() string

func (*QueryDenomRequest) Marshal

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

func (*QueryDenomRequest) MarshalTo

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

func (*QueryDenomRequest) MarshalToSizedBuffer

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

func (*QueryDenomRequest) ProtoMessage

func (*QueryDenomRequest) ProtoMessage()

func (*QueryDenomRequest) Reset

func (m *QueryDenomRequest) Reset()

func (*QueryDenomRequest) Size

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

func (*QueryDenomRequest) String

func (m *QueryDenomRequest) String() string

func (*QueryDenomRequest) Unmarshal

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

func (*QueryDenomRequest) XXX_DiscardUnknown

func (m *QueryDenomRequest) XXX_DiscardUnknown()

func (*QueryDenomRequest) XXX_Marshal

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

func (*QueryDenomRequest) XXX_Merge

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

func (*QueryDenomRequest) XXX_Size

func (m *QueryDenomRequest) XXX_Size() int

func (*QueryDenomRequest) XXX_Unmarshal

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

type QueryDenomResponse

type QueryDenomResponse struct {
	Denom *Denom `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}

QueryDenomResponse is the response type for the Query/Denom RPC method

func (*QueryDenomResponse) Descriptor

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

func (*QueryDenomResponse) GetDenom

func (m *QueryDenomResponse) GetDenom() *Denom

func (*QueryDenomResponse) Marshal

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

func (*QueryDenomResponse) MarshalTo

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

func (*QueryDenomResponse) MarshalToSizedBuffer

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

func (*QueryDenomResponse) ProtoMessage

func (*QueryDenomResponse) ProtoMessage()

func (*QueryDenomResponse) Reset

func (m *QueryDenomResponse) Reset()

func (*QueryDenomResponse) Size

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

func (*QueryDenomResponse) String

func (m *QueryDenomResponse) String() string

func (*QueryDenomResponse) Unmarshal

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

func (*QueryDenomResponse) XXX_DiscardUnknown

func (m *QueryDenomResponse) XXX_DiscardUnknown()

func (*QueryDenomResponse) XXX_Marshal

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

func (*QueryDenomResponse) XXX_Merge

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

func (*QueryDenomResponse) XXX_Size

func (m *QueryDenomResponse) XXX_Size() int

func (*QueryDenomResponse) XXX_Unmarshal

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

type QueryDenomsRequest

type QueryDenomsRequest struct {
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDenomsRequest is the request type for the Query/Denoms RPC method

func (*QueryDenomsRequest) Descriptor

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

func (*QueryDenomsRequest) GetPagination

func (m *QueryDenomsRequest) GetPagination() *query.PageRequest

func (*QueryDenomsRequest) Marshal

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

func (*QueryDenomsRequest) MarshalTo

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

func (*QueryDenomsRequest) MarshalToSizedBuffer

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

func (*QueryDenomsRequest) ProtoMessage

func (*QueryDenomsRequest) ProtoMessage()

func (*QueryDenomsRequest) Reset

func (m *QueryDenomsRequest) Reset()

func (*QueryDenomsRequest) Size

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

func (*QueryDenomsRequest) String

func (m *QueryDenomsRequest) String() string

func (*QueryDenomsRequest) Unmarshal

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

func (*QueryDenomsRequest) XXX_DiscardUnknown

func (m *QueryDenomsRequest) XXX_DiscardUnknown()

func (*QueryDenomsRequest) XXX_Marshal

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

func (*QueryDenomsRequest) XXX_Merge

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

func (*QueryDenomsRequest) XXX_Size

func (m *QueryDenomsRequest) XXX_Size() int

func (*QueryDenomsRequest) XXX_Unmarshal

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

type QueryDenomsResponse

type QueryDenomsResponse struct {
	Denoms     []Denom             `protobuf:"bytes,1,rep,name=denoms,proto3" json:"denoms"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDenomsResponse is the response type for the Query/Denoms RPC method

func (*QueryDenomsResponse) Descriptor

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

func (*QueryDenomsResponse) GetDenoms

func (m *QueryDenomsResponse) GetDenoms() []Denom

func (*QueryDenomsResponse) GetPagination

func (m *QueryDenomsResponse) GetPagination() *query.PageResponse

func (*QueryDenomsResponse) Marshal

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

func (*QueryDenomsResponse) MarshalTo

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

func (*QueryDenomsResponse) MarshalToSizedBuffer

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

func (*QueryDenomsResponse) ProtoMessage

func (*QueryDenomsResponse) ProtoMessage()

func (*QueryDenomsResponse) Reset

func (m *QueryDenomsResponse) Reset()

func (*QueryDenomsResponse) Size

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

func (*QueryDenomsResponse) String

func (m *QueryDenomsResponse) String() string

func (*QueryDenomsResponse) Unmarshal

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

func (*QueryDenomsResponse) XXX_DiscardUnknown

func (m *QueryDenomsResponse) XXX_DiscardUnknown()

func (*QueryDenomsResponse) XXX_Marshal

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

func (*QueryDenomsResponse) XXX_Merge

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

func (*QueryDenomsResponse) XXX_Size

func (m *QueryDenomsResponse) XXX_Size() int

func (*QueryDenomsResponse) XXX_Unmarshal

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

type QueryMTParams

type QueryMTParams struct {
	Denom string
	MTID  string
}

QueryMTParams params for query 'custom/mts/mt'

func NewQueryMTParams

func NewQueryMTParams(denom, id string) QueryMTParams

NewQueryMTParams creates a new instance of QueryMTParams

type QueryMTRequest

type QueryMTRequest struct {
	DenomId string `protobuf:"bytes,1,opt,name=denom_id,json=denomId,proto3" json:"denom_id,omitempty"`
	MtId    string `protobuf:"bytes,2,opt,name=mt_id,json=mtId,proto3" json:"mt_id,omitempty"`
}

QueryMTRequest is the request type for the Query/MT RPC method

func (*QueryMTRequest) Descriptor

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

func (*QueryMTRequest) GetDenomId

func (m *QueryMTRequest) GetDenomId() string

func (*QueryMTRequest) GetMtId

func (m *QueryMTRequest) GetMtId() string

func (*QueryMTRequest) Marshal

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

func (*QueryMTRequest) MarshalTo

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

func (*QueryMTRequest) MarshalToSizedBuffer

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

func (*QueryMTRequest) ProtoMessage

func (*QueryMTRequest) ProtoMessage()

func (*QueryMTRequest) Reset

func (m *QueryMTRequest) Reset()

func (*QueryMTRequest) Size

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

func (*QueryMTRequest) String

func (m *QueryMTRequest) String() string

func (*QueryMTRequest) Unmarshal

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

func (*QueryMTRequest) XXX_DiscardUnknown

func (m *QueryMTRequest) XXX_DiscardUnknown()

func (*QueryMTRequest) XXX_Marshal

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

func (*QueryMTRequest) XXX_Merge

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

func (*QueryMTRequest) XXX_Size

func (m *QueryMTRequest) XXX_Size() int

func (*QueryMTRequest) XXX_Unmarshal

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

type QueryMTResponse

type QueryMTResponse struct {
	Mt *MT `protobuf:"bytes,1,opt,name=mt,proto3" json:"mt,omitempty"`
}

QueryMTResponse is the response type for the Query/MT RPC method

func (*QueryMTResponse) Descriptor

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

func (*QueryMTResponse) GetMt

func (m *QueryMTResponse) GetMt() *MT

func (*QueryMTResponse) Marshal

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

func (*QueryMTResponse) MarshalTo

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

func (*QueryMTResponse) MarshalToSizedBuffer

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

func (*QueryMTResponse) ProtoMessage

func (*QueryMTResponse) ProtoMessage()

func (*QueryMTResponse) Reset

func (m *QueryMTResponse) Reset()

func (*QueryMTResponse) Size

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

func (*QueryMTResponse) String

func (m *QueryMTResponse) String() string

func (*QueryMTResponse) Unmarshal

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

func (*QueryMTResponse) XXX_DiscardUnknown

func (m *QueryMTResponse) XXX_DiscardUnknown()

func (*QueryMTResponse) XXX_Marshal

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

func (*QueryMTResponse) XXX_Merge

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

func (*QueryMTResponse) XXX_Size

func (m *QueryMTResponse) XXX_Size() int

func (*QueryMTResponse) XXX_Unmarshal

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

type QueryMTSupplyRequest

type QueryMTSupplyRequest struct {
	DenomId string `protobuf:"bytes,1,opt,name=denom_id,json=denomId,proto3" json:"denom_id,omitempty"`
	MtId    string `protobuf:"bytes,2,opt,name=mt_id,json=mtId,proto3" json:"mt_id,omitempty"`
}

func (*QueryMTSupplyRequest) Descriptor

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

func (*QueryMTSupplyRequest) GetDenomId

func (m *QueryMTSupplyRequest) GetDenomId() string

func (*QueryMTSupplyRequest) GetMtId

func (m *QueryMTSupplyRequest) GetMtId() string

func (*QueryMTSupplyRequest) Marshal

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

func (*QueryMTSupplyRequest) MarshalTo

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

func (*QueryMTSupplyRequest) MarshalToSizedBuffer

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

func (*QueryMTSupplyRequest) ProtoMessage

func (*QueryMTSupplyRequest) ProtoMessage()

func (*QueryMTSupplyRequest) Reset

func (m *QueryMTSupplyRequest) Reset()

func (*QueryMTSupplyRequest) Size

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

func (*QueryMTSupplyRequest) String

func (m *QueryMTSupplyRequest) String() string

func (*QueryMTSupplyRequest) Unmarshal

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

func (*QueryMTSupplyRequest) XXX_DiscardUnknown

func (m *QueryMTSupplyRequest) XXX_DiscardUnknown()

func (*QueryMTSupplyRequest) XXX_Marshal

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

func (*QueryMTSupplyRequest) XXX_Merge

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

func (*QueryMTSupplyRequest) XXX_Size

func (m *QueryMTSupplyRequest) XXX_Size() int

func (*QueryMTSupplyRequest) XXX_Unmarshal

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

type QueryMTSupplyResponse

type QueryMTSupplyResponse struct {
	Amount uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
}

func (*QueryMTSupplyResponse) Descriptor

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

func (*QueryMTSupplyResponse) GetAmount

func (m *QueryMTSupplyResponse) GetAmount() uint64

func (*QueryMTSupplyResponse) Marshal

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

func (*QueryMTSupplyResponse) MarshalTo

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

func (*QueryMTSupplyResponse) MarshalToSizedBuffer

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

func (*QueryMTSupplyResponse) ProtoMessage

func (*QueryMTSupplyResponse) ProtoMessage()

func (*QueryMTSupplyResponse) Reset

func (m *QueryMTSupplyResponse) Reset()

func (*QueryMTSupplyResponse) Size

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

func (*QueryMTSupplyResponse) String

func (m *QueryMTSupplyResponse) String() string

func (*QueryMTSupplyResponse) Unmarshal

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

func (*QueryMTSupplyResponse) XXX_DiscardUnknown

func (m *QueryMTSupplyResponse) XXX_DiscardUnknown()

func (*QueryMTSupplyResponse) XXX_Marshal

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

func (*QueryMTSupplyResponse) XXX_Merge

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

func (*QueryMTSupplyResponse) XXX_Size

func (m *QueryMTSupplyResponse) XXX_Size() int

func (*QueryMTSupplyResponse) XXX_Unmarshal

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

type QueryMTsRequest

type QueryMTsRequest struct {
	DenomId string `protobuf:"bytes,1,opt,name=denom_id,json=denomId,proto3" json:"denom_id,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryMTsRequest is the request type for the Query/MTs RPC method

func (*QueryMTsRequest) Descriptor

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

func (*QueryMTsRequest) GetDenomId

func (m *QueryMTsRequest) GetDenomId() string

func (*QueryMTsRequest) GetPagination

func (m *QueryMTsRequest) GetPagination() *query.PageRequest

func (*QueryMTsRequest) Marshal

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

func (*QueryMTsRequest) MarshalTo

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

func (*QueryMTsRequest) MarshalToSizedBuffer

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

func (*QueryMTsRequest) ProtoMessage

func (*QueryMTsRequest) ProtoMessage()

func (*QueryMTsRequest) Reset

func (m *QueryMTsRequest) Reset()

func (*QueryMTsRequest) Size

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

func (*QueryMTsRequest) String

func (m *QueryMTsRequest) String() string

func (*QueryMTsRequest) Unmarshal

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

func (*QueryMTsRequest) XXX_DiscardUnknown

func (m *QueryMTsRequest) XXX_DiscardUnknown()

func (*QueryMTsRequest) XXX_Marshal

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

func (*QueryMTsRequest) XXX_Merge

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

func (*QueryMTsRequest) XXX_Size

func (m *QueryMTsRequest) XXX_Size() int

func (*QueryMTsRequest) XXX_Unmarshal

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

type QueryMTsResponse

type QueryMTsResponse struct {
	Mts        []MT                `protobuf:"bytes,1,rep,name=mts,proto3" json:"mts"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryMTsResponse is the response type for the Query/MTs RPC method

func (*QueryMTsResponse) Descriptor

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

func (*QueryMTsResponse) GetMts

func (m *QueryMTsResponse) GetMts() []MT

func (*QueryMTsResponse) GetPagination

func (m *QueryMTsResponse) GetPagination() *query.PageResponse

func (*QueryMTsResponse) Marshal

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

func (*QueryMTsResponse) MarshalTo

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

func (*QueryMTsResponse) MarshalToSizedBuffer

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

func (*QueryMTsResponse) ProtoMessage

func (*QueryMTsResponse) ProtoMessage()

func (*QueryMTsResponse) Reset

func (m *QueryMTsResponse) Reset()

func (*QueryMTsResponse) Size

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

func (*QueryMTsResponse) String

func (m *QueryMTsResponse) String() string

func (*QueryMTsResponse) Unmarshal

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

func (*QueryMTsResponse) XXX_DiscardUnknown

func (m *QueryMTsResponse) XXX_DiscardUnknown()

func (*QueryMTsResponse) XXX_Marshal

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

func (*QueryMTsResponse) XXX_Merge

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

func (*QueryMTsResponse) XXX_Size

func (m *QueryMTsResponse) XXX_Size() int

func (*QueryMTsResponse) XXX_Unmarshal

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

type QueryOwnerParams

type QueryOwnerParams struct {
	Denom string
	Owner sdk.AccAddress
}

QueryOwnerParams defines the params for queries:

func NewQueryOwnerParams

func NewQueryOwnerParams(denom string, owner sdk.AccAddress) QueryOwnerParams

NewQuerySupplyParams creates a new instance of QuerySupplyParams

type QueryServer

type QueryServer interface {
	// Supply queries the total supply of a given denom or owner
	Supply(context.Context, *QuerySupplyRequest) (*QuerySupplyResponse, error)
	// Denoms queries all the denoms
	Denoms(context.Context, *QueryDenomsRequest) (*QueryDenomsResponse, error)
	// Denom queries the definition of a given denom ID
	Denom(context.Context, *QueryDenomRequest) (*QueryDenomResponse, error)
	// MTSupply queries the total supply of given denom and mt ID
	MTSupply(context.Context, *QueryMTSupplyRequest) (*QueryMTSupplyResponse, error)
	// MTs queries all the MTs of a given denom ID
	MTs(context.Context, *QueryMTsRequest) (*QueryMTsResponse, error)
	// MT queries the MT of the given denom and mt ID
	MT(context.Context, *QueryMTRequest) (*QueryMTResponse, error)
	// Balances queries the MT balances of a specified owner
	Balances(context.Context, *QueryBalancesRequest) (*QueryBalancesResponse, error)
}

QueryServer is the server API for Query service.

type QuerySupplyParams

type QuerySupplyParams struct {
	Denom string
	Owner sdk.AccAddress
}

QuerySupplyParams defines the params for queries:

func NewQuerySupplyParams

func NewQuerySupplyParams(denom string, owner sdk.AccAddress) QuerySupplyParams

NewQuerySupplyParams creates a new instance of QuerySupplyParams

func (QuerySupplyParams) Bytes

func (q QuerySupplyParams) Bytes() []byte

Bytes exports the Denom as bytes

type QuerySupplyRequest

type QuerySupplyRequest struct {
	DenomId string `protobuf:"bytes,1,opt,name=denom_id,json=denomId,proto3" json:"denom_id,omitempty"`
	Owner   string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
}

QuerySupplyRequest is the request type for the Query RPC method

func (*QuerySupplyRequest) Descriptor

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

func (*QuerySupplyRequest) GetDenomId

func (m *QuerySupplyRequest) GetDenomId() string

func (*QuerySupplyRequest) GetOwner

func (m *QuerySupplyRequest) GetOwner() string

func (*QuerySupplyRequest) Marshal

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

func (*QuerySupplyRequest) MarshalTo

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

func (*QuerySupplyRequest) MarshalToSizedBuffer

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

func (*QuerySupplyRequest) ProtoMessage

func (*QuerySupplyRequest) ProtoMessage()

func (*QuerySupplyRequest) Reset

func (m *QuerySupplyRequest) Reset()

func (*QuerySupplyRequest) Size

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

func (*QuerySupplyRequest) String

func (m *QuerySupplyRequest) String() string

func (*QuerySupplyRequest) Unmarshal

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

func (*QuerySupplyRequest) XXX_DiscardUnknown

func (m *QuerySupplyRequest) XXX_DiscardUnknown()

func (*QuerySupplyRequest) XXX_Marshal

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

func (*QuerySupplyRequest) XXX_Merge

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

func (*QuerySupplyRequest) XXX_Size

func (m *QuerySupplyRequest) XXX_Size() int

func (*QuerySupplyRequest) XXX_Unmarshal

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

type QuerySupplyResponse

type QuerySupplyResponse struct {
	Amount uint64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
}

QuerySupplyResponse is the response type for the Query/Supply RPC method

func (*QuerySupplyResponse) Descriptor

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

func (*QuerySupplyResponse) GetAmount

func (m *QuerySupplyResponse) GetAmount() uint64

func (*QuerySupplyResponse) Marshal

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

func (*QuerySupplyResponse) MarshalTo

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

func (*QuerySupplyResponse) MarshalToSizedBuffer

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

func (*QuerySupplyResponse) ProtoMessage

func (*QuerySupplyResponse) ProtoMessage()

func (*QuerySupplyResponse) Reset

func (m *QuerySupplyResponse) Reset()

func (*QuerySupplyResponse) Size

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

func (*QuerySupplyResponse) String

func (m *QuerySupplyResponse) String() string

func (*QuerySupplyResponse) Unmarshal

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

func (*QuerySupplyResponse) XXX_DiscardUnknown

func (m *QuerySupplyResponse) XXX_DiscardUnknown()

func (*QuerySupplyResponse) XXX_Marshal

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

func (*QuerySupplyResponse) XXX_Merge

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

func (*QuerySupplyResponse) XXX_Size

func (m *QuerySupplyResponse) XXX_Size() int

func (*QuerySupplyResponse) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) BurnMT

func (*UnimplementedMsgServer) EditMT

func (*UnimplementedMsgServer) IssueDenom

func (*UnimplementedMsgServer) MintMT

func (*UnimplementedMsgServer) TransferDenom

func (*UnimplementedMsgServer) TransferMT

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Balances

func (*UnimplementedQueryServer) Denom

func (*UnimplementedQueryServer) Denoms

func (*UnimplementedQueryServer) MT

func (*UnimplementedQueryServer) MTSupply

func (*UnimplementedQueryServer) MTs

func (*UnimplementedQueryServer) Supply

Jump to

Keyboard shortcuts

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