package
0.0.2-migrate-evm
Repository: https://github.com/scalarorg/scalar-core.git
Documentation: pkg.go.dev
# Packages
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
No description provided by the author
No description provided by the author
Package testutils provides general purpose utility functions for unit/integration testing.
No description provided by the author
# Functions
No description provided by the author
No description provided by the author
CloseLogError closes the given iterator and logs if an error is returned.
ExponentialBackOff computes an exponential back-off.
ExtractReqSender extracts the sender address from an SDK base request.
GetNonce deterministically calculates a nonce using a hash and gas meter.
Hash returns the sha256 hash of the given protobuf data.
Decode a hex string.
Encode a bytearray as hex string with 0x prefix.
IndexOf returns the index of str in the slice; -1 if not found.
KeyFromBz returns a structured key.
KeyFromInt returns a structured key.
KeyFromStr applies the optional string transformations to the given key in sequence and returns a structured key.
LinearBackOff computes a linear back-off.
LowerCaseKey returns a key with the input converted to lower case.
NewBitmap is the constructor for Bitmap.
NewBlockHeightKVQueue is the constructor of BlockHeightKVQueue.
NewCircularBuffer is the constructor of CircularBuffer.
NewCounter is the constructor for counter.
NewGeneralKVQueue is the contructor for GeneralKVQueue.
NewNOPLogger returns a logger that doesn't do anything.
NewNormalizedStore returns a new KVStore.
NewSequenceKVQueue is the constructor of SequenceKVQueue.
NewThreshold is the constructor for Threshold.
NormalizeString normalizes a string as NFKC.
NoValidation wraps a ProtoMarshaler so it can be used by the store without actually adding any validation.
RegisterQueryHandlerFn returns a function to register query routes with the given router.
RegisterTxHandlerFn returns a function to register rest routes with the given router.
RunCached wraps the given function, handles error/panic and rolls back the state if necessary.
ValidateString checks if the given string is:
1.
ValidateStringAllowEmpty checks if the given string is:
1.
WithValidation adds a ValidateBasic function to an existing ProtoMarshaler.
# Constants
DefaultDelimiter represents the default delimiter used for the KV store keys.
routes.
routes.
routes.
routes.
routes.
routes.
routes.
routes.
routes.
routes.
routes.
routes.
routes.
routes.
routes.
routes.
routes.
routes.
# Variables
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
MaxInt specifies the max sdk.Int value.
MaxUint specifies the max sdk.Uint value.
OneThreshold is a threshold that equals to 1.
ZeroThreshold is a threshold that equals to 0.
# Structs
No description provided by the author
BlockHeightKVQueue is a queue that orders items with the block height at which the items are enqueued; the order of items that are enqueued at the same block height is deterministically based on their actual key in the KVStore.
No description provided by the author
Counter is a stateful counter that works with the kv store and starts from zero.
GeneralKVQueue is a queue that orders items based on the given prioritizer function.
KVStore is a wrapper around the cosmos-sdk KVStore to provide more safety regarding key management and better ease-of-use.
NOPLogger is a logger that doesn't do anything.
No description provided by the author
No description provided by the author
SequenceKVQueue is a queue that orders items with the sequence number at which the items are enqueued;.
No description provided by the author
# Interfaces
Iterator is an easier and safer to use sdk.Iterator extension.
Key represents a store key to interact with the KVStore Deprecated: use key.Key instead.
KVQueue represents a queue built with the KVStore.
Logger wraps keepers which expose a Logger method.
StringKey extends the Key interface for simplified appending and prepending Deprecated: use key.Key instead.
ValidatedProtoMarshaler is a ProtoMarshaler that can also be validated.