@requestnetwork/smart-contracts 0.28.1-next.1694 → 0.28.1-next.1699
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/hardhat.config.js +2 -2
- package/dist/scripts/4_deploy-escrow-deployment.d.ts.map +1 -1
- package/dist/scripts/4_deploy-escrow-deployment.js +5 -3
- package/dist/scripts/4_deploy-escrow-deployment.js.map +1 -1
- package/dist/scripts/5_deploy-batch-erc-eth-deployment.d.ts +4 -0
- package/dist/scripts/5_deploy-batch-erc-eth-deployment.d.ts.map +1 -0
- package/dist/scripts/5_deploy-batch-erc-eth-deployment.js +34 -0
- package/dist/scripts/5_deploy-batch-erc-eth-deployment.js.map +1 -0
- package/dist/scripts/{5_deploy-all.d.ts → 6_deploy-all.d.ts} +2 -2
- package/dist/scripts/6_deploy-all.d.ts.map +1 -0
- package/dist/scripts/{5_deploy-all.js → 6_deploy-all.js} +3 -1
- package/dist/scripts/6_deploy-all.js.map +1 -0
- package/dist/scripts-create2/constructor-args.d.ts +1 -1
- package/dist/scripts-create2/constructor-args.d.ts.map +1 -1
- package/dist/scripts-create2/constructor-args.js +13 -1
- package/dist/scripts-create2/constructor-args.js.map +1 -1
- package/dist/scripts-create2/deploy-one.d.ts.map +1 -1
- package/dist/scripts-create2/deploy-one.js +6 -0
- package/dist/scripts-create2/deploy-one.js.map +1 -1
- package/dist/scripts-create2/utils.d.ts.map +1 -1
- package/dist/scripts-create2/utils.js +3 -0
- package/dist/scripts-create2/utils.js.map +1 -1
- package/dist/scripts-create2/verify-one.d.ts.map +1 -1
- package/dist/scripts-create2/verify-one.js +7 -0
- package/dist/scripts-create2/verify-one.js.map +1 -1
- package/dist/src/lib/artifacts/BatchPayments/0.1.0.json +255 -0
- package/dist/src/lib/artifacts/BatchPayments/index.d.ts +4 -0
- package/dist/src/lib/artifacts/BatchPayments/index.d.ts.map +1 -0
- package/dist/src/lib/artifacts/BatchPayments/index.js +17 -0
- package/dist/src/lib/artifacts/BatchPayments/index.js.map +1 -0
- package/dist/src/lib/artifacts/ERC20EscrowToPay/0.1.0.json +122 -0
- package/dist/src/lib/artifacts/ERC20EscrowToPay/index.js +2 -2
- package/dist/src/lib/artifacts/ERC20EscrowToPay/index.js.map +1 -1
- package/dist/src/lib/artifacts/index.d.ts +1 -0
- package/dist/src/lib/artifacts/index.d.ts.map +1 -1
- package/dist/src/lib/artifacts/index.js +1 -0
- package/dist/src/lib/artifacts/index.js.map +1 -1
- package/dist/src/types/BatchPayments.d.ts +536 -0
- package/dist/src/types/ERC20EscrowToPay.d.ts +192 -0
- package/dist/src/types/IEthereumFeeProxy.d.ts +155 -0
- package/dist/src/types/factories/BatchPayments__factory.d.ts +71 -0
- package/dist/src/types/factories/BatchPayments__factory.d.ts.map +1 -0
- package/dist/src/types/factories/BatchPayments__factory.js +344 -0
- package/dist/src/types/factories/BatchPayments__factory.js.map +1 -0
- package/dist/src/types/factories/ERC20EscrowToPay__factory.d.ts +3 -3
- package/dist/src/types/factories/ERC20EscrowToPay__factory.d.ts.map +1 -1
- package/dist/src/types/factories/ERC20EscrowToPay__factory.js +114 -5
- package/dist/src/types/factories/ERC20EscrowToPay__factory.js.map +1 -1
- package/dist/src/types/factories/ERC20SwapToConversion__factory.d.ts +1 -1
- package/dist/src/types/factories/ERC20SwapToConversion__factory.js +1 -1
- package/dist/src/types/factories/ERC20SwapToPay__factory.d.ts +1 -1
- package/dist/src/types/factories/ERC20SwapToPay__factory.js +1 -1
- package/dist/src/types/factories/Erc20ConversionProxy__factory.d.ts +1 -1
- package/dist/src/types/factories/Erc20ConversionProxy__factory.js +1 -1
- package/dist/src/types/factories/IEthereumFeeProxy__factory.d.ts +32 -0
- package/dist/src/types/factories/IEthereumFeeProxy__factory.d.ts.map +1 -0
- package/dist/src/types/factories/IEthereumFeeProxy__factory.js +85 -0
- package/dist/src/types/factories/IEthereumFeeProxy__factory.js.map +1 -0
- package/dist/src/types/hardhat.d.ts +8 -0
- package/dist/src/types/index.d.ts +4 -0
- package/dist/src/types/index.d.ts.map +1 -1
- package/dist/src/types/index.js +5 -1
- package/dist/src/types/index.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +5 -5
- package/types/BatchPayments.d.ts +536 -0
- package/types/ERC20EscrowToPay.d.ts +192 -0
- package/types/IEthereumFeeProxy.d.ts +155 -0
- package/types/factories/BatchPayments__factory.d.ts +71 -0
- package/types/factories/BatchPayments__factory.d.ts.map +1 -0
- package/types/factories/BatchPayments__factory.js +344 -0
- package/types/factories/BatchPayments__factory.js.map +1 -0
- package/types/factories/ERC20EscrowToPay__factory.d.ts +3 -3
- package/types/factories/ERC20EscrowToPay__factory.d.ts.map +1 -1
- package/types/factories/ERC20EscrowToPay__factory.js +114 -5
- package/types/factories/ERC20EscrowToPay__factory.js.map +1 -1
- package/types/factories/ERC20SwapToConversion__factory.d.ts +1 -1
- package/types/factories/ERC20SwapToConversion__factory.js +1 -1
- package/types/factories/ERC20SwapToPay__factory.d.ts +1 -1
- package/types/factories/ERC20SwapToPay__factory.js +1 -1
- package/types/factories/Erc20ConversionProxy__factory.d.ts +1 -1
- package/types/factories/Erc20ConversionProxy__factory.js +1 -1
- package/types/factories/IEthereumFeeProxy__factory.d.ts +32 -0
- package/types/factories/IEthereumFeeProxy__factory.d.ts.map +1 -0
- package/types/factories/IEthereumFeeProxy__factory.js +85 -0
- package/types/factories/IEthereumFeeProxy__factory.js.map +1 -0
- package/types/hardhat.d.ts +8 -0
- package/types/index.d.ts +4 -0
- package/types/index.d.ts.map +1 -1
- package/types/index.js +5 -1
- package/types/index.js.map +1 -1
- package/dist/scripts/5_deploy-all.d.ts.map +0 -1
- package/dist/scripts/5_deploy-all.js.map +0 -1
package/dist/hardhat.config.js
CHANGED
|
@@ -8,7 +8,7 @@ require("@nomiclabs/hardhat-etherscan");
|
|
|
8
8
|
require("@nomiclabs/hardhat-ethers");
|
|
9
9
|
const config_1 = require("hardhat/config");
|
|
10
10
|
const dotenv_1 = require("dotenv");
|
|
11
|
-
const
|
|
11
|
+
const _6_deploy_all_1 = require("./scripts/6_deploy-all");
|
|
12
12
|
const deploy_payments_1 = require("./scripts/deploy-payments");
|
|
13
13
|
const prepare_payments_1 = require("./scripts/prepare-payments");
|
|
14
14
|
const check_deployer_1 = require("./scripts-create2/check-deployer");
|
|
@@ -156,7 +156,7 @@ exports.default = {
|
|
|
156
156
|
(0, config_1.task)('deploy-local-env', 'Deploy a local environment').setAction((args, hre) => (0, tslib_1.__awaiter)(void 0, void 0, void 0, function* () {
|
|
157
157
|
args.force = true;
|
|
158
158
|
yield hre.run(DEPLOYER_KEY_GUARD);
|
|
159
|
-
yield (0,
|
|
159
|
+
yield (0, _6_deploy_all_1.default)(args, hre);
|
|
160
160
|
console.log('All contracts (re)deployed locally');
|
|
161
161
|
}));
|
|
162
162
|
(0, config_1.task)('deploy-live-payments', 'Deploy payment contracts on a live network. Make sure to update all artifacts before running.')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"4_deploy-escrow-deployment.d.ts","sourceRoot":"","sources":["../../scripts/4_deploy-escrow-deployment.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC;AAEnC,OAAO,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"4_deploy-escrow-deployment.d.ts","sourceRoot":"","sources":["../../scripts/4_deploy-escrow-deployment.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC;AAEnC,OAAO,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAI1D,wBAAsB,YAAY,CAAC,GAAG,EAAE,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC,CAoBhF"}
|
|
@@ -3,17 +3,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.deployEscrow = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
require("@nomiclabs/hardhat-ethers");
|
|
6
|
+
const deploy_one_1 = require("../scripts/deploy-one");
|
|
6
7
|
// Deploys, set up the contracts
|
|
7
8
|
function deployEscrow(hre) {
|
|
8
9
|
return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
|
|
9
10
|
const erc20FeeProxyAddress = '0x75c35C980C0d37ef46DF04d31A140b65503c0eEd';
|
|
10
11
|
let deployer;
|
|
11
|
-
let erc20EscrowToPayAddress;
|
|
12
12
|
try {
|
|
13
13
|
[deployer] = yield hre.ethers.getSigners();
|
|
14
|
-
const
|
|
14
|
+
const deployerAddress = yield deployer.getAddress();
|
|
15
15
|
// Deploy Escrow contract
|
|
16
|
-
erc20EscrowToPayAddress =
|
|
16
|
+
const { address: erc20EscrowToPayAddress } = yield (0, deploy_one_1.deployOne)({}, hre, 'ERC20EscrowToPay', {
|
|
17
|
+
constructorArguments: [erc20FeeProxyAddress, deployerAddress],
|
|
18
|
+
});
|
|
17
19
|
console.log(`ERC20EscrowToPay Contract deployed: ${erc20EscrowToPayAddress}`);
|
|
18
20
|
// ----------------------------------
|
|
19
21
|
console.log(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"4_deploy-escrow-deployment.js","sourceRoot":"","sources":["../../scripts/4_deploy-escrow-deployment.ts"],"names":[],"mappings":";;;;AAAA,qCAAmC;
|
|
1
|
+
{"version":3,"file":"4_deploy-escrow-deployment.js","sourceRoot":"","sources":["../../scripts/4_deploy-escrow-deployment.ts"],"names":[],"mappings":";;;;AAAA,qCAAmC;AAGnC,sDAAkD;AAElD,gCAAgC;AAChC,SAAsB,YAAY,CAAC,GAA8B;;QAC/D,MAAM,oBAAoB,GAAG,4CAA4C,CAAC;QAC1E,IAAI,QAAgB,CAAC;QACrB,IAAI;YACF,CAAC,QAAQ,CAAC,GAAG,MAAM,GAAG,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;YAC3C,MAAM,eAAe,GAAG,MAAM,QAAQ,CAAC,UAAU,EAAE,CAAC;YACpD,yBAAyB;YACzB,MAAM,EAAE,OAAO,EAAE,uBAAuB,EAAE,GAAG,MAAM,IAAA,sBAAS,EAAC,EAAE,EAAE,GAAG,EAAE,kBAAkB,EAAE;gBACxF,oBAAoB,EAAE,CAAC,oBAAoB,EAAE,eAAe,CAAC;aAC9D,CAAC,CAAC;YACH,OAAO,CAAC,GAAG,CAAC,wCAAwC,uBAAuB,EAAE,CAAC,CAAC;YAE/E,qCAAqC;YACrC,OAAO,CAAC,GAAG,CAAC;;oCAEoB,uBAAuB;KACtD,CAAC,CAAC;SACJ;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;SAClB;IACH,CAAC;CAAA;AApBD,oCAoBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"5_deploy-batch-erc-eth-deployment.d.ts","sourceRoot":"","sources":["../../scripts/5_deploy-batch-erc-eth-deployment.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC;AACnC,OAAO,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAI1D,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,yBAAyB,GAAG,OAAO,CAAC,GAAG,CAAC,CAuBhG"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deployBatchPayment = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
require("@nomiclabs/hardhat-ethers");
|
|
6
|
+
const deploy_one_1 = require("../scripts/deploy-one");
|
|
7
|
+
// Deploys, set up the contracts
|
|
8
|
+
function deployBatchPayment(args, hre) {
|
|
9
|
+
return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
|
|
10
|
+
try {
|
|
11
|
+
const ERC20FeeProxyAddress = '0x75c35C980C0d37ef46DF04d31A140b65503c0eEd';
|
|
12
|
+
const EthereumFeeProxyAddress = '0x3d49d1eF2adE060a33c6E6Aa213513A7EE9a6241';
|
|
13
|
+
// Deploy BatchPayments contract
|
|
14
|
+
const { address: BatchPaymentsAddress } = yield (0, deploy_one_1.deployOne)(args, hre, 'BatchPayments', {
|
|
15
|
+
constructorArguments: [
|
|
16
|
+
ERC20FeeProxyAddress,
|
|
17
|
+
EthereumFeeProxyAddress,
|
|
18
|
+
yield (yield hre.ethers.getSigners())[0].getAddress(),
|
|
19
|
+
],
|
|
20
|
+
});
|
|
21
|
+
console.log('BatchPaymentsAddress Contract deployed: ' + BatchPaymentsAddress);
|
|
22
|
+
// ----------------------------------
|
|
23
|
+
console.log('Contracts deployed');
|
|
24
|
+
console.log(`
|
|
25
|
+
BatchPaymentsAddress: ${BatchPaymentsAddress}
|
|
26
|
+
`);
|
|
27
|
+
}
|
|
28
|
+
catch (e) {
|
|
29
|
+
console.error(e);
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
exports.deployBatchPayment = deployBatchPayment;
|
|
34
|
+
//# sourceMappingURL=5_deploy-batch-erc-eth-deployment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"5_deploy-batch-erc-eth-deployment.js","sourceRoot":"","sources":["../../scripts/5_deploy-batch-erc-eth-deployment.ts"],"names":[],"mappings":";;;;AAAA,qCAAmC;AAEnC,sDAAkD;AAElD,gCAAgC;AAChC,SAAsB,kBAAkB,CAAC,IAAS,EAAE,GAA8B;;QAChF,IAAI;YACF,MAAM,oBAAoB,GAAG,4CAA4C,CAAC;YAC1E,MAAM,uBAAuB,GAAG,4CAA4C,CAAC;YAE7E,gCAAgC;YAChC,MAAM,EAAE,OAAO,EAAE,oBAAoB,EAAE,GAAG,MAAM,IAAA,sBAAS,EAAC,IAAI,EAAE,GAAG,EAAE,eAAe,EAAE;gBACpF,oBAAoB,EAAE;oBACpB,oBAAoB;oBACpB,uBAAuB;oBACvB,MAAM,CAAC,MAAM,GAAG,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,EAAE;iBACtD;aACF,CAAC,CAAC;YACH,OAAO,CAAC,GAAG,CAAC,0CAA0C,GAAG,oBAAoB,CAAC,CAAC;YAE/E,qCAAqC;YACrC,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;YAClC,OAAO,CAAC,GAAG,CAAC;oCACoB,oBAAoB;KACnD,CAAC,CAAC;SACJ;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;SAClB;IACH,CAAC;CAAA;AAvBD,gDAuBC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { HardhatRuntimeEnvironment } from 'hardhat/types';
|
|
2
|
-
export default function deploy(_args: any, hre: HardhatRuntimeEnvironment): Promise<
|
|
3
|
-
//# sourceMappingURL=
|
|
2
|
+
export default function deploy(_args: any, hre: HardhatRuntimeEnvironment): Promise<any>;
|
|
3
|
+
//# sourceMappingURL=6_deploy-all.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"6_deploy-all.d.ts","sourceRoot":"","sources":["../../scripts/6_deploy-all.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAQ1D,wBAA8B,MAAM,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,yBAAyB,GAAG,OAAO,CAAC,GAAG,CAAC,CAM7F"}
|
|
@@ -5,6 +5,7 @@ const _1_deploy_request_storage_1 = require("./1_deploy-request-storage");
|
|
|
5
5
|
const _2_deploy_main_payments_1 = require("./2_deploy-main-payments");
|
|
6
6
|
const _3_deploy_chainlink_contract_1 = require("./3_deploy_chainlink_contract");
|
|
7
7
|
const _4_deploy_escrow_deployment_1 = require("./4_deploy-escrow-deployment");
|
|
8
|
+
const _5_deploy_batch_erc_eth_deployment_1 = require("./5_deploy-batch-erc-eth-deployment");
|
|
8
9
|
// Deploys, set up the contracts
|
|
9
10
|
function deploy(_args, hre) {
|
|
10
11
|
return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
|
|
@@ -12,7 +13,8 @@ function deploy(_args, hre) {
|
|
|
12
13
|
const mainPaymentAddresses = yield (0, _2_deploy_main_payments_1.default)(_args, hre);
|
|
13
14
|
yield (0, _3_deploy_chainlink_contract_1.default)(_args, hre, mainPaymentAddresses);
|
|
14
15
|
yield (0, _4_deploy_escrow_deployment_1.deployEscrow)(hre);
|
|
16
|
+
yield (0, _5_deploy_batch_erc_eth_deployment_1.deployBatchPayment)(_args, hre);
|
|
15
17
|
});
|
|
16
18
|
}
|
|
17
19
|
exports.default = deploy;
|
|
18
|
-
//# sourceMappingURL=
|
|
20
|
+
//# sourceMappingURL=6_deploy-all.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"6_deploy-all.js","sourceRoot":"","sources":["../../scripts/6_deploy-all.ts"],"names":[],"mappings":";;;AACA,0EAAuD;AACvD,sEAAqD;AACrD,gFAA6D;AAC7D,8EAA4D;AAC5D,4FAAyE;AAEzE,gCAAgC;AAChC,SAA8B,MAAM,CAAC,KAAU,EAAE,GAA8B;;QAC7E,MAAM,IAAA,mCAAa,EAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QAChC,MAAM,oBAAoB,GAAG,MAAM,IAAA,iCAAa,EAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QAC7D,MAAM,IAAA,sCAAgB,EAAC,KAAK,EAAE,GAAG,EAAE,oBAAoB,CAAC,CAAC;QACzD,MAAM,IAAA,0CAAY,EAAC,GAAG,CAAC,CAAC;QACxB,MAAM,IAAA,uDAAkB,EAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACvC,CAAC;CAAA;AAND,yBAMC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const getConstructorArgs: (contract: string) => string[];
|
|
1
|
+
export declare const getConstructorArgs: (contract: string, network?: string | undefined) => string[];
|
|
2
2
|
//# sourceMappingURL=constructor-args.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constructor-args.d.ts","sourceRoot":"","sources":["../../scripts-create2/constructor-args.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constructor-args.d.ts","sourceRoot":"","sources":["../../scripts-create2/constructor-args.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,aAAc,MAAM,2CA4BlD,CAAC"}
|
|
@@ -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 artifacts = require("../src/lib");
|
|
5
|
+
const getConstructorArgs = (contract, network) => {
|
|
5
6
|
switch (contract) {
|
|
6
7
|
case 'Erc20ConversionProxy': {
|
|
7
8
|
if (!process.env.ADMIN_WALLET_ADDRESS) {
|
|
@@ -13,6 +14,17 @@ const getConstructorArgs = (contract) => {
|
|
|
13
14
|
process.env.ADMIN_WALLET_ADDRESS,
|
|
14
15
|
];
|
|
15
16
|
}
|
|
17
|
+
case 'ERC20EscrowToPay': {
|
|
18
|
+
if (!process.env.ADMIN_WALLET_ADDRESS) {
|
|
19
|
+
throw new Error(`ADMIN_WALLET_ADDRESS missing to get constructor args for: ${contract}`);
|
|
20
|
+
}
|
|
21
|
+
if (!network) {
|
|
22
|
+
throw new Error('Escrow contract requires network parameter to get correct address of erc20FeeProxy');
|
|
23
|
+
}
|
|
24
|
+
const erc20FeeProxy = artifacts.erc20FeeProxyArtifact;
|
|
25
|
+
const erc20FeeProxyAddress = erc20FeeProxy.getAddress(network);
|
|
26
|
+
return [erc20FeeProxyAddress, process.env.ADMIN_WALLET_ADDRESS];
|
|
27
|
+
}
|
|
16
28
|
default:
|
|
17
29
|
return [];
|
|
18
30
|
}
|
|
@@ -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,wCAAwC;AAEjC,MAAM,kBAAkB,GAAG,CAAC,QAAgB,EAAE,OAAgB,EAAE,EAAE;IACvE,QAAQ,QAAQ,EAAE;QAChB,KAAK,sBAAsB,CAAC,CAAC;YAC3B,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE;gBACrC,MAAM,IAAI,KAAK,CAAC,6DAA6D,QAAQ,EAAE,CAAC,CAAC;aAC1F;YACD,OAAO;gBACL,4CAA4C;gBAC5C,4CAA4C;gBAC5C,OAAO,CAAC,GAAG,CAAC,oBAAoB;aACjC,CAAC;SACH;QACD,KAAK,kBAAkB,CAAC,CAAC;YACvB,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE;gBACrC,MAAM,IAAI,KAAK,CAAC,6DAA6D,QAAQ,EAAE,CAAC,CAAC;aAC1F;YACD,IAAI,CAAC,OAAO,EAAE;gBACZ,MAAM,IAAI,KAAK,CACb,oFAAoF,CACrF,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,oBAAoB,EAAE,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;SACjE;QACD;YACE,OAAO,EAAE,CAAC;KACb;AACH,CAAC,CAAC;AA5BW,QAAA,kBAAkB,sBA4B7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy-one.d.ts","sourceRoot":"","sources":["../../scripts-create2/deploy-one.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,iCAAiC,EAAE,MAAM,SAAS,CAAC;AAK5D,eAAO,MAAM,oBAAoB,qBACb,iBAAiB,OAC9B,iCAAiC,KACrC,QAAQ,MAAM,CAkChB,CAAC;AAEF,eAAO,MAAM,yBAAyB,QAC/B,iCAAiC,KACrC,QAAQ,IAAI,
|
|
1
|
+
{"version":3,"file":"deploy-one.d.ts","sourceRoot":"","sources":["../../scripts-create2/deploy-one.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,iCAAiC,EAAE,MAAM,SAAS,CAAC;AAK5D,eAAO,MAAM,oBAAoB,qBACb,iBAAiB,OAC9B,iCAAiC,KACrC,QAAQ,MAAM,CAkChB,CAAC;AAEF,eAAO,MAAM,yBAAyB,QAC/B,iCAAiC,KACrC,QAAQ,IAAI,CAqBd,CAAC"}
|
|
@@ -46,6 +46,12 @@ const deployWithCreate2FromList = (hre) => (0, tslib_1.__awaiter)(void 0, void 0
|
|
|
46
46
|
yield (0, exports.deployOneWithCreate2)({ contract, constructorArgs }, hre);
|
|
47
47
|
break;
|
|
48
48
|
}
|
|
49
|
+
case 'ERC20EscrowToPay': {
|
|
50
|
+
const network = hre.config.xdeploy.networks[0];
|
|
51
|
+
const constructorArgs = (0, constructor_args_1.getConstructorArgs)(contract, network);
|
|
52
|
+
yield (0, exports.deployOneWithCreate2)({ contract, constructorArgs }, hre);
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
49
55
|
// Other cases to add when necessary
|
|
50
56
|
default:
|
|
51
57
|
throw new Error(`The contrat ${contract} is not to be deployed using the CREATE2 scheme`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy-one.js","sourceRoot":"","sources":["../../scripts-create2/deploy-one.ts"],"names":[],"mappings":";;;;AAAA,mCAA4E;AAG5E,2CAAsC;AACtC,yDAAwD;AAExD,wDAAwD;AACjD,MAAM,oBAAoB,GAAG,CAClC,gBAAmC,EACnC,GAAsC,EACrB,EAAE;IACn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C,CAAC;gBAC/C,MAAM,eAAe,GAAG,IAAA,qCAAkB,EAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;gBAC9D,MAAM,IAAA,4BAAoB,EAAC,EAAE,QAAQ,EAAE,eAAe,EAAE,EAAE,GAAG,CAAC,CAAC;gBAC/D,MAAM;aACP;YACD,oCAAoC;YACpC;gBACE,MAAM,IAAI,KAAK,CAAC,eAAe,QAAQ,iDAAiD,CAAC,CAAC;SAC7F;KACF;AACH,CAAC,CAAA,CAAC;AAvBW,QAAA,yBAAyB,6BAuBpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../scripts-create2/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,KAAK,SAAS,MAAM,YAAY,CAAC;AAExC;;GAEG;AACH,eAAO,MAAM,6BAA6B,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../scripts-create2/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,KAAK,SAAS,MAAM,YAAY,CAAC;AAExC;;GAEG;AACH,eAAO,MAAM,6BAA6B,UAKzC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,aAAc,MAAM,KAAG,UAAU,gBAAgB,CAAC,QAAQ,CA6BjF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,aACnB,MAAM,WACP,MAAM,mBACE,MAAM,KACtB,OAIF,CAAC"}
|
|
@@ -9,6 +9,7 @@ exports.create2ContractDeploymentList = [
|
|
|
9
9
|
'EthereumProxy',
|
|
10
10
|
'EthereumFeeProxy',
|
|
11
11
|
'Erc20ConversionProxy',
|
|
12
|
+
'ERC20EscrowToPay',
|
|
12
13
|
];
|
|
13
14
|
/**
|
|
14
15
|
* Returns the artifact of the specified contract
|
|
@@ -38,6 +39,8 @@ const getArtifact = (contract) => {
|
|
|
38
39
|
return artifacts.erc20SwapToPayArtifact;
|
|
39
40
|
case 'ERC20SwapToConversion':
|
|
40
41
|
return artifacts.erc20SwapConversionArtifact;
|
|
42
|
+
case 'ERC20EscrowToPay':
|
|
43
|
+
return artifacts.erc20EscrowToPayArtifact;
|
|
41
44
|
default:
|
|
42
45
|
throw new Error('Contract unknown');
|
|
43
46
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../scripts-create2/utils.ts"],"names":[],"mappings":";;;AACA,wCAAwC;AAExC;;GAEG;AACU,QAAA,6BAA6B,GAAG;IAC3C,eAAe;IACf,kBAAkB;IAClB,sBAAsB;
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../scripts-create2/utils.ts"],"names":[],"mappings":";;;AACA,wCAAwC;AAExC;;GAEG;AACU,QAAA,6BAA6B,GAAG;IAC3C,eAAe;IACf,kBAAkB;IAClB,sBAAsB;IACtB,kBAAkB;CACnB,CAAC;AAEF;;;GAGG;AACI,MAAM,WAAW,GAAG,CAAC,QAAgB,EAAwC,EAAE;IACpF,QAAQ,QAAQ,EAAE;QAChB,KAAK,oBAAoB;YACvB,OAAO,SAAS,CAAC,0BAA0B,CAAC;QAC9C,KAAK,0BAA0B;YAC7B,OAAO,SAAS,CAAC,4BAA4B,CAAC;QAChD,KAAK,YAAY;YACf,OAAO,SAAS,CAAC,kBAAkB,CAAC;QACtC,KAAK,eAAe;YAClB,OAAO,SAAS,CAAC,qBAAqB,CAAC;QACzC,KAAK,eAAe;YAClB,OAAO,SAAS,CAAC,qBAAqB,CAAC;QACzC,KAAK,kBAAkB;YACrB,OAAO,SAAS,CAAC,wBAAwB,CAAC;QAC5C,KAAK,yBAAyB;YAC5B,OAAO,SAAS,CAAC,uBAAuB,CAAC;QAC3C,KAAK,sBAAsB;YACzB,OAAO,SAAS,CAAC,oBAAoB,CAAC;QACxC,KAAK,oBAAoB;YACvB,OAAO,SAAS,CAAC,qBAAqB,CAAC;QACzC,KAAK,gBAAgB;YACnB,OAAO,SAAS,CAAC,sBAAsB,CAAC;QAC1C,KAAK,uBAAuB;YAC1B,OAAO,SAAS,CAAC,2BAA2B,CAAC;QAC/C,KAAK,kBAAkB;YACrB,OAAO,SAAS,CAAC,wBAAwB,CAAC;QAC5C;YACE,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;KACvC;AACH,CAAC,CAAC;AA7BW,QAAA,WAAW,eA6BtB;AAEF;;;;;;GAMG;AACI,MAAM,kBAAkB,GAAG,CAChC,QAAgB,EAChB,OAAe,EACf,eAAuB,EACd,EAAE;IACX,MAAM,gBAAgB,GAAG,IAAA,mBAAW,EAAC,QAAQ,CAAC,CAAC;IAC/C,MAAM,SAAS,GAAG,gBAAgB,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;IAC5D,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,KAAK,eAAe,CAAC,CAAC;AAC9D,CAAC,CAAC;AARW,QAAA,kBAAkB,sBAQ7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-one.d.ts","sourceRoot":"","sources":["../../scripts-create2/verify-one.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iCAAiC,EAAE,MAAM,SAAS,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAG5C,eAAO,MAAM,SAAS,oBACH,MAAM,oBACL,iBAAiB,OAC9B,iCAAiC,KACrC,QAAQ,IAAI,CASd,CAAC;AAEF,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,iCAAiC,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"verify-one.d.ts","sourceRoot":"","sources":["../../scripts-create2/verify-one.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iCAAiC,EAAE,MAAM,SAAS,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAG5C,eAAO,MAAM,SAAS,oBACH,MAAM,oBACL,iBAAiB,OAC9B,iCAAiC,KACrC,QAAQ,IAAI,CASd,CAAC;AAEF,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,iCAAiC,GAAG,OAAO,CAAC,IAAI,CAAC,CAgCjG"}
|
|
@@ -31,6 +31,13 @@ function VerifyCreate2FromList(hre) {
|
|
|
31
31
|
yield (0, exports.verifyOne)(address, { contract, constructorArgs }, hre);
|
|
32
32
|
break;
|
|
33
33
|
}
|
|
34
|
+
case 'ERC20EscrowToPay': {
|
|
35
|
+
const network = hre.config.xdeploy.networks[0];
|
|
36
|
+
const constructorArgs = (0, constructor_args_1.getConstructorArgs)(contract, network);
|
|
37
|
+
address = yield (0, compute_one_address_1.computeCreate2DeploymentAddress)({ contract, constructorArgs }, hre);
|
|
38
|
+
yield (0, exports.verifyOne)(address, { contract, constructorArgs }, hre);
|
|
39
|
+
break;
|
|
40
|
+
}
|
|
34
41
|
// Other cases to add when necessary
|
|
35
42
|
default:
|
|
36
43
|
throw new Error(`The contrat ${contract} is not to be deployed using the CREATE2 scheme`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-one.js","sourceRoot":"","sources":["../../scripts-create2/verify-one.ts"],"names":[],"mappings":";;;;AAAA,+DAAwE;AACxE,yDAAwD;AAGxD,mCAAwD;AAEjD,MAAM,SAAS,GAAG,CACvB,eAAuB,EACvB,gBAAmC,EACnC,GAAsC,EACvB,EAAE;IACjB,IAAI;QACF,MAAM,GAAG,CAAC,GAAG,CAAC,eAAe,EAAE;YAC7B,OAAO,EAAE,eAAe;YACxB,oBAAoB,EAAE,gBAAgB,CAAC,eAAe;SACvD,CAAC,CAAC;KACJ;IAAC,OAAO,GAAG,EAAE;QACZ,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;KAClB;AACH,CAAC,CAA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C,CAAC,CAAC,CAAC;SAClB;IACH,CAAC;CAAA;AAhCD,sDAgCC"}
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
{
|
|
2
|
+
"abi": [
|
|
3
|
+
{
|
|
4
|
+
"inputs": [
|
|
5
|
+
{
|
|
6
|
+
"internalType": "address",
|
|
7
|
+
"name": "_erc20FeeProxy",
|
|
8
|
+
"type": "address"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"internalType": "address",
|
|
12
|
+
"name": "_erc20FeeProxy",
|
|
13
|
+
"type": "address"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"internalType": "address",
|
|
17
|
+
"name": "_owner",
|
|
18
|
+
"type": "address"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"stateMutability": "nonpayable",
|
|
22
|
+
"type": "constructor"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"anonymous": false,
|
|
26
|
+
"inputs": [
|
|
27
|
+
{
|
|
28
|
+
"indexed": false,
|
|
29
|
+
"internalType": "address",
|
|
30
|
+
"name": "tokenAddress",
|
|
31
|
+
"type": "address"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"indexed": false,
|
|
35
|
+
"internalType": "address",
|
|
36
|
+
"name": "to",
|
|
37
|
+
"type": "address"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"indexed": false,
|
|
41
|
+
"internalType": "uint256",
|
|
42
|
+
"name": "amount",
|
|
43
|
+
"type": "uint256"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"indexed": true,
|
|
47
|
+
"internalType": "bytes",
|
|
48
|
+
"name": "paymentReference",
|
|
49
|
+
"type": "bytes"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"indexed": false,
|
|
53
|
+
"internalType": "uint256",
|
|
54
|
+
"name": "feeAmount",
|
|
55
|
+
"type": "uint256"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"indexed": false,
|
|
59
|
+
"internalType": "address",
|
|
60
|
+
"name": "feeAddress",
|
|
61
|
+
"type": "address"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"name": "TransferWithReferenceAndFee",
|
|
65
|
+
"type": "event"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"inputs": [
|
|
69
|
+
{
|
|
70
|
+
"internalType": "address",
|
|
71
|
+
"name": "_tokenAddress",
|
|
72
|
+
"type": "address"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"internalType": "address[]",
|
|
76
|
+
"name": "_recipients",
|
|
77
|
+
"type": "address[]"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"internalType": "uint256[]",
|
|
81
|
+
"name": "_values",
|
|
82
|
+
"type": "uint256[]"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"internalType": "bytes[]",
|
|
86
|
+
"name": "_paymentReferences",
|
|
87
|
+
"type": "bytes[]"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"internalType": "uint256[]",
|
|
91
|
+
"name": "_feeAmount",
|
|
92
|
+
"type": "uint256[]"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"internalType": "address",
|
|
96
|
+
"name": "_feeAddress",
|
|
97
|
+
"type": "address"
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"name": "batchERC20PaymentsWithReference",
|
|
101
|
+
"outputs": [],
|
|
102
|
+
"stateMutability": "nonpayable",
|
|
103
|
+
"type": "function"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"inputs": [
|
|
107
|
+
{
|
|
108
|
+
"internalType": "address[]",
|
|
109
|
+
"name": "_recipients",
|
|
110
|
+
"type": "address[]"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"internalType": "uint256[]",
|
|
114
|
+
"name": "_values",
|
|
115
|
+
"type": "uint256[]"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"internalType": "bytes[]",
|
|
119
|
+
"name": "_paymentReferences",
|
|
120
|
+
"type": "bytes[]"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"internalType": "uint256[]",
|
|
124
|
+
"name": "_feeAmount",
|
|
125
|
+
"type": "uint256[]"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"internalType": "address payable",
|
|
129
|
+
"name": "_feeAddress",
|
|
130
|
+
"type": "address"
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"name": "batchEthPaymentsWithReference",
|
|
134
|
+
"outputs": [],
|
|
135
|
+
"stateMutability": "payable",
|
|
136
|
+
"type": "function"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"inputs": [
|
|
140
|
+
{
|
|
141
|
+
"internalType": "uint256",
|
|
142
|
+
"name": "_feeBatch",
|
|
143
|
+
"type": "uint256"
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
"name": "setBatchFee",
|
|
147
|
+
"outputs": [],
|
|
148
|
+
"stateMutability": "nonpayable",
|
|
149
|
+
"type": "function"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"inputs": [
|
|
153
|
+
{
|
|
154
|
+
"internalType": "address[]",
|
|
155
|
+
"name": "_tokenAddresses",
|
|
156
|
+
"type": "address[]"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"internalType": "address[]",
|
|
160
|
+
"name": "_recipients",
|
|
161
|
+
"type": "address[]"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"internalType": "uint256[]",
|
|
165
|
+
"name": "_values",
|
|
166
|
+
"type": "uint256[]"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"internalType": "bytes[]",
|
|
170
|
+
"name": "_paymentReferences",
|
|
171
|
+
"type": "bytes[]"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"internalType": "uint256[]",
|
|
175
|
+
"name": "_feeAmount",
|
|
176
|
+
"type": "uint256[]"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"internalType": "address",
|
|
180
|
+
"name": "_feeAddress",
|
|
181
|
+
"type": "address"
|
|
182
|
+
}
|
|
183
|
+
],
|
|
184
|
+
"name": "batchERC20PaymentsMultiTokensWithReference",
|
|
185
|
+
"outputs": [],
|
|
186
|
+
"stateMutability": "nonpayable",
|
|
187
|
+
"type": "function"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"inputs": [],
|
|
191
|
+
"name": "erc20FeeProxy",
|
|
192
|
+
"outputs": [
|
|
193
|
+
{
|
|
194
|
+
"internalType": "contract IERC20FeeProxy",
|
|
195
|
+
"name": "",
|
|
196
|
+
"type": "address"
|
|
197
|
+
}
|
|
198
|
+
],
|
|
199
|
+
"stateMutability": "view",
|
|
200
|
+
"type": "function"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"inputs": [],
|
|
204
|
+
"name": "recieve",
|
|
205
|
+
"outputs": [],
|
|
206
|
+
"stateMutability": "payable",
|
|
207
|
+
"type": "function"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"constant": true,
|
|
211
|
+
"inputs": [],
|
|
212
|
+
"name": "paymentEthereumFeeProxy",
|
|
213
|
+
"outputs": [
|
|
214
|
+
{
|
|
215
|
+
"internalType": "contract IEthereumFeeProxy",
|
|
216
|
+
"name": "",
|
|
217
|
+
"type": "address"
|
|
218
|
+
}
|
|
219
|
+
],
|
|
220
|
+
"payable": false,
|
|
221
|
+
"stateMutability": "view",
|
|
222
|
+
"type": "function"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"constant": true,
|
|
226
|
+
"inputs": [],
|
|
227
|
+
"name": "paymentErc20FeeProxy",
|
|
228
|
+
"outputs": [
|
|
229
|
+
{
|
|
230
|
+
"internalType": "contract IERC20FeeProxy",
|
|
231
|
+
"name": "",
|
|
232
|
+
"type": "address"
|
|
233
|
+
}
|
|
234
|
+
],
|
|
235
|
+
"payable": false,
|
|
236
|
+
"stateMutability": "view",
|
|
237
|
+
"type": "function"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"constant": true,
|
|
241
|
+
"inputs": [],
|
|
242
|
+
"name": "batchFee",
|
|
243
|
+
"outputs": [
|
|
244
|
+
{
|
|
245
|
+
"internalType": "uint256",
|
|
246
|
+
"name": "",
|
|
247
|
+
"type": "uint256"
|
|
248
|
+
}
|
|
249
|
+
],
|
|
250
|
+
"payable": false,
|
|
251
|
+
"stateMutability": "view",
|
|
252
|
+
"type": "function"
|
|
253
|
+
}
|
|
254
|
+
]
|
|
255
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/artifacts/BatchPayments/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAI1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAElE,eAAO,MAAM,qBAAqB,iCAajC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.batchPaymentsArtifact = void 0;
|
|
4
|
+
const ContractArtifact_1 = require("../../ContractArtifact");
|
|
5
|
+
const _0_1_0_json_1 = require("./0.1.0.json");
|
|
6
|
+
exports.batchPaymentsArtifact = new ContractArtifact_1.ContractArtifact({
|
|
7
|
+
'0.1.0': {
|
|
8
|
+
abi: _0_1_0_json_1.abi,
|
|
9
|
+
deployment: {
|
|
10
|
+
private: {
|
|
11
|
+
address: '0x74e3FC764c2474f25369B9d021b7F92e8441A2Dc',
|
|
12
|
+
creationBlockNumber: 0,
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
}, '0.1.0');
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/artifacts/BatchPayments/index.ts"],"names":[],"mappings":";;;AAAA,6DAA0D;AAE1D,8CAAgD;AAInC,QAAA,qBAAqB,GAAG,IAAI,mCAAgB,CACvD;IACE,OAAO,EAAE;QACP,GAAG,EAAE,iBAAS;QACd,UAAU,EAAE;YACV,OAAO,EAAE;gBACP,OAAO,EAAE,4CAA4C;gBACrD,mBAAmB,EAAE,CAAC;aACvB;SACF;KACF;CACF,EACD,OAAO,CACR,CAAC"}
|