From edf45251518a4780013898847fef1ff5e0b13b94 Mon Sep 17 00:00:00 2001 From: steveluscher Date: Wed, 15 Nov 2023 23:19:55 +0000 Subject: [PATCH 1/2] refactor(experimental): add constants to web3.js sham --- packages/library-legacy-sham/src/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/library-legacy-sham/src/index.ts b/packages/library-legacy-sham/src/index.ts index 3fe1ff68dc51..6a5585569d0e 100644 --- a/packages/library-legacy-sham/src/index.ts +++ b/packages/library-legacy-sham/src/index.ts @@ -1 +1,4 @@ export * from './public-key'; + +export const LAMPORTS_PER_SOL = 1_000_000_000; +export const SIGNATURE_LENGTH_IN_BYTES = 64; From c2f639011bf3eb62db65819d3f851467ae2f73b4 Mon Sep 17 00:00:00 2001 From: steveluscher Date: Fri, 17 Nov 2023 16:44:13 +0000 Subject: [PATCH 2/2] FUCK --- packages/library-legacy-sham/src/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/library-legacy-sham/src/index.ts b/packages/library-legacy-sham/src/index.ts index 6a5585569d0e..8060ec795043 100644 --- a/packages/library-legacy-sham/src/index.ts +++ b/packages/library-legacy-sham/src/index.ts @@ -1,4 +1,9 @@ export * from './public-key'; export const LAMPORTS_PER_SOL = 1_000_000_000; +export const MAX_SEED_LENGTH = 32; +export const NONCE_ACCOUNT_LENGTH = 80; +export const PACKET_DATA_SIZE = 1280 - 40 - 8; +export const PUBLIC_KEY_LENGTH = 32; export const SIGNATURE_LENGTH_IN_BYTES = 64; +export const VERSION_PREFIX_MASK = 0x7f;