Documentation ¶
Index ¶
- Constants
- func UseSdkConfigContext(accountPrefix string) func()
- type Chain
- type Core
- type EventActiveReported
- type EventBondReported
- type EventEraPoolUpdated
- type EventInitPool
- type EventRParamsChanged
- type EventRValidatorAdded
- type EventRValidatorUpdated
- type EventRemovePool
- type EventSignatureEnough
- type EventTransferReported
- type Handler
- type Message
- type ParamGetBondRecord
- type ParamGetInterchainTxStatus
- type ParamGetLatestLsmBondProposalId
- type ParamGetPools
- type ParamGetSignatures
- type ParamSubmitSignature
- type ProposalActiveReport
- type ProposalBondReport
- type ProposalExeLiquidityBond
- type ProposalExeNativeAndLsmLiquidityBond
- type ProposalInterchainTx
- type ProposalRValidatorUpdateReport
- type ProposalSetChainEra
- type ProposalTransferReport
- type ProposalWithdrawReport
- type RSymbol
- type Reason
- type Router
Constants ¶
View Source
const ( //send from other chain ReasonNewEra = Reason("NewEra") ReasonExeLiquidityBond = Reason("ExeLiquidityBond") ReasonExeNativeAndLsmLiquidityBond = Reason("ExeLiquidityNativeAndLsmBond") ReasonBondReport = Reason("BondReport") ReasonActiveReport = Reason("ActiveReport") ReasonTransferReport = Reason("TransferReport") ReasonSubmitSignature = Reason("SubmitSignature") ReasonRValidatorUpdateReport = Reason("RValidatorUpdateReport") ReasonInterchainTx = Reason("InterchainTx") //send when got event from stafihub chain ReasonEraPoolUpdatedEvent = Reason("EraPoolUpdatedEvent") ReasonBondReportedEvent = Reason("BondReportedEvent") ReasonActiveReportedEvent = Reason("ActiveReportedEvent") ReasonTransferReportedEvent = Reason("TransferReportedEvent") ReasonSignatureEnoughEvent = Reason("SignatureEnoughed") ReasonRValidatorUpdatedEvent = Reason("RValidatorUpdatedEvent") ReasonRValidatorAddedEvent = Reason("RValidatorAddedEvent") ReasonRParamsChangedEvent = Reason("RParamsChangedEvent") ReasonInitPoolEvent = Reason("InitPoolEvent") ReasonRemovePoolEvent = Reason("RemovePoolEvent") //get reason ReasonGetPools = Reason("GetPools") ReasonGetSignatures = Reason("GetSignatures") ReasonGetBondRecord = Reason("GetBondRecord") ReasonGetInterchainTxStatus = Reason("GetInterchainTxStatus") ReasonGetLatestLsmBondProposalId = Reason("GetLatestLsmBondProposalId") )
View Source
const ( //stafi hub HubRFIS = RSymbol("RFIS") )
Variables ¶
This section is empty.
Functions ¶
func UseSdkConfigContext ¶
func UseSdkConfigContext(accountPrefix string) func()
UseSDKContext uses a custom Bech32 account prefix and returns a restore func CONTRACT: When using this function, caller must ensure that lock contention doesn't cause program to hang. This function is only for use in codec calls
Types ¶
type Core ¶
type Core struct { Registry []Chain // contains filtered or unexported fields }
type EventActiveReported ¶
type EventActiveReported struct { Denom string ShotId string Snapshot stafiHubXLedgerTypes.BondSnapshot PoolUnbond []*stafiHubXLedgerTypes.Unbonding }
type EventBondReported ¶
type EventBondReported struct { Denom string ShotId string Snapshot stafiHubXLedgerTypes.BondSnapshot }
type EventEraPoolUpdated ¶
type EventEraPoolUpdated struct { Denom string LastEra uint32 CurrentEra uint32 ShotId string Snapshot stafiHubXLedgerTypes.BondSnapshot }
=== stafihub -> other chain msg data used in cosmos
type EventInitPool ¶ added in v0.2.0
type EventRParamsChanged ¶
type EventRValidatorAdded ¶ added in v0.2.0
type EventRValidatorUpdated ¶ added in v0.2.0
type EventRemovePool ¶ added in v0.2.0
type EventSignatureEnough ¶
type EventSignatureEnough struct { Denom string Era uint32 Pool string TxType stafiHubXLedgerTypes.OriginalTxType ProposalId string Signatures [][]byte Threshold uint32 }
type EventTransferReported ¶
type Handler ¶
type Handler interface {
HandleMessage(msg *Message)
}
Handler consumes a message and makes the requried on-chain interactions.
type ParamGetBondRecord ¶
type ParamGetBondRecord struct { Denom string TxHash string BondRecord chan stafiHubXLedgerTypes.BondRecord }
type ParamGetInterchainTxStatus ¶ added in v0.2.0
type ParamGetInterchainTxStatus struct { PropId string Status chan stafiHubXLedgerTypes.InterchainTxStatus }
type ParamGetLatestLsmBondProposalId ¶ added in v0.2.0
type ParamGetLatestLsmBondProposalId struct {
PropId chan string
}
type ParamGetSignatures ¶
type ParamGetSignatures struct { Denom string Era uint32 Pool string TxType stafiHubXLedgerTypes.OriginalTxType PropId string Sigs chan []string }
type ParamSubmitSignature ¶
type ParamSubmitSignature struct { Denom string Era uint32 Pool string TxType stafiHubXLedgerTypes.OriginalTxType PropId string Signature string }
type ProposalActiveReport ¶
type ProposalBondReport ¶
type ProposalBondReport struct { Denom string ShotId string Action stafiHubXLedgerTypes.BondAction }
type ProposalExeLiquidityBond ¶
type ProposalExeLiquidityBond struct { Denom string Bonder string Pool string Txhash string Amount sdk.Int State stafiHubXLedgerTypes.LiquidityBondState }
=== other chain -> stafihub msg data used in cosmos
type ProposalExeNativeAndLsmLiquidityBond ¶ added in v0.2.0
type ProposalInterchainTx ¶ added in v0.2.0
type ProposalInterchainTx struct { Denom string Pool string Era uint32 TxType stafiHubXLedgerTypes.OriginalTxType Factor uint32 Msgs []sdk.Msg }
type ProposalRValidatorUpdateReport ¶ added in v0.2.0
type ProposalRValidatorUpdateReport struct { Denom string PoolAddress string CycleVersion uint64 CycleNumber uint64 Status stafiHubXRValidatorTypes.UpdateRValidatorStatus }
type ProposalSetChainEra ¶
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.