types

package
v0.2.1-alpha.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: AGPL-3.0 Imports: 35 Imported by: 14

Documentation

Overview

Package mock_types is a generated GoMock package.

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

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

	// 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_payment"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default global index

View Source
const TypeMsgCreatePaymentAccount = "create_payment_account"
View Source
const TypeMsgDeposit = "deposit"
View Source
const TypeMsgDisableRefund = "disable_refund"
View Source
const TypeMsgWithdraw = "withdraw"

Variables

View Source
var (
	ErrInvalidLengthAutoSettleRecord        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAutoSettleRecord          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAutoSettleRecord = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthBase        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowBase          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupBase = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrReachPaymentAccountLimit           = errorsmod.Register(ModuleName, 1200, "reach payment account count limit")
	ErrInvalidState                       = errorsmod.Register(ModuleName, 1201, "invalid state")
	ErrPaymentAccountNotFound             = errorsmod.Register(ModuleName, 1202, "payment account not found")
	ErrStreamRecordNotFound               = errorsmod.Register(ModuleName, 1203, "stream record not found")
	ErrNotPaymentAccountOwner             = errorsmod.Register(ModuleName, 1204, "not payment account owner")
	ErrPaymentAccountAlreadyNonRefundable = errorsmod.Register(ModuleName, 1205, "payment account has already be set as non-refundable")
	ErrInsufficientBalance                = errorsmod.Register(ModuleName, 1206, "insufficient balance")
	ErrReceiveAccountNotExist             = errorsmod.Register(ModuleName, 1207, "receive account not exist")
	ErrInvalidStreamAccountStatus         = errorsmod.Register(ModuleName, 1208, "invalid stream account status")
	ErrInvalidParams                      = errorsmod.Register(ModuleName, 1209, "invalid params")
)

x/payment module sentinel errors

View Source
var (
	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvents = 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 (
	AutoSettleRecordKeyPrefix    = []byte{0x01}
	StreamRecordKeyPrefix        = []byte{0x02}
	PaymentAccountCountKeyPrefix = []byte{0x03}
	PaymentAccountKeyPrefix      = []byte{0x04}
	ParamsKey                    = []byte{0x05}
)
View Source
var (
	KeyReserveTime              = []byte("ReserveTime")
	KeyForcedSettleTime         = []byte("ForcedSettleTime")
	KeyPaymentAccountCountLimit = []byte("PaymentAccountCountLimit")
	KeyMaxAutoForceSettleNum    = []byte("MaxAutoForceSettleNum")
	KeyFeeDenom                 = []byte("FeeDenom")
	KeyValidatorTaxRate         = []byte("ValidatorTaxRate")

	DefaultReserveTime              uint64  = 180 * 24 * 60 * 60 // 180 days
	DefaultForcedSettleTime         uint64  = 24 * 60 * 60       // 1 day
	DefaultPaymentAccountCountLimit uint64  = 200
	DefaultMaxAutoForceSettleNum    uint64  = 100
	DefaultFeeDenom                 string  = "BNB"
	DefaultValidatorTaxRate         sdk.Dec = sdk.NewDecWithPrec(1, 2) // 1%
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthPaymentAccount        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPaymentAccount          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPaymentAccount = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthPaymentAccountCount        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPaymentAccountCount          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPaymentAccountCount = 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 (
	ErrInvalidLengthStreamRecord        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowStreamRecord          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupStreamRecord = 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 (
	// GovernanceAddress used to receive fee of storage system, and pay for the potential debt from late forced settlement
	GovernanceAddress       = sdk.AccAddress(address.Module(ModuleName, []byte("governance"))[:sdk.EthAddressLength])
	ValidatorTaxPoolAddress = sdk.AccAddress(address.Module(ModuleName, []byte("validator-tax-pool"))[:sdk.EthAddressLength])
)
View Source
var FeePreviewType_name = map[int32]string{
	0: "FEE_PREVIEW_TYPE_PRELOCKED_FEE",
	1: "FEE_PREVIEW_TYPE_UNLOCKED_FEE",
}
View Source
var FeePreviewType_value = map[string]int32{
	"FEE_PREVIEW_TYPE_PRELOCKED_FEE": 0,
	"FEE_PREVIEW_TYPE_UNLOCKED_FEE":  1,
}
View Source
var StreamAccountStatus_name = map[int32]string{
	0: "STREAM_ACCOUNT_STATUS_ACTIVE",
	1: "STREAM_ACCOUNT_STATUS_FROZEN",
}
View Source
var StreamAccountStatus_value = map[string]int32{
	"STREAM_ACCOUNT_STATUS_ACTIVE": 0,
	"STREAM_ACCOUNT_STATUS_FROZEN": 1,
}

Functions

func AutoSettleRecordKey

func AutoSettleRecordKey(
	timestamp int64,
	addr sdk.AccAddress,
) []byte

AutoSettleRecordKey returns the store key to retrieve a AutoSettleRecord from the index fields

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func PaymentAccountCountKey

func PaymentAccountCountKey(
	owner sdk.AccAddress,
) []byte

PaymentAccountCountKey returns the store key to retrieve a PaymentAccountCount from the index fields

func PaymentAccountKey

func PaymentAccountKey(
	addr sdk.AccAddress,
) []byte

PaymentAccountKey returns the store key to retrieve a PaymentAccount from the index fields

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 StreamRecordKey

func StreamRecordKey(
	account sdk.AccAddress,
) []byte

StreamRecordKey returns the store key to retrieve a StreamRecord from the index fields

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI
	HasAccount(ctx sdk.Context, addr sdk.AccAddress) bool
	GetModuleAddress(name string) sdk.AccAddress
	GetModuleAccount(ctx sdk.Context, moduleName string) authtypes.ModuleAccountI
	SetModuleAccount(sdk.Context, authtypes.ModuleAccountI)
}

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

type AutoSettleRecord

type AutoSettleRecord struct {
	// timestamp is the unix timestamp when the stream account will be settled.
	Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// A stream account address
	Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
}

AutoSettleRecord is the record keeps the auto settle information. The EndBlocker of payment module will scan the list of AutoSettleRecord and settle the stream account if the timestamp is less than the current time.

func ParseAutoSettleRecordKey

func ParseAutoSettleRecordKey(key []byte) (res AutoSettleRecord)

func (*AutoSettleRecord) Descriptor

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

func (*AutoSettleRecord) GetAddr

func (m *AutoSettleRecord) GetAddr() string

func (*AutoSettleRecord) GetTimestamp

func (m *AutoSettleRecord) GetTimestamp() int64

func (*AutoSettleRecord) Marshal

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

func (*AutoSettleRecord) MarshalTo

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

func (*AutoSettleRecord) MarshalToSizedBuffer

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

func (*AutoSettleRecord) ProtoMessage

func (*AutoSettleRecord) ProtoMessage()

func (*AutoSettleRecord) Reset

func (m *AutoSettleRecord) Reset()

func (*AutoSettleRecord) Size

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

func (*AutoSettleRecord) String

func (m *AutoSettleRecord) String() string

func (*AutoSettleRecord) Unmarshal

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

func (*AutoSettleRecord) XXX_DiscardUnknown

func (m *AutoSettleRecord) XXX_DiscardUnknown()

func (*AutoSettleRecord) XXX_Marshal

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

func (*AutoSettleRecord) XXX_Merge

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

func (*AutoSettleRecord) XXX_Size

func (m *AutoSettleRecord) XXX_Size() int

func (*AutoSettleRecord) XXX_Unmarshal

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

type BankKeeper

type BankKeeper interface {
	GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
}

BankKeeper defines the expected interface needed to retrieve account balances.

type EventDeposit added in v0.0.7

type EventDeposit struct {
	// from is the the address of the account to deposit from
	From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	// to is the address of the stream account to deposit to
	To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
	// amount is the amount to deposit
	Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"`
}

func (*EventDeposit) Descriptor added in v0.0.7

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

func (*EventDeposit) GetFrom added in v0.0.7

func (m *EventDeposit) GetFrom() string

func (*EventDeposit) GetTo added in v0.0.7

func (m *EventDeposit) GetTo() string

func (*EventDeposit) Marshal added in v0.0.7

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

func (*EventDeposit) MarshalTo added in v0.0.7

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

func (*EventDeposit) MarshalToSizedBuffer added in v0.0.7

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

func (*EventDeposit) ProtoMessage added in v0.0.7

func (*EventDeposit) ProtoMessage()

func (*EventDeposit) Reset added in v0.0.7

func (m *EventDeposit) Reset()

func (*EventDeposit) Size added in v0.0.7

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

func (*EventDeposit) String added in v0.0.7

func (m *EventDeposit) String() string

func (*EventDeposit) Unmarshal added in v0.0.7

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

func (*EventDeposit) XXX_DiscardUnknown added in v0.0.7

func (m *EventDeposit) XXX_DiscardUnknown()

func (*EventDeposit) XXX_Marshal added in v0.0.7

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

func (*EventDeposit) XXX_Merge added in v0.0.7

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

func (*EventDeposit) XXX_Size added in v0.0.7

func (m *EventDeposit) XXX_Size() int

func (*EventDeposit) XXX_Unmarshal added in v0.0.7

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

type EventFeePreview added in v0.1.2

type EventFeePreview struct {
	Account        string                                 `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	FeePreviewType FeePreviewType                         `` /* 145-byte string literal not displayed */
	Amount         github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"`
}

emit when upload/cancel/delete object, used for frontend to preview the fee changed only emit in tx simulation

func (*EventFeePreview) Descriptor added in v0.1.2

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

func (*EventFeePreview) GetAccount added in v0.1.2

func (m *EventFeePreview) GetAccount() string

func (*EventFeePreview) GetFeePreviewType added in v0.1.2

func (m *EventFeePreview) GetFeePreviewType() FeePreviewType

func (*EventFeePreview) Marshal added in v0.1.2

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

func (*EventFeePreview) MarshalTo added in v0.1.2

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

func (*EventFeePreview) MarshalToSizedBuffer added in v0.1.2

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

func (*EventFeePreview) ProtoMessage added in v0.1.2

func (*EventFeePreview) ProtoMessage()

func (*EventFeePreview) Reset added in v0.1.2

func (m *EventFeePreview) Reset()

func (*EventFeePreview) Size added in v0.1.2

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

func (*EventFeePreview) String added in v0.1.2

func (m *EventFeePreview) String() string

func (*EventFeePreview) Unmarshal added in v0.1.2

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

func (*EventFeePreview) XXX_DiscardUnknown added in v0.1.2

func (m *EventFeePreview) XXX_DiscardUnknown()

func (*EventFeePreview) XXX_Marshal added in v0.1.2

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

func (*EventFeePreview) XXX_Merge added in v0.1.2

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

func (*EventFeePreview) XXX_Size added in v0.1.2

func (m *EventFeePreview) XXX_Size() int

func (*EventFeePreview) XXX_Unmarshal added in v0.1.2

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

type EventForceSettle

type EventForceSettle struct {
	// address of the payment account
	Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	// left balance of the payment account after force settlement
	// if the balance is positive, it will go to the governance stream account
	// if the balance is negative, it's the debt of the system, which will be paid by the governance stream account
	SettledBalance github_com_cosmos_cosmos_sdk_types.Int `` /* 143-byte string literal not displayed */
}

EventForceSettle may be emitted on all Msgs and EndBlocker when a payment account's balance or net outflow rate is changed

func (*EventForceSettle) Descriptor

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

func (*EventForceSettle) GetAddr

func (m *EventForceSettle) GetAddr() string

func (*EventForceSettle) Marshal

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

func (*EventForceSettle) MarshalTo

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

func (*EventForceSettle) MarshalToSizedBuffer

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

func (*EventForceSettle) ProtoMessage

func (*EventForceSettle) ProtoMessage()

func (*EventForceSettle) Reset

func (m *EventForceSettle) Reset()

func (*EventForceSettle) Size

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

func (*EventForceSettle) String

func (m *EventForceSettle) String() string

func (*EventForceSettle) Unmarshal

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

func (*EventForceSettle) XXX_DiscardUnknown

func (m *EventForceSettle) XXX_DiscardUnknown()

func (*EventForceSettle) XXX_Marshal

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

func (*EventForceSettle) XXX_Merge

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

func (*EventForceSettle) XXX_Size

func (m *EventForceSettle) XXX_Size() int

func (*EventForceSettle) XXX_Unmarshal

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

type EventPaymentAccountUpdate added in v0.0.7

type EventPaymentAccountUpdate struct {
	// address of the payment account
	Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	// owner address of the payment account
	Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	// whether the payment account is refundable
	Refundable bool `protobuf:"varint,3,opt,name=refundable,proto3" json:"refundable,omitempty"`
}

func (*EventPaymentAccountUpdate) Descriptor added in v0.0.7

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

func (*EventPaymentAccountUpdate) GetAddr added in v0.0.7

func (m *EventPaymentAccountUpdate) GetAddr() string

func (*EventPaymentAccountUpdate) GetOwner added in v0.0.7

func (m *EventPaymentAccountUpdate) GetOwner() string

func (*EventPaymentAccountUpdate) GetRefundable added in v0.0.7

func (m *EventPaymentAccountUpdate) GetRefundable() bool

func (*EventPaymentAccountUpdate) Marshal added in v0.0.7

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

func (*EventPaymentAccountUpdate) MarshalTo added in v0.0.7

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

func (*EventPaymentAccountUpdate) MarshalToSizedBuffer added in v0.0.7

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

func (*EventPaymentAccountUpdate) ProtoMessage added in v0.0.7

func (*EventPaymentAccountUpdate) ProtoMessage()

func (*EventPaymentAccountUpdate) Reset added in v0.0.7

func (m *EventPaymentAccountUpdate) Reset()

func (*EventPaymentAccountUpdate) Size added in v0.0.7

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

func (*EventPaymentAccountUpdate) String added in v0.0.7

func (m *EventPaymentAccountUpdate) String() string

func (*EventPaymentAccountUpdate) Unmarshal added in v0.0.7

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

func (*EventPaymentAccountUpdate) XXX_DiscardUnknown added in v0.0.7

func (m *EventPaymentAccountUpdate) XXX_DiscardUnknown()

func (*EventPaymentAccountUpdate) XXX_Marshal added in v0.0.7

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

func (*EventPaymentAccountUpdate) XXX_Merge added in v0.0.7

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

func (*EventPaymentAccountUpdate) XXX_Size added in v0.0.7

func (m *EventPaymentAccountUpdate) XXX_Size() int

func (*EventPaymentAccountUpdate) XXX_Unmarshal added in v0.0.7

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

type EventStreamRecordUpdate added in v0.0.7

type EventStreamRecordUpdate struct {
	// account address
	Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	// latest update timestamp of the stream record
	CrudTimestamp int64 `protobuf:"varint,2,opt,name=crud_timestamp,json=crudTimestamp,proto3" json:"crud_timestamp,omitempty"`
	// The per-second rate that an account's balance is changing.
	// It is the sum of the account's inbound and outbound flow rates.
	NetflowRate github_com_cosmos_cosmos_sdk_types.Int `` /* 134-byte string literal not displayed */
	// The balance of the stream account at the latest CRUD timestamp.
	StaticBalance github_com_cosmos_cosmos_sdk_types.Int `` /* 140-byte string literal not displayed */
	// reserved balance of the stream account
	// If the netflow rate is negative, the reserved balance is `netflow_rate * reserve_time`
	BufferBalance github_com_cosmos_cosmos_sdk_types.Int `` /* 140-byte string literal not displayed */
	// the locked balance of the stream account after it puts a new object and before the object is sealed
	LockBalance github_com_cosmos_cosmos_sdk_types.Int `` /* 134-byte string literal not displayed */
	// the status of the stream account
	Status StreamAccountStatus `protobuf:"varint,7,opt,name=status,proto3,enum=greenfield.payment.StreamAccountStatus" json:"status,omitempty"`
	// the unix timestamp when the stream account will be settled
	SettleTimestamp int64 `protobuf:"varint,8,opt,name=settle_timestamp,json=settleTimestamp,proto3" json:"settle_timestamp,omitempty"`
	// the accumulated outflow rates of the stream account
	OutFlows []OutFlow `protobuf:"bytes,9,rep,name=out_flows,json=outFlows,proto3" json:"out_flows"`
}

Stream Payment Record of a stream account

func (*EventStreamRecordUpdate) Descriptor added in v0.0.7

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

func (*EventStreamRecordUpdate) GetAccount added in v0.0.7

func (m *EventStreamRecordUpdate) GetAccount() string

func (*EventStreamRecordUpdate) GetCrudTimestamp added in v0.0.7

func (m *EventStreamRecordUpdate) GetCrudTimestamp() int64

func (*EventStreamRecordUpdate) GetOutFlows added in v0.0.7

func (m *EventStreamRecordUpdate) GetOutFlows() []OutFlow

func (*EventStreamRecordUpdate) GetSettleTimestamp added in v0.0.7

func (m *EventStreamRecordUpdate) GetSettleTimestamp() int64

func (*EventStreamRecordUpdate) GetStatus added in v0.0.7

func (*EventStreamRecordUpdate) Marshal added in v0.0.7

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

func (*EventStreamRecordUpdate) MarshalTo added in v0.0.7

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

func (*EventStreamRecordUpdate) MarshalToSizedBuffer added in v0.0.7

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

func (*EventStreamRecordUpdate) ProtoMessage added in v0.0.7

func (*EventStreamRecordUpdate) ProtoMessage()

func (*EventStreamRecordUpdate) Reset added in v0.0.7

func (m *EventStreamRecordUpdate) Reset()

func (*EventStreamRecordUpdate) Size added in v0.0.7

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

func (*EventStreamRecordUpdate) String added in v0.0.7

func (m *EventStreamRecordUpdate) String() string

func (*EventStreamRecordUpdate) Unmarshal added in v0.0.7

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

func (*EventStreamRecordUpdate) XXX_DiscardUnknown added in v0.0.7

func (m *EventStreamRecordUpdate) XXX_DiscardUnknown()

func (*EventStreamRecordUpdate) XXX_Marshal added in v0.0.7

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

func (*EventStreamRecordUpdate) XXX_Merge added in v0.0.7

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

func (*EventStreamRecordUpdate) XXX_Size added in v0.0.7

func (m *EventStreamRecordUpdate) XXX_Size() int

func (*EventStreamRecordUpdate) XXX_Unmarshal added in v0.0.7

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

type EventWithdraw added in v0.0.7

type EventWithdraw struct {
	// to the address of the receive account
	To string `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"`
	// from is the address of the stream account to withdraw from
	From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	// amount is the amount to withdraw
	Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"`
}

func (*EventWithdraw) Descriptor added in v0.0.7

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

func (*EventWithdraw) GetFrom added in v0.0.7

func (m *EventWithdraw) GetFrom() string

func (*EventWithdraw) GetTo added in v0.0.7

func (m *EventWithdraw) GetTo() string

func (*EventWithdraw) Marshal added in v0.0.7

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

func (*EventWithdraw) MarshalTo added in v0.0.7

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

func (*EventWithdraw) MarshalToSizedBuffer added in v0.0.7

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

func (*EventWithdraw) ProtoMessage added in v0.0.7

func (*EventWithdraw) ProtoMessage()

func (*EventWithdraw) Reset added in v0.0.7

func (m *EventWithdraw) Reset()

func (*EventWithdraw) Size added in v0.0.7

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

func (*EventWithdraw) String added in v0.0.7

func (m *EventWithdraw) String() string

func (*EventWithdraw) Unmarshal added in v0.0.7

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

func (*EventWithdraw) XXX_DiscardUnknown added in v0.0.7

func (m *EventWithdraw) XXX_DiscardUnknown()

func (*EventWithdraw) XXX_Marshal added in v0.0.7

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

func (*EventWithdraw) XXX_Merge added in v0.0.7

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

func (*EventWithdraw) XXX_Size added in v0.0.7

func (m *EventWithdraw) XXX_Size() int

func (*EventWithdraw) XXX_Unmarshal added in v0.0.7

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

type FeePreviewType added in v0.1.2

type FeePreviewType int32
const (
	FEE_PREVIEW_TYPE_PRELOCKED_FEE FeePreviewType = 0
	FEE_PREVIEW_TYPE_UNLOCKED_FEE  FeePreviewType = 1
)

func (FeePreviewType) EnumDescriptor added in v0.1.2

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

func (FeePreviewType) String added in v0.1.2

func (x FeePreviewType) String() string

type GenesisState

type GenesisState struct {
	Params                  Params                `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	StreamRecordList        []StreamRecord        `protobuf:"bytes,2,rep,name=stream_record_list,json=streamRecordList,proto3" json:"stream_record_list"`
	PaymentAccountCountList []PaymentAccountCount `protobuf:"bytes,3,rep,name=payment_account_count_list,json=paymentAccountCountList,proto3" json:"payment_account_count_list"`
	PaymentAccountList      []PaymentAccount      `protobuf:"bytes,4,rep,name=payment_account_list,json=paymentAccountList,proto3" json:"payment_account_list"`
	AutoSettleRecordList    []AutoSettleRecord    `protobuf:"bytes,5,rep,name=auto_settle_record_list,json=autoSettleRecordList,proto3" json:"auto_settle_record_list"`
}

GenesisState defines the payment 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) GetAutoSettleRecordList

func (m *GenesisState) GetAutoSettleRecordList() []AutoSettleRecord

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetPaymentAccountCountList

func (m *GenesisState) GetPaymentAccountCountList() []PaymentAccountCount

func (*GenesisState) GetPaymentAccountList

func (m *GenesisState) GetPaymentAccountList() []PaymentAccount

func (*GenesisState) GetStreamRecordList

func (m *GenesisState) GetStreamRecordList() []StreamRecord

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

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

MockAccountKeeper is a mock of AccountKeeper interface

func NewMockAccountKeeper added in v0.2.0

func NewMockAccountKeeper(ctrl *gomock.Controller) *MockAccountKeeper

NewMockAccountKeeper creates a new mock instance

func (*MockAccountKeeper) EXPECT added in v0.2.0

EXPECT returns an object that allows the caller to indicate expected use

func (*MockAccountKeeper) GetAccount added in v0.2.0

func (m *MockAccountKeeper) GetAccount(arg0 types0.Context, arg1 types0.AccAddress) types1.AccountI

GetAccount mocks base method

func (*MockAccountKeeper) GetModuleAccount added in v0.2.0

func (m *MockAccountKeeper) GetModuleAccount(arg0 types0.Context, arg1 string) types1.ModuleAccountI

GetModuleAccount mocks base method

func (*MockAccountKeeper) GetModuleAddress added in v0.2.0

func (m *MockAccountKeeper) GetModuleAddress(arg0 string) types0.AccAddress

GetModuleAddress mocks base method

func (*MockAccountKeeper) HasAccount added in v0.2.0

func (m *MockAccountKeeper) HasAccount(arg0 types0.Context, arg1 types0.AccAddress) bool

HasAccount mocks base method

func (*MockAccountKeeper) SetModuleAccount added in v0.2.0

func (m *MockAccountKeeper) SetModuleAccount(arg0 types0.Context, arg1 types1.ModuleAccountI)

SetModuleAccount mocks base method

type MockAccountKeeperMockRecorder added in v0.2.0

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

MockAccountKeeperMockRecorder is the mock recorder for MockAccountKeeper

func (*MockAccountKeeperMockRecorder) GetAccount added in v0.2.0

func (mr *MockAccountKeeperMockRecorder) GetAccount(arg0, arg1 interface{}) *gomock.Call

GetAccount indicates an expected call of GetAccount

func (*MockAccountKeeperMockRecorder) GetModuleAccount added in v0.2.0

func (mr *MockAccountKeeperMockRecorder) GetModuleAccount(arg0, arg1 interface{}) *gomock.Call

GetModuleAccount indicates an expected call of GetModuleAccount

func (*MockAccountKeeperMockRecorder) GetModuleAddress added in v0.2.0

func (mr *MockAccountKeeperMockRecorder) GetModuleAddress(arg0 interface{}) *gomock.Call

GetModuleAddress indicates an expected call of GetModuleAddress

func (*MockAccountKeeperMockRecorder) HasAccount added in v0.2.0

func (mr *MockAccountKeeperMockRecorder) HasAccount(arg0, arg1 interface{}) *gomock.Call

HasAccount indicates an expected call of HasAccount

func (*MockAccountKeeperMockRecorder) SetModuleAccount added in v0.2.0

func (mr *MockAccountKeeperMockRecorder) SetModuleAccount(arg0, arg1 interface{}) *gomock.Call

SetModuleAccount indicates an expected call of SetModuleAccount

type MockBankKeeper added in v0.2.0

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

MockBankKeeper is a mock of BankKeeper interface

func NewMockBankKeeper added in v0.2.0

func NewMockBankKeeper(ctrl *gomock.Controller) *MockBankKeeper

NewMockBankKeeper creates a new mock instance

func (*MockBankKeeper) EXPECT added in v0.2.0

EXPECT returns an object that allows the caller to indicate expected use

func (*MockBankKeeper) GetAllBalances added in v0.2.0

func (m *MockBankKeeper) GetAllBalances(arg0 types0.Context, arg1 types0.AccAddress) types0.Coins

GetAllBalances mocks base method

func (*MockBankKeeper) GetBalance added in v0.2.0

func (m *MockBankKeeper) GetBalance(arg0 types0.Context, arg1 types0.AccAddress, arg2 string) types0.Coin

GetBalance mocks base method

func (*MockBankKeeper) SendCoinsFromAccountToModule added in v0.2.0

func (m *MockBankKeeper) SendCoinsFromAccountToModule(arg0 types0.Context, arg1 types0.AccAddress, arg2 string, arg3 types0.Coins) error

SendCoinsFromAccountToModule mocks base method

func (*MockBankKeeper) SendCoinsFromModuleToAccount added in v0.2.0

func (m *MockBankKeeper) SendCoinsFromModuleToAccount(arg0 types0.Context, arg1 string, arg2 types0.AccAddress, arg3 types0.Coins) error

SendCoinsFromModuleToAccount mocks base method

func (*MockBankKeeper) SpendableCoins added in v0.2.0

func (m *MockBankKeeper) SpendableCoins(arg0 types0.Context, arg1 types0.AccAddress) types0.Coins

SpendableCoins mocks base method

type MockBankKeeperMockRecorder added in v0.2.0

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

MockBankKeeperMockRecorder is the mock recorder for MockBankKeeper

func (*MockBankKeeperMockRecorder) GetAllBalances added in v0.2.0

func (mr *MockBankKeeperMockRecorder) GetAllBalances(arg0, arg1 interface{}) *gomock.Call

GetAllBalances indicates an expected call of GetAllBalances

func (*MockBankKeeperMockRecorder) GetBalance added in v0.2.0

func (mr *MockBankKeeperMockRecorder) GetBalance(arg0, arg1, arg2 interface{}) *gomock.Call

GetBalance indicates an expected call of GetBalance

func (*MockBankKeeperMockRecorder) SendCoinsFromAccountToModule added in v0.2.0

func (mr *MockBankKeeperMockRecorder) SendCoinsFromAccountToModule(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

SendCoinsFromAccountToModule indicates an expected call of SendCoinsFromAccountToModule

func (*MockBankKeeperMockRecorder) SendCoinsFromModuleToAccount added in v0.2.0

func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToAccount(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

SendCoinsFromModuleToAccount indicates an expected call of SendCoinsFromModuleToAccount

func (*MockBankKeeperMockRecorder) SpendableCoins added in v0.2.0

func (mr *MockBankKeeperMockRecorder) SpendableCoins(arg0, arg1 interface{}) *gomock.Call

SpendableCoins indicates an expected call of SpendableCoins

type MockSpKeeper added in v0.2.0

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

MockSpKeeper is a mock of SpKeeper interface

func NewMockSpKeeper added in v0.2.0

func NewMockSpKeeper(ctrl *gomock.Controller) *MockSpKeeper

NewMockSpKeeper creates a new mock instance

func (*MockSpKeeper) EXPECT added in v0.2.0

EXPECT returns an object that allows the caller to indicate expected use

func (*MockSpKeeper) GetSecondarySpStorePriceByTime added in v0.2.0

func (m *MockSpKeeper) GetSecondarySpStorePriceByTime(arg0 types0.Context, arg1 int64) (types.SecondarySpStorePrice, error)

GetSecondarySpStorePriceByTime mocks base method

func (*MockSpKeeper) GetSpStoragePriceByTime added in v0.2.0

func (m *MockSpKeeper) GetSpStoragePriceByTime(arg0 types0.Context, arg1 types0.AccAddress, arg2 int64) (types.SpStoragePrice, error)

GetSpStoragePriceByTime mocks base method

type MockSpKeeperMockRecorder added in v0.2.0

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

MockSpKeeperMockRecorder is the mock recorder for MockSpKeeper

func (*MockSpKeeperMockRecorder) GetSecondarySpStorePriceByTime added in v0.2.0

func (mr *MockSpKeeperMockRecorder) GetSecondarySpStorePriceByTime(arg0, arg1 interface{}) *gomock.Call

GetSecondarySpStorePriceByTime indicates an expected call of GetSecondarySpStorePriceByTime

func (*MockSpKeeperMockRecorder) GetSpStoragePriceByTime added in v0.2.0

func (mr *MockSpKeeperMockRecorder) GetSpStoragePriceByTime(arg0, arg1, arg2 interface{}) *gomock.Call

GetSpStoragePriceByTime indicates an expected call of GetSpStoragePriceByTime

type MsgClient

type MsgClient interface {
	// UpdateParams defines a governance operation for updating the x/payment module parameters.
	// The authority is defined in the keeper.
	//
	// Since: cosmos-sdk 0.47
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
	CreatePaymentAccount(ctx context.Context, in *MsgCreatePaymentAccount, opts ...grpc.CallOption) (*MsgCreatePaymentAccountResponse, error)
	Deposit(ctx context.Context, in *MsgDeposit, opts ...grpc.CallOption) (*MsgDepositResponse, error)
	Withdraw(ctx context.Context, in *MsgWithdraw, opts ...grpc.CallOption) (*MsgWithdrawResponse, error)
	DisableRefund(ctx context.Context, in *MsgDisableRefund, opts ...grpc.CallOption) (*MsgDisableRefundResponse, 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 MsgCreatePaymentAccount

type MsgCreatePaymentAccount struct {
	// creator is the address of the stream account that created the payment account
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
}

func NewMsgCreatePaymentAccount

func NewMsgCreatePaymentAccount(creator string) *MsgCreatePaymentAccount

func (*MsgCreatePaymentAccount) Descriptor

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

func (*MsgCreatePaymentAccount) GetCreator

func (m *MsgCreatePaymentAccount) GetCreator() string

func (*MsgCreatePaymentAccount) GetSignBytes

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

func (*MsgCreatePaymentAccount) GetSigners

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

func (*MsgCreatePaymentAccount) Marshal

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

func (*MsgCreatePaymentAccount) MarshalTo

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

func (*MsgCreatePaymentAccount) MarshalToSizedBuffer

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

func (*MsgCreatePaymentAccount) ProtoMessage

func (*MsgCreatePaymentAccount) ProtoMessage()

func (*MsgCreatePaymentAccount) Reset

func (m *MsgCreatePaymentAccount) Reset()

func (*MsgCreatePaymentAccount) Route

func (msg *MsgCreatePaymentAccount) Route() string

func (*MsgCreatePaymentAccount) Size

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

func (*MsgCreatePaymentAccount) String

func (m *MsgCreatePaymentAccount) String() string

func (*MsgCreatePaymentAccount) Type

func (msg *MsgCreatePaymentAccount) Type() string

func (*MsgCreatePaymentAccount) Unmarshal

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

func (*MsgCreatePaymentAccount) ValidateBasic

func (msg *MsgCreatePaymentAccount) ValidateBasic() error

func (*MsgCreatePaymentAccount) XXX_DiscardUnknown

func (m *MsgCreatePaymentAccount) XXX_DiscardUnknown()

func (*MsgCreatePaymentAccount) XXX_Marshal

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

func (*MsgCreatePaymentAccount) XXX_Merge

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

func (*MsgCreatePaymentAccount) XXX_Size

func (m *MsgCreatePaymentAccount) XXX_Size() int

func (*MsgCreatePaymentAccount) XXX_Unmarshal

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

type MsgCreatePaymentAccountResponse

type MsgCreatePaymentAccountResponse struct {
}

func (*MsgCreatePaymentAccountResponse) Descriptor

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

func (*MsgCreatePaymentAccountResponse) Marshal

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

func (*MsgCreatePaymentAccountResponse) MarshalTo

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

func (*MsgCreatePaymentAccountResponse) MarshalToSizedBuffer

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

func (*MsgCreatePaymentAccountResponse) ProtoMessage

func (*MsgCreatePaymentAccountResponse) ProtoMessage()

func (*MsgCreatePaymentAccountResponse) Reset

func (*MsgCreatePaymentAccountResponse) Size

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

func (*MsgCreatePaymentAccountResponse) String

func (*MsgCreatePaymentAccountResponse) Unmarshal

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

func (*MsgCreatePaymentAccountResponse) XXX_DiscardUnknown

func (m *MsgCreatePaymentAccountResponse) XXX_DiscardUnknown()

func (*MsgCreatePaymentAccountResponse) XXX_Marshal

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

func (*MsgCreatePaymentAccountResponse) XXX_Merge

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

func (*MsgCreatePaymentAccountResponse) XXX_Size

func (m *MsgCreatePaymentAccountResponse) XXX_Size() int

func (*MsgCreatePaymentAccountResponse) XXX_Unmarshal

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

type MsgDeposit

type MsgDeposit struct {
	// creator is the message signer for MsgDeposit and the address of the account to deposit from
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	// to is the address of the account to deposit to
	To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
	// amount is the amount to deposit
	Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"`
}

func NewMsgDeposit

func NewMsgDeposit(creator string, to string, amount sdkmath.Int) *MsgDeposit

func (*MsgDeposit) Descriptor

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

func (*MsgDeposit) GetCreator

func (m *MsgDeposit) GetCreator() string

func (*MsgDeposit) GetSignBytes

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

func (*MsgDeposit) GetSigners

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

func (*MsgDeposit) GetTo

func (m *MsgDeposit) GetTo() string

func (*MsgDeposit) Marshal

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

func (*MsgDeposit) MarshalTo

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

func (*MsgDeposit) MarshalToSizedBuffer

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

func (*MsgDeposit) ProtoMessage

func (*MsgDeposit) ProtoMessage()

func (*MsgDeposit) Reset

func (m *MsgDeposit) Reset()

func (*MsgDeposit) Route

func (msg *MsgDeposit) Route() string

func (*MsgDeposit) Size

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

func (*MsgDeposit) String

func (m *MsgDeposit) String() string

func (*MsgDeposit) Type

func (msg *MsgDeposit) Type() string

func (*MsgDeposit) Unmarshal

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

func (*MsgDeposit) ValidateBasic

func (msg *MsgDeposit) ValidateBasic() error

func (*MsgDeposit) XXX_DiscardUnknown

func (m *MsgDeposit) XXX_DiscardUnknown()

func (*MsgDeposit) XXX_Marshal

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

func (*MsgDeposit) XXX_Merge

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

func (*MsgDeposit) XXX_Size

func (m *MsgDeposit) XXX_Size() int

func (*MsgDeposit) XXX_Unmarshal

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

type MsgDepositResponse

type MsgDepositResponse struct {
}

func (*MsgDepositResponse) Descriptor

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

func (*MsgDepositResponse) Marshal

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

func (*MsgDepositResponse) MarshalTo

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

func (*MsgDepositResponse) MarshalToSizedBuffer

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

func (*MsgDepositResponse) ProtoMessage

func (*MsgDepositResponse) ProtoMessage()

func (*MsgDepositResponse) Reset

func (m *MsgDepositResponse) Reset()

func (*MsgDepositResponse) Size

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

func (*MsgDepositResponse) String

func (m *MsgDepositResponse) String() string

func (*MsgDepositResponse) Unmarshal

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

func (*MsgDepositResponse) XXX_DiscardUnknown

func (m *MsgDepositResponse) XXX_DiscardUnknown()

func (*MsgDepositResponse) XXX_Marshal

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

func (*MsgDepositResponse) XXX_Merge

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

func (*MsgDepositResponse) XXX_Size

func (m *MsgDepositResponse) XXX_Size() int

func (*MsgDepositResponse) XXX_Unmarshal

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

type MsgDisableRefund

type MsgDisableRefund struct {
	// owner is the message signer for MsgDisableRefund and the address of the payment account owner
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// addr is the address of the payment account to disable refund
	Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
}

func NewMsgDisableRefund

func NewMsgDisableRefund(owner string, addr string) *MsgDisableRefund

func (*MsgDisableRefund) Descriptor

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

func (*MsgDisableRefund) GetAddr

func (m *MsgDisableRefund) GetAddr() string

func (*MsgDisableRefund) GetOwner

func (m *MsgDisableRefund) GetOwner() string

func (*MsgDisableRefund) GetSignBytes

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

func (*MsgDisableRefund) GetSigners

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

func (*MsgDisableRefund) Marshal

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

func (*MsgDisableRefund) MarshalTo

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

func (*MsgDisableRefund) MarshalToSizedBuffer

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

func (*MsgDisableRefund) ProtoMessage

func (*MsgDisableRefund) ProtoMessage()

func (*MsgDisableRefund) Reset

func (m *MsgDisableRefund) Reset()

func (*MsgDisableRefund) Route

func (msg *MsgDisableRefund) Route() string

func (*MsgDisableRefund) Size

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

func (*MsgDisableRefund) String

func (m *MsgDisableRefund) String() string

func (*MsgDisableRefund) Type

func (msg *MsgDisableRefund) Type() string

func (*MsgDisableRefund) Unmarshal

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

func (*MsgDisableRefund) ValidateBasic

func (msg *MsgDisableRefund) ValidateBasic() error

func (*MsgDisableRefund) XXX_DiscardUnknown

func (m *MsgDisableRefund) XXX_DiscardUnknown()

func (*MsgDisableRefund) XXX_Marshal

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

func (*MsgDisableRefund) XXX_Merge

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

func (*MsgDisableRefund) XXX_Size

func (m *MsgDisableRefund) XXX_Size() int

func (*MsgDisableRefund) XXX_Unmarshal

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

type MsgDisableRefundResponse

type MsgDisableRefundResponse struct {
}

func (*MsgDisableRefundResponse) Descriptor

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

func (*MsgDisableRefundResponse) Marshal

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

func (*MsgDisableRefundResponse) MarshalTo

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

func (*MsgDisableRefundResponse) MarshalToSizedBuffer

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

func (*MsgDisableRefundResponse) ProtoMessage

func (*MsgDisableRefundResponse) ProtoMessage()

func (*MsgDisableRefundResponse) Reset

func (m *MsgDisableRefundResponse) Reset()

func (*MsgDisableRefundResponse) Size

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

func (*MsgDisableRefundResponse) String

func (m *MsgDisableRefundResponse) String() string

func (*MsgDisableRefundResponse) Unmarshal

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

func (*MsgDisableRefundResponse) XXX_DiscardUnknown

func (m *MsgDisableRefundResponse) XXX_DiscardUnknown()

func (*MsgDisableRefundResponse) XXX_Marshal

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

func (*MsgDisableRefundResponse) XXX_Merge

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

func (*MsgDisableRefundResponse) XXX_Size

func (m *MsgDisableRefundResponse) XXX_Size() int

func (*MsgDisableRefundResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// UpdateParams defines a governance operation for updating the x/payment module parameters.
	// The authority is defined in the keeper.
	//
	// Since: cosmos-sdk 0.47
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
	CreatePaymentAccount(context.Context, *MsgCreatePaymentAccount) (*MsgCreatePaymentAccountResponse, error)
	Deposit(context.Context, *MsgDeposit) (*MsgDepositResponse, error)
	Withdraw(context.Context, *MsgWithdraw) (*MsgWithdrawResponse, error)
	DisableRefund(context.Context, *MsgDisableRefund) (*MsgDisableRefundResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateParams added in v0.2.0

type MsgUpdateParams struct {
	// authority is the address that controls the module (defaults to x/gov unless overwritten).
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// params defines the x/payment parameters to update.
	// NOTE: All parameters must be supplied.
	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

MsgUpdateParams is the Msg/UpdateParams request type.

func (*MsgUpdateParams) Descriptor added in v0.2.0

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

func (*MsgUpdateParams) GetAuthority added in v0.2.0

func (m *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams added in v0.2.0

func (m *MsgUpdateParams) GetParams() Params

func (MsgUpdateParams) GetSignBytes added in v0.2.0

func (m MsgUpdateParams) GetSignBytes() []byte

GetSignBytes implements the LegacyMsg interface.

func (*MsgUpdateParams) GetSigners added in v0.2.0

func (m *MsgUpdateParams) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for a MsgUpdateParams message.

func (*MsgUpdateParams) Marshal added in v0.2.0

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

func (*MsgUpdateParams) MarshalTo added in v0.2.0

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

func (*MsgUpdateParams) MarshalToSizedBuffer added in v0.2.0

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

func (*MsgUpdateParams) ProtoMessage added in v0.2.0

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset added in v0.2.0

func (m *MsgUpdateParams) Reset()

func (*MsgUpdateParams) Size added in v0.2.0

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

func (*MsgUpdateParams) String added in v0.2.0

func (m *MsgUpdateParams) String() string

func (*MsgUpdateParams) Unmarshal added in v0.2.0

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

func (*MsgUpdateParams) ValidateBasic added in v0.2.0

func (m *MsgUpdateParams) ValidateBasic() error

ValidateBasic does a sanity check on the provided data.

func (*MsgUpdateParams) XXX_DiscardUnknown added in v0.2.0

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal added in v0.2.0

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

func (*MsgUpdateParams) XXX_Merge added in v0.2.0

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

func (*MsgUpdateParams) XXX_Size added in v0.2.0

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal added in v0.2.0

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

type MsgUpdateParamsResponse added in v0.2.0

type MsgUpdateParamsResponse struct {
}

MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.

func (*MsgUpdateParamsResponse) Descriptor added in v0.2.0

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

func (*MsgUpdateParamsResponse) Marshal added in v0.2.0

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

func (*MsgUpdateParamsResponse) MarshalTo added in v0.2.0

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

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer added in v0.2.0

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

func (*MsgUpdateParamsResponse) ProtoMessage added in v0.2.0

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset added in v0.2.0

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size added in v0.2.0

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

func (*MsgUpdateParamsResponse) String added in v0.2.0

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal added in v0.2.0

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

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown added in v0.2.0

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal added in v0.2.0

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

func (*MsgUpdateParamsResponse) XXX_Merge added in v0.2.0

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

func (*MsgUpdateParamsResponse) XXX_Size added in v0.2.0

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal added in v0.2.0

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

type MsgWithdraw

type MsgWithdraw struct {
	// creator is the message signer for MsgWithdraw and the address of the receive account
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	// from is the address of the account to withdraw from
	From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	// amount is the amount to withdraw
	Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"`
}

func NewMsgWithdraw

func NewMsgWithdraw(creator string, from string, amount sdkmath.Int) *MsgWithdraw

func (*MsgWithdraw) Descriptor

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

func (*MsgWithdraw) GetCreator

func (m *MsgWithdraw) GetCreator() string

func (*MsgWithdraw) GetFrom

func (m *MsgWithdraw) GetFrom() string

func (*MsgWithdraw) GetSignBytes

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

func (*MsgWithdraw) GetSigners

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

func (*MsgWithdraw) Marshal

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

func (*MsgWithdraw) MarshalTo

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

func (*MsgWithdraw) MarshalToSizedBuffer

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

func (*MsgWithdraw) ProtoMessage

func (*MsgWithdraw) ProtoMessage()

func (*MsgWithdraw) Reset

func (m *MsgWithdraw) Reset()

func (*MsgWithdraw) Route

func (msg *MsgWithdraw) Route() string

func (*MsgWithdraw) Size

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

func (*MsgWithdraw) String

func (m *MsgWithdraw) String() string

func (*MsgWithdraw) Type

func (msg *MsgWithdraw) Type() string

func (*MsgWithdraw) Unmarshal

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

func (*MsgWithdraw) ValidateBasic

func (msg *MsgWithdraw) ValidateBasic() error

func (*MsgWithdraw) XXX_DiscardUnknown

func (m *MsgWithdraw) XXX_DiscardUnknown()

func (*MsgWithdraw) XXX_Marshal

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

func (*MsgWithdraw) XXX_Merge

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

func (*MsgWithdraw) XXX_Size

func (m *MsgWithdraw) XXX_Size() int

func (*MsgWithdraw) XXX_Unmarshal

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

type MsgWithdrawResponse

type MsgWithdrawResponse struct {
}

func (*MsgWithdrawResponse) Descriptor

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

func (*MsgWithdrawResponse) Marshal

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

func (*MsgWithdrawResponse) MarshalTo

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

func (*MsgWithdrawResponse) MarshalToSizedBuffer

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

func (*MsgWithdrawResponse) ProtoMessage

func (*MsgWithdrawResponse) ProtoMessage()

func (*MsgWithdrawResponse) Reset

func (m *MsgWithdrawResponse) Reset()

func (*MsgWithdrawResponse) Size

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

func (*MsgWithdrawResponse) String

func (m *MsgWithdrawResponse) String() string

func (*MsgWithdrawResponse) Unmarshal

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

func (*MsgWithdrawResponse) XXX_DiscardUnknown

func (m *MsgWithdrawResponse) XXX_DiscardUnknown()

func (*MsgWithdrawResponse) XXX_Marshal

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

func (*MsgWithdrawResponse) XXX_Merge

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

func (*MsgWithdrawResponse) XXX_Size

func (m *MsgWithdrawResponse) XXX_Size() int

func (*MsgWithdrawResponse) XXX_Unmarshal

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

type OutFlow added in v0.0.7

type OutFlow struct {
	// stream account address who receives the flow, usually SP(service provider)
	ToAddress string `protobuf:"bytes,1,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
	// flow rate
	Rate github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=rate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"rate"`
}

OutFlow defines the accumulative outflow stream rate in BNB from a stream account to a Storage Provider

func (*OutFlow) Descriptor added in v0.0.7

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

func (*OutFlow) GetToAddress added in v0.0.7

func (m *OutFlow) GetToAddress() string

func (*OutFlow) Marshal added in v0.0.7

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

func (*OutFlow) MarshalTo added in v0.0.7

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

func (*OutFlow) MarshalToSizedBuffer added in v0.0.7

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

func (*OutFlow) ProtoMessage added in v0.0.7

func (*OutFlow) ProtoMessage()

func (*OutFlow) Reset added in v0.0.7

func (m *OutFlow) Reset()

func (*OutFlow) Size added in v0.0.7

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

func (*OutFlow) String added in v0.0.7

func (m *OutFlow) String() string

func (*OutFlow) Unmarshal added in v0.0.7

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

func (*OutFlow) XXX_DiscardUnknown added in v0.0.7

func (m *OutFlow) XXX_DiscardUnknown()

func (*OutFlow) XXX_Marshal added in v0.0.7

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

func (*OutFlow) XXX_Merge added in v0.0.7

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

func (*OutFlow) XXX_Size added in v0.0.7

func (m *OutFlow) XXX_Size() int

func (*OutFlow) XXX_Unmarshal added in v0.0.7

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

type Params

type Params struct {
	// Time duration which the buffer balance need to be reserved for NetOutFlow e.g. 6 month
	ReserveTime uint64 `protobuf:"varint,1,opt,name=reserve_time,json=reserveTime,proto3" json:"reserve_time,omitempty" yaml:"reserve_time"`
	// The maximum number of payment accounts that can be created by one user
	PaymentAccountCountLimit uint64 `` /* 173-byte string literal not displayed */
	// Time duration threshold of forced settlement.
	// If dynamic balance is less than NetOutFlowRate * forcedSettleTime, the account can be forced settled.
	ForcedSettleTime uint64 `` /* 138-byte string literal not displayed */
	// the maximum number of accounts that will be forced settled in one block
	MaxAutoForceSettleNum uint64 `` /* 164-byte string literal not displayed */
	// The denom of fee charged in payment module
	FeeDenom string `protobuf:"bytes,5,opt,name=fee_denom,json=feeDenom,proto3" json:"fee_denom,omitempty" yaml:"fee_denom"`
	// The tax rate to pay for validators in storage payment. The default value is 1%(0.01)
	ValidatorTaxRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 151-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 NewParams

func NewParams(
	reserveTime uint64,
	forcedSettleTime uint64,
	paymentAccountCountLimit uint64,
	maxAutoForceSettleNum uint64,
	feeDenom string,
	validatorTaxRate sdk.Dec,
) Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) GetFeeDenom

func (m *Params) GetFeeDenom() string

func (*Params) GetForcedSettleTime

func (m *Params) GetForcedSettleTime() uint64

func (*Params) GetMaxAutoForceSettleNum

func (m *Params) GetMaxAutoForceSettleNum() uint64

func (*Params) GetPaymentAccountCountLimit

func (m *Params) GetPaymentAccountCountLimit() uint64

func (*Params) GetReserveTime

func (m *Params) GetReserveTime() uint64

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 (m *Params) String() string

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 PaymentAccount

type PaymentAccount struct {
	// the address of the payment account
	Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	// the owner address of the payment account
	Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	// whether the payment account is refundable
	Refundable bool `protobuf:"varint,3,opt,name=refundable,proto3" json:"refundable,omitempty"`
}

PaymentAccount defines a payment account

func (*PaymentAccount) Descriptor

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

func (*PaymentAccount) GetAddr

func (m *PaymentAccount) GetAddr() string

func (*PaymentAccount) GetOwner

func (m *PaymentAccount) GetOwner() string

func (*PaymentAccount) GetRefundable

func (m *PaymentAccount) GetRefundable() bool

func (*PaymentAccount) Marshal

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

func (*PaymentAccount) MarshalTo

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

func (*PaymentAccount) MarshalToSizedBuffer

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

func (*PaymentAccount) ProtoMessage

func (*PaymentAccount) ProtoMessage()

func (*PaymentAccount) Reset

func (m *PaymentAccount) Reset()

func (*PaymentAccount) Size

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

func (*PaymentAccount) String

func (m *PaymentAccount) String() string

func (*PaymentAccount) Unmarshal

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

func (*PaymentAccount) XXX_DiscardUnknown

func (m *PaymentAccount) XXX_DiscardUnknown()

func (*PaymentAccount) XXX_Marshal

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

func (*PaymentAccount) XXX_Merge

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

func (*PaymentAccount) XXX_Size

func (m *PaymentAccount) XXX_Size() int

func (*PaymentAccount) XXX_Unmarshal

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

type PaymentAccountCount

type PaymentAccountCount struct {
	// owner is the account address
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// count is the number of payment accounts for the account
	Count uint64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
}

PaymentAccountCount defines the state struct which stores the number of payment accounts for an account

func (*PaymentAccountCount) Descriptor

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

func (*PaymentAccountCount) GetCount

func (m *PaymentAccountCount) GetCount() uint64

func (*PaymentAccountCount) GetOwner

func (m *PaymentAccountCount) GetOwner() string

func (*PaymentAccountCount) Marshal

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

func (*PaymentAccountCount) MarshalTo

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

func (*PaymentAccountCount) MarshalToSizedBuffer

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

func (*PaymentAccountCount) ProtoMessage

func (*PaymentAccountCount) ProtoMessage()

func (*PaymentAccountCount) Reset

func (m *PaymentAccountCount) Reset()

func (*PaymentAccountCount) Size

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

func (*PaymentAccountCount) String

func (m *PaymentAccountCount) String() string

func (*PaymentAccountCount) Unmarshal

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

func (*PaymentAccountCount) XXX_DiscardUnknown

func (m *PaymentAccountCount) XXX_DiscardUnknown()

func (*PaymentAccountCount) XXX_Marshal

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

func (*PaymentAccountCount) XXX_Merge

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

func (*PaymentAccountCount) XXX_Size

func (m *PaymentAccountCount) XXX_Size() int

func (*PaymentAccountCount) XXX_Unmarshal

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

type QueryAllAutoSettleRecordRequest

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

func (*QueryAllAutoSettleRecordRequest) Descriptor

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

func (*QueryAllAutoSettleRecordRequest) GetPagination

func (*QueryAllAutoSettleRecordRequest) Marshal

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

func (*QueryAllAutoSettleRecordRequest) MarshalTo

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

func (*QueryAllAutoSettleRecordRequest) MarshalToSizedBuffer

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

func (*QueryAllAutoSettleRecordRequest) ProtoMessage

func (*QueryAllAutoSettleRecordRequest) ProtoMessage()

func (*QueryAllAutoSettleRecordRequest) Reset

func (*QueryAllAutoSettleRecordRequest) Size

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

func (*QueryAllAutoSettleRecordRequest) String

func (*QueryAllAutoSettleRecordRequest) Unmarshal

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

func (*QueryAllAutoSettleRecordRequest) XXX_DiscardUnknown

func (m *QueryAllAutoSettleRecordRequest) XXX_DiscardUnknown()

func (*QueryAllAutoSettleRecordRequest) XXX_Marshal

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

func (*QueryAllAutoSettleRecordRequest) XXX_Merge

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

func (*QueryAllAutoSettleRecordRequest) XXX_Size

func (m *QueryAllAutoSettleRecordRequest) XXX_Size() int

func (*QueryAllAutoSettleRecordRequest) XXX_Unmarshal

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

type QueryAllAutoSettleRecordResponse

type QueryAllAutoSettleRecordResponse struct {
	AutoSettleRecord []AutoSettleRecord  `protobuf:"bytes,1,rep,name=auto_settle_record,json=autoSettleRecord,proto3" json:"auto_settle_record"`
	Pagination       *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllAutoSettleRecordResponse) Descriptor

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

func (*QueryAllAutoSettleRecordResponse) GetAutoSettleRecord

func (m *QueryAllAutoSettleRecordResponse) GetAutoSettleRecord() []AutoSettleRecord

func (*QueryAllAutoSettleRecordResponse) GetPagination

func (*QueryAllAutoSettleRecordResponse) Marshal

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

func (*QueryAllAutoSettleRecordResponse) MarshalTo

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

func (*QueryAllAutoSettleRecordResponse) MarshalToSizedBuffer

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

func (*QueryAllAutoSettleRecordResponse) ProtoMessage

func (*QueryAllAutoSettleRecordResponse) ProtoMessage()

func (*QueryAllAutoSettleRecordResponse) Reset

func (*QueryAllAutoSettleRecordResponse) Size

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

func (*QueryAllAutoSettleRecordResponse) String

func (*QueryAllAutoSettleRecordResponse) Unmarshal

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

func (*QueryAllAutoSettleRecordResponse) XXX_DiscardUnknown

func (m *QueryAllAutoSettleRecordResponse) XXX_DiscardUnknown()

func (*QueryAllAutoSettleRecordResponse) XXX_Marshal

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

func (*QueryAllAutoSettleRecordResponse) XXX_Merge

func (*QueryAllAutoSettleRecordResponse) XXX_Size

func (m *QueryAllAutoSettleRecordResponse) XXX_Size() int

func (*QueryAllAutoSettleRecordResponse) XXX_Unmarshal

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

type QueryAllPaymentAccountCountRequest

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

func (*QueryAllPaymentAccountCountRequest) Descriptor

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

func (*QueryAllPaymentAccountCountRequest) GetPagination

func (*QueryAllPaymentAccountCountRequest) Marshal

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

func (*QueryAllPaymentAccountCountRequest) MarshalTo

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

func (*QueryAllPaymentAccountCountRequest) MarshalToSizedBuffer

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

func (*QueryAllPaymentAccountCountRequest) ProtoMessage

func (*QueryAllPaymentAccountCountRequest) ProtoMessage()

func (*QueryAllPaymentAccountCountRequest) Reset

func (*QueryAllPaymentAccountCountRequest) Size

func (*QueryAllPaymentAccountCountRequest) String

func (*QueryAllPaymentAccountCountRequest) Unmarshal

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

func (*QueryAllPaymentAccountCountRequest) XXX_DiscardUnknown

func (m *QueryAllPaymentAccountCountRequest) XXX_DiscardUnknown()

func (*QueryAllPaymentAccountCountRequest) XXX_Marshal

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

func (*QueryAllPaymentAccountCountRequest) XXX_Merge

func (*QueryAllPaymentAccountCountRequest) XXX_Size

func (*QueryAllPaymentAccountCountRequest) XXX_Unmarshal

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

type QueryAllPaymentAccountCountResponse

type QueryAllPaymentAccountCountResponse struct {
	PaymentAccountCount []PaymentAccountCount `protobuf:"bytes,1,rep,name=payment_account_count,json=paymentAccountCount,proto3" json:"payment_account_count"`
	Pagination          *query.PageResponse   `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllPaymentAccountCountResponse) Descriptor

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

func (*QueryAllPaymentAccountCountResponse) GetPagination

func (*QueryAllPaymentAccountCountResponse) GetPaymentAccountCount

func (m *QueryAllPaymentAccountCountResponse) GetPaymentAccountCount() []PaymentAccountCount

func (*QueryAllPaymentAccountCountResponse) Marshal

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

func (*QueryAllPaymentAccountCountResponse) MarshalTo

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

func (*QueryAllPaymentAccountCountResponse) MarshalToSizedBuffer

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

func (*QueryAllPaymentAccountCountResponse) ProtoMessage

func (*QueryAllPaymentAccountCountResponse) ProtoMessage()

func (*QueryAllPaymentAccountCountResponse) Reset

func (*QueryAllPaymentAccountCountResponse) Size

func (*QueryAllPaymentAccountCountResponse) String

func (*QueryAllPaymentAccountCountResponse) Unmarshal

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

func (*QueryAllPaymentAccountCountResponse) XXX_DiscardUnknown

func (m *QueryAllPaymentAccountCountResponse) XXX_DiscardUnknown()

func (*QueryAllPaymentAccountCountResponse) XXX_Marshal

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

func (*QueryAllPaymentAccountCountResponse) XXX_Merge

func (*QueryAllPaymentAccountCountResponse) XXX_Size

func (*QueryAllPaymentAccountCountResponse) XXX_Unmarshal

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

type QueryAllPaymentAccountRequest

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

func (*QueryAllPaymentAccountRequest) Descriptor

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

func (*QueryAllPaymentAccountRequest) GetPagination

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

func (*QueryAllPaymentAccountRequest) Marshal

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

func (*QueryAllPaymentAccountRequest) MarshalTo

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

func (*QueryAllPaymentAccountRequest) MarshalToSizedBuffer

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

func (*QueryAllPaymentAccountRequest) ProtoMessage

func (*QueryAllPaymentAccountRequest) ProtoMessage()

func (*QueryAllPaymentAccountRequest) Reset

func (m *QueryAllPaymentAccountRequest) Reset()

func (*QueryAllPaymentAccountRequest) Size

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

func (*QueryAllPaymentAccountRequest) String

func (*QueryAllPaymentAccountRequest) Unmarshal

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

func (*QueryAllPaymentAccountRequest) XXX_DiscardUnknown

func (m *QueryAllPaymentAccountRequest) XXX_DiscardUnknown()

func (*QueryAllPaymentAccountRequest) XXX_Marshal

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

func (*QueryAllPaymentAccountRequest) XXX_Merge

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

func (*QueryAllPaymentAccountRequest) XXX_Size

func (m *QueryAllPaymentAccountRequest) XXX_Size() int

func (*QueryAllPaymentAccountRequest) XXX_Unmarshal

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

type QueryAllPaymentAccountResponse

type QueryAllPaymentAccountResponse struct {
	PaymentAccount []PaymentAccount    `protobuf:"bytes,1,rep,name=payment_account,json=paymentAccount,proto3" json:"payment_account"`
	Pagination     *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllPaymentAccountResponse) Descriptor

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

func (*QueryAllPaymentAccountResponse) GetPagination

func (*QueryAllPaymentAccountResponse) GetPaymentAccount

func (m *QueryAllPaymentAccountResponse) GetPaymentAccount() []PaymentAccount

func (*QueryAllPaymentAccountResponse) Marshal

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

func (*QueryAllPaymentAccountResponse) MarshalTo

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

func (*QueryAllPaymentAccountResponse) MarshalToSizedBuffer

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

func (*QueryAllPaymentAccountResponse) ProtoMessage

func (*QueryAllPaymentAccountResponse) ProtoMessage()

func (*QueryAllPaymentAccountResponse) Reset

func (m *QueryAllPaymentAccountResponse) Reset()

func (*QueryAllPaymentAccountResponse) Size

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

func (*QueryAllPaymentAccountResponse) String

func (*QueryAllPaymentAccountResponse) Unmarshal

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

func (*QueryAllPaymentAccountResponse) XXX_DiscardUnknown

func (m *QueryAllPaymentAccountResponse) XXX_DiscardUnknown()

func (*QueryAllPaymentAccountResponse) XXX_Marshal

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

func (*QueryAllPaymentAccountResponse) XXX_Merge

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

func (*QueryAllPaymentAccountResponse) XXX_Size

func (m *QueryAllPaymentAccountResponse) XXX_Size() int

func (*QueryAllPaymentAccountResponse) XXX_Unmarshal

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

type QueryAllStreamRecordRequest

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

func (*QueryAllStreamRecordRequest) Descriptor

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

func (*QueryAllStreamRecordRequest) GetPagination

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

func (*QueryAllStreamRecordRequest) Marshal

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

func (*QueryAllStreamRecordRequest) MarshalTo

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

func (*QueryAllStreamRecordRequest) MarshalToSizedBuffer

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

func (*QueryAllStreamRecordRequest) ProtoMessage

func (*QueryAllStreamRecordRequest) ProtoMessage()

func (*QueryAllStreamRecordRequest) Reset

func (m *QueryAllStreamRecordRequest) Reset()

func (*QueryAllStreamRecordRequest) Size

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

func (*QueryAllStreamRecordRequest) String

func (m *QueryAllStreamRecordRequest) String() string

func (*QueryAllStreamRecordRequest) Unmarshal

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

func (*QueryAllStreamRecordRequest) XXX_DiscardUnknown

func (m *QueryAllStreamRecordRequest) XXX_DiscardUnknown()

func (*QueryAllStreamRecordRequest) XXX_Marshal

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

func (*QueryAllStreamRecordRequest) XXX_Merge

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

func (*QueryAllStreamRecordRequest) XXX_Size

func (m *QueryAllStreamRecordRequest) XXX_Size() int

func (*QueryAllStreamRecordRequest) XXX_Unmarshal

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

type QueryAllStreamRecordResponse

type QueryAllStreamRecordResponse struct {
	StreamRecord []StreamRecord      `protobuf:"bytes,1,rep,name=stream_record,json=streamRecord,proto3" json:"stream_record"`
	Pagination   *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllStreamRecordResponse) Descriptor

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

func (*QueryAllStreamRecordResponse) GetPagination

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

func (*QueryAllStreamRecordResponse) GetStreamRecord

func (m *QueryAllStreamRecordResponse) GetStreamRecord() []StreamRecord

func (*QueryAllStreamRecordResponse) Marshal

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

func (*QueryAllStreamRecordResponse) MarshalTo

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

func (*QueryAllStreamRecordResponse) MarshalToSizedBuffer

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

func (*QueryAllStreamRecordResponse) ProtoMessage

func (*QueryAllStreamRecordResponse) ProtoMessage()

func (*QueryAllStreamRecordResponse) Reset

func (m *QueryAllStreamRecordResponse) Reset()

func (*QueryAllStreamRecordResponse) Size

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

func (*QueryAllStreamRecordResponse) String

func (*QueryAllStreamRecordResponse) Unmarshal

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

func (*QueryAllStreamRecordResponse) XXX_DiscardUnknown

func (m *QueryAllStreamRecordResponse) XXX_DiscardUnknown()

func (*QueryAllStreamRecordResponse) XXX_Marshal

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

func (*QueryAllStreamRecordResponse) XXX_Merge

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

func (*QueryAllStreamRecordResponse) XXX_Size

func (m *QueryAllStreamRecordResponse) XXX_Size() int

func (*QueryAllStreamRecordResponse) XXX_Unmarshal

func (m *QueryAllStreamRecordResponse) 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 StreamRecord by index.
	StreamRecord(ctx context.Context, in *QueryGetStreamRecordRequest, opts ...grpc.CallOption) (*QueryGetStreamRecordResponse, error)
	// Queries a list of StreamRecord items.
	StreamRecordAll(ctx context.Context, in *QueryAllStreamRecordRequest, opts ...grpc.CallOption) (*QueryAllStreamRecordResponse, error)
	// Queries a PaymentAccountCount by index.
	PaymentAccountCount(ctx context.Context, in *QueryGetPaymentAccountCountRequest, opts ...grpc.CallOption) (*QueryGetPaymentAccountCountResponse, error)
	// Queries a list of PaymentAccountCount items.
	PaymentAccountCountAll(ctx context.Context, in *QueryAllPaymentAccountCountRequest, opts ...grpc.CallOption) (*QueryAllPaymentAccountCountResponse, error)
	// Queries a PaymentAccount by index.
	PaymentAccount(ctx context.Context, in *QueryGetPaymentAccountRequest, opts ...grpc.CallOption) (*QueryGetPaymentAccountResponse, error)
	// Queries a list of PaymentAccount items.
	PaymentAccountAll(ctx context.Context, in *QueryAllPaymentAccountRequest, opts ...grpc.CallOption) (*QueryAllPaymentAccountResponse, error)
	// Queries a list of DynamicBalance items.
	DynamicBalance(ctx context.Context, in *QueryDynamicBalanceRequest, opts ...grpc.CallOption) (*QueryDynamicBalanceResponse, error)
	// Queries a list of GetPaymentAccountsByOwner items.
	GetPaymentAccountsByOwner(ctx context.Context, in *QueryGetPaymentAccountsByOwnerRequest, opts ...grpc.CallOption) (*QueryGetPaymentAccountsByOwnerResponse, error)
	// Queries a list of AutoSettleRecord items.
	AutoSettleRecordAll(ctx context.Context, in *QueryAllAutoSettleRecordRequest, opts ...grpc.CallOption) (*QueryAllAutoSettleRecordResponse, 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 QueryDynamicBalanceRequest

type QueryDynamicBalanceRequest struct {
	Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
}

func (*QueryDynamicBalanceRequest) Descriptor

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

func (*QueryDynamicBalanceRequest) GetAccount

func (m *QueryDynamicBalanceRequest) GetAccount() string

func (*QueryDynamicBalanceRequest) Marshal

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

func (*QueryDynamicBalanceRequest) MarshalTo

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

func (*QueryDynamicBalanceRequest) MarshalToSizedBuffer

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

func (*QueryDynamicBalanceRequest) ProtoMessage

func (*QueryDynamicBalanceRequest) ProtoMessage()

func (*QueryDynamicBalanceRequest) Reset

func (m *QueryDynamicBalanceRequest) Reset()

func (*QueryDynamicBalanceRequest) Size

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

func (*QueryDynamicBalanceRequest) String

func (m *QueryDynamicBalanceRequest) String() string

func (*QueryDynamicBalanceRequest) Unmarshal

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

func (*QueryDynamicBalanceRequest) XXX_DiscardUnknown

func (m *QueryDynamicBalanceRequest) XXX_DiscardUnknown()

func (*QueryDynamicBalanceRequest) XXX_Marshal

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

func (*QueryDynamicBalanceRequest) XXX_Merge

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

func (*QueryDynamicBalanceRequest) XXX_Size

func (m *QueryDynamicBalanceRequest) XXX_Size() int

func (*QueryDynamicBalanceRequest) XXX_Unmarshal

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

type QueryDynamicBalanceResponse

type QueryDynamicBalanceResponse struct {
	// dynamic balance is static balance + flowDelta
	DynamicBalance github_com_cosmos_cosmos_sdk_types.Int `` /* 143-byte string literal not displayed */
	// the stream record of the given account, if it does not exist, it will be default values
	StreamRecord StreamRecord `protobuf:"bytes,2,opt,name=stream_record,json=streamRecord,proto3" json:"stream_record"`
	// the timestamp of the current block
	CurrentTimestamp int64 `protobuf:"varint,3,opt,name=current_timestamp,json=currentTimestamp,proto3" json:"current_timestamp,omitempty"`
	// bank_balance is the BNB balance of the bank module
	BankBalance github_com_cosmos_cosmos_sdk_types.Int `` /* 134-byte string literal not displayed */
	// available_balance is bank balance + static balance
	AvailableBalance github_com_cosmos_cosmos_sdk_types.Int `` /* 149-byte string literal not displayed */
	// locked_fee is buffer balance + locked balance
	LockedFee github_com_cosmos_cosmos_sdk_types.Int `` /* 128-byte string literal not displayed */
	// change_rate is the netflow rate of the given account
	ChangeRate github_com_cosmos_cosmos_sdk_types.Int `` /* 131-byte string literal not displayed */
}

func (*QueryDynamicBalanceResponse) Descriptor

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

func (*QueryDynamicBalanceResponse) GetCurrentTimestamp

func (m *QueryDynamicBalanceResponse) GetCurrentTimestamp() int64

func (*QueryDynamicBalanceResponse) GetStreamRecord

func (m *QueryDynamicBalanceResponse) GetStreamRecord() StreamRecord

func (*QueryDynamicBalanceResponse) Marshal

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

func (*QueryDynamicBalanceResponse) MarshalTo

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

func (*QueryDynamicBalanceResponse) MarshalToSizedBuffer

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

func (*QueryDynamicBalanceResponse) ProtoMessage

func (*QueryDynamicBalanceResponse) ProtoMessage()

func (*QueryDynamicBalanceResponse) Reset

func (m *QueryDynamicBalanceResponse) Reset()

func (*QueryDynamicBalanceResponse) Size

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

func (*QueryDynamicBalanceResponse) String

func (m *QueryDynamicBalanceResponse) String() string

func (*QueryDynamicBalanceResponse) Unmarshal

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

func (*QueryDynamicBalanceResponse) XXX_DiscardUnknown

func (m *QueryDynamicBalanceResponse) XXX_DiscardUnknown()

func (*QueryDynamicBalanceResponse) XXX_Marshal

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

func (*QueryDynamicBalanceResponse) XXX_Merge

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

func (*QueryDynamicBalanceResponse) XXX_Size

func (m *QueryDynamicBalanceResponse) XXX_Size() int

func (*QueryDynamicBalanceResponse) XXX_Unmarshal

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

type QueryGetPaymentAccountCountRequest

type QueryGetPaymentAccountCountRequest struct {
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
}

func (*QueryGetPaymentAccountCountRequest) Descriptor

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

func (*QueryGetPaymentAccountCountRequest) GetOwner

func (*QueryGetPaymentAccountCountRequest) Marshal

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

func (*QueryGetPaymentAccountCountRequest) MarshalTo

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

func (*QueryGetPaymentAccountCountRequest) MarshalToSizedBuffer

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

func (*QueryGetPaymentAccountCountRequest) ProtoMessage

func (*QueryGetPaymentAccountCountRequest) ProtoMessage()

func (*QueryGetPaymentAccountCountRequest) Reset

func (*QueryGetPaymentAccountCountRequest) Size

func (*QueryGetPaymentAccountCountRequest) String

func (*QueryGetPaymentAccountCountRequest) Unmarshal

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

func (*QueryGetPaymentAccountCountRequest) XXX_DiscardUnknown

func (m *QueryGetPaymentAccountCountRequest) XXX_DiscardUnknown()

func (*QueryGetPaymentAccountCountRequest) XXX_Marshal

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

func (*QueryGetPaymentAccountCountRequest) XXX_Merge

func (*QueryGetPaymentAccountCountRequest) XXX_Size

func (*QueryGetPaymentAccountCountRequest) XXX_Unmarshal

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

type QueryGetPaymentAccountCountResponse

type QueryGetPaymentAccountCountResponse struct {
	PaymentAccountCount PaymentAccountCount `protobuf:"bytes,1,opt,name=payment_account_count,json=paymentAccountCount,proto3" json:"payment_account_count"`
}

func (*QueryGetPaymentAccountCountResponse) Descriptor

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

func (*QueryGetPaymentAccountCountResponse) GetPaymentAccountCount

func (m *QueryGetPaymentAccountCountResponse) GetPaymentAccountCount() PaymentAccountCount

func (*QueryGetPaymentAccountCountResponse) Marshal

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

func (*QueryGetPaymentAccountCountResponse) MarshalTo

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

func (*QueryGetPaymentAccountCountResponse) MarshalToSizedBuffer

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

func (*QueryGetPaymentAccountCountResponse) ProtoMessage

func (*QueryGetPaymentAccountCountResponse) ProtoMessage()

func (*QueryGetPaymentAccountCountResponse) Reset

func (*QueryGetPaymentAccountCountResponse) Size

func (*QueryGetPaymentAccountCountResponse) String

func (*QueryGetPaymentAccountCountResponse) Unmarshal

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

func (*QueryGetPaymentAccountCountResponse) XXX_DiscardUnknown

func (m *QueryGetPaymentAccountCountResponse) XXX_DiscardUnknown()

func (*QueryGetPaymentAccountCountResponse) XXX_Marshal

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

func (*QueryGetPaymentAccountCountResponse) XXX_Merge

func (*QueryGetPaymentAccountCountResponse) XXX_Size

func (*QueryGetPaymentAccountCountResponse) XXX_Unmarshal

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

type QueryGetPaymentAccountRequest

type QueryGetPaymentAccountRequest struct {
	Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
}

func (*QueryGetPaymentAccountRequest) Descriptor

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

func (*QueryGetPaymentAccountRequest) GetAddr

func (*QueryGetPaymentAccountRequest) Marshal

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

func (*QueryGetPaymentAccountRequest) MarshalTo

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

func (*QueryGetPaymentAccountRequest) MarshalToSizedBuffer

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

func (*QueryGetPaymentAccountRequest) ProtoMessage

func (*QueryGetPaymentAccountRequest) ProtoMessage()

func (*QueryGetPaymentAccountRequest) Reset

func (m *QueryGetPaymentAccountRequest) Reset()

func (*QueryGetPaymentAccountRequest) Size

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

func (*QueryGetPaymentAccountRequest) String

func (*QueryGetPaymentAccountRequest) Unmarshal

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

func (*QueryGetPaymentAccountRequest) XXX_DiscardUnknown

func (m *QueryGetPaymentAccountRequest) XXX_DiscardUnknown()

func (*QueryGetPaymentAccountRequest) XXX_Marshal

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

func (*QueryGetPaymentAccountRequest) XXX_Merge

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

func (*QueryGetPaymentAccountRequest) XXX_Size

func (m *QueryGetPaymentAccountRequest) XXX_Size() int

func (*QueryGetPaymentAccountRequest) XXX_Unmarshal

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

type QueryGetPaymentAccountResponse

type QueryGetPaymentAccountResponse struct {
	PaymentAccount PaymentAccount `protobuf:"bytes,1,opt,name=payment_account,json=paymentAccount,proto3" json:"payment_account"`
}

func (*QueryGetPaymentAccountResponse) Descriptor

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

func (*QueryGetPaymentAccountResponse) GetPaymentAccount

func (m *QueryGetPaymentAccountResponse) GetPaymentAccount() PaymentAccount

func (*QueryGetPaymentAccountResponse) Marshal

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

func (*QueryGetPaymentAccountResponse) MarshalTo

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

func (*QueryGetPaymentAccountResponse) MarshalToSizedBuffer

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

func (*QueryGetPaymentAccountResponse) ProtoMessage

func (*QueryGetPaymentAccountResponse) ProtoMessage()

func (*QueryGetPaymentAccountResponse) Reset

func (m *QueryGetPaymentAccountResponse) Reset()

func (*QueryGetPaymentAccountResponse) Size

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

func (*QueryGetPaymentAccountResponse) String

func (*QueryGetPaymentAccountResponse) Unmarshal

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

func (*QueryGetPaymentAccountResponse) XXX_DiscardUnknown

func (m *QueryGetPaymentAccountResponse) XXX_DiscardUnknown()

func (*QueryGetPaymentAccountResponse) XXX_Marshal

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

func (*QueryGetPaymentAccountResponse) XXX_Merge

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

func (*QueryGetPaymentAccountResponse) XXX_Size

func (m *QueryGetPaymentAccountResponse) XXX_Size() int

func (*QueryGetPaymentAccountResponse) XXX_Unmarshal

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

type QueryGetPaymentAccountsByOwnerRequest

type QueryGetPaymentAccountsByOwnerRequest struct {
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
}

func (*QueryGetPaymentAccountsByOwnerRequest) Descriptor

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

func (*QueryGetPaymentAccountsByOwnerRequest) GetOwner

func (*QueryGetPaymentAccountsByOwnerRequest) Marshal

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

func (*QueryGetPaymentAccountsByOwnerRequest) MarshalTo

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

func (*QueryGetPaymentAccountsByOwnerRequest) MarshalToSizedBuffer

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

func (*QueryGetPaymentAccountsByOwnerRequest) ProtoMessage

func (*QueryGetPaymentAccountsByOwnerRequest) ProtoMessage()

func (*QueryGetPaymentAccountsByOwnerRequest) Reset

func (*QueryGetPaymentAccountsByOwnerRequest) Size

func (*QueryGetPaymentAccountsByOwnerRequest) String

func (*QueryGetPaymentAccountsByOwnerRequest) Unmarshal

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

func (*QueryGetPaymentAccountsByOwnerRequest) XXX_DiscardUnknown

func (m *QueryGetPaymentAccountsByOwnerRequest) XXX_DiscardUnknown()

func (*QueryGetPaymentAccountsByOwnerRequest) XXX_Marshal

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

func (*QueryGetPaymentAccountsByOwnerRequest) XXX_Merge

func (*QueryGetPaymentAccountsByOwnerRequest) XXX_Size

func (*QueryGetPaymentAccountsByOwnerRequest) XXX_Unmarshal

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

type QueryGetPaymentAccountsByOwnerResponse

type QueryGetPaymentAccountsByOwnerResponse struct {
	PaymentAccounts []string `protobuf:"bytes,1,rep,name=paymentAccounts,proto3" json:"paymentAccounts,omitempty"`
}

func (*QueryGetPaymentAccountsByOwnerResponse) Descriptor

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

func (*QueryGetPaymentAccountsByOwnerResponse) GetPaymentAccounts

func (m *QueryGetPaymentAccountsByOwnerResponse) GetPaymentAccounts() []string

func (*QueryGetPaymentAccountsByOwnerResponse) Marshal

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

func (*QueryGetPaymentAccountsByOwnerResponse) MarshalTo

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

func (*QueryGetPaymentAccountsByOwnerResponse) MarshalToSizedBuffer

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

func (*QueryGetPaymentAccountsByOwnerResponse) ProtoMessage

func (*QueryGetPaymentAccountsByOwnerResponse) Reset

func (*QueryGetPaymentAccountsByOwnerResponse) Size

func (*QueryGetPaymentAccountsByOwnerResponse) String

func (*QueryGetPaymentAccountsByOwnerResponse) Unmarshal

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

func (*QueryGetPaymentAccountsByOwnerResponse) XXX_DiscardUnknown

func (m *QueryGetPaymentAccountsByOwnerResponse) XXX_DiscardUnknown()

func (*QueryGetPaymentAccountsByOwnerResponse) XXX_Marshal

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

func (*QueryGetPaymentAccountsByOwnerResponse) XXX_Merge

func (*QueryGetPaymentAccountsByOwnerResponse) XXX_Size

func (*QueryGetPaymentAccountsByOwnerResponse) XXX_Unmarshal

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

type QueryGetStreamRecordRequest

type QueryGetStreamRecordRequest struct {
	Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
}

func (*QueryGetStreamRecordRequest) Descriptor

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

func (*QueryGetStreamRecordRequest) GetAccount

func (m *QueryGetStreamRecordRequest) GetAccount() string

func (*QueryGetStreamRecordRequest) Marshal

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

func (*QueryGetStreamRecordRequest) MarshalTo

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

func (*QueryGetStreamRecordRequest) MarshalToSizedBuffer

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

func (*QueryGetStreamRecordRequest) ProtoMessage

func (*QueryGetStreamRecordRequest) ProtoMessage()

func (*QueryGetStreamRecordRequest) Reset

func (m *QueryGetStreamRecordRequest) Reset()

func (*QueryGetStreamRecordRequest) Size

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

func (*QueryGetStreamRecordRequest) String

func (m *QueryGetStreamRecordRequest) String() string

func (*QueryGetStreamRecordRequest) Unmarshal

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

func (*QueryGetStreamRecordRequest) XXX_DiscardUnknown

func (m *QueryGetStreamRecordRequest) XXX_DiscardUnknown()

func (*QueryGetStreamRecordRequest) XXX_Marshal

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

func (*QueryGetStreamRecordRequest) XXX_Merge

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

func (*QueryGetStreamRecordRequest) XXX_Size

func (m *QueryGetStreamRecordRequest) XXX_Size() int

func (*QueryGetStreamRecordRequest) XXX_Unmarshal

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

type QueryGetStreamRecordResponse

type QueryGetStreamRecordResponse struct {
	StreamRecord StreamRecord `protobuf:"bytes,1,opt,name=stream_record,json=streamRecord,proto3" json:"stream_record"`
}

func (*QueryGetStreamRecordResponse) Descriptor

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

func (*QueryGetStreamRecordResponse) GetStreamRecord

func (m *QueryGetStreamRecordResponse) GetStreamRecord() StreamRecord

func (*QueryGetStreamRecordResponse) Marshal

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

func (*QueryGetStreamRecordResponse) MarshalTo

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

func (*QueryGetStreamRecordResponse) MarshalToSizedBuffer

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

func (*QueryGetStreamRecordResponse) ProtoMessage

func (*QueryGetStreamRecordResponse) ProtoMessage()

func (*QueryGetStreamRecordResponse) Reset

func (m *QueryGetStreamRecordResponse) Reset()

func (*QueryGetStreamRecordResponse) Size

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

func (*QueryGetStreamRecordResponse) String

func (*QueryGetStreamRecordResponse) Unmarshal

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

func (*QueryGetStreamRecordResponse) XXX_DiscardUnknown

func (m *QueryGetStreamRecordResponse) XXX_DiscardUnknown()

func (*QueryGetStreamRecordResponse) XXX_Marshal

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

func (*QueryGetStreamRecordResponse) XXX_Merge

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

func (*QueryGetStreamRecordResponse) XXX_Size

func (m *QueryGetStreamRecordResponse) XXX_Size() int

func (*QueryGetStreamRecordResponse) XXX_Unmarshal

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

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 StreamRecord by index.
	StreamRecord(context.Context, *QueryGetStreamRecordRequest) (*QueryGetStreamRecordResponse, error)
	// Queries a list of StreamRecord items.
	StreamRecordAll(context.Context, *QueryAllStreamRecordRequest) (*QueryAllStreamRecordResponse, error)
	// Queries a PaymentAccountCount by index.
	PaymentAccountCount(context.Context, *QueryGetPaymentAccountCountRequest) (*QueryGetPaymentAccountCountResponse, error)
	// Queries a list of PaymentAccountCount items.
	PaymentAccountCountAll(context.Context, *QueryAllPaymentAccountCountRequest) (*QueryAllPaymentAccountCountResponse, error)
	// Queries a PaymentAccount by index.
	PaymentAccount(context.Context, *QueryGetPaymentAccountRequest) (*QueryGetPaymentAccountResponse, error)
	// Queries a list of PaymentAccount items.
	PaymentAccountAll(context.Context, *QueryAllPaymentAccountRequest) (*QueryAllPaymentAccountResponse, error)
	// Queries a list of DynamicBalance items.
	DynamicBalance(context.Context, *QueryDynamicBalanceRequest) (*QueryDynamicBalanceResponse, error)
	// Queries a list of GetPaymentAccountsByOwner items.
	GetPaymentAccountsByOwner(context.Context, *QueryGetPaymentAccountsByOwnerRequest) (*QueryGetPaymentAccountsByOwnerResponse, error)
	// Queries a list of AutoSettleRecord items.
	AutoSettleRecordAll(context.Context, *QueryAllAutoSettleRecordRequest) (*QueryAllAutoSettleRecordResponse, error)
}

QueryServer is the server API for Query service.

type SpKeeper added in v0.0.7

type SpKeeper interface {
	GetSpStoragePriceByTime(ctx sdk.Context, spAddr sdk.AccAddress, time int64) (val sptypes.SpStoragePrice, err error)
	GetSecondarySpStorePriceByTime(ctx sdk.Context, time int64) (val sptypes.SecondarySpStorePrice, err error)
}

SpKeeper defines the expected interface needed to retrieve storage provider.

type StoragePrice added in v0.0.7

type StoragePrice struct {
	ReadPrice           sdk.Dec
	PrimaryStorePrice   sdk.Dec
	SecondaryStorePrice sdk.Dec
}

type StoragePriceParams added in v0.0.7

type StoragePriceParams struct {
	PrimarySp string
	PriceTime int64
}

type StreamAccountStatus added in v0.0.7

type StreamAccountStatus int32

StreamAccountStatus defines the status of a stream account

const (
	// STREAM_ACCOUNT_STATUS_ACTIVE defines the active status of a stream account.
	STREAM_ACCOUNT_STATUS_ACTIVE StreamAccountStatus = 0
	// STREAM_ACCOUNT_STATUS_FROZEN defines the frozen status of a stream account.
	// A frozen stream account cannot be used as payment address for buckets.
	// It can be unfrozen by depositing more BNB to the stream account.
	STREAM_ACCOUNT_STATUS_FROZEN StreamAccountStatus = 1
)

func (StreamAccountStatus) EnumDescriptor added in v0.0.7

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

func (StreamAccountStatus) String added in v0.0.7

func (x StreamAccountStatus) String() string

type StreamRecord

type StreamRecord struct {
	// account address
	Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	// latest update timestamp of the stream record
	CrudTimestamp int64 `protobuf:"varint,2,opt,name=crud_timestamp,json=crudTimestamp,proto3" json:"crud_timestamp,omitempty"`
	// The per-second rate that an account's balance is changing.
	// It is the sum of the account's inbound and outbound flow rates.
	NetflowRate github_com_cosmos_cosmos_sdk_types.Int `` /* 134-byte string literal not displayed */
	// The balance of the stream account at the latest CRUD timestamp.
	StaticBalance github_com_cosmos_cosmos_sdk_types.Int `` /* 140-byte string literal not displayed */
	// reserved balance of the stream account
	// If the netflow rate is negative, the reserved balance is `netflow_rate * reserve_time`
	BufferBalance github_com_cosmos_cosmos_sdk_types.Int `` /* 140-byte string literal not displayed */
	// the locked balance of the stream account after it puts a new object and before the object is sealed
	LockBalance github_com_cosmos_cosmos_sdk_types.Int `` /* 134-byte string literal not displayed */
	// the status of the stream account
	Status StreamAccountStatus `protobuf:"varint,7,opt,name=status,proto3,enum=greenfield.payment.StreamAccountStatus" json:"status,omitempty"`
	// the unix timestamp when the stream account will be settled
	SettleTimestamp int64 `protobuf:"varint,8,opt,name=settle_timestamp,json=settleTimestamp,proto3" json:"settle_timestamp,omitempty"`
	// the accumulated outflow rates of the stream account
	OutFlows []OutFlow `protobuf:"bytes,9,rep,name=out_flows,json=outFlows,proto3" json:"out_flows"`
}

Stream Payment Record of a stream account

func NewStreamRecord

func NewStreamRecord(account sdk.AccAddress, crudTimestamp int64) *StreamRecord

func (*StreamRecord) Descriptor

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

func (*StreamRecord) GetAccount

func (m *StreamRecord) GetAccount() string

func (*StreamRecord) GetCrudTimestamp

func (m *StreamRecord) GetCrudTimestamp() int64

func (*StreamRecord) GetOutFlows added in v0.0.7

func (m *StreamRecord) GetOutFlows() []OutFlow

func (*StreamRecord) GetSettleTimestamp

func (m *StreamRecord) GetSettleTimestamp() int64

func (*StreamRecord) GetStatus

func (m *StreamRecord) GetStatus() StreamAccountStatus

func (*StreamRecord) Marshal

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

func (*StreamRecord) MarshalTo

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

func (*StreamRecord) MarshalToSizedBuffer

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

func (*StreamRecord) ProtoMessage

func (*StreamRecord) ProtoMessage()

func (*StreamRecord) Reset

func (m *StreamRecord) Reset()

func (*StreamRecord) Size

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

func (*StreamRecord) String

func (m *StreamRecord) String() string

func (*StreamRecord) Unmarshal

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

func (*StreamRecord) XXX_DiscardUnknown

func (m *StreamRecord) XXX_DiscardUnknown()

func (*StreamRecord) XXX_Marshal

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

func (*StreamRecord) XXX_Merge

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

func (*StreamRecord) XXX_Size

func (m *StreamRecord) XXX_Size() int

func (*StreamRecord) XXX_Unmarshal

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

type StreamRecordChange

type StreamRecordChange struct {
	Addr                sdk.AccAddress
	RateChange          sdkmath.Int
	StaticBalanceChange sdkmath.Int
	LockBalanceChange   sdkmath.Int
}

func NewDefaultStreamRecordChangeWithAddr

func NewDefaultStreamRecordChangeWithAddr(addr sdk.AccAddress) *StreamRecordChange

func (*StreamRecordChange) WithLockBalanceChange

func (change *StreamRecordChange) WithLockBalanceChange(lockBalanceChange sdkmath.Int) *StreamRecordChange

func (*StreamRecordChange) WithRateChange

func (change *StreamRecordChange) WithRateChange(rateChange sdkmath.Int) *StreamRecordChange

func (*StreamRecordChange) WithStaticBalanceChange

func (change *StreamRecordChange) WithStaticBalanceChange(staticBalanceChange sdkmath.Int) *StreamRecordChange

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CreatePaymentAccount

func (*UnimplementedMsgServer) Deposit

func (*UnimplementedMsgServer) DisableRefund

func (*UnimplementedMsgServer) UpdateParams added in v0.2.0

func (*UnimplementedMsgServer) Withdraw

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) AutoSettleRecordAll

func (*UnimplementedQueryServer) DynamicBalance

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) PaymentAccount

func (*UnimplementedQueryServer) PaymentAccountAll

func (*UnimplementedQueryServer) StreamRecord

func (*UnimplementedQueryServer) StreamRecordAll

type UserFlows added in v0.0.7

type UserFlows struct {
	From  sdk.AccAddress
	Flows []OutFlow
}

Jump to

Keyboard shortcuts

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