@fairblock/stabletrust 1.0.21 → 1.0.22

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.
package/README.md CHANGED
@@ -39,7 +39,7 @@ The following contract addresses are available for confidential transfers on tes
39
39
  | Network(Testnet) | Chain ID | Contract Address |
40
40
  | :--------------- | :------- | :------------------------------------------- |
41
41
  | Stable | 2201 | `0xB96aa42b246a956B170fE426A72fB610E4976f9E` |
42
- | Arc | 1244 | `0xb20aB54e1c6AE55B0DD11FEB7FFf3fF1E9631f19` |
42
+ | Arc | 5042002 | `0xb20aB54e1c6AE55B0DD11FEB7FFf3fF1E9631f19` |
43
43
  | Base | 84532 | `0x962a8A7CD28BfFBb17C4F6Ec388782cca3ffd618` |
44
44
  | Ethereum | 11155111 | `0x2E48F3D9b8F4aCA9E6AF0630eaB2ceB7A3f5eEd1` |
45
45
  | Arbitrum | 421614 | `0x14Afd604971bee5b5fac52df2d56CaE421519Cc5` |
@@ -86,7 +86,10 @@ const stableClient = new ConfidentialTransferClient(
86
86
  );
87
87
 
88
88
  // Arc testnet
89
- const arcClient = new ConfidentialTransferClient("https://rpc.arc.xyz", 1244);
89
+ const arcClient = new ConfidentialTransferClient(
90
+ "https://rpc.arc.xyz",
91
+ 5042002,
92
+ );
90
93
 
91
94
  // Tempo (Stablecoin chain with special fee handling)
92
95
  const tempoClient = new ConfidentialTransferClient(
@@ -21,7 +21,7 @@ const CHAINS = [
21
21
  },
22
22
  {
23
23
  network: "Arc",
24
- chainId: 1244,
24
+ chainId: 5042002,
25
25
  tokenAddress: "0x3600000000000000000000000000000000000000",
26
26
  rpcUrl: "https://rpc.testnet.arc.network",
27
27
  explorerUrl: "https://testnet.arcscan.app/tx/",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fairblock/stabletrust",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "description": "SDK for confidential transfers using homomorphic encryption and zero-knowledge proofs",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
package/src/client.js CHANGED
@@ -57,7 +57,7 @@ export class ConfidentialTransferClient {
57
57
  throw new Error("chainId is required");
58
58
  }
59
59
  if (!resolvedContractAddress) {
60
- const supportedChainIds = [2201, 1244, 84532, 11155111, 421614, 42431]
60
+ const supportedChainIds = [2201, 5042002, 84532, 11155111, 421614, 42431]
61
61
  .map(String)
62
62
  .join(", ");
63
63
  throw new Error(
package/src/constants.js CHANGED
@@ -26,7 +26,7 @@ export const TEMPO_FEE_TOKEN_ADDRESS =
26
26
 
27
27
  export const STABLETRUST_CONTRACTS_BY_CHAIN_ID = Object.freeze({
28
28
  2201: "0xdf43bC80B5b22A858860947d383b6F4d6C81d8EC", //Stable
29
- 1244: "0x5d43CE5269Cd46badC67B3664369862F20eC5649", //Arc
29
+ 5042002: "0x5d43CE5269Cd46badC67B3664369862F20eC5649", //Arc
30
30
  84532: "0xFBEa2AbCf1208E09dd90266fE94Fb76d8BfC34d9", //Base
31
31
  11155111: "0x72B87207791996F416D2F3B0dcAcbb07F445C496", //Ethereum
32
32
  421614: "0x6C9eDBDd028Fe610b054187A34712714E341D112", //Arbitrum
package/src/index.d.ts CHANGED
@@ -11,7 +11,7 @@ declare module "@fairblock/stabletrust" {
11
11
  }
12
12
 
13
13
  export type StabletrustChainId =
14
- | 1244
14
+ | 5042002
15
15
  | 2201
16
16
  | 42431
17
17
  | 84532