From 0bba28774cab6e79ca9dbd80e24980a1d2748ef2 Mon Sep 17 00:00:00 2001 From: Husienvora Date: Mon, 21 Oct 2024 18:58:44 +0530 Subject: [PATCH 1/4] pipeline update --- src/lib/test/keyring.test.js | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/lib/test/keyring.test.js b/src/lib/test/keyring.test.js index d783518..1f33dc9 100644 --- a/src/lib/test/keyring.test.js +++ b/src/lib/test/keyring.test.js @@ -4,45 +4,45 @@ const { before } = require("lodash"); let KeyRing = require("../keyring"); let Vault = require("../vault"); const Web3 = require("web3"); -const NETWORKS = { +let NETWORKS = { ethereum: { - URL: "https://eth-goerli.public.blastapi.io", - CHAIN_ID: 5, + URL: "https://sepolia.infura.io/v3/0611b8c478b14db0b7d29e51466ff925", + CHAIN_ID: 11155111, }, bsc: { - URL: "https://data-seed-prebsc-1-s1.binance.org:8545/", + URL: "https://bsc-testnet.infura.io/v3/0611b8c478b14db0b7d29e51466ff925", CHAIN_ID: 97, }, polygon: { - URL: "https://polygon-amoy-bor-rpc.publicnode.com", - CHAIN_ID: 80001, + URL: "https://polygon-amoy.infura.io/v3/0611b8c478b14db0b7d29e51466ff925", + CHAIN_ID: 80002, }, optimism: { - URL: "https://optimism-goerli.public.blastapi.io", - CHAIN_ID: 420, + URL: "https://optimism-sepolia.infura.io/v3/0611b8c478b14db0b7d29e51466ff925", + CHAIN_ID: 11155420, }, arbitrum: { - URL: "https://sepolia-rollup.arbitrum.io/rpc", + URL: "https://arbitrum-sepolia.infura.io/v3/0611b8c478b14db0b7d29e51466ff925", CHAIN_ID: 421614, }, mantle: { - URL: "https://rpc.mantle.xyz", - CHAIN_ID: 5001, + URL: "https://mantle-sepolia.infura.io/v3/0611b8c478b14db0b7d29e51466ff925", + CHAIN_ID: 5003, }, velas: { URL: "https://explorer.testnet.velas.com/rpc", CHAIN_ID: 111, }, avalanche: { - URL: "https://api.avax-test.network/ext/bc/C/rpc", + URL: "https://avalanche-fuji.infura.io/v3/0611b8c478b14db0b7d29e51466ff925", CHAIN_ID: 43113, }, base: { - URL: "https://base-sepolia.blockpi.network/v1/rpc/public", + URL: "https://base-sepolia.infura.io/v3/0611b8c478b14db0b7d29e51466ff925", CHAIN_ID: 84532, }, zkEVM: { - URL: "https://polygon-zkevm.drpc.org", + URL: "https://1rpc.io/polygon/zkevm", CHAIN_ID: 1442, }, bevm: { From b699ac65d968cf09598826e653df04ff62059d64 Mon Sep 17 00:00:00 2001 From: Husienvora Date: Mon, 21 Oct 2024 18:59:57 +0530 Subject: [PATCH 2/4] pipeline update --- .github/workflows/main.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1e97967..aadaa83 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,6 +17,15 @@ jobs: env: CI: true GITHUB_ACTIONS: true + OLD_MNEMONIC:"fun rough treat scan glimpse region century purpose expire video remind second" + 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 From 9e97795ee75a653b7bb08a7468dfc8bc70af4a6a Mon Sep 17 00:00:00 2001 From: Husienvora Date: Mon, 21 Oct 2024 19:19:28 +0530 Subject: [PATCH 3/4] updating other branches pipeline --- .github/workflows/other-branches.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/other-branches.yml b/.github/workflows/other-branches.yml index a99c519..ac86a3a 100644 --- a/.github/workflows/other-branches.yml +++ b/.github/workflows/other-branches.yml @@ -24,6 +24,18 @@ on: jobs: build: runs-on: ubuntu-latest + env: + CI: true + GITHUB_ACTIONS: true + OLD_MNEMONIC:"fun rough treat scan glimpse region century purpose expire video remind second" + 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: - name: Code checkout uses: actions/checkout@v2 From 1a8d7a2b45a51444a991d82943cb5f46b75a36d6 Mon Sep 17 00:00:00 2001 From: Husienvora Date: Mon, 21 Oct 2024 19:42:14 +0530 Subject: [PATCH 4/4] pipeline fix --- .github/workflows/main.yml | 16 +++---- .github/workflows/other-branches.yml | 63 ++++++++++++++-------------- 2 files changed, 39 insertions(+), 40 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index aadaa83..8379677 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,15 +17,15 @@ jobs: env: CI: true GITHUB_ACTIONS: true - OLD_MNEMONIC:"fun rough treat scan glimpse region century purpose expire video remind second" - MNEMONIC:"vintage reflect pass input polar enlist giggle judge render position also document" - PIN:"696969" - PRIVATE_KEY_EVM:"0x7a9633b8103fec11c9e855a6b6c8c072e9af311a69b92ab0ad8186b1fb57371f" + OLD_MNEMONIC: "fun rough treat scan glimpse region century purpose expire video remind second" + 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" + 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 diff --git a/.github/workflows/other-branches.yml b/.github/workflows/other-branches.yml index ac86a3a..9015310 100644 --- a/.github/workflows/other-branches.yml +++ b/.github/workflows/other-branches.yml @@ -4,7 +4,7 @@ name: Feature/Bugfix branch on: -# workflow_call: + # workflow_call: push: branches: - feature-* @@ -13,13 +13,13 @@ on: - test pull_request: branches: - - feature-* - - bugfix-* - - dev - - test + - feature-* + - bugfix-* + - dev + - test paths: - package.json - - CHANGELOG + - CHANGELOG jobs: build: @@ -27,34 +27,33 @@ jobs: env: CI: true GITHUB_ACTIONS: true - OLD_MNEMONIC:"fun rough treat scan glimpse region century purpose expire video remind second" - MNEMONIC:"vintage reflect pass input polar enlist giggle judge render position also document" - PIN:"696969" - PRIVATE_KEY_EVM:"0x7a9633b8103fec11c9e855a6b6c8c072e9af311a69b92ab0ad8186b1fb57371f" + OLD_MNEMONIC: "fun rough treat scan glimpse region century purpose expire video remind second" + 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" + EVM_ADDRESS_1: "0x6bbc122fa843f3ed30d23f8cdd9a430d1f898d07" + EVM_ADDRESS_2: "0xbae949ddb4d8ac763c12f206db842b9b2d49a464" + BITCOIN_ADDRESS_1: "bc1qugw5q5yrzw86wnw3lgldm8en0c736k4hvceuzl" + BITCOIN_ADDRESS_2: "bc1qta5f6q32cphxt5rck3kuspukac7keqvxyuk4cl" steps: - - name: Code checkout - uses: actions/checkout@v2 + - name: Code checkout + uses: actions/checkout@v2 + + - name: Setting up Node.js + uses: actions/setup-node@v2 + with: + node-version: 18.x - - name: Setting up Node.js - uses: actions/setup-node@v2 - with: - node-version: 18.x + - name: Installing dependencies + run: npm ci - - name: Installing dependencies - run: npm ci - - - name: Run tests - run: | - npm run test - npx jest --coverage | tee ./coverage.txt && exit ${PIPESTATUS[0]} + - name: Run tests + run: | + npm run test + npx jest --coverage | tee ./coverage.txt && exit ${PIPESTATUS[0]} - - name: Jest Coverage Comment - uses: MishaKav/jest-coverage-comment@main - with: - coverage-path: ./coverage.txt - + - name: Jest Coverage Comment + uses: MishaKav/jest-coverage-comment@main + with: + coverage-path: ./coverage.txt