Skip to content

Commit

Permalink
Merge pull request #3 from IX-Swap/base
Browse files Browse the repository at this point in the history
Base support
  • Loading branch information
thi-investax authored Sep 12, 2024
2 parents 4292227 + e7e422c commit 0cce369
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@ixswap1/v2-sdk",
"license": "MIT",
"version": "1.3.5",
"version": "1.3.7",
"description": "🛠 An SDK for building applications on top of IX Swap",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand Down
7 changes: 5 additions & 2 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,21 @@ export const FACTORY_ADDRESS: AddressMap = {
80001: '0xF8E10Dc0BEf764E0889F539b58fbDA00f7d9a2FD',
80002: '0xA9f8EB060f36ECa31a05C3920A78883f7F650312',
84532: '0x9aA5f0Fab0D7F13ff528a0d637DE343cf23A0218',
8453: '0x2eE28d1Bbc2EcB1fFDB83E8055d585E9F0fb757f',
1: '0x1111111111111111111111111111111111111111',
3: '0x1111111111111111111111111111111111111111'
}
// init code hash, ref: periphery/contracts/libraries/IxsV2Library.sol#31
export const INIT_CODE_HASH = '0x972504bfd3259d3d8e5fc9fed5ec2ea5a969144c60dc7b3c0fd7091f7f40f435'
export const NEW_INIT_CODE_HASH = '0x68fc96abe1f9bdcc7a94b4c21b85f09e490c16b2d8160956269fb24dfb3eef64'

export const INIT_CODE_HASH_BY_CHAINID: AddressMap = {
137: INIT_CODE_HASH,
42: INIT_CODE_HASH,
80001: INIT_CODE_HASH,
80002: '0x68fc96abe1f9bdcc7a94b4c21b85f09e490c16b2d8160956269fb24dfb3eef64',
84532: '0x68fc96abe1f9bdcc7a94b4c21b85f09e490c16b2d8160956269fb24dfb3eef64',
80002: NEW_INIT_CODE_HASH,
84532: NEW_INIT_CODE_HASH,
8453: NEW_INIT_CODE_HASH,
1: INIT_CODE_HASH,
3: INIT_CODE_HASH
}
Expand Down

0 comments on commit 0cce369

Please sign in to comment.