@raac/rpc 1.1.0-beta.57 → 1.1.0-beta.59
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/RPCLibrary.js +18 -11
- package/dist/types/RPCLibrary.d.ts +0 -10
- package/package.json +1 -1
package/dist/RPCLibrary.js
CHANGED
|
@@ -121,8 +121,8 @@ const getWithdrawRequestInfo_2 = require("./pools/stabilityPool/getWithdrawReque
|
|
|
121
121
|
const requestWithdraw_2 = require("./pools/stabilityPool/requestWithdraw");
|
|
122
122
|
const artifacts_1 = require("./utils/artifacts");
|
|
123
123
|
const errorDecoder_1 = require("./utils/errorDecoder");
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
// import { request as requestPrimeRate } from "./oracles/prime-rate/request";
|
|
125
|
+
// import { request as requestHousePrices } from "./oracles/houses/request";
|
|
126
126
|
class RPCLibrary {
|
|
127
127
|
signer;
|
|
128
128
|
isConnected;
|
|
@@ -133,7 +133,14 @@ class RPCLibrary {
|
|
|
133
133
|
assets;
|
|
134
134
|
// valid
|
|
135
135
|
wallet;
|
|
136
|
-
oracles
|
|
136
|
+
// oracles: {
|
|
137
|
+
// primeRate: {
|
|
138
|
+
// request: typeof requestPrimeRate;
|
|
139
|
+
// };
|
|
140
|
+
// housePrices: {
|
|
141
|
+
// request: typeof requestHousePrices;
|
|
142
|
+
// };
|
|
143
|
+
// };
|
|
137
144
|
nfts;
|
|
138
145
|
contracts;
|
|
139
146
|
pools;
|
|
@@ -294,14 +301,14 @@ class RPCLibrary {
|
|
|
294
301
|
decodeErrorMessage: errorDecoder_1.decodeErrorMessage,
|
|
295
302
|
attachDecodedErrorMessage: errorDecoder_1.attachDecodedErrorMessage,
|
|
296
303
|
};
|
|
297
|
-
this.oracles = {
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
};
|
|
304
|
+
// this.oracles = {
|
|
305
|
+
// primeRate: {
|
|
306
|
+
// request: requestPrimeRate,
|
|
307
|
+
// },
|
|
308
|
+
// housePrices: {
|
|
309
|
+
// request: requestHousePrices,
|
|
310
|
+
// },
|
|
311
|
+
// };
|
|
305
312
|
}
|
|
306
313
|
async getWallet(privateKey, provider) {
|
|
307
314
|
// @ts-ignore
|
|
@@ -96,8 +96,6 @@ import { getWithdrawRequestInfo as getStabilityPoolWithdrawRequestInfo } from ".
|
|
|
96
96
|
import { requestWithdraw as requestStabilityPoolWithdraw } from "./pools/stabilityPool/requestWithdraw";
|
|
97
97
|
import { getABI } from "./utils/artifacts";
|
|
98
98
|
import { decodeErrorName, getErrorInfo, attachDecodedError, decodeErrorMessage, attachDecodedErrorMessage } from "./utils/errorDecoder";
|
|
99
|
-
import { request as requestPrimeRate } from "./oracles/prime-rate/request";
|
|
100
|
-
import { request as requestHousePrices } from "./oracles/houses/request";
|
|
101
99
|
declare class RPCLibrary {
|
|
102
100
|
signer: Signer | null;
|
|
103
101
|
isConnected: boolean;
|
|
@@ -122,14 +120,6 @@ declare class RPCLibrary {
|
|
|
122
120
|
};
|
|
123
121
|
rpcs: {};
|
|
124
122
|
};
|
|
125
|
-
oracles: {
|
|
126
|
-
primeRate: {
|
|
127
|
-
request: typeof requestPrimeRate;
|
|
128
|
-
};
|
|
129
|
-
housePrices: {
|
|
130
|
-
request: typeof requestHousePrices;
|
|
131
|
-
};
|
|
132
|
-
};
|
|
133
123
|
nfts: {
|
|
134
124
|
getBaseUri: typeof getBaseUri;
|
|
135
125
|
mint: typeof mintNFT;
|