codec library
https://docs.soliditylang.org/en/v0.5.3/abi-spec.html
This was taken from: https://github.com/nbltrust/dart-eth-abi-codec/blob/main/lib/src/codec.dart
Functions
-
encodeAddress(
String a) → Uint8List -
encodeBool(
bool b) → Uint8List -
encodeBytes(
Uint8List v) → Uint8List -
encodeFixedBytes(
Uint8List v, int length) → Uint8List -
encodeFixedLengthList(
List l, String type, int length) → Uint8List -
encodeInt(
int v) → Uint8List -
encodeInt256(
BigInt v) → Uint8List -
encodeList(
List l, String type) → Uint8List -
encodeString(
String s) → Uint8List -
encodeType(
String type, dynamic data) → Uint8List -
encodeUint256(
BigInt v) → Uint8List -
isDynamicType(
String typeName) → bool -
padLeft(
Uint8List d, int alignBytes) → Uint8List -
padRight(
Uint8List d, int alignBytes) → Uint8List -
sizeOfStaticType(
String typeName) → int -
splitTypes(
String typesStr) → List< String>