@verified-network/verified-sdk 0.7.0 → 0.7.1
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.
|
@@ -18,6 +18,8 @@ var FUNCTIONS;
|
|
|
18
18
|
FUNCTIONS["SETPAYOUTURL"] = "setFiatPayoutUrl";
|
|
19
19
|
FUNCTIONS["GETPAYOUTURL"] = "getFiatPayoutUrl";
|
|
20
20
|
FUNCTIONS["SETSIGNER"] = "setSigner";
|
|
21
|
+
FUNCTIONS["SETCRYPTODATAURL"] = "setCryptoDataURL";
|
|
22
|
+
FUNCTIONS["SETORACLES"] = "setOracles";
|
|
21
23
|
})(FUNCTIONS || (FUNCTIONS = {}));
|
|
22
24
|
class FactoryContract extends index_1.VerifiedContract {
|
|
23
25
|
constructor(signer) {
|
|
@@ -91,5 +93,12 @@ class FactoryContract extends index_1.VerifiedContract {
|
|
|
91
93
|
async getFiatPayoutUrl(options) {
|
|
92
94
|
return this.callContract(FUNCTIONS.GETPAYOUTURL, options);
|
|
93
95
|
}
|
|
96
|
+
async setCryptoDataURL(_url, options) {
|
|
97
|
+
await this.validateInput(index_1.DATATYPES.STRING, _url);
|
|
98
|
+
return this.callContract(FUNCTIONS.SETCRYPTODATAURL, _url, options);
|
|
99
|
+
}
|
|
100
|
+
async setOracles(_oracles, options) {
|
|
101
|
+
return this.callContract(FUNCTIONS.SETORACLES, _oracles, options);
|
|
102
|
+
}
|
|
94
103
|
}
|
|
95
104
|
exports.default = FactoryContract;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// @ts-nocheck
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
const index_1 = require("../../index");
|
|
6
|
-
const Rates_json_1 = require("
|
|
6
|
+
const Rates_json_1 = require("../../../abi/deposits/Rates.json");
|
|
7
7
|
var FUNCTIONS;
|
|
8
8
|
(function (FUNCTIONS) {
|
|
9
9
|
FUNCTIONS["SETFEETO"] = "setFeeTo";
|