msg

package
v1.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2023 License: Apache-2.0 Imports: 27 Imported by: 1

Documentation

Index

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
	NewCreateSideChainValidatorMsgWithVoteAddr           = stakeTypes.NewMsgCreateSideChainValidatorWithVoteAddr
	NewMsgCreateSideChainValidatorOnBehalfOf             = stakeTypes.NewMsgCreateSideChainValidatorOnBehalfOf
	NewMsgCreateSideChainValidatorOnBehalfOfWithVoteAddr = stakeTypes.NewMsgCreateSideChainValidatorWithVoteAddrOnBehalfOf
	NewEditSideChainValidatorMsg                         = stakeTypes.NewMsgEditSideChainValidator
	NewEditSideChainValidatorMsgWithVoteAddr             = stakeTypes.NewMsgEditSideChainValidatorWithVoteAddr
	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 BindMsg

type BindMsg = bTypes.BindMsg

bridge module

type BindSynPackage

type BindSynPackage = bridgeTypes.BindSynPackage

type CSCParamChange

type CSCParamChange = paramHubTypes.CSCParamChange

type CancelOrderMsg

type CancelOrderMsg = order.CancelOrderMsg

Msg definition

type Claim

type Claim = oracleTypes.Claim

oracle claim module

type ClaimHTLTMsg

type ClaimHTLTMsg = swap.ClaimHTLTMsg

Msg definition

type ClaimMsg

type ClaimMsg = oracleTypes.ClaimMsg

Msg definition

type CommonAckPackage

type CommonAckPackage = sidechainTypes.CommonAckPackage

type CreateOrderMsg

type CreateOrderMsg = order.NewOrderMsg

trade module

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 DepositHTLTMsg

type DepositHTLTMsg = swap.DepositHTLTMsg

Msg definition

type DepositMsg

type DepositMsg = gov.MsgDeposit

Msg definition

type Description

type Description = stakeTypes.Description

=================== staking module ====================

type DexListMsg

type DexListMsg = dexTypes.ListMsg

Msg definition

type EditSideChainValidatorMsg

type EditSideChainValidatorMsg = stakeTypes.MsgEditSideChainValidator

Msg definition

type HTLTMsg

type HTLTMsg = swap.HTLTMsg

atomic swap module

type IbcParams

type IbcParams = ibc.Params

type IbcValidator

type IbcValidator = stakeTypes.IbcValidator

type IbcValidatorSetPackage

type IbcValidatorSetPackage = stakeTypes.IbcValidatorSetPackage

type Input

type Input = bank.Input

=================== bank module ====================

type ListMiniMsg

type ListMiniMsg = dexTypes.ListMiniMsg

Msg definition

type ListTradingPairParams

type ListTradingPairParams = gov.ListTradingPairParams

type MiniTokenIssueMsg

type MiniTokenIssueMsg = issue.IssueMiniMsg

Msg definition

type MintMsg

type MintMsg = issue.MintMsg

Msg definition

type MirrorSynPackage

type MirrorSynPackage = bridgeTypes.MirrorSynPackage

type MirrorSyncSynPackage

type MirrorSyncSynPackage = bridgeTypes.MirrorSyncSynPackage

type Msg

type Msg = cTypes.Msg

type MsgCreateSideChainValidatorWithVoteAddr added in v1.3.2

type MsgCreateSideChainValidatorWithVoteAddr = stakeTypes.MsgCreateSideChainValidatorWithVoteAddr

Msg definition

type MsgCreateValidatorOpen

type MsgCreateValidatorOpen = stakeTypes.MsgCreateValidatorOpen

Msg definition

type MsgDelegate

type MsgDelegate = stakeTypes.MsgDelegate

Msg definition

type MsgEditSideChainValidatorWithVoteAddr added in v1.3.2

type MsgEditSideChainValidatorWithVoteAddr = stakeTypes.MsgEditSideChainValidatorWithVoteAddr

Msg definition

type MsgEditValidator

type MsgEditValidator = stakeTypes.MsgEditValidator

Msg definition

type MsgRedelegate

type MsgRedelegate = stakeTypes.MsgRedelegate

Msg definition

type MsgRemoveValidator

type MsgRemoveValidator = stakeTypes.MsgRemoveValidator

Msg definition

type MsgSideChainUnjail

type MsgSideChainUnjail = slashing.MsgSideChainUnjail

slash module

type MsgUndelegate

type MsgUndelegate = stakeTypes.MsgUndelegate

Msg definition

type MsgUnjail

type MsgUnjail = slashing.MsgUnjail

Msg definition

type OracleParams

type OracleParams = oracleTypes.Params

type OracleRelayer

type OracleRelayer = stakeTypes.OracleRelayer

type Output

type Output = bank.Output

=================== bank module ====================

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 RefundHTLTMsg

type RefundHTLTMsg = swap.RefundHTLTMsg

Msg definition

type SCChangeParams

type SCChangeParams = paramHubTypes.SCChangeParams

type SCParam

type SCParam = paramHubTypes.SCParam

type SendMsg

type SendMsg = bank.MsgSend

Msg definition

func CreateSendMsg

func CreateSendMsg(from types.AccAddress, fromCoins types.Coins, transfers []Transfer) SendMsg

type SetAccountFlagsMsg

type SetAccountFlagsMsg = account.SetAccountFlagsMsg

account module

type SetURIMsg

type SetURIMsg = seturi.SetURIMsg

Msg definition

type SideChainDelegateMsg

type SideChainDelegateMsg = stakeTypes.MsgSideChainDelegate

Msg definition

type SideChainDepositMsg

type SideChainDepositMsg = gov.MsgSideChainDeposit

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 SideChainVoteMsg

type SideChainVoteMsg = gov.MsgSideChainVote

Msg definition

type SideDowntimeSlashPackage

type SideDowntimeSlashPackage = slashingTypes.SideSlashPackage

type SlashParams

type SlashParams = slashingTypes.Params

type SmartChainAddress

type SmartChainAddress = cTypes.SmartChainAddress

Msg definition

type StakeParams

type StakeParams = stake.Params

type Status

type Status = oracleTypes.Status

type SubmitProposalMsg

type SubmitProposalMsg = gov.MsgSubmitProposal

gov module

type TimeLockMsg

type TimeLockMsg = timelock.TimeLockMsg

Msg definition

type TimeRelockMsg

type TimeRelockMsg = timelock.TimeRelockMsg

Msg definition

type TimeUnlockMsg

type TimeUnlockMsg = timelock.TimeUnlockMsg

Msg definition

type TinyTokenIssueMsg

type TinyTokenIssueMsg = issue.IssueTinyMsg

Msg definition

type TokenBurnMsg

type TokenBurnMsg = burn.BurnMsg

token module

type TokenFreezeMsg

type TokenFreezeMsg = freeze.FreezeMsg

Msg definition

type TokenIssueMsg

type TokenIssueMsg = issue.IssueMsg

Msg definition

type TokenUnfreezeMsg

type TokenUnfreezeMsg = freeze.UnfreezeMsg

Msg definition

type Transfer

type Transfer struct {
	ToAddr cTypes.AccAddress
	Coins  cTypes.Coins
}

type TransferInSynPackage

type TransferInSynPackage = bridgeTypes.TransferInSynPackage

type TransferOutMsg

type TransferOutMsg = bTypes.TransferOutMsg

Msg definition

type TransferOutRefundPackage

type TransferOutRefundPackage = bridgeTypes.TransferOutRefundPackage

type TransferOutSynPackage

type TransferOutSynPackage = bridgeTypes.TransferOutSynPackage

type TransferOwnershipMsg

type TransferOwnershipMsg = ownership.TransferOwnershipMsg

Msg definition

type UnbindMsg

type UnbindMsg = bTypes.UnbindMsg

Msg definition

type VoteMsg

type VoteMsg = gov.MsgVote

Msg definition

type VoteOption

type VoteOption = gov.VoteOption

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL