@raac/rpc 1.1.0-beta.68 → 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.
|
@@ -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
|
},
|
package/dist/scripts/index.js
CHANGED
|
@@ -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);
|
|
@@ -142,9 +147,6 @@ async function setup() {
|
|
|
142
147
|
// }
|
|
143
148
|
// // // set the oracle address of the RAACHousePrice. TEmporarily simulating that I AM THE ORACLE
|
|
144
149
|
// await rpc.contracts.housePrices.setOracle(chainId, signer.address, signer);
|
|
145
|
-
const raacNFTAddress = (0, contracts_1.getContractAddress)(chainId, "raacnft");
|
|
146
|
-
const raacNFTABI = (0, artifacts_1.getABI)("raacnft");
|
|
147
|
-
const raacNFTContract = new ethers_1.ethers.Contract(raacNFTAddress, raacNFTABI, signer);
|
|
148
150
|
const countTokens = 100;
|
|
149
151
|
// // // // Generate 10 house prices between 100K and 2M
|
|
150
152
|
const housePrices = [];
|