@fairblock/stabletrust 2.0.15 → 2.0.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.
- package/README.md +10 -0
- package/package.json +2 -2
- package/src/backend.js +2 -0
- package/src/constants.js +2 -0
- package/src/ibe.js +1 -1
- package/src/index.d.ts +4 -1
package/README.md
CHANGED
|
@@ -70,6 +70,16 @@ The following contract addresses are available for confidential transfers on tes
|
|
|
70
70
|
| Arbitrum | 421614 | `0x147C6D8cA1a4784Ed76d98b0E3CcA41C38a49A5f` |
|
|
71
71
|
| Tempo | 42431 | `0xE559fB936C69c46E216bf61B07C16bF1a6d444aa` |
|
|
72
72
|
|
|
73
|
+
## Available Confidential Contract Addresses (Mainnet)
|
|
74
|
+
|
|
75
|
+
The following contract addresses are **live mainnet** deployments:
|
|
76
|
+
|
|
77
|
+
| Network(Mainnet) | Chain ID | Contract Address |
|
|
78
|
+
| :--------------- | :------- | :------------------------------------------- |
|
|
79
|
+
| Arbitrum One | 42161 | `0xCAA6384D5Ac8b9111D482dd676BB890f2b6e9513` |
|
|
80
|
+
| Base | 8453 | `0xF90a80eef61e934CF20E5B4fa48FBe9F5fB58aED` |
|
|
81
|
+
| Ethereum | 1 | `0xa9661635cc97756190973Ef281d4529693EcAcD0` |
|
|
82
|
+
|
|
73
83
|
---
|
|
74
84
|
|
|
75
85
|
## ConfidentialTransferClient
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fairblock/stabletrust",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.17",
|
|
4
4
|
"description": "SDK for confidential transfers using homomorphic encryption and zero-knowledge proofs",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "src/withdrawal-fees.d.ts",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@noble/bls12-381": "^1.4.0",
|
|
48
48
|
"@noble/hashes": "^1.3.2",
|
|
49
49
|
"@stablelib/chacha20poly1305": "^1.0.1",
|
|
50
|
-
"axios": "^1.
|
|
50
|
+
"axios": "^1.20.0",
|
|
51
51
|
"dotenv": "^17.2.3",
|
|
52
52
|
"ethers": "^6.17.0"
|
|
53
53
|
},
|
package/src/backend.js
CHANGED
package/src/constants.js
CHANGED
|
@@ -80,6 +80,8 @@ export const STABLETRUST_CONTRACTS_BY_CHAIN_ID = Object.freeze({
|
|
|
80
80
|
421614: "0x147C6D8cA1a4784Ed76d98b0E3CcA41C38a49A5f", //Arbitrum Sepolia
|
|
81
81
|
42431: "0xE559fB936C69c46E216bf61B07C16bF1a6d444aa", //Tempo
|
|
82
82
|
42161: "0xCAA6384D5Ac8b9111D482dd676BB890f2b6e9513", //Arbitrum One (mainnet)
|
|
83
|
+
8453: "0xF90a80eef61e934CF20E5B4fa48FBe9F5fB58aED", //Base (mainnet)
|
|
84
|
+
1: "0xa9661635cc97756190973Ef281d4529693EcAcD0", //Ethereum (mainnet)
|
|
83
85
|
});
|
|
84
86
|
|
|
85
87
|
export function getStabletrustContractAddress(chainId) {
|
package/src/ibe.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { timelockEncrypt } from "./vendor/ts-ibe/index.js";
|
|
2
2
|
|
|
3
3
|
const IBE_PUBKEY_URL =
|
|
4
|
-
"https://
|
|
4
|
+
"https://api-mainnet.fairblock.network/fairyring/keyshare/pubkey";
|
|
5
5
|
|
|
6
6
|
// Bound the IBE public-key fetch. Without this, a slow or hung endpoint (a
|
|
7
7
|
// socket that accepts the connection but never responds) would block the fetch
|