aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Hysen <greg.hysen@gmail.com>2018-11-21 02:08:17 +0800
committerGreg Hysen <greg.hysen@gmail.com>2018-11-29 08:38:11 +0800
commit0f7abcd59bcbad5a74c7984b199158f5c9f03934 (patch)
tree2588e3a91a24cf2a4588d8d7e64f23d79c6a0fe4
parent2164b34bf9ca6f38fff93a527ee162b0624b818e (diff)
downloaddexon-0x-contracts-0f7abcd59bcbad5a74c7984b199158f5c9f03934.tar
dexon-0x-contracts-0f7abcd59bcbad5a74c7984b199158f5c9f03934.tar.gz
dexon-0x-contracts-0f7abcd59bcbad5a74c7984b199158f5c9f03934.tar.bz2
dexon-0x-contracts-0f7abcd59bcbad5a74c7984b199158f5c9f03934.tar.lz
dexon-0x-contracts-0f7abcd59bcbad5a74c7984b199158f5c9f03934.tar.xz
dexon-0x-contracts-0f7abcd59bcbad5a74c7984b199158f5c9f03934.tar.zst
dexon-0x-contracts-0f7abcd59bcbad5a74c7984b199158f5c9f03934.zip
Moved global constants to separate file
-rw-r--r--packages/utils/src/abi_encoder/constants.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/utils/src/abi_encoder/constants.ts b/packages/utils/src/abi_encoder/constants.ts
new file mode 100644
index 000000000..b52630d74
--- /dev/null
+++ b/packages/utils/src/abi_encoder/constants.ts
@@ -0,0 +1,6 @@
+export const EVM_WORD_WIDTH_IN_BYTES = 32;
+export const HEX_BASE = 16;
+export const BIN_BASE = 2;
+export const HEX_SELECTOR_LENGTH_IN_CHARS = 10;
+export const HEX_SELECTOR_LENGTH_IN_BYTES = 4;
+export const HEX_SELECTOR_BYTE_OFFSET_IN_CALLDATA = 0; \ No newline at end of file