Versions in this module Expand all Collapse all v0 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()