package
0.1.9
Repository: https://github.com/aximchain/axc-cosmos-sdk.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

validator which fulfills abci validator interface for use in Tendermint.
AccAddressFromBech32 creates an AccAddress from a Bech32 string.
AccAddressFromHex creates an AccAddress from a hex string.
appends a message to the head of the given error.
Bech32ifyAccPub returns a Bech32 encoded string containing the Bech32PrefixAccPub prefix for a given account PubKey.
Bech32ifyConsPub returns a Bech32 encoded string containing the Bech32PrefixConsPub prefixfor a given consensus node's PubKey.
Bech32ifyValPub returns a Bech32 encoded string containing the Bech32PrefixValPub prefix for a given validator operator's PubKey.
BondStatusToString for pretty prints of Bond Status.
NOTE: Don't stringer this, we'll put better messages in later.
ConsAddressFromBech32 creates a ConsAddress from a Bech32 string.
ConsAddressFromHex creates a ConsAddress from a hex string.
intended to be used with require/assert: require.True(DecEq(...)).
test if two decimal arrays are equal.
DefaultChainID returns the chain ID from the genesis file if present.
EmptyEvents returns an empty slice of events.
New empty tags.
No description provided by the author
No description provided by the author
nolint.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Formats a time.Time into a []byte that can be sorted.
GetAccPubKeyBech32 creates a PubKey for an account with a given public key string using the Bech32 Bech32PrefixAccPub prefix.
GetConfig returns the config instance for the SDK.
get ConsAddress from pubkey.
GetConsPubKeyBech32 creates a PubKey for a consensus node with a given public key string using the Bech32 Bech32PrefixConsPub prefix.
GetFromBech32 decodes a bytestring from a Bech32 encoded string.
No description provided by the author
No description provided by the author
No description provided by the author
GetValPubKeyBech32 creates a PubKey for a validator's operator with a given public key string using the Bech32 Bech32PrefixValPub prefix.
has0xPrefix validates str begins with '0x' or '0X'.
No description provided by the author
Decode decodes a hex string with 0x prefix.
No description provided by the author
InclusiveEndBytes returns the []byte that would end a range query such that the input would be included.
intended to be used with require/assert: require.True(IntEq(...)).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Iterator over all the keys with a certain prefix in ascending order.
Iterator over all the keys with a certain prefix in descending order.
Make a tag from a key and a value.
maximum decimal between two.
minimum decimal between two.
Return the minimum of the ints.
No description provided by the author
Return the minimum of the Uints.
No description provided by the author
No description provided by the author
No description provided by the author
MustBech32ifyAccPub returns the result of Bech32ifyAccPub panicing on failure.
MustBech32ifyConsPub returns the result of Bech32ifyConsPub panicing on failure.
MustBech32ifyValPub returns the result of Bech32ifyValPub panicing on failure.
MustGetAccPubKeyBech32 returns the result of GetAccPubKeyBech32 panicing on failure.
MustGetConsPubKeyBech32 returns the result of GetConsPubKeyBech32 panicing on failure.
MustGetValPubKeyBech32 returns the result of GetValPubKeyBech32 panicing on failure.
MustSortJSON is like SortJSON but panic if an error occurs, e.g., if the passed JSON isn't valid.
NewAttribute returns a new key/value Attribute object.
NewCodespacer generates a new Codespacer with the starting codespace.
No description provided by the author
create a new context.
create a new Dec from integer assuming whole number.
create a new Dec from big integer assuming whole numbers CONTRACT: prec <= Precision.
create a new Dec from big integer with decimal place at prec CONTRACT: prec <= Precision.
create a decimal from an input decimal string.
create a new dec from integer with no decimal fraction.
create a new Dec from integer with decimal place at prec CONTRACT: prec <= Precision.
NewError - create an error.
NewEvent creates a new Event object with a given type and slice of one or more attributes.
No description provided by the author
No description provided by the author
NewInt constructs Int from int64.
NewIntFromBigInt constructs Int from big.Int.
NewIntFromString constructs Int from string.
NewIntWithDecimal constructs Int with decimal Result value is n*10^dec.
NewKVStoreKey returns a new pointer to a KVStoreKey.
NewSmartChainAddress is a constructor function for SmartChainAddress.
New variadic tags, must be k string, v []byte repeating.
No description provided by the author
Constructs new TransientStoreKey Must return a pointer according to the ocap principle.
NewUint constructs Uint from int64.
NewUintFromBigUint constructs Uint from big.Uint.
NewUintFromString constructs Uint from string.
NewUintWithDecimal constructs Uint with decimal Result value is n*10^dec.
No description provided by the author
No description provided by the author
OneInt returns Int value with one.
OneUint returns Uint value with one.
No description provided by the author
No description provided by the author
ParseCoin parses a cli input for one coin type, returning errors if invalid.
ParseCoins will parse out a list of coins separated by commas.
Parses a []byte encoded using FormatTimeKey back into a time.Time.
PrefixEndBytes returns the []byte that would end a range query for all []byte with a certain prefix Deals with last byte of prefix being FF without overflowing.
No description provided by the author
Register the sdk message type.
No description provided by the author
No description provided by the author
No description provided by the author
SortedJSON takes any JSON and returns it sorted by keys.
StringifyEvent converts an Event object to a StringEvent object.
StringifyEvents converts a slice of Event objects into a slice of StringEvent objects.
get the abci code from the local code and codespace.
No description provided by the author
ValAddressFromBech32 creates a ValAddress from a Bech32 string.
ValAddressFromHex creates a ValAddress from a hex string.
CONTRACT: a and b have same length.
nolint - common values.
ZeroInt returns Int value with zero.
ZeroUint returns Uint value with zero.

# Constants

ABCI error codes.
No description provided by the author
AddrLen defines a valid address length.
Bech32PrefixAccAddr defines the Bech32 prefix of an account's address.
Bech32PrefixAccPub defines the Bech32 prefix of an account's public key.
Bech32PrefixConsAddr defines the Bech32 prefix of a consensus node address.
Bech32PrefixConsPub defines the Bech32 prefix of a consensus node public key.
Bech32PrefixValAddr defines the Bech32 prefix of a validator's operator address.
Bech32PrefixValPub defines the Bech32 prefix of a validator's operator public key.
https://github.com/bnb-chain/BEPs/pull/17.
https://github.com/bnb-chain/BEPs/pull/128.
https://github.com/bnb-chain/BEPs/pull/153.
https://github.com/bnb-chain/BEPs/pull/159.
phase 2 activation height of BEP159, enable create validator and active oracle relayer whitelist.
https://github.com/bnb-chain/BEPs/pull/173.
https://github.com/bnb-chain/BEPs/pull/30.
https://github.com/bnb-chain/BEPs/pull/69.
https://github.com/bnb-chain/BEPs/pull/82.
https://github.com/bnb-chain/BEPs/pull/9.
nolint.
No description provided by the author
No description provided by the author
SDK error codes.
SDK error codes.
SDK error codes.
SDK error codes.
SDK error codes.
SDK error codes.
SDK error codes.
SDK error codes.
SDK error codes.
SDK error codes.
SDK error codes.
SDK error codes.
Base error codes.
SDK error codes.
CodespaceRoot is a codespace for error codes in this file only.
SDK error codes.
SDK error codes.
SDK error codes.
SDK error codes.
bytes required to represent the above precision ceil(log2(9999999999)).
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
fix json unmarshal overflow when build SignBytes.
No description provided by the author
Maximum reservable codespace (2^16 - 1).
No description provided by the author
number of decimal places.
PruneEverything means all saved states will be deleted, storing only the current state.
PruneNothing means all historic states will be saved, nothing will be deleted.
PruneSyncable means only those states not needed for state syncing will be deleted (keeps last 100 + every 10000th).
No description provided by the author
No description provided by the author
Check a transaction.
Check a transaction after PreCheck.
Deliver a transaction.
Deliver a transaction after PreDeliver.
ReCheck a transaction.
Simulate a transaction.
SmartChainAddressLength defines a valid smart chain address length.
Slight modification of the RFC3339Nano but it right pads all zeros and drops the time zone info.
No description provided by the author
No description provided by the author
nolint.
No description provided by the author
No description provided by the author
90 billions with 8 decimal digits.
nolint.
nolint.
No description provided by the author

# Variables

Common event types and attribute keys.
Common event types and attribute keys.
Common event types and attribute keys.
Common event types and attribute keys.
Common event types and attribute keys.
No description provided by the author
axc prefix address: axc1v8vkkymvhe2sf7gd2092ujc6hweta38xadu2pj taxc prefix address: taxc1v8vkkymvhe2sf7gd2092ujc6hweta38xnc4wpr.
common tags.
common tags.
common tags.
common tags.
No description provided by the author

# Structs

No description provided by the author
Codespacer is a simple struct to track reserved codespaces.
Coin hold some amount of one currency.
CollectConfig is the structure that holds configuration parameters whether to collect specified info during apply blocks.
CommitID contains the tree version number and its merkle root.
Config is the structure that holds the SDK configuration parameters.
No description provided by the author
NOTE: never use new(Dec) or else we will panic unmarshalling into the nil embedded big.Int.
No description provided by the author
EventManager implements a simple wrapper around a slice of Event objects that can be emitted from.
No description provided by the author
No description provided by the author
Int wraps integer with 256 bit range bound Checks overflow, underflow and division by zero Exists in range from -(2^255-1) to 2^255-1.
KVStoreKey is used for accessing substores.
block level pool to avoid frequently call ctx.With harms performance according to our test NOTE: states keep in this pool should be cleared per-block, an appropriate place should be in the end of Commit() with deliver state.
Result is the union of ResponseDeliverTx and ResponseCheckTx.
No description provided by the author
msg type for testing.
TransientStoreKey is used for indexing transient stores in a MultiStore.
Int wraps integer with 256 bit range bound Checks overflow, underflow and division by zero Exists in range from 0 to 2^256-1.
No description provided by the author
No description provided by the author

# Interfaces

Account is an interface used to store coins at a given address within state.
No description provided by the author
No description provided by the author
CacheKVStore cache-wraps a KVStore.
From MultiStore.CacheMultiStore()....
CacheWrap makes the most appropriate cache-wrap.
No description provided by the author
Stores of MultiStore must implement CommitStore.
A non-cache MultiStore.
Stores of MultiStore must implement CommitStore.
something that can persist to disk.
No description provided by the author
delegation bond for a delegated proof of stake system.
properties for the set of all delegations for a particular.
sdk Error type.
KVStore is a simple interface to get/set data.
Transactions messages must fulfill the Msg.
No description provided by the author
Queryable allows a Store to expose internal state to the abci.Query interface.
event hooks for staking validator object.
No description provided by the author
StoreKey is a key used to index stores in a MultiStore.
No description provided by the author
Transactions objects must fulfill the Tx.
validator for a delegated proof of stake system.
properties for the set of all validators.

# Type aliases

ABCICodeType - combined codetype / codespace.
AccAddress a wrapper around bytes meant to represent an account address.
AnteHandler authenticates transactions, before their internal messages are handled.
run code before the transactions in a block.
status of a validator.
No description provided by the author
No description provided by the author
No description provided by the author
CodespaceType - codespace identifier.
CodeType - code identifier within codespace.
Coins is a set of Coin, one per currency.
ConsAddress defines a wrapper around bytes meant to present a consensus node.
No description provided by the author
run code after the transactions in a block and return updates to the validator set.
No description provided by the author
No description provided by the author
No description provided by the author
Handler defines the core of the state transition function of an application.
initialize application state at genesis.
Alias iterator to db's Iterator for convenience.
key-value result for iterator queries.
respond to p2p filtering queries from Tendermint.
No description provided by the author
PruningStrategy specfies how old states will be deleted over time.
Type for querier functions on keepers to implement to handle custom queries.
No description provided by the author
Enum mode for app.runTx.
No description provided by the author
SmartChainAddress defines a standard smart chain address.
kind of store.
No description provided by the author
Type synonym for convenience.
Type synonym for convenience.
TraceContext contains TraceKVStore context data.
TxDecoder unmarshals transaction bytes.
ValAddress defines a wrapper around bytes meant to present a validator's operator.