Versions in this module Expand all Collapse all v0 v0.2.0 Mar 13, 2024 Changes in this version + const ReasonExeNativeAndLsmLiquidityBond + const ReasonGetInterchainTxStatus + const ReasonGetLatestLsmBondProposalId + const ReasonInitPoolEvent + const ReasonInterchainTx + const ReasonRValidatorAddedEvent + const ReasonRValidatorUpdateReport + const ReasonRValidatorUpdatedEvent + const ReasonRemovePoolEvent + type EventInitPool struct + Denom string + HostChannelId string + PoolAddress string + Validators []string + WithdrawalAddress string + type EventRValidatorAdded struct + AddedAddress string + Denom string + Era uint32 + PoolAddress string + type EventRValidatorUpdated struct + BlockTimestamp int64 + CycleNumber uint64 + CycleSeconds uint64 + CycleVersion uint64 + Denom string + Era uint32 + NewAddress string + OldAddress string + PoolAddress string + type EventRemovePool struct + Denom string + PoolAddress string + type ParamGetInterchainTxStatus struct + PropId string + Status chan stafiHubXLedgerTypes.InterchainTxStatus + type ParamGetLatestLsmBondProposalId struct + PropId chan string + type ProposalExeNativeAndLsmLiquidityBond struct + Bonder string + Denom string + LsmBondAmount sdk.Int + Msgs []sdk.Msg + NativeBondAmount sdk.Int + Pool string + State stafiHubXLedgerTypes.LiquidityBondState + Txhash string + type ProposalInterchainTx struct + Denom string + Era uint32 + Factor uint32 + Msgs []sdk.Msg + Pool string + TxType stafiHubXLedgerTypes.OriginalTxType + type ProposalRValidatorUpdateReport struct + CycleNumber uint64 + CycleVersion uint64 + Denom string + PoolAddress string + Status stafiHubXRValidatorTypes.UpdateRValidatorStatus v0.0.1 May 6, 2022 Changes in this version + const HubRFIS + const RATOM + const RBNB + const RDOT + const RFIS + const RKSM + const RMATIC + const RSOL + const ReasonActiveReport + const ReasonActiveReportedEvent + const ReasonBondReport + const ReasonBondReportedEvent + const ReasonBondedPools + const ReasonCurrentChainEra + const ReasonEraPoolUpdatedEvent + const ReasonExeLiquidityBond + const ReasonGetBondRecord + const ReasonGetEraNominated + const ReasonGetPools + const ReasonGetSignatures + const ReasonLiquidityBondEvent + const ReasonMultisigExecuted + const ReasonNewEra + const ReasonNewMultisig + const ReasonNominationUpdatedEvent + const ReasonRParamsChangedEvent + const ReasonSignatureEnoughEvent + const ReasonSubmitSignature + const ReasonTransferReport + const ReasonTransferReportedEvent + const ReasonValidatorUpdatedEvent + const ReasonWithdrawReport + const ReasonWithdrawReportedEvent + func UseSdkConfigContext(accountPrefix string) func() + type Chain interface + Initialize func(cfg *config.RawChainConfig, logger log.Logger, sysErr chan<- error) error + Name func() string + RSymbol func() RSymbol + SetRouter func(*Router) + Start func() error + Stop func() + type Core struct + Registry []Chain + func NewCore(logger log.Logger, sysErr <-chan error) *Core + func (c *Core) AddChain(chain Chain) + func (c *Core) Errors() <-chan error + func (c *Core) Start() + type EventActiveReported struct + Denom string + PoolUnbond []*stafiHubXLedgerTypes.Unbonding + ShotId string + Snapshot stafiHubXLedgerTypes.BondSnapshot + type EventBondReported struct + Denom string + ShotId string + Snapshot stafiHubXLedgerTypes.BondSnapshot + type EventEraPoolUpdated struct + CurrentEra uint32 + Denom string + LastEra uint32 + ShotId string + Snapshot stafiHubXLedgerTypes.BondSnapshot + type EventRParamsChanged struct + Denom string + EraSeconds uint32 + GasPrice string + LeastBond string + Offset int32 + TargetValidators []string + type EventSignatureEnough struct + Denom string + Era uint32 + Pool string + ProposalId string + Signatures [][]byte + Threshold uint32 + TxType stafiHubXLedgerTypes.OriginalTxType + type EventTransferReported struct + Denom string + ShotId string + type Handler interface + HandleMessage func(msg *Message) + type Message struct + Content interface{} + Destination RSymbol + Reason Reason + Source RSymbol + type ParamGetBondRecord struct + BondRecord chan stafiHubXLedgerTypes.BondRecord + Denom string + TxHash string + type ParamGetPools struct + Denom string + Pools chan []string + type ParamGetSignatures struct + Denom string + Era uint32 + Pool string + PropId string + Sigs chan []string + TxType stafiHubXLedgerTypes.OriginalTxType + type ParamSubmitSignature struct + Denom string + Era uint32 + Pool string + PropId string + Signature string + TxType stafiHubXLedgerTypes.OriginalTxType + type ProposalActiveReport struct + Denom string + ShotId string + Staked sdk.Int + Unstaked sdk.Int + type ProposalBondReport struct + Action stafiHubXLedgerTypes.BondAction + Denom string + ShotId string + type ProposalExeLiquidityBond struct + Amount sdk.Int + Bonder string + Denom string + Pool string + State stafiHubXLedgerTypes.LiquidityBondState + Txhash string + type ProposalSetChainEra struct + Denom string + Era uint32 + type ProposalTransferReport struct + Denom string + ShotId string + type ProposalWithdrawReport struct + Denom string + ShotId string + type RSymbol string + func (r *RSymbol) Decode(decoder scale.Decoder) error + func (r RSymbol) Encode(encoder scale.Encoder) error + type Reason string + type Router struct + func NewRouter(log log.Logger) *Router + func (r *Router) Listen(symbol RSymbol, w Handler) + func (r *Router) Send(msg *Message) error + func (r *Router) StopMsgHandler()