@raac/rpc 1.1.0-beta.67 → 1.1.0-beta.69
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": "
|
|
20
|
+
"contract": "0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9"
|
|
21
21
|
},
|
|
22
22
|
"auctionfactory": {
|
|
23
23
|
"id": "auctionfactory",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"complianceregistry": {
|
|
63
63
|
"id": "complianceregistry",
|
|
64
64
|
"name": "Compliance Registry",
|
|
65
|
-
"contract": "
|
|
65
|
+
"contract": "0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512"
|
|
66
66
|
},
|
|
67
67
|
"rwaindextokencollector": {
|
|
68
68
|
"id": "rwaindextokencollector",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"raacnft": {
|
|
102
102
|
"id": "raacnft",
|
|
103
103
|
"name": "RAAC NFT",
|
|
104
|
-
"contract": "
|
|
104
|
+
"contract": "0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9"
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
107
|
"assets": {
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
"id": "complianceregistry",
|
|
158
158
|
"name": "Compliance Registry",
|
|
159
159
|
"decimals": 18,
|
|
160
|
-
"contract": "
|
|
160
|
+
"contract": "0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512"
|
|
161
161
|
},
|
|
162
162
|
"rwaindextokencollector": {
|
|
163
163
|
"id": "rwaindextokencollector",
|
|
@@ -177,13 +177,13 @@
|
|
|
177
177
|
"raacnftadapter": {
|
|
178
178
|
"id": "raacnftadapter",
|
|
179
179
|
"name": "RAAC NFT Adapter",
|
|
180
|
-
"contract": "
|
|
180
|
+
"contract": "0xa85233C63b9Ee964Add6F2cffe00Fd84eb32338f",
|
|
181
181
|
"type": "ERC721"
|
|
182
182
|
},
|
|
183
183
|
"rwaindextokenadapter": {
|
|
184
184
|
"id": "rwaindextokenadapter",
|
|
185
185
|
"name": "RWA Index Token",
|
|
186
|
-
"contract": "
|
|
186
|
+
"contract": "0x322813Fd9A801c5507c9de605d63CEA4f2CE6c44",
|
|
187
187
|
"type": "ERC20"
|
|
188
188
|
}
|
|
189
189
|
},
|
|
@@ -191,13 +191,13 @@
|
|
|
191
191
|
"raacnftadapter": {
|
|
192
192
|
"id": "raacnftadapter",
|
|
193
193
|
"name": "RAAC NFT Adapter",
|
|
194
|
-
"contract": "
|
|
194
|
+
"contract": "0x59b670e9fA9D0A427751Af201D676719a970857b",
|
|
195
195
|
"type": "ERC721"
|
|
196
196
|
},
|
|
197
197
|
"crvusdadapter": {
|
|
198
198
|
"id": "crvusdadapter",
|
|
199
199
|
"name": "CRVUSD Adapter",
|
|
200
|
-
"contract": "
|
|
200
|
+
"contract": "0xc6e7DF5E7b4f2A278906862b61205850344D4e7d",
|
|
201
201
|
"type": "ERC20"
|
|
202
202
|
}
|
|
203
203
|
}
|
package/dist/scripts/index.js
CHANGED
|
@@ -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 =
|
|
14
|
+
const chainId = 8453;
|
|
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;
|
|
@@ -66,11 +66,16 @@ async function setup() {
|
|
|
66
66
|
const TreasuryAddress = (0, contracts_1.getContractAddress)(chainId, "treasury");
|
|
67
67
|
const TreasuryABI = (0, artifacts_1.getABI)("treasury");
|
|
68
68
|
const TreasuryContract = new ethers_1.ethers.Contract(TreasuryAddress, TreasuryABI, signer);
|
|
69
|
+
const raacNFTAddress = (0, contracts_1.getContractAddress)(chainId, "raacnft");
|
|
70
|
+
const raacNFTABI = (0, artifacts_1.getABI)("raacnft");
|
|
71
|
+
const raacNFTContract = new ethers_1.ethers.Contract(raacNFTAddress, raacNFTABI, signer);
|
|
69
72
|
// const secretsReference = await encryptSecrets(chainId, {
|
|
70
73
|
// apiKey: process.env.FRED_API_KEY as string,
|
|
71
74
|
// }, "encryptedFunctionsPrimeRateSecrets.json", signerV5);
|
|
72
75
|
// console.log(secretsReference);
|
|
73
76
|
// return;
|
|
77
|
+
await (await raacNFTContract.setAllowMinting(true)).wait();
|
|
78
|
+
return;
|
|
74
79
|
await rpc.contracts.housePrices.setOracle(chainId, signer.address, signer);
|
|
75
80
|
// const encryptedURL = await encryptSecretURLs(chainId, ["https://emerald-many-grasshopper-318.mypinata.cloud/ipfs/bafkreifvuyg7rsfx2wbyeulc267mvg5nwak2ggaxnr723zbekuzycjiysa"], signerV5);
|
|
76
81
|
// console.log(encryptedURL);
|
|
@@ -129,7 +134,6 @@ async function setup() {
|
|
|
129
134
|
// );
|
|
130
135
|
// set the base uri to instruxi data gateway
|
|
131
136
|
await rpc.nfts.setBaseUri(chainId, "http://3.86.253.54:3000/v1/properties/", signer);
|
|
132
|
-
return;
|
|
133
137
|
const RWAVaultAddress = (0, contracts_1.getContractAddress)(chainId, "rwavault");
|
|
134
138
|
const RWAVaultABI = (0, artifacts_1.getABI)("rwavault");
|
|
135
139
|
const RWAVaultContract = new ethers_1.ethers.Contract(RWAVaultAddress, RWAVaultABI, signer);
|
|
@@ -143,9 +147,6 @@ async function setup() {
|
|
|
143
147
|
// }
|
|
144
148
|
// // // set the oracle address of the RAACHousePrice. TEmporarily simulating that I AM THE ORACLE
|
|
145
149
|
// await rpc.contracts.housePrices.setOracle(chainId, signer.address, signer);
|
|
146
|
-
const raacNFTAddress = (0, contracts_1.getContractAddress)(chainId, "raacnft");
|
|
147
|
-
const raacNFTABI = (0, artifacts_1.getABI)("raacnft");
|
|
148
|
-
const raacNFTContract = new ethers_1.ethers.Contract(raacNFTAddress, raacNFTABI, signer);
|
|
149
150
|
const countTokens = 100;
|
|
150
151
|
// // // // Generate 10 house prices between 100K and 2M
|
|
151
152
|
const housePrices = [];
|