Documentation
¶
Index ¶
- Constants
- type AccountInfo
- type ActiveReportedFlow
- type BondAction
- type BondCall
- type BondFlow
- type BondReason
- type BondRecord
- type BondReportType
- type BondState
- type BondStateKey
- type ChainEvent
- type Era
- type EraPoolUpdatedFlow
- type EraRewardPoints
- type EventMultisigExecuted
- type EventNewMultisig
- type EvtLiquidityBond
- type EvtSignatureEnough
- type ExeLiquidityBondAndSwapFlow
- type Exposure
- type GetBondStateFlow
- type GetEraNominatedFlow
- type GetPoolThresholdFlow
- type GetReceiversParams
- type GetSubmitSignaturesFlow
- type Individual
- type IndividualExposure
- type MultiCallParam
- type MultiOpaqueCall
- type Multisig
- type NominationUpdatedFlow
- type OptionTimePoint
- type OriginalTx
- type PoolBondState
- type PoolSnapshot
- type PoolUnbondKey
- type Proposal
- type RSymbol
- type Receive
- type RproposalStatus
- type SignaturesKey
- type StakingLedger
- type SubmitSignatureParams
- type SubmitSignatures
- type Transaction
- type TransferReportedFlow
- type Unbonding
- type UnlockChunk
- type ValidatorUpdatedFlow
- type VoteState
- type WithdrawReportedFlow
Constants ¶
View Source
const ( Dealing = BondState("Dealing") Fail = BondState("Fail") Success = BondState("Success") Default = BondState("Default") )
View Source
const ( BondReasonDefault = BondReason("Default") Pass = BondReason("Pass") BlockhashUnmatch = BondReason("BlockhashUnmatch") TxhashUnmatch = BondReason("TxhashUnmatch") PubkeyUnmatch = BondReason("PubkeyUnmatch") PoolUnmatch = BondReason("PoolUnmatch") AmountUnmatch = BondReason("AmountUnmatch") )
View Source
const ( Initiated = RproposalStatus("Initiated") Approved = RproposalStatus("Approved") Rejected = RproposalStatus("Rejected") Expired = RproposalStatus("Expired") )
View Source
const ( EraUpdated = PoolBondState("EraUpdated") BondReported = PoolBondState("BondReported") ActiveReported = PoolBondState("ActiveReported") WithdrawSkipped = PoolBondState("WithdrawSkipped") WithdrawReported = PoolBondState("WithdrawReported") TransferReported = PoolBondState("TransferReported") )
View Source
const ( BondOnly = BondAction("BondOnly") UnbondOnly = BondAction("UnbondOnly") BothBondUnbond = BondAction("BothBondUnbond") EitherBondUnbond = BondAction("EitherBondUnbond") InterDeduct = BondAction("InterDeduct") )
View Source
const ( NewBondReport = BondReportType(0) BondAndReportActive = BondReportType(1) BondAndReportActiveWithPendingValue = BondReportType(2) )
View Source
const ( OriginalTxDefault = OriginalTx("default") OriginalTransfer = OriginalTx("Transfer") //transfer OriginalBond = OriginalTx("Bond") //bond or unbond OriginalUnbond = OriginalTx("Unbond") OriginalWithdrawUnbond = OriginalTx("WithdrawUnbond") //redelegate: validator update OriginalClaimRewards = OriginalTx("ClaimRewards") // claim )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountInfo ¶
type ActiveReportedFlow ¶
type BondAction ¶
type BondAction string
type BondCall ¶
type BondCall struct { ReportType BondReportType Action BondAction }
type BondFlow ¶
type BondFlow struct { Symbol RSymbol BondId types.Hash Record *BondRecord Reason BondReason State BondState VerifyTimes int }
type BondReason ¶
type BondReason string
type BondRecord ¶
type BondReportType ¶
type BondReportType uint8
type ChainEvent ¶
type ChainEvent struct { ModuleId string `json:"module_id" ` EventId string `json:"event_id" ` Params []scalecodec.EventParam `json:"params"` }
type EraPoolUpdatedFlow ¶
type EraRewardPoints ¶
type EraRewardPoints struct { Total uint32 Individuals []Individual }
type EventMultisigExecuted ¶
type EventNewMultisig ¶
type EvtLiquidityBond ¶
type EvtSignatureEnough ¶
type EvtSignatureEnough struct { RSymbol RSymbol Era uint32 Pool []byte TxType OriginalTx ProposalId []byte }
SignaturesEnough(RSymbol, u32, Vec<u8>, OriginalTxType, Vec<u8>),
type ExeLiquidityBondAndSwapFlow ¶
type ExeLiquidityBondAndSwapFlow struct { Pool types.Bytes Blockhash types.Bytes Txhash types.Bytes Amount types.U128 Symbol RSymbol StafiRecipient types.AccountID DestRecipient types.Bytes DestId types.U8 Reason BondReason }
execute_bond_and_swap(origin, pool: Vec<u8>, blockhash: Vec<u8>, txhash: Vec<u8>, amount: u128, symbol: RSymbol, stafi_recipient: T::AccountId, dest_recipient: Vec<u8>, dest_id: ChainId, reason: BondReason)
type Exposure ¶
type Exposure struct { Total types.UCompact Own types.UCompact Others []IndividualExposure }
type GetBondStateFlow ¶
type GetEraNominatedFlow ¶
type GetPoolThresholdFlow ¶
type GetReceiversParams ¶
type GetSubmitSignaturesFlow ¶
type Individual ¶
type IndividualExposure ¶
type MultiCallParam ¶
type MultiCallParam struct { TimePoint *OptionTimePoint Opaque []byte Extrinsic string CallHash string }
type MultiOpaqueCall ¶
type MultiOpaqueCall struct { Extrinsic string Opaque []byte CallHash string TimePoint *OptionTimePoint }
type NominationUpdatedFlow ¶
type OptionTimePoint ¶
type OptionTimePoint struct {
// contains filtered or unexported fields
}
func NewOptionTimePoint ¶
func NewOptionTimePoint(value types.TimePoint) *OptionTimePoint
func NewOptionTimePointEmpty ¶
func NewOptionTimePointEmpty() *OptionTimePoint
func (OptionTimePoint) IsNone ¶
func (o OptionTimePoint) IsNone() bool
IsNone returns true if the value is missing
func (OptionTimePoint) IsSome ¶
func (o OptionTimePoint) IsSome() bool
IsNone returns true if a value is present
func (*OptionTimePoint) SetNone ¶
func (o *OptionTimePoint) SetNone()
SetNone removes a value and marks it as missing
func (*OptionTimePoint) SetSome ¶
func (o *OptionTimePoint) SetSome(value types.TimePoint)
SetSome sets a value
type OriginalTx ¶
type OriginalTx string
type PoolBondState ¶
type PoolBondState string
type PoolSnapshot ¶
type PoolUnbondKey ¶
type RproposalStatus ¶
type RproposalStatus string
type SignaturesKey ¶
type SignaturesKey struct { Era uint32 Pool []byte TxType OriginalTx ProposalId []byte }
type StakingLedger ¶
type SubmitSignatureParams ¶
type SubmitSignatureParams struct { Symbol RSymbol Era types.U32 Pool types.Bytes TxType OriginalTx ProposalId types.Bytes Signature types.Bytes }
func (*SubmitSignatureParams) EncodeToHash ¶
func (ssp *SubmitSignatureParams) EncodeToHash() (common.Hash, error)
type SubmitSignatures ¶
type SubmitSignatures struct { Symbol RSymbol Era types.U32 Pool types.Bytes TxType OriginalTx ProposalId types.Bytes Signature []types.Bytes Threshold uint32 }
func (*SubmitSignatures) EncodeToHash ¶
func (ss *SubmitSignatures) EncodeToHash() (common.Hash, error)
type Transaction ¶
type Transaction struct { ExtrinsicHash string CallModuleName string CallName string Address interface{} Params []commonTypes.ExtrinsicParam }
type TransferReportedFlow ¶
type ValidatorUpdatedFlow ¶
Click to show internal directories.
Click to hide internal directories.