From df2ac8ad8a9f3a71ede339358c6086ddad0103c8 Mon Sep 17 00:00:00 2001 From: MakMuftic Date: Tue, 22 Apr 2025 10:49:17 +0200 Subject: [PATCH 1/4] add sprinter shared config and publish flow --- .github/workflows/publish-sprinter.yml | 24 +++++ sprinter/shared-config-sprinter.json | 135 +++++++++++++++++++++++++ 2 files changed, 159 insertions(+) create mode 100644 .github/workflows/publish-sprinter.yml create mode 100644 sprinter/shared-config-sprinter.json diff --git a/.github/workflows/publish-sprinter.yml b/.github/workflows/publish-sprinter.yml new file mode 100644 index 0000000..7839895 --- /dev/null +++ b/.github/workflows/publish-sprinter.yml @@ -0,0 +1,24 @@ +name: Publish Sprinter MPC set prod configurations + +on: + push: + branches: + - main + +permissions: read-all + +jobs: + publish_testnet: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Upload testnet assets + uses: shallwefootball/s3-upload-action@master + with: + aws_key_id: ${{ secrets.STAGE_AWS_KEY_ID }} + aws_secret_access_key: ${{ secrets.STAGE_AWS_SECRET_ACCESS_KEY }} + aws_bucket: chainbridge-assets-stage + source_dir: './sprinter' + destination_dir: '.' + diff --git a/sprinter/shared-config-sprinter.json b/sprinter/shared-config-sprinter.json new file mode 100644 index 0000000..f0ec972 --- /dev/null +++ b/sprinter/shared-config-sprinter.json @@ -0,0 +1,135 @@ +{ + "domains": [ + { + "id": 1, + "chainId": 1, + "caipId": "eip155:1", + "name": "ethereum", + "type": "evm", + "acrossPool": "0x0190a2328e072Fc5a7fA00F6C9ae2a16c7F4E32a", + "mayanSwift": "0x0", + "tokens": { + "WETH": { + "address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", + "decimals": "18" + }, + "USDC": { + "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", + "decimals": "6" + }, + "WBTC": { + "address": "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599", + "decimals": "8" + }, + "DAI": { + "address": "0x6B175474E89094C44Da98b954EedeAC495271d0F", + "decimals": "18" + } + }, + "confirmationsByValue": { + "1000": "5", + "10000": "10", + "1000000": "15" + } + }, + { + "id": 5, + "chainId": 8453, + "caipId": "eip155:8453", + "name": "base", + "type": "evm", + "acrossPool": "0x09aea4b2242abC8bb4BB78D537A67a245A7bEC64", + "mayanSwift": "0x0", + "tokens": { + "WETH": { + "address": "0x4200000000000000000000000000000000000006", + "decimals": "18" + }, + "USDC": { + "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", + "decimals": "6" + }, + "WBTC": { + "address": "0x0555E30da8f98308EdB960aa94C0Db47230d2B9c", + "decimals": "8" + }, + "DAI": { + "address": "0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb", + "decimals": "18" + } + }, + "confirmationsByValue": { + "1000": "1", + "10000": "2", + "1000000": "10", + "10000000": "15" + } + }, + { + "id": 9, + "chainId": 42161, + "caipId": "eip155:42161", + "name": "arbitrum", + "type": "evm", + "acrossPool": "0xe35e9842fceaca96570b734083f4a58e8f7c5f2a", + "mayanSwift": "0x0", + "tokens": { + "WETH": { + "address": "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1", + "decimals": "18" + }, + "USDC": { + "address": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831", + "decimals": "6" + }, + "WBTC": { + "address": "0x2f2a2543B76A4166549F7aaB2e75Bef0aefC5B0f", + "decimals": "8" + }, + "DAI": { + "address": "0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1", + "decimals": "18" + } + }, + "confirmationsByValue": { + "1000": "1", + "10000": "2", + "1000000": "10", + "10000000": "15" + } + }, + { + "id": 10, + "chainId": 10, + "caipId": "eip155:10", + "name": "optimism", + "type": "evm", + "acrossPool": "0x6f26Bf09B1C792e3228e5467807a900A503c0281", + "mayanSwift": "0x0", + "tokens": { + "WETH": { + "address": "0x4200000000000000000000000000000000000006", + "decimals": "18" + }, + "USDC": { + "address": "0x0b2c639c533813f4aa9d7837caf62653d097ff85", + "decimals": "6" + }, + "WBTC": { + "address": "0x68f180fcCe6836688e9084f035309E29Bf0A2095", + "decimals": "8" + }, + "DAI": { + "address": "0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1", + "decimals": "18" + } + }, + "confirmationsByValue": { + "1000": "1", + "10000": "2", + "1000000": "10", + "10000000": "15" + } + } + ] +} \ No newline at end of file From 194b842d7291c5b7d8202b29c9ca38c6bfc84bd6 Mon Sep 17 00:00:00 2001 From: MakMuftic Date: Tue, 22 Apr 2025 12:45:23 +0200 Subject: [PATCH 2/4] update confirmation per value and fix comments --- sprinter/shared-config-sprinter.json | 31 ++++++---------------------- 1 file changed, 6 insertions(+), 25 deletions(-) diff --git a/sprinter/shared-config-sprinter.json b/sprinter/shared-config-sprinter.json index f0ec972..266d13b 100644 --- a/sprinter/shared-config-sprinter.json +++ b/sprinter/shared-config-sprinter.json @@ -2,12 +2,10 @@ "domains": [ { "id": 1, - "chainId": 1, "caipId": "eip155:1", "name": "ethereum", "type": "evm", "acrossPool": "0x0190a2328e072Fc5a7fA00F6C9ae2a16c7F4E32a", - "mayanSwift": "0x0", "tokens": { "WETH": { "address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", @@ -27,19 +25,15 @@ } }, "confirmationsByValue": { - "1000": "5", - "10000": "10", - "1000000": "15" + "1000": "2" } }, { - "id": 5, - "chainId": 8453, + "id": 8453, "caipId": "eip155:8453", "name": "base", "type": "evm", "acrossPool": "0x09aea4b2242abC8bb4BB78D537A67a245A7bEC64", - "mayanSwift": "0x0", "tokens": { "WETH": { "address": "0x4200000000000000000000000000000000000006", @@ -59,20 +53,15 @@ } }, "confirmationsByValue": { - "1000": "1", - "10000": "2", - "1000000": "10", - "10000000": "15" + "1000": "1" } }, { - "id": 9, - "chainId": 42161, + "id": 42161, "caipId": "eip155:42161", "name": "arbitrum", "type": "evm", "acrossPool": "0xe35e9842fceaca96570b734083f4a58e8f7c5f2a", - "mayanSwift": "0x0", "tokens": { "WETH": { "address": "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1", @@ -92,20 +81,15 @@ } }, "confirmationsByValue": { - "1000": "1", - "10000": "2", - "1000000": "10", - "10000000": "15" + "1000": "2" } }, { "id": 10, - "chainId": 10, "caipId": "eip155:10", "name": "optimism", "type": "evm", "acrossPool": "0x6f26Bf09B1C792e3228e5467807a900A503c0281", - "mayanSwift": "0x0", "tokens": { "WETH": { "address": "0x4200000000000000000000000000000000000006", @@ -125,10 +109,7 @@ } }, "confirmationsByValue": { - "1000": "1", - "10000": "2", - "1000000": "10", - "10000000": "15" + "1000": "1" } } ] From 06932bf869fa911121019a504c68e24793fe65d6 Mon Sep 17 00:00:00 2001 From: MakMuftic Date: Tue, 22 Apr 2025 12:47:11 +0200 Subject: [PATCH 3/4] add hub pool --- sprinter/shared-config-sprinter.json | 1 + 1 file changed, 1 insertion(+) diff --git a/sprinter/shared-config-sprinter.json b/sprinter/shared-config-sprinter.json index 266d13b..ad42dc5 100644 --- a/sprinter/shared-config-sprinter.json +++ b/sprinter/shared-config-sprinter.json @@ -6,6 +6,7 @@ "name": "ethereum", "type": "evm", "acrossPool": "0x0190a2328e072Fc5a7fA00F6C9ae2a16c7F4E32a", + "hubPool": "0xc186fA914353c44b2E33eBE05f21846F1048bEda", "tokens": { "WETH": { "address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", From 572795bc629d607a3b3cdf6f8e038c57f0613323 Mon Sep 17 00:00:00 2001 From: MakMuftic Date: Tue, 22 Apr 2025 14:48:25 +0200 Subject: [PATCH 4/4] update confirmations on eth to 5 --- sprinter/shared-config-sprinter.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sprinter/shared-config-sprinter.json b/sprinter/shared-config-sprinter.json index ad42dc5..fcbcebf 100644 --- a/sprinter/shared-config-sprinter.json +++ b/sprinter/shared-config-sprinter.json @@ -26,7 +26,7 @@ } }, "confirmationsByValue": { - "1000": "2" + "1000": "5" } }, {