package
0.12.1
Repository: https://github.com/stratosnet/stratos-chain.git
Documentation: pkg.go.dev

# Functions

BlockGasLimit returns the max gas (limit) defined in the block gas meter.
GetConfig returns the config instance for the SDK.
GetSealedConfig returns the config instance for the SDK if/once it is sealed.
IsEmptyHash returns true if the hash corresponds to an empty ethereum hex hash.
IsZeroAddress returns true if the address corresponds to an empty ethereum hex address.
No description provided by the author
No description provided by the author
No description provided by the author
NewConfig returns a new Config with default values.
No description provided by the author
NewHDPathIterator receives a base path as a string and a boolean for the desired iterator type and returns a function that iterates over the base HD path, returning the string.
NewInfiniteGasMeterWithLimit returns a reference to a new infiniteGasMeter.
ProtoAccount defines the prototype function for BaseAccount used for an accountKeeper.
RegisterInterfaces registers the tendermint concrete client-related implementations and interfaces.
SafeInt64 checks for overflows while casting an uint64 to int64 value.
SdsAddressFromBech32 creates an SdsAddress from a Bech32 string.
SdsAddressFromHex creates an SdsAddress from a hex string.
SdsPubKeyFromBech32 returns an ed25519 SdsPublicKey from a Bech32 string.
SdsPubKeyToBech32 convert a SdsPublicKey to a Bech32 string.
ValidateHexAddress returns an error if the provided string is either not a hex formatted string address.

# Constants

AccountAddressPrefix defines the Bech32 prefix of an account's address (st).
AccountPubKeyPrefix defines the Bech32 prefix of an account's public key (stpub).
AccountTypeContract defines the type for contract accounts.
AccountTypeEOA defines the type for externally owned accounts (EOAs).
No description provided by the author
ConsNodeAddressPrefix defines the Bech32 prefix of a consensus node address (stvalcons).
ConsNodePubKeyPrefix defines the Bech32 prefix of a consensus node public key (stvalconspub).
DefaultGasPrice is default gas price for evm transactions.
DefaultKeyringServiceName defines a default service name for the keyring.
No description provided by the author
No description provided by the author
1 Gwei = 1e9 wei.
PrefixSds is the prefix for sds keys.
ProtocolVersion is the latest supported version of the eth protocol.
RootCodespace is the codespace for all errors defined in this package.
SdsNodeP2PAddressPrefix defines the Bech32 prefix of an sds account's address (stsds).
SdsNodeP2PPubkeyPrefix defines the Bech32 prefix of an sds account's public key (stsdspub).
Stos defines the denomination displayed to users in client applications.
1 Stos = 1e9 Gwei.
1 Stos = 1e18 wei.
Bech32 conversion constants.
reward denom.
ValidatorAddressPrefix defines the Bech32 prefix of a validator's operator address (stvaloper).
ValidatorPubKeyPrefix defines the Bech32 prefix of a validator's operator public key (stvaloperpub).
No description provided by the author
WeiDenomUnit defines the base denomination unit for stos.

# Variables

No description provided by the author
No description provided by the author
ErrInvalidChainID returns an error resulting from an invalid chain ID.
No description provided by the author
No description provided by the author
ErrInvalidValue returns an error resulting from an invalid value.
ErrMarshalBigInt returns an error resulting from marshaling a big.Int to a string.
No description provided by the author
No description provided by the author
ErrUnmarshalBigInt returns an error resulting from unmarshaling a big.Int from a string.

# Structs

No description provided by the author
Config is the structure that holds the SDK configuration parameters.
No description provided by the author
ErrorGasOverflow defines an error thrown when an action results gas consumption unsigned integer overflow.
ErrorNegativeGasConsumed defines an error thrown when the amount of gas refunded results in a negative gas consumed amount.
EthAccount implements the authtypes.AccountI interface and embeds an authtypes.BaseAccount type.
No description provided by the author
ValAddresses defines a repeated set of validator addresses.
No description provided by the author

# Interfaces

EthAccountI represents the interface of an EVM compatible account.
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author