@requestnetwork/smart-contracts 0.32.1-next.1987 → 0.32.1-next.1988
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/README.md +7 -0
- package/dist/deploy/deploy-zk-batch-contracts.js +1 -1
- package/dist/deploy/deploy-zk-batch-contracts.js.map +1 -1
- package/dist/deploy/utils-zk.js +1 -1
- package/dist/deploy/utils-zk.js.map +1 -1
- package/dist/hardhat.config.d.ts.map +1 -1
- package/dist/hardhat.config.js +9 -17
- package/dist/hardhat.config.js.map +1 -1
- package/dist/scripts/deploy-storage.js +1 -1
- package/dist/scripts/deploy-storage.js.map +1 -1
- package/dist/scripts/test-deploy-all.js +3 -3
- package/dist/scripts/test-deploy-all.js.map +1 -1
- package/dist/scripts-create2/constructor-args.js +2 -1
- package/dist/scripts-create2/constructor-args.js.map +1 -1
- package/dist/scripts-create2/contract-setup/adminTasks.d.ts +44 -10
- package/dist/scripts-create2/contract-setup/adminTasks.d.ts.map +1 -1
- package/dist/scripts-create2/contract-setup/adminTasks.js +135 -34
- package/dist/scripts-create2/contract-setup/adminTasks.js.map +1 -1
- package/dist/scripts-create2/contract-setup/execute-contract-method.d.ts +11 -0
- package/dist/scripts-create2/contract-setup/execute-contract-method.d.ts.map +1 -0
- package/dist/scripts-create2/contract-setup/execute-contract-method.js +65 -0
- package/dist/scripts-create2/contract-setup/execute-contract-method.js.map +1 -0
- package/dist/scripts-create2/contract-setup/setupBatchConversionPayments.d.ts +3 -1
- package/dist/scripts-create2/contract-setup/setupBatchConversionPayments.d.ts.map +1 -1
- package/dist/scripts-create2/contract-setup/setupBatchConversionPayments.js +15 -9
- package/dist/scripts-create2/contract-setup/setupBatchConversionPayments.js.map +1 -1
- package/dist/scripts-create2/contract-setup/setupChainlinkConversionPath.d.ts +3 -1
- package/dist/scripts-create2/contract-setup/setupChainlinkConversionPath.d.ts.map +1 -1
- package/dist/scripts-create2/contract-setup/setupChainlinkConversionPath.js +3 -2
- package/dist/scripts-create2/contract-setup/setupChainlinkConversionPath.js.map +1 -1
- package/dist/scripts-create2/contract-setup/setupERC20SwapToConversion.d.ts +3 -1
- package/dist/scripts-create2/contract-setup/setupERC20SwapToConversion.d.ts.map +1 -1
- package/dist/scripts-create2/contract-setup/setupERC20SwapToConversion.js +5 -4
- package/dist/scripts-create2/contract-setup/setupERC20SwapToConversion.js.map +1 -1
- package/dist/scripts-create2/contract-setup/setupERC20SwapToPay.d.ts +3 -1
- package/dist/scripts-create2/contract-setup/setupERC20SwapToPay.d.ts.map +1 -1
- package/dist/scripts-create2/contract-setup/setupERC20SwapToPay.js +4 -3
- package/dist/scripts-create2/contract-setup/setupERC20SwapToPay.js.map +1 -1
- package/dist/scripts-create2/contract-setup/setupETHConversionProxy.d.ts +3 -1
- package/dist/scripts-create2/contract-setup/setupETHConversionProxy.d.ts.map +1 -1
- package/dist/scripts-create2/contract-setup/setupETHConversionProxy.js +5 -4
- package/dist/scripts-create2/contract-setup/setupETHConversionProxy.js.map +1 -1
- package/dist/scripts-create2/contract-setup/setupErc20ConversionProxy.d.ts +3 -1
- package/dist/scripts-create2/contract-setup/setupErc20ConversionProxy.d.ts.map +1 -1
- package/dist/scripts-create2/contract-setup/setupErc20ConversionProxy.js +4 -3
- package/dist/scripts-create2/contract-setup/setupErc20ConversionProxy.js.map +1 -1
- package/dist/scripts-create2/contract-setup/setups.d.ts +3 -1
- package/dist/scripts-create2/contract-setup/setups.d.ts.map +1 -1
- package/dist/scripts-create2/contract-setup/setups.js +8 -7
- package/dist/scripts-create2/contract-setup/setups.js.map +1 -1
- package/dist/scripts-create2/deploy.d.ts.map +1 -1
- package/dist/scripts-create2/deploy.js +6 -1
- package/dist/scripts-create2/deploy.js.map +1 -1
- package/dist/scripts-create2/tenderly.js +3 -3
- package/dist/scripts-create2/tenderly.js.map +1 -1
- package/dist/scripts-create2/update-contracts-setup.d.ts +1 -1
- package/dist/scripts-create2/update-contracts-setup.d.ts.map +1 -1
- package/dist/scripts-create2/update-contracts-setup.js +2 -1
- package/dist/scripts-create2/update-contracts-setup.js.map +1 -1
- package/dist/scripts-create2/utils.js +2 -1
- package/dist/scripts-create2/utils.js.map +1 -1
- package/dist/src/lib/artifacts/Admin/0.1.0.json +10 -0
- package/dist/src/lib/artifacts/Admin/index.d.ts +7 -0
- package/dist/src/lib/artifacts/Admin/index.d.ts.map +1 -0
- package/dist/src/lib/artifacts/Admin/index.js +25 -0
- package/dist/src/lib/artifacts/Admin/index.js.map +1 -0
- package/dist/src/lib/artifacts/index.d.ts +4 -0
- package/dist/src/lib/artifacts/index.d.ts.map +1 -1
- package/dist/src/lib/artifacts/index.js +4 -0
- package/dist/src/lib/artifacts/index.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +7 -5
- package/dist/scripts/deploy-payments.d.ts +0 -18
- package/dist/scripts/deploy-payments.d.ts.map +0 -1
- package/dist/scripts/deploy-payments.js +0 -285
- package/dist/scripts/deploy-payments.js.map +0 -1
package/README.md
CHANGED
|
@@ -269,6 +269,13 @@ yarn hardhat update-contracts
|
|
|
269
269
|
|
|
270
270
|
This command will output details about each update on each chain
|
|
271
271
|
|
|
272
|
+
By default, updates are performed by a Safe wallet. They need to be confirmed by co-owners in the RN Admin Safe.
|
|
273
|
+
If the contracts are to be administrated by an EOA, use the flag `eoa`:
|
|
274
|
+
|
|
275
|
+
```bash
|
|
276
|
+
yarn hardhat update-contracts --eoa
|
|
277
|
+
```
|
|
278
|
+
|
|
272
279
|
## Tests
|
|
273
280
|
|
|
274
281
|
After a local deployment:
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const lib_1 = require("../src/lib");
|
|
5
5
|
const utils_zk_1 = require("./utils-zk");
|
|
6
|
-
const hre = require("hardhat");
|
|
6
|
+
const hre = tslib_1.__importStar(require("hardhat"));
|
|
7
7
|
/**
|
|
8
8
|
* Deploys Batch payments contracts to zkSync network.
|
|
9
9
|
* This script is supposed to be run with the deploy-zksync plugin
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy-zk-batch-contracts.js","sourceRoot":"","sources":["../../deploy/deploy-zk-batch-contracts.ts"],"names":[],"mappings":";;;AAAA,oCAA6E;AAC7E,yCAA4C;AAC5C
|
|
1
|
+
{"version":3,"file":"deploy-zk-batch-contracts.js","sourceRoot":"","sources":["../../deploy/deploy-zk-batch-contracts.ts"],"names":[],"mappings":";;;AAAA,oCAA6E;AAC7E,yCAA4C;AAC5C,qDAA+B;AAG/B;;;;GAIG;AACH;;QACE,MAAM,CAAC,QAAQ,CAAC,GAAG,MAAM,GAAG,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;QACjD,MAAM,oBAAoB,GAAG;YAC3B,2BAAqB,CAAC,UAAU,CAAC,GAAG,CAAC,OAAO,CAAC,IAAkC,CAAC;YAChF,8BAAwB,CAAC,UAAU,CAAC,GAAG,CAAC,OAAO,CAAC,IAAkC,CAAC;YACnF,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,WAAW;YAChC,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,WAAW;YAChC,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,WAAW;YAChC,QAAQ,CAAC,OAAO;SACjB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,iDAAiD,CAAC,CAAC;QAC/D,MAAM,IAAA,yBAAc,EAAC,yBAAyB,EAAE,oBAAoB,CAAC,CAAC;IACxE,CAAC;CAAA;AAZD,4BAYC"}
|
package/dist/deploy/utils-zk.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.deployContract = exports.verifyContractByName = exports.verifyContract = exports.verifyEnoughBalance = exports.getWallet = exports.getProvider = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const zksync_web3_1 = require("zksync-web3");
|
|
6
|
-
const hre = require("hardhat");
|
|
6
|
+
const hre = tslib_1.__importStar(require("hardhat"));
|
|
7
7
|
const hardhat_zksync_deploy_1 = require("@matterlabs/hardhat-zksync-deploy");
|
|
8
8
|
const utils_1 = require("ethers/lib/utils");
|
|
9
9
|
const dotenv_1 = require("dotenv");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils-zk.js","sourceRoot":"","sources":["../../deploy/utils-zk.ts"],"names":[],"mappings":";;;;AAAA,6CAAyD;AACzD
|
|
1
|
+
{"version":3,"file":"utils-zk.js","sourceRoot":"","sources":["../../deploy/utils-zk.ts"],"names":[],"mappings":";;;;AAAA,6CAAyD;AACzD,qDAA+B;AAC/B,6EAA6D;AAC7D,4CAA+C;AAG/C,mCAAgC;AAChC,iDAAoD;AAEpD,IAAA,eAAM,GAAE,CAAC;AAET,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,sBAAsB;IACjD,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC;IACtC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB;QACjC,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC;QACnC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB;YAC/B,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;YACjC,CAAC,CAAC,SAAS,CAAC;AAEd,MAAM,kBAAkB,GAAG,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AAExC,MAAM,WAAW,GAAG,GAAG,EAAE;IAC9B,MAAM,MAAM,GAAG,mBAAW,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7C,IAAI,CAAC,MAAM;QACT,MAAM,+BAA+B,GAAG,CAAC,OAAO,CAAC,IAAI,wEAAwE,CAAC;IAEhI,6BAA6B;IAC7B,MAAM,QAAQ,GAAG,IAAI,sBAAQ,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
{"version":3,"file":"hardhat.config.d.ts","sourceRoot":"","sources":["../hardhat.config.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,2BAA2B,CAAC;AACnC,OAAO,2BAA2B,CAAC;AAEnC,OAAO,iCAAiC,CAAC;AACzC,OAAO,mCAAmC,CAAC;AAC3C,OAAO,iCAAiC,CAAC;AACzC,OAAO,mCAAmC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgD3C,wBA+OE"}
|
package/dist/hardhat.config.js
CHANGED
|
@@ -10,8 +10,7 @@ require("@matterlabs/hardhat-zksync-solc");
|
|
|
10
10
|
require("@matterlabs/hardhat-zksync-verify");
|
|
11
11
|
const config_1 = require("hardhat/config");
|
|
12
12
|
const dotenv_1 = require("dotenv");
|
|
13
|
-
const test_deploy_all_1 = require("./scripts/test-deploy-all");
|
|
14
|
-
const deploy_payments_1 = require("./scripts/deploy-payments");
|
|
13
|
+
const test_deploy_all_1 = tslib_1.__importDefault(require("./scripts/test-deploy-all"));
|
|
15
14
|
const check_deployer_1 = require("./scripts-create2/check-deployer");
|
|
16
15
|
const deploy_request_deployer_1 = require("./scripts-create2/deploy-request-deployer");
|
|
17
16
|
const compute_one_address_1 = require("./scripts-create2/compute-one-address");
|
|
@@ -21,7 +20,7 @@ const utils_1 = require("./scripts/utils");
|
|
|
21
20
|
const utils_2 = require("@requestnetwork/utils");
|
|
22
21
|
const tenderly_1 = require("./scripts-create2/tenderly");
|
|
23
22
|
const update_contracts_setup_1 = require("./scripts-create2/update-contracts-setup");
|
|
24
|
-
const deploy_storage_1 = require("./scripts/deploy-storage");
|
|
23
|
+
const deploy_storage_1 = tslib_1.__importDefault(require("./scripts/deploy-storage"));
|
|
25
24
|
(0, dotenv_1.config)();
|
|
26
25
|
const accounts = process.env.DEPLOYMENT_PRIVATE_KEY
|
|
27
26
|
? [process.env.DEPLOYMENT_PRIVATE_KEY]
|
|
@@ -295,7 +294,7 @@ exports.default = {
|
|
|
295
294
|
console.log('All contracts (re)deployed locally');
|
|
296
295
|
}
|
|
297
296
|
}));
|
|
298
|
-
(0, config_1.task)('deploy-live-
|
|
297
|
+
(0, config_1.task)('deploy-live-storage', 'Deploy payment contracts on a live network. Make sure to update all artifacts before running.')
|
|
299
298
|
.addFlag('dryRun', 'to prevent any deployment')
|
|
300
299
|
.addFlag('force', 'to force re-deployment')
|
|
301
300
|
.setAction((args, hre) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -304,17 +303,6 @@ exports.default = {
|
|
|
304
303
|
args.dryRun = (_b = args.dryRun) !== null && _b !== void 0 ? _b : false;
|
|
305
304
|
args.simulate = args.dryRun;
|
|
306
305
|
yield hre.run(DEPLOYER_KEY_GUARD);
|
|
307
|
-
yield (0, deploy_payments_1.deployAllPaymentContracts)(args, hre);
|
|
308
|
-
}));
|
|
309
|
-
(0, config_1.task)('deploy-live-storage', 'Deploy payment contracts on a live network. Make sure to update all artifacts before running.')
|
|
310
|
-
.addFlag('dryRun', 'to prevent any deployment')
|
|
311
|
-
.addFlag('force', 'to force re-deployment')
|
|
312
|
-
.setAction((args, hre) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
313
|
-
var _c, _d;
|
|
314
|
-
args.force = (_c = args.force) !== null && _c !== void 0 ? _c : false;
|
|
315
|
-
args.dryRun = (_d = args.dryRun) !== null && _d !== void 0 ? _d : false;
|
|
316
|
-
args.simulate = args.dryRun;
|
|
317
|
-
yield hre.run(DEPLOYER_KEY_GUARD);
|
|
318
306
|
yield (0, deploy_storage_1.default)(args, hre);
|
|
319
307
|
}));
|
|
320
308
|
// Tasks inherent to the CREATE2 deployment scheme
|
|
@@ -332,9 +320,13 @@ exports.default = {
|
|
|
332
320
|
yield (0, check_deployer_1.checkCreate2Deployer)(hre);
|
|
333
321
|
yield (0, deploy_1.deployWithCreate2FromList)(hre);
|
|
334
322
|
}));
|
|
335
|
-
(0, config_1.task)('update-contracts', 'Update the latest deployed contracts from the Create2DeploymentList')
|
|
323
|
+
(0, config_1.task)('update-contracts', 'Update the latest deployed contracts from the Create2DeploymentList')
|
|
324
|
+
.addFlag('safe', 'Is the update to be performed in Safe context')
|
|
325
|
+
.setAction((args, hre) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
326
|
+
var _c;
|
|
327
|
+
const signWithEoa = (_c = args.eoa) !== null && _c !== void 0 ? _c : false;
|
|
336
328
|
yield hre.run(DEPLOYER_KEY_GUARD);
|
|
337
|
-
yield (0, update_contracts_setup_1.updateContractsFromList)(hre);
|
|
329
|
+
yield (0, update_contracts_setup_1.updateContractsFromList)(hre, signWithEoa);
|
|
338
330
|
}));
|
|
339
331
|
(0, config_1.task)('verify-contract-from-deployer', 'Verify the contracts from the Create2DeploymentList for a specific network').setAction((_args, hre) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
340
332
|
yield (0, verify_1.VerifyCreate2FromList)(hre);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hardhat.config.js","sourceRoot":"","sources":["../hardhat.config.ts"],"names":[],"mappings":";;;AAAA,8BAA4B;AAC5B,qCAAmC;AACnC,qCAAmC;AAEnC,2CAAyC;AACzC,6CAA2C;AAC3C,2CAAyC;AACzC,6CAA2C;AAE3C,2CAA+C;AAC/C,mCAAgC;AAChC
|
|
1
|
+
{"version":3,"file":"hardhat.config.js","sourceRoot":"","sources":["../hardhat.config.ts"],"names":[],"mappings":";;;AAAA,8BAA4B;AAC5B,qCAAmC;AACnC,qCAAmC;AAEnC,2CAAyC;AACzC,6CAA2C;AAC3C,2CAAyC;AACzC,6CAA2C;AAE3C,2CAA+C;AAC/C,mCAAgC;AA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BAA+B,EAC/B,4EAA4E,CAC7E,CAAC,SAAS,CAAC,CAAO,KAAK,EAAE,GAAG,EAAE,EAAE;IAC/B,MAAM,IAAA,8BAAqB,EAAC,GAAwC,CAAC,CAAC;AACxE,CAAC,CAAA,CAAC,CAAC;AAEH,IAAA,aAAI,EAAC,4BAA4B,EAAE,4CAA4C,CAAC,CAAC,SAAS,CACxF,CAAO,KAAK,EAAE,GAAG,EAAE,EAAE;IACnB,MAAM,IAAA,4BAAiB,EAAC,GAAwC,CAAC,CAAC;AACpE,CAAC,CAAA,CACF,CAAC;AAEF,IAAA,gBAAO,EAAC,kBAAkB,EAAE,0CAA0C,CAAC,CAAC,SAAS,CAAC,GAAS,EAAE;IAC3F,IAAI,QAAQ,IAAI,QAAQ,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE;QAC/D,MAAM,IAAI,KAAK,CAAC,4DAA4D,CAAC,CAAC;KAC/E;AACH,CAAC,CAAA,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const test_deploy_request_storage_1 = require("./test-deploy-request-storage");
|
|
4
|
+
const test_deploy_request_storage_1 = tslib_1.__importDefault(require("./test-deploy-request-storage"));
|
|
5
5
|
// Deploys storage contracts
|
|
6
6
|
function deployStorage(_args, hre) {
|
|
7
7
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy-storage.js","sourceRoot":"","sources":["../../scripts/deploy-storage.ts"],"names":[],"mappings":";;;AACA
|
|
1
|
+
{"version":3,"file":"deploy-storage.js","sourceRoot":"","sources":["../../scripts/deploy-storage.ts"],"names":[],"mappings":";;;AACA,wGAA0D;AAE1D,4BAA4B;AAC5B,SAA8B,aAAa,CAAC,KAAU,EAAE,GAA8B;;QACpF,MAAM,IAAA,qCAAa,EAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAClC,CAAC;CAAA;AAFD,gCAEC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const test_deploy_request_storage_1 = require("./test-deploy-request-storage");
|
|
5
|
-
const test_deploy_main_payments_1 = require("./test-deploy-main-payments");
|
|
6
|
-
const test_deploy_chainlink_contract_1 = require("./test-deploy_chainlink_contract");
|
|
4
|
+
const test_deploy_request_storage_1 = tslib_1.__importDefault(require("./test-deploy-request-storage"));
|
|
5
|
+
const test_deploy_main_payments_1 = tslib_1.__importDefault(require("./test-deploy-main-payments"));
|
|
6
|
+
const test_deploy_chainlink_contract_1 = tslib_1.__importDefault(require("./test-deploy_chainlink_contract"));
|
|
7
7
|
const test_deploy_escrow_deployment_1 = require("./test-deploy-escrow-deployment");
|
|
8
8
|
const test_deploy_batch_erc_eth_deployment_1 = require("./test-deploy-batch-erc-eth-deployment");
|
|
9
9
|
const test_deploy_superfluid_1 = require("./test-deploy-superfluid");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-deploy-all.js","sourceRoot":"","sources":["../../scripts/test-deploy-all.ts"],"names":[],"mappings":";;;AACA
|
|
1
|
+
{"version":3,"file":"test-deploy-all.js","sourceRoot":"","sources":["../../scripts/test-deploy-all.ts"],"names":[],"mappings":";;;AACA,wGAA0D;AAC1D,oGAAwD;AACxD,8GAAgE;AAChE,mFAA+D;AAC/D,iGAA4E;AAC5E,qEAA4D;AAC5D,uGAAyF;AACzF,2GAAgG;AAEhG,gCAAgC;AAChC,SAA8B,MAAM,CAAC,KAAU,EAAE,GAA8B;;QAC7E,MAAM,IAAA,qCAAa,EAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QAChC,MAAM,oBAAoB,GAAG,MAAM,IAAA,mCAAa,EAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QAC7D,MAAM,IAAA,wCAAgB,EAAC,KAAK,EAAE,GAAG,EAAE,oBAAoB,CAAC,CAAC;QACzD,MAAM,IAAA,4CAAY,EAAC,GAAG,CAAC,CAAC;QACxB,MAAM,IAAA,yDAAkB,EAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QACrC,MAAM,IAAA,yCAAgB,EAAC,GAAG,CAAC,CAAC;QAC5B,MAAM,IAAA,sEAA4B,EAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QAC/C,MAAM,IAAA,6EAAiC,EAAC,KAAK,EAAE,GAAG,EAAE,oBAAoB,CAAC,CAAC;IAC5E,CAAC;CAAA;AATD,yBASC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getConstructorArgs = void 0;
|
|
4
|
-
const
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const artifacts = tslib_1.__importStar(require("../src/lib"));
|
|
5
6
|
const getAdminWalletAddress = (contract) => {
|
|
6
7
|
if (!process.env.ADMIN_WALLET_ADDRESS) {
|
|
7
8
|
throw new Error(`ADMIN_WALLET_ADDRESS missing to get constructor args for: ${contract}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constructor-args.js","sourceRoot":"","sources":["../../scripts-create2/constructor-args.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constructor-args.js","sourceRoot":"","sources":["../../scripts-create2/constructor-args.ts"],"names":[],"mappings":";;;;AAAA,8DAAwC;AAGxC,MAAM,qBAAqB,GAAG,CAAC,QAAgB,EAAU,EAAE;IACzD,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE;QACrC,MAAM,IAAI,KAAK,CAAC,6DAA6D,QAAQ,EAAE,CAAC,CAAC;KAC1F;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,oBAAoB,CA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YAClC,IAAI,CAAC,OAAO,EAAE;gBACZ,MAAM,IAAI,KAAK,CACb,wFAAwF,CACzF,CAAC;aACH;YACD,MAAM,aAAa,GAAG,SAAS,CAAC,qBAAqB,CAAC;YACtD,MAAM,oBAAoB,GAAG,aAAa,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;YAC/D,OAAO,CAAC,yCAAyC,EAAE,MAAM,EAAE,oBAAoB,CAAC,CAAC;SAClF;QACD;YACE,OAAO,EAAE,CAAC;KACb;AACH,CAAC,CAAC;AA9DW,QAAA,kBAAkB,sBA8D7B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BigNumber, Overrides, Wallet } from 'ethers';
|
|
1
|
+
import { BigNumber, Overrides, Wallet, Contract } from 'ethers';
|
|
2
2
|
import { HardhatRuntimeEnvironmentExtended } from '../types';
|
|
3
3
|
import { CurrencyTypes } from '@requestnetwork/types';
|
|
4
4
|
/**
|
|
@@ -7,55 +7,89 @@ import { CurrencyTypes } from '@requestnetwork/types';
|
|
|
7
7
|
* Erc20ConversionProxy | EthConversionProxy | ERC20SwapToConversion.
|
|
8
8
|
* @param network The network used.
|
|
9
9
|
* @param txOverrides information related to gas fees. Increase their values if needed.
|
|
10
|
+
* @param signer Who is performing the updating
|
|
11
|
+
* @param signWithEoa Is the transaction to be signed by an EAO
|
|
10
12
|
* @param version The version of the chainlink proxy to use, the last one by default.
|
|
11
13
|
*/
|
|
12
|
-
export declare const updateChainlinkConversionPath: (contract:
|
|
13
|
-
export declare const updateSwapRouter: (contract: any, network: string, txOverrides: Overrides) => Promise<void>;
|
|
14
|
-
export declare const updateRequestSwapFees: (contract: any, txOverrides: Overrides) => Promise<void>;
|
|
14
|
+
export declare const updateChainlinkConversionPath: (contract: Contract, network: CurrencyTypes.EvmChainName, txOverrides: Overrides, signer: Wallet, signWithEoa: boolean, version?: string) => Promise<void>;
|
|
15
15
|
/**
|
|
16
16
|
* Updates the batchFee applied by the batch conversion proxy.
|
|
17
17
|
* @param contract BatchConversionPayments contract.
|
|
18
|
+
* @param network The network used
|
|
18
19
|
* @param txOverrides information related to gas fees. Increase their values if needed.
|
|
20
|
+
* @param signer Who is performing the updating
|
|
21
|
+
* @param signWithEoa Is the transaction to be signed by an EAO
|
|
19
22
|
*/
|
|
20
|
-
export declare const
|
|
23
|
+
export declare const updateSwapRouter: (contract: Contract, network: string, txOverrides: Overrides, signer: Wallet, signWithEoa: boolean) => Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* Updates the batchFee applied by the batch conversion proxy.
|
|
26
|
+
* @param contract BatchConversionPayments contract.
|
|
27
|
+
* @param network The network used
|
|
28
|
+
* @param txOverrides information related to gas fees. Increase their values if needed.
|
|
29
|
+
* @param signer Who is performing the updating
|
|
30
|
+
* @param signWithEoa Is the transaction to be signed by an EAO
|
|
31
|
+
*/
|
|
32
|
+
export declare const updateRequestSwapFees: (contract: Contract, network: string, txOverrides: Overrides, signer: Wallet, signWithEoa: boolean) => Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* Updates the batchFee applied by the batch conversion proxy.
|
|
35
|
+
* @param contract BatchConversionPayments contract.
|
|
36
|
+
* @param network The network used
|
|
37
|
+
* @param txOverrides information related to gas fees. Increase their values if needed.
|
|
38
|
+
* @param signer Who is performing the updating
|
|
39
|
+
* @param signWithEoa Is the transaction to be signed by an EAO
|
|
40
|
+
*/
|
|
41
|
+
export declare const updateBatchPaymentFees: (contract: Contract, network: string, txOverrides: Overrides, signer: Wallet, signWithEoa: boolean) => Promise<void>;
|
|
21
42
|
/**
|
|
22
43
|
* Updates the feeAMountUSDLimit of the batch conversion proxy.
|
|
23
44
|
* @param contract BatchConversionPayments contract.
|
|
45
|
+
* @param network The network used
|
|
24
46
|
* @param txOverrides information related to gas fees. Increase their values if needed.
|
|
47
|
+
* @param signer Who is performing the updating
|
|
48
|
+
* @param signWithEoa Is the transaction to be signed by an EAO
|
|
25
49
|
*/
|
|
26
|
-
export declare const updateBatchPaymentFeeAmountUSDLimit: (contract:
|
|
50
|
+
export declare const updateBatchPaymentFeeAmountUSDLimit: (contract: Contract, network: string, txOverrides: Overrides, signer: Wallet, signWithEoa: boolean) => Promise<void>;
|
|
27
51
|
/**
|
|
28
52
|
* Updates the address of a Native or ERC20 fee proxy stored within a Native or ERC20 fee conversion contract.
|
|
29
53
|
* @param contract A contract using chainlink: EthConversionProxy | Erc20ConversionProxy.
|
|
30
54
|
* @param network The network used.
|
|
31
55
|
* @param txOverrides information related to gas fees. Increase their values if needed.
|
|
32
56
|
* @param proxyType The type of the proxy fee.
|
|
57
|
+
* @param signer Who is performing the updating
|
|
58
|
+
* @param signWithEoa Is the transaction to be signed by an EAO
|
|
33
59
|
* @param version The version of the fee proxy to use, the last one by default.
|
|
34
60
|
*/
|
|
35
|
-
export declare const updatePaymentFeeProxyAddress: (contract:
|
|
61
|
+
export declare const updatePaymentFeeProxyAddress: (contract: Contract, network: CurrencyTypes.EvmChainName, txOverrides: Overrides, proxyType: 'native' | 'erc20', signer: Wallet, signWithEoa: boolean, version?: string) => Promise<void>;
|
|
36
62
|
/**
|
|
37
63
|
* Update the address of a proxy used by batch conversion contract.
|
|
38
64
|
* @param contract BatchConversionPayments contract.
|
|
39
65
|
* @param network The network used.
|
|
40
66
|
* @param txOverrides information related to gas fees. Increase their values if needed.
|
|
41
67
|
* @param proxyName The name of the fee proxy to update.
|
|
68
|
+
* @param signer Who is performing the updating
|
|
69
|
+
* @param signWithEoa Is the transaction to be signed by an EAO
|
|
42
70
|
*/
|
|
43
|
-
export declare const updateBatchConversionProxy: (contract:
|
|
71
|
+
export declare const updateBatchConversionProxy: (contract: Contract, network: CurrencyTypes.EvmChainName, txOverrides: Overrides, proxyName: string, signer: Wallet, signWithEoa: boolean) => Promise<void>;
|
|
44
72
|
/**
|
|
45
73
|
* Update the native and the USD addresses used by batch conversion contract.
|
|
46
74
|
* @param contract BatchConversionPayments contract.
|
|
47
75
|
* @param NativeAddress The address of native token, eg: ETH.
|
|
48
76
|
* @param USDAddress The address of USD token.
|
|
49
77
|
* @param txOverrides information related to gas fees. Increase their values if needed.
|
|
78
|
+
* @param signer Who is performing the updating
|
|
79
|
+
* @param signWithEoa Is the transaction to be signed by an EAO
|
|
50
80
|
*/
|
|
51
|
-
export declare const updateNativeAndUSDAddress: (contract:
|
|
81
|
+
export declare const updateNativeAndUSDAddress: (contract: Contract, network: string, NativeAddress: string, USDAddress: string, txOverrides: Overrides, signer: Wallet, signWithEoa: boolean) => Promise<void>;
|
|
52
82
|
/**
|
|
53
83
|
* Update the native token hash used by a contract.
|
|
84
|
+
* @param contractType name of the contract to be updated
|
|
54
85
|
* @param contract contract to be updated.
|
|
86
|
+
* @param network where the contract is deployed
|
|
55
87
|
* @param nativeTokenHash The address of native token, eg: ETH.
|
|
56
88
|
* @param txOverrides information related to gas fees. Increase their values if needed.
|
|
89
|
+
* @param signer Who is performing the updating
|
|
90
|
+
* @param signWithEoa Is the transaction to be signed by an EAO
|
|
57
91
|
*/
|
|
58
|
-
export declare const updateNativeTokenHash: (contractType: string, contract:
|
|
92
|
+
export declare const updateNativeTokenHash: (contractType: string, contract: Contract, network: string, nativeTokenHash: string, txOverrides: Overrides, signer: Wallet, signWithEoa: boolean) => Promise<void>;
|
|
59
93
|
/**
|
|
60
94
|
* Gets the signer and gas fees information.
|
|
61
95
|
* @param network The network used.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adminTasks.d.ts","sourceRoot":"","sources":["../../../scripts-create2/contract-setup/adminTasks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"adminTasks.d.ts","sourceRoot":"","sources":["../../../scripts-create2/contract-setup/adminTasks.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAChE,OAAO,EAAE,iCAAiC,EA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