Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) ApplyStreamRecordChanges(ctx sdk.Context, streamRecordChanges []types.StreamRecordChange) error
- func (k Keeper) ApplyUserFlowsList(ctx sdk.Context, userFlowsList []types.UserFlows) (err error)
- func (k Keeper) AutoSettle(ctx sdk.Context)
- func (k Keeper) AutoSettleRecord(c context.Context, req *types.QueryGetAutoSettleRecordRequest) (*types.QueryGetAutoSettleRecordResponse, error)
- func (k Keeper) AutoSettleRecordAll(c context.Context, req *types.QueryAllAutoSettleRecordRequest) (*types.QueryAllAutoSettleRecordResponse, error)
- func (k Keeper) CheckStreamRecord(streamRecord *types.StreamRecord)
- func (k Keeper) DerivePaymentAccountAddress(owner sdk.AccAddress, index uint64) sdk.AccAddress
- func (k Keeper) DynamicBalance(goCtx context.Context, req *types.QueryDynamicBalanceRequest) (*types.QueryDynamicBalanceResponse, error)
- func (k Keeper) ForceSettle(ctx sdk.Context, streamRecord *types.StreamRecord) error
- func (k Keeper) GetAllAutoSettleRecord(ctx sdk.Context) (list []types.AutoSettleRecord)
- func (k Keeper) GetAllPaymentAccount(ctx sdk.Context) (list []types.PaymentAccount)
- func (k Keeper) GetAllPaymentAccountCount(ctx sdk.Context) (list []types.PaymentAccountCount)
- func (k Keeper) GetAllStreamRecord(ctx sdk.Context) (list []types.StreamRecord)
- func (k Keeper) GetAutoSettleRecord(ctx sdk.Context, timestamp int64, addr sdk.AccAddress) (val *types.AutoSettleRecord, found bool)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetPaymentAccount(ctx sdk.Context, addr sdk.AccAddress) (val *types.PaymentAccount, found bool)
- func (k Keeper) GetPaymentAccountCount(ctx sdk.Context, owner sdk.AccAddress) (val *types.PaymentAccountCount, found bool)
- func (k Keeper) GetPaymentAccountsByOwner(goCtx context.Context, req *types.QueryGetPaymentAccountsByOwnerRequest) (*types.QueryGetPaymentAccountsByOwnerResponse, error)
- func (k Keeper) GetStoragePrice(ctx sdk.Context, params types.StoragePriceParams) (price types.StoragePrice, err error)
- func (k Keeper) GetStreamRecord(ctx sdk.Context, account sdk.AccAddress) (val *types.StreamRecord, found bool)
- func (k Keeper) IsPaymentAccountOwner(ctx sdk.Context, addr, owner sdk.AccAddress) bool
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MergeOutFlows(flows []types.OutFlow) []types.OutFlow
- func (k Keeper) MergeStreamRecordChanges(changes []types.StreamRecordChange) []types.StreamRecordChange
- func (k Keeper) MergeUserFlows(userFlowsList []types.UserFlows) []types.UserFlows
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) PaymentAccount(c context.Context, req *types.QueryGetPaymentAccountRequest) (*types.QueryGetPaymentAccountResponse, error)
- func (k Keeper) PaymentAccountAll(c context.Context, req *types.QueryAllPaymentAccountRequest) (*types.QueryAllPaymentAccountResponse, error)
- func (k Keeper) PaymentAccountCount(c context.Context, req *types.QueryGetPaymentAccountCountRequest) (*types.QueryGetPaymentAccountCountResponse, error)
- func (k Keeper) PaymentAccountCountAll(c context.Context, req *types.QueryAllPaymentAccountCountRequest) (*types.QueryAllPaymentAccountCountResponse, error)
- func (k Keeper) QueryDynamicBalance(ctx sdk.Context, addr sdk.AccAddress) (amount sdkmath.Int, err error)
- func (k Keeper) RemoveAutoSettleRecord(ctx sdk.Context, timestamp int64, addr sdk.AccAddress)
- func (k Keeper) RemovePaymentAccountCount(ctx sdk.Context, owner sdk.AccAddress)
- func (k Keeper) SetAutoSettleRecord(ctx sdk.Context, autoSettleRecord *types.AutoSettleRecord)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetPaymentAccount(ctx sdk.Context, paymentAccount *types.PaymentAccount)
- func (k Keeper) SetPaymentAccountCount(ctx sdk.Context, paymentAccountCount *types.PaymentAccountCount)
- func (k Keeper) SetStreamRecord(ctx sdk.Context, streamRecord *types.StreamRecord)
- func (k Keeper) StreamRecord(c context.Context, req *types.QueryGetStreamRecordRequest) (*types.QueryGetStreamRecordResponse, error)
- func (k Keeper) StreamRecordAll(c context.Context, req *types.QueryAllStreamRecordRequest) (*types.QueryAllStreamRecordResponse, error)
- func (k Keeper) TryResumeStreamRecord(ctx sdk.Context, streamRecord *types.StreamRecord, depositBalance sdkmath.Int) error
- func (k Keeper) UpdateAutoSettleRecord(ctx sdk.Context, addr sdk.AccAddress, oldTime, newTime int64)
- func (k Keeper) UpdateStreamRecord(ctx sdk.Context, streamRecord *types.StreamRecord, ...) error
- func (k Keeper) UpdateStreamRecordByAddr(ctx sdk.Context, change *types.StreamRecordChange) (ret *types.StreamRecord, err error)
- func (k Keeper) Withdraw(ctx sdk.Context, fromAddr, toAddr sdk.AccAddress, amount sdkmath.Int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey storetypes.StoreKey, ps paramtypes.Subspace, bankKeeper types.BankKeeper, accountKeeper types.AccountKeeper, spKeeper types.SpKeeper, ) *Keeper
func (Keeper) ApplyStreamRecordChanges ¶
func (k Keeper) ApplyStreamRecordChanges(ctx sdk.Context, streamRecordChanges []types.StreamRecordChange) error
ApplyStreamRecordChanges assume StreamRecordChange is unique by Addr
func (Keeper) ApplyUserFlowsList ¶ added in v0.0.7
ApplyUserFlowsList
func (Keeper) AutoSettle ¶
func (Keeper) AutoSettleRecord ¶
func (k Keeper) AutoSettleRecord(c context.Context, req *types.QueryGetAutoSettleRecordRequest) (*types.QueryGetAutoSettleRecordResponse, error)
func (Keeper) AutoSettleRecordAll ¶
func (k Keeper) AutoSettleRecordAll(c context.Context, req *types.QueryAllAutoSettleRecordRequest) (*types.QueryAllAutoSettleRecordResponse, error)
func (Keeper) CheckStreamRecord ¶ added in v0.0.7
func (k Keeper) CheckStreamRecord(streamRecord *types.StreamRecord)
func (Keeper) DerivePaymentAccountAddress ¶ added in v0.0.10
func (k Keeper) DerivePaymentAccountAddress(owner sdk.AccAddress, index uint64) sdk.AccAddress
func (Keeper) DynamicBalance ¶
func (k Keeper) DynamicBalance(goCtx context.Context, req *types.QueryDynamicBalanceRequest) (*types.QueryDynamicBalanceResponse, error)
func (Keeper) ForceSettle ¶
func (Keeper) GetAllAutoSettleRecord ¶
func (k Keeper) GetAllAutoSettleRecord(ctx sdk.Context) (list []types.AutoSettleRecord)
GetAllAutoSettleRecord returns all autoSettleRecord
func (Keeper) GetAllPaymentAccount ¶
func (k Keeper) GetAllPaymentAccount(ctx sdk.Context) (list []types.PaymentAccount)
GetAllPaymentAccount returns all paymentAccount
func (Keeper) GetAllPaymentAccountCount ¶
func (k Keeper) GetAllPaymentAccountCount(ctx sdk.Context) (list []types.PaymentAccountCount)
GetAllPaymentAccountCount returns all paymentAccountCount
func (Keeper) GetAllStreamRecord ¶
func (k Keeper) GetAllStreamRecord(ctx sdk.Context) (list []types.StreamRecord)
GetAllStreamRecord returns all streamRecord
func (Keeper) GetAutoSettleRecord ¶
func (k Keeper) GetAutoSettleRecord( ctx sdk.Context, timestamp int64, addr sdk.AccAddress, ) (val *types.AutoSettleRecord, found bool)
GetAutoSettleRecord returns a autoSettleRecord from its index
func (Keeper) GetPaymentAccount ¶
func (k Keeper) GetPaymentAccount( ctx sdk.Context, addr sdk.AccAddress, ) (val *types.PaymentAccount, found bool)
GetPaymentAccount returns a paymentAccount from its index
func (Keeper) GetPaymentAccountCount ¶
func (k Keeper) GetPaymentAccountCount( ctx sdk.Context, owner sdk.AccAddress, ) (val *types.PaymentAccountCount, found bool)
GetPaymentAccountCount returns a paymentAccountCount from its index
func (Keeper) GetPaymentAccountsByOwner ¶
func (k Keeper) GetPaymentAccountsByOwner(goCtx context.Context, req *types.QueryGetPaymentAccountsByOwnerRequest) (*types.QueryGetPaymentAccountsByOwnerResponse, error)
func (Keeper) GetStoragePrice ¶ added in v0.0.7
func (k Keeper) GetStoragePrice(ctx sdk.Context, params types.StoragePriceParams) (price types.StoragePrice, err error)
func (Keeper) GetStreamRecord ¶
func (k Keeper) GetStreamRecord( ctx sdk.Context, account sdk.AccAddress, ) (val *types.StreamRecord, found bool)
GetStreamRecord returns a streamRecord from its index
func (Keeper) IsPaymentAccountOwner ¶
func (Keeper) MergeOutFlows ¶ added in v0.0.7
MergeOutFlows merge flows with same address
func (Keeper) MergeStreamRecordChanges ¶
func (k Keeper) MergeStreamRecordChanges(changes []types.StreamRecordChange) []types.StreamRecordChange
MergeStreamRecordChanges merge changes with same address
func (Keeper) MergeUserFlows ¶ added in v0.0.7
MergeUserFlows merge flows with same From address
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) PaymentAccount ¶
func (k Keeper) PaymentAccount(c context.Context, req *types.QueryGetPaymentAccountRequest) (*types.QueryGetPaymentAccountResponse, error)
func (Keeper) PaymentAccountAll ¶
func (k Keeper) PaymentAccountAll(c context.Context, req *types.QueryAllPaymentAccountRequest) (*types.QueryAllPaymentAccountResponse, error)
func (Keeper) PaymentAccountCount ¶
func (k Keeper) PaymentAccountCount(c context.Context, req *types.QueryGetPaymentAccountCountRequest) (*types.QueryGetPaymentAccountCountResponse, error)
func (Keeper) PaymentAccountCountAll ¶
func (k Keeper) PaymentAccountCountAll(c context.Context, req *types.QueryAllPaymentAccountCountRequest) (*types.QueryAllPaymentAccountCountResponse, error)
func (Keeper) QueryDynamicBalance ¶ added in v0.0.10
func (Keeper) RemoveAutoSettleRecord ¶
RemoveAutoSettleRecord removes a autoSettleRecord from the store
func (Keeper) RemovePaymentAccountCount ¶
func (k Keeper) RemovePaymentAccountCount( ctx sdk.Context, owner sdk.AccAddress, )
RemovePaymentAccountCount removes a paymentAccountCount from the store
func (Keeper) SetAutoSettleRecord ¶
func (k Keeper) SetAutoSettleRecord(ctx sdk.Context, autoSettleRecord *types.AutoSettleRecord)
SetAutoSettleRecord set a specific autoSettleRecord in the store from its index
func (Keeper) SetPaymentAccount ¶
func (k Keeper) SetPaymentAccount(ctx sdk.Context, paymentAccount *types.PaymentAccount)
SetPaymentAccount set a specific paymentAccount in the store from its index
func (Keeper) SetPaymentAccountCount ¶
func (k Keeper) SetPaymentAccountCount(ctx sdk.Context, paymentAccountCount *types.PaymentAccountCount)
SetPaymentAccountCount set a specific paymentAccountCount in the store from its index
func (Keeper) SetStreamRecord ¶
func (k Keeper) SetStreamRecord(ctx sdk.Context, streamRecord *types.StreamRecord)
SetStreamRecord set a specific streamRecord in the store from its index
func (Keeper) StreamRecord ¶
func (k Keeper) StreamRecord(c context.Context, req *types.QueryGetStreamRecordRequest) (*types.QueryGetStreamRecordResponse, error)
func (Keeper) StreamRecordAll ¶
func (k Keeper) StreamRecordAll(c context.Context, req *types.QueryAllStreamRecordRequest) (*types.QueryAllStreamRecordResponse, error)
func (Keeper) TryResumeStreamRecord ¶ added in v0.0.7
func (Keeper) UpdateAutoSettleRecord ¶
func (Keeper) UpdateStreamRecord ¶
func (k Keeper) UpdateStreamRecord(ctx sdk.Context, streamRecord *types.StreamRecord, change *types.StreamRecordChange, autoSettle bool) error
func (Keeper) UpdateStreamRecordByAddr ¶
func (k Keeper) UpdateStreamRecordByAddr(ctx sdk.Context, change *types.StreamRecordChange) (ret *types.StreamRecord, err error)
Source Files ¶
- auto_settle_record.go
- grpc_query.go
- grpc_query_dynamic_balance.go
- grpc_query_get_payment_accounts_by_owner.go
- grpc_query_params.go
- grpc_query_payment_account.go
- grpc_query_payment_account_count.go
- grpc_query_stream_record.go
- keeper.go
- msg_server.go
- msg_server_create_payment_account.go
- msg_server_deposit.go
- msg_server_disable_refund.go
- msg_server_withdraw.go
- params.go
- payment_account.go
- payment_account_count.go
- price.go
- query_auto_settle_record.go
- storage_fee_charge.go
- stream_record.go