@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 +5 -2
- package/examples/complete-flow.js +1 -1
- package/package.json +1 -1
- package/src/client.js +1 -1
- package/src/constants.js +1 -1
- package/src/index.d.ts +1 -1
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 |
|
|
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(
|
|
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(
|
package/package.json
CHANGED
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,
|
|
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
|
-
|
|
29
|
+
5042002: "0x5d43CE5269Cd46badC67B3664369862F20eC5649", //Arc
|
|
30
30
|
84532: "0xFBEa2AbCf1208E09dd90266fE94Fb76d8BfC34d9", //Base
|
|
31
31
|
11155111: "0x72B87207791996F416D2F3B0dcAcbb07F445C496", //Ethereum
|
|
32
32
|
421614: "0x6C9eDBDd028Fe610b054187A34712714E341D112", //Arbitrum
|