diff --git a/CHANGELOG.md b/CHANGELOG.md index c278239..85526a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -676,3 +676,7 @@ -Resolved issue for unarchival of a wallet -Adding test for bitcoin -Adding sensitive info in env github pipeline + +### 2.9.3 (2024-12-10) + +-Integrated the following chains to safle-vault opBNB, Ronin, Sei Skale - Nebula, Immutable zk-EVM diff --git a/package-lock.json b/package-lock.json index f2a9a52..34c1762 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@getsafle/safle-vault", - "version": "2.9.2", + "version": "2.9.3", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/package.json b/package.json index f969175..4d36be4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@getsafle/safle-vault", - "version": "2.9.2", + "version": "2.9.3", "description": "Safle Vault is a non-custodial, flexible and highly available crypto wallet which can be used to access dapps, send/receive crypto and store identity. Vault SDK is used to manage the vault and provide methods to generate vault, add new accounts, update the state and also enable the user to perform several vault related operations.", "main": "src/index.js", "scripts": { diff --git a/src/chains/index.js b/src/chains/index.js index 8ac2dc2..e16c336 100644 --- a/src/chains/index.js +++ b/src/chains/index.js @@ -16,6 +16,11 @@ const evmChains = { zkEVM: { symbol: "ZKEVM", txType: 2 }, bevm: { symbol: "BTC", txType: 0 }, rootstock: { symbol: "RBTC", txType: 0 }, + opbnb: { symbol: "BNB", txType: 0 }, + sei: { symbol: "SEI", txType: 0 }, + ronin: { symbol: "RON", txType: 0 }, + nebula: { symbol: "sFUEL", txType: 0 }, + immutable: { symbol: "IMX", txType: 0 }, }; const nonEvmChains = { diff --git a/src/lib/test/keyring.test.js b/src/lib/test/keyring.test.js index 5122ad2..b09fb13 100644 --- a/src/lib/test/keyring.test.js +++ b/src/lib/test/keyring.test.js @@ -57,6 +57,26 @@ let NETWORKS = { URL: "https://public-node.testnet.rsk.co", CHAIN_ID: 31, }, + opbnb: { + URL: "https://opbnb-rpc.publicnode.com", + CHAIN_ID: 204, + }, + sei: { + URL: "https://evm-rpc.sei-apis.com", + CHAIN_ID: 1329, + }, + ronin: { + URL: "https://ronin.lgns.net/rpc", + CHAIN_ID: 2020, + }, + nebula: { + URL: "https://mainnet.skalenodes.com/v1/green-giddy-denebola", + CHAIN_ID: 1482601649, + }, + immutable: { + URL: "https://rpc.immutable.com", + CHAIN_ID: 13371, + }, }; const chainConfigs = { @@ -73,6 +93,11 @@ const chainConfigs = { bevm: { symbol: "BTC", txType: 0 }, rootstock: { symbol: "RBTC", txType: 0 }, bitcoin: { symbol: "BTC", txType: 0 }, + opbnb: { symbol: "BNB", txType: 0 }, + sei: { symbol: "SEI", txType: 0 }, + ronin: { symbol: "RON", txType: 0 }, + nebula: { symbol: "sFUEL", txType: 0 }, + immutable: { symbol: "IMX", txType: 0 }, }; // Add the helper function @@ -312,6 +337,11 @@ describe("getActiveChains", () => { { chain: "zkEVM", symbol: "ZKEVM" }, { chain: "bevm", symbol: "BTC" }, { chain: "rootstock", symbol: "RBTC" }, + { chain: "opbnb", symbol: "BNB" }, + { chain: "sei", symbol: "SEI" }, + { chain: "ronin", symbol: "RON" }, + { chain: "nebula", symbol: "sFUEL" }, + { chain: "immutable", symbol: "IMX" }, ], }).toMatchObject(result); }); diff --git a/src/lib/test/vault.test.js b/src/lib/test/vault.test.js index cbe7383..a193ab1 100644 --- a/src/lib/test/vault.test.js +++ b/src/lib/test/vault.test.js @@ -16,7 +16,6 @@ let phrase = process.env.MNEMONIC; let pin = process.env.PIN; let vault = new Vault({}); - const logs = [ { action: "add-account", @@ -67,7 +66,6 @@ const logs = [ _id: "64ec3339a58abcbf66a9b34a", }, ]; - describe("getSupportedChains", () => { test("getSupportedChains", async () => { let result = await new Vault({}).getSupportedChains(); @@ -85,6 +83,11 @@ describe("getSupportedChains", () => { zkEVM: "ZKEVM", bevm: "BTC", rootstock: "RBTC", + opbnb: "BNB", + sei: "SEI", + ronin: "RON", + nebula: "sFUEL", + immutable: "IMX", }, nonEvmChains: { bitcoin: "BTC", stacks: "STX", solana: "SOL" }, }).toMatchObject(result.response);