Documentation ¶
Index ¶
- func NewQuerier(k Keeper) sdk.Querier
- type CosignersRecord
- type Keeper
- func (k Keeper) AddNewCosigner(ctx sdk.Context, address sdk.ValAddress, mainchainPublicKey string)
- func (k Keeper) GetCosignersRecord(ctx sdk.Context, mainChainTxHash string) (CosignersRecord, error)
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetPegRecord(ctx sdk.Context, txHash string) (PegRecord, error)
- func (k Keeper) GetPendingRequest(ctx sdk.Context, mainChainTxHash string) (PendingInviteRequest, error)
- func (k Keeper) GetUnpegRecord(ctx sdk.Context, mainChainTxHash string) (UnpegRecord, error)
- func (k Keeper) IsUsedHash(ctx sdk.Context, hash string) bool
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MarkAsUsedHash(ctx sdk.Context, hash string)
- func (k Keeper) ProcessNotCosignedClaim(ctx sdk.Context, claim types.MsgNotCosignedClaim) (oracle.Status, error)
- func (k Keeper) ProcessPegClaim(ctx sdk.Context, claim types.MsgPegClaim) (oracle.Status, error)
- func (k Keeper) ProcessSuccessfulNotCosignedClaim(ctx sdk.Context, claim string) error
- func (k Keeper) ProcessSuccessfulPegClaim(ctx sdk.Context, claim string) error
- func (k Keeper) ProcessUnpeg(ctx sdk.Context, msg types.MsgUnpeg) error
- func (k Keeper) SetCosigners(ctx sdk.Context, mainChainTxHash string, cosignerPublicKey string) error
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetPegRecord(ctx sdk.Context, txHash string, consumed sdk.Coins, remainning int64) error
- func (k Keeper) SetPendingInviteRequest(ctx sdk.Context, txHash string, address sdk.ValAddress, ...) error
- func (k Keeper) SetUnpegRecord(ctx sdk.Context, mainChainTxHash string, accountAddress sdk.AccAddress, ...) error
- type PegRecord
- type PendingInviteRequest
- type UnpegRecord
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
NewQuerier creates a new querier for proximax-bridge clients.
Types ¶
type CosignersRecord ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper of the proximax-bridge store
func NewKeeper ¶
func NewKeeper(cdc *codec.Codec, key, keyForPeg, keyForUnpeg, keyForCosign, keyForInvite sdk.StoreKey, paramspace types.ParamSubspace, supplyKeeper types.SupplyKeeper, slashingKeeper types.SlashingKeeper, oracleKeeper types.OracleKeeper) Keeper
NewKeeper creates a proximax-bridge keeper
func (Keeper) AddNewCosigner ¶
func (Keeper) GetCosignersRecord ¶
func (Keeper) GetPegRecord ¶
func (Keeper) GetPendingRequest ¶
func (Keeper) GetUnpegRecord ¶
func (Keeper) ProcessNotCosignedClaim ¶
func (k Keeper) ProcessNotCosignedClaim(ctx sdk.Context, claim types.MsgNotCosignedClaim) (oracle.Status, error)
ProcessClaim processes a new claim coming in from a validator
func (Keeper) ProcessPegClaim ¶
ProcessClaim processes a new claim coming in from a validator
func (Keeper) ProcessSuccessfulNotCosignedClaim ¶
ProcessSuccessfulClaim processes a claim that has just completed successfully with consensus
func (Keeper) ProcessSuccessfulPegClaim ¶
ProcessSuccessfulClaim processes a claim that has just completed successfully with consensus
func (Keeper) ProcessUnpeg ¶
func (Keeper) SetCosigners ¶
func (Keeper) SetPegRecord ¶
func (Keeper) SetPendingInviteRequest ¶
type PendingInviteRequest ¶
type PendingInviteRequest struct { Address sdk.ValAddress `json:"address" yaml:"address"` MainchainPublicKey string `json:"mainchain_public_key" yaml:"mainchain_public_key"` MainchainTxHash string `json:"mainchain_tx_hash" yaml:"mainchain_tx_hash"` }
type UnpegRecord ¶
type UnpegRecord struct { Address sdk.AccAddress `json:"address" yaml:"address"` MainchainTxHash string `json:"mainchain_tx_hash" yaml:"mainchain_tx_hash"` Amount sdk.Coins `json:"amount" yaml:"amount"` }
Click to show internal directories.
Click to hide internal directories.