Documentation ¶
Index ¶
- Constants
- type Chain
- type Core
- type EventActiveReported
- type EventBondReported
- type EventEraPoolUpdated
- type EventSignatureEnough
- type EventTransferReported
- type EventWithdrawReported
- type GetPools
- type Handler
- type Message
- type ProposalActiveReport
- type ProposalBondReport
- type ProposalExeLiquidityBond
- type ProposalSetChainEra
- type ProposalSubmitSignature
- type ProposalTransferReport
- type ProposalWithdrawReport
- type RSymbol
- type Reason
- type Router
Constants ¶
View Source
const ( //send from other chain ReasonNewEra = Reason("NewEra") ReasonExeLiquidityBond = Reason("ExeLiquidityBond") ReasonBondReport = Reason("BondReport") ReasonActiveReport = Reason("ActiveReport") ReasonWithdrawReport = Reason("WithdrawReport") ReasonTransferReport = Reason("TransferReport") ReasonSubmitSignature = Reason("SubmitSignature") ReasonCurrentChainEra = Reason("CurrentChainEra") ReasonBondedPools = Reason("BondedPools") ReasonNewMultisig = Reason("AsMulti") ReasonMultisigExecuted = Reason("MultisigExecuted") ReasonGetEraNominated = Reason("GetEraNominated") //send when got event from stafi chain ReasonLiquidityBondEvent = Reason("LiquidityBondEvent") //send when got event from stafi/stafihub chain ReasonEraPoolUpdatedEvent = Reason("EraPoolUpdatedEvent") ReasonBondReportedEvent = Reason("BondReportedEvent") ReasonActiveReportedEvent = Reason("ActiveReportedEvent") ReasonWithdrawReportedEvent = Reason("WithdrawReportedEvent") ReasonTransferReportedEvent = Reason("TransferReportedEvent") ReasonNominationUpdatedEvent = Reason("NominationUpdatedEvent") ReasonSignatureEnoughEvent = Reason("SignatureEnoughed") ReasonValidatorUpdatedEvent = Reason("ValidatorUpdatedEvent") //get reason ReasonGetPools = Reason("GetPools") )
View Source
const ( //stafi chain RFIS = RSymbol("RFIS") RDOT = RSymbol("RDOT") RKSM = RSymbol("RKSM") RATOM = RSymbol("RATOM") RSOL = RSymbol("RSOL") RMATIC = RSymbol("RMATIC") RBNB = RSymbol("RBNB") )
View Source
const ( //stafi hub HubRFIS = RSymbol("RFIS") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Core ¶
type Core struct { Registry []Chain // contains filtered or unexported fields }
type EventActiveReported ¶
type EventActiveReported struct { Denom string ShotId string LasterVoter string Snapshot stafiHubXLedgerTypes.BondSnapshot PoolUnbond stafiHubXLedgerTypes.PoolUnbond }
type EventBondReported ¶
type EventBondReported struct { Denom string ShotId string LasterVoter string Snapshot stafiHubXLedgerTypes.BondSnapshot }
type EventEraPoolUpdated ¶
type EventEraPoolUpdated struct { Denom string LastEra uint32 CurrentEra uint32 ShotId string LasterVoter string Snapshot stafiHubXLedgerTypes.BondSnapshot }
=== stafihub -> other chain msg data used in cosmos
type EventSignatureEnough ¶
type EventSignatureEnough struct { Denom string Era uint32 Pool string TxType stafiHubXLedgerTypes.OriginalTxType ProposalId []byte Signatures [][]byte Threshold uint32 }
type EventTransferReported ¶
type EventWithdrawReported ¶
type EventWithdrawReported struct { Denom string ShotId string LasterVoter string Snapshot stafiHubXLedgerTypes.BondSnapshot PoolUnbond stafiHubXLedgerTypes.PoolUnbond }
type Handler ¶
type Handler interface {
HandleMessage(msg *Message)
}
Handler consumes a message and makes the requried on-chain interactions.
type ProposalActiveReport ¶
type ProposalBondReport ¶
type ProposalBondReport struct { Denom string ShotId []byte Action stafiHubXLedgerTypes.BondAction }
type ProposalExeLiquidityBond ¶
type ProposalExeLiquidityBond struct { Denom string Bonder string Pool string Blockhash string Txhash string Amount sdk.Int }
=== other chain -> stafihub msg data used in cosmos
type ProposalSetChainEra ¶
type ProposalSubmitSignature ¶
type ProposalSubmitSignature struct { Creator string Denom string Era uint32 Pool string TxType stafiHubXLedgerTypes.OriginalTxType PropId []byte Signature string }
type ProposalTransferReport ¶
type ProposalWithdrawReport ¶
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
Router forwards messages from their source to their destination
func (*Router) Listen ¶
Listen registers a Writer with a ChainId which Router.Send can then use to propagate messages
func (*Router) StopMsgHandler ¶
func (r *Router) StopMsgHandler()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.