diff options
author | Greg Hysen <greg.hysen@gmail.com> | 2018-11-21 02:08:17 +0800 |
---|---|---|
committer | Greg Hysen <greg.hysen@gmail.com> | 2018-11-29 08:38:11 +0800 |
commit | 0f7abcd59bcbad5a74c7984b199158f5c9f03934 (patch) | |
tree | 2588e3a91a24cf2a4588d8d7e64f23d79c6a0fe4 /packages/utils/src/abi_encoder/constants.ts | |
parent | 2164b34bf9ca6f38fff93a527ee162b0624b818e (diff) | |
download | dexon-sol-tools-0f7abcd59bcbad5a74c7984b199158f5c9f03934.tar dexon-sol-tools-0f7abcd59bcbad5a74c7984b199158f5c9f03934.tar.gz dexon-sol-tools-0f7abcd59bcbad5a74c7984b199158f5c9f03934.tar.bz2 dexon-sol-tools-0f7abcd59bcbad5a74c7984b199158f5c9f03934.tar.lz dexon-sol-tools-0f7abcd59bcbad5a74c7984b199158f5c9f03934.tar.xz dexon-sol-tools-0f7abcd59bcbad5a74c7984b199158f5c9f03934.tar.zst dexon-sol-tools-0f7abcd59bcbad5a74c7984b199158f5c9f03934.zip |
Moved global constants to separate file
Diffstat (limited to 'packages/utils/src/abi_encoder/constants.ts')
-rw-r--r-- | packages/utils/src/abi_encoder/constants.ts | 6 |
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 |