Documentation
¶
Index ¶
- Variables
- func NewHistory(height int64, amount sdk.Coins) *types.HistoricalAmount
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func ProcessHistory(historyLength int32, newItem *types.HistoricalAmount, ...) *types.CoinsQuota
- func PubKeyToPoolAddr(pk string) (sdk.AccAddress, error)
- type Keeper
- func (k Keeper) BlockChurnInterval(ctx sdk.Context) (res int64)
- func (k Keeper) BurnTokens(ctx sdk.Context, addr sdk.AccAddress) error
- func (k Keeper) CandidateRatio(ctx sdk.Context) (res sdk.Dec)
- func (k Keeper) CreatePool(c rawcontext.Context, req *types.QueryGetCreatePoolRequest) (*types.QueryGetCreatePoolResponse, error)
- func (k Keeper) CreatePoolAll(c rawcontext.Context, req *types.QueryAllCreatePoolRequest) (*types.QueryAllCreatePoolResponse, error)
- func (k Keeper) DelStandbyPower(ctx sdk.Context, addr string)
- func (k Keeper) DoGetAllStandbyPower(ctx sdk.Context) (list []types.StandbyPower)
- func (k Keeper) DoGetAllValidators(ctx sdk.Context) (list []types.Validators)
- func (k Keeper) GenSetLastTwoPool(ctx sdk.Context, lastPool []*types.CreatePool)
- func (k Keeper) GetAllCreatePool(ctx sdk.Context) (list []types.CreatePool)
- func (k Keeper) GetAllFeeAmount(ctx sdk.Context) sdk.Coins
- func (k Keeper) GetAllIssueToken(ctx sdk.Context) (list []types.IssueToken)
- func (k Keeper) GetAllOutboundTx(ctx sdk.Context) (list []types.OutboundTx)
- func (k Keeper) GetAllValidators(goCtx context.Context, req *types.QueryAllValidatorsRequest) (*types.QueryAllValidatorsResponse, error)
- func (k Keeper) GetCreatePool(ctx sdk.Context, index string) (val types.CreatePool, found bool)
- func (k Keeper) GetFeeAmount(ctx sdk.Context, denom string) (fee sdk.Coin, found bool)
- func (k Keeper) GetIssueToken(ctx sdk.Context, index string) (val types.IssueToken, found bool)
- func (k Keeper) GetLastPool(c rawcontext.Context, req *types.QueryLatestPoolRequest) (*types.QueryLastPoolResponse, error)
- func (k Keeper) GetLatestTwoPool(ctx sdk.Context) ([]*types.CreatePool, bool)
- func (k Keeper) GetOutboundTx(ctx sdk.Context, requestID string) (val types.OutboundTx, found bool)
- func (k Keeper) GetOutboundTxProposal(ctx sdk.Context, reqID, outboundTxID string) (val types.Proposals, found bool)
- func (k Keeper) GetParams(ctx sdk.Context) vaultmoduletypes.Params
- func (k Keeper) GetPendingFee(c context.Context, req *types.QueryPendingFeeRequest) (*types.QueryPendingFeeResponse, error)
- func (k Keeper) GetQuota(goCtx context.Context, req *types.QueryGetQuotaRequest) (*types.QueryGetQuotaResponse, error)
- func (k Keeper) GetQuotaData(ctx sdk.Context) (val types.CoinsQuota, found bool)
- func (k Keeper) GetStandbyPower(ctx sdk.Context, addr string) (val types.StandbyPower, found bool)
- func (k Keeper) GetValidators(c context.Context, req *types.QueryGetValidatorsRequest) (*types.QueryGetValidatorsResponse, error)
- func (k Keeper) GetValidatorsByHeight(ctx sdk.Context, index string) (val types.Validators, found bool)
- func (k Keeper) IssueToken(c context.Context, req *types.QueryGetIssueTokenRequest) (*types.QueryGetIssueTokenResponse, error)
- func (k Keeper) IssueTokenAll(c context.Context, req *types.QueryAllIssueTokenRequest) (*types.QueryAllIssueTokenResponse, error)
- func (k Keeper) LegacyGetAllFeeAMountAndDelete(ctx sdk.Context) sdk.Coins
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) NewUpdate(ctx sdk.Context) []abci.ValidatorUpdate
- func (k Keeper) OutboundTx(c context.Context, req *types.QueryGetOutboundTxRequest) (*types.QueryGetOutboundTxResponse, error)
- func (k Keeper) OutboundTxAll(c context.Context, req *types.QueryAllOutboundTxRequest) (*types.QueryAllOutboundTxResponse, error)
- func (k Keeper) Power(ctx sdk.Context) (res int64)
- func (k Keeper) ProcessAccountLeft(ctx sdk.Context)
- func (k Keeper) ProcessQuota(ctx sdk.Context, totalCoins sdk.Coins)
- func (k Keeper) QuotaHistoryLength(ctx sdk.Context) (res int32)
- func (k Keeper) RemoveCreatePool(ctx sdk.Context, index string)
- func (k Keeper) SetCreatePool(ctx sdk.Context, createPool types.CreatePool)
- func (k Keeper) SetIssueToken(ctx sdk.Context, issueToken types.IssueToken)
- func (k Keeper) SetOutboundTx(ctx sdk.Context, outboundTx types.OutboundTx)
- func (k Keeper) SetOutboundTxProposal(ctx sdk.Context, reqID, outboundTxID string, proposals types.Proposals)
- func (k Keeper) SetParams(ctx sdk.Context, params vaultmoduletypes.Params)
- func (k Keeper) SetQuotaData(ctx sdk.Context, coinsQuota types.CoinsQuota)
- func (k Keeper) SetStandbyPower(ctx sdk.Context, addr string, powerItem types.StandbyPower)
- func (k Keeper) SetStoreFeeAmount(ctx sdk.Context, fees sdk.Coins)
- func (k Keeper) SetValidators(ctx sdk.Context, index string, validators types.Validators)
- func (k Keeper) Step(ctx sdk.Context) (res int64)
- func (k Keeper) TargetQuota(ctx sdk.Context) (res sdk.Coins)
- func (k Keeper) UpdateLastTwoPool(ctx sdk.Context, latestPool types.CreatePool)
- func (k Keeper) UpdateStakingInfo(ctx sdk.Context)
- type Migrator
Constants ¶
This section is empty.
Variables ¶
var ErrSuspend = errorsmod.Register("JoltifyChain", 1, "bridge transfer suspended as quota reached")
Functions ¶
func NewHistory ¶ added in v0.0.6
func NewHistory(height int64, amount sdk.Coins) *types.HistoricalAmount
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
func ProcessHistory ¶ added in v0.0.6
func ProcessHistory(historyLength int32, newItem *types.HistoricalAmount, coinsQuota *types.CoinsQuota) *types.CoinsQuota
func PubKeyToPoolAddr ¶
func PubKeyToPoolAddr(pk string) (sdk.AccAddress, error)
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey storetypes.StoreKey, vaultStaking types.VaultStaking, bankKeeper types.BankKeeper, ps paramtypes.Subspace, ak banktypes.AccountKeeper, ) *Keeper
func (Keeper) BurnTokens ¶
func (Keeper) CreatePool ¶
func (k Keeper) CreatePool(c rawcontext.Context, req *types.QueryGetCreatePoolRequest) (*types.QueryGetCreatePoolResponse, error)
func (Keeper) CreatePoolAll ¶
func (k Keeper) CreatePoolAll(c rawcontext.Context, req *types.QueryAllCreatePoolRequest) (*types.QueryAllCreatePoolResponse, error)
func (Keeper) DelStandbyPower ¶
DelStandbyPower set a specific validator in the store from its index
func (Keeper) DoGetAllStandbyPower ¶
func (k Keeper) DoGetAllStandbyPower(ctx sdk.Context) (list []types.StandbyPower)
DoGetAllStandbyPower returns all issueToken
func (Keeper) DoGetAllValidators ¶
func (k Keeper) DoGetAllValidators(ctx sdk.Context) (list []types.Validators)
DoGetAllValidators returns all issueToken
func (Keeper) GenSetLastTwoPool ¶
func (k Keeper) GenSetLastTwoPool(ctx sdk.Context, lastPool []*types.CreatePool)
GenSetLastTwoPool the first is the newest
func (Keeper) GetAllCreatePool ¶
func (k Keeper) GetAllCreatePool(ctx sdk.Context) (list []types.CreatePool)
GetAllCreatePool returns all createPool
func (Keeper) GetAllFeeAmount ¶
GetAllFeeAmount returns all outboundTx
func (Keeper) GetAllIssueToken ¶
func (k Keeper) GetAllIssueToken(ctx sdk.Context) (list []types.IssueToken)
GetAllIssueToken returns all issueToken
func (Keeper) GetAllOutboundTx ¶
func (k Keeper) GetAllOutboundTx(ctx sdk.Context) (list []types.OutboundTx)
GetAllOutboundTx returns all outboundTx
func (Keeper) GetAllValidators ¶
func (k Keeper) GetAllValidators(goCtx context.Context, req *types.QueryAllValidatorsRequest) (*types.QueryAllValidatorsResponse, error)
func (Keeper) GetCreatePool ¶
GetCreatePool returns a createPool from its index
func (Keeper) GetFeeAmount ¶
GetFeeAmount returns a outboundTx from its index
func (Keeper) GetIssueToken ¶
GetIssueToken returns a issueToken from its index
func (Keeper) GetLastPool ¶
func (k Keeper) GetLastPool(c rawcontext.Context, req *types.QueryLatestPoolRequest) (*types.QueryLastPoolResponse, error)
func (Keeper) GetLatestTwoPool ¶
func (Keeper) GetOutboundTx ¶
func (k Keeper) GetOutboundTx( ctx sdk.Context, requestID string, ) (val types.OutboundTx, found bool)
GetOutboundTx returns a outboundTx from its index
func (Keeper) GetOutboundTxProposal ¶ added in v0.0.5
func (k Keeper) GetOutboundTxProposal( ctx sdk.Context, reqID, outboundTxID string, ) (val types.Proposals, found bool)
GetOutboundTxProposal returns proposals from its requestID:outboundTxID
func (Keeper) GetParams ¶
func (k Keeper) GetParams(ctx sdk.Context) vaultmoduletypes.Params
GetParams Get all parameteras as types.Params
func (Keeper) GetPendingFee ¶
func (k Keeper) GetPendingFee(c context.Context, req *types.QueryPendingFeeRequest) (*types.QueryPendingFeeResponse, error)
func (Keeper) GetQuota ¶
func (k Keeper) GetQuota(goCtx context.Context, req *types.QueryGetQuotaRequest) (*types.QueryGetQuotaResponse, error)
func (Keeper) GetQuotaData ¶
GetQuotaData returns a createPool from its index
func (Keeper) GetStandbyPower ¶
GetStandbyPower returns a validators group from its index
func (Keeper) GetValidators ¶
func (k Keeper) GetValidators(c context.Context, req *types.QueryGetValidatorsRequest) (*types.QueryGetValidatorsResponse, error)
func (Keeper) GetValidatorsByHeight ¶
func (k Keeper) GetValidatorsByHeight(ctx sdk.Context, index string) (val types.Validators, found bool)
GetValidatorsByHeight returns a validators group from its index
func (Keeper) IssueToken ¶
func (k Keeper) IssueToken(c context.Context, req *types.QueryGetIssueTokenRequest) (*types.QueryGetIssueTokenResponse, error)
func (Keeper) IssueTokenAll ¶
func (k Keeper) IssueTokenAll(c context.Context, req *types.QueryAllIssueTokenRequest) (*types.QueryAllIssueTokenResponse, error)
func (Keeper) LegacyGetAllFeeAMountAndDelete ¶ added in v0.0.3
func (Keeper) OutboundTx ¶
func (k Keeper) OutboundTx(c context.Context, req *types.QueryGetOutboundTxRequest) (*types.QueryGetOutboundTxResponse, error)
func (Keeper) OutboundTxAll ¶
func (k Keeper) OutboundTxAll(c context.Context, req *types.QueryAllOutboundTxRequest) (*types.QueryAllOutboundTxResponse, error)
func (Keeper) ProcessAccountLeft ¶
func (Keeper) RemoveCreatePool ¶
RemoveCreatePool removes a createPool from the store
func (Keeper) SetCreatePool ¶
func (k Keeper) SetCreatePool(ctx sdk.Context, createPool types.CreatePool)
SetCreatePool set a specific createPool in the store from its index
func (Keeper) SetIssueToken ¶
func (k Keeper) SetIssueToken(ctx sdk.Context, issueToken types.IssueToken)
SetIssueToken set a specific issueToken in the store from its index
func (Keeper) SetOutboundTx ¶
func (k Keeper) SetOutboundTx(ctx sdk.Context, outboundTx types.OutboundTx)
SetOutboundTx set a specific outboundTx in the store from its index
func (Keeper) SetOutboundTxProposal ¶ added in v0.0.5
func (k Keeper) SetOutboundTxProposal(ctx sdk.Context, reqID, outboundTxID string, proposals types.Proposals)
SetOutboundTxProposal set proposals based on its requestID:outboundTxID
func (Keeper) SetParams ¶
func (k Keeper) SetParams(ctx sdk.Context, params vaultmoduletypes.Params)
SetParams set the params
func (Keeper) SetQuotaData ¶
func (k Keeper) SetQuotaData(ctx sdk.Context, coinsQuota types.CoinsQuota)
SetQuotaData set a specific createPool in the store from its index
func (Keeper) SetStandbyPower ¶
SetStandbyPower set a specific validator in the store from its index
func (Keeper) SetStoreFeeAmount ¶
SetStoreFeeAmount set a specific outboundTx in the store from its index
func (Keeper) SetValidators ¶
SetValidators set a specific validator in the store from its index
func (Keeper) UpdateLastTwoPool ¶
func (k Keeper) UpdateLastTwoPool(ctx sdk.Context, latestPool types.CreatePool)
UpdateLastTwoPool updates the last two pool
func (Keeper) UpdateStakingInfo ¶
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
Migrator is a struct for handling in-place store migrations.
func (Migrator) Migrate2to3 ¶
Migrate2to3 from version 2 to 3.
Source Files
¶
- burn.go
- create_pool.go
- errors.go
- fee_tracker.go
- grpc_query_create_pool.go
- grpc_query_get_quota.go
- grpc_query_get_validators.go
- grpc_query_issue_token.go
- grpc_query_outbound_tx.go
- grpc_query_pending_fee.go
- issue_token.go
- keeper.go
- migrations.go
- msg_server.go
- msg_server_create_pool.go
- msg_server_issue_token.go
- msg_server_outbound_tx.go
- outbound_tx.go
- params.go
- process_issue_token.go
- quota_store.go
- staking.go
- validator_set.go