@raac/rpc 1.1.0-beta.80 → 1.1.0-beta.81

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.
@@ -17,7 +17,7 @@
17
17
  "raachouseprices": {
18
18
  "id": "raachouseprices",
19
19
  "name": "RAAC House Prices",
20
- "contract": "0xF122d4Dcc791c6735d937E7118087A505c81b2b3"
20
+ "contract": "0x96EBC781867cF33F0Fac64e44388CBF065c78e92"
21
21
  },
22
22
  "auctionfactory": {
23
23
  "id": "auctionfactory",
@@ -37,12 +37,12 @@
37
37
  "feecollector": {
38
38
  "id": "feecollector",
39
39
  "name": "Fee Collector",
40
- "contract": "0x297d74333c285d5F39820c268C9e9AAb788e3625"
40
+ "contract": "0xf460b2436753AEed5Df275CA33528f5C9abB579D"
41
41
  },
42
42
  "treasury": {
43
43
  "id": "treasury",
44
44
  "name": "Treasury",
45
- "contract": "0xF361850f103611D0ce869f369Fa62811B4BAa68B"
45
+ "contract": "0xDc1FCd959881533CCFBfB572881CdC6d8a2b35E7"
46
46
  },
47
47
  "repairfund": {
48
48
  "id": "repairfund",
@@ -57,17 +57,17 @@
57
57
  "rwavault": {
58
58
  "id": "rwavault",
59
59
  "name": "RWA Vault",
60
- "contract": "0x7D819769ADDbBcc7D482E7e8FcC2812De0929875"
60
+ "contract": "0xEC9e67e9b6ceD5e48b5Dd39915414e7BbDf952f2"
61
61
  },
62
62
  "complianceregistry": {
63
63
  "id": "complianceregistry",
64
64
  "name": "Compliance Registry",
65
- "contract": "0x74E2aEcC41F096Dca69368A7D10604142C44CfF0"
65
+ "contract": "0x95bc6FCfB69BDbF723De06bCa1a689ad68762CC5"
66
66
  },
67
67
  "rwaindextokencollector": {
68
68
  "id": "rwaindextokencollector",
69
69
  "name": "RWA Index Token Collector",
70
- "contract": "0xc4999Db2fd4A58d870F9c8D18fBe4177308e2481"
70
+ "contract": "0xdbEd45218e5c040Cdf696C740937997162cFb720"
71
71
  },
72
72
  "raactokencollector": {
73
73
  "id": "raactokencollector",
@@ -77,41 +77,41 @@
77
77
  "raachousepriceoracle": {
78
78
  "id": "raachousepriceoracle",
79
79
  "name": "RAAC House Price Oracle",
80
- "contract": "0x6e15A7037cB6EEA74F8a5fCD20EBaa77e331093D"
80
+ "contract": "0x8C881051D397014E6D4ea711764E6875506d88D1"
81
81
  },
82
82
  "raacprimerateoracle": {
83
83
  "id": "raacprimerateoracle",
84
84
  "name": "RAAC Prime Rate Oracle",
85
- "contract": "0x158c6c40DF3E7f9B1AdA92Ab7D4B8b437749BF6b"
85
+ "contract": "0x312F47A51F398C6504B31794dfCf604acF174c67"
86
86
  },
87
87
  "crvusdtousdoracle": {
88
88
  "id": "crvusdtousdoracle",
89
89
  "name": "CRVUSD to USD Oracle",
90
- "contract": "0x8A2E4B94ebf21A4b9CAF52958B2B8b6099CE46cA"
90
+ "contract": "0x627897baf46851500F116cec76346921C3292246"
91
91
  },
92
92
  "nftroyaltyfeecollector": {
93
93
  "id": "nftroyaltyfeecollector",
94
94
  "name": "NFT Royalty Fee Collector",
95
- "contract": "0xfEf4D5f218ABbC0478D9C5DBF57C03b885acAa2a"
95
+ "contract": "0x352b225A9f96ad9d90A1e8db4f1908943729b511"
96
96
  }
97
97
  },
98
98
  "pools": {
99
99
  "stabilitypool": {
100
100
  "id": "stabilitypool",
101
101
  "name": "Stability Pool",
102
- "contract": "0xF88967cbdEf88063b4c4d0F4F5E93b429C39689A"
102
+ "contract": "0xd7663c079445A070Ef24405CD5ef1511B9d9E060"
103
103
  },
104
104
  "lendingpool": {
105
105
  "id": "lendingpool",
106
106
  "name": "Lending Pool",
107
- "contract": "0x90d4e68C41333053248784e570C998EC915d5161"
107
+ "contract": "0xefCff23AEed94ae0f23377DFDaB78C3c868eeB33"
108
108
  }
109
109
  },
110
110
  "nfts": {
111
111
  "raacnft": {
112
112
  "id": "raacnft",
113
113
  "name": "RAAC NFT",
114
- "contract": "0xbac60A20C0B932b65E18F636C94e9f4b41F3A426"
114
+ "contract": "0xb16453caAFF3c75e9D090793dD60C46668c1de52"
115
115
  }
116
116
  },
117
117
  "assets": {
@@ -125,19 +125,19 @@
125
125
  "id": "crvusd",
126
126
  "name": "CRVUSD",
127
127
  "decimals": 18,
128
- "contract": "0xfbA5b62A1a9d7Bd2bE46ca861DBfd49702E82f19"
128
+ "contract": "0x8047a14301583CAaf9e2128D5F88F9f435659d35"
129
129
  },
130
130
  "rtoken": {
131
131
  "id": "rtoken",
132
132
  "name": "RToken",
133
133
  "decimals": 18,
134
- "contract": "0xeb957D30f3F3c3534D3Dcd0828C7747602803B7A"
134
+ "contract": "0xc96c34825aa96A77A4AD884e393960a70c5f1186"
135
135
  },
136
136
  "detoken": {
137
137
  "id": "detoken",
138
138
  "name": "DEToken",
139
139
  "decimals": 18,
140
- "contract": "0x229495b726Bdc55917DBE89674306D3F3Daa5aE5"
140
+ "contract": "0x5841dc06d2C9e0D2605392f669be71Bfe6d04cf7"
141
141
  },
142
142
  "raactoken": {
143
143
  "id": "raactoken",
@@ -155,13 +155,13 @@
155
155
  "id": "debttoken",
156
156
  "name": "Debt Token",
157
157
  "decimals": 18,
158
- "contract": "0xd4bE0b77c07C58fc5cAea5629587f54572090F88"
158
+ "contract": "0x98db917a623a92a8553Fe59b9f05B8c936aa1E1e"
159
159
  },
160
160
  "rwaindextoken": {
161
161
  "id": "rwaindextoken",
162
162
  "name": "RWA Index Token",
163
163
  "decimals": 18,
164
- "contract": "0xa96a1578dCBd8bca443142567C19d61DF1513937"
164
+ "contract": "0x1c1789629B2511821aC78618eBd23d41E7b04989"
165
165
  }
166
166
  },
167
167
  "adapters": {
@@ -169,13 +169,13 @@
169
169
  "raacnftadapter": {
170
170
  "id": "raacnftadapter",
171
171
  "name": "RAAC NFT Adapter",
172
- "contract": "0xd8Cb90b0A5b288F5f0c9a519Ae4B1B47D5E69353",
172
+ "contract": "0x608aD2608DAdDb633ceBe22d6Fcb7C9e660FfA65",
173
173
  "type": "ERC721"
174
174
  },
175
175
  "rwaindextokenadapter": {
176
176
  "id": "rwaindextokenadapter",
177
177
  "name": "RWA Index Token",
178
- "contract": "0x216433c8408A349B4b7342d60F948d89317E3366",
178
+ "contract": "0x5374287a807c5513fC31bc9AECE5aC40f0e37c71",
179
179
  "type": "ERC20"
180
180
  }
181
181
  },
@@ -183,7 +183,7 @@
183
183
  "raacnftadapter": {
184
184
  "id": "raacnftadapter",
185
185
  "name": "RAAC NFT Adapter",
186
- "contract": "0x5b10F4F746f10632e4Bb832A2e93bd5543830D7d",
186
+ "contract": "0x531F5d54Fda86f103E297ECE796c8B799B835E0c",
187
187
  "type": "ERC721"
188
188
  },
189
189
  "crvusdadapter": {
@@ -11,7 +11,7 @@ const contracts_1 = require("../utils/contracts");
11
11
  const artifacts_1 = require("../utils/artifacts");
12
12
  const _helpers_1 = require("../pools/rwaVault/_helpers");
13
13
  const ethers5_1 = require("ethers5");
14
- const chainId = 8453;
14
+ const chainId = 11155111;
15
15
  const config = chains_1.default[chainId];
16
16
  const TEST_MNEMONIC = process.env.TEST_MNEMONIC;
17
17
  const TEST_PRIVATE_KEY = process.env.TEST_PRIVATE_KEY;
@@ -140,6 +140,9 @@ async function setup() {
140
140
  // console.log(tx);
141
141
  // let tx = await StabilityPoolContract.setLiquidationVaultTokenSplit(2_50, 2_50, 90_00, 5_00)
142
142
  // await tx.wait();
143
+ console.log(await raacNFTContract.hasRole(await raacNFTContract.ADMIN_ROLE(), signer.address));
144
+ // await (await housePriceContract.setHousePrice("9", ethers.parseEther("10000000"))).wait()
145
+ return;
143
146
  await (await RWAVaultContract.registerDepositableAdapter("0x322813Fd9A801c5507c9de605d63CEA4f2CE6c44")).wait();
144
147
  // // console.log(await rpc.wallet.assets.getBalance(chainId, "rwaindextoken", signer.address, provider))
145
148
  // // set the base uri to instruxi data gateway
@@ -9,7 +9,7 @@ const chains_1 = __importDefault(require("../configs/chains"));
9
9
  const RPCLibrary_1 = __importDefault(require("../RPCLibrary"));
10
10
  const contracts_1 = require("../utils/contracts");
11
11
  const artifacts_1 = require("../utils/artifacts");
12
- const chainId = 8453;
12
+ const chainId = 11155111;
13
13
  const config = chains_1.default[chainId];
14
14
  const TEST_MNEMONIC = process.env.TEST_MNEMONIC;
15
15
  const TEST_PRIVATE_KEY = process.env.TEST_PRIVATE_KEY;
@@ -58,16 +58,16 @@ async function setupLiquidityPool() {
58
58
  "function add_liquidity(uint256[2] amounts, uint256 min_mint_amount, address receiver) external",
59
59
  ];
60
60
  const MockLiquidityPoolContract = new ethers_1.ethers.Contract(MockLiquidityPoolAddress, MockLiquidityPoolABI, signer);
61
- // mint 10 million in crvusd
61
+ // mint 200 million in crvusd
62
62
  console.log("Minting 100 million in crvusd");
63
63
  await rpc.wallet.assets.mintAsset(chainId, "crvusd", 200000000n, signer.address, signer);
64
- // deposit 5 million in the RWA Vault
64
+ // deposit 100 million in the RWA Vault
65
65
  console.log("Depositing 5 million in the RWA Vault");
66
66
  await rpc.wallet.assets.approveAsset(chainId, "crvusd", await rpc.pools.rwaVault.getAdapterAddress(chainId, "crvusdadapter")
67
67
  .address, "100000000", signer);
68
68
  const d1 = new ethers_1.ethers.AbiCoder().encode(["uint256"], [ethers_1.ethers.parseEther("100000000")]);
69
69
  await rpc.pools.rwaVault.depositToRWAVault(chainId, "crvusdadapter", d1, signer.address, "0", signer);
70
- // deposit 5 million in the Mock Liquidity Pool
70
+ // deposit 100 million in the Mock Liquidity Pool
71
71
  console.log("Depositing 5 million in the Mock Liquidity Pool");
72
72
  await rpc.wallet.assets.approveAsset(chainId, "crvusd", MockLiquidityPoolAddress, "100000000", signer);
73
73
  const indextokenBalance = (await rpc.wallet.assets.getBalance(chainId, "rwaindextoken", signer.address, provider)).balance;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raac/rpc",
3
- "version": "1.1.0-beta.80",
3
+ "version": "1.1.0-beta.81",
4
4
  "description": "RPC Library for RAAC ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/types/index.d.ts",