Documentation ¶
Index ¶
- Constants
- Variables
- func GetReceiveSequenceKey(destIbcChainID IbcChainID, channelID IbcChannelID) []byte
- func RegisterWire(cdc *amino.Codec)
- func SetNetwork(network ChainNetwork)
- type AccAddress
- type Account
- type AppAccount
- type AtomicSwap
- type BalanceAccount
- type BaseAccount
- type BaseParams
- type BondStatus
- type ChainNetwork
- type Coin
- type Coins
- type Commission
- type CommissionMsg
- type ConsAddress
- type Dec
- type Delegation
- type DelegationResponse
- type Description
- type DexFeeField
- type DexFeeParam
- type FeeDistributeType
- type FeeParam
- type Fixed8
- type FixedFeeParams
- type FlagOption
- type IbcChainID
- type IbcChannelID
- type Int
- type MiniToken
- type NamedAccount
- type NodeInfo
- type NodeInfoOther
- type Pool
- type Proposal
- type ProposalKind
- type ProposalStatus
- type QueryBondsParams
- type QueryDelegatorParams
- type QueryProposalParams
- type QueryProposalsParams
- type QueryRedelegationParams
- type QuerySwapByCreatorParams
- type QuerySwapByID
- type QuerySwapByRecipientParams
- type QueryTimeLockParams
- type QueryTimeLocksParams
- type QueryTopValidatorsParams
- type QueryValidatorParams
- type Redelegation
- type ResultStatus
- type SwapBytes
- type SwapStatus
- type SyncInfo
- type TallyResult
- type TextProposal
- type Time
- type TimeLockRecord
- type Token
- type TokenBalance
- type TokensQuery
- type TransferFeeParam
- type UnbondingDelegation
- type ValAddress
- type Validator
- type ValidatorInfo
Constants ¶
View Source
const ( FeeForProposer = types.FeeForProposer FeeForAll = types.FeeForAll FeeFree = types.FeeFree )
View Source
const ( ProposalTypeNil = gov.ProposalTypeNil ProposalTypeText = gov.ProposalTypeText ProposalTypeParameterChange = gov.ProposalTypeParameterChange ProposalTypeSoftwareUpgrade = gov.ProposalTypeSoftwareUpgrade ProposalTypeListTradingPair = gov.ProposalTypeListTradingPair ProposalTypeFeeChange = gov.ProposalTypeFeeChange ProposalTypeCreateValidator = gov.ProposalTypeCreateValidator ProposalTypeRemoveValidator = gov.ProposalTypeRemoveValidator ProposalTypeDelistTradingPair = gov.ProposalTypeDelistTradingPair ProposalTypeManageChanPermission = gov.ProposalTypeManageChanPermission ProposalTypeSCParamsChange = gov.ProposalTypeSCParamsChange ProposalTypeCSCParamsChange = gov.ProposalTypeCSCParamsChange )
nolint
View Source
const ( StatusNil = gov.StatusNil StatusDepositPeriod = gov.StatusDepositPeriod StatusVotingPeriod = gov.StatusVotingPeriod StatusPassed = gov.StatusPassed StatusRejected = gov.StatusRejected StatusExecuted = gov.StatusExecuted )
nolint
View Source
const ( SideBuy = "BUY" SideSell = "SELL" )
nolint
View Source
const ( NULL = swap.NULL Open = swap.Open Completed = swap.Completed Expired = swap.Expired )
View Source
const (
AddrLen = types.AddrLen
)
View Source
const (
TransferMemoCheckerFlag = scripts.TransferMemoCheckerFlag
)
Variables ¶
View Source
var ( AccAddressFromHex = types.AccAddressFromHex AccAddressFromBech32 = types.AccAddressFromBech32 GetFromBech32 = types.GetFromBech32 MustBech32ifyConsPub = types.MustBech32ifyConsPub Bech32ifyConsPub = types.Bech32ifyConsPub GetConsPubKeyBech32 = types.GetConsPubKeyBech32 )
View Source
var ( NewDecFromStr = types.NewDecFromStr ZeroDec = types.ZeroDec OneDec = types.OneDec NewDecWithPrec = types.NewDecWithPrec NewDec = types.NewDec )
View Source
var ( Fixed8Decimals = utils.Fixed8Decimals Fixed8One = utils.Fixed8One Fixed8Zero = utils.NewFixed8(0) )
View Source
var ( NewFixed8 = utils.NewFixed8 Fixed8DecodeString = utils.Fixed8DecodeString )
View Source
var ( NewInt = types.NewInt NewIntFromBigInt = types.NewIntFromBigInt )
View Source
var ( SideChainStorePrefixByIdKey = sidechain.SideChainStorePrefixByIdKey PrefixForSendSequenceKey = sidechain.PrefixForSendSequenceKey PrefixForReceiveSequenceKey = sidechain.PrefixForReceiveSequenceKey )
View Source
var ( // Param error AddressMissingError = errors.New("Address is required ") OffsetOutOfRangeError = errors.New("offset out of range ") LimitOutOfRangeError = errors.New("limit out of range ") )
View Source
var ( NewCommission = stakeTypes.NewCommission ValAddressFromBech32 = types.ValAddressFromBech32 ConsAddressFromHex = types.ConsAddressFromHex ConsAddressFromBech32 = types.ConsAddressFromBech32 GetConsAddress = types.GetConsAddress NewBaseParams = stake.NewBaseParams )
View Source
var Network = ProdNetwork
View Source
var (
NewSwapStatusFromString = swap.NewSwapStatusFromString
)
View Source
var (
ProposalStatusFromString = gov.ProposalStatusFromString
)
View Source
var (
ProposalTypeFromString = gov.ProposalTypeFromString
)
View Source
var (
UnmarshalRED = stakeTypes.UnmarshalRED
)
Functions ¶
func GetReceiveSequenceKey ¶
func GetReceiveSequenceKey(destIbcChainID IbcChainID, channelID IbcChannelID) []byte
func RegisterWire ¶
func RegisterWire(cdc *amino.Codec)
func SetNetwork ¶
func SetNetwork(network ChainNetwork)
Types ¶
type AccAddress ¶
type AccAddress = types.AccAddress
type AppAccount ¶
type AppAccount = nodeTypes.AppAccount
type AtomicSwap ¶
type AtomicSwap = swap.AtomicSwap
type BalanceAccount ¶
type BalanceAccount struct { Number int64 `json:"account_number"` Address string `json:"address"` Balances []TokenBalance `json:"balances"` PublicKey []uint8 `json:"public_key"` Sequence int64 `json:"sequence"` Flags uint64 `json:"flags"` }
Balance Account definition
type BaseAccount ¶
type BaseAccount = auth.BaseAccount
type BaseParams ¶
type BaseParams = gov.BaseParams
type BondStatus ¶
type BondStatus = types.BondStatus
type ChainNetwork ¶
type ChainNetwork uint8
const ( TestNetwork ChainNetwork = iota ProdNetwork TmpTestNetwork GangesNetwork )
func (ChainNetwork) Bech32Prefixes ¶
func (this ChainNetwork) Bech32Prefixes() string
type Commission ¶
type Commission = stakeTypes.Commission
type CommissionMsg ¶
type CommissionMsg = stakeTypes.CommissionMsg
type ConsAddress ¶
type ConsAddress = types.ConsAddress
type Delegation ¶
type Delegation = stakeTypes.Delegation
type DelegationResponse ¶
type DelegationResponse = stakeTypes.DelegationResponse
type Description ¶
type Description = stakeTypes.Description
type DexFeeField ¶
type DexFeeField = paramHubTypes.DexFeeField
type DexFeeParam ¶
type DexFeeParam = paramHubTypes.DexFeeParam
type FeeDistributeType ¶
type FeeDistributeType = types.FeeDistributeType
type FeeParam ¶
type FeeParam = paramHubTypes.FeeParam
type FixedFeeParams ¶
type FixedFeeParams = paramHubTypes.FixedFeeParams
type FlagOption ¶
type FlagOption = uint64
type IbcChainID ¶
type IbcChannelID ¶
type NamedAccount ¶
type NamedAccount = nodeTypes.NamedAccount
type NodeInfo ¶
type NodeInfo struct { // Authenticate // TODO: replace with NetAddress ID string `json:"id"` // authenticated identifier ListenAddr string `json:"listen_addr"` // accepting incoming // Check compatibility. // Channels are HexBytes so easier to read as JSON Network string `json:"network"` // network/chain ID Version string `json:"version"` // major.minor.revision Channels common.HexBytes `json:"channels"` // channels this node knows about // ASCIIText fields Moniker string `json:"moniker"` // arbitrary moniker Other NodeInfoOther `json:"other"` // other application specific data }
type NodeInfoOther ¶
type Pool ¶
type Pool = stakeTypes.Pool
type ProposalKind ¶
type ProposalKind = gov.ProposalKind
type ProposalStatus ¶
type ProposalStatus = gov.ProposalStatus
type QueryBondsParams ¶
type QueryBondsParams = stake.QueryBondsParams
type QueryDelegatorParams ¶
type QueryDelegatorParams = querier.QueryDelegatorParams
type QueryProposalParams ¶
type QueryProposalParams = gov.QueryProposalParams
type QueryProposalsParams ¶
type QueryProposalsParams = gov.QueryProposalsParams
type QueryRedelegationParams ¶
type QueryRedelegationParams = querier.QueryRedelegationParams
type QuerySwapByCreatorParams ¶
type QuerySwapByCreatorParams = swap.QuerySwapByCreatorParams
type QuerySwapByID ¶
type QuerySwapByID swap.QuerySwapByID
type QuerySwapByRecipientParams ¶
type QuerySwapByRecipientParams swap.QuerySwapByRecipientParams
type QueryTimeLockParams ¶
type QueryTimeLockParams = timelock.QueryTimeLockParams
type QueryTimeLocksParams ¶
type QueryTimeLocksParams = timelock.QueryTimeLocksParams
type QueryTopValidatorsParams ¶
type QueryTopValidatorsParams = stake.QueryTopValidatorsParams
type QueryValidatorParams ¶
type QueryValidatorParams = stake.QueryValidatorParams
type Redelegation ¶
type Redelegation = stakeTypes.Redelegation
type ResultStatus ¶
type ResultStatus struct { NodeInfo NodeInfo `json:"node_info"` SyncInfo SyncInfo `json:"sync_info"` ValidatorInfo ValidatorInfo `json:"validator_info"` }
type SwapStatus ¶
type SwapStatus = swap.SwapStatus
type TallyResult ¶
type TallyResult = gov.TallyResult
type TextProposal ¶
type TextProposal = gov.TextProposal
type TimeLockRecord ¶
type TimeLockRecord = timelock.TimeLockRecord
type TokenBalance ¶
type TokenBalance = rest.TokenBalance
type TokensQuery ¶
type TokensQuery struct { Offset *uint32 `json:"offset,omitempty,string"` //Option Limit *uint32 `json:"limit,omitempty,string"` //Option }
TokensQuery definition
func NewTokensQuery ¶
func NewTokensQuery() *TokensQuery
func (*TokensQuery) Check ¶
func (param *TokensQuery) Check() error
func (*TokensQuery) WithLimit ¶
func (param *TokensQuery) WithLimit(limit uint32) *TokensQuery
func (*TokensQuery) WithOffset ¶
func (param *TokensQuery) WithOffset(offset uint32) *TokensQuery
type TransferFeeParam ¶
type TransferFeeParam = paramHubTypes.TransferFeeParam
type UnbondingDelegation ¶
type UnbondingDelegation = stakeTypes.UnbondingDelegation
type ValAddress ¶
type ValAddress = types.ValAddress
type Validator ¶
type Validator = stakeTypes.Validator
Click to show internal directories.
Click to hide internal directories.