token

package
v0.46.0-rc8 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: Apache-2.0 Imports: 28 Imported by: 1

Documentation

Overview

Package token is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName is the module name constant used in many places
	ModuleName = "token"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey defines the module's message routing key
	RouterKey = ModuleName
)

Variables

View Source
var (
	ErrInvalidLengthEvent        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvent          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group")
)
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 (
	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 (
	ErrInvalidLengthToken        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowToken          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupToken = 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 AttributeKey_name = map[int32]string{
	0:  "ATTRIBUTE_KEY_UNSPECIFIED",
	1:  "ATTRIBUTE_KEY_NAME",
	2:  "ATTRIBUTE_KEY_SYMBOL",
	3:  "ATTRIBUTE_KEY_META",
	4:  "ATTRIBUTE_KEY_CONTRACT_ID",
	5:  "ATTRIBUTE_KEY_OWNER",
	6:  "ATTRIBUTE_KEY_AMOUNT",
	7:  "ATTRIBUTE_KEY_DECIMALS",
	8:  "ATTRIBUTE_KEY_IMG_URI",
	9:  "ATTRIBUTE_KEY_MINTABLE",
	10: "ATTRIBUTE_KEY_FROM",
	11: "ATTRIBUTE_KEY_TO",
	12: "ATTRIBUTE_KEY_PERM",
	13: "ATTRIBUTE_KEY_APPROVER",
	14: "ATTRIBUTE_KEY_PROXY",
}
View Source
var AttributeKey_value = map[string]int32{
	"ATTRIBUTE_KEY_UNSPECIFIED": 0,
	"ATTRIBUTE_KEY_NAME":        1,
	"ATTRIBUTE_KEY_SYMBOL":      2,
	"ATTRIBUTE_KEY_META":        3,
	"ATTRIBUTE_KEY_CONTRACT_ID": 4,
	"ATTRIBUTE_KEY_OWNER":       5,
	"ATTRIBUTE_KEY_AMOUNT":      6,
	"ATTRIBUTE_KEY_DECIMALS":    7,
	"ATTRIBUTE_KEY_IMG_URI":     8,
	"ATTRIBUTE_KEY_MINTABLE":    9,
	"ATTRIBUTE_KEY_FROM":        10,
	"ATTRIBUTE_KEY_TO":          11,
	"ATTRIBUTE_KEY_PERM":        12,
	"ATTRIBUTE_KEY_APPROVER":    13,
	"ATTRIBUTE_KEY_PROXY":       14,
}
View Source
var EventType_name = map[int32]string{
	0:  "EVENT_TYPE_UNSPECIFIED",
	1:  "EVENT_TYPE_ISSUE",
	2:  "EVENT_TYPE_MINT",
	3:  "EVENT_TYPE_BURN",
	4:  "EVENT_TYPE_BURN_FROM",
	5:  "EVENT_TYPE_MODIFY_TOKEN",
	6:  "EVENT_TYPE_TRANSFER",
	7:  "EVENT_TYPE_TRANSFER_FROM",
	8:  "EVENT_TYPE_GRANT_PERM",
	9:  "EVENT_TYPE_REVOKE_PERM",
	10: "EVENT_TYPE_APPROVE_TOKEN",
}
View Source
var EventType_value = map[string]int32{
	"EVENT_TYPE_UNSPECIFIED":   0,
	"EVENT_TYPE_ISSUE":         1,
	"EVENT_TYPE_MINT":          2,
	"EVENT_TYPE_BURN":          3,
	"EVENT_TYPE_BURN_FROM":     4,
	"EVENT_TYPE_MODIFY_TOKEN":  5,
	"EVENT_TYPE_TRANSFER":      6,
	"EVENT_TYPE_TRANSFER_FROM": 7,
	"EVENT_TYPE_GRANT_PERM":    8,
	"EVENT_TYPE_REVOKE_PERM":   9,
	"EVENT_TYPE_APPROVE_TOKEN": 10,
}
View Source
var LegacyPermission_name = map[int32]string{
	0: "LEGACY_PERMISSION_UNSPECIFIED",
	1: "LEGACY_PERMISSION_MODIFY",
	2: "LEGACY_PERMISSION_MINT",
	3: "LEGACY_PERMISSION_BURN",
}
View Source
var LegacyPermission_value = map[string]int32{
	"LEGACY_PERMISSION_UNSPECIFIED": 0,
	"LEGACY_PERMISSION_MODIFY":      1,
	"LEGACY_PERMISSION_MINT":        2,
	"LEGACY_PERMISSION_BURN":        3,
}
View Source
var Permission_name = map[int32]string{
	0: "PERMISSION_UNSPECIFIED",
	1: "PERMISSION_MODIFY",
	2: "PERMISSION_MINT",
	3: "PERMISSION_BURN",
}
View Source
var Permission_value = map[string]int32{
	"PERMISSION_UNSPECIFIED": 0,
	"PERMISSION_MODIFY":      1,
	"PERMISSION_MINT":        2,
	"PERMISSION_BURN":        3,
}

Functions

func NewEventApproveToken added in v0.46.0

func NewEventApproveToken(event EventAuthorizedOperator) sdk.Event

func NewEventBurnToken added in v0.46.0

func NewEventBurnToken(event EventBurned) sdk.Event

func NewEventBurnTokenFrom added in v0.46.0

func NewEventBurnTokenFrom(event EventBurned) sdk.Event

func NewEventGrantPermToken added in v0.46.0

func NewEventGrantPermToken(event EventGranted) sdk.Event

func NewEventGrantPermTokenBody added in v0.46.0

func NewEventGrantPermTokenBody(event EventGranted) sdk.Event

func NewEventGrantPermTokenHead added in v0.46.0

func NewEventGrantPermTokenHead(event EventGranted) sdk.Event

func NewEventIssueToken added in v0.46.0

func NewEventIssueToken(event EventIssued, to sdk.AccAddress, amount sdk.Int) sdk.Event

func NewEventMintToken added in v0.46.0

func NewEventMintToken(event EventMinted) sdk.Event

func NewEventModifyToken added in v0.46.0

func NewEventModifyToken(event EventModified) []sdk.Event

func NewEventRevokePermToken added in v0.46.0

func NewEventRevokePermToken(event EventRenounced) sdk.Event

func NewEventTransfer added in v0.46.0

func NewEventTransfer(event EventSent) sdk.Event

func NewEventTransferFrom added in v0.46.0

func NewEventTransferFrom(event EventSent) sdk.Event

func RegisterInterfaces added in v0.45.0

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterMsgServer added in v0.45.0

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler added in v0.45.0

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 added in v0.45.0

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 added in v0.45.0

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 added in v0.45.0

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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer added in v0.45.0

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func ValidateClassGenesis added in v0.45.0

func ValidateClassGenesis(data ClassGenesisState) error

For Class keeper

func ValidateContractID added in v0.46.0

func ValidateContractID(id string) error

func ValidateGenesis

func ValidateGenesis(data GenesisState) error

ValidateGenesis check the given genesis state has no integrity issues

func ValidatePermission added in v0.46.0

func ValidatePermission(permission Permission) error

Types

type AccountKeeper added in v0.45.0

type AccountKeeper interface {
	HasAccount(ctx sdk.Context, addr sdk.AccAddress) bool
	SetAccount(ctx sdk.Context, account authtypes.AccountI)

	NewAccountWithAddress(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI
}

AccountKeeper defines the contract required for account APIs.

type AttributeKey added in v0.46.0

type AttributeKey int32

AttributeKey enumerates the valid attribute keys on x/token.

const (
	AttributeKeyUnspecified AttributeKey = 0
	AttributeKeyName        AttributeKey = 1
	AttributeKeySymbol      AttributeKey = 2
	AttributeKeyMeta        AttributeKey = 3
	AttributeKeyContractID  AttributeKey = 4
	AttributeKeyOwner       AttributeKey = 5
	AttributeKeyAmount      AttributeKey = 6
	AttributeKeyDecimals    AttributeKey = 7
	AttributeKeyImageURI    AttributeKey = 8
	AttributeKeyMintable    AttributeKey = 9
	AttributeKeyFrom        AttributeKey = 10
	AttributeKeyTo          AttributeKey = 11
	AttributeKeyPerm        AttributeKey = 12
	AttributeKeyApprover    AttributeKey = 13
	AttributeKeyProxy       AttributeKey = 14
)

func AttributeKeyFromString added in v0.46.0

func AttributeKeyFromString(name string) AttributeKey

func (AttributeKey) EnumDescriptor added in v0.46.0

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

func (AttributeKey) String added in v0.46.0

func (x AttributeKey) String() string

type Authorization added in v0.46.0

type Authorization struct {
	// address of the token holder which approves the authorization.
	Holder string `protobuf:"bytes,1,opt,name=holder,proto3" json:"holder,omitempty"`
	// address of the operator which the authorization is granted to.
	Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
}

Authorization defines an authorization given to the operator on tokens of the holder.

func (*Authorization) Descriptor added in v0.46.0

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

func (*Authorization) Marshal added in v0.46.0

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

func (*Authorization) MarshalTo added in v0.46.0

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

func (*Authorization) MarshalToSizedBuffer added in v0.46.0

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

func (*Authorization) ProtoMessage added in v0.46.0

func (*Authorization) ProtoMessage()

func (*Authorization) Reset added in v0.46.0

func (m *Authorization) Reset()

func (*Authorization) Size added in v0.46.0

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

func (*Authorization) String added in v0.46.0

func (m *Authorization) String() string

func (*Authorization) Unmarshal added in v0.46.0

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

func (*Authorization) XXX_DiscardUnknown added in v0.46.0

func (m *Authorization) XXX_DiscardUnknown()

func (*Authorization) XXX_Marshal added in v0.46.0

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

func (*Authorization) XXX_Merge added in v0.46.0

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

func (*Authorization) XXX_Size added in v0.46.0

func (m *Authorization) XXX_Size() int

func (*Authorization) XXX_Unmarshal added in v0.46.0

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

type Balance added in v0.45.0

type Balance struct {
	// address of the holder.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// amount of the balance.
	Amount github_com_line_lbm_sdk_types.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=github.com/line/lbm-sdk/types.Int" json:"amount"`
}

Balance defines a balance of an address.

func (*Balance) Descriptor added in v0.45.0

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

func (*Balance) Equal added in v0.46.0

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

func (*Balance) GetAddress added in v0.45.0

func (m *Balance) GetAddress() string

func (*Balance) Marshal added in v0.45.0

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

func (*Balance) MarshalTo added in v0.45.0

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

func (*Balance) MarshalToSizedBuffer added in v0.45.0

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

func (*Balance) ProtoMessage added in v0.45.0

func (*Balance) ProtoMessage()

func (*Balance) Reset added in v0.45.0

func (m *Balance) Reset()

func (*Balance) Size added in v0.45.0

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

func (*Balance) String added in v0.45.0

func (m *Balance) String() string

func (*Balance) Unmarshal added in v0.45.0

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

func (*Balance) XXX_DiscardUnknown added in v0.45.0

func (m *Balance) XXX_DiscardUnknown()

func (*Balance) XXX_Marshal added in v0.45.0

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

func (*Balance) XXX_Merge added in v0.45.0

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

func (*Balance) XXX_Size added in v0.45.0

func (m *Balance) XXX_Size() int

func (*Balance) XXX_Unmarshal added in v0.45.0

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

type ClassGenesisState added in v0.45.0

type ClassGenesisState struct {
	// nonce is the next class nonce to issue.
	Nonce github_com_line_lbm_sdk_types.Uint `protobuf:"bytes,1,opt,name=nonce,proto3,customtype=github.com/line/lbm-sdk/types.Uint" json:"nonce"`
	// ids represents the issued ids.
	Ids []string `protobuf:"bytes,2,rep,name=ids,proto3" json:"ids,omitempty"`
}

ClassGenesisState defines the classs keeper's genesis state.

func DefaultClassGenesisState added in v0.45.0

func DefaultClassGenesisState() *ClassGenesisState

func (*ClassGenesisState) Descriptor added in v0.45.0

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

func (*ClassGenesisState) GetIds added in v0.45.0

func (m *ClassGenesisState) GetIds() []string

func (*ClassGenesisState) Marshal added in v0.45.0

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

func (*ClassGenesisState) MarshalTo added in v0.45.0

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

func (*ClassGenesisState) MarshalToSizedBuffer added in v0.45.0

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

func (*ClassGenesisState) ProtoMessage added in v0.45.0

func (*ClassGenesisState) ProtoMessage()

func (*ClassGenesisState) Reset added in v0.45.0

func (m *ClassGenesisState) Reset()

func (*ClassGenesisState) Size added in v0.45.0

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

func (*ClassGenesisState) String added in v0.45.0

func (m *ClassGenesisState) String() string

func (*ClassGenesisState) Unmarshal added in v0.45.0

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

func (*ClassGenesisState) XXX_DiscardUnknown added in v0.45.0

func (m *ClassGenesisState) XXX_DiscardUnknown()

func (*ClassGenesisState) XXX_Marshal added in v0.45.0

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

func (*ClassGenesisState) XXX_Merge added in v0.45.0

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

func (*ClassGenesisState) XXX_Size added in v0.45.0

func (m *ClassGenesisState) XXX_Size() int

func (*ClassGenesisState) XXX_Unmarshal added in v0.45.0

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

type ClassKeeper added in v0.45.0

type ClassKeeper interface {
	NewID(ctx sdk.Context) string
	HasID(ctx sdk.Context, id string) bool

	InitGenesis(ctx sdk.Context, data *ClassGenesisState)
	ExportGenesis(ctx sdk.Context) *ClassGenesisState
}

ClassKeeper defines the contract needed to be fulfilled for class dependencies.

type ContractAuthorizations added in v0.46.0

type ContractAuthorizations struct {
	// contract id associated with the token class.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// authorizations of the contract.
	Authorizations []Authorization `protobuf:"bytes,2,rep,name=authorizations,proto3" json:"authorizations"`
}

ContractAuthorizations defines authorizations belong to a contract.

func (*ContractAuthorizations) Descriptor added in v0.46.0

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

func (*ContractAuthorizations) GetAuthorizations added in v0.46.0

func (m *ContractAuthorizations) GetAuthorizations() []Authorization

func (*ContractAuthorizations) GetContractId added in v0.46.0

func (m *ContractAuthorizations) GetContractId() string

func (*ContractAuthorizations) Marshal added in v0.46.0

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

func (*ContractAuthorizations) MarshalTo added in v0.46.0

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

func (*ContractAuthorizations) MarshalToSizedBuffer added in v0.46.0

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

func (*ContractAuthorizations) ProtoMessage added in v0.46.0

func (*ContractAuthorizations) ProtoMessage()

func (*ContractAuthorizations) Reset added in v0.46.0

func (m *ContractAuthorizations) Reset()

func (*ContractAuthorizations) Size added in v0.46.0

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

func (*ContractAuthorizations) String added in v0.46.0

func (m *ContractAuthorizations) String() string

func (*ContractAuthorizations) Unmarshal added in v0.46.0

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

func (*ContractAuthorizations) XXX_DiscardUnknown added in v0.46.0

func (m *ContractAuthorizations) XXX_DiscardUnknown()

func (*ContractAuthorizations) XXX_Marshal added in v0.46.0

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

func (*ContractAuthorizations) XXX_Merge added in v0.46.0

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

func (*ContractAuthorizations) XXX_Size added in v0.46.0

func (m *ContractAuthorizations) XXX_Size() int

func (*ContractAuthorizations) XXX_Unmarshal added in v0.46.0

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

type ContractBalances added in v0.46.0

type ContractBalances struct {
	// contract id associated with the token class.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// balances of the contract.
	Balances []Balance `protobuf:"bytes,2,rep,name=balances,proto3" json:"balances"`
}

ContractBalances defines balances belong to a contract. genesis state.

func (*ContractBalances) Descriptor added in v0.46.0

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

func (*ContractBalances) GetBalances added in v0.46.0

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

func (*ContractBalances) GetContractId added in v0.46.0

func (m *ContractBalances) GetContractId() string

func (*ContractBalances) Marshal added in v0.46.0

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

func (*ContractBalances) MarshalTo added in v0.46.0

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

func (*ContractBalances) MarshalToSizedBuffer added in v0.46.0

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

func (*ContractBalances) ProtoMessage added in v0.46.0

func (*ContractBalances) ProtoMessage()

func (*ContractBalances) Reset added in v0.46.0

func (m *ContractBalances) Reset()

func (*ContractBalances) Size added in v0.46.0

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

func (*ContractBalances) String added in v0.46.0

func (m *ContractBalances) String() string

func (*ContractBalances) Unmarshal added in v0.46.0

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

func (*ContractBalances) XXX_DiscardUnknown added in v0.46.0

func (m *ContractBalances) XXX_DiscardUnknown()

func (*ContractBalances) XXX_Marshal added in v0.46.0

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

func (*ContractBalances) XXX_Merge added in v0.46.0

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

func (*ContractBalances) XXX_Size added in v0.46.0

func (m *ContractBalances) XXX_Size() int

func (*ContractBalances) XXX_Unmarshal added in v0.46.0

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

type ContractCoin added in v0.46.0

type ContractCoin struct {
	// contract id associated with the token class.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// amount of the token.
	Amount github_com_line_lbm_sdk_types.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=github.com/line/lbm-sdk/types.Int" json:"amount"`
}

func (*ContractCoin) Descriptor added in v0.46.0

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

func (*ContractCoin) GetContractId added in v0.46.0

func (m *ContractCoin) GetContractId() string

func (*ContractCoin) Marshal added in v0.46.0

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

func (*ContractCoin) MarshalTo added in v0.46.0

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

func (*ContractCoin) MarshalToSizedBuffer added in v0.46.0

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

func (*ContractCoin) ProtoMessage added in v0.46.0

func (*ContractCoin) ProtoMessage()

func (*ContractCoin) Reset added in v0.46.0

func (m *ContractCoin) Reset()

func (*ContractCoin) Size added in v0.46.0

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

func (*ContractCoin) String added in v0.46.0

func (m *ContractCoin) String() string

func (*ContractCoin) Unmarshal added in v0.46.0

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

func (*ContractCoin) XXX_DiscardUnknown added in v0.46.0

func (m *ContractCoin) XXX_DiscardUnknown()

func (*ContractCoin) XXX_Marshal added in v0.46.0

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

func (*ContractCoin) XXX_Merge added in v0.46.0

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

func (*ContractCoin) XXX_Size added in v0.46.0

func (m *ContractCoin) XXX_Size() int

func (*ContractCoin) XXX_Unmarshal added in v0.46.0

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

type ContractGrants added in v0.46.0

type ContractGrants struct {
	// contract id associated with the token class.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// grants of the contract.
	Grants []Grant `protobuf:"bytes,2,rep,name=grants,proto3" json:"grants"`
}

ContractGrant defines grants belong to a contract.

func (*ContractGrants) Descriptor added in v0.46.0

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

func (*ContractGrants) GetContractId added in v0.46.0

func (m *ContractGrants) GetContractId() string

func (*ContractGrants) GetGrants added in v0.46.0

func (m *ContractGrants) GetGrants() []Grant

func (*ContractGrants) Marshal added in v0.46.0

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

func (*ContractGrants) MarshalTo added in v0.46.0

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

func (*ContractGrants) MarshalToSizedBuffer added in v0.46.0

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

func (*ContractGrants) ProtoMessage added in v0.46.0

func (*ContractGrants) ProtoMessage()

func (*ContractGrants) Reset added in v0.46.0

func (m *ContractGrants) Reset()

func (*ContractGrants) Size added in v0.46.0

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

func (*ContractGrants) String added in v0.46.0

func (m *ContractGrants) String() string

func (*ContractGrants) Unmarshal added in v0.46.0

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

func (*ContractGrants) XXX_DiscardUnknown added in v0.46.0

func (m *ContractGrants) XXX_DiscardUnknown()

func (*ContractGrants) XXX_Marshal added in v0.46.0

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

func (*ContractGrants) XXX_Merge added in v0.46.0

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

func (*ContractGrants) XXX_Size added in v0.46.0

func (m *ContractGrants) XXX_Size() int

func (*ContractGrants) XXX_Unmarshal added in v0.46.0

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

type EventAuthorizedOperator added in v0.46.0

type EventAuthorizedOperator struct {
	// contract id associated with the token class.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// address of a holder which authorized the `operator` address as an operator.
	Holder string `protobuf:"bytes,2,opt,name=holder,proto3" json:"holder,omitempty"`
	// address which became an operator of `holder`.
	Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"`
}

EventAuthorizedOperator is emitted when a holder authorizes an operator to manipulate its tokens.

Since: 0.46.0 (finschia)

func (*EventAuthorizedOperator) Descriptor added in v0.46.0

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

func (*EventAuthorizedOperator) GetContractId added in v0.46.0

func (m *EventAuthorizedOperator) GetContractId() string

func (*EventAuthorizedOperator) GetHolder added in v0.46.0

func (m *EventAuthorizedOperator) GetHolder() string

func (*EventAuthorizedOperator) GetOperator added in v0.46.0

func (m *EventAuthorizedOperator) GetOperator() string

func (*EventAuthorizedOperator) Marshal added in v0.46.0

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

func (*EventAuthorizedOperator) MarshalTo added in v0.46.0

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

func (*EventAuthorizedOperator) MarshalToSizedBuffer added in v0.46.0

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

func (*EventAuthorizedOperator) ProtoMessage added in v0.46.0

func (*EventAuthorizedOperator) ProtoMessage()

func (*EventAuthorizedOperator) Reset added in v0.46.0

func (m *EventAuthorizedOperator) Reset()

func (*EventAuthorizedOperator) Size added in v0.46.0

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

func (*EventAuthorizedOperator) String added in v0.46.0

func (m *EventAuthorizedOperator) String() string

func (*EventAuthorizedOperator) Unmarshal added in v0.46.0

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

func (*EventAuthorizedOperator) XXX_DiscardUnknown added in v0.46.0

func (m *EventAuthorizedOperator) XXX_DiscardUnknown()

func (*EventAuthorizedOperator) XXX_Marshal added in v0.46.0

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

func (*EventAuthorizedOperator) XXX_Merge added in v0.46.0

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

func (*EventAuthorizedOperator) XXX_Size added in v0.46.0

func (m *EventAuthorizedOperator) XXX_Size() int

func (*EventAuthorizedOperator) XXX_Unmarshal added in v0.46.0

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

type EventBurned added in v0.46.0

type EventBurned struct {
	// contract id associated with the token class.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// address which triggered the burn.
	Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
	// holder whose tokens were burned.
	From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"`
	// number of tokens burned.
	Amount github_com_line_lbm_sdk_types.Int `protobuf:"bytes,4,opt,name=amount,proto3,customtype=github.com/line/lbm-sdk/types.Int" json:"amount"`
}

EventBurned is emitted when tokens are burnt.

Since: 0.46.0 (finschia)

func (*EventBurned) Descriptor added in v0.46.0

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

func (*EventBurned) GetContractId added in v0.46.0

func (m *EventBurned) GetContractId() string

func (*EventBurned) GetFrom added in v0.46.0

func (m *EventBurned) GetFrom() string

func (*EventBurned) GetOperator added in v0.46.0

func (m *EventBurned) GetOperator() string

func (*EventBurned) Marshal added in v0.46.0

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

func (*EventBurned) MarshalTo added in v0.46.0

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

func (*EventBurned) MarshalToSizedBuffer added in v0.46.0

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

func (*EventBurned) ProtoMessage added in v0.46.0

func (*EventBurned) ProtoMessage()

func (*EventBurned) Reset added in v0.46.0

func (m *EventBurned) Reset()

func (*EventBurned) Size added in v0.46.0

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

func (*EventBurned) String added in v0.46.0

func (m *EventBurned) String() string

func (*EventBurned) Unmarshal added in v0.46.0

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

func (*EventBurned) XXX_DiscardUnknown added in v0.46.0

func (m *EventBurned) XXX_DiscardUnknown()

func (*EventBurned) XXX_Marshal added in v0.46.0

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

func (*EventBurned) XXX_Merge added in v0.46.0

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

func (*EventBurned) XXX_Size added in v0.46.0

func (m *EventBurned) XXX_Size() int

func (*EventBurned) XXX_Unmarshal added in v0.46.0

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

type EventGranted added in v0.46.0

type EventGranted struct {
	// contract id associated with the token class.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// address which granted the permission to `grantee`.
	// it would be empty where the event is triggered by the issuance.
	Granter string `protobuf:"bytes,2,opt,name=granter,proto3" json:"granter,omitempty"`
	// address of the grantee.
	Grantee string `protobuf:"bytes,3,opt,name=grantee,proto3" json:"grantee,omitempty"`
	// permission on the token class.
	Permission Permission `protobuf:"varint,4,opt,name=permission,proto3,enum=lbm.token.v1.Permission" json:"permission,omitempty"`
}

EventGranted is emitted when a granter grants its permission to a grantee.

Info: `granter` would be empty if the permission is granted by an issuance.

Since: 0.46.0 (finschia)

func (*EventGranted) Descriptor added in v0.46.0

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

func (*EventGranted) GetContractId added in v0.46.0

func (m *EventGranted) GetContractId() string

func (*EventGranted) GetGrantee added in v0.46.0

func (m *EventGranted) GetGrantee() string

func (*EventGranted) GetGranter added in v0.46.0

func (m *EventGranted) GetGranter() string

func (*EventGranted) GetPermission added in v0.46.0

func (m *EventGranted) GetPermission() Permission

func (*EventGranted) Marshal added in v0.46.0

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

func (*EventGranted) MarshalTo added in v0.46.0

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

func (*EventGranted) MarshalToSizedBuffer added in v0.46.0

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

func (*EventGranted) ProtoMessage added in v0.46.0

func (*EventGranted) ProtoMessage()

func (*EventGranted) Reset added in v0.46.0

func (m *EventGranted) Reset()

func (*EventGranted) Size added in v0.46.0

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

func (*EventGranted) String added in v0.46.0

func (m *EventGranted) String() string

func (*EventGranted) Unmarshal added in v0.46.0

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

func (*EventGranted) XXX_DiscardUnknown added in v0.46.0

func (m *EventGranted) XXX_DiscardUnknown()

func (*EventGranted) XXX_Marshal added in v0.46.0

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

func (*EventGranted) XXX_Merge added in v0.46.0

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

func (*EventGranted) XXX_Size added in v0.46.0

func (m *EventGranted) XXX_Size() int

func (*EventGranted) XXX_Unmarshal added in v0.46.0

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

type EventIssued added in v0.46.0

type EventIssued struct {
	// address which created the contract.
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	// contract id associated with the token class.
	ContractId string `protobuf:"bytes,2,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// name defines the human-readable name of the token class.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// symbol is an abbreviated name for token class.
	Symbol string `protobuf:"bytes,4,opt,name=symbol,proto3" json:"symbol,omitempty"`
	// uri is an uri for the resource of the token class stored off chain.
	Uri string `protobuf:"bytes,5,opt,name=uri,proto3" json:"uri,omitempty"`
	// meta is a brief description of token class.
	Meta string `protobuf:"bytes,6,opt,name=meta,proto3" json:"meta,omitempty"`
	// decimals is the number of decimals which one must divide the amount by to get its user representation.
	Decimals int32 `protobuf:"varint,7,opt,name=decimals,proto3" json:"decimals,omitempty"`
	// mintable represents whether the token is allowed to mint.
	Mintable bool `protobuf:"varint,8,opt,name=mintable,proto3" json:"mintable,omitempty"`
}

EventIssued is emitted when a new token class is created.

Since: 0.46.0 (finschia)

func (*EventIssued) Descriptor added in v0.46.0

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

func (*EventIssued) GetContractId added in v0.46.0

func (m *EventIssued) GetContractId() string

func (*EventIssued) GetCreator added in v0.46.0

func (m *EventIssued) GetCreator() string

func (*EventIssued) GetDecimals added in v0.46.0

func (m *EventIssued) GetDecimals() int32

func (*EventIssued) GetMeta added in v0.46.0

func (m *EventIssued) GetMeta() string

func (*EventIssued) GetMintable added in v0.46.0

func (m *EventIssued) GetMintable() bool

func (*EventIssued) GetName added in v0.46.0

func (m *EventIssued) GetName() string

func (*EventIssued) GetSymbol added in v0.46.0

func (m *EventIssued) GetSymbol() string

func (*EventIssued) GetUri added in v0.46.0

func (m *EventIssued) GetUri() string

func (*EventIssued) Marshal added in v0.46.0

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

func (*EventIssued) MarshalTo added in v0.46.0

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

func (*EventIssued) MarshalToSizedBuffer added in v0.46.0

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

func (*EventIssued) ProtoMessage added in v0.46.0

func (*EventIssued) ProtoMessage()

func (*EventIssued) Reset added in v0.46.0

func (m *EventIssued) Reset()

func (*EventIssued) Size added in v0.46.0

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

func (*EventIssued) String added in v0.46.0

func (m *EventIssued) String() string

func (*EventIssued) Unmarshal added in v0.46.0

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

func (*EventIssued) XXX_DiscardUnknown added in v0.46.0

func (m *EventIssued) XXX_DiscardUnknown()

func (*EventIssued) XXX_Marshal added in v0.46.0

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

func (*EventIssued) XXX_Merge added in v0.46.0

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

func (*EventIssued) XXX_Size added in v0.46.0

func (m *EventIssued) XXX_Size() int

func (*EventIssued) XXX_Unmarshal added in v0.46.0

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

type EventMinted added in v0.46.0

type EventMinted struct {
	// contract id associated with the token class.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// address which triggered the mint.
	Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
	// recipient of the tokens.
	To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
	// number of tokens minted.
	Amount github_com_line_lbm_sdk_types.Int `protobuf:"bytes,4,opt,name=amount,proto3,customtype=github.com/line/lbm-sdk/types.Int" json:"amount"`
}

EventMinted is emitted when tokens are minted.

Since: 0.46.0 (finschia)

func (*EventMinted) Descriptor added in v0.46.0

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

func (*EventMinted) GetContractId added in v0.46.0

func (m *EventMinted) GetContractId() string

func (*EventMinted) GetOperator added in v0.46.0

func (m *EventMinted) GetOperator() string

func (*EventMinted) GetTo added in v0.46.0

func (m *EventMinted) GetTo() string

func (*EventMinted) Marshal added in v0.46.0

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

func (*EventMinted) MarshalTo added in v0.46.0

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

func (*EventMinted) MarshalToSizedBuffer added in v0.46.0

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

func (*EventMinted) ProtoMessage added in v0.46.0

func (*EventMinted) ProtoMessage()

func (*EventMinted) Reset added in v0.46.0

func (m *EventMinted) Reset()

func (*EventMinted) Size added in v0.46.0

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

func (*EventMinted) String added in v0.46.0

func (m *EventMinted) String() string

func (*EventMinted) Unmarshal added in v0.46.0

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

func (*EventMinted) XXX_DiscardUnknown added in v0.46.0

func (m *EventMinted) XXX_DiscardUnknown()

func (*EventMinted) XXX_Marshal added in v0.46.0

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

func (*EventMinted) XXX_Merge added in v0.46.0

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

func (*EventMinted) XXX_Size added in v0.46.0

func (m *EventMinted) XXX_Size() int

func (*EventMinted) XXX_Unmarshal added in v0.46.0

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

type EventModified added in v0.46.0

type EventModified struct {
	// contract id associated with the token class.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// address which triggered the modify.
	Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
	// changes on the metadata of the class.
	Changes []Pair `protobuf:"bytes,3,rep,name=changes,proto3" json:"changes"`
}

EventModified is emitted when the information of a token class is modified.

Since: 0.46.0 (finschia)

func (*EventModified) Descriptor added in v0.46.0

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

func (*EventModified) GetChanges added in v0.46.0

func (m *EventModified) GetChanges() []Pair

func (*EventModified) GetContractId added in v0.46.0

func (m *EventModified) GetContractId() string

func (*EventModified) GetOperator added in v0.46.0

func (m *EventModified) GetOperator() string

func (*EventModified) Marshal added in v0.46.0

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

func (*EventModified) MarshalTo added in v0.46.0

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

func (*EventModified) MarshalToSizedBuffer added in v0.46.0

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

func (*EventModified) ProtoMessage added in v0.46.0

func (*EventModified) ProtoMessage()

func (*EventModified) Reset added in v0.46.0

func (m *EventModified) Reset()

func (*EventModified) Size added in v0.46.0

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

func (*EventModified) String added in v0.46.0

func (m *EventModified) String() string

func (*EventModified) Unmarshal added in v0.46.0

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

func (*EventModified) XXX_DiscardUnknown added in v0.46.0

func (m *EventModified) XXX_DiscardUnknown()

func (*EventModified) XXX_Marshal added in v0.46.0

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

func (*EventModified) XXX_Merge added in v0.46.0

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

func (*EventModified) XXX_Size added in v0.46.0

func (m *EventModified) XXX_Size() int

func (*EventModified) XXX_Unmarshal added in v0.46.0

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

type EventRenounced added in v0.46.0

type EventRenounced struct {
	// contract id associated with the token class.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// address of the grantee which abandons its grant.
	Grantee string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"`
	// permission on the token class.
	Permission Permission `protobuf:"varint,3,opt,name=permission,proto3,enum=lbm.token.v1.Permission" json:"permission,omitempty"`
}

EventRenounced is emitted when a grantee renounces its permission.

Since: 0.46.0 (finschia)

func (*EventRenounced) Descriptor added in v0.46.0

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

func (*EventRenounced) GetContractId added in v0.46.0

func (m *EventRenounced) GetContractId() string

func (*EventRenounced) GetGrantee added in v0.46.0

func (m *EventRenounced) GetGrantee() string

func (*EventRenounced) GetPermission added in v0.46.0

func (m *EventRenounced) GetPermission() Permission

func (*EventRenounced) Marshal added in v0.46.0

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

func (*EventRenounced) MarshalTo added in v0.46.0

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

func (*EventRenounced) MarshalToSizedBuffer added in v0.46.0

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

func (*EventRenounced) ProtoMessage added in v0.46.0

func (*EventRenounced) ProtoMessage()

func (*EventRenounced) Reset added in v0.46.0

func (m *EventRenounced) Reset()

func (*EventRenounced) Size added in v0.46.0

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

func (*EventRenounced) String added in v0.46.0

func (m *EventRenounced) String() string

func (*EventRenounced) Unmarshal added in v0.46.0

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

func (*EventRenounced) XXX_DiscardUnknown added in v0.46.0

func (m *EventRenounced) XXX_DiscardUnknown()

func (*EventRenounced) XXX_Marshal added in v0.46.0

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

func (*EventRenounced) XXX_Merge added in v0.46.0

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

func (*EventRenounced) XXX_Size added in v0.46.0

func (m *EventRenounced) XXX_Size() int

func (*EventRenounced) XXX_Unmarshal added in v0.46.0

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

type EventRevokedOperator added in v0.46.0

type EventRevokedOperator struct {
	// contract id associated with the token class.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// address of a holder which revoked the `operator` address as an operator.
	Holder string `protobuf:"bytes,2,opt,name=holder,proto3" json:"holder,omitempty"`
	// address which was revoked as an operator of `holder`.
	Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"`
}

EventRevokedOperator is emitted when an authorization is revoked.

Since: 0.46.0 (finschia)

func (*EventRevokedOperator) Descriptor added in v0.46.0

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

func (*EventRevokedOperator) GetContractId added in v0.46.0

func (m *EventRevokedOperator) GetContractId() string

func (*EventRevokedOperator) GetHolder added in v0.46.0

func (m *EventRevokedOperator) GetHolder() string

func (*EventRevokedOperator) GetOperator added in v0.46.0

func (m *EventRevokedOperator) GetOperator() string

func (*EventRevokedOperator) Marshal added in v0.46.0

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

func (*EventRevokedOperator) MarshalTo added in v0.46.0

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

func (*EventRevokedOperator) MarshalToSizedBuffer added in v0.46.0

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

func (*EventRevokedOperator) ProtoMessage added in v0.46.0

func (*EventRevokedOperator) ProtoMessage()

func (*EventRevokedOperator) Reset added in v0.46.0

func (m *EventRevokedOperator) Reset()

func (*EventRevokedOperator) Size added in v0.46.0

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

func (*EventRevokedOperator) String added in v0.46.0

func (m *EventRevokedOperator) String() string

func (*EventRevokedOperator) Unmarshal added in v0.46.0

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

func (*EventRevokedOperator) XXX_DiscardUnknown added in v0.46.0

func (m *EventRevokedOperator) XXX_DiscardUnknown()

func (*EventRevokedOperator) XXX_Marshal added in v0.46.0

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

func (*EventRevokedOperator) XXX_Merge added in v0.46.0

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

func (*EventRevokedOperator) XXX_Size added in v0.46.0

func (m *EventRevokedOperator) XXX_Size() int

func (*EventRevokedOperator) XXX_Unmarshal added in v0.46.0

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

type EventSent added in v0.46.0

type EventSent struct {
	// contract id associated with the token class.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// address which triggered the send.
	Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
	// holder whose tokens were sent.
	From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"`
	// recipient of the tokens
	To string `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"`
	// number of tokens sent.
	Amount github_com_line_lbm_sdk_types.Int `protobuf:"bytes,5,opt,name=amount,proto3,customtype=github.com/line/lbm-sdk/types.Int" json:"amount"`
}

EventSent is emitted when tokens are transferred.

Since: 0.46.0 (finschia)

func (*EventSent) Descriptor added in v0.46.0

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

func (*EventSent) GetContractId added in v0.46.0

func (m *EventSent) GetContractId() string

func (*EventSent) GetFrom added in v0.46.0

func (m *EventSent) GetFrom() string

func (*EventSent) GetOperator added in v0.46.0

func (m *EventSent) GetOperator() string

func (*EventSent) GetTo added in v0.46.0

func (m *EventSent) GetTo() string

func (*EventSent) Marshal added in v0.46.0

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

func (*EventSent) MarshalTo added in v0.46.0

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

func (*EventSent) MarshalToSizedBuffer added in v0.46.0

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

func (*EventSent) ProtoMessage added in v0.46.0

func (*EventSent) ProtoMessage()

func (*EventSent) Reset added in v0.46.0

func (m *EventSent) Reset()

func (*EventSent) Size added in v0.46.0

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

func (*EventSent) String added in v0.46.0

func (m *EventSent) String() string

func (*EventSent) Unmarshal added in v0.46.0

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

func (*EventSent) XXX_DiscardUnknown added in v0.46.0

func (m *EventSent) XXX_DiscardUnknown()

func (*EventSent) XXX_Marshal added in v0.46.0

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

func (*EventSent) XXX_Merge added in v0.46.0

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

func (*EventSent) XXX_Size added in v0.46.0

func (m *EventSent) XXX_Size() int

func (*EventSent) XXX_Unmarshal added in v0.46.0

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

type EventType deprecated added in v0.46.0

type EventType int32

Deprecated: use typed events.

EventType enumerates the valid event types on x/token.

const (
	EventTypeUnspecified     EventType = 0
	EventTypeIssueToken      EventType = 1
	EventTypeMintToken       EventType = 2
	EventTypeBurnToken       EventType = 3
	EventTypeBurnTokenFrom   EventType = 4
	EventTypeModifyToken     EventType = 5
	EventTypeTransfer        EventType = 6
	EventTypeTransferFrom    EventType = 7
	EventTypeGrantPermToken  EventType = 8
	EventTypeRevokePermToken EventType = 9
	EventTypeApproveToken    EventType = 10
)

func EventTypeFromString added in v0.46.0

func EventTypeFromString(name string) EventType

func (EventType) EnumDescriptor added in v0.46.0

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

func (EventType) String added in v0.46.0

func (x EventType) String() string

type GenesisState

type GenesisState struct {
	// params defines all the paramaters of the module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	// class_state is the class keeper's genesis state.
	ClassState *ClassGenesisState `protobuf:"bytes,2,opt,name=class_state,json=classState,proto3" json:"class_state,omitempty"`
	// balances is an array containing the balances of all the accounts.
	Balances []ContractBalances `protobuf:"bytes,3,rep,name=balances,proto3" json:"balances"`
	// classes defines the metadata of the differents tokens.
	Classes []TokenClass `protobuf:"bytes,4,rep,name=classes,proto3" json:"classes"`
	// grants defines the grant information.
	Grants []ContractGrants `protobuf:"bytes,5,rep,name=grants,proto3" json:"grants"`
	// authorizations defines the approve information.
	Authorizations []ContractAuthorizations `protobuf:"bytes,6,rep,name=authorizations,proto3" json:"authorizations"`
	// supplies represents the total supplies of tokens.
	Supplies []ContractCoin `protobuf:"bytes,7,rep,name=supplies,proto3" json:"supplies"`
	// mints represents the total mints of tokens.
	Mints []ContractCoin `protobuf:"bytes,8,rep,name=mints,proto3" json:"mints"`
	// burns represents the total burns of tokens.
	Burns []ContractCoin `protobuf:"bytes,9,rep,name=burns,proto3" json:"burns"`
}

GenesisState defines the token module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState - Return a default genesis state

func (*GenesisState) Descriptor added in v0.45.0

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

func (*GenesisState) GetAuthorizations added in v0.46.0

func (m *GenesisState) GetAuthorizations() []ContractAuthorizations

func (*GenesisState) GetBalances added in v0.45.0

func (m *GenesisState) GetBalances() []ContractBalances

func (*GenesisState) GetBurns added in v0.45.0

func (m *GenesisState) GetBurns() []ContractCoin

func (*GenesisState) GetClassState added in v0.45.0

func (m *GenesisState) GetClassState() *ClassGenesisState

func (*GenesisState) GetClasses added in v0.45.0

func (m *GenesisState) GetClasses() []TokenClass

func (*GenesisState) GetGrants added in v0.45.0

func (m *GenesisState) GetGrants() []ContractGrants

func (*GenesisState) GetMints added in v0.45.0

func (m *GenesisState) GetMints() []ContractCoin

func (*GenesisState) GetParams added in v0.45.0

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetSupplies added in v0.45.0

func (m *GenesisState) GetSupplies() []ContractCoin

func (*GenesisState) Marshal added in v0.45.0

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

func (*GenesisState) MarshalTo added in v0.45.0

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

func (*GenesisState) MarshalToSizedBuffer added in v0.45.0

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

func (*GenesisState) ProtoMessage added in v0.45.0

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset added in v0.45.0

func (m *GenesisState) Reset()

func (*GenesisState) Size added in v0.45.0

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

func (*GenesisState) String added in v0.45.0

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal added in v0.45.0

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

func (*GenesisState) XXX_DiscardUnknown added in v0.45.0

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal added in v0.45.0

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

func (*GenesisState) XXX_Merge added in v0.45.0

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

func (*GenesisState) XXX_Size added in v0.45.0

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal added in v0.45.0

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

type Grant added in v0.45.0

type Grant struct {
	// address of the grantee.
	Grantee string `protobuf:"bytes,1,opt,name=grantee,proto3" json:"grantee,omitempty"`
	// permission on the token class.
	Permission Permission `protobuf:"varint,2,opt,name=permission,proto3,enum=lbm.token.v1.Permission" json:"permission,omitempty"`
}

Grant defines permission given to a grantee.

func (*Grant) Descriptor added in v0.45.0

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

func (*Grant) Marshal added in v0.45.0

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

func (*Grant) MarshalTo added in v0.45.0

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

func (*Grant) MarshalToSizedBuffer added in v0.45.0

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

func (*Grant) ProtoMessage added in v0.45.0

func (*Grant) ProtoMessage()

func (*Grant) Reset added in v0.45.0

func (m *Grant) Reset()

func (*Grant) Size added in v0.45.0

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

func (*Grant) String added in v0.45.0

func (m *Grant) String() string

func (*Grant) Unmarshal added in v0.45.0

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

func (*Grant) XXX_DiscardUnknown added in v0.45.0

func (m *Grant) XXX_DiscardUnknown()

func (*Grant) XXX_Marshal added in v0.45.0

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

func (*Grant) XXX_Merge added in v0.45.0

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

func (*Grant) XXX_Size added in v0.45.0

func (m *Grant) XXX_Size() int

func (*Grant) XXX_Unmarshal added in v0.45.0

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

type LegacyPermission deprecated added in v0.46.0

type LegacyPermission int32

Deprecated: use Permission

LegacyPermission enumerates the valid permissions on a token class.

const (
	// unspecified defines the default permission which is invalid.
	LegacyPermissionUnspecified LegacyPermission = 0
	// modify defines a permission to modify a contract.
	LegacyPermissionModify LegacyPermission = 1
	// mint defines a permission to mint tokens of a contract.
	LegacyPermissionMint LegacyPermission = 2
	// burn defines a permission to burn tokens of a contract.
	LegacyPermissionBurn LegacyPermission = 3
)

func LegacyPermissionFromString added in v0.46.0

func LegacyPermissionFromString(name string) LegacyPermission

func (LegacyPermission) EnumDescriptor added in v0.46.0

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

func (LegacyPermission) String added in v0.46.0

func (x LegacyPermission) String() string

type MsgApprove added in v0.45.0

type MsgApprove struct {
	// contract id associated with the token class.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// address of the token approver which approves the authorization.
	Approver string `protobuf:"bytes,2,opt,name=approver,proto3" json:"approver,omitempty"`
	// address of the proxy which the authorization is granted to.
	Proxy string `protobuf:"bytes,3,opt,name=proxy,proto3" json:"proxy,omitempty"`
}

MsgApprove defines the Msg/Approve request type.

Throws: - ErrInvalidAddress

  • `approver` is of invalid format.
  • `proxy` is of invalid format.

- ErrInvalidRequest

  • `contract_id` is of invalid format.

Signer: `approver`

func (*MsgApprove) Descriptor added in v0.45.0

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

func (MsgApprove) GetSigners added in v0.45.0

func (m MsgApprove) GetSigners() []sdk.AccAddress

GetSigners implements Msg.

func (*MsgApprove) Marshal added in v0.45.0

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

func (*MsgApprove) MarshalTo added in v0.45.0

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

func (*MsgApprove) MarshalToSizedBuffer added in v0.45.0

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

func (*MsgApprove) ProtoMessage added in v0.45.0

func (*MsgApprove) ProtoMessage()

func (*MsgApprove) Reset added in v0.45.0

func (m *MsgApprove) Reset()

func (*MsgApprove) Size added in v0.45.0

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

func (*MsgApprove) String added in v0.45.0

func (m *MsgApprove) String() string

func (*MsgApprove) Unmarshal added in v0.45.0

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

func (MsgApprove) ValidateBasic added in v0.45.0

func (m MsgApprove) ValidateBasic() error

ValidateBasic implements Msg.

func (*MsgApprove) XXX_DiscardUnknown added in v0.45.0

func (m *MsgApprove) XXX_DiscardUnknown()

func (*MsgApprove) XXX_Marshal added in v0.45.0

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

func (*MsgApprove) XXX_Merge added in v0.45.0

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

func (*MsgApprove) XXX_Size added in v0.45.0

func (m *MsgApprove) XXX_Size() int

func (*MsgApprove) XXX_Unmarshal added in v0.45.0

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

type MsgApproveResponse added in v0.45.0

type MsgApproveResponse struct {
}

MsgApproveResponse defines the Msg/Approve response type.

func (*MsgApproveResponse) Descriptor added in v0.45.0

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

func (*MsgApproveResponse) Marshal added in v0.45.0

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

func (*MsgApproveResponse) MarshalTo added in v0.45.0

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

func (*MsgApproveResponse) MarshalToSizedBuffer added in v0.45.0

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

func (*MsgApproveResponse) ProtoMessage added in v0.45.0

func (*MsgApproveResponse) ProtoMessage()

func (*MsgApproveResponse) Reset added in v0.45.0

func (m *MsgApproveResponse) Reset()

func (*MsgApproveResponse) Size added in v0.45.0

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

func (*MsgApproveResponse) String added in v0.45.0

func (m *MsgApproveResponse) String() string

func (*MsgApproveResponse) Unmarshal added in v0.45.0

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

func (*MsgApproveResponse) XXX_DiscardUnknown added in v0.45.0

func (m *MsgApproveResponse) XXX_DiscardUnknown()

func (*MsgApproveResponse) XXX_Marshal added in v0.45.0

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

func (*MsgApproveResponse) XXX_Merge added in v0.45.0

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

func (*MsgApproveResponse) XXX_Size added in v0.45.0

func (m *MsgApproveResponse) XXX_Size() int

func (*MsgApproveResponse) XXX_Unmarshal added in v0.45.0

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

type MsgBurn

type MsgBurn struct {
	// contract id associated with the token class.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// address whose tokens are being burned.
	From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	// number of tokens to burn.
	Amount github_com_line_lbm_sdk_types.Int `protobuf:"bytes,3,opt,name=amount,proto3,customtype=github.com/line/lbm-sdk/types.Int" json:"amount"`
}

MsgBurn defines the Msg/Burn request type.

Throws: - ErrInvalidAddress

  • `from` is of invalid format.

- ErrInvalidRequest

  • `contract_id` is of invalid format.
  • `amount` is not positive.

Signer: `from`

func (*MsgBurn) Descriptor added in v0.45.0

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

func (MsgBurn) GetSigners added in v0.45.0

func (m MsgBurn) GetSigners() []sdk.AccAddress

GetSigners implements Msg

func (*MsgBurn) Marshal added in v0.45.0

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

func (*MsgBurn) MarshalTo added in v0.45.0

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

func (*MsgBurn) MarshalToSizedBuffer added in v0.45.0

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

func (*MsgBurn) ProtoMessage added in v0.45.0

func (*MsgBurn) ProtoMessage()

func (*MsgBurn) Reset added in v0.45.0

func (m *MsgBurn) Reset()

func (*MsgBurn) Size added in v0.45.0

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

func (*MsgBurn) String added in v0.45.0

func (m *MsgBurn) String() string

func (*MsgBurn) Unmarshal added in v0.45.0

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

func (MsgBurn) ValidateBasic added in v0.45.0

func (m MsgBurn) ValidateBasic() error

ValidateBasic implements Msg.

func (*MsgBurn) XXX_DiscardUnknown added in v0.45.0

func (m *MsgBurn) XXX_DiscardUnknown()

func (*MsgBurn) XXX_Marshal added in v0.45.0

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

func (*MsgBurn) XXX_Merge added in v0.45.0

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

func (*MsgBurn) XXX_Size added in v0.45.0

func (m *MsgBurn) XXX_Size() int

func (*MsgBurn) XXX_Unmarshal added in v0.45.0

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

type MsgBurnFrom added in v0.45.0

type MsgBurnFrom struct {
	// contract id associated with the token class.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// address which triggers the burn.
	Proxy string `protobuf:"bytes,2,opt,name=proxy,proto3" json:"proxy,omitempty"`
	// address which the tokens will be burnt from.
	From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"`
	// the amount of the burn.
	Amount github_com_line_lbm_sdk_types.Int `protobuf:"bytes,4,opt,name=amount,proto3,customtype=github.com/line/lbm-sdk/types.Int" json:"amount"`
}

MsgBurnFrom defines the Msg/BurnFrom request type.

Throws: - ErrInvalidAddress

  • `proxy` is of invalid format.
  • `from` is of invalid format.

- ErrInvalidRequest

  • `contract_id` is of invalid format.
  • `amount` is not positive.

Signer: `proxy`

func (*MsgBurnFrom) Descriptor added in v0.45.0

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

func (MsgBurnFrom) GetSigners added in v0.45.0

func (m MsgBurnFrom) GetSigners() []sdk.AccAddress

GetSigners implements Msg

func (*MsgBurnFrom) Marshal added in v0.45.0

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

func (*MsgBurnFrom) MarshalTo added in v0.45.0

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

func (*MsgBurnFrom) MarshalToSizedBuffer added in v0.45.0

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

func (*MsgBurnFrom) ProtoMessage added in v0.45.0

func (*MsgBurnFrom) ProtoMessage()

func (*MsgBurnFrom) Reset added in v0.45.0

func (m *MsgBurnFrom) Reset()

func (*MsgBurnFrom) Size added in v0.45.0

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

func (*MsgBurnFrom) String added in v0.45.0

func (m *MsgBurnFrom) String() string

func (*MsgBurnFrom) Unmarshal added in v0.45.0

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

func (MsgBurnFrom) ValidateBasic added in v0.45.0

func (m MsgBurnFrom) ValidateBasic() error

ValidateBasic implements Msg.

func (*MsgBurnFrom) XXX_DiscardUnknown added in v0.45.0

func (m *MsgBurnFrom) XXX_DiscardUnknown()

func (*MsgBurnFrom) XXX_Marshal added in v0.45.0

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

func (*MsgBurnFrom) XXX_Merge added in v0.45.0

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

func (*MsgBurnFrom) XXX_Size added in v0.45.0

func (m *MsgBurnFrom) XXX_Size() int

func (*MsgBurnFrom) XXX_Unmarshal added in v0.45.0

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

type MsgBurnFromResponse added in v0.45.0

type MsgBurnFromResponse struct {
}

MsgBurnFromResponse defines the Msg/BurnFrom response type.

func (*MsgBurnFromResponse) Descriptor added in v0.45.0

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

func (*MsgBurnFromResponse) Marshal added in v0.45.0

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

func (*MsgBurnFromResponse) MarshalTo added in v0.45.0

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

func (*MsgBurnFromResponse) MarshalToSizedBuffer added in v0.45.0

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

func (*MsgBurnFromResponse) ProtoMessage added in v0.45.0

func (*MsgBurnFromResponse) ProtoMessage()

func (*MsgBurnFromResponse) Reset added in v0.45.0

func (m *MsgBurnFromResponse) Reset()

func (*MsgBurnFromResponse) Size added in v0.45.0

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

func (*MsgBurnFromResponse) String added in v0.45.0

func (m *MsgBurnFromResponse) String() string

func (*MsgBurnFromResponse) Unmarshal added in v0.45.0

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

func (*MsgBurnFromResponse) XXX_DiscardUnknown added in v0.45.0

func (m *MsgBurnFromResponse) XXX_DiscardUnknown()

func (*MsgBurnFromResponse) XXX_Marshal added in v0.45.0

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

func (*MsgBurnFromResponse) XXX_Merge added in v0.45.0

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

func (*MsgBurnFromResponse) XXX_Size added in v0.45.0

func (m *MsgBurnFromResponse) XXX_Size() int

func (*MsgBurnFromResponse) XXX_Unmarshal added in v0.45.0

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

type MsgBurnResponse added in v0.45.0

type MsgBurnResponse struct {
}

MsgBurnResponse defines the Msg/Burn response type.

func (*MsgBurnResponse) Descriptor added in v0.45.0

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

func (*MsgBurnResponse) Marshal added in v0.45.0

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

func (*MsgBurnResponse) MarshalTo added in v0.45.0

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

func (*MsgBurnResponse) MarshalToSizedBuffer added in v0.45.0

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

func (*MsgBurnResponse) ProtoMessage added in v0.45.0

func (*MsgBurnResponse) ProtoMessage()

func (*MsgBurnResponse) Reset added in v0.45.0

func (m *MsgBurnResponse) Reset()

func (*MsgBurnResponse) Size added in v0.45.0

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

func (*MsgBurnResponse) String added in v0.45.0

func (m *MsgBurnResponse) String() string

func (*MsgBurnResponse) Unmarshal added in v0.45.0

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

func (*MsgBurnResponse) XXX_DiscardUnknown added in v0.45.0

func (m *MsgBurnResponse) XXX_DiscardUnknown()

func (*MsgBurnResponse) XXX_Marshal added in v0.45.0

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

func (*MsgBurnResponse) XXX_Merge added in v0.45.0

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

func (*MsgBurnResponse) XXX_Size added in v0.45.0

func (m *MsgBurnResponse) XXX_Size() int

func (*MsgBurnResponse) XXX_Unmarshal added in v0.45.0

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

type MsgClient added in v0.45.0

type MsgClient interface {
	// Send defines a method to send tokens from one account to another account.
	// Fires:
	// - EventSent
	// - transfer (deprecated, not typed)
	// Throws:
	// - ErrInvalidRequest:
	//   - the balance of `from` does not have enough tokens to spend.
	Send(ctx context.Context, in *MsgSend, opts ...grpc.CallOption) (*MsgSendResponse, error)
	// TransferFrom defines a method to send tokens from one account to another account by the proxy.
	// Fires:
	// - EventSent
	// - transfer_from (deprecated, not typed)
	// Throws:
	// - ErrUnauthorized:
	//   - the approver has not authorized the proxy.
	// - ErrInvalidRequest:
	//   - the balance of `from` does not have enough tokens to spend.
	// Note: the approval has no value of limit (not ERC20 compliant).
	TransferFrom(ctx context.Context, in *MsgTransferFrom, opts ...grpc.CallOption) (*MsgTransferFromResponse, error)
	// RevokeOperator revoke the authorization of the operator to send the holder's tokens.
	// Fires:
	// - EventRevokedOperator
	// Throws:
	// - ErrNotFound:
	//   - there is no token class of `contract_id`.
	//   - there is no authorization by `holder` to `operator`.
	// Note: it introduces breaking change, because the legacy clients cannot track this revocation.
	// Since: 0.46.0 (finschia)
	RevokeOperator(ctx context.Context, in *MsgRevokeOperator, opts ...grpc.CallOption) (*MsgRevokeOperatorResponse, error)
	// Approve allows one to send tokens on behalf of the approver.
	// Fires:
	// - EventAuthorizedOperator
	// - approve_token (deprecated, not typed)
	// Throws:
	// - ErrNotFound:
	//   - there is no token class of `contract_id`.
	// - ErrInvalidRequest:
	//   - `approver` has already authorized `proxy`.
	Approve(ctx context.Context, in *MsgApprove, opts ...grpc.CallOption) (*MsgApproveResponse, error)
	// Issue defines a method to create a class of token.
	// it grants `mint`, `burn` and `modify` permissions on the token class to its creator (see also `mintable`).
	// Fires:
	// - EventIssue
	// - EventMinted
	// - issue (deprecated, not typed)
	Issue(ctx context.Context, in *MsgIssue, opts ...grpc.CallOption) (*MsgIssueResponse, error)
	// GrantPermission allows one to mint or burn tokens or modify a token metadata.
	// Fires:
	// - EventGrant
	// - grant_perm (deprecated, not typed)
	// Throws:
	// - ErrUnauthorized
	//   - `granter` does not have `permission`.
	// - ErrInvalidRequest
	//   - `grantee` already has `permission`.
	GrantPermission(ctx context.Context, in *MsgGrantPermission, opts ...grpc.CallOption) (*MsgGrantPermissionResponse, error)
	// RevokePermission abandons a permission.
	// Fires:
	// - EventAbandon
	// - revoke_perm (deprecated, not typed)
	// Throws:
	// - ErrUnauthorized
	//   - `grantee` does not have `permission`.
	RevokePermission(ctx context.Context, in *MsgRevokePermission, opts ...grpc.CallOption) (*MsgRevokePermissionResponse, error)
	// Mint defines a method to mint tokens.
	// Fires:
	// - EventMinted
	// - mint (deprecated, not typed)
	// Throws:
	// - ErrUnauthorized
	//   - `from` does not have `mint` permission.
	Mint(ctx context.Context, in *MsgMint, opts ...grpc.CallOption) (*MsgMintResponse, error)
	// Burn defines a method to burn tokens.
	// Fires:
	// - EventBurned
	// - burn (deprecated, not typed)
	// Throws:
	// - ErrUnauthorized
	//   - `from` does not have `burn` permission.
	// - ErrInvalidRequest:
	//   - the balance of `from` does not have enough tokens to burn.
	Burn(ctx context.Context, in *MsgBurn, opts ...grpc.CallOption) (*MsgBurnResponse, error)
	// BurnFrom defines a method to burn tokens by the proxy.
	// Fires:
	// - EventBurned
	// - burn_from (deprecated, not typed)
	// Throws:
	// - ErrUnauthorized
	//   - `proxy` does not have `burn` permission.
	//   - the approver has not authorized `proxy`.
	// - ErrInvalidRequest:
	//   - the balance of `from` does not have enough tokens to burn.
	BurnFrom(ctx context.Context, in *MsgBurnFrom, opts ...grpc.CallOption) (*MsgBurnFromResponse, error)
	// Modify defines a method to modify a token class.
	// Fires:
	// - EventModified
	// - modify_token (deprecated, not typed)
	// Throws:
	// - ErrUnauthorized
	//   - the proxy does not have `modify` permission.
	// - ErrNotFound
	//   - there is no token class of `contract_id`.
	Modify(ctx context.Context, in *MsgModify, opts ...grpc.CallOption) (*MsgModifyResponse, 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 added in v0.45.0

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgGrantPermission added in v0.46.0

type MsgGrantPermission struct {
	// contract id associated with the token class.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// address of the granter which must have the permission to give.
	From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	// address of the grantee.
	To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
	// permission on the token class.
	Permission string `protobuf:"bytes,4,opt,name=permission,proto3" json:"permission,omitempty"`
}

MsgGrantPermission defines the Msg/GrantPermission request type.

Throws: - ErrInvalidAddress

  • `granter` is of invalid format.
  • `grantee` is of invalid format.

- ErrInvalidRequest

  • `contract_id` is of invalid format.
  • `permission` is not a valid permission.

Signer: `granter`

func (*MsgGrantPermission) Descriptor added in v0.46.0

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

func (MsgGrantPermission) GetSigners added in v0.46.0

func (m MsgGrantPermission) GetSigners() []sdk.AccAddress

GetSigners implements Msg

func (*MsgGrantPermission) Marshal added in v0.46.0

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

func (*MsgGrantPermission) MarshalTo added in v0.46.0

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

func (*MsgGrantPermission) MarshalToSizedBuffer added in v0.46.0

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

func (*MsgGrantPermission) ProtoMessage added in v0.46.0

func (*MsgGrantPermission) ProtoMessage()

func (*MsgGrantPermission) Reset added in v0.46.0

func (m *MsgGrantPermission) Reset()

func (*MsgGrantPermission) Size added in v0.46.0

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

func (*MsgGrantPermission) String added in v0.46.0

func (m *MsgGrantPermission) String() string

func (*MsgGrantPermission) Unmarshal added in v0.46.0

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

func (MsgGrantPermission) ValidateBasic added in v0.46.0

func (m MsgGrantPermission) ValidateBasic() error

ValidateBasic implements Msg.

func (*MsgGrantPermission) XXX_DiscardUnknown added in v0.46.0

func (m *MsgGrantPermission) XXX_DiscardUnknown()

func (*MsgGrantPermission) XXX_Marshal added in v0.46.0

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

func (*MsgGrantPermission) XXX_Merge added in v0.46.0

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

func (*MsgGrantPermission) XXX_Size added in v0.46.0

func (m *MsgGrantPermission) XXX_Size() int

func (*MsgGrantPermission) XXX_Unmarshal added in v0.46.0

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

type MsgGrantPermissionResponse added in v0.46.0

type MsgGrantPermissionResponse struct {
}

MsgGrantPermissionResponse defines the Msg/GrantPermission response type.

func (*MsgGrantPermissionResponse) Descriptor added in v0.46.0

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

func (*MsgGrantPermissionResponse) Marshal added in v0.46.0

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

func (*MsgGrantPermissionResponse) MarshalTo added in v0.46.0

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

func (*MsgGrantPermissionResponse) MarshalToSizedBuffer added in v0.46.0

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

func (*MsgGrantPermissionResponse) ProtoMessage added in v0.46.0

func (*MsgGrantPermissionResponse) ProtoMessage()

func (*MsgGrantPermissionResponse) Reset added in v0.46.0

func (m *MsgGrantPermissionResponse) Reset()

func (*MsgGrantPermissionResponse) Size added in v0.46.0

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

func (*MsgGrantPermissionResponse) String added in v0.46.0

func (m *MsgGrantPermissionResponse) String() string

func (*MsgGrantPermissionResponse) Unmarshal added in v0.46.0

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

func (*MsgGrantPermissionResponse) XXX_DiscardUnknown added in v0.46.0

func (m *MsgGrantPermissionResponse) XXX_DiscardUnknown()

func (*MsgGrantPermissionResponse) XXX_Marshal added in v0.46.0

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

func (*MsgGrantPermissionResponse) XXX_Merge added in v0.46.0

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

func (*MsgGrantPermissionResponse) XXX_Size added in v0.46.0

func (m *MsgGrantPermissionResponse) XXX_Size() int

func (*MsgGrantPermissionResponse) XXX_Unmarshal added in v0.46.0

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

type MsgIssue

type MsgIssue struct {
	// name defines the human-readable name of the token class. mandatory (not ERC20 compliant).
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// symbol is an abbreviated name for token class. mandatory (not ERC20 compliant).
	Symbol string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"`
	// image_uri is an uri for the image of the token class stored off chain.
	ImageUri string `protobuf:"bytes,3,opt,name=image_uri,json=imageUri,proto3" json:"image_uri,omitempty"`
	// meta is a brief description of token class.
	Meta string `protobuf:"bytes,4,opt,name=meta,proto3" json:"meta,omitempty"`
	// decimals is the number of decimals which one must divide the amount by to get its user representation.
	Decimals int32 `protobuf:"varint,5,opt,name=decimals,proto3" json:"decimals,omitempty"`
	// mintable represents whether the token is allowed to mint.
	Mintable bool `protobuf:"varint,6,opt,name=mintable,proto3" json:"mintable,omitempty"`
	// the address which all permissions on the token class will be granted to (not a permanent property).
	Owner string `protobuf:"bytes,7,opt,name=owner,proto3" json:"owner,omitempty"`
	// the address to send the minted token to. mandatory.
	To string `protobuf:"bytes,8,opt,name=to,proto3" json:"to,omitempty"`
	// amount of tokens to mint on issuance. mandatory.
	Amount github_com_line_lbm_sdk_types.Int `protobuf:"bytes,9,opt,name=amount,proto3,customtype=github.com/line/lbm-sdk/types.Int" json:"amount"`
}

MsgIssue defines the Msg/Issue request type.

Throws: - ErrInvalidAddress

  • `owner` is of invalid format.
  • `to` is of invalid format.

- ErrInvalidRequest

  • `name` is empty.
  • `name` exceeds the app-specific limit in length.
  • `symbol` is of invalid format.
  • `image_uri` exceeds the app-specific limit in length.
  • `meta` exceeds the app-specific limit in length.
  • `decimals` is lesser than 0 or greater than 18.
  • `amount` is not positive.

Signer: `owner`

func (*MsgIssue) Descriptor added in v0.45.0

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

func (MsgIssue) GetSigners added in v0.45.0

func (m MsgIssue) GetSigners() []sdk.AccAddress

GetSigners implements Msg.

func (*MsgIssue) Marshal added in v0.45.0

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

func (*MsgIssue) MarshalTo added in v0.45.0

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

func (*MsgIssue) MarshalToSizedBuffer added in v0.45.0

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

func (*MsgIssue) ProtoMessage added in v0.45.0

func (*MsgIssue) ProtoMessage()

func (*MsgIssue) Reset added in v0.45.0

func (m *MsgIssue) Reset()

func (*MsgIssue) Size added in v0.45.0

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

func (*MsgIssue) String added in v0.45.0

func (m *MsgIssue) String() string

func (*MsgIssue) Unmarshal added in v0.45.0

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

func (MsgIssue) ValidateBasic added in v0.45.0

func (m MsgIssue) ValidateBasic() error

ValidateBasic implements Msg.

func (*MsgIssue) XXX_DiscardUnknown added in v0.45.0

func (m *MsgIssue) XXX_DiscardUnknown()

func (*MsgIssue) XXX_Marshal added in v0.45.0

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

func (*MsgIssue) XXX_Merge added in v0.45.0

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

func (*MsgIssue) XXX_Size added in v0.45.0

func (m *MsgIssue) XXX_Size() int

func (*MsgIssue) XXX_Unmarshal added in v0.45.0

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

type MsgIssueResponse added in v0.45.0

type MsgIssueResponse struct {
	// id of the new token class.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}

MsgIssueResponse defines the Msg/Issue response type.

func (*MsgIssueResponse) Descriptor added in v0.45.0

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

func (*MsgIssueResponse) Marshal added in v0.45.0

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

func (*MsgIssueResponse) MarshalTo added in v0.45.0

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

func (*MsgIssueResponse) MarshalToSizedBuffer added in v0.45.0

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

func (*MsgIssueResponse) ProtoMessage added in v0.45.0

func (*MsgIssueResponse) ProtoMessage()

func (*MsgIssueResponse) Reset added in v0.45.0

func (m *MsgIssueResponse) Reset()

func (*MsgIssueResponse) Size added in v0.45.0

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

func (*MsgIssueResponse) String added in v0.45.0

func (m *MsgIssueResponse) String() string

func (*MsgIssueResponse) Unmarshal added in v0.45.0

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

func (*MsgIssueResponse) XXX_DiscardUnknown added in v0.45.0

func (m *MsgIssueResponse) XXX_DiscardUnknown()

func (*MsgIssueResponse) XXX_Marshal added in v0.45.0

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

func (*MsgIssueResponse) XXX_Merge added in v0.45.0

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

func (*MsgIssueResponse) XXX_Size added in v0.45.0

func (m *MsgIssueResponse) XXX_Size() int

func (*MsgIssueResponse) XXX_Unmarshal added in v0.45.0

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

type MsgMint

type MsgMint struct {
	// contract id associated with the token class.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// address which triggers the mint.
	From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	// recipient of the tokens.
	To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
	// number of tokens to mint.
	Amount github_com_line_lbm_sdk_types.Int `protobuf:"bytes,4,opt,name=amount,proto3,customtype=github.com/line/lbm-sdk/types.Int" json:"amount"`
}

MsgMint defines the Msg/Mint request type.

Throws: - ErrInvalidAddress

  • `from` is of invalid format.
  • `to` is of invalid format.

- ErrInvalidRequest

  • `contract_id` is of invalid format.
  • `amount` is not positive.

Signer: `from`

func (*MsgMint) Descriptor added in v0.45.0

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

func (MsgMint) GetSigners added in v0.45.0

func (m MsgMint) GetSigners() []sdk.AccAddress

GetSigners implements Msg

func (*MsgMint) Marshal added in v0.45.0

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

func (*MsgMint) MarshalTo added in v0.45.0

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

func (*MsgMint) MarshalToSizedBuffer added in v0.45.0

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

func (*MsgMint) ProtoMessage added in v0.45.0

func (*MsgMint) ProtoMessage()

func (*MsgMint) Reset added in v0.45.0

func (m *MsgMint) Reset()

func (*MsgMint) Size added in v0.45.0

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

func (*MsgMint) String added in v0.45.0

func (m *MsgMint) String() string

func (*MsgMint) Unmarshal added in v0.45.0

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

func (MsgMint) ValidateBasic added in v0.45.0

func (m MsgMint) ValidateBasic() error

ValidateBasic implements Msg.

func (*MsgMint) XXX_DiscardUnknown added in v0.45.0

func (m *MsgMint) XXX_DiscardUnknown()

func (*MsgMint) XXX_Marshal added in v0.45.0

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

func (*MsgMint) XXX_Merge added in v0.45.0

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

func (*MsgMint) XXX_Size added in v0.45.0

func (m *MsgMint) XXX_Size() int

func (*MsgMint) XXX_Unmarshal added in v0.45.0

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

type MsgMintResponse added in v0.45.0

type MsgMintResponse struct {
}

MsgMintResponse defines the Msg/Mint response type.

func (*MsgMintResponse) Descriptor added in v0.45.0

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

func (*MsgMintResponse) Marshal added in v0.45.0

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

func (*MsgMintResponse) MarshalTo added in v0.45.0

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

func (*MsgMintResponse) MarshalToSizedBuffer added in v0.45.0

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

func (*MsgMintResponse) ProtoMessage added in v0.45.0

func (*MsgMintResponse) ProtoMessage()

func (*MsgMintResponse) Reset added in v0.45.0

func (m *MsgMintResponse) Reset()

func (*MsgMintResponse) Size added in v0.45.0

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

func (*MsgMintResponse) String added in v0.45.0

func (m *MsgMintResponse) String() string

func (*MsgMintResponse) Unmarshal added in v0.45.0

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

func (*MsgMintResponse) XXX_DiscardUnknown added in v0.45.0

func (m *MsgMintResponse) XXX_DiscardUnknown()

func (*MsgMintResponse) XXX_Marshal added in v0.45.0

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

func (*MsgMintResponse) XXX_Merge added in v0.45.0

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

func (*MsgMintResponse) XXX_Size added in v0.45.0

func (m *MsgMintResponse) XXX_Size() int

func (*MsgMintResponse) XXX_Unmarshal added in v0.45.0

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

type MsgModify

type MsgModify struct {
	// contract id associated with the contract.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// the address of the grantee which must have modify permission.
	Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	// changes to apply.
	Changes []Pair `protobuf:"bytes,3,rep,name=changes,proto3" json:"changes"`
}

MsgModify defines the Msg/Modify request type.

Throws: - ErrInvalidAddress

  • `owner` is of invalid format.

- ErrInvalidRequest

  • `contract_id` is of invalid format.
  • `changes` has duplicate keys.
  • `changes` has a key which is not allowed to modify.
  • `changes` is empty.

Signer: `owner`

func (*MsgModify) Descriptor added in v0.45.0

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

func (MsgModify) GetSigners added in v0.45.0

func (m MsgModify) GetSigners() []sdk.AccAddress

GetSigners implements Msg

func (*MsgModify) Marshal added in v0.45.0

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

func (*MsgModify) MarshalTo added in v0.45.0

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

func (*MsgModify) MarshalToSizedBuffer added in v0.45.0

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

func (*MsgModify) ProtoMessage added in v0.45.0

func (*MsgModify) ProtoMessage()

func (*MsgModify) Reset added in v0.45.0

func (m *MsgModify) Reset()

func (*MsgModify) Size added in v0.45.0

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

func (*MsgModify) String added in v0.45.0

func (m *MsgModify) String() string

func (*MsgModify) Unmarshal added in v0.45.0

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

func (MsgModify) ValidateBasic added in v0.45.0

func (m MsgModify) ValidateBasic() error

ValidateBasic implements Msg.

func (*MsgModify) XXX_DiscardUnknown added in v0.45.0

func (m *MsgModify) XXX_DiscardUnknown()

func (*MsgModify) XXX_Marshal added in v0.45.0

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

func (*MsgModify) XXX_Merge added in v0.45.0

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

func (*MsgModify) XXX_Size added in v0.45.0

func (m *MsgModify) XXX_Size() int

func (*MsgModify) XXX_Unmarshal added in v0.45.0

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

type MsgModifyResponse added in v0.45.0

type MsgModifyResponse struct {
}

MsgModifyResponse defines the Msg/Modify response type.

func (*MsgModifyResponse) Descriptor added in v0.45.0

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

func (*MsgModifyResponse) Marshal added in v0.45.0

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

func (*MsgModifyResponse) MarshalTo added in v0.45.0

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

func (*MsgModifyResponse) MarshalToSizedBuffer added in v0.45.0

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

func (*MsgModifyResponse) ProtoMessage added in v0.45.0

func (*MsgModifyResponse) ProtoMessage()

func (*MsgModifyResponse) Reset added in v0.45.0

func (m *MsgModifyResponse) Reset()

func (*MsgModifyResponse) Size added in v0.45.0

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

func (*MsgModifyResponse) String added in v0.45.0

func (m *MsgModifyResponse) String() string

func (*MsgModifyResponse) Unmarshal added in v0.45.0

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

func (*MsgModifyResponse) XXX_DiscardUnknown added in v0.45.0

func (m *MsgModifyResponse) XXX_DiscardUnknown()

func (*MsgModifyResponse) XXX_Marshal added in v0.45.0

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

func (*MsgModifyResponse) XXX_Merge added in v0.45.0

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

func (*MsgModifyResponse) XXX_Size added in v0.45.0

func (m *MsgModifyResponse) XXX_Size() int

func (*MsgModifyResponse) XXX_Unmarshal added in v0.45.0

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

type MsgRevokeOperator added in v0.46.0

type MsgRevokeOperator struct {
	// contract id associated with the token class.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// address of a holder which revokes the `operator` address as an operator.
	Holder string `protobuf:"bytes,2,opt,name=holder,proto3" json:"holder,omitempty"`
	// address to rescind as an operator for `holder`.
	Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"`
}

MsgRevokeOperator defines the Msg/RevokeOperator request type.

Throws: - ErrInvalidAddress

  • `holder` is of invalid format.
  • `operator` is of invalid format.

- ErrInvalidRequest

  • `contract_id` is of invalid format.

Signer: `holder`

Since: 0.46.0 (finschia)

func (*MsgRevokeOperator) Descriptor added in v0.46.0

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

func (MsgRevokeOperator) GetSigners added in v0.46.0

func (m MsgRevokeOperator) GetSigners() []sdk.AccAddress

GetSigners implements Msg.

func (*MsgRevokeOperator) Marshal added in v0.46.0

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

func (*MsgRevokeOperator) MarshalTo added in v0.46.0

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

func (*MsgRevokeOperator) MarshalToSizedBuffer added in v0.46.0

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

func (*MsgRevokeOperator) ProtoMessage added in v0.46.0

func (*MsgRevokeOperator) ProtoMessage()

func (*MsgRevokeOperator) Reset added in v0.46.0

func (m *MsgRevokeOperator) Reset()

func (*MsgRevokeOperator) Size added in v0.46.0

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

func (*MsgRevokeOperator) String added in v0.46.0

func (m *MsgRevokeOperator) String() string

func (*MsgRevokeOperator) Unmarshal added in v0.46.0

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

func (MsgRevokeOperator) ValidateBasic added in v0.46.0

func (m MsgRevokeOperator) ValidateBasic() error

ValidateBasic implements Msg.

func (*MsgRevokeOperator) XXX_DiscardUnknown added in v0.46.0

func (m *MsgRevokeOperator) XXX_DiscardUnknown()

func (*MsgRevokeOperator) XXX_Marshal added in v0.46.0

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

func (*MsgRevokeOperator) XXX_Merge added in v0.46.0

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

func (*MsgRevokeOperator) XXX_Size added in v0.46.0

func (m *MsgRevokeOperator) XXX_Size() int

func (*MsgRevokeOperator) XXX_Unmarshal added in v0.46.0

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

type MsgRevokeOperatorResponse added in v0.46.0

type MsgRevokeOperatorResponse struct {
}

MsgRevokeOperatorResponse defines the Msg/RevokeOperator response type.

Since: 0.46.0 (finschia)

func (*MsgRevokeOperatorResponse) Descriptor added in v0.46.0

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

func (*MsgRevokeOperatorResponse) Marshal added in v0.46.0

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

func (*MsgRevokeOperatorResponse) MarshalTo added in v0.46.0

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

func (*MsgRevokeOperatorResponse) MarshalToSizedBuffer added in v0.46.0

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

func (*MsgRevokeOperatorResponse) ProtoMessage added in v0.46.0

func (*MsgRevokeOperatorResponse) ProtoMessage()

func (*MsgRevokeOperatorResponse) Reset added in v0.46.0

func (m *MsgRevokeOperatorResponse) Reset()

func (*MsgRevokeOperatorResponse) Size added in v0.46.0

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

func (*MsgRevokeOperatorResponse) String added in v0.46.0

func (m *MsgRevokeOperatorResponse) String() string

func (*MsgRevokeOperatorResponse) Unmarshal added in v0.46.0

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

func (*MsgRevokeOperatorResponse) XXX_DiscardUnknown added in v0.46.0

func (m *MsgRevokeOperatorResponse) XXX_DiscardUnknown()

func (*MsgRevokeOperatorResponse) XXX_Marshal added in v0.46.0

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

func (*MsgRevokeOperatorResponse) XXX_Merge added in v0.46.0

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

func (*MsgRevokeOperatorResponse) XXX_Size added in v0.46.0

func (m *MsgRevokeOperatorResponse) XXX_Size() int

func (*MsgRevokeOperatorResponse) XXX_Unmarshal added in v0.46.0

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

type MsgRevokePermission added in v0.46.0

type MsgRevokePermission struct {
	// contract id associated with the token class.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// address of the grantee which abandons the permission.
	From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	// permission on the token class.
	Permission string `protobuf:"bytes,3,opt,name=permission,proto3" json:"permission,omitempty"`
}

MsgRevokePermission defines the Msg/RevokePermission request type.

Throws: - ErrInvalidAddress

  • `grantee` is of invalid format.

- ErrInvalidRequest

  • `contract_id` is of invalid format.
  • `permission` is not a valid permission.

Signer: `grantee`

func (*MsgRevokePermission) Descriptor added in v0.46.0

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

func (MsgRevokePermission) GetSigners added in v0.46.0

func (m MsgRevokePermission) GetSigners() []sdk.AccAddress

GetSigners implements Msg

func (*MsgRevokePermission) Marshal added in v0.46.0

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

func (*MsgRevokePermission) MarshalTo added in v0.46.0

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

func (*MsgRevokePermission) MarshalToSizedBuffer added in v0.46.0

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

func (*MsgRevokePermission) ProtoMessage added in v0.46.0

func (*MsgRevokePermission) ProtoMessage()

func (*MsgRevokePermission) Reset added in v0.46.0

func (m *MsgRevokePermission) Reset()

func (*MsgRevokePermission) Size added in v0.46.0

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

func (*MsgRevokePermission) String added in v0.46.0

func (m *MsgRevokePermission) String() string

func (*MsgRevokePermission) Unmarshal added in v0.46.0

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

func (MsgRevokePermission) ValidateBasic added in v0.46.0

func (m MsgRevokePermission) ValidateBasic() error

ValidateBasic implements Msg.

func (*MsgRevokePermission) XXX_DiscardUnknown added in v0.46.0

func (m *MsgRevokePermission) XXX_DiscardUnknown()

func (*MsgRevokePermission) XXX_Marshal added in v0.46.0

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

func (*MsgRevokePermission) XXX_Merge added in v0.46.0

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

func (*MsgRevokePermission) XXX_Size added in v0.46.0

func (m *MsgRevokePermission) XXX_Size() int

func (*MsgRevokePermission) XXX_Unmarshal added in v0.46.0

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

type MsgRevokePermissionResponse added in v0.46.0

type MsgRevokePermissionResponse struct {
}

MsgRevokePermissionResponse defines the Msg/RevokePermission response type.

func (*MsgRevokePermissionResponse) Descriptor added in v0.46.0

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

func (*MsgRevokePermissionResponse) Marshal added in v0.46.0

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

func (*MsgRevokePermissionResponse) MarshalTo added in v0.46.0

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

func (*MsgRevokePermissionResponse) MarshalToSizedBuffer added in v0.46.0

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

func (*MsgRevokePermissionResponse) ProtoMessage added in v0.46.0

func (*MsgRevokePermissionResponse) ProtoMessage()

func (*MsgRevokePermissionResponse) Reset added in v0.46.0

func (m *MsgRevokePermissionResponse) Reset()

func (*MsgRevokePermissionResponse) Size added in v0.46.0

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

func (*MsgRevokePermissionResponse) String added in v0.46.0

func (m *MsgRevokePermissionResponse) String() string

func (*MsgRevokePermissionResponse) Unmarshal added in v0.46.0

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

func (*MsgRevokePermissionResponse) XXX_DiscardUnknown added in v0.46.0

func (m *MsgRevokePermissionResponse) XXX_DiscardUnknown()

func (*MsgRevokePermissionResponse) XXX_Marshal added in v0.46.0

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

func (*MsgRevokePermissionResponse) XXX_Merge added in v0.46.0

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

func (*MsgRevokePermissionResponse) XXX_Size added in v0.46.0

func (m *MsgRevokePermissionResponse) XXX_Size() int

func (*MsgRevokePermissionResponse) XXX_Unmarshal added in v0.46.0

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

type MsgSend added in v0.46.0

type MsgSend struct {
	// contract id associated with the token class.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// approver whose tokens are being sent.
	From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	// recipient of the tokens.
	To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
	// number of tokens to send.
	Amount github_com_line_lbm_sdk_types.Int `protobuf:"bytes,4,opt,name=amount,proto3,customtype=github.com/line/lbm-sdk/types.Int" json:"amount"`
}

MsgSend defines the Msg/Send request type.

Throws: - ErrInvalidAddress

  • `from` is of invalid format.
  • `to` is of invalid format.

- ErrInvalidRequest

  • `contract_id` is of invalid format.
  • `amount` is not positive.

Signer: `from`

func (*MsgSend) Descriptor added in v0.46.0

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

func (MsgSend) GetSigners added in v0.46.0

func (m MsgSend) GetSigners() []sdk.AccAddress

GetSigners implements Msg

func (*MsgSend) Marshal added in v0.46.0

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

func (*MsgSend) MarshalTo added in v0.46.0

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

func (*MsgSend) MarshalToSizedBuffer added in v0.46.0

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

func (*MsgSend) ProtoMessage added in v0.46.0

func (*MsgSend) ProtoMessage()

func (*MsgSend) Reset added in v0.46.0

func (m *MsgSend) Reset()

func (*MsgSend) Size added in v0.46.0

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

func (*MsgSend) String added in v0.46.0

func (m *MsgSend) String() string

func (*MsgSend) Unmarshal added in v0.46.0

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

func (MsgSend) ValidateBasic added in v0.46.0

func (m MsgSend) ValidateBasic() error

ValidateBasic implements Msg.

func (*MsgSend) XXX_DiscardUnknown added in v0.46.0

func (m *MsgSend) XXX_DiscardUnknown()

func (*MsgSend) XXX_Marshal added in v0.46.0

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

func (*MsgSend) XXX_Merge added in v0.46.0

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

func (*MsgSend) XXX_Size added in v0.46.0

func (m *MsgSend) XXX_Size() int

func (*MsgSend) XXX_Unmarshal added in v0.46.0

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

type MsgSendResponse added in v0.46.0

type MsgSendResponse struct {
}

MsgSendResponse defines the Msg/Send response type.

func (*MsgSendResponse) Descriptor added in v0.46.0

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

func (*MsgSendResponse) Marshal added in v0.46.0

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

func (*MsgSendResponse) MarshalTo added in v0.46.0

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

func (*MsgSendResponse) MarshalToSizedBuffer added in v0.46.0

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

func (*MsgSendResponse) ProtoMessage added in v0.46.0

func (*MsgSendResponse) ProtoMessage()

func (*MsgSendResponse) Reset added in v0.46.0

func (m *MsgSendResponse) Reset()

func (*MsgSendResponse) Size added in v0.46.0

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

func (*MsgSendResponse) String added in v0.46.0

func (m *MsgSendResponse) String() string

func (*MsgSendResponse) Unmarshal added in v0.46.0

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

func (*MsgSendResponse) XXX_DiscardUnknown added in v0.46.0

func (m *MsgSendResponse) XXX_DiscardUnknown()

func (*MsgSendResponse) XXX_Marshal added in v0.46.0

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

func (*MsgSendResponse) XXX_Merge added in v0.46.0

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

func (*MsgSendResponse) XXX_Size added in v0.46.0

func (m *MsgSendResponse) XXX_Size() int

func (*MsgSendResponse) XXX_Unmarshal added in v0.46.0

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

type MsgServer added in v0.45.0

type MsgServer interface {
	// Send defines a method to send tokens from one account to another account.
	// Fires:
	// - EventSent
	// - transfer (deprecated, not typed)
	// Throws:
	// - ErrInvalidRequest:
	//   - the balance of `from` does not have enough tokens to spend.
	Send(context.Context, *MsgSend) (*MsgSendResponse, error)
	// TransferFrom defines a method to send tokens from one account to another account by the proxy.
	// Fires:
	// - EventSent
	// - transfer_from (deprecated, not typed)
	// Throws:
	// - ErrUnauthorized:
	//   - the approver has not authorized the proxy.
	// - ErrInvalidRequest:
	//   - the balance of `from` does not have enough tokens to spend.
	// Note: the approval has no value of limit (not ERC20 compliant).
	TransferFrom(context.Context, *MsgTransferFrom) (*MsgTransferFromResponse, error)
	// RevokeOperator revoke the authorization of the operator to send the holder's tokens.
	// Fires:
	// - EventRevokedOperator
	// Throws:
	// - ErrNotFound:
	//   - there is no token class of `contract_id`.
	//   - there is no authorization by `holder` to `operator`.
	// Note: it introduces breaking change, because the legacy clients cannot track this revocation.
	// Since: 0.46.0 (finschia)
	RevokeOperator(context.Context, *MsgRevokeOperator) (*MsgRevokeOperatorResponse, error)
	// Approve allows one to send tokens on behalf of the approver.
	// Fires:
	// - EventAuthorizedOperator
	// - approve_token (deprecated, not typed)
	// Throws:
	// - ErrNotFound:
	//   - there is no token class of `contract_id`.
	// - ErrInvalidRequest:
	//   - `approver` has already authorized `proxy`.
	Approve(context.Context, *MsgApprove) (*MsgApproveResponse, error)
	// Issue defines a method to create a class of token.
	// it grants `mint`, `burn` and `modify` permissions on the token class to its creator (see also `mintable`).
	// Fires:
	// - EventIssue
	// - EventMinted
	// - issue (deprecated, not typed)
	Issue(context.Context, *MsgIssue) (*MsgIssueResponse, error)
	// GrantPermission allows one to mint or burn tokens or modify a token metadata.
	// Fires:
	// - EventGrant
	// - grant_perm (deprecated, not typed)
	// Throws:
	// - ErrUnauthorized
	//   - `granter` does not have `permission`.
	// - ErrInvalidRequest
	//   - `grantee` already has `permission`.
	GrantPermission(context.Context, *MsgGrantPermission) (*MsgGrantPermissionResponse, error)
	// RevokePermission abandons a permission.
	// Fires:
	// - EventAbandon
	// - revoke_perm (deprecated, not typed)
	// Throws:
	// - ErrUnauthorized
	//   - `grantee` does not have `permission`.
	RevokePermission(context.Context, *MsgRevokePermission) (*MsgRevokePermissionResponse, error)
	// Mint defines a method to mint tokens.
	// Fires:
	// - EventMinted
	// - mint (deprecated, not typed)
	// Throws:
	// - ErrUnauthorized
	//   - `from` does not have `mint` permission.
	Mint(context.Context, *MsgMint) (*MsgMintResponse, error)
	// Burn defines a method to burn tokens.
	// Fires:
	// - EventBurned
	// - burn (deprecated, not typed)
	// Throws:
	// - ErrUnauthorized
	//   - `from` does not have `burn` permission.
	// - ErrInvalidRequest:
	//   - the balance of `from` does not have enough tokens to burn.
	Burn(context.Context, *MsgBurn) (*MsgBurnResponse, error)
	// BurnFrom defines a method to burn tokens by the proxy.
	// Fires:
	// - EventBurned
	// - burn_from (deprecated, not typed)
	// Throws:
	// - ErrUnauthorized
	//   - `proxy` does not have `burn` permission.
	//   - the approver has not authorized `proxy`.
	// - ErrInvalidRequest:
	//   - the balance of `from` does not have enough tokens to burn.
	BurnFrom(context.Context, *MsgBurnFrom) (*MsgBurnFromResponse, error)
	// Modify defines a method to modify a token class.
	// Fires:
	// - EventModified
	// - modify_token (deprecated, not typed)
	// Throws:
	// - ErrUnauthorized
	//   - the proxy does not have `modify` permission.
	// - ErrNotFound
	//   - there is no token class of `contract_id`.
	Modify(context.Context, *MsgModify) (*MsgModifyResponse, error)
}

MsgServer is the server API for Msg service.

type MsgTransferFrom added in v0.45.0

type MsgTransferFrom struct {
	// contract id associated with the token class.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// the address of the proxy.
	Proxy string `protobuf:"bytes,2,opt,name=proxy,proto3" json:"proxy,omitempty"`
	// the address which the transfer is from.
	From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"`
	// the address which the transfer is to.
	To string `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"`
	// the amount of the transfer.
	Amount github_com_line_lbm_sdk_types.Int `protobuf:"bytes,5,opt,name=amount,proto3,customtype=github.com/line/lbm-sdk/types.Int" json:"amount"`
}

MsgTransferFrom defines the Msg/TransferFrom request type. Throws: - ErrInvalidAddress

  • `proxy` is of invalid format.
  • `from` is of invalid format.
  • `to` is of invalid format.

- ErrInvalidRequest

  • `contract_id` is of invalid format.
  • `amount` is not positive.

Signer: `proxy`

func (*MsgTransferFrom) Descriptor added in v0.45.0

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

func (MsgTransferFrom) GetSigners added in v0.45.0

func (m MsgTransferFrom) GetSigners() []sdk.AccAddress

GetSigners implements Msg

func (*MsgTransferFrom) Marshal added in v0.45.0

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

func (*MsgTransferFrom) MarshalTo added in v0.45.0

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

func (*MsgTransferFrom) MarshalToSizedBuffer added in v0.45.0

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

func (*MsgTransferFrom) ProtoMessage added in v0.45.0

func (*MsgTransferFrom) ProtoMessage()

func (*MsgTransferFrom) Reset added in v0.45.0

func (m *MsgTransferFrom) Reset()

func (*MsgTransferFrom) Size added in v0.45.0

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

func (*MsgTransferFrom) String added in v0.45.0

func (m *MsgTransferFrom) String() string

func (*MsgTransferFrom) Unmarshal added in v0.45.0

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

func (MsgTransferFrom) ValidateBasic added in v0.45.0

func (m MsgTransferFrom) ValidateBasic() error

ValidateBasic implements Msg.

func (*MsgTransferFrom) XXX_DiscardUnknown added in v0.45.0

func (m *MsgTransferFrom) XXX_DiscardUnknown()

func (*MsgTransferFrom) XXX_Marshal added in v0.45.0

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

func (*MsgTransferFrom) XXX_Merge added in v0.45.0

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

func (*MsgTransferFrom) XXX_Size added in v0.45.0

func (m *MsgTransferFrom) XXX_Size() int

func (*MsgTransferFrom) XXX_Unmarshal added in v0.45.0

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

type MsgTransferFromResponse added in v0.45.0

type MsgTransferFromResponse struct {
}

MsgTransferFromResponse defines the Msg/TransferFrom response type.

func (*MsgTransferFromResponse) Descriptor added in v0.45.0

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

func (*MsgTransferFromResponse) Marshal added in v0.45.0

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

func (*MsgTransferFromResponse) MarshalTo added in v0.45.0

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

func (*MsgTransferFromResponse) MarshalToSizedBuffer added in v0.45.0

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

func (*MsgTransferFromResponse) ProtoMessage added in v0.45.0

func (*MsgTransferFromResponse) ProtoMessage()

func (*MsgTransferFromResponse) Reset added in v0.45.0

func (m *MsgTransferFromResponse) Reset()

func (*MsgTransferFromResponse) Size added in v0.45.0

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

func (*MsgTransferFromResponse) String added in v0.45.0

func (m *MsgTransferFromResponse) String() string

func (*MsgTransferFromResponse) Unmarshal added in v0.45.0

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

func (*MsgTransferFromResponse) XXX_DiscardUnknown added in v0.45.0

func (m *MsgTransferFromResponse) XXX_DiscardUnknown()

func (*MsgTransferFromResponse) XXX_Marshal added in v0.45.0

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

func (*MsgTransferFromResponse) XXX_Merge added in v0.45.0

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

func (*MsgTransferFromResponse) XXX_Size added in v0.45.0

func (m *MsgTransferFromResponse) XXX_Size() int

func (*MsgTransferFromResponse) XXX_Unmarshal added in v0.45.0

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

type Pair added in v0.45.0

type Pair struct {
	Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}

Pair defines a key-value pair.

func (*Pair) Descriptor added in v0.45.0

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

func (*Pair) Marshal added in v0.45.0

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

func (*Pair) MarshalTo added in v0.45.0

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

func (*Pair) MarshalToSizedBuffer added in v0.45.0

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

func (*Pair) ProtoMessage added in v0.45.0

func (*Pair) ProtoMessage()

func (*Pair) Reset added in v0.45.0

func (m *Pair) Reset()

func (*Pair) Size added in v0.45.0

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

func (*Pair) String added in v0.45.0

func (m *Pair) String() string

func (*Pair) Unmarshal added in v0.45.0

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

func (*Pair) XXX_DiscardUnknown added in v0.45.0

func (m *Pair) XXX_DiscardUnknown()

func (*Pair) XXX_Marshal added in v0.45.0

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

func (*Pair) XXX_Merge added in v0.45.0

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

func (*Pair) XXX_Size added in v0.45.0

func (m *Pair) XXX_Size() int

func (*Pair) XXX_Unmarshal added in v0.45.0

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

type Params added in v0.45.0

type Params struct {
}

Params defines the parameters for the token module.

func (*Params) Descriptor added in v0.45.0

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

func (*Params) Marshal added in v0.45.0

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

func (*Params) MarshalTo added in v0.45.0

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

func (*Params) MarshalToSizedBuffer added in v0.45.0

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

func (*Params) ProtoMessage added in v0.45.0

func (*Params) ProtoMessage()

func (*Params) Reset added in v0.45.0

func (m *Params) Reset()

func (*Params) Size added in v0.45.0

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

func (*Params) String added in v0.45.0

func (m *Params) String() string

func (*Params) Unmarshal added in v0.45.0

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

func (*Params) XXX_DiscardUnknown added in v0.45.0

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal added in v0.45.0

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

func (*Params) XXX_Merge added in v0.45.0

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

func (*Params) XXX_Size added in v0.45.0

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal added in v0.45.0

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

type Permission

type Permission int32

Permission enumerates the valid permissions on a token class.

const (
	// unspecified defines the default permission which is invalid.
	PermissionUnspecified Permission = 0
	// PERMISSION_MODIFY defines a permission to modify a contract.
	PermissionModify Permission = 1
	// PERMISSION_MINT defines a permission to mint tokens of a contract.
	PermissionMint Permission = 2
	// PERMISSION_BURN defines a permission to burn tokens of a contract.
	PermissionBurn Permission = 3
)

func (Permission) EnumDescriptor added in v0.46.0

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

func (Permission) String added in v0.46.0

func (x Permission) String() string

type QueryApprovedRequest added in v0.46.0

type QueryApprovedRequest struct {
	// contract id associated with the token class.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// address of the proxy which the authorization is granted to.
	Proxy string `protobuf:"bytes,2,opt,name=proxy,proto3" json:"proxy,omitempty"`
	// approver is the address of the approver of the authorization.
	Approver string `protobuf:"bytes,3,opt,name=approver,proto3" json:"approver,omitempty"`
}

QueryApprovedRequest is the request type for the Query/Approved RPC method

func (*QueryApprovedRequest) Descriptor added in v0.46.0

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

func (*QueryApprovedRequest) GetApprover added in v0.46.0

func (m *QueryApprovedRequest) GetApprover() string

func (*QueryApprovedRequest) GetContractId added in v0.46.0

func (m *QueryApprovedRequest) GetContractId() string

func (*QueryApprovedRequest) GetProxy added in v0.46.0

func (m *QueryApprovedRequest) GetProxy() string

func (*QueryApprovedRequest) Marshal added in v0.46.0

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

func (*QueryApprovedRequest) MarshalTo added in v0.46.0

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

func (*QueryApprovedRequest) MarshalToSizedBuffer added in v0.46.0

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

func (*QueryApprovedRequest) ProtoMessage added in v0.46.0

func (*QueryApprovedRequest) ProtoMessage()

func (*QueryApprovedRequest) Reset added in v0.46.0

func (m *QueryApprovedRequest) Reset()

func (*QueryApprovedRequest) Size added in v0.46.0

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

func (*QueryApprovedRequest) String added in v0.46.0

func (m *QueryApprovedRequest) String() string

func (*QueryApprovedRequest) Unmarshal added in v0.46.0

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

func (*QueryApprovedRequest) XXX_DiscardUnknown added in v0.46.0

func (m *QueryApprovedRequest) XXX_DiscardUnknown()

func (*QueryApprovedRequest) XXX_Marshal added in v0.46.0

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

func (*QueryApprovedRequest) XXX_Merge added in v0.46.0

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

func (*QueryApprovedRequest) XXX_Size added in v0.46.0

func (m *QueryApprovedRequest) XXX_Size() int

func (*QueryApprovedRequest) XXX_Unmarshal added in v0.46.0

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

type QueryApprovedResponse added in v0.46.0

type QueryApprovedResponse struct {
	Approved bool `protobuf:"varint,1,opt,name=approved,proto3" json:"approved,omitempty"`
}

QueryApprovedResponse is the response type for the Query/Approved RPC method

func (*QueryApprovedResponse) Descriptor added in v0.46.0

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

func (*QueryApprovedResponse) GetApproved added in v0.46.0

func (m *QueryApprovedResponse) GetApproved() bool

func (*QueryApprovedResponse) Marshal added in v0.46.0

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

func (*QueryApprovedResponse) MarshalTo added in v0.46.0

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

func (*QueryApprovedResponse) MarshalToSizedBuffer added in v0.46.0

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

func (*QueryApprovedResponse) ProtoMessage added in v0.46.0

func (*QueryApprovedResponse) ProtoMessage()

func (*QueryApprovedResponse) Reset added in v0.46.0

func (m *QueryApprovedResponse) Reset()

func (*QueryApprovedResponse) Size added in v0.46.0

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

func (*QueryApprovedResponse) String added in v0.46.0

func (m *QueryApprovedResponse) String() string

func (*QueryApprovedResponse) Unmarshal added in v0.46.0

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

func (*QueryApprovedResponse) XXX_DiscardUnknown added in v0.46.0

func (m *QueryApprovedResponse) XXX_DiscardUnknown()

func (*QueryApprovedResponse) XXX_Marshal added in v0.46.0

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

func (*QueryApprovedResponse) XXX_Merge added in v0.46.0

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

func (*QueryApprovedResponse) XXX_Size added in v0.46.0

func (m *QueryApprovedResponse) XXX_Size() int

func (*QueryApprovedResponse) XXX_Unmarshal added in v0.46.0

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

type QueryApproversRequest added in v0.46.0

type QueryApproversRequest struct {
	// contract id associated with the token class.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// address of the proxy which the authorization is granted to.
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryApproversRequest is the request type for the Query/Approvers RPC method

func (*QueryApproversRequest) Descriptor added in v0.46.0

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

func (*QueryApproversRequest) GetAddress added in v0.46.0

func (m *QueryApproversRequest) GetAddress() string

func (*QueryApproversRequest) GetContractId added in v0.46.0

func (m *QueryApproversRequest) GetContractId() string

func (*QueryApproversRequest) GetPagination added in v0.46.0

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

func (*QueryApproversRequest) Marshal added in v0.46.0

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

func (*QueryApproversRequest) MarshalTo added in v0.46.0

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

func (*QueryApproversRequest) MarshalToSizedBuffer added in v0.46.0

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

func (*QueryApproversRequest) ProtoMessage added in v0.46.0

func (*QueryApproversRequest) ProtoMessage()

func (*QueryApproversRequest) Reset added in v0.46.0

func (m *QueryApproversRequest) Reset()

func (*QueryApproversRequest) Size added in v0.46.0

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

func (*QueryApproversRequest) String added in v0.46.0

func (m *QueryApproversRequest) String() string

func (*QueryApproversRequest) Unmarshal added in v0.46.0

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

func (*QueryApproversRequest) XXX_DiscardUnknown added in v0.46.0

func (m *QueryApproversRequest) XXX_DiscardUnknown()

func (*QueryApproversRequest) XXX_Marshal added in v0.46.0

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

func (*QueryApproversRequest) XXX_Merge added in v0.46.0

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

func (*QueryApproversRequest) XXX_Size added in v0.46.0

func (m *QueryApproversRequest) XXX_Size() int

func (*QueryApproversRequest) XXX_Unmarshal added in v0.46.0

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

type QueryApproversResponse added in v0.46.0

type QueryApproversResponse struct {
	// all the authorizations on the proxy.
	Approvers []string `protobuf:"bytes,1,rep,name=approvers,proto3" json:"approvers,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryApproversResponse is the response type for the Query/Approvers RPC method

func (*QueryApproversResponse) Descriptor added in v0.46.0

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

func (*QueryApproversResponse) GetApprovers added in v0.46.0

func (m *QueryApproversResponse) GetApprovers() []string

func (*QueryApproversResponse) GetPagination added in v0.46.0

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

func (*QueryApproversResponse) Marshal added in v0.46.0

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

func (*QueryApproversResponse) MarshalTo added in v0.46.0

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

func (*QueryApproversResponse) MarshalToSizedBuffer added in v0.46.0

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

func (*QueryApproversResponse) ProtoMessage added in v0.46.0

func (*QueryApproversResponse) ProtoMessage()

func (*QueryApproversResponse) Reset added in v0.46.0

func (m *QueryApproversResponse) Reset()

func (*QueryApproversResponse) Size added in v0.46.0

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

func (*QueryApproversResponse) String added in v0.46.0

func (m *QueryApproversResponse) String() string

func (*QueryApproversResponse) Unmarshal added in v0.46.0

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

func (*QueryApproversResponse) XXX_DiscardUnknown added in v0.46.0

func (m *QueryApproversResponse) XXX_DiscardUnknown()

func (*QueryApproversResponse) XXX_Marshal added in v0.46.0

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

func (*QueryApproversResponse) XXX_Merge added in v0.46.0

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

func (*QueryApproversResponse) XXX_Size added in v0.46.0

func (m *QueryApproversResponse) XXX_Size() int

func (*QueryApproversResponse) XXX_Unmarshal added in v0.46.0

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

type QueryBalanceRequest added in v0.46.0

type QueryBalanceRequest struct {
	// contract id associated with the token class.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// address is the address to query balance for.
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
}

QueryBalanceRequest is the request type for the Query/Balance RPC method

func (*QueryBalanceRequest) Descriptor added in v0.46.0

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

func (*QueryBalanceRequest) GetAddress added in v0.46.0

func (m *QueryBalanceRequest) GetAddress() string

func (*QueryBalanceRequest) GetContractId added in v0.46.0

func (m *QueryBalanceRequest) GetContractId() string

func (*QueryBalanceRequest) Marshal added in v0.46.0

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

func (*QueryBalanceRequest) MarshalTo added in v0.46.0

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

func (*QueryBalanceRequest) MarshalToSizedBuffer added in v0.46.0

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

func (*QueryBalanceRequest) ProtoMessage added in v0.46.0

func (*QueryBalanceRequest) ProtoMessage()

func (*QueryBalanceRequest) Reset added in v0.46.0

func (m *QueryBalanceRequest) Reset()

func (*QueryBalanceRequest) Size added in v0.46.0

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

func (*QueryBalanceRequest) String added in v0.46.0

func (m *QueryBalanceRequest) String() string

func (*QueryBalanceRequest) Unmarshal added in v0.46.0

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

func (*QueryBalanceRequest) XXX_DiscardUnknown added in v0.46.0

func (m *QueryBalanceRequest) XXX_DiscardUnknown()

func (*QueryBalanceRequest) XXX_Marshal added in v0.46.0

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

func (*QueryBalanceRequest) XXX_Merge added in v0.46.0

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

func (*QueryBalanceRequest) XXX_Size added in v0.46.0

func (m *QueryBalanceRequest) XXX_Size() int

func (*QueryBalanceRequest) XXX_Unmarshal added in v0.46.0

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

type QueryBalanceResponse added in v0.46.0

type QueryBalanceResponse struct {
	// the balance of the tokens.
	Amount github_com_line_lbm_sdk_types.Int `protobuf:"bytes,1,opt,name=amount,proto3,customtype=github.com/line/lbm-sdk/types.Int" json:"amount"`
}

QueryBalanceResponse is the response type for the Query/Balance RPC method

func (*QueryBalanceResponse) Descriptor added in v0.46.0

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

func (*QueryBalanceResponse) Marshal added in v0.46.0

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

func (*QueryBalanceResponse) MarshalTo added in v0.46.0

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

func (*QueryBalanceResponse) MarshalToSizedBuffer added in v0.46.0

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

func (*QueryBalanceResponse) ProtoMessage added in v0.46.0

func (*QueryBalanceResponse) ProtoMessage()

func (*QueryBalanceResponse) Reset added in v0.46.0

func (m *QueryBalanceResponse) Reset()

func (*QueryBalanceResponse) Size added in v0.46.0

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

func (*QueryBalanceResponse) String added in v0.46.0

func (m *QueryBalanceResponse) String() string

func (*QueryBalanceResponse) Unmarshal added in v0.46.0

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

func (*QueryBalanceResponse) XXX_DiscardUnknown added in v0.46.0

func (m *QueryBalanceResponse) XXX_DiscardUnknown()

func (*QueryBalanceResponse) XXX_Marshal added in v0.46.0

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

func (*QueryBalanceResponse) XXX_Merge added in v0.46.0

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

func (*QueryBalanceResponse) XXX_Size added in v0.46.0

func (m *QueryBalanceResponse) XXX_Size() int

func (*QueryBalanceResponse) XXX_Unmarshal added in v0.46.0

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

type QueryBurntRequest added in v0.46.0

type QueryBurntRequest struct {
	// contract id associated with the token class.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
}

QueryBurntRequest is the request type for the Query/Burnt RPC method

func (*QueryBurntRequest) Descriptor added in v0.46.0

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

func (*QueryBurntRequest) GetContractId added in v0.46.0

func (m *QueryBurntRequest) GetContractId() string

func (*QueryBurntRequest) Marshal added in v0.46.0

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

func (*QueryBurntRequest) MarshalTo added in v0.46.0

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

func (*QueryBurntRequest) MarshalToSizedBuffer added in v0.46.0

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

func (*QueryBurntRequest) ProtoMessage added in v0.46.0

func (*QueryBurntRequest) ProtoMessage()

func (*QueryBurntRequest) Reset added in v0.46.0

func (m *QueryBurntRequest) Reset()

func (*QueryBurntRequest) Size added in v0.46.0

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

func (*QueryBurntRequest) String added in v0.46.0

func (m *QueryBurntRequest) String() string

func (*QueryBurntRequest) Unmarshal added in v0.46.0

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

func (*QueryBurntRequest) XXX_DiscardUnknown added in v0.46.0

func (m *QueryBurntRequest) XXX_DiscardUnknown()

func (*QueryBurntRequest) XXX_Marshal added in v0.46.0

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

func (*QueryBurntRequest) XXX_Merge added in v0.46.0

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

func (*QueryBurntRequest) XXX_Size added in v0.46.0

func (m *QueryBurntRequest) XXX_Size() int

func (*QueryBurntRequest) XXX_Unmarshal added in v0.46.0

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

type QueryBurntResponse added in v0.46.0

type QueryBurntResponse struct {
	// the amount of the burnt tokens.
	Amount github_com_line_lbm_sdk_types.Int `protobuf:"bytes,1,opt,name=amount,proto3,customtype=github.com/line/lbm-sdk/types.Int" json:"amount"`
}

QueryBurntResponse is the response type for the Query/Burnt RPC method

func (*QueryBurntResponse) Descriptor added in v0.46.0

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

func (*QueryBurntResponse) Marshal added in v0.46.0

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

func (*QueryBurntResponse) MarshalTo added in v0.46.0

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

func (*QueryBurntResponse) MarshalToSizedBuffer added in v0.46.0

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

func (*QueryBurntResponse) ProtoMessage added in v0.46.0

func (*QueryBurntResponse) ProtoMessage()

func (*QueryBurntResponse) Reset added in v0.46.0

func (m *QueryBurntResponse) Reset()

func (*QueryBurntResponse) Size added in v0.46.0

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

func (*QueryBurntResponse) String added in v0.46.0

func (m *QueryBurntResponse) String() string

func (*QueryBurntResponse) Unmarshal added in v0.46.0

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

func (*QueryBurntResponse) XXX_DiscardUnknown added in v0.46.0

func (m *QueryBurntResponse) XXX_DiscardUnknown()

func (*QueryBurntResponse) XXX_Marshal added in v0.46.0

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

func (*QueryBurntResponse) XXX_Merge added in v0.46.0

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

func (*QueryBurntResponse) XXX_Size added in v0.46.0

func (m *QueryBurntResponse) XXX_Size() int

func (*QueryBurntResponse) XXX_Unmarshal added in v0.46.0

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

type QueryClient added in v0.45.0

type QueryClient interface {
	// Balance queries the number of tokens of a given contract owned by the address.
	// Throws:
	// - ErrInvalidRequest
	//   - `contract_id` is of invalid format.
	// - ErrInvalidAddress
	//   - `address` is of invalid format.
	Balance(ctx context.Context, in *QueryBalanceRequest, opts ...grpc.CallOption) (*QueryBalanceResponse, error)
	// Supply queries the number of tokens from the given contract id.
	// Throws:
	// - ErrInvalidRequest
	//   - `contract_id` is of invalid format.
	// - ErrNotFound
	//   - there is no token class of `contract_id`.
	Supply(ctx context.Context, in *QuerySupplyRequest, opts ...grpc.CallOption) (*QuerySupplyResponse, error)
	// Minted queries the number of minted tokens from the given contract id.
	// Throws:
	// - ErrInvalidRequest
	//   - `contract_id` is of invalid format.
	// - ErrNotFound
	//   - there is no token class of `contract_id`.
	Minted(ctx context.Context, in *QueryMintedRequest, opts ...grpc.CallOption) (*QueryMintedResponse, error)
	// Burnt queries the number of burnt tokens from the given contract id.
	// Throws:
	// - ErrInvalidRequest
	//   - `contract_id` is of invalid format.
	// - ErrNotFound
	//   - there is no token class of `contract_id`.
	Burnt(ctx context.Context, in *QueryBurntRequest, opts ...grpc.CallOption) (*QueryBurntResponse, error)
	// TokenClass queries an token metadata based on its contract id.
	// Throws:
	// - ErrInvalidRequest
	//   - `contract_id` is of invalid format.
	// - ErrNotFound
	//   - there is no token class of `contract_id`.
	TokenClass(ctx context.Context, in *QueryTokenClassRequest, opts ...grpc.CallOption) (*QueryTokenClassResponse, error)
	// TokenClasses queries all token metadata.
	TokenClasses(ctx context.Context, in *QueryTokenClassesRequest, opts ...grpc.CallOption) (*QueryTokenClassesResponse, error)
	// GranteeGrants queries permissions on a given grantee.
	// Throws:
	// - ErrInvalidRequest
	//   - `contract_id` is of invalid format.
	// - ErrInvalidAddress
	//   - `grantee` is of invalid format.
	GranteeGrants(ctx context.Context, in *QueryGranteeGrantsRequest, opts ...grpc.CallOption) (*QueryGranteeGrantsResponse, error)
	// Approved queries authorization on a given proxy approver pair.
	// Throws:
	// - ErrInvalidRequest
	//   - `contract_id` is of invalid format.
	// - ErrInvalidAddress
	//   - `proxy` is of invalid format.
	//   - `approver` is of invalid format.
	Approved(ctx context.Context, in *QueryApprovedRequest, opts ...grpc.CallOption) (*QueryApprovedResponse, error)
	// Approvers queries approvers on a given proxy.
	// Throws:
	// - ErrInvalidRequest
	//   - `contract_id` is of invalid format.
	// - ErrInvalidAddress
	//   - `proxy` is of invalid format.
	Approvers(ctx context.Context, in *QueryApproversRequest, opts ...grpc.CallOption) (*QueryApproversResponse, 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 added in v0.45.0

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryGranteeGrantsRequest added in v0.46.0

type QueryGranteeGrantsRequest struct {
	// contract id associated with the token class.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// grantee which has permissions on the token class.
	Grantee string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryGranteeGrantsRequest is the request type for the Query/GranteeGrants RPC method

func (*QueryGranteeGrantsRequest) Descriptor added in v0.46.0

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

func (*QueryGranteeGrantsRequest) GetContractId added in v0.46.0

func (m *QueryGranteeGrantsRequest) GetContractId() string

func (*QueryGranteeGrantsRequest) GetGrantee added in v0.46.0

func (m *QueryGranteeGrantsRequest) GetGrantee() string

func (*QueryGranteeGrantsRequest) GetPagination added in v0.46.0

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

func (*QueryGranteeGrantsRequest) Marshal added in v0.46.0

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

func (*QueryGranteeGrantsRequest) MarshalTo added in v0.46.0

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

func (*QueryGranteeGrantsRequest) MarshalToSizedBuffer added in v0.46.0

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

func (*QueryGranteeGrantsRequest) ProtoMessage added in v0.46.0

func (*QueryGranteeGrantsRequest) ProtoMessage()

func (*QueryGranteeGrantsRequest) Reset added in v0.46.0

func (m *QueryGranteeGrantsRequest) Reset()

func (*QueryGranteeGrantsRequest) Size added in v0.46.0

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

func (*QueryGranteeGrantsRequest) String added in v0.46.0

func (m *QueryGranteeGrantsRequest) String() string

func (*QueryGranteeGrantsRequest) Unmarshal added in v0.46.0

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

func (*QueryGranteeGrantsRequest) XXX_DiscardUnknown added in v0.46.0

func (m *QueryGranteeGrantsRequest) XXX_DiscardUnknown()

func (*QueryGranteeGrantsRequest) XXX_Marshal added in v0.46.0

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

func (*QueryGranteeGrantsRequest) XXX_Merge added in v0.46.0

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

func (*QueryGranteeGrantsRequest) XXX_Size added in v0.46.0

func (m *QueryGranteeGrantsRequest) XXX_Size() int

func (*QueryGranteeGrantsRequest) XXX_Unmarshal added in v0.46.0

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

type QueryGranteeGrantsResponse added in v0.46.0

type QueryGranteeGrantsResponse struct {
	// all the grants on the grantee.
	Grants []Grant `protobuf:"bytes,1,rep,name=grants,proto3" json:"grants"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method

func (*QueryGranteeGrantsResponse) Descriptor added in v0.46.0

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

func (*QueryGranteeGrantsResponse) GetGrants added in v0.46.0

func (m *QueryGranteeGrantsResponse) GetGrants() []Grant

func (*QueryGranteeGrantsResponse) GetPagination added in v0.46.0

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

func (*QueryGranteeGrantsResponse) Marshal added in v0.46.0

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

func (*QueryGranteeGrantsResponse) MarshalTo added in v0.46.0

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

func (*QueryGranteeGrantsResponse) MarshalToSizedBuffer added in v0.46.0

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

func (*QueryGranteeGrantsResponse) ProtoMessage added in v0.46.0

func (*QueryGranteeGrantsResponse) ProtoMessage()

func (*QueryGranteeGrantsResponse) Reset added in v0.46.0

func (m *QueryGranteeGrantsResponse) Reset()

func (*QueryGranteeGrantsResponse) Size added in v0.46.0

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

func (*QueryGranteeGrantsResponse) String added in v0.46.0

func (m *QueryGranteeGrantsResponse) String() string

func (*QueryGranteeGrantsResponse) Unmarshal added in v0.46.0

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

func (*QueryGranteeGrantsResponse) XXX_DiscardUnknown added in v0.46.0

func (m *QueryGranteeGrantsResponse) XXX_DiscardUnknown()

func (*QueryGranteeGrantsResponse) XXX_Marshal added in v0.46.0

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

func (*QueryGranteeGrantsResponse) XXX_Merge added in v0.46.0

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

func (*QueryGranteeGrantsResponse) XXX_Size added in v0.46.0

func (m *QueryGranteeGrantsResponse) XXX_Size() int

func (*QueryGranteeGrantsResponse) XXX_Unmarshal added in v0.46.0

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

type QueryMintedRequest added in v0.46.0

type QueryMintedRequest struct {
	// contract id associated with the token class.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
}

QueryMintedRequest is the request type for the Query/Minted RPC method

func (*QueryMintedRequest) Descriptor added in v0.46.0

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

func (*QueryMintedRequest) GetContractId added in v0.46.0

func (m *QueryMintedRequest) GetContractId() string

func (*QueryMintedRequest) Marshal added in v0.46.0

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

func (*QueryMintedRequest) MarshalTo added in v0.46.0

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

func (*QueryMintedRequest) MarshalToSizedBuffer added in v0.46.0

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

func (*QueryMintedRequest) ProtoMessage added in v0.46.0

func (*QueryMintedRequest) ProtoMessage()

func (*QueryMintedRequest) Reset added in v0.46.0

func (m *QueryMintedRequest) Reset()

func (*QueryMintedRequest) Size added in v0.46.0

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

func (*QueryMintedRequest) String added in v0.46.0

func (m *QueryMintedRequest) String() string

func (*QueryMintedRequest) Unmarshal added in v0.46.0

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

func (*QueryMintedRequest) XXX_DiscardUnknown added in v0.46.0

func (m *QueryMintedRequest) XXX_DiscardUnknown()

func (*QueryMintedRequest) XXX_Marshal added in v0.46.0

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

func (*QueryMintedRequest) XXX_Merge added in v0.46.0

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

func (*QueryMintedRequest) XXX_Size added in v0.46.0

func (m *QueryMintedRequest) XXX_Size() int

func (*QueryMintedRequest) XXX_Unmarshal added in v0.46.0

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

type QueryMintedResponse added in v0.46.0

type QueryMintedResponse struct {
	// the amount of the minted tokens.
	Amount github_com_line_lbm_sdk_types.Int `protobuf:"bytes,1,opt,name=amount,proto3,customtype=github.com/line/lbm-sdk/types.Int" json:"amount"`
}

QueryMintedResponse is the response type for the Query/Minted RPC method

func (*QueryMintedResponse) Descriptor added in v0.46.0

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

func (*QueryMintedResponse) Marshal added in v0.46.0

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

func (*QueryMintedResponse) MarshalTo added in v0.46.0

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

func (*QueryMintedResponse) MarshalToSizedBuffer added in v0.46.0

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

func (*QueryMintedResponse) ProtoMessage added in v0.46.0

func (*QueryMintedResponse) ProtoMessage()

func (*QueryMintedResponse) Reset added in v0.46.0

func (m *QueryMintedResponse) Reset()

func (*QueryMintedResponse) Size added in v0.46.0

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

func (*QueryMintedResponse) String added in v0.46.0

func (m *QueryMintedResponse) String() string

func (*QueryMintedResponse) Unmarshal added in v0.46.0

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

func (*QueryMintedResponse) XXX_DiscardUnknown added in v0.46.0

func (m *QueryMintedResponse) XXX_DiscardUnknown()

func (*QueryMintedResponse) XXX_Marshal added in v0.46.0

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

func (*QueryMintedResponse) XXX_Merge added in v0.46.0

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

func (*QueryMintedResponse) XXX_Size added in v0.46.0

func (m *QueryMintedResponse) XXX_Size() int

func (*QueryMintedResponse) XXX_Unmarshal added in v0.46.0

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

type QueryServer added in v0.45.0

type QueryServer interface {
	// Balance queries the number of tokens of a given contract owned by the address.
	// Throws:
	// - ErrInvalidRequest
	//   - `contract_id` is of invalid format.
	// - ErrInvalidAddress
	//   - `address` is of invalid format.
	Balance(context.Context, *QueryBalanceRequest) (*QueryBalanceResponse, error)
	// Supply queries the number of tokens from the given contract id.
	// Throws:
	// - ErrInvalidRequest
	//   - `contract_id` is of invalid format.
	// - ErrNotFound
	//   - there is no token class of `contract_id`.
	Supply(context.Context, *QuerySupplyRequest) (*QuerySupplyResponse, error)
	// Minted queries the number of minted tokens from the given contract id.
	// Throws:
	// - ErrInvalidRequest
	//   - `contract_id` is of invalid format.
	// - ErrNotFound
	//   - there is no token class of `contract_id`.
	Minted(context.Context, *QueryMintedRequest) (*QueryMintedResponse, error)
	// Burnt queries the number of burnt tokens from the given contract id.
	// Throws:
	// - ErrInvalidRequest
	//   - `contract_id` is of invalid format.
	// - ErrNotFound
	//   - there is no token class of `contract_id`.
	Burnt(context.Context, *QueryBurntRequest) (*QueryBurntResponse, error)
	// TokenClass queries an token metadata based on its contract id.
	// Throws:
	// - ErrInvalidRequest
	//   - `contract_id` is of invalid format.
	// - ErrNotFound
	//   - there is no token class of `contract_id`.
	TokenClass(context.Context, *QueryTokenClassRequest) (*QueryTokenClassResponse, error)
	// TokenClasses queries all token metadata.
	TokenClasses(context.Context, *QueryTokenClassesRequest) (*QueryTokenClassesResponse, error)
	// GranteeGrants queries permissions on a given grantee.
	// Throws:
	// - ErrInvalidRequest
	//   - `contract_id` is of invalid format.
	// - ErrInvalidAddress
	//   - `grantee` is of invalid format.
	GranteeGrants(context.Context, *QueryGranteeGrantsRequest) (*QueryGranteeGrantsResponse, error)
	// Approved queries authorization on a given proxy approver pair.
	// Throws:
	// - ErrInvalidRequest
	//   - `contract_id` is of invalid format.
	// - ErrInvalidAddress
	//   - `proxy` is of invalid format.
	//   - `approver` is of invalid format.
	Approved(context.Context, *QueryApprovedRequest) (*QueryApprovedResponse, error)
	// Approvers queries approvers on a given proxy.
	// Throws:
	// - ErrInvalidRequest
	//   - `contract_id` is of invalid format.
	// - ErrInvalidAddress
	//   - `proxy` is of invalid format.
	Approvers(context.Context, *QueryApproversRequest) (*QueryApproversResponse, error)
}

QueryServer is the server API for Query service.

type QuerySupplyRequest added in v0.45.0

type QuerySupplyRequest struct {
	// contract id associated with the token class.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
}

QuerySupplyRequest is the request type for the Query/Supply RPC method

func (*QuerySupplyRequest) Descriptor added in v0.45.0

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

func (*QuerySupplyRequest) GetContractId added in v0.46.0

func (m *QuerySupplyRequest) GetContractId() string

func (*QuerySupplyRequest) Marshal added in v0.45.0

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

func (*QuerySupplyRequest) MarshalTo added in v0.45.0

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

func (*QuerySupplyRequest) MarshalToSizedBuffer added in v0.45.0

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

func (*QuerySupplyRequest) ProtoMessage added in v0.45.0

func (*QuerySupplyRequest) ProtoMessage()

func (*QuerySupplyRequest) Reset added in v0.45.0

func (m *QuerySupplyRequest) Reset()

func (*QuerySupplyRequest) Size added in v0.45.0

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

func (*QuerySupplyRequest) String added in v0.45.0

func (m *QuerySupplyRequest) String() string

func (*QuerySupplyRequest) Unmarshal added in v0.45.0

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

func (*QuerySupplyRequest) XXX_DiscardUnknown added in v0.45.0

func (m *QuerySupplyRequest) XXX_DiscardUnknown()

func (*QuerySupplyRequest) XXX_Marshal added in v0.45.0

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

func (*QuerySupplyRequest) XXX_Merge added in v0.45.0

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

func (*QuerySupplyRequest) XXX_Size added in v0.45.0

func (m *QuerySupplyRequest) XXX_Size() int

func (*QuerySupplyRequest) XXX_Unmarshal added in v0.45.0

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

type QuerySupplyResponse added in v0.45.0

type QuerySupplyResponse struct {
	// the supply of the tokens.
	Amount github_com_line_lbm_sdk_types.Int `protobuf:"bytes,1,opt,name=amount,proto3,customtype=github.com/line/lbm-sdk/types.Int" json:"amount"`
}

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

func (*QuerySupplyResponse) Descriptor added in v0.45.0

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

func (*QuerySupplyResponse) Marshal added in v0.45.0

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

func (*QuerySupplyResponse) MarshalTo added in v0.45.0

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

func (*QuerySupplyResponse) MarshalToSizedBuffer added in v0.45.0

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

func (*QuerySupplyResponse) ProtoMessage added in v0.45.0

func (*QuerySupplyResponse) ProtoMessage()

func (*QuerySupplyResponse) Reset added in v0.45.0

func (m *QuerySupplyResponse) Reset()

func (*QuerySupplyResponse) Size added in v0.45.0

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

func (*QuerySupplyResponse) String added in v0.45.0

func (m *QuerySupplyResponse) String() string

func (*QuerySupplyResponse) Unmarshal added in v0.45.0

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

func (*QuerySupplyResponse) XXX_DiscardUnknown added in v0.45.0

func (m *QuerySupplyResponse) XXX_DiscardUnknown()

func (*QuerySupplyResponse) XXX_Marshal added in v0.45.0

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

func (*QuerySupplyResponse) XXX_Merge added in v0.45.0

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

func (*QuerySupplyResponse) XXX_Size added in v0.45.0

func (m *QuerySupplyResponse) XXX_Size() int

func (*QuerySupplyResponse) XXX_Unmarshal added in v0.45.0

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

type QueryTokenClassRequest added in v0.46.0

type QueryTokenClassRequest struct {
	// contract id associated with the token class.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
}

QueryTokenClassRequest is the request type for the Query/TokenClass RPC method

func (*QueryTokenClassRequest) Descriptor added in v0.46.0

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

func (*QueryTokenClassRequest) GetContractId added in v0.46.0

func (m *QueryTokenClassRequest) GetContractId() string

func (*QueryTokenClassRequest) Marshal added in v0.46.0

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

func (*QueryTokenClassRequest) MarshalTo added in v0.46.0

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

func (*QueryTokenClassRequest) MarshalToSizedBuffer added in v0.46.0

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

func (*QueryTokenClassRequest) ProtoMessage added in v0.46.0

func (*QueryTokenClassRequest) ProtoMessage()

func (*QueryTokenClassRequest) Reset added in v0.46.0

func (m *QueryTokenClassRequest) Reset()

func (*QueryTokenClassRequest) Size added in v0.46.0

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

func (*QueryTokenClassRequest) String added in v0.46.0

func (m *QueryTokenClassRequest) String() string

func (*QueryTokenClassRequest) Unmarshal added in v0.46.0

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

func (*QueryTokenClassRequest) XXX_DiscardUnknown added in v0.46.0

func (m *QueryTokenClassRequest) XXX_DiscardUnknown()

func (*QueryTokenClassRequest) XXX_Marshal added in v0.46.0

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

func (*QueryTokenClassRequest) XXX_Merge added in v0.46.0

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

func (*QueryTokenClassRequest) XXX_Size added in v0.46.0

func (m *QueryTokenClassRequest) XXX_Size() int

func (*QueryTokenClassRequest) XXX_Unmarshal added in v0.46.0

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

type QueryTokenClassResponse added in v0.46.0

type QueryTokenClassResponse struct {
	Class TokenClass `protobuf:"bytes,1,opt,name=class,proto3" json:"class"`
}

QueryTokenClassResponse is the response type for the Query/TokenClass RPC method

func (*QueryTokenClassResponse) Descriptor added in v0.46.0

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

func (*QueryTokenClassResponse) GetClass added in v0.46.0

func (m *QueryTokenClassResponse) GetClass() TokenClass

func (*QueryTokenClassResponse) Marshal added in v0.46.0

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

func (*QueryTokenClassResponse) MarshalTo added in v0.46.0

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

func (*QueryTokenClassResponse) MarshalToSizedBuffer added in v0.46.0

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

func (*QueryTokenClassResponse) ProtoMessage added in v0.46.0

func (*QueryTokenClassResponse) ProtoMessage()

func (*QueryTokenClassResponse) Reset added in v0.46.0

func (m *QueryTokenClassResponse) Reset()

func (*QueryTokenClassResponse) Size added in v0.46.0

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

func (*QueryTokenClassResponse) String added in v0.46.0

func (m *QueryTokenClassResponse) String() string

func (*QueryTokenClassResponse) Unmarshal added in v0.46.0

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

func (*QueryTokenClassResponse) XXX_DiscardUnknown added in v0.46.0

func (m *QueryTokenClassResponse) XXX_DiscardUnknown()

func (*QueryTokenClassResponse) XXX_Marshal added in v0.46.0

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

func (*QueryTokenClassResponse) XXX_Merge added in v0.46.0

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

func (*QueryTokenClassResponse) XXX_Size added in v0.46.0

func (m *QueryTokenClassResponse) XXX_Size() int

func (*QueryTokenClassResponse) XXX_Unmarshal added in v0.46.0

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

type QueryTokenClassesRequest added in v0.46.0

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

QueryTokenClassesRequest is the request type for the Query/TokenClasses RPC method

func (*QueryTokenClassesRequest) Descriptor added in v0.46.0

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

func (*QueryTokenClassesRequest) GetPagination added in v0.46.0

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

func (*QueryTokenClassesRequest) Marshal added in v0.46.0

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

func (*QueryTokenClassesRequest) MarshalTo added in v0.46.0

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

func (*QueryTokenClassesRequest) MarshalToSizedBuffer added in v0.46.0

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

func (*QueryTokenClassesRequest) ProtoMessage added in v0.46.0

func (*QueryTokenClassesRequest) ProtoMessage()

func (*QueryTokenClassesRequest) Reset added in v0.46.0

func (m *QueryTokenClassesRequest) Reset()

func (*QueryTokenClassesRequest) Size added in v0.46.0

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

func (*QueryTokenClassesRequest) String added in v0.46.0

func (m *QueryTokenClassesRequest) String() string

func (*QueryTokenClassesRequest) Unmarshal added in v0.46.0

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

func (*QueryTokenClassesRequest) XXX_DiscardUnknown added in v0.46.0

func (m *QueryTokenClassesRequest) XXX_DiscardUnknown()

func (*QueryTokenClassesRequest) XXX_Marshal added in v0.46.0

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

func (*QueryTokenClassesRequest) XXX_Merge added in v0.46.0

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

func (*QueryTokenClassesRequest) XXX_Size added in v0.46.0

func (m *QueryTokenClassesRequest) XXX_Size() int

func (*QueryTokenClassesRequest) XXX_Unmarshal added in v0.46.0

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

type QueryTokenClassesResponse added in v0.46.0

type QueryTokenClassesResponse struct {
	// information of the token classes.
	Classes []TokenClass `protobuf:"bytes,1,rep,name=classes,proto3" json:"classes"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryTokenClassesResponse is the response type for the Query/TokenClasses RPC method

func (*QueryTokenClassesResponse) Descriptor added in v0.46.0

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

func (*QueryTokenClassesResponse) GetClasses added in v0.46.0

func (m *QueryTokenClassesResponse) GetClasses() []TokenClass

func (*QueryTokenClassesResponse) GetPagination added in v0.46.0

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

func (*QueryTokenClassesResponse) Marshal added in v0.46.0

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

func (*QueryTokenClassesResponse) MarshalTo added in v0.46.0

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

func (*QueryTokenClassesResponse) MarshalToSizedBuffer added in v0.46.0

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

func (*QueryTokenClassesResponse) ProtoMessage added in v0.46.0

func (*QueryTokenClassesResponse) ProtoMessage()

func (*QueryTokenClassesResponse) Reset added in v0.46.0

func (m *QueryTokenClassesResponse) Reset()

func (*QueryTokenClassesResponse) Size added in v0.46.0

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

func (*QueryTokenClassesResponse) String added in v0.46.0

func (m *QueryTokenClassesResponse) String() string

func (*QueryTokenClassesResponse) Unmarshal added in v0.46.0

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

func (*QueryTokenClassesResponse) XXX_DiscardUnknown added in v0.46.0

func (m *QueryTokenClassesResponse) XXX_DiscardUnknown()

func (*QueryTokenClassesResponse) XXX_Marshal added in v0.46.0

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

func (*QueryTokenClassesResponse) XXX_Merge added in v0.46.0

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

func (*QueryTokenClassesResponse) XXX_Size added in v0.46.0

func (m *QueryTokenClassesResponse) XXX_Size() int

func (*QueryTokenClassesResponse) XXX_Unmarshal added in v0.46.0

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

type TokenClass added in v0.46.0

type TokenClass struct {
	// contract_id defines the unique identifier of the token class.
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`
	// name defines the human-readable name of the token class. mandatory (not ERC20 compliant).
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// symbol is an abbreviated name for token class. mandatory (not ERC20 compliant).
	Symbol string `protobuf:"bytes,3,opt,name=symbol,proto3" json:"symbol,omitempty"`
	// image_uri is an uri for the image of the token class stored off chain.
	ImageUri string `protobuf:"bytes,4,opt,name=image_uri,json=imageUri,proto3" json:"image_uri,omitempty"`
	// meta is a brief description of token class.
	Meta string `protobuf:"bytes,5,opt,name=meta,proto3" json:"meta,omitempty"`
	// decimals is the number of decimals which one must divide the amount by to get its user representation.
	Decimals int32 `protobuf:"varint,6,opt,name=decimals,proto3" json:"decimals,omitempty"`
	// mintable represents whether the token is allowed to mint or burn.
	Mintable bool `protobuf:"varint,7,opt,name=mintable,proto3" json:"mintable,omitempty"`
}

TokenClass defines token information.

func (*TokenClass) Descriptor added in v0.46.0

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

func (*TokenClass) Marshal added in v0.46.0

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

func (*TokenClass) MarshalTo added in v0.46.0

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

func (*TokenClass) MarshalToSizedBuffer added in v0.46.0

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

func (*TokenClass) ProtoMessage added in v0.46.0

func (*TokenClass) ProtoMessage()

func (*TokenClass) Reset added in v0.46.0

func (m *TokenClass) Reset()

func (*TokenClass) Size added in v0.46.0

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

func (*TokenClass) String added in v0.46.0

func (m *TokenClass) String() string

func (*TokenClass) Unmarshal added in v0.46.0

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

func (*TokenClass) XXX_DiscardUnknown added in v0.46.0

func (m *TokenClass) XXX_DiscardUnknown()

func (*TokenClass) XXX_Marshal added in v0.46.0

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

func (*TokenClass) XXX_Merge added in v0.46.0

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

func (*TokenClass) XXX_Size added in v0.46.0

func (m *TokenClass) XXX_Size() int

func (*TokenClass) XXX_Unmarshal added in v0.46.0

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

type UnimplementedMsgServer added in v0.45.0

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) Approve added in v0.45.0

func (*UnimplementedMsgServer) Burn added in v0.45.0

func (*UnimplementedMsgServer) BurnFrom added in v0.45.0

func (*UnimplementedMsgServer) GrantPermission added in v0.46.0

func (*UnimplementedMsgServer) Issue added in v0.45.0

func (*UnimplementedMsgServer) Mint added in v0.45.0

func (*UnimplementedMsgServer) Modify added in v0.45.0

func (*UnimplementedMsgServer) RevokeOperator added in v0.46.0

func (*UnimplementedMsgServer) RevokePermission added in v0.46.0

func (*UnimplementedMsgServer) Send added in v0.46.0

func (*UnimplementedMsgServer) TransferFrom added in v0.45.0

type UnimplementedQueryServer added in v0.45.0

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Approved added in v0.46.0

func (*UnimplementedQueryServer) Approvers added in v0.46.0

func (*UnimplementedQueryServer) Balance added in v0.46.0

func (*UnimplementedQueryServer) Burnt added in v0.46.0

func (*UnimplementedQueryServer) GranteeGrants added in v0.46.0

func (*UnimplementedQueryServer) Minted added in v0.46.0

func (*UnimplementedQueryServer) Supply added in v0.45.0

func (*UnimplementedQueryServer) TokenClass added in v0.46.0

func (*UnimplementedQueryServer) TokenClasses added in v0.46.0

Directories

Path Synopsis
client
cli

Jump to

Keyboard shortcuts

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