Skip to content

Commit

Permalink
adding env
Browse files Browse the repository at this point in the history
  • Loading branch information
Husienvora committed Oct 21, 2024
1 parent 9cbf124 commit 1d3ea23
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ jobs:
env:
CI: true
GITHUB_ACTIONS: true
MNEMONIC:"vintage reflect pass input polar enlist giggle judge render position also document"
PIN:"696969"
PRIVATE_KEY_EVM:"0x7a9633b8103fec11c9e855a6b6c8c072e9af311a69b92ab0ad8186b1fb57371f"
PRIVATE_KEY_BTC: "KzQfcdjDRUwpVmKKev6k2aAeJFJ359Ht9Umxdg77MTzf2E3bzGsC"
EVM_ADDRESS_1:'0x6bbc122fa843f3ed30d23f8cdd9a430d1f898d07'
EVM_ADDRESS_2:"0xbae949ddb4d8ac763c12f206db842b9b2d49a464"
BITCOIN_ADDRESS_1:"bc1qugw5q5yrzw86wnw3lgldm8en0c736k4hvceuzl"
BITCOIN_ADDRESS_2:"bc1qta5f6q32cphxt5rck3kuspukac7keqvxyuk4cl"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -674,3 +674,4 @@

-Integrated vault-evm-controller
-Resolved issue for unarchival of a wallet
-Adding test for bitcoin
20 changes: 13 additions & 7 deletions src/lib/test/keyring.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,10 @@ const { before } = require("lodash");
let KeyRing = require("../keyring");
let Vault = require("../vault");
require("dotenv").config();
const helper = require("../../utils/helper");
const sigUtil = require("eth-sig-util");
const Web3 = require("web3");
const NETWORKS = {
bitcoin: {
URL: "https://bitcoin-mainnet.gateway.tatum.io",
CHAIN_ID: 999999,
},
let NETWORKS = {
ethereum: {
URL: "https://sepolia.infura.io/v3/0611b8c478b14db0b7d29e51466ff925",
CHAIN_ID: 11155111,
Expand Down Expand Up @@ -49,7 +46,7 @@ const NETWORKS = {
CHAIN_ID: 84532,
},
zkEVM: {
URL: "https://polygon-zkevm.drpc.org",
URL: "https://1rpc.io/polygon/zkevm",
CHAIN_ID: 1442,
},
bevm: {
Expand All @@ -61,7 +58,16 @@ const NETWORKS = {
CHAIN_ID: 31,
},
};

if (!helper.isTestEnvironment()) {
NETWORKS = {
bitcoin: {
URL: "https://bitcoin-mainnet.gateway.tatum.io",
CHAIN_ID: 999999,
},
...NETWORKS,
};
}
console.log(NETWORKS);
const chainConfigs = {
ethereum: { symbol: "ETH", txType: 2 },
bsc: { symbol: "BSC", txType: 0 },
Expand Down

0 comments on commit 1d3ea23

Please sign in to comment.