Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterCodec(cdc *amino.Codec)
- type ApproveBindSynPackage
- type BindMsg
- type BindSynPackage
- type CSCParamChange
- type CancelOrderMsg
- type Claim
- type ClaimHTLTMsg
- type ClaimMsg
- type CommonAckPackage
- type CreateOrderMsg
- type CreateSideChainValidatorMsg
- type CrossChainPackage
- type CrossChainPackageType
- type CrossParamChange
- type CrossStakeRefundPackage
- type CrossStakeSynPackageFromBSC
- type DBProphecy
- type DepositHTLTMsg
- type DepositMsg
- type Description
- type DexListMsg
- type EditSideChainValidatorMsg
- type HTLTMsg
- type IbcParams
- type IbcValidator
- type IbcValidatorSetPackage
- type Input
- type ListMiniMsg
- type ListTradingPairParams
- type MiniTokenIssueMsg
- type MintMsg
- type MirrorSynPackage
- type MirrorSyncSynPackage
- type Msg
- type MsgCreateValidatorOpen
- type MsgDelegate
- type MsgEditValidator
- type MsgRedelegate
- type MsgRemoveValidator
- type MsgSideChainUnjail
- type MsgUndelegate
- type MsgUnjail
- type OracleParams
- type OracleRelayer
- type Output
- type Package
- type Packages
- type Prophecy
- type ProposalKind
- type RefundHTLTMsg
- type SCChangeParams
- type SCParam
- type SendMsg
- type SetAccountFlagsMsg
- type SetURIMsg
- type SideChainDelegateMsg
- type SideChainDepositMsg
- type SideChainRedelegateMsg
- type SideChainSubmitProposalMsg
- type SideChainUndelegateMsg
- type SideChainVoteMsg
- type SideDowntimeSlashPackage
- type SlashParams
- type SmartChainAddress
- type StakeParams
- type Status
- type SubmitProposalMsg
- type TimeLockMsg
- type TimeRelockMsg
- type TimeUnlockMsg
- type TinyTokenIssueMsg
- type TokenBurnMsg
- type TokenFreezeMsg
- type TokenIssueMsg
- type TokenUnfreezeMsg
- type Transfer
- type TransferInSynPackage
- type TransferOutMsg
- type TransferOutRefundPackage
- type TransferOutSynPackage
- type TransferOwnershipMsg
- type UnbindMsg
- type VoteMsg
- type VoteOption
Constants ¶
View Source
const ( OptionEmpty = gov.OptionEmpty OptionYes = gov.OptionYes OptionAbstain = gov.OptionAbstain OptionNo = gov.OptionNo OptionNoWithVeto = gov.OptionNoWithVeto ProposalTypeNil = gov.ProposalTypeNil ProposalTypeText = gov.ProposalTypeText ProposalTypeParameterChange = gov.ProposalTypeParameterChange ProposalTypeSoftwareUpgrade = gov.ProposalTypeSoftwareUpgrade ProposalTypeListTradingPair = gov.ProposalTypeListTradingPair ProposalTypeFeeChange = gov.ProposalTypeFeeChange ProposalTypeSCParamsChange = gov.ProposalTypeSCParamsChange ProposalTypeCSCParamsChange = gov.ProposalTypeCSCParamsChange )
=================== gov module ====================
View Source
const ( OracleChannelId = oracleTypes.RelayPackagesChannelId PackageHeaderLength = sidechainTypes.PackageHeaderLength SynCrossChainPackageType = cTypes.SynCrossChainPackageType AckCrossChainPackageType = cTypes.AckCrossChainPackageType FailAckCrossChainPackageType = cTypes.FailAckCrossChainPackageType )
=================== oracle module ====================
Variables ¶
View Source
var ( NewSmartChainAddress = cTypes.NewSmartChainAddress // bridge module NewBindMsg = bTypes.NewBindMsg NewTransferOutMsg = bTypes.NewTransferOutMsg NewUnbindMsg = bTypes.NewUnbindMsg // token module NewTokenBurnMsg = burn.NewMsg NewDexListMsg = dexTypes.NewListMsg NewListMiniMsg = dexTypes.NewListMiniMsg NewFreezeMsg = freeze.NewFreezeMsg NewUnfreezeMsg = freeze.NewUnfreezeMsg NewTokenIssueMsg = issue.NewIssueMsg NewMiniTokenIssueMsg = issue.NewIssueMiniMsg NewTinyTokenIssueMsg = issue.NewIssueTinyMsg NewMintMsg = issue.NewMintMsg NewMsgSend = bank.NewMsgSend NewSetUriMsg = seturi.NewSetUriMsg NewTimeLockMsg = timelock.NewTimeLockMsg NewTimeRelockMsg = timelock.NewTimeRelockMsg NewTimeUnlockMsg = timelock.NewTimeUnlockMsg NewTransferOwnershipMsg = ownership.NewTransferOwnershipMsg // gov module NewDepositMsg = gov.NewMsgDeposit NewMsgVote = gov.NewMsgVote NewMsgSubmitProposal = gov.NewMsgSubmitProposal NewSideChainSubmitProposalMsg = gov.NewMsgSideChainSubmitProposal NewSideChainDepositMsg = gov.NewMsgSideChainDeposit NewSideChainVoteMsg = gov.NewMsgSideChainVote // atomic swap module NewHTLTMsg = swap.NewHTLTMsg NewDepositHTLTMsg = swap.NewDepositHTLTMsg NewClaimHTLTMsg = swap.NewClaimHTLTMsg NewRefundHTLTMsg = swap.NewRefundHTLTMsg // oracle claim module NewClaim = oracleTypes.NewClaim NewClaimMsg = oracleTypes.NewClaimMsg // trade module NewCreateOrderMsg = order.NewNewOrderMsg NewCancelOrderMsg = order.NewCancelOrderMsg // account module NewSetAccountFlagsMsg = account.NewSetAccountFlagsMsg // slash module NewMsgSideChainUnjail = slashing.NewMsgSideChainUnjail NewMsgUnjail = slashing.NewMsgUnjail // stake module NewCreateSideChainValidatorMsg = stakeTypes.NewMsgCreateSideChainValidator NewMsgCreateSideChainValidatorOnBehalfOf = stakeTypes.NewMsgCreateSideChainValidatorOnBehalfOf NewEditSideChainValidatorMsg = stakeTypes.NewMsgEditSideChainValidator NewSideChainDelegateMsg = stakeTypes.NewMsgSideChainDelegate NewSideChainRedelegateMsg = stakeTypes.NewMsgSideChainRedelegate NewSideChainUndelegateMsg = stakeTypes.NewMsgSideChainUndelegate NewMsgCreateValidatorOpen = stakeTypes.NewMsgRemoveValidator NewMsgRemoveValidator = stakeTypes.NewMsgRemoveValidator NewMsgEditValidator = stakeTypes.NewMsgEditValidator NewMsgDelegate = stakeTypes.NewMsgDelegate NewMsgRedelegate = stakeTypes.NewMsgRedelegate NewMsgUndelegate = stakeTypes.NewMsgUndelegate )
View Source
var ( OrderSide = order.Side GenerateOrderID = order.GenerateOrderID )
=================== trade module ====================
View Source
var ( GetClaimId = oracleTypes.GetClaimId DecodePackageHeader = sidechainTypes.DecodePackageHeader )
View Source
var ( NewInput = bank.NewInput NewOutput = bank.NewOutput )
View Source
var ( SortJSON = cTypes.SortJSON MustSortJSON = cTypes.MustSortJSON CalculateRandomHash = swap.CalculateRandomHash CalculateSwapID = swap.CalculateSwapID HexAddress = cTypes.HexAddress HexEncode = cTypes.HexEncode HexDecode = cTypes.HexDecode Has0xPrefix = cTypes.Has0xPrefix )
View Source
var MsgCdc = amino.NewCodec()
Functions ¶
func RegisterCodec ¶
func RegisterCodec(cdc *amino.Codec)
Types ¶
type ApproveBindSynPackage ¶
type ApproveBindSynPackage = bridgeTypes.ApproveBindSynPackage
type BindSynPackage ¶
type BindSynPackage = bridgeTypes.BindSynPackage
type CSCParamChange ¶
type CSCParamChange = paramHubTypes.CSCParamChange
type CommonAckPackage ¶
type CommonAckPackage = sidechainTypes.CommonAckPackage
type CreateSideChainValidatorMsg ¶
type CreateSideChainValidatorMsg = stakeTypes.MsgCreateSideChainValidator
stake module
type CrossChainPackage ¶
type CrossChainPackage struct { PackageType CrossChainPackageType RelayFee big.Int Content interface{} }
func ParseClaimPayload ¶
func ParseClaimPayload(payload []byte) ([]CrossChainPackage, error)
type CrossChainPackageType ¶
type CrossChainPackageType = cTypes.CrossChainPackageType
type CrossParamChange ¶
type CrossParamChange = paramHubTypes.CSCParamChange
type CrossStakeRefundPackage ¶
type CrossStakeRefundPackage = stakeTypes.CrossStakeRefundPackage
type CrossStakeSynPackageFromBSC ¶
type CrossStakeSynPackageFromBSC = crossStake.CrossStakeSynPackageFromBSC
type DBProphecy ¶
type DBProphecy = oracleTypes.DBProphecy
type Description ¶
type Description = stakeTypes.Description
=================== staking module ====================
type EditSideChainValidatorMsg ¶
type EditSideChainValidatorMsg = stakeTypes.MsgEditSideChainValidator
Msg definition
type IbcValidator ¶
type IbcValidator = stakeTypes.IbcValidator
type IbcValidatorSetPackage ¶
type IbcValidatorSetPackage = stakeTypes.IbcValidatorSetPackage
type ListTradingPairParams ¶
type ListTradingPairParams = gov.ListTradingPairParams
type MirrorSynPackage ¶
type MirrorSynPackage = bridgeTypes.MirrorSynPackage
type MirrorSyncSynPackage ¶
type MirrorSyncSynPackage = bridgeTypes.MirrorSyncSynPackage
type MsgCreateValidatorOpen ¶
type MsgCreateValidatorOpen = stakeTypes.MsgCreateValidatorOpen
Msg definition
type OracleParams ¶
type OracleParams = oracleTypes.Params
type OracleRelayer ¶
type OracleRelayer = stakeTypes.OracleRelayer
type Package ¶
type Package = oracleTypes.Package
type Packages ¶
type Packages = oracleTypes.Packages
type Prophecy ¶
type Prophecy = oracleTypes.Prophecy
type ProposalKind ¶
type ProposalKind = gov.ProposalKind
type SCChangeParams ¶
type SCChangeParams = paramHubTypes.SCChangeParams
type SCParam ¶
type SCParam = paramHubTypes.SCParam
type SideChainDelegateMsg ¶
type SideChainDelegateMsg = stakeTypes.MsgSideChainDelegate
Msg definition
type SideChainRedelegateMsg ¶
type SideChainRedelegateMsg = stakeTypes.MsgSideChainRedelegate
Msg definition
type SideChainSubmitProposalMsg ¶
type SideChainSubmitProposalMsg = gov.MsgSideChainSubmitProposal
Msg definition
type SideChainUndelegateMsg ¶
type SideChainUndelegateMsg = stakeTypes.MsgSideChainUndelegate
Msg definition
type SideDowntimeSlashPackage ¶
type SideDowntimeSlashPackage = slashingTypes.SideDowntimeSlashPackage
type SlashParams ¶
type SlashParams = slashingTypes.Params
type StakeParams ¶
type Status ¶
type Status = oracleTypes.Status
type TransferInSynPackage ¶
type TransferInSynPackage = bridgeTypes.TransferInSynPackage
type TransferOutRefundPackage ¶
type TransferOutRefundPackage = bridgeTypes.TransferOutRefundPackage
type TransferOutSynPackage ¶
type TransferOutSynPackage = bridgeTypes.TransferOutSynPackage
type TransferOwnershipMsg ¶
type TransferOwnershipMsg = ownership.TransferOwnershipMsg
Msg definition
type VoteOption ¶
type VoteOption = gov.VoteOption
Click to show internal directories.
Click to hide internal directories.