Documentation ¶
Index ¶
- Constants
- func NewQuerier(k Keeper) sdk.Querier
- type Keeper
- func (k Keeper) AddOperator(ctx sdk.Context, address sdk.AccAddress)
- func (k Keeper) BurnCoinsFromBuyBackLiquidityFund(ctx sdk.Context, amount sdk.Coins) error
- func (k Keeper) BurnFromDistributionProfits(ctx sdk.Context, amount sdk.Coins) error
- func (k Keeper) BuyBackPercentage(ctx sdk.Context) (res sdk.Dec)
- func (k Keeper) CalculateDinAmount(ctx sdk.Context, pinCoins sdk.Coins) sdk.Coins
- func (k Keeper) CalculateDinAmountExtended(ctx sdk.Context, pinCoins sdk.Coins) sdk.Coins
- func (k Keeper) CalculatePinAmount(ctx sdk.Context, dinCoins sdk.Coins) sdk.Coins
- func (k Keeper) CalculatePinAmountExtended(ctx sdk.Context, dinCoins sdk.Coins) (total sdk.Coins, pinFromBuyBack sdk.Coins, pinFromTreasury sdk.Coins)
- func (k Keeper) CoinsPerStage(ctx sdk.Context) sdk.Int
- func (k Keeper) DisburseFunds(ctx sdk.Context, operator sdk.AccAddress, recipient sdk.AccAddress, ...) error
- func (k Keeper) DisburseFundsFromEscrow(ctx sdk.Context, reference string, amount sdk.Int, recipient sdk.AccAddress) error
- func (k Keeper) DisburseFundsToEscrow(ctx sdk.Context, reference string, dinAmount sdk.Coins, fromBuyBack sdk.Coins, ...) error
- func (keeper Keeper) DisbursementQueueIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) DistributedFromTreasury(ctx sdk.Context) sdk.Int
- func (k Keeper) GetDisbursementReferenceAmount(ctx sdk.Context, reference string) (bool, sdk.Int)
- func (k Keeper) GetDisbursementReferenceIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) GetDisbursements(ctx sdk.Context) []types.Disbursement
- func (k Keeper) GetOperatorIterator(ctx sdk.Context) sdk.Iterator
- func (k Keeper) GetOperators(ctx sdk.Context) []sdk.AccAddress
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetPriceForStage(ctx sdk.Context, stage sdk.Int) sdk.Int
- func (k Keeper) GetStageFromDistribution(ctx sdk.Context, distribution sdk.Int) sdk.Int
- func (k Keeper) GetTreasury(ctx sdk.Context) (minter types.Treasury)
- func (k Keeper) HandleAddOperator(ctx sdk.Context, sender sdk.AccAddress, operator sdk.AccAddress) error
- func (k Keeper) HandleCancelDisbursement(ctx sdk.Context, manager sdk.AccAddress, recipient sdk.AccAddress, ...) error
- func (k Keeper) HandleCreateBuyOrder(ctx sdk.Context, buyer sdk.AccAddress, dinAmount sdk.Coins) error
- func (k Keeper) HandleCreateSellOrder(ctx sdk.Context, sender sdk.AccAddress, pinAmount sdk.Coins) error
- func (k Keeper) HandleDisburse(ctx sdk.Context, operator sdk.AccAddress, recipient sdk.AccAddress, ...) error
- func (k Keeper) HandleDisburseFromEscrow(ctx sdk.Context, operator sdk.AccAddress, reference string, ...) error
- func (k Keeper) HandleDisburseToEscrow(ctx sdk.Context, operator sdk.AccAddress, dinAmount sdk.Coins, ...) error
- func (k Keeper) HandleRemoveOperator(ctx sdk.Context, sender sdk.AccAddress, operator sdk.AccAddress) error
- func (k Keeper) HandleRevertFromEscrow(ctx sdk.Context, operator sdk.AccAddress, amount sdk.Coins, reference string) error
- func (k Keeper) HandleSwap(ctx sdk.Context, operator sdk.AccAddress, recipient sdk.AccAddress, ...) error
- func (keeper Keeper) HasDisbursementInQueue(ctx sdk.Context, recipient sdk.AccAddress, scheduledFor time.Time) bool
- func (keeper Keeper) InsertDisbursementQueue(ctx sdk.Context, disbursement types.Disbursement)
- func (k Keeper) IsDisbursementReferenceSet(ctx sdk.Context, reference string) bool
- func (k Keeper) IsManager(ctx sdk.Context, address sdk.AccAddress) bool
- func (k Keeper) IsOperator(ctx sdk.Context, address sdk.AccAddress) bool
- func (k Keeper) IterateDisbursementQueue(ctx sdk.Context, cb func(disbursement types.Disbursement) (stop bool))
- func (k Keeper) IterateDisbursementReferences(ctx sdk.Context, cb func(reference string, amount sdk.Int) (stop bool))
- func (k Keeper) IterateOperators(ctx sdk.Context, cb func(address sdk.AccAddress) (stop bool))
- func (k Keeper) IterateScheduledDisbursementQueue(ctx sdk.Context, endTime time.Time, ...)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Managers(ctx sdk.Context) (res []sdk.AccAddress)
- func (k Keeper) MintCoins(ctx sdk.Context, newCoins sdk.Coins) error
- func (k Keeper) MintCoinsToBuyBackLiquidityFund(ctx sdk.Context, newCoins sdk.Coins) error
- func (k Keeper) RemainingPinInStage(ctx sdk.Context, stage sdk.Int, cannonicalStage sdk.Int) sdk.Int
- func (k Keeper) RemoveDisbursementReferenceAmount(ctx sdk.Context, reference string)
- func (keeper Keeper) RemoveFromDisbursementQueue(ctx sdk.Context, address sdk.AccAddress, endTime time.Time)
- func (k Keeper) RemoveOperator(ctx sdk.Context, address sdk.AccAddress)
- func (k Keeper) RiskAssessmentAmount(ctx sdk.Context) (res sdk.Coins)
- func (k Keeper) RiskAssessmentDuration(ctx sdk.Context) (res time.Duration)
- func (keeper Keeper) ScheduledDisbursementQueueIterator(ctx sdk.Context, endTime time.Time) sdk.Iterator
- func (k Keeper) SetDisbursementReferenceAmount(ctx sdk.Context, reference string, amount sdk.Int)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetTreasury(ctx sdk.Context, minter types.Treasury)
- func (k Keeper) TotalSupply(ctx sdk.Context) sdk.Coins
- func (k Keeper) TransferFromBuyBackFund(ctx sdk.Context, recipient sdk.AccAddress, amount sdk.Coins) error
- func (k Keeper) TransferFromDistributionProfitsToBuyBackLiquidity(ctx sdk.Context, amount sdk.Coins) error
- func (k Keeper) TransferFromSwapEscrow(ctx sdk.Context, recipient sdk.AccAddress, amount sdk.Coins) error
- func (k Keeper) TransferFromSwapEscrowToBuyBack(ctx sdk.Context, amount sdk.Coins) error
- func (k Keeper) TransferFromTreasuryToSwapEscrow(ctx sdk.Context, amount sdk.Coins) error
- func (k Keeper) TransferToBuyBackFund(ctx sdk.Context, sender sdk.AccAddress, amount sdk.Coins) error
Constants ¶
View Source
const ( QueryParameters = "parameters" QueryTreasury = "treasury" QueryOperators = "operators" QueryDisbursements = "disbursements" QueryPrice = "price" QueryDisbursementEscrow = "disbursement-escrow" )
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
NewQuerier creates a new querier for treasury clients.
Types ¶
type Keeper ¶
type Keeper struct { AccountKeeper auth.AccountKeeper BankKeeper bank.Keeper // contains filtered or unexported fields }
func (Keeper) AddOperator ¶
func (k Keeper) AddOperator(ctx sdk.Context, address sdk.AccAddress)
func (Keeper) BurnCoinsFromBuyBackLiquidityFund ¶
func (Keeper) BurnFromDistributionProfits ¶
func (Keeper) CalculateDinAmount ¶
func (Keeper) CalculateDinAmountExtended ¶
Returns the Din amount for input Pin taking in to account Treasury BuyBack
func (Keeper) CalculatePinAmount ¶
func (Keeper) CalculatePinAmountExtended ¶
func (k Keeper) CalculatePinAmountExtended(ctx sdk.Context, dinCoins sdk.Coins) (total sdk.Coins, pinFromBuyBack sdk.Coins, pinFromTreasury sdk.Coins)
Returns the Pin amount for input Din taking in to account Treasury BuyBack
func (Keeper) DisburseFunds ¶
func (Keeper) DisburseFundsFromEscrow ¶
func (Keeper) DisburseFundsToEscrow ¶
func (Keeper) DisbursementQueueIterator ¶
func (Keeper) DistributedFromTreasury ¶
func (Keeper) GetDisbursementReferenceAmount ¶
func (Keeper) GetDisbursementReferenceIterator ¶
func (Keeper) GetDisbursements ¶
func (k Keeper) GetDisbursements(ctx sdk.Context) []types.Disbursement
func (Keeper) GetOperatorIterator ¶
func (Keeper) GetOperators ¶
func (k Keeper) GetOperators(ctx sdk.Context) []sdk.AccAddress
func (Keeper) GetPriceForStage ¶
returned amount is $0.0000000001 per PIN
func (Keeper) GetStageFromDistribution ¶
func (Keeper) HandleAddOperator ¶
func (k Keeper) HandleAddOperator(ctx sdk.Context, sender sdk.AccAddress, operator sdk.AccAddress) error
func (Keeper) HandleCancelDisbursement ¶
func (k Keeper) HandleCancelDisbursement(ctx sdk.Context, manager sdk.AccAddress, recipient sdk.AccAddress, scheduledFor time.Time) error
func (Keeper) HandleCreateBuyOrder ¶
func (Keeper) HandleCreateSellOrder ¶
func (Keeper) HandleDisburse ¶
func (Keeper) HandleDisburseFromEscrow ¶
func (k Keeper) HandleDisburseFromEscrow(ctx sdk.Context, operator sdk.AccAddress, reference string, recipient sdk.AccAddress) error
func (Keeper) HandleDisburseToEscrow ¶
func (Keeper) HandleRemoveOperator ¶
func (k Keeper) HandleRemoveOperator(ctx sdk.Context, sender sdk.AccAddress, operator sdk.AccAddress) error
func (Keeper) HandleRevertFromEscrow ¶
func (Keeper) HandleSwap ¶ added in v0.2.0
func (Keeper) HasDisbursementInQueue ¶
func (Keeper) InsertDisbursementQueue ¶
func (keeper Keeper) InsertDisbursementQueue(ctx sdk.Context, disbursement types.Disbursement)
func (Keeper) IsDisbursementReferenceSet ¶
func (Keeper) IsOperator ¶
func (Keeper) IterateDisbursementQueue ¶
func (Keeper) IterateDisbursementReferences ¶
func (Keeper) IterateOperators ¶
func (Keeper) IterateScheduledDisbursementQueue ¶
func (Keeper) MintCoinsToBuyBackLiquidityFund ¶
func (Keeper) RemainingPinInStage ¶
func (Keeper) RemoveDisbursementReferenceAmount ¶
func (Keeper) RemoveFromDisbursementQueue ¶
func (Keeper) RemoveOperator ¶
func (k Keeper) RemoveOperator(ctx sdk.Context, address sdk.AccAddress)
func (Keeper) RiskAssessmentAmount ¶
func (Keeper) RiskAssessmentDuration ¶
func (Keeper) ScheduledDisbursementQueueIterator ¶
func (Keeper) SetDisbursementReferenceAmount ¶
func (Keeper) TransferFromBuyBackFund ¶
func (Keeper) TransferFromDistributionProfitsToBuyBackLiquidity ¶
func (Keeper) TransferFromSwapEscrow ¶ added in v0.2.0
func (Keeper) TransferFromSwapEscrowToBuyBack ¶ added in v0.2.0
func (Keeper) TransferFromTreasuryToSwapEscrow ¶ added in v0.2.0
func (Keeper) TransferToBuyBackFund ¶
Click to show internal directories.
Click to hide internal directories.