types

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: LGPL-3.0 Imports: 37 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName = "settlement"

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

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

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_settlement"
)
View Source
const (
	TypeMsgRecord                   = "record"
	TypeMsgCancel                   = "cancel"
	TypeMsgCreateTenant             = "create_tenant"
	TypeMsgAddTenantAdmin           = "add_tenant_admin"
	TypeMsgRemoveTenantAdmin        = "remove_tenant_admin"
	TypeMsgUpdateTenantPayoutPeriod = "update_tenant_payout_period"
	TypeMsgDepositToTreasury        = "deposit_to_treausry"
)
View Source
const (
	PayoutMethod_Native       = "native"
	PayoutMethod_MintContract = "mintable_contract"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default global index

Variables

View Source
var (
	ErrNotAuthorized          = sdkerrors.Register(ModuleName, 1100, "not authorized")
	ErrNotEnoughBalance       = sdkerrors.Register(ModuleName, 1101, "not enough balance")
	ErrInvalidTenant          = sdkerrors.Register(ModuleName, 1102, "invalid tenant")
	ErrInvalidTxId            = sdkerrors.Register(ModuleName, 1103, "invalid tx id")
	ErrInvalidAccount         = sdkerrors.Register(ModuleName, 1104, "invalid account")
	ErrNotFound               = sdkerrors.Register(ModuleName, 1105, "account not found")
	ErrInvalidRequest         = sdkerrors.Register(ModuleName, 1106, "invalid request")
	ErrInvalidChainId         = sdkerrors.Register(ModuleName, 1107, "invalid chain id")
	ErrInvalidContractAddress = sdkerrors.Register(ModuleName, 1108, "invalid contract address")
	ErrInvalidTokenId         = sdkerrors.Register(ModuleName, 1109, "invalid token id")
	ErrEVMCallFailed          = sdkerrors.Register(ModuleName, 1110, "evm call failed")
	ErrEventCreationFailed    = sdkerrors.Register(ModuleName, 1111, "failed to emit event")
	ErrDuplicateRequestId     = sdkerrors.Register(ModuleName, 1112, "duplicate request id")
	ErrUTXRNotFound           = sdkerrors.Register(ModuleName, 1113, "utxr not found")
	ErrInvalidAdmin           = sdkerrors.Register(ModuleName, 1114, "invalid admin")
	ErrCannotRemoveAdmin      = sdkerrors.Register(ModuleName, 1115, "cannot remove admin")
)

x/settlement module sentinel errors

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 (
	UTXRPrefix          = []byte{0x00}
	UTXRRequestIdPrefix = []byte{0x01}
	TenantPrefix        = []byte{0x02}
)
View Source
var (
	KeyFee                 = []byte("Fee")
	KeyOracleFeePercentage = []byte("OracleFeePercentage")
)
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 (
	ErrInvalidLengthSettlement        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSettlement          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSettlement = 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")
)

Functions

func GetTenantTreasuryAccount

func GetTenantTreasuryAccount(tenantId uint64) sdk.AccAddress

GetTenantTreasuryAccount gets the treasury account for the tenant by hashing the tenant account name

func GetTreasuryAccountName

func GetTreasuryAccountName(tenantId uint64) string

func KeyPrefix

func KeyPrefix(p string) []byte

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

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

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

func RegisterQueryHandlerClient

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

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

func RegisterQueryHandlerFromEndpoint

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

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

func RegisterQueryHandlerServer

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

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

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func TenantStoreKey

func TenantStoreKey(tenantId uint64) []byte

func UTXRStoreByRequestIdKey

func UTXRStoreByRequestIdKey(tenantId uint64, requestId string) []byte

func UTXRStoreByTenantKey

func UTXRStoreByTenantKey(tenantId uint64) []byte

func UTXRStoreKey

func UTXRStoreKey(tenantId, utxrId uint64) []byte

Types

type AccountKeeper

type AccountKeeper interface {
	NewAccount(ctx sdk.Context, acc authtypes.AccountI) authtypes.AccountI
	NewAccountWithAddress(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI
	GetSequence(sdk.Context, sdk.AccAddress) (uint64, error)

	HasAccount(ctx sdk.Context, addr sdk.AccAddress) bool
	SetAccount(ctx sdk.Context, acc authtypes.AccountI)
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI
	SetModuleAccount(ctx sdk.Context, macc authtypes.ModuleAccountI)
}

AccountKeeper defines the expected account keeper used for simulations (noalias)

type BankKeeper

type BankKeeper interface {
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	SendCoins(ctx sdk.Context, fromAddr, toAddr sdk.AccAddress, amt sdk.Coins) error
}

BankKeeper defines the expected interface needed to retrieve account balances.

type Erc20Keeper

type Erc20Keeper interface {
	ConvertCoin(goCtx context.Context, msg *erc20types.MsgConvertCoin) (*erc20types.MsgConvertCoinResponse, error)
	IsDenomRegistered(ctx sdk.Context, denom string) bool
}

type EventCancel

type EventCancel struct {
	Tenant    uint64 `protobuf:"varint,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
	UtxrId    uint64 `protobuf:"varint,2,opt,name=utxr_id,json=utxrId,proto3" json:"utxr_id,omitempty"`
	RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
}

func (*EventCancel) Descriptor

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

func (*EventCancel) GetRequestId

func (m *EventCancel) GetRequestId() string

func (*EventCancel) GetTenant

func (m *EventCancel) GetTenant() uint64

func (*EventCancel) GetUtxrId

func (m *EventCancel) GetUtxrId() uint64

func (*EventCancel) Marshal

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

func (*EventCancel) MarshalTo

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

func (*EventCancel) MarshalToSizedBuffer

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

func (*EventCancel) ProtoMessage

func (*EventCancel) ProtoMessage()

func (*EventCancel) Reset

func (m *EventCancel) Reset()

func (*EventCancel) Size

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

func (*EventCancel) String

func (m *EventCancel) String() string

func (*EventCancel) Unmarshal

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

func (*EventCancel) XXX_DiscardUnknown

func (m *EventCancel) XXX_DiscardUnknown()

func (*EventCancel) XXX_Marshal

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

func (*EventCancel) XXX_Merge

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

func (*EventCancel) XXX_Size

func (m *EventCancel) XXX_Size() int

func (*EventCancel) XXX_Unmarshal

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

type EventDeployContract

type EventDeployContract struct {
	Tenant          uint64 `protobuf:"varint,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
	ContractAddress string `protobuf:"bytes,2,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	TokenName       string `protobuf:"bytes,3,opt,name=token_name,json=tokenName,proto3" json:"token_name,omitempty"`
	ContractAdmin   string `protobuf:"bytes,4,opt,name=contract_admin,json=contractAdmin,proto3" json:"contract_admin,omitempty"`
}

func (*EventDeployContract) Descriptor

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

func (*EventDeployContract) GetContractAddress

func (m *EventDeployContract) GetContractAddress() string

func (*EventDeployContract) GetContractAdmin

func (m *EventDeployContract) GetContractAdmin() string

func (*EventDeployContract) GetTenant

func (m *EventDeployContract) GetTenant() uint64

func (*EventDeployContract) GetTokenName

func (m *EventDeployContract) GetTokenName() string

func (*EventDeployContract) Marshal

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

func (*EventDeployContract) MarshalTo

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

func (*EventDeployContract) MarshalToSizedBuffer

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

func (*EventDeployContract) ProtoMessage

func (*EventDeployContract) ProtoMessage()

func (*EventDeployContract) Reset

func (m *EventDeployContract) Reset()

func (*EventDeployContract) Size

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

func (*EventDeployContract) String

func (m *EventDeployContract) String() string

func (*EventDeployContract) Unmarshal

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

func (*EventDeployContract) XXX_DiscardUnknown

func (m *EventDeployContract) XXX_DiscardUnknown()

func (*EventDeployContract) XXX_Marshal

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

func (*EventDeployContract) XXX_Merge

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

func (*EventDeployContract) XXX_Size

func (m *EventDeployContract) XXX_Size() int

func (*EventDeployContract) XXX_Unmarshal

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

type EventRecord

type EventRecord struct {
	Sender          string     `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	Tenant          uint64     `protobuf:"varint,2,opt,name=tenant,proto3" json:"tenant,omitempty"`
	UtxrId          uint64     `protobuf:"varint,3,opt,name=utxr_id,json=utxrId,proto3" json:"utxr_id,omitempty"`
	RequestId       string     `protobuf:"bytes,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	Amount          types.Coin `protobuf:"bytes,5,opt,name=amount,proto3" json:"amount"`
	ChainId         string     `protobuf:"bytes,6,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	ContractAddress string     `protobuf:"bytes,7,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	TokenIdHex      string     `protobuf:"bytes,8,opt,name=token_id_hex,json=tokenIdHex,proto3" json:"token_id_hex,omitempty"`
	Recipient       string     `protobuf:"bytes,9,opt,name=recipient,proto3" json:"recipient,omitempty"`
	Metadata        string     `protobuf:"bytes,10,opt,name=metadata,proto3" json:"metadata,omitempty"`
	PayoutBlock     uint64     `protobuf:"varint,11,opt,name=payout_block,json=payoutBlock,proto3" json:"payout_block,omitempty"`
}

func (*EventRecord) Descriptor

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

func (*EventRecord) GetAmount

func (m *EventRecord) GetAmount() types.Coin

func (*EventRecord) GetChainId

func (m *EventRecord) GetChainId() string

func (*EventRecord) GetContractAddress

func (m *EventRecord) GetContractAddress() string

func (*EventRecord) GetMetadata

func (m *EventRecord) GetMetadata() string

func (*EventRecord) GetPayoutBlock added in v0.0.5

func (m *EventRecord) GetPayoutBlock() uint64

func (*EventRecord) GetRecipient

func (m *EventRecord) GetRecipient() string

func (*EventRecord) GetRequestId

func (m *EventRecord) GetRequestId() string

func (*EventRecord) GetSender

func (m *EventRecord) GetSender() string

func (*EventRecord) GetTenant

func (m *EventRecord) GetTenant() uint64

func (*EventRecord) GetTokenIdHex

func (m *EventRecord) GetTokenIdHex() string

func (*EventRecord) GetUtxrId

func (m *EventRecord) GetUtxrId() uint64

func (*EventRecord) Marshal

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

func (*EventRecord) MarshalTo

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

func (*EventRecord) MarshalToSizedBuffer

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

func (*EventRecord) ProtoMessage

func (*EventRecord) ProtoMessage()

func (*EventRecord) Reset

func (m *EventRecord) Reset()

func (*EventRecord) Size

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

func (*EventRecord) String

func (m *EventRecord) String() string

func (*EventRecord) Unmarshal

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

func (*EventRecord) XXX_DiscardUnknown

func (m *EventRecord) XXX_DiscardUnknown()

func (*EventRecord) XXX_Marshal

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

func (*EventRecord) XXX_Merge

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

func (*EventRecord) XXX_Size

func (m *EventRecord) XXX_Size() int

func (*EventRecord) XXX_Unmarshal

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

type EventSettled

type EventSettled struct {
	Tenant    uint64     `protobuf:"varint,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
	UtxrId    uint64     `protobuf:"varint,2,opt,name=utxr_id,json=utxrId,proto3" json:"utxr_id,omitempty"`
	RequestId string     `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	Amount    types.Coin `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount"`
	Recipient string     `protobuf:"bytes,5,opt,name=recipient,proto3" json:"recipient,omitempty"`
}

func (*EventSettled) Descriptor

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

func (*EventSettled) GetAmount

func (m *EventSettled) GetAmount() types.Coin

func (*EventSettled) GetRecipient

func (m *EventSettled) GetRecipient() string

func (*EventSettled) GetRequestId

func (m *EventSettled) GetRequestId() string

func (*EventSettled) GetTenant

func (m *EventSettled) GetTenant() uint64

func (*EventSettled) GetUtxrId

func (m *EventSettled) GetUtxrId() uint64

func (*EventSettled) Marshal

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

func (*EventSettled) MarshalTo

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

func (*EventSettled) MarshalToSizedBuffer

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

func (*EventSettled) ProtoMessage

func (*EventSettled) ProtoMessage()

func (*EventSettled) Reset

func (m *EventSettled) Reset()

func (*EventSettled) Size

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

func (*EventSettled) String

func (m *EventSettled) String() string

func (*EventSettled) Unmarshal

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

func (*EventSettled) XXX_DiscardUnknown

func (m *EventSettled) XXX_DiscardUnknown()

func (*EventSettled) XXX_Marshal

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

func (*EventSettled) XXX_Merge

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

func (*EventSettled) XXX_Size

func (m *EventSettled) XXX_Size() int

func (*EventSettled) XXX_Unmarshal

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

type EventSettlementFailed

type EventSettlementFailed struct {
	Tenant uint64 `protobuf:"varint,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
	Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
}

func (*EventSettlementFailed) Descriptor

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

func (*EventSettlementFailed) GetReason

func (m *EventSettlementFailed) GetReason() string

func (*EventSettlementFailed) GetTenant

func (m *EventSettlementFailed) GetTenant() uint64

func (*EventSettlementFailed) Marshal

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

func (*EventSettlementFailed) MarshalTo

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

func (*EventSettlementFailed) MarshalToSizedBuffer

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

func (*EventSettlementFailed) ProtoMessage

func (*EventSettlementFailed) ProtoMessage()

func (*EventSettlementFailed) Reset

func (m *EventSettlementFailed) Reset()

func (*EventSettlementFailed) Size

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

func (*EventSettlementFailed) String

func (m *EventSettlementFailed) String() string

func (*EventSettlementFailed) Unmarshal

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

func (*EventSettlementFailed) XXX_DiscardUnknown

func (m *EventSettlementFailed) XXX_DiscardUnknown()

func (*EventSettlementFailed) XXX_Marshal

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

func (*EventSettlementFailed) XXX_Merge

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

func (*EventSettlementFailed) XXX_Size

func (m *EventSettlementFailed) XXX_Size() int

func (*EventSettlementFailed) XXX_Unmarshal

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

type EvmKeeper

type EvmKeeper interface {
	CallEVM(ctx sdk.Context, abi abi.ABI, from, contract common.Address, commit bool, method string, args ...interface{}) (*evmtypes.MsgEthereumTxResponse, error)
	CallEVMWithData(ctx sdk.Context, from common.Address, contract *common.Address, data []byte, commit bool) (*evmtypes.MsgEthereumTxResponse, error)
}

type GenesisState

type GenesisState struct {
	Params  Params                `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	Tenants []Tenant              `protobuf:"bytes,2,rep,name=tenants,proto3" json:"tenants"`
	Utxrs   []UTXRWithTenantAndId `protobuf:"bytes,3,rep,name=utxrs,proto3" json:"utxrs"`
}

GenesisState defines the settlement module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetTenants

func (m *GenesisState) GetTenants() []Tenant

func (*GenesisState) GetUtxrs

func (m *GenesisState) GetUtxrs() []UTXRWithTenantAndId

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (GenesisState) Validate

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type MsgAddTenantAdmin

type MsgAddTenantAdmin struct {
	Sender   string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	TenantId uint64 `protobuf:"varint,2,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	NewAdmin string `protobuf:"bytes,3,opt,name=new_admin,json=newAdmin,proto3" json:"new_admin,omitempty"`
}

MsgAddTenantAdmin is the AddTenantAdmin request type.

func NewMsgAddTenantAdmin

func NewMsgAddTenantAdmin(sender string, tenantId uint64, newAdmin string) *MsgAddTenantAdmin

func (*MsgAddTenantAdmin) Descriptor

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

func (*MsgAddTenantAdmin) GetNewAdmin

func (m *MsgAddTenantAdmin) GetNewAdmin() string

func (*MsgAddTenantAdmin) GetSender

func (m *MsgAddTenantAdmin) GetSender() string

func (*MsgAddTenantAdmin) GetSignBytes

func (msg *MsgAddTenantAdmin) GetSignBytes() []byte

func (*MsgAddTenantAdmin) GetSigners

func (msg *MsgAddTenantAdmin) GetSigners() []sdk.AccAddress

func (*MsgAddTenantAdmin) GetTenantId

func (m *MsgAddTenantAdmin) GetTenantId() uint64

func (*MsgAddTenantAdmin) Marshal

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

func (*MsgAddTenantAdmin) MarshalTo

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

func (*MsgAddTenantAdmin) MarshalToSizedBuffer

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

func (*MsgAddTenantAdmin) ProtoMessage

func (*MsgAddTenantAdmin) ProtoMessage()

func (*MsgAddTenantAdmin) Reset

func (m *MsgAddTenantAdmin) Reset()

func (*MsgAddTenantAdmin) Route

func (msg *MsgAddTenantAdmin) Route() string

func (*MsgAddTenantAdmin) Size

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

func (*MsgAddTenantAdmin) String

func (m *MsgAddTenantAdmin) String() string

func (*MsgAddTenantAdmin) Type

func (msg *MsgAddTenantAdmin) Type() string

func (*MsgAddTenantAdmin) Unmarshal

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

func (*MsgAddTenantAdmin) ValidateBasic

func (msg *MsgAddTenantAdmin) ValidateBasic() error

func (*MsgAddTenantAdmin) XXX_DiscardUnknown

func (m *MsgAddTenantAdmin) XXX_DiscardUnknown()

func (*MsgAddTenantAdmin) XXX_Marshal

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

func (*MsgAddTenantAdmin) XXX_Merge

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

func (*MsgAddTenantAdmin) XXX_Size

func (m *MsgAddTenantAdmin) XXX_Size() int

func (*MsgAddTenantAdmin) XXX_Unmarshal

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

type MsgAddTenantAdminResponse

type MsgAddTenantAdminResponse struct {
}

MsgAddTenantAdminResponse defines the response structure for executing a MsgAddTenantAdmin message.

func (*MsgAddTenantAdminResponse) Descriptor

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

func (*MsgAddTenantAdminResponse) Marshal

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

func (*MsgAddTenantAdminResponse) MarshalTo

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

func (*MsgAddTenantAdminResponse) MarshalToSizedBuffer

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

func (*MsgAddTenantAdminResponse) ProtoMessage

func (*MsgAddTenantAdminResponse) ProtoMessage()

func (*MsgAddTenantAdminResponse) Reset

func (m *MsgAddTenantAdminResponse) Reset()

func (*MsgAddTenantAdminResponse) Size

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

func (*MsgAddTenantAdminResponse) String

func (m *MsgAddTenantAdminResponse) String() string

func (*MsgAddTenantAdminResponse) Unmarshal

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

func (*MsgAddTenantAdminResponse) XXX_DiscardUnknown

func (m *MsgAddTenantAdminResponse) XXX_DiscardUnknown()

func (*MsgAddTenantAdminResponse) XXX_Marshal

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

func (*MsgAddTenantAdminResponse) XXX_Merge

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

func (*MsgAddTenantAdminResponse) XXX_Size

func (m *MsgAddTenantAdminResponse) XXX_Size() int

func (*MsgAddTenantAdminResponse) XXX_Unmarshal

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

type MsgCancel

type MsgCancel struct {
	Sender    string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	TenantId  uint64 `protobuf:"varint,2,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
}

MsgCancel is the Cancel request type.

func NewMsgCancel

func NewMsgCancel(sender string, tenantId uint64, requestId string) *MsgCancel

func (*MsgCancel) Descriptor

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

func (*MsgCancel) GetRequestId

func (m *MsgCancel) GetRequestId() string

func (*MsgCancel) GetSender

func (m *MsgCancel) GetSender() string

func (*MsgCancel) GetSignBytes

func (msg *MsgCancel) GetSignBytes() []byte

func (*MsgCancel) GetSigners

func (msg *MsgCancel) GetSigners() []sdk.AccAddress

func (*MsgCancel) GetTenantId

func (m *MsgCancel) GetTenantId() uint64

func (*MsgCancel) Marshal

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

func (*MsgCancel) MarshalTo

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

func (*MsgCancel) MarshalToSizedBuffer

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

func (*MsgCancel) ProtoMessage

func (*MsgCancel) ProtoMessage()

func (*MsgCancel) Reset

func (m *MsgCancel) Reset()

func (*MsgCancel) Route

func (msg *MsgCancel) Route() string

func (*MsgCancel) Size

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

func (*MsgCancel) String

func (m *MsgCancel) String() string

func (*MsgCancel) Type

func (msg *MsgCancel) Type() string

func (*MsgCancel) Unmarshal

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

func (*MsgCancel) ValidateBasic

func (msg *MsgCancel) ValidateBasic() error

func (*MsgCancel) XXX_DiscardUnknown

func (m *MsgCancel) XXX_DiscardUnknown()

func (*MsgCancel) XXX_Marshal

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

func (*MsgCancel) XXX_Merge

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

func (*MsgCancel) XXX_Size

func (m *MsgCancel) XXX_Size() int

func (*MsgCancel) XXX_Unmarshal

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

type MsgCancelResponse

type MsgCancelResponse struct {
}

MsgCancelResponse defines the response structure for executing a MsgCancel message.

func (*MsgCancelResponse) Descriptor

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

func (*MsgCancelResponse) Marshal

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

func (*MsgCancelResponse) MarshalTo

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

func (*MsgCancelResponse) MarshalToSizedBuffer

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

func (*MsgCancelResponse) ProtoMessage

func (*MsgCancelResponse) ProtoMessage()

func (*MsgCancelResponse) Reset

func (m *MsgCancelResponse) Reset()

func (*MsgCancelResponse) Size

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

func (*MsgCancelResponse) String

func (m *MsgCancelResponse) String() string

func (*MsgCancelResponse) Unmarshal

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

func (*MsgCancelResponse) XXX_DiscardUnknown

func (m *MsgCancelResponse) XXX_DiscardUnknown()

func (*MsgCancelResponse) XXX_Marshal

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

func (*MsgCancelResponse) XXX_Merge

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

func (*MsgCancelResponse) XXX_Size

func (m *MsgCancelResponse) XXX_Size() int

func (*MsgCancelResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// Record records a revenue for a tenant.
	Record(ctx context.Context, in *MsgRecord, opts ...grpc.CallOption) (*MsgRecordResponse, error)
	// Cancel cancels a revenue record for a tenant.
	Cancel(ctx context.Context, in *MsgCancel, opts ...grpc.CallOption) (*MsgCancelResponse, error)
	// CreateTenant creates a new tenant.
	CreateTenant(ctx context.Context, in *MsgCreateTenant, opts ...grpc.CallOption) (*MsgCreateTenantResponse, error)
	// CreateTenantWithMintableContract creates a new tenant with a mintable
	// contract.
	CreateTenantWithMintableContract(ctx context.Context, in *MsgCreateTenantWithMintableContract, opts ...grpc.CallOption) (*MsgCreateTenantResponse, error)
	// AddTenantAdmin adds a new admin to a tenant.
	AddTenantAdmin(ctx context.Context, in *MsgAddTenantAdmin, opts ...grpc.CallOption) (*MsgAddTenantAdminResponse, error)
	// RemoveTenantAdmin removes an admin from a tenant.
	RemoveTenantAdmin(ctx context.Context, in *MsgRemoveTenantAdmin, opts ...grpc.CallOption) (*MsgRemoveTenantAdminResponse, error)
	// UpdateTenantPayoutPeriod updates the payout period for a tenant.
	UpdateTenantPayoutPeriod(ctx context.Context, in *MsgUpdateTenantPayoutPeriod, opts ...grpc.CallOption) (*MsgUpdateTenantPayoutPeriodResponse, error)
	// DepositToTreasury deposits funds to the treasury.
	DepositToTreasury(ctx context.Context, in *MsgDepositToTreasury, opts ...grpc.CallOption) (*MsgDepositToTreasuryResponse, error)
}

MsgClient is the client API for Msg service.

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

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgCreateTenant

type MsgCreateTenant struct {
	Sender       string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	Denom        string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
	PayoutPeriod uint64 `protobuf:"varint,3,opt,name=payout_period,json=payoutPeriod,proto3" json:"payout_period,omitempty"`
}

MsgCreateTenant is the CreateTenant request type.

func NewMsgCreateTenant

func NewMsgCreateTenant(sender string, denom string, payoutPeriod uint64) *MsgCreateTenant

func (*MsgCreateTenant) Descriptor

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

func (*MsgCreateTenant) GetDenom

func (m *MsgCreateTenant) GetDenom() string

func (*MsgCreateTenant) GetPayoutPeriod

func (m *MsgCreateTenant) GetPayoutPeriod() uint64

func (*MsgCreateTenant) GetSender

func (m *MsgCreateTenant) GetSender() string

func (*MsgCreateTenant) GetSignBytes

func (msg *MsgCreateTenant) GetSignBytes() []byte

func (*MsgCreateTenant) GetSigners

func (msg *MsgCreateTenant) GetSigners() []sdk.AccAddress

func (*MsgCreateTenant) Marshal

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

func (*MsgCreateTenant) MarshalTo

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

func (*MsgCreateTenant) MarshalToSizedBuffer

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

func (*MsgCreateTenant) ProtoMessage

func (*MsgCreateTenant) ProtoMessage()

func (*MsgCreateTenant) Reset

func (m *MsgCreateTenant) Reset()

func (*MsgCreateTenant) Route

func (msg *MsgCreateTenant) Route() string

func (*MsgCreateTenant) Size

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

func (*MsgCreateTenant) String

func (m *MsgCreateTenant) String() string

func (*MsgCreateTenant) Type

func (msg *MsgCreateTenant) Type() string

func (*MsgCreateTenant) Unmarshal

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

func (*MsgCreateTenant) ValidateBasic

func (msg *MsgCreateTenant) ValidateBasic() error

func (*MsgCreateTenant) XXX_DiscardUnknown

func (m *MsgCreateTenant) XXX_DiscardUnknown()

func (*MsgCreateTenant) XXX_Marshal

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

func (*MsgCreateTenant) XXX_Merge

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

func (*MsgCreateTenant) XXX_Size

func (m *MsgCreateTenant) XXX_Size() int

func (*MsgCreateTenant) XXX_Unmarshal

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

type MsgCreateTenantResponse

type MsgCreateTenantResponse struct {
	TenantId uint64 `protobuf:"varint,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
}

MsgCreateTenantResponse defines the response structure for executing a MsgCreateTenant message.

func (*MsgCreateTenantResponse) Descriptor

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

func (*MsgCreateTenantResponse) GetTenantId

func (m *MsgCreateTenantResponse) GetTenantId() uint64

func (*MsgCreateTenantResponse) Marshal

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

func (*MsgCreateTenantResponse) MarshalTo

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

func (*MsgCreateTenantResponse) MarshalToSizedBuffer

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

func (*MsgCreateTenantResponse) ProtoMessage

func (*MsgCreateTenantResponse) ProtoMessage()

func (*MsgCreateTenantResponse) Reset

func (m *MsgCreateTenantResponse) Reset()

func (*MsgCreateTenantResponse) Size

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

func (*MsgCreateTenantResponse) String

func (m *MsgCreateTenantResponse) String() string

func (*MsgCreateTenantResponse) Unmarshal

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

func (*MsgCreateTenantResponse) XXX_DiscardUnknown

func (m *MsgCreateTenantResponse) XXX_DiscardUnknown()

func (*MsgCreateTenantResponse) XXX_Marshal

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

func (*MsgCreateTenantResponse) XXX_Merge

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

func (*MsgCreateTenantResponse) XXX_Size

func (m *MsgCreateTenantResponse) XXX_Size() int

func (*MsgCreateTenantResponse) XXX_Unmarshal

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

type MsgCreateTenantWithMintableContract

type MsgCreateTenantWithMintableContract struct {
	Sender       string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	Denom        string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
	PayoutPeriod uint64 `protobuf:"varint,3,opt,name=payout_period,json=payoutPeriod,proto3" json:"payout_period,omitempty"`
	// Types that are valid to be assigned to XContractAddress:
	//	*MsgCreateTenantWithMintableContract_ContractAddress
	XContractAddress isMsgCreateTenantWithMintableContract_XContractAddress `protobuf_oneof:"_contract_address"`
}

MsgCreateTenantWithMintableContract is the CreateTenantWithMintableContract request type.

func NewMsgCreateTenantWithMintableContract

func NewMsgCreateTenantWithMintableContract(sender string, denom string, payoutPeriod uint64, contractAddress string) *MsgCreateTenantWithMintableContract

func (*MsgCreateTenantWithMintableContract) Descriptor

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

func (*MsgCreateTenantWithMintableContract) GetContractAddress

func (m *MsgCreateTenantWithMintableContract) GetContractAddress() string

func (*MsgCreateTenantWithMintableContract) GetDenom

func (*MsgCreateTenantWithMintableContract) GetPayoutPeriod

func (m *MsgCreateTenantWithMintableContract) GetPayoutPeriod() uint64

func (*MsgCreateTenantWithMintableContract) GetSender

func (*MsgCreateTenantWithMintableContract) GetSignBytes

func (msg *MsgCreateTenantWithMintableContract) GetSignBytes() []byte

func (*MsgCreateTenantWithMintableContract) GetSigners

func (*MsgCreateTenantWithMintableContract) GetXContractAddress

func (m *MsgCreateTenantWithMintableContract) GetXContractAddress() isMsgCreateTenantWithMintableContract_XContractAddress

func (*MsgCreateTenantWithMintableContract) Marshal

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

func (*MsgCreateTenantWithMintableContract) MarshalTo

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

func (*MsgCreateTenantWithMintableContract) MarshalToSizedBuffer

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

func (*MsgCreateTenantWithMintableContract) ProtoMessage

func (*MsgCreateTenantWithMintableContract) ProtoMessage()

func (*MsgCreateTenantWithMintableContract) Reset

func (*MsgCreateTenantWithMintableContract) Route

func (*MsgCreateTenantWithMintableContract) Size

func (*MsgCreateTenantWithMintableContract) String

func (*MsgCreateTenantWithMintableContract) Type

func (*MsgCreateTenantWithMintableContract) Unmarshal

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

func (*MsgCreateTenantWithMintableContract) ValidateBasic

func (msg *MsgCreateTenantWithMintableContract) ValidateBasic() error

func (*MsgCreateTenantWithMintableContract) XXX_DiscardUnknown

func (m *MsgCreateTenantWithMintableContract) XXX_DiscardUnknown()

func (*MsgCreateTenantWithMintableContract) XXX_Marshal

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

func (*MsgCreateTenantWithMintableContract) XXX_Merge

func (*MsgCreateTenantWithMintableContract) XXX_OneofWrappers

func (*MsgCreateTenantWithMintableContract) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*MsgCreateTenantWithMintableContract) XXX_Size

func (*MsgCreateTenantWithMintableContract) XXX_Unmarshal

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

type MsgCreateTenantWithMintableContract_ContractAddress

type MsgCreateTenantWithMintableContract_ContractAddress struct {
	ContractAddress string `protobuf:"bytes,4,opt,name=contract_address,json=contractAddress,proto3,oneof" json:"contract_address,omitempty"`
}

func (*MsgCreateTenantWithMintableContract_ContractAddress) MarshalTo

func (*MsgCreateTenantWithMintableContract_ContractAddress) MarshalToSizedBuffer

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

func (*MsgCreateTenantWithMintableContract_ContractAddress) Size

type MsgDepositToTreasury

type MsgDepositToTreasury struct {
	Sender   string     `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	TenantId uint64     `protobuf:"varint,2,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	Amount   types.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"`
}

MsgPayout is the Payout request type.

func NewMsgDepositToTreasury

func NewMsgDepositToTreasury(sender string, tenantId uint64, amount sdk.Coin) *MsgDepositToTreasury

func (*MsgDepositToTreasury) Descriptor

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

func (*MsgDepositToTreasury) GetAmount

func (m *MsgDepositToTreasury) GetAmount() types.Coin

func (*MsgDepositToTreasury) GetSender

func (m *MsgDepositToTreasury) GetSender() string

func (*MsgDepositToTreasury) GetSignBytes

func (msg *MsgDepositToTreasury) GetSignBytes() []byte

func (*MsgDepositToTreasury) GetSigners

func (msg *MsgDepositToTreasury) GetSigners() []sdk.AccAddress

func (*MsgDepositToTreasury) GetTenantId

func (m *MsgDepositToTreasury) GetTenantId() uint64

func (*MsgDepositToTreasury) Marshal

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

func (*MsgDepositToTreasury) MarshalTo

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

func (*MsgDepositToTreasury) MarshalToSizedBuffer

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

func (*MsgDepositToTreasury) ProtoMessage

func (*MsgDepositToTreasury) ProtoMessage()

func (*MsgDepositToTreasury) Reset

func (m *MsgDepositToTreasury) Reset()

func (*MsgDepositToTreasury) Route

func (msg *MsgDepositToTreasury) Route() string

func (*MsgDepositToTreasury) Size

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

func (*MsgDepositToTreasury) String

func (m *MsgDepositToTreasury) String() string

func (*MsgDepositToTreasury) Type

func (msg *MsgDepositToTreasury) Type() string

func (*MsgDepositToTreasury) Unmarshal

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

func (*MsgDepositToTreasury) ValidateBasic

func (msg *MsgDepositToTreasury) ValidateBasic() error

func (*MsgDepositToTreasury) XXX_DiscardUnknown

func (m *MsgDepositToTreasury) XXX_DiscardUnknown()

func (*MsgDepositToTreasury) XXX_Marshal

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

func (*MsgDepositToTreasury) XXX_Merge

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

func (*MsgDepositToTreasury) XXX_Size

func (m *MsgDepositToTreasury) XXX_Size() int

func (*MsgDepositToTreasury) XXX_Unmarshal

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

type MsgDepositToTreasuryResponse

type MsgDepositToTreasuryResponse struct {
}

MsgPayoutResponse defines the response structure for executing a MsgPayout message.

func (*MsgDepositToTreasuryResponse) Descriptor

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

func (*MsgDepositToTreasuryResponse) Marshal

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

func (*MsgDepositToTreasuryResponse) MarshalTo

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

func (*MsgDepositToTreasuryResponse) MarshalToSizedBuffer

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

func (*MsgDepositToTreasuryResponse) ProtoMessage

func (*MsgDepositToTreasuryResponse) ProtoMessage()

func (*MsgDepositToTreasuryResponse) Reset

func (m *MsgDepositToTreasuryResponse) Reset()

func (*MsgDepositToTreasuryResponse) Size

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

func (*MsgDepositToTreasuryResponse) String

func (*MsgDepositToTreasuryResponse) Unmarshal

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

func (*MsgDepositToTreasuryResponse) XXX_DiscardUnknown

func (m *MsgDepositToTreasuryResponse) XXX_DiscardUnknown()

func (*MsgDepositToTreasuryResponse) XXX_Marshal

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

func (*MsgDepositToTreasuryResponse) XXX_Merge

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

func (*MsgDepositToTreasuryResponse) XXX_Size

func (m *MsgDepositToTreasuryResponse) XXX_Size() int

func (*MsgDepositToTreasuryResponse) XXX_Unmarshal

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

type MsgRecord

type MsgRecord struct {
	Sender          string     `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	TenantId        uint64     `protobuf:"varint,2,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	RequestId       string     `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	Amount          types.Coin `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount"`
	ChainId         string     `protobuf:"bytes,5,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	ContractAddress string     `protobuf:"bytes,6,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	TokenIdHex      string     `protobuf:"bytes,7,opt,name=token_id_hex,json=tokenIdHex,proto3" json:"token_id_hex,omitempty"`
	Metadata        string     `protobuf:"bytes,8,opt,name=metadata,proto3" json:"metadata,omitempty"`
}

MsgRecordRevenue is the RecordRevenue request type.

func NewMsgRecord

func NewMsgRecord(sender string, tenantId uint64, requestId string, amount sdk.Coin, chainId, contractAddress string, tokenIdHex string, metadata string) *MsgRecord

func (*MsgRecord) Descriptor

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

func (*MsgRecord) GetAmount

func (m *MsgRecord) GetAmount() types.Coin

func (*MsgRecord) GetChainId

func (m *MsgRecord) GetChainId() string

func (*MsgRecord) GetContractAddress

func (m *MsgRecord) GetContractAddress() string

func (*MsgRecord) GetMetadata

func (m *MsgRecord) GetMetadata() string

func (*MsgRecord) GetRequestId

func (m *MsgRecord) GetRequestId() string

func (*MsgRecord) GetSender

func (m *MsgRecord) GetSender() string

func (*MsgRecord) GetSignBytes

func (msg *MsgRecord) GetSignBytes() []byte

func (*MsgRecord) GetSigners

func (msg *MsgRecord) GetSigners() []sdk.AccAddress

func (*MsgRecord) GetTenantId

func (m *MsgRecord) GetTenantId() uint64

func (*MsgRecord) GetTokenIdHex

func (m *MsgRecord) GetTokenIdHex() string

func (*MsgRecord) Marshal

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

func (*MsgRecord) MarshalTo

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

func (*MsgRecord) MarshalToSizedBuffer

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

func (*MsgRecord) ProtoMessage

func (*MsgRecord) ProtoMessage()

func (*MsgRecord) Reset

func (m *MsgRecord) Reset()

func (*MsgRecord) Route

func (msg *MsgRecord) Route() string

func (*MsgRecord) Size

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

func (*MsgRecord) String

func (m *MsgRecord) String() string

func (*MsgRecord) Type

func (msg *MsgRecord) Type() string

func (*MsgRecord) Unmarshal

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

func (*MsgRecord) ValidateBasic

func (msg *MsgRecord) ValidateBasic() error

func (*MsgRecord) XXX_DiscardUnknown

func (m *MsgRecord) XXX_DiscardUnknown()

func (*MsgRecord) XXX_Marshal

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

func (*MsgRecord) XXX_Merge

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

func (*MsgRecord) XXX_Size

func (m *MsgRecord) XXX_Size() int

func (*MsgRecord) XXX_Unmarshal

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

type MsgRecordResponse

type MsgRecordResponse struct {
	UtxrId    uint64 `protobuf:"varint,1,opt,name=utxr_id,json=utxrId,proto3" json:"utxr_id,omitempty"`
	Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"`
}

MsgRecordResponse defines the response structure for executing a MsgRecord message.

func (*MsgRecordResponse) Descriptor

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

func (*MsgRecordResponse) GetRecipient

func (m *MsgRecordResponse) GetRecipient() string

func (*MsgRecordResponse) GetUtxrId

func (m *MsgRecordResponse) GetUtxrId() uint64

func (*MsgRecordResponse) Marshal

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

func (*MsgRecordResponse) MarshalTo

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

func (*MsgRecordResponse) MarshalToSizedBuffer

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

func (*MsgRecordResponse) ProtoMessage

func (*MsgRecordResponse) ProtoMessage()

func (*MsgRecordResponse) Reset

func (m *MsgRecordResponse) Reset()

func (*MsgRecordResponse) Size

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

func (*MsgRecordResponse) String

func (m *MsgRecordResponse) String() string

func (*MsgRecordResponse) Unmarshal

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

func (*MsgRecordResponse) XXX_DiscardUnknown

func (m *MsgRecordResponse) XXX_DiscardUnknown()

func (*MsgRecordResponse) XXX_Marshal

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

func (*MsgRecordResponse) XXX_Merge

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

func (*MsgRecordResponse) XXX_Size

func (m *MsgRecordResponse) XXX_Size() int

func (*MsgRecordResponse) XXX_Unmarshal

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

type MsgRemoveTenantAdmin

type MsgRemoveTenantAdmin struct {
	Sender        string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	TenantId      uint64 `protobuf:"varint,2,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	AdminToRemove string `protobuf:"bytes,3,opt,name=admin_to_remove,json=adminToRemove,proto3" json:"admin_to_remove,omitempty"`
}

MsgRemoveTenantAdmin is the RemoveTenantAdmin request type.

func NewMsgRemoveTenantAdmin

func NewMsgRemoveTenantAdmin(sender string, tenantId uint64, admin string) *MsgRemoveTenantAdmin

func (*MsgRemoveTenantAdmin) Descriptor

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

func (*MsgRemoveTenantAdmin) GetAdminToRemove

func (m *MsgRemoveTenantAdmin) GetAdminToRemove() string

func (*MsgRemoveTenantAdmin) GetSender

func (m *MsgRemoveTenantAdmin) GetSender() string

func (*MsgRemoveTenantAdmin) GetSignBytes

func (msg *MsgRemoveTenantAdmin) GetSignBytes() []byte

func (*MsgRemoveTenantAdmin) GetSigners

func (msg *MsgRemoveTenantAdmin) GetSigners() []sdk.AccAddress

func (*MsgRemoveTenantAdmin) GetTenantId

func (m *MsgRemoveTenantAdmin) GetTenantId() uint64

func (*MsgRemoveTenantAdmin) Marshal

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

func (*MsgRemoveTenantAdmin) MarshalTo

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

func (*MsgRemoveTenantAdmin) MarshalToSizedBuffer

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

func (*MsgRemoveTenantAdmin) ProtoMessage

func (*MsgRemoveTenantAdmin) ProtoMessage()

func (*MsgRemoveTenantAdmin) Reset

func (m *MsgRemoveTenantAdmin) Reset()

func (*MsgRemoveTenantAdmin) Route

func (msg *MsgRemoveTenantAdmin) Route() string

func (*MsgRemoveTenantAdmin) Size

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

func (*MsgRemoveTenantAdmin) String

func (m *MsgRemoveTenantAdmin) String() string

func (*MsgRemoveTenantAdmin) Type

func (msg *MsgRemoveTenantAdmin) Type() string

func (*MsgRemoveTenantAdmin) Unmarshal

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

func (*MsgRemoveTenantAdmin) ValidateBasic

func (msg *MsgRemoveTenantAdmin) ValidateBasic() error

func (*MsgRemoveTenantAdmin) XXX_DiscardUnknown

func (m *MsgRemoveTenantAdmin) XXX_DiscardUnknown()

func (*MsgRemoveTenantAdmin) XXX_Marshal

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

func (*MsgRemoveTenantAdmin) XXX_Merge

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

func (*MsgRemoveTenantAdmin) XXX_Size

func (m *MsgRemoveTenantAdmin) XXX_Size() int

func (*MsgRemoveTenantAdmin) XXX_Unmarshal

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

type MsgRemoveTenantAdminResponse

type MsgRemoveTenantAdminResponse struct {
}

MsgRemoveTenantAdminResponse defines the response structure for executing a MsgRemoveTenantAdmin message.

func (*MsgRemoveTenantAdminResponse) Descriptor

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

func (*MsgRemoveTenantAdminResponse) Marshal

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

func (*MsgRemoveTenantAdminResponse) MarshalTo

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

func (*MsgRemoveTenantAdminResponse) MarshalToSizedBuffer

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

func (*MsgRemoveTenantAdminResponse) ProtoMessage

func (*MsgRemoveTenantAdminResponse) ProtoMessage()

func (*MsgRemoveTenantAdminResponse) Reset

func (m *MsgRemoveTenantAdminResponse) Reset()

func (*MsgRemoveTenantAdminResponse) Size

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

func (*MsgRemoveTenantAdminResponse) String

func (*MsgRemoveTenantAdminResponse) Unmarshal

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

func (*MsgRemoveTenantAdminResponse) XXX_DiscardUnknown

func (m *MsgRemoveTenantAdminResponse) XXX_DiscardUnknown()

func (*MsgRemoveTenantAdminResponse) XXX_Marshal

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

func (*MsgRemoveTenantAdminResponse) XXX_Merge

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

func (*MsgRemoveTenantAdminResponse) XXX_Size

func (m *MsgRemoveTenantAdminResponse) XXX_Size() int

func (*MsgRemoveTenantAdminResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// Record records a revenue for a tenant.
	Record(context.Context, *MsgRecord) (*MsgRecordResponse, error)
	// Cancel cancels a revenue record for a tenant.
	Cancel(context.Context, *MsgCancel) (*MsgCancelResponse, error)
	// CreateTenant creates a new tenant.
	CreateTenant(context.Context, *MsgCreateTenant) (*MsgCreateTenantResponse, error)
	// CreateTenantWithMintableContract creates a new tenant with a mintable
	// contract.
	CreateTenantWithMintableContract(context.Context, *MsgCreateTenantWithMintableContract) (*MsgCreateTenantResponse, error)
	// AddTenantAdmin adds a new admin to a tenant.
	AddTenantAdmin(context.Context, *MsgAddTenantAdmin) (*MsgAddTenantAdminResponse, error)
	// RemoveTenantAdmin removes an admin from a tenant.
	RemoveTenantAdmin(context.Context, *MsgRemoveTenantAdmin) (*MsgRemoveTenantAdminResponse, error)
	// UpdateTenantPayoutPeriod updates the payout period for a tenant.
	UpdateTenantPayoutPeriod(context.Context, *MsgUpdateTenantPayoutPeriod) (*MsgUpdateTenantPayoutPeriodResponse, error)
	// DepositToTreasury deposits funds to the treasury.
	DepositToTreasury(context.Context, *MsgDepositToTreasury) (*MsgDepositToTreasuryResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateTenantPayoutPeriod

type MsgUpdateTenantPayoutPeriod struct {
	Sender       string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	TenantId     uint64 `protobuf:"varint,2,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	PayoutPeriod uint64 `protobuf:"varint,3,opt,name=payout_period,json=payoutPeriod,proto3" json:"payout_period,omitempty"`
}

MsgUpdateTenantPayoutPeriod is the UpdateTenantPayoutPeriod request type.

func NewMsgUpdateTenantPayoutPeriod

func NewMsgUpdateTenantPayoutPeriod(sender string, tenantId uint64, payoutPeriod uint64) *MsgUpdateTenantPayoutPeriod

func (*MsgUpdateTenantPayoutPeriod) Descriptor

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

func (*MsgUpdateTenantPayoutPeriod) GetPayoutPeriod

func (m *MsgUpdateTenantPayoutPeriod) GetPayoutPeriod() uint64

func (*MsgUpdateTenantPayoutPeriod) GetSender

func (m *MsgUpdateTenantPayoutPeriod) GetSender() string

func (*MsgUpdateTenantPayoutPeriod) GetSignBytes

func (msg *MsgUpdateTenantPayoutPeriod) GetSignBytes() []byte

func (*MsgUpdateTenantPayoutPeriod) GetSigners

func (msg *MsgUpdateTenantPayoutPeriod) GetSigners() []sdk.AccAddress

func (*MsgUpdateTenantPayoutPeriod) GetTenantId

func (m *MsgUpdateTenantPayoutPeriod) GetTenantId() uint64

func (*MsgUpdateTenantPayoutPeriod) Marshal

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

func (*MsgUpdateTenantPayoutPeriod) MarshalTo

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

func (*MsgUpdateTenantPayoutPeriod) MarshalToSizedBuffer

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

func (*MsgUpdateTenantPayoutPeriod) ProtoMessage

func (*MsgUpdateTenantPayoutPeriod) ProtoMessage()

func (*MsgUpdateTenantPayoutPeriod) Reset

func (m *MsgUpdateTenantPayoutPeriod) Reset()

func (*MsgUpdateTenantPayoutPeriod) Route

func (msg *MsgUpdateTenantPayoutPeriod) Route() string

func (*MsgUpdateTenantPayoutPeriod) Size

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

func (*MsgUpdateTenantPayoutPeriod) String

func (m *MsgUpdateTenantPayoutPeriod) String() string

func (*MsgUpdateTenantPayoutPeriod) Type

func (msg *MsgUpdateTenantPayoutPeriod) Type() string

func (*MsgUpdateTenantPayoutPeriod) Unmarshal

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

func (*MsgUpdateTenantPayoutPeriod) ValidateBasic

func (msg *MsgUpdateTenantPayoutPeriod) ValidateBasic() error

func (*MsgUpdateTenantPayoutPeriod) XXX_DiscardUnknown

func (m *MsgUpdateTenantPayoutPeriod) XXX_DiscardUnknown()

func (*MsgUpdateTenantPayoutPeriod) XXX_Marshal

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

func (*MsgUpdateTenantPayoutPeriod) XXX_Merge

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

func (*MsgUpdateTenantPayoutPeriod) XXX_Size

func (m *MsgUpdateTenantPayoutPeriod) XXX_Size() int

func (*MsgUpdateTenantPayoutPeriod) XXX_Unmarshal

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

type MsgUpdateTenantPayoutPeriodResponse

type MsgUpdateTenantPayoutPeriodResponse struct {
}

MsgUpdateTenantPayoutPeriodResponse defines the response structure for executing a MsgUpdateTenantPayoutPeriod message.

func (*MsgUpdateTenantPayoutPeriodResponse) Descriptor

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

func (*MsgUpdateTenantPayoutPeriodResponse) Marshal

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

func (*MsgUpdateTenantPayoutPeriodResponse) MarshalTo

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

func (*MsgUpdateTenantPayoutPeriodResponse) MarshalToSizedBuffer

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

func (*MsgUpdateTenantPayoutPeriodResponse) ProtoMessage

func (*MsgUpdateTenantPayoutPeriodResponse) ProtoMessage()

func (*MsgUpdateTenantPayoutPeriodResponse) Reset

func (*MsgUpdateTenantPayoutPeriodResponse) Size

func (*MsgUpdateTenantPayoutPeriodResponse) String

func (*MsgUpdateTenantPayoutPeriodResponse) Unmarshal

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

func (*MsgUpdateTenantPayoutPeriodResponse) XXX_DiscardUnknown

func (m *MsgUpdateTenantPayoutPeriodResponse) XXX_DiscardUnknown()

func (*MsgUpdateTenantPayoutPeriodResponse) XXX_Marshal

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

func (*MsgUpdateTenantPayoutPeriodResponse) XXX_Merge

func (*MsgUpdateTenantPayoutPeriodResponse) XXX_Size

func (*MsgUpdateTenantPayoutPeriodResponse) XXX_Unmarshal

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

type NftOwnershipKeeper

type NftOwnershipKeeper interface {
	CheckValidChainId(ctx sdk.Context, chainId string) bool
	OwnerOf(ctx sdk.Context, chainId string, contractAddr string, tokenIdHex string) (*common.Address, error)
}

NftOwnershipKeeper defines the expected interface needed to retrieve owner of NFT.

type Params

type Params struct {
	GasPrice            types.Coin                             `protobuf:"bytes,1,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price"`
	OracleFeePercentage github_com_cosmos_cosmos_sdk_types.Dec `` /* 160-byte string literal not displayed */
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func (*Params) Descriptor

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

func (*Params) GetGasPrice

func (m *Params) GetGasPrice() types.Coin

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (Params) String

func (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Queries a UTXR by tenant_id and request_id.
	UTXR(ctx context.Context, in *QueryUTXRRRequest, opts ...grpc.CallOption) (*QueryUTXRResponse, error)
	// Queries a list of TxRecord items.
	UTXRs(ctx context.Context, in *QueryUTXRsRequest, opts ...grpc.CallOption) (*QueryUTXRsResponse, error)
	// Queries a tenant by tenant_id.
	Tenant(ctx context.Context, in *QueryTenantRequest, opts ...grpc.CallOption) (*QueryTenantResponse, error)
	// Queries a all tenants.
	Tenants(ctx context.Context, in *QueryTenantsRequest, opts ...grpc.CallOption) (*QueryTenantsResponse, error)
}

QueryClient is the client API for Query service.

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

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

type QueryParamsResponse struct {
	// params holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Queries a UTXR by tenant_id and request_id.
	UTXR(context.Context, *QueryUTXRRRequest) (*QueryUTXRResponse, error)
	// Queries a list of TxRecord items.
	UTXRs(context.Context, *QueryUTXRsRequest) (*QueryUTXRsResponse, error)
	// Queries a tenant by tenant_id.
	Tenant(context.Context, *QueryTenantRequest) (*QueryTenantResponse, error)
	// Queries a all tenants.
	Tenants(context.Context, *QueryTenantsRequest) (*QueryTenantsResponse, error)
}

QueryServer is the server API for Query service.

type QueryTenantRequest

type QueryTenantRequest struct {
	TenantId uint64 `protobuf:"varint,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
}

QueryTenantRequest is request type for the Query/Tenant RPC method.

func (*QueryTenantRequest) Descriptor

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

func (*QueryTenantRequest) GetTenantId

func (m *QueryTenantRequest) GetTenantId() uint64

func (*QueryTenantRequest) Marshal

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

func (*QueryTenantRequest) MarshalTo

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

func (*QueryTenantRequest) MarshalToSizedBuffer

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

func (*QueryTenantRequest) ProtoMessage

func (*QueryTenantRequest) ProtoMessage()

func (*QueryTenantRequest) Reset

func (m *QueryTenantRequest) Reset()

func (*QueryTenantRequest) Size

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

func (*QueryTenantRequest) String

func (m *QueryTenantRequest) String() string

func (*QueryTenantRequest) Unmarshal

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

func (*QueryTenantRequest) XXX_DiscardUnknown

func (m *QueryTenantRequest) XXX_DiscardUnknown()

func (*QueryTenantRequest) XXX_Marshal

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

func (*QueryTenantRequest) XXX_Merge

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

func (*QueryTenantRequest) XXX_Size

func (m *QueryTenantRequest) XXX_Size() int

func (*QueryTenantRequest) XXX_Unmarshal

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

type QueryTenantResponse

type QueryTenantResponse struct {
	Tenant TenantWithTreasury `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant"`
}

QueryTenantResponse is response type for the Query/Tenant RPC method.

func (*QueryTenantResponse) Descriptor

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

func (*QueryTenantResponse) GetTenant

func (m *QueryTenantResponse) GetTenant() TenantWithTreasury

func (*QueryTenantResponse) Marshal

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

func (*QueryTenantResponse) MarshalTo

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

func (*QueryTenantResponse) MarshalToSizedBuffer

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

func (*QueryTenantResponse) ProtoMessage

func (*QueryTenantResponse) ProtoMessage()

func (*QueryTenantResponse) Reset

func (m *QueryTenantResponse) Reset()

func (*QueryTenantResponse) Size

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

func (*QueryTenantResponse) String

func (m *QueryTenantResponse) String() string

func (*QueryTenantResponse) Unmarshal

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

func (*QueryTenantResponse) XXX_DiscardUnknown

func (m *QueryTenantResponse) XXX_DiscardUnknown()

func (*QueryTenantResponse) XXX_Marshal

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

func (*QueryTenantResponse) XXX_Merge

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

func (*QueryTenantResponse) XXX_Size

func (m *QueryTenantResponse) XXX_Size() int

func (*QueryTenantResponse) XXX_Unmarshal

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

type QueryTenantsRequest

type QueryTenantsRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryTenantsRequest is request type for the Query/Tenants RPC method.

func (*QueryTenantsRequest) Descriptor

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

func (*QueryTenantsRequest) GetPagination

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

func (*QueryTenantsRequest) Marshal

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

func (*QueryTenantsRequest) MarshalTo

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

func (*QueryTenantsRequest) MarshalToSizedBuffer

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

func (*QueryTenantsRequest) ProtoMessage

func (*QueryTenantsRequest) ProtoMessage()

func (*QueryTenantsRequest) Reset

func (m *QueryTenantsRequest) Reset()

func (*QueryTenantsRequest) Size

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

func (*QueryTenantsRequest) String

func (m *QueryTenantsRequest) String() string

func (*QueryTenantsRequest) Unmarshal

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

func (*QueryTenantsRequest) XXX_DiscardUnknown

func (m *QueryTenantsRequest) XXX_DiscardUnknown()

func (*QueryTenantsRequest) XXX_Marshal

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

func (*QueryTenantsRequest) XXX_Merge

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

func (*QueryTenantsRequest) XXX_Size

func (m *QueryTenantsRequest) XXX_Size() int

func (*QueryTenantsRequest) XXX_Unmarshal

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

type QueryTenantsResponse

type QueryTenantsResponse struct {
	Tenants    []TenantWithTreasury `protobuf:"bytes,1,rep,name=tenants,proto3" json:"tenants"`
	Pagination *query.PageResponse  `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryTenantsResponse is response type for the Query/Tenants RPC method.

func (*QueryTenantsResponse) Descriptor

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

func (*QueryTenantsResponse) GetPagination

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

func (*QueryTenantsResponse) GetTenants

func (m *QueryTenantsResponse) GetTenants() []TenantWithTreasury

func (*QueryTenantsResponse) Marshal

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

func (*QueryTenantsResponse) MarshalTo

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

func (*QueryTenantsResponse) MarshalToSizedBuffer

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

func (*QueryTenantsResponse) ProtoMessage

func (*QueryTenantsResponse) ProtoMessage()

func (*QueryTenantsResponse) Reset

func (m *QueryTenantsResponse) Reset()

func (*QueryTenantsResponse) Size

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

func (*QueryTenantsResponse) String

func (m *QueryTenantsResponse) String() string

func (*QueryTenantsResponse) Unmarshal

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

func (*QueryTenantsResponse) XXX_DiscardUnknown

func (m *QueryTenantsResponse) XXX_DiscardUnknown()

func (*QueryTenantsResponse) XXX_Marshal

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

func (*QueryTenantsResponse) XXX_Merge

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

func (*QueryTenantsResponse) XXX_Size

func (m *QueryTenantsResponse) XXX_Size() int

func (*QueryTenantsResponse) XXX_Unmarshal

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

type QueryUTXRRRequest

type QueryUTXRRRequest struct {
	TenantId  uint64 `protobuf:"varint,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	RequestId string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
}

QueryGetUTXRRequest is request type for the Query/UTXR RPC method.

func (*QueryUTXRRRequest) Descriptor

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

func (*QueryUTXRRRequest) GetRequestId

func (m *QueryUTXRRRequest) GetRequestId() string

func (*QueryUTXRRRequest) GetTenantId

func (m *QueryUTXRRRequest) GetTenantId() uint64

func (*QueryUTXRRRequest) Marshal

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

func (*QueryUTXRRRequest) MarshalTo

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

func (*QueryUTXRRRequest) MarshalToSizedBuffer

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

func (*QueryUTXRRRequest) ProtoMessage

func (*QueryUTXRRRequest) ProtoMessage()

func (*QueryUTXRRRequest) Reset

func (m *QueryUTXRRRequest) Reset()

func (*QueryUTXRRRequest) Size

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

func (*QueryUTXRRRequest) String

func (m *QueryUTXRRRequest) String() string

func (*QueryUTXRRRequest) Unmarshal

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

func (*QueryUTXRRRequest) XXX_DiscardUnknown

func (m *QueryUTXRRRequest) XXX_DiscardUnknown()

func (*QueryUTXRRRequest) XXX_Marshal

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

func (*QueryUTXRRRequest) XXX_Merge

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

func (*QueryUTXRRRequest) XXX_Size

func (m *QueryUTXRRRequest) XXX_Size() int

func (*QueryUTXRRRequest) XXX_Unmarshal

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

type QueryUTXRResponse

type QueryUTXRResponse struct {
	Utxr UTXR `protobuf:"bytes,1,opt,name=utxr,proto3" json:"utxr"`
}

QueryGetUTXRResponse is response type for the Query/UTXR RPC method.

func (*QueryUTXRResponse) Descriptor

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

func (*QueryUTXRResponse) GetUtxr

func (m *QueryUTXRResponse) GetUtxr() UTXR

func (*QueryUTXRResponse) Marshal

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

func (*QueryUTXRResponse) MarshalTo

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

func (*QueryUTXRResponse) MarshalToSizedBuffer

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

func (*QueryUTXRResponse) ProtoMessage

func (*QueryUTXRResponse) ProtoMessage()

func (*QueryUTXRResponse) Reset

func (m *QueryUTXRResponse) Reset()

func (*QueryUTXRResponse) Size

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

func (*QueryUTXRResponse) String

func (m *QueryUTXRResponse) String() string

func (*QueryUTXRResponse) Unmarshal

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

func (*QueryUTXRResponse) XXX_DiscardUnknown

func (m *QueryUTXRResponse) XXX_DiscardUnknown()

func (*QueryUTXRResponse) XXX_Marshal

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

func (*QueryUTXRResponse) XXX_Merge

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

func (*QueryUTXRResponse) XXX_Size

func (m *QueryUTXRResponse) XXX_Size() int

func (*QueryUTXRResponse) XXX_Unmarshal

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

type QueryUTXRsRequest

type QueryUTXRsRequest struct {
	TenantId   uint64             `protobuf:"varint,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryAllUTXRRequest is request type for the Query/AllUTXR RPC method.

func (*QueryUTXRsRequest) Descriptor

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

func (*QueryUTXRsRequest) GetPagination

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

func (*QueryUTXRsRequest) GetTenantId

func (m *QueryUTXRsRequest) GetTenantId() uint64

func (*QueryUTXRsRequest) Marshal

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

func (*QueryUTXRsRequest) MarshalTo

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

func (*QueryUTXRsRequest) MarshalToSizedBuffer

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

func (*QueryUTXRsRequest) ProtoMessage

func (*QueryUTXRsRequest) ProtoMessage()

func (*QueryUTXRsRequest) Reset

func (m *QueryUTXRsRequest) Reset()

func (*QueryUTXRsRequest) Size

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

func (*QueryUTXRsRequest) String

func (m *QueryUTXRsRequest) String() string

func (*QueryUTXRsRequest) Unmarshal

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

func (*QueryUTXRsRequest) XXX_DiscardUnknown

func (m *QueryUTXRsRequest) XXX_DiscardUnknown()

func (*QueryUTXRsRequest) XXX_Marshal

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

func (*QueryUTXRsRequest) XXX_Merge

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

func (*QueryUTXRsRequest) XXX_Size

func (m *QueryUTXRsRequest) XXX_Size() int

func (*QueryUTXRsRequest) XXX_Unmarshal

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

type QueryUTXRsResponse

type QueryUTXRsResponse struct {
	Utxrs      []UTXR              `protobuf:"bytes,1,rep,name=utxrs,proto3" json:"utxrs"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryAllUTXRResponse is response type for the Query/UTXRAll RPC method.

func (*QueryUTXRsResponse) Descriptor

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

func (*QueryUTXRsResponse) GetPagination

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

func (*QueryUTXRsResponse) GetUtxrs

func (m *QueryUTXRsResponse) GetUtxrs() []UTXR

func (*QueryUTXRsResponse) Marshal

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

func (*QueryUTXRsResponse) MarshalTo

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

func (*QueryUTXRsResponse) MarshalToSizedBuffer

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

func (*QueryUTXRsResponse) ProtoMessage

func (*QueryUTXRsResponse) ProtoMessage()

func (*QueryUTXRsResponse) Reset

func (m *QueryUTXRsResponse) Reset()

func (*QueryUTXRsResponse) Size

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

func (*QueryUTXRsResponse) String

func (m *QueryUTXRsResponse) String() string

func (*QueryUTXRsResponse) Unmarshal

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

func (*QueryUTXRsResponse) XXX_DiscardUnknown

func (m *QueryUTXRsResponse) XXX_DiscardUnknown()

func (*QueryUTXRsResponse) XXX_Marshal

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

func (*QueryUTXRsResponse) XXX_Merge

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

func (*QueryUTXRsResponse) XXX_Size

func (m *QueryUTXRsResponse) XXX_Size() int

func (*QueryUTXRsResponse) XXX_Unmarshal

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

type Tenant

type Tenant struct {
	Id              uint64   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Admins          []string `protobuf:"bytes,2,rep,name=admins,proto3" json:"admins,omitempty"`
	Denom           string   `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"`
	PayoutPeriod    uint64   `protobuf:"varint,4,opt,name=payout_period,json=payoutPeriod,proto3" json:"payout_period,omitempty"`
	PayoutMethod    string   `protobuf:"bytes,5,opt,name=payout_method,json=payoutMethod,proto3" json:"payout_method,omitempty"`
	ContractAddress string   `protobuf:"bytes,6,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
}

Tenant defines the tenant parameters.

func (*Tenant) Descriptor

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

func (*Tenant) Equal

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

func (*Tenant) GetAdmins

func (m *Tenant) GetAdmins() []string

func (*Tenant) GetContractAddress

func (m *Tenant) GetContractAddress() string

func (*Tenant) GetDenom

func (m *Tenant) GetDenom() string

func (*Tenant) GetId

func (m *Tenant) GetId() uint64

func (*Tenant) GetPayoutMethod

func (m *Tenant) GetPayoutMethod() string

func (*Tenant) GetPayoutPeriod

func (m *Tenant) GetPayoutPeriod() uint64

func (*Tenant) Marshal

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

func (*Tenant) MarshalTo

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

func (*Tenant) MarshalToSizedBuffer

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

func (*Tenant) ProtoMessage

func (*Tenant) ProtoMessage()

func (*Tenant) Reset

func (m *Tenant) Reset()

func (*Tenant) Size

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

func (Tenant) String

func (t Tenant) String() string

Tenant is a struct that contains the information of a tenant

func (*Tenant) Unmarshal

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

func (*Tenant) XXX_DiscardUnknown

func (m *Tenant) XXX_DiscardUnknown()

func (*Tenant) XXX_Marshal

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

func (*Tenant) XXX_Merge

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

func (*Tenant) XXX_Size

func (m *Tenant) XXX_Size() int

func (*Tenant) XXX_Unmarshal

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

type TenantWithTreasury

type TenantWithTreasury struct {
	Tenant   *Tenant   `protobuf:"bytes,1,opt,name=tenant,proto3" json:"tenant,omitempty"`
	Treasury *Treasury `protobuf:"bytes,2,opt,name=treasury,proto3" json:"treasury,omitempty"`
}

func (*TenantWithTreasury) Descriptor

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

func (*TenantWithTreasury) GetTenant

func (m *TenantWithTreasury) GetTenant() *Tenant

func (*TenantWithTreasury) GetTreasury

func (m *TenantWithTreasury) GetTreasury() *Treasury

func (*TenantWithTreasury) Marshal

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

func (*TenantWithTreasury) MarshalTo

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

func (*TenantWithTreasury) MarshalToSizedBuffer

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

func (*TenantWithTreasury) ProtoMessage

func (*TenantWithTreasury) ProtoMessage()

func (*TenantWithTreasury) Reset

func (m *TenantWithTreasury) Reset()

func (*TenantWithTreasury) Size

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

func (*TenantWithTreasury) String

func (m *TenantWithTreasury) String() string

func (*TenantWithTreasury) Unmarshal

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

func (*TenantWithTreasury) XXX_DiscardUnknown

func (m *TenantWithTreasury) XXX_DiscardUnknown()

func (*TenantWithTreasury) XXX_Marshal

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

func (*TenantWithTreasury) XXX_Merge

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

func (*TenantWithTreasury) XXX_Size

func (m *TenantWithTreasury) XXX_Size() int

func (*TenantWithTreasury) XXX_Unmarshal

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

type Treasury

type Treasury struct {
	Address string      `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Balance *types.Coin `protobuf:"bytes,2,opt,name=balance,proto3" json:"balance,omitempty"`
}

func (*Treasury) Descriptor

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

func (*Treasury) GetAddress

func (m *Treasury) GetAddress() string

func (*Treasury) GetBalance

func (m *Treasury) GetBalance() *types.Coin

func (*Treasury) Marshal

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

func (*Treasury) MarshalTo

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

func (*Treasury) MarshalToSizedBuffer

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

func (*Treasury) ProtoMessage

func (*Treasury) ProtoMessage()

func (*Treasury) Reset

func (m *Treasury) Reset()

func (*Treasury) Size

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

func (*Treasury) String

func (m *Treasury) String() string

func (*Treasury) Unmarshal

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

func (*Treasury) XXX_DiscardUnknown

func (m *Treasury) XXX_DiscardUnknown()

func (*Treasury) XXX_Marshal

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

func (*Treasury) XXX_Merge

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

func (*Treasury) XXX_Size

func (m *Treasury) XXX_Size() int

func (*Treasury) XXX_Unmarshal

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

type UTXR

type UTXR struct {
	RequestId   string                                          `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	Recipient   github_com_settlus_chain_types.HexAddressString `protobuf:"bytes,2,opt,name=recipient,proto3,customtype=github.com/settlus/chain/types.HexAddressString" json:"recipient"`
	Amount      types.Coin                                      `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"`
	PayoutBlock uint64                                          `protobuf:"varint,4,opt,name=payout_block,json=payoutBlock,proto3" json:"payout_block,omitempty"`
}

UTXR defines the unspent transaction record.

func (*UTXR) Descriptor

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

func (*UTXR) GetAmount

func (m *UTXR) GetAmount() types.Coin

func (*UTXR) GetPayoutBlock

func (m *UTXR) GetPayoutBlock() uint64

func (*UTXR) GetRequestId

func (m *UTXR) GetRequestId() string

func (*UTXR) Marshal

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

func (*UTXR) MarshalTo

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

func (*UTXR) MarshalToSizedBuffer

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

func (*UTXR) ProtoMessage

func (*UTXR) ProtoMessage()

func (*UTXR) Reset

func (m *UTXR) Reset()

func (*UTXR) Size

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

func (*UTXR) String

func (m *UTXR) String() string

func (*UTXR) Unmarshal

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

func (*UTXR) XXX_DiscardUnknown

func (m *UTXR) XXX_DiscardUnknown()

func (*UTXR) XXX_Marshal

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

func (*UTXR) XXX_Merge

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

func (*UTXR) XXX_Size

func (m *UTXR) XXX_Size() int

func (*UTXR) XXX_Unmarshal

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

type UTXRWithTenantAndId

type UTXRWithTenantAndId struct {
	TenantId uint64 `protobuf:"varint,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	Id       uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	Utxr     UTXR   `protobuf:"bytes,3,opt,name=utxr,proto3" json:"utxr"`
}

func (*UTXRWithTenantAndId) Descriptor

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

func (*UTXRWithTenantAndId) GetId

func (m *UTXRWithTenantAndId) GetId() uint64

func (*UTXRWithTenantAndId) GetTenantId

func (m *UTXRWithTenantAndId) GetTenantId() uint64

func (*UTXRWithTenantAndId) GetUtxr

func (m *UTXRWithTenantAndId) GetUtxr() UTXR

func (*UTXRWithTenantAndId) Marshal

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

func (*UTXRWithTenantAndId) MarshalTo

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

func (*UTXRWithTenantAndId) MarshalToSizedBuffer

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

func (*UTXRWithTenantAndId) ProtoMessage

func (*UTXRWithTenantAndId) ProtoMessage()

func (*UTXRWithTenantAndId) Reset

func (m *UTXRWithTenantAndId) Reset()

func (*UTXRWithTenantAndId) Size

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

func (*UTXRWithTenantAndId) String

func (m *UTXRWithTenantAndId) String() string

func (*UTXRWithTenantAndId) Unmarshal

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

func (*UTXRWithTenantAndId) XXX_DiscardUnknown

func (m *UTXRWithTenantAndId) XXX_DiscardUnknown()

func (*UTXRWithTenantAndId) XXX_Marshal

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

func (*UTXRWithTenantAndId) XXX_Merge

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

func (*UTXRWithTenantAndId) XXX_Size

func (m *UTXRWithTenantAndId) XXX_Size() int

func (*UTXRWithTenantAndId) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AddTenantAdmin

func (*UnimplementedMsgServer) Cancel

func (*UnimplementedMsgServer) CreateTenant

func (*UnimplementedMsgServer) CreateTenantWithMintableContract

func (*UnimplementedMsgServer) DepositToTreasury

func (*UnimplementedMsgServer) Record

func (*UnimplementedMsgServer) RemoveTenantAdmin

func (*UnimplementedMsgServer) UpdateTenantPayoutPeriod

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) Tenant

func (*UnimplementedQueryServer) Tenants

func (*UnimplementedQueryServer) UTXR

func (*UnimplementedQueryServer) UTXRs

Jump to

Keyboard shortcuts

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