Skip to content

Commit

Permalink
Merge pull request #20 from helix-bridge/xiaoch05-add-zircuit
Browse files Browse the repository at this point in the history
add zircuit network
  • Loading branch information
xiaoch05 authored Aug 8, 2024
2 parents 4cbfd98 + 5724c9e commit 3de8941
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 12 deletions.
5 changes: 5 additions & 0 deletions conf/mainnets/arbitrum.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ couples:
protocol: lnv3
fee: '10000000000000'
messager: layerzero
- chain: zircuit
symbol: ETH
protocol: lnv3
fee: '10000000000000'
messager: layerzero

## ring
- chain: ethereum
Expand Down
28 changes: 28 additions & 0 deletions conf/mainnets/zircuit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
id: '48900'
lzid: '303'
code: zircuit
name: Zircuit
rpcs:
- https://zircuit1-mainnet.p2pify.com
protocol:
lnv2-default: null
lnv2-opposite: null
lnv3: '0xbA5D580B18b6436411562981e02c8A9aA1776D10'
messagers:
- name: layerzero
address: '0x61B6B8c7C00aA7F060a2BEDeE6b11927CC9c3eF1'
indexers:
- type: thegraph
endpoint: https://thegraph-g1.darwinia.network/helix/subgraphs/name/lnv3/zircuit
tokens:
- symbol: ETH
address: '0x0000000000000000000000000000000000000000'
decimals: 18
type: native
couples:
## ETH
- chain: arbitrum
symbol: ETH
protocol: lnv3
fee: '10000000000000'
messager: layerzero
4 changes: 2 additions & 2 deletions conf/testnets/arbitrum-sepolia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ couples:
fee: '100000000000000000'
messager: layerzero
category: usdc
- chain: zircuit
- chain: zircuit-sepolia
symbol: USDC
protocol: lnv3
fee: '1000000000000000'
Expand Down Expand Up @@ -154,7 +154,7 @@ couples:
fee: '100000000000000000'
messager: layerzero
category: usdt
- chain: zircuit
- chain: zircuit-sepolia
symbol: USDT
protocol: lnv3
fee: '1000000000000000'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
id: "48899"
code: zircuit
name: zircuit
code: zircuit-sepolia
name: Zircuit sepolia
rpcs:
- https://zircuit1.p2pify.com
- https://zircuit1-testnet.p2pify.com/
protocol:
lnv2-default: null
lnv2-opposite: null
Expand Down
2 changes: 1 addition & 1 deletion template/ts/files/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@helixbridge/helixconf",
"version": "1.1.10",
"version": "1.1.11",
"description": "Helix conf",
"main": "dist/src/index.js",
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion template/ts/files/tests/online.chains.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ describe.each(chains)('helix chain contract verify -> $_data.code', (chain) => {
const owner = await oc.proxyAdminOwner(oci);
expect(owner).toBeTruthy();
expect(chain.additional.dao.toLowerCase()).toBe(owner!.toLowerCase());
}, 60000);
}, 120000);

});
6 changes: 3 additions & 3 deletions template/ts/files/tests/online.couples.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe.each(couples)
const be = oc.protocol(oci, couple.protocol);
const dao = await be.dao();
expect(chain.additional.dao!.toLowerCase()).toBe(dao.toLowerCase());
}, 60000);
}, 120000);

test(
`test bridge messager service > [${chain.code}->${couple.chain.code}]: ${couple.symbol.from}->${couple.symbol.to} (${couple.protocol.name})`,
Expand All @@ -41,7 +41,7 @@ describe.each(couples)

const isSourceAppConnectedTarget = await bridge.isSourceAppConnectedTarget();
expect(true).toBe(isSourceAppConnectedTarget);
}, 60000);
}, 120000);

test(
`test lnv3 token registerd > [${chain.code}->${couple.chain.code}]: ${couple.symbol.from}->${couple.symbol.to} (${couple.protocol.name})`,
Expand All @@ -66,7 +66,7 @@ describe.each(couples)
expect(couple.fee.toString()).toBe(tokenRegistered!.protocolFee.toString());
expect(tokenRegistered!.buildTokenKey).toBe(tokenRegistered!.indexToTokenKey);
},
60000
120000
)

});
2 changes: 1 addition & 1 deletion template/ts/files/tests/online.messagers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ describe.each(messagers)('helix chain messagers verify -> [$_chain]:$name', (mes
const messager = await oc.messager(oci, message);
const dao = await messager.dao();
expect(chain.additional.dao.toLowerCase()).toBe(dao.toLowerCase());
}, 60000);
}, 120000);
});
2 changes: 1 addition & 1 deletion template/ts/files/tests/online.tokens.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ describe.each(tokens)('helix chain tokens verify -> [$_chain]:$symbol', (token)
//const contractSymbol = await erc20.symbol();
//expect(contractSymbol).toBe(token.symbol);
//}
}, 60000);
}, 120000);
});

0 comments on commit 3de8941

Please sign in to comment.