@raac/rpc 1.0.1-beta.2 → 1.0.1-beta.4

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": "0xA151fE9b3F225Ed575D0775c3Db096F14Ead5A0c"
20
+ "contract": "0x0f497bE68f0F96c40d4007d9848cCD933dAB3C38"
21
21
  },
22
22
  "raacprimerateoracle": {
23
23
  "id": "raacprimerateoracle",
@@ -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
  async function getProvider() {
@@ -94,7 +94,7 @@ const execute = async () => {
94
94
  rpc.address = signer.address;
95
95
  rpc.provider = provider;
96
96
  rpc.chainId = chainId;
97
- console.log(await rpc.contracts.indexToken.getNextRandomNFT(chainId, provider));
97
+ console.log(await rpc.nfts.getTotalPropertiesCount(chainId, provider));
98
98
  };
99
99
  const updateNFTPrice = async (id, price) => {
100
100
  const provider = await getProvider();
@@ -132,7 +132,7 @@ const fulfillRequest = async () => {
132
132
  const redemptionToken = await rpc.contracts.indexToken.getNextRandomNFT(chainId, provider);
133
133
  console.log("Redemption token", redemptionToken);
134
134
  };
135
- // execute();
135
+ execute();
136
136
  // setup();
137
- fulfillRequest();
137
+ // fulfillRequest();
138
138
  // updateNFTPrice("7", "1650000");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raac/rpc",
3
- "version": "1.0.1-beta.2",
3
+ "version": "1.0.1-beta.4",
4
4
  "description": "RPC Library for RAAC ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/types/index.d.ts",