@atomiqlabs/chain-evm 1.1.16 → 1.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,7 +8,7 @@ export declare const GoatAssets: GoatAssetsType;
8
8
  export type GoatOptions = {
9
9
  rpcUrl: string | JsonRpcApiProvider;
10
10
  retryPolicy?: EVMRetryPolicy;
11
- chainType?: "MAINNET" | "TESTNET";
11
+ chainType?: "MAINNET" | "TESTNET" | "TESTNET4";
12
12
  swapContract?: string;
13
13
  btcRelayContract?: string;
14
14
  btcRelayDeploymentHeight?: number;
@@ -14,7 +14,8 @@ const EVMSpvVaultData_1 = require("../../evm/spv_swap/EVMSpvVaultData");
14
14
  const EVMSpvWithdrawalData_1 = require("../../evm/spv_swap/EVMSpvWithdrawalData");
15
15
  const GoatChainIds = {
16
16
  MAINNET: 2345,
17
- TESTNET: 48816
17
+ TESTNET: 48816,
18
+ TESTNET4: 48816
18
19
  };
19
20
  const GoatContractAddresses = {
20
21
  MAINNET: {
@@ -54,6 +55,25 @@ const GoatContractAddresses = {
54
55
  [base_1.ChainSwapType.CHAIN_NONCED]: "0x62a718348081F9CF9a8E3dF4B4EA6d6349991ad9"
55
56
  }
56
57
  }
58
+ },
59
+ TESTNET4: {
60
+ executionContract: "0x4f7d86C870F28ac30C8fa864Ee04264D7dD03847",
61
+ swapContract: "0x3FbbA0eb82cf1247cbf92B3D51641226310F0Ca5",
62
+ btcRelayContract: "0xEeD58871C24d24C49554aF8B65Dd86eD8ed778D3",
63
+ btcRelayDeploymentHeight: 10240368,
64
+ spvVaultContract: "0x8a80A68f8bA1732015A821b5260fEF8040a844b7",
65
+ spvVaultDeploymentHeight: 10240370,
66
+ handlerContracts: {
67
+ refund: {
68
+ timelock: "0x0Ff4792d4F792c5B3678f08c18e7cE1974880e48"
69
+ },
70
+ claim: {
71
+ [base_1.ChainSwapType.HTLC]: "0x122962B30c46Ef188Dd598a76647c2DBbE1E914e",
72
+ [base_1.ChainSwapType.CHAIN_TXID]: "0x4737C793a1f86a375BAad0D96134bEd64f246693",
73
+ [base_1.ChainSwapType.CHAIN]: "0xa2b2d8CD8D1a9200Ac0970523FdfFcbD94aE54B6",
74
+ [base_1.ChainSwapType.CHAIN_NONCED]: "0x3BfF76308e6DEaCaEfdF5a928d6a3082Ab55bf58"
75
+ }
76
+ }
57
77
  }
58
78
  };
59
79
  exports.GoatAssets = {
@@ -77,6 +97,9 @@ function initializeGoat(options, bitcoinRpc, network) {
77
97
  case base_1.BitcoinNetwork.TESTNET:
78
98
  options.chainType = "TESTNET";
79
99
  break;
100
+ case base_1.BitcoinNetwork.TESTNET4:
101
+ options.chainType = "TESTNET4";
102
+ break;
80
103
  }
81
104
  }
82
105
  const defaultContractAddresses = GoatContractAddresses[options.chainType];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomiqlabs/chain-evm",
3
- "version": "1.1.16",
3
+ "version": "1.1.17",
4
4
  "description": "EVM specific base implementation",
5
5
  "main": "./dist/index.js",
6
6
  "types:": "./dist/index.d.ts",
@@ -13,7 +13,8 @@ import {GoatChainType} from "./GoatChainType";
13
13
 
14
14
  const GoatChainIds = {
15
15
  MAINNET: 2345,
16
- TESTNET: 48816
16
+ TESTNET: 48816,
17
+ TESTNET4: 48816
17
18
  };
18
19
 
19
20
  const GoatContractAddresses = {
@@ -54,6 +55,25 @@ const GoatContractAddresses = {
54
55
  [ChainSwapType.CHAIN_NONCED]: "0x62a718348081F9CF9a8E3dF4B4EA6d6349991ad9"
55
56
  }
56
57
  }
58
+ },
59
+ TESTNET4: {
60
+ executionContract: "0x4f7d86C870F28ac30C8fa864Ee04264D7dD03847",
61
+ swapContract: "0x3FbbA0eb82cf1247cbf92B3D51641226310F0Ca5",
62
+ btcRelayContract: "0xEeD58871C24d24C49554aF8B65Dd86eD8ed778D3",
63
+ btcRelayDeploymentHeight: 10240368,
64
+ spvVaultContract: "0x8a80A68f8bA1732015A821b5260fEF8040a844b7",
65
+ spvVaultDeploymentHeight: 10240370,
66
+ handlerContracts: {
67
+ refund: {
68
+ timelock: "0x0Ff4792d4F792c5B3678f08c18e7cE1974880e48"
69
+ },
70
+ claim: {
71
+ [ChainSwapType.HTLC]: "0x122962B30c46Ef188Dd598a76647c2DBbE1E914e",
72
+ [ChainSwapType.CHAIN_TXID]: "0x4737C793a1f86a375BAad0D96134bEd64f246693",
73
+ [ChainSwapType.CHAIN]: "0xa2b2d8CD8D1a9200Ac0970523FdfFcbD94aE54B6",
74
+ [ChainSwapType.CHAIN_NONCED]: "0x3BfF76308e6DEaCaEfdF5a928d6a3082Ab55bf58"
75
+ }
76
+ }
57
77
  }
58
78
  };
59
79
 
@@ -74,7 +94,7 @@ export const GoatAssets: GoatAssetsType = {
74
94
  export type GoatOptions = {
75
95
  rpcUrl: string | JsonRpcApiProvider,
76
96
  retryPolicy?: EVMRetryPolicy,
77
- chainType?: "MAINNET" | "TESTNET",
97
+ chainType?: "MAINNET" | "TESTNET" | "TESTNET4",
78
98
 
79
99
  swapContract?: string,
80
100
  btcRelayContract?: string,
@@ -108,6 +128,9 @@ export function initializeGoat(
108
128
  case BitcoinNetwork.TESTNET:
109
129
  options.chainType = "TESTNET";
110
130
  break;
131
+ case BitcoinNetwork.TESTNET4:
132
+ options.chainType = "TESTNET4";
133
+ break;
111
134
  }
112
135
  }
113
136