types

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: 19 Imported by: 5 modules, 5 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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"
)
View Source
const (
	Unbonded  = types.Unbonded
	Unbonding = types.Unbonding
	Bonded    = types.Bonded
)

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 Account

type Account = types.Account

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 Coin

type Coin = types.Coin

type Coins

type Coins = types.Coins

type Commission

type Commission = stakeTypes.Commission

type CommissionMsg

type CommissionMsg = stakeTypes.CommissionMsg

type ConsAddress

type ConsAddress = types.ConsAddress

type Dec

type Dec = types.Dec

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 Fixed8

type Fixed8 = utils.Fixed8

type FixedFeeParams

type FixedFeeParams = paramHubTypes.FixedFeeParams

type FlagOption

type FlagOption = uint64

type IbcChainID

type IbcChainID = ctypes.ChainID

type IbcChannelID

type IbcChannelID = ctypes.ChannelID

type Int

type Int = types.Int

type MiniToken

type MiniToken = nodeTypes.MiniToken

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 NodeInfoOther struct {
	AminoVersion     string `json:"amino_version"`
	P2PVersion       string `json:"p2p_version"`
	ConsensusVersion string `json:"consensus_version"`
	RPCVersion       string `json:"rpc_version"`
	TxIndex          string `json:"tx_index"`
	RPCAddress       string `json:"rpc_address"`
}

type Pool

type Pool = stakeTypes.Pool

type Proposal

type Proposal = gov.Proposal

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 SwapBytes

type SwapBytes = swap.SwapBytes

type SwapStatus

type SwapStatus = swap.SwapStatus

type SyncInfo

type SyncInfo struct {
	LatestBlockHash   common.HexBytes `json:"latest_block_hash"`
	LatestAppHash     common.HexBytes `json:"latest_app_hash"`
	LatestBlockHeight int64           `json:"latest_block_height"`
	LatestBlockTime   time.Time       `json:"latest_block_time"`
	CatchingUp        bool            `json:"catching_up"`
}

type TallyResult

type TallyResult = gov.TallyResult

type TextProposal

type TextProposal = gov.TextProposal

type Time

type Time struct {
	ApTime    string `json:"ap_time"`
	BlockTime string `json:"block_time"`
}

type TimeLockRecord

type TimeLockRecord = timelock.TimeLockRecord

type Token

type Token = nodeTypes.Token

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

type ValidatorInfo

type ValidatorInfo struct {
	Address     common.HexBytes `json:"address"`
	PubKey      []uint8         `json:"pub_key"`
	VotingPower int64           `json:"voting_power"`
}

Jump to

Keyboard shortcuts

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