diff --git a/package.json b/package.json index 76993927..445a77db 100644 --- a/package.json +++ b/package.json @@ -59,6 +59,7 @@ "bech32": "^2.0.0", "bignumber.js": "^9.1.2", "bitwise": "^2.2.1", + "bn.js": "^5.2.1", "borc": "^3.0.0", "bs58check": "^4.0.0", "buffer": "^6.0.3", @@ -71,6 +72,7 @@ }, "devDependencies": { "@chainsafe/bls-keystore": "^3.1.0", + "@eslint/js": "^9.13.0", "@noble/bls12-381": "^1.4.0", "@solana/web3.js": "^1.95.4", "@terra-money/terra.js": "^3.1.10", @@ -79,7 +81,6 @@ "@types/node": "^22.7.8", "@types/readline-sync": "^1.4.8", "@types/seedrandom": "^3.0.8", - "@eslint/js": "^9.13.0", "@typescript-eslint/eslint-plugin": "^8.11.0", "@typescript-eslint/parser": "^8.11.0", "acorn": ">=8.13.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a85bf357..1ffd574b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -40,6 +40,9 @@ dependencies: bitwise: specifier: ^2.2.1 version: 2.2.1 + bn.js: + specifier: ^5.2.1 + version: 5.2.1 borc: specifier: ^3.0.0 version: 3.0.0 diff --git a/vite.config.ts b/vite.config.ts index 31d39adc..d8701c86 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -17,6 +17,7 @@ export default defineConfig({ '@ethereumjs/tx', '@ethersproject/abi', '@metamask/eth-sig-util', + 'bn.js', ], output: { globals: { @@ -25,6 +26,7 @@ export default defineConfig({ '@ethereumjs/tx': 'EthereumjsTx', '@ethersproject/abi': 'EthersprojectAbi', '@metamask/eth-sig-util': 'MetamaskEthSigUtil', + 'bn.js': 'BN', }, }, },