src/crypto/evm/evm library

Classes

ArrayFunctionParamType<T>
Array TODO: Add support for fixed size arrays
BaseFunctionParamType<T>
ContractABI
ContractEvent
ContractFunction
An Object that represents a contract function generated from an ABI Used for Encoding a datafield and after executing decoding the output
ContractFunctionWithValues
ContractFunctionWithValuesAndOutputs
An Object that represents a contract function generated from an ABI Has the List parameters with wich the function was called Has the List outputs with the outputs of said executed function
DecodedRLP
DynamicFunctionParamType<T>
EnsRegistryContract
EnsResolverContract
ERC20Contract
EtherscanExplorer
EtherscanTransaction
EvmRpcClient
EvmRpcInterface
ExternalContractFunction
An Object that represents a contract function where we only have the function signature And hence only have the function name, selector and the parameters Only used for decoding existing datafields
ExternalContractFunctionWithValues
An Object that represents a contract function where we only have the function signature And hence only have the function name, selector and the parameters Created after decoding the datafield with ExternalContractFunction
FunctionParam
FunctionParamAddress
Address Bool String
FunctionParamAddressArray
FunctionParamBool
FunctionParamBytes
FunctionParamBytes1
FunctionParamBytes10
FunctionParamBytes11
FunctionParamBytes12
FunctionParamBytes13
FunctionParamBytes14
FunctionParamBytes15
FunctionParamBytes16
FunctionParamBytes17
FunctionParamBytes18
FunctionParamBytes19
FunctionParamBytes2
FunctionParamBytes20
FunctionParamBytes21
FunctionParamBytes22
FunctionParamBytes23
FunctionParamBytes24
FunctionParamBytes25
FunctionParamBytes26
FunctionParamBytes27
FunctionParamBytes28
FunctionParamBytes29
FunctionParamBytes3
FunctionParamBytes30
FunctionParamBytes31
FunctionParamBytes32
FunctionParamBytes4
FunctionParamBytes5
FunctionParamBytes6
FunctionParamBytes7
FunctionParamBytes8
FunctionParamBytes9
FunctionParamBytesArray
FunctionParamBytesBase
FunctionParamFixed
Synonym for FunctionParamFixed128
FunctionParamFixed104
FunctionParamFixed112
FunctionParamFixed120
FunctionParamFixed128
FunctionParamFixed136
FunctionParamFixed144
FunctionParamFixed152
FunctionParamFixed16
FunctionParamFixed160
FunctionParamFixed168
FunctionParamFixed176
FunctionParamFixed184
FunctionParamFixed192
FunctionParamFixed200
FunctionParamFixed208
FunctionParamFixed216
FunctionParamFixed224
FunctionParamFixed232
FunctionParamFixed24
FunctionParamFixed240
FunctionParamFixed248
FunctionParamFixed256
FunctionParamFixed32
FunctionParamFixed40
FunctionParamFixed48
FunctionParamFixed56
FunctionParamFixed64
FunctionParamFixed72
FunctionParamFixed8
FunctionParamFixed80
FunctionParamFixed88
FunctionParamFixed96
FunctionParamFixedBase
FunctionParamFunction
FunctionParamInt
Base class for all integer types since encoding and decoding is the same Valid int are: 8 through 256 with increments of 8 Valid uint are: 8 through 256 with increments of 8
FunctionParamInt104
FunctionParamInt112
FunctionParamInt120
FunctionParamInt128
FunctionParamInt136
FunctionParamInt144
FunctionParamInt152
FunctionParamInt16
FunctionParamInt160
FunctionParamInt168
FunctionParamInt176
FunctionParamInt184
FunctionParamInt192
FunctionParamInt200
FunctionParamInt208
FunctionParamInt216
FunctionParamInt224
FunctionParamInt232
FunctionParamInt24
FunctionParamInt240
FunctionParamInt248
FunctionParamInt256
FunctionParamInt32
FunctionParamInt40
FunctionParamInt48
FunctionParamInt56
FunctionParamInt64
FunctionParamInt72
FunctionParamInt8
FunctionParamInt80
FunctionParamInt88
FunctionParamInt96
FunctionParamString
FunctionParamType<T>
FunctionParamUFixed
Synonym for FunctionParamUFixed128
FunctionParamUFixed104
FunctionParamUFixed112
FunctionParamUFixed120
FunctionParamUFixed128
FunctionParamUFixed136
FunctionParamUFixed144
FunctionParamUFixed152
FunctionParamUFixed16
FunctionParamUFixed160
FunctionParamUFixed168
FunctionParamUFixed176
FunctionParamUFixed184
FunctionParamUFixed192
FunctionParamUFixed200
FunctionParamUFixed208
FunctionParamUFixed216
FunctionParamUFixed224
FunctionParamUFixed232
FunctionParamUFixed24
FunctionParamUFixed240
FunctionParamUFixed248
FunctionParamUFixed256
FunctionParamUFixed32
FunctionParamUFixed40
FunctionParamUFixed48
FunctionParamUFixed56
FunctionParamUFixed64
FunctionParamUFixed72
FunctionParamUFixed8
FunctionParamUFixed80
FunctionParamUFixed88
FunctionParamUFixed96
FunctionParamUint
FunctionParamUint104
FunctionParamUint112
FunctionParamUint120
FunctionParamUint128
FunctionParamUint136
FunctionParamUint144
FunctionParamUint152
FunctionParamUint16
FunctionParamUint160
FunctionParamUint168
FunctionParamUint176
FunctionParamUint184
FunctionParamUint192
FunctionParamUint200
FunctionParamUint208
FunctionParamUint216
FunctionParamUint224
FunctionParamUint232
FunctionParamUint24
FunctionParamUint240
FunctionParamUint248
FunctionParamUint256
FunctionParamUint32
FunctionParamUint40
FunctionParamUint48
FunctionParamUint56
FunctionParamUint64
FunctionParamUint72
FunctionParamUint8
FunctionParamUint80
FunctionParamUint88
FunctionParamUint96
FunctionParamWithValue<T>
InternalContract
NotDecodableExternalContractFunction
RawEvmTransaction
RawEVMTransactionType0
RawEVMTransactionType1
RawEVMTransactionType2
Signature
TupleFunctionParamType
Tuple
UniswapV2Factory
UniswapV2Pair
UniswapV2Router
UnknownExternalContractFunction
ZeniqScanExplorer

Enums

Sorting
StateMutability
TransactionType

Mixins

LocalContractFunctionMixin
A mixin for ContractFunction and ContractFunctionWithValues Used to get the stateMutability and outputs of the function These are only available in the local contract functions

Extensions

URLBuilder on String

Constants

ensRegistryMainnetContractAddress → const String
erc20TransferSig → const String
stakingPartnerAddress → const String
znsRegistryContractAddress → const String

Properties

abiList List<ContractABI>
final
contractAbiErc20 → dynamic
final
contractAbiErc721 → dynamic
final
ensRegistryAbi → dynamic
final
ensResoloverABI → dynamic
final
params → dynamic
final
uniswap_v2_factory_abi → dynamic
final
uniswap_v2_pair_abi → dynamic
final
uniswap_v2_router_abi → dynamic
final

Functions

arrayifyInteger(int value) Uint8List
@param {int} value
batchFutures<T>(Iterable<Future<T>> futures, {int batchSize = 10}) Future<List<T>>
bytesToUnsignedInt(Uint8List bytes) BigInt
compressPublicKey(Uint8List compressedPubKey) Uint8List
Given a byte array computes its compressed version and returns it as a byte array, including the leading 02 or 03
decodeRLP(Uint8List data, int offset) DecodedRLP
@param {Uint8List} data @param {int} offset
dynToHex(dynamic value) → dynamic
extractChainId(int v) int
hexlifyByte(int value) String
@param {int} value
namehash(String name) Uint8List
privateKeyToPublic(BigInt privateKey) Uint8List
recoverEthMessageSigner({required String message, required String signature}) String
recoverPubKey({required String message, required String sig, required String coin, bool? uncompressed}) String
recoverPublicKey(Uint8List payload, dynamic signature, {bool hasSignatureYParity = false}) Uint8List
rlpEncode(dynamic object) String
@param {dynamic} object
signEvmMessage({required String message, required Uint8List seed}) String
signEvmTransaction({required String messageHex, required Uint8List seed}) → (dynamic, dynamic)
unarrayifyInteger(Uint8List data, int offset, int length) int
@param {Uint8List} data @param {int} offset @param {int} length

Typedefs

ABIFunction = ({String address, Uint8List selector})
AccessListItem = ({String address, List<String> storageKeys})

Exceptions / Errors

FunctionDecodingException
FunctionSelectorException
RateLimitingException