diff --git a/package-lock.json b/package-lock.json index ec1a4d9..952a6e1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,7 +22,7 @@ "abstract-cache-redis": "^2.0.0", "async-lock": "^1.4.0", "axios": "^1.3.4", - "blockchain-addressbook": "^0.46.233", + "blockchain-addressbook": "^0.47.18", "decimal.js": "^10.4.3", "dotenv": "^16.0.3", "ethereum-multicall": "^2.16.1", @@ -45,7 +45,7 @@ "rxjs": "^7.8.0", "simple-git": "^3.17.0", "uuid": "^9.0.0", - "viem": "^2.20.0", + "viem": "^2.21.16", "yargs": "^17.7.1" }, "devDependencies": { @@ -2318,9 +2318,9 @@ } }, "node_modules/@scure/base": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.7.tgz", - "integrity": "sha512-PPNYBslrLNNUQ/Yad37MHYsNQtK67EhWb6WtSvNLLPo7SdVZgkUjD6Dg+5On7zNwmskf8OX7I7Nx5oN+MIWE0g==", + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.9.tgz", + "integrity": "sha512-8YKhl8GHiNI/pU2VMaofa2Tor7PJRAjwQLBBuilkJ9L5+13yVbC7JO/wS7piioAvPSwR3JKM1IJ/u4xQzbcXKg==", "funding": { "url": "https://paulmillr.com/funding/" } @@ -2339,12 +2339,23 @@ } }, "node_modules/@scure/bip39": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.3.0.tgz", - "integrity": "sha512-disdg7gHuTDZtY+ZdkmLpPCk7fxZSu3gBiEGuoC1XYxv9cGx3Z6cpTggCgW6odSOOIXCiDjuGejW+aJKCY/pIQ==", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.4.0.tgz", + "integrity": "sha512-BEEm6p8IueV/ZTfQLp/0vhw4NPnT9oWf5+28nvmeUICjP99f4vr2d+qc7AVGDDtwRep6ifR43Yed9ERVmiITzw==", "dependencies": { - "@noble/hashes": "~1.4.0", - "@scure/base": "~1.1.6" + "@noble/hashes": "~1.5.0", + "@scure/base": "~1.1.8" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@scure/bip39/node_modules/@noble/hashes": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.5.0.tgz", + "integrity": "sha512-1j6kQFb7QRru7eKN3ZDvRcP13rugwdxZqCjbiAVZfIJwgj2A65UmT4TgARXGlXgnRkORLTDTrO19ZErt7+QXgA==", + "engines": { + "node": "^14.21.3 || >=16" }, "funding": { "url": "https://paulmillr.com/funding/" @@ -3160,9 +3171,9 @@ "integrity": "sha512-s0IrSOzLlbvX7yp4WBfPITzpAU8sqQcpsmwXDiKwrG4r491vwCO/XpejasRNl0piBMe/DvP4Tz0mIS/X1DPJBQ==" }, "node_modules/blockchain-addressbook": { - "version": "0.46.233", - "resolved": "https://registry.npmjs.org/blockchain-addressbook/-/blockchain-addressbook-0.46.233.tgz", - "integrity": "sha512-goASU7Mr/GCVjI7lP3rF6tM5zU49npYQhuO7dWuMTgxWON8h7igeh5jsjbZ6aMSee4Xz475F2gpRGsv7hyOmuw==" + "version": "0.47.18", + "resolved": "https://registry.npmjs.org/blockchain-addressbook/-/blockchain-addressbook-0.47.18.tgz", + "integrity": "sha512-o9kOhQgTnXpfCdyFrQ+o3DxKfihdXBla0HhiE+x90hMNrwJkKAtUA/5UNaFjeqGpiRbZm73WYBFYogMh3QLAiw==" }, "node_modules/bn.js": { "version": "5.2.1", @@ -11619,9 +11630,9 @@ } }, "node_modules/viem": { - "version": "2.20.0", - "resolved": "https://registry.npmjs.org/viem/-/viem-2.20.0.tgz", - "integrity": "sha512-cM4vs81HnSNbfceI1MLkx4pCVzbVjl9xiNSv5SCutYjUyFFOVSPDlEyhpg2iHinxx1NM4Qne3END5eLT8rvUdg==", + "version": "2.21.16", + "resolved": "https://registry.npmjs.org/viem/-/viem-2.21.16.tgz", + "integrity": "sha512-SvhaPzTj3a+zR/5OmtJ0acjA6oGDrgPg4vtO8KboXtvbjksXEkz+oFaNjZDgxpkqbps2SLi8oPCjdpRm6WgDmw==", "funding": [ { "type": "github", @@ -11633,7 +11644,7 @@ "@noble/curves": "1.4.0", "@noble/hashes": "1.4.0", "@scure/bip32": "1.4.0", - "@scure/bip39": "1.3.0", + "@scure/bip39": "1.4.0", "abitype": "1.0.5", "isows": "1.0.4", "webauthn-p256": "0.0.5", @@ -13623,9 +13634,9 @@ "requires": {} }, "@scure/base": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.7.tgz", - "integrity": "sha512-PPNYBslrLNNUQ/Yad37MHYsNQtK67EhWb6WtSvNLLPo7SdVZgkUjD6Dg+5On7zNwmskf8OX7I7Nx5oN+MIWE0g==" + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.9.tgz", + "integrity": "sha512-8YKhl8GHiNI/pU2VMaofa2Tor7PJRAjwQLBBuilkJ9L5+13yVbC7JO/wS7piioAvPSwR3JKM1IJ/u4xQzbcXKg==" }, "@scure/bip32": { "version": "1.4.0", @@ -13638,12 +13649,19 @@ } }, "@scure/bip39": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.3.0.tgz", - "integrity": "sha512-disdg7gHuTDZtY+ZdkmLpPCk7fxZSu3gBiEGuoC1XYxv9cGx3Z6cpTggCgW6odSOOIXCiDjuGejW+aJKCY/pIQ==", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.4.0.tgz", + "integrity": "sha512-BEEm6p8IueV/ZTfQLp/0vhw4NPnT9oWf5+28nvmeUICjP99f4vr2d+qc7AVGDDtwRep6ifR43Yed9ERVmiITzw==", "requires": { - "@noble/hashes": "~1.4.0", - "@scure/base": "~1.1.6" + "@noble/hashes": "~1.5.0", + "@scure/base": "~1.1.8" + }, + "dependencies": { + "@noble/hashes": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.5.0.tgz", + "integrity": "sha512-1j6kQFb7QRru7eKN3ZDvRcP13rugwdxZqCjbiAVZfIJwgj2A65UmT4TgARXGlXgnRkORLTDTrO19ZErt7+QXgA==" + } } }, "@sigstore/protobuf-specs": { @@ -14300,9 +14318,9 @@ "integrity": "sha512-s0IrSOzLlbvX7yp4WBfPITzpAU8sqQcpsmwXDiKwrG4r491vwCO/XpejasRNl0piBMe/DvP4Tz0mIS/X1DPJBQ==" }, "blockchain-addressbook": { - "version": "0.46.233", - "resolved": "https://registry.npmjs.org/blockchain-addressbook/-/blockchain-addressbook-0.46.233.tgz", - "integrity": "sha512-goASU7Mr/GCVjI7lP3rF6tM5zU49npYQhuO7dWuMTgxWON8h7igeh5jsjbZ6aMSee4Xz475F2gpRGsv7hyOmuw==" + "version": "0.47.18", + "resolved": "https://registry.npmjs.org/blockchain-addressbook/-/blockchain-addressbook-0.47.18.tgz", + "integrity": "sha512-o9kOhQgTnXpfCdyFrQ+o3DxKfihdXBla0HhiE+x90hMNrwJkKAtUA/5UNaFjeqGpiRbZm73WYBFYogMh3QLAiw==" }, "bn.js": { "version": "5.2.1", @@ -20685,15 +20703,15 @@ } }, "viem": { - "version": "2.20.0", - "resolved": "https://registry.npmjs.org/viem/-/viem-2.20.0.tgz", - "integrity": "sha512-cM4vs81HnSNbfceI1MLkx4pCVzbVjl9xiNSv5SCutYjUyFFOVSPDlEyhpg2iHinxx1NM4Qne3END5eLT8rvUdg==", + "version": "2.21.16", + "resolved": "https://registry.npmjs.org/viem/-/viem-2.21.16.tgz", + "integrity": "sha512-SvhaPzTj3a+zR/5OmtJ0acjA6oGDrgPg4vtO8KboXtvbjksXEkz+oFaNjZDgxpkqbps2SLi8oPCjdpRm6WgDmw==", "requires": { "@adraffy/ens-normalize": "1.10.0", "@noble/curves": "1.4.0", "@noble/hashes": "1.4.0", "@scure/bip32": "1.4.0", - "@scure/bip39": "1.3.0", + "@scure/bip39": "1.4.0", "abitype": "1.0.5", "isows": "1.0.4", "webauthn-p256": "0.0.5", diff --git a/package.json b/package.json index 5547efb..4f83464 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "abstract-cache-redis": "^2.0.0", "async-lock": "^1.4.0", "axios": "^1.3.4", - "blockchain-addressbook": "^0.46.233", + "blockchain-addressbook": "^0.47.18", "decimal.js": "^10.4.3", "dotenv": "^16.0.3", "ethereum-multicall": "^2.16.1", @@ -77,7 +77,7 @@ "rxjs": "^7.8.0", "simple-git": "^3.17.0", "uuid": "^9.0.0", - "viem": "^2.20.0", + "viem": "^2.21.16", "yargs": "^17.7.1" } } diff --git a/src/utils/addressbook.ts b/src/utils/addressbook.ts index 6ff6c78..0125da1 100644 --- a/src/utils/addressbook.ts +++ b/src/utils/addressbook.ts @@ -24,10 +24,6 @@ function getAddressBookTokensConfig(chain: Chain) { return { WNATIVE: { address: "0x4200000000000000000000000000000000000006", symbol: "WSYS" }, }; - } else if (chain === "rootstock") { - return { - WNATIVE: { address: "0x542fda317318ebf1d3deaf76e0b632741a7e677d", symbol: "WRBTC" }, - }; } throw new Error(`Unknown chain ${chain}`); @@ -42,8 +38,6 @@ export function getChainNetworkId(chain: Chain): number { return 534352; } else if (chain === "rollux") { return 570; - } else if (chain === "rootstock") { - return 30; } throw new Error(`Unknown chain ${chain}`); }