@juicedollar/jusd 1.1.0 → 3.0.0

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/dist/index.js CHANGED
@@ -46,24 +46,25 @@ module.exports = __toCommonJS(exports_exports);
46
46
  var import_viem = require("viem");
47
47
  var ADDRESS = {
48
48
  4114: {
49
- // Citrea Mainnet - TODO: Add deployed contract addresses
50
- juiceDollar: import_viem.zeroAddress,
51
- equity: import_viem.zeroAddress,
52
- frontendGateway: import_viem.zeroAddress,
53
- savingsGateway: import_viem.zeroAddress,
54
- savingsVaultJUSD: import_viem.zeroAddress,
55
- mintingHubGateway: import_viem.zeroAddress,
56
- bridgeStartUSD: import_viem.zeroAddress,
57
- bridgeUSDC: import_viem.zeroAddress,
58
- bridgeUSDT: import_viem.zeroAddress,
59
- bridgeCTUSD: import_viem.zeroAddress,
60
- startUSD: import_viem.zeroAddress,
49
+ // Citrea Mainnet
50
+ juiceDollar: "0x0987D3720D38847ac6dBB9D025B9dE892a3CA35C",
51
+ equity: "0x2A36f2b204B46Fd82653cd06d00c7fF757C99ae4",
52
+ frontendGateway: "0x3090a89A1fF5DC99117BE655599e5491A0BaBB92",
53
+ savingsGateway: "0x22FE239892eBC8805DA8f05eD3bc6aF75332b60b",
54
+ savingsVaultJUSD: "0x1b70ae756b1089cc5948e4f8a2AD498DF30E897d",
55
+ mintingHubGateway: "0x1a20B160bf546774246C7920939E6e7Ac0f88b8e",
56
+ bridgeStartUSD: "0x51ff8141D731676Fb21aE1E5D5A88c04511994dD",
57
+ bridgeUSDC: "0x920DB0aDf6fEe2D69401e9f68D60319177dCa20F",
58
+ bridgeUSDT: "0x5CC0e668F8BA61E111B6168E19d17d3C65040614",
59
+ bridgeCTUSD: "0x8D11020286aF9ecf7E5D7bD79699c391b224a0bd",
60
+ startUSD: "0xD41ab73aF9c7324b9c7c6e63dE1aeC666d98bc80",
61
61
  USDC: "0xE045e6c36cF77FAA2CfB54466D71A3aEF7bbE839",
62
62
  USDT: "0x9f3096Bac87e7F03DC09b0B416eB0DF837304dc4",
63
63
  CTUSD: "0x8D82c4E3c936C7B5724A382a9c5a4E6Eb7aB6d5D",
64
- roller: import_viem.zeroAddress,
65
- positionFactoryV2: import_viem.zeroAddress,
64
+ roller: "0xC1b97398c06B9C6a49Fd9dCFAC8907700301e9Ac",
65
+ positionFactoryV2: "0x107eDf5f030d724bD0C73f88A300bEA09AE581e2",
66
66
  genesisPosition: import_viem.zeroAddress
67
+ // Not created - insufficient collateral
67
68
  },
68
69
  5115: {
69
70
  juiceDollar: "0x6a850a548fdd050e8961223ec8FfCDfacEa57E39",
package/dist/index.mjs CHANGED
@@ -2,24 +2,25 @@
2
2
  import { zeroAddress } from "viem";
3
3
  var ADDRESS = {
4
4
  4114: {
5
- // Citrea Mainnet - TODO: Add deployed contract addresses
6
- juiceDollar: zeroAddress,
7
- equity: zeroAddress,
8
- frontendGateway: zeroAddress,
9
- savingsGateway: zeroAddress,
10
- savingsVaultJUSD: zeroAddress,
11
- mintingHubGateway: zeroAddress,
12
- bridgeStartUSD: zeroAddress,
13
- bridgeUSDC: zeroAddress,
14
- bridgeUSDT: zeroAddress,
15
- bridgeCTUSD: zeroAddress,
16
- startUSD: zeroAddress,
5
+ // Citrea Mainnet
6
+ juiceDollar: "0x0987D3720D38847ac6dBB9D025B9dE892a3CA35C",
7
+ equity: "0x2A36f2b204B46Fd82653cd06d00c7fF757C99ae4",
8
+ frontendGateway: "0x3090a89A1fF5DC99117BE655599e5491A0BaBB92",
9
+ savingsGateway: "0x22FE239892eBC8805DA8f05eD3bc6aF75332b60b",
10
+ savingsVaultJUSD: "0x1b70ae756b1089cc5948e4f8a2AD498DF30E897d",
11
+ mintingHubGateway: "0x1a20B160bf546774246C7920939E6e7Ac0f88b8e",
12
+ bridgeStartUSD: "0x51ff8141D731676Fb21aE1E5D5A88c04511994dD",
13
+ bridgeUSDC: "0x920DB0aDf6fEe2D69401e9f68D60319177dCa20F",
14
+ bridgeUSDT: "0x5CC0e668F8BA61E111B6168E19d17d3C65040614",
15
+ bridgeCTUSD: "0x8D11020286aF9ecf7E5D7bD79699c391b224a0bd",
16
+ startUSD: "0xD41ab73aF9c7324b9c7c6e63dE1aeC666d98bc80",
17
17
  USDC: "0xE045e6c36cF77FAA2CfB54466D71A3aEF7bbE839",
18
18
  USDT: "0x9f3096Bac87e7F03DC09b0B416eB0DF837304dc4",
19
19
  CTUSD: "0x8D82c4E3c936C7B5724A382a9c5a4E6Eb7aB6d5D",
20
- roller: zeroAddress,
21
- positionFactoryV2: zeroAddress,
20
+ roller: "0xC1b97398c06B9C6a49Fd9dCFAC8907700301e9Ac",
21
+ positionFactoryV2: "0x107eDf5f030d724bD0C73f88A300bEA09AE581e2",
22
22
  genesisPosition: zeroAddress
23
+ // Not created - insufficient collateral
23
24
  },
24
25
  5115: {
25
26
  juiceDollar: "0x6a850a548fdd050e8961223ec8FfCDfacEa57E39",
@@ -26,24 +26,24 @@ export interface ChainAddress {
26
26
  // Citrea Testnet Chain ID: 5115
27
27
  export const ADDRESS: Record<number, ChainAddress> = {
28
28
  4114: {
29
- // Citrea Mainnet - TODO: Add deployed contract addresses
30
- juiceDollar: zeroAddress,
31
- equity: zeroAddress,
32
- frontendGateway: zeroAddress,
33
- savingsGateway: zeroAddress,
34
- savingsVaultJUSD: zeroAddress,
35
- mintingHubGateway: zeroAddress,
36
- bridgeStartUSD: zeroAddress,
37
- bridgeUSDC: zeroAddress,
38
- bridgeUSDT: zeroAddress,
39
- bridgeCTUSD: zeroAddress,
40
- startUSD: zeroAddress,
29
+ // Citrea Mainnet
30
+ juiceDollar: '0x0987D3720D38847ac6dBB9D025B9dE892a3CA35C',
31
+ equity: '0x2A36f2b204B46Fd82653cd06d00c7fF757C99ae4',
32
+ frontendGateway: '0x3090a89A1fF5DC99117BE655599e5491A0BaBB92',
33
+ savingsGateway: '0x22FE239892eBC8805DA8f05eD3bc6aF75332b60b',
34
+ savingsVaultJUSD: '0x1b70ae756b1089cc5948e4f8a2AD498DF30E897d',
35
+ mintingHubGateway: '0x1a20B160bf546774246C7920939E6e7Ac0f88b8e',
36
+ bridgeStartUSD: '0x51ff8141D731676Fb21aE1E5D5A88c04511994dD',
37
+ bridgeUSDC: '0x920DB0aDf6fEe2D69401e9f68D60319177dCa20F',
38
+ bridgeUSDT: '0x5CC0e668F8BA61E111B6168E19d17d3C65040614',
39
+ bridgeCTUSD: '0x8D11020286aF9ecf7E5D7bD79699c391b224a0bd',
40
+ startUSD: '0xD41ab73aF9c7324b9c7c6e63dE1aeC666d98bc80',
41
41
  USDC: '0xE045e6c36cF77FAA2CfB54466D71A3aEF7bbE839',
42
42
  USDT: '0x9f3096Bac87e7F03DC09b0B416eB0DF837304dc4',
43
43
  CTUSD: '0x8D82c4E3c936C7B5724A382a9c5a4E6Eb7aB6d5D',
44
- roller: zeroAddress,
45
- positionFactoryV2: zeroAddress,
46
- genesisPosition: zeroAddress,
44
+ roller: '0xC1b97398c06B9C6a49Fd9dCFAC8907700301e9Ac',
45
+ positionFactoryV2: '0x107eDf5f030d724bD0C73f88A300bEA09AE581e2',
46
+ genesisPosition: zeroAddress, // Not created - insufficient collateral
47
47
  },
48
48
  5115: {
49
49
  juiceDollar: '0x6a850a548fdd050e8961223ec8FfCDfacEa57E39',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juicedollar/jusd",
3
- "version": "1.1.0",
3
+ "version": "3.0.0",
4
4
  "description": "JuiceDollar (JUSD) - Oracle-free, Bitcoin-collateralized stablecoin on Citrea. Decentralized minting with democratic governance.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -23,6 +23,10 @@
23
23
  "wallet": "npx ts-node helper/wallet.info.ts",
24
24
  "coverage": "npx hardhat coverage",
25
25
  "deploy": "npx hardhat run scripts/deployment/deploy/deployProtocol.ts",
26
+ "node:fork:testnet": "FORK_TESTNET=true npx hardhat node",
27
+ "node:fork:mainnet": "FORK_MAINNET=true npx hardhat node",
28
+ "deploy:fork:testnet": "FORK_TESTNET=true npx hardhat run scripts/deployment/deploy/deployProtocol.ts --network hardhat",
29
+ "deploy:fork:mainnet": "FORK_MAINNET=true npx hardhat run scripts/deployment/deploy/deployProtocol.ts --network hardhat",
26
30
  "deploy:mainnet": "npx hardhat run scripts/deployment/deploy/deployProtocol.ts --network citrea",
27
31
  "deploy:testnet": "npx hardhat run scripts/deployment/deploy/deployProtocol.ts --network citreaTestnet",
28
32
  "verify": "npx hardhat run scripts/verifyContracts.ts --network citrea",
@@ -34,6 +38,8 @@
34
38
  "publish": "npm publish --access public",
35
39
  "cover": "nodejs ./solcover.js",
36
40
  "test": "npx hardhat test test/unit/*.ts",
41
+ "test:fork:testnet": "FORK_TESTNET=true npx hardhat test --network hardhat",
42
+ "test:fork:mainnet": "FORK_MAINNET=true npx hardhat test --network hardhat",
37
43
  "deployPositions:network": "export deploymode=pos && npx hardhat deploy --network",
38
44
  "positions": "npx hardhat monitor-positions --network citrea --sort created",
39
45
  "contracts": "npx hardhat get-contracts",