@1inch/solidity-utils 5.1.0 → 5.2.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.
- package/contracts/libraries/ECDSA.sol +3 -3
- package/dist/src/utils.d.ts +46 -4
- package/dist/src/utils.js +76 -2
- package/dist/src/utils.js.map +1 -1
- package/dist/typechain-types/@0xsequence/create3/contracts/Create3.d.ts +20 -0
- package/dist/typechain-types/@0xsequence/create3/contracts/Create3.js +3 -0
- package/dist/typechain-types/@0xsequence/create3/contracts/Create3.js.map +1 -0
- package/dist/typechain-types/@0xsequence/create3/contracts/index.d.ts +1 -0
- package/dist/typechain-types/@0xsequence/create3/contracts/index.js +3 -0
- package/dist/typechain-types/@0xsequence/create3/contracts/index.js.map +1 -0
- package/dist/typechain-types/@0xsequence/create3/index.d.ts +2 -0
- package/dist/typechain-types/@0xsequence/create3/index.js +3 -0
- package/dist/typechain-types/@0xsequence/create3/index.js.map +1 -0
- package/dist/typechain-types/@0xsequence/index.d.ts +2 -0
- package/dist/typechain-types/@0xsequence/index.js +3 -0
- package/dist/typechain-types/@0xsequence/index.js.map +1 -0
- package/dist/typechain-types/contracts/tests/mocks/Create3Mock.d.ts +39 -0
- package/dist/typechain-types/contracts/tests/mocks/Create3Mock.js +3 -0
- package/dist/typechain-types/contracts/tests/mocks/Create3Mock.js.map +1 -0
- package/dist/typechain-types/contracts/tests/mocks/index.d.ts +1 -0
- package/dist/typechain-types/factories/@0xsequence/create3/contracts/Create3__factory.d.ts +34 -0
- package/dist/typechain-types/factories/@0xsequence/create3/contracts/Create3__factory.js +55 -0
- package/dist/typechain-types/factories/@0xsequence/create3/contracts/Create3__factory.js.map +1 -0
- package/dist/typechain-types/factories/@0xsequence/create3/contracts/index.d.ts +1 -0
- package/dist/typechain-types/factories/@0xsequence/create3/contracts/index.js +9 -0
- package/dist/typechain-types/factories/@0xsequence/create3/contracts/index.js.map +1 -0
- package/dist/typechain-types/factories/@0xsequence/create3/index.d.ts +1 -0
- package/dist/typechain-types/factories/@0xsequence/create3/index.js +9 -0
- package/dist/typechain-types/factories/@0xsequence/create3/index.js.map +1 -0
- package/dist/typechain-types/factories/@0xsequence/index.d.ts +1 -0
- package/dist/typechain-types/factories/@0xsequence/index.js +9 -0
- package/dist/typechain-types/factories/@0xsequence/index.js.map +1 -0
- package/dist/typechain-types/factories/contracts/tests/ECDSATest__factory.d.ts +1 -1
- package/dist/typechain-types/factories/contracts/tests/ECDSATest__factory.js +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/Create3Mock__factory.d.ts +66 -0
- package/dist/typechain-types/factories/contracts/tests/mocks/Create3Mock__factory.js +98 -0
- package/dist/typechain-types/factories/contracts/tests/mocks/Create3Mock__factory.js.map +1 -0
- package/dist/typechain-types/factories/contracts/tests/mocks/ERC1271WalletMock__factory.d.ts +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/ERC1271WalletMock__factory.js +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/TokenWithBySig__factory.d.ts +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/TokenWithBySig__factory.js +1 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/index.d.ts +1 -0
- package/dist/typechain-types/factories/contracts/tests/mocks/index.js +3 -1
- package/dist/typechain-types/factories/contracts/tests/mocks/index.js.map +1 -1
- package/dist/typechain-types/factories/index.d.ts +1 -0
- package/dist/typechain-types/factories/index.js +2 -1
- package/dist/typechain-types/factories/index.js.map +1 -1
- package/dist/typechain-types/index.d.ts +6 -0
- package/dist/typechain-types/index.js +6 -2
- package/dist/typechain-types/index.js.map +1 -1
- package/package.json +2 -1
|
@@ -231,7 +231,7 @@ library ECDSA {
|
|
|
231
231
|
bytes calldata signature
|
|
232
232
|
) internal view returns (bool success) {
|
|
233
233
|
// (bool success, bytes memory data) = signer.staticcall(abi.encodeWithSelector(IERC1271.isValidSignature.selector, hash, signature));
|
|
234
|
-
// return success && data.length
|
|
234
|
+
// return success && data.length == 32 && abi.decode(data, (bytes4)) == IERC1271.isValidSignature.selector;
|
|
235
235
|
bytes4 selector = IERC1271.isValidSignature.selector;
|
|
236
236
|
assembly ("memory-safe") { // solhint-disable-line no-inline-assembly
|
|
237
237
|
let ptr := mload(0x40)
|
|
@@ -297,7 +297,7 @@ library ECDSA {
|
|
|
297
297
|
bytes32 vs
|
|
298
298
|
) internal view returns (bool success) {
|
|
299
299
|
// (bool success, bytes memory data) = signer.staticcall(abi.encodeWithSelector(IERC1271.isValidSignature.selector, hash, abi.encodePacked(r, vs)));
|
|
300
|
-
// return success && data.length
|
|
300
|
+
// return success && data.length == 32 && abi.decode(data, (bytes4)) == IERC1271.isValidSignature.selector;
|
|
301
301
|
bytes4 selector = IERC1271.isValidSignature.selector;
|
|
302
302
|
assembly ("memory-safe") { // solhint-disable-line no-inline-assembly
|
|
303
303
|
let ptr := mload(0x40)
|
|
@@ -329,7 +329,7 @@ library ECDSA {
|
|
|
329
329
|
bytes32 vs
|
|
330
330
|
) internal view returns (bool success) {
|
|
331
331
|
// (bool success, bytes memory data) = signer.staticcall(abi.encodeWithSelector(IERC1271.isValidSignature.selector, hash, abi.encodePacked(r, vs & ~uint256(1 << 255), uint8(vs >> 255))));
|
|
332
|
-
// return success && data.length
|
|
332
|
+
// return success && data.length == 32 && abi.decode(data, (bytes4)) == IERC1271.isValidSignature.selector;
|
|
333
333
|
bytes4 selector = IERC1271.isValidSignature.selector;
|
|
334
334
|
assembly ("memory-safe") { // solhint-disable-line no-inline-assembly
|
|
335
335
|
let ptr := mload(0x40)
|
package/dist/src/utils.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import '@nomicfoundation/hardhat-ethers';
|
|
2
|
+
import { SignerWithAddress } from '@nomicfoundation/hardhat-ethers/signers';
|
|
2
3
|
import { BaseContract, BigNumberish, BytesLike, Contract, ContractTransactionReceipt, ContractTransactionResponse, JsonRpcProvider, Signer, Wallet } from 'ethers';
|
|
3
|
-
import {
|
|
4
|
+
import { DeploymentsExtension } from 'hardhat-deploy/types';
|
|
4
5
|
import { constants } from './prelude';
|
|
6
|
+
import { HardhatEthersProvider } from '@nomicfoundation/hardhat-ethers/internal/hardhat-ethers-provider';
|
|
5
7
|
/**
|
|
6
8
|
* @category utils
|
|
7
9
|
* @notice Options for deployment methods.
|
|
@@ -21,9 +23,7 @@ import { constants } from './prelude';
|
|
|
21
23
|
export interface DeployContractOptions {
|
|
22
24
|
contractName: string;
|
|
23
25
|
constructorArgs?: any[];
|
|
24
|
-
deployments:
|
|
25
|
-
deploy: (name: string, options: DeployOptions) => Promise<DeployResult>;
|
|
26
|
-
};
|
|
26
|
+
deployments: DeploymentsExtension;
|
|
27
27
|
deployer: string;
|
|
28
28
|
deploymentName?: string;
|
|
29
29
|
skipVerify?: boolean;
|
|
@@ -34,10 +34,23 @@ export interface DeployContractOptions {
|
|
|
34
34
|
log?: boolean;
|
|
35
35
|
waitConfirmations?: number;
|
|
36
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* @category utils
|
|
39
|
+
* @notice Options for deployment methods with create3. This is an extension of DeployContractOptions without `deployer` and `skipIfAlreadyDeployed`.
|
|
40
|
+
* @param txSigner Signer object to sign the deployment transaction.
|
|
41
|
+
* @param create3Deployer Address of the create3 deployer contract, which related to `contracts/interfaces/ICreate3Deployer.sol`.
|
|
42
|
+
* @param salt Salt value for create3 deployment.
|
|
43
|
+
*/
|
|
44
|
+
interface DeployContractOptionsWithCreate3 extends Omit<DeployContractOptions, 'deployer' | 'skipIfAlreadyDeployed'> {
|
|
45
|
+
txSigner?: Wallet | SignerWithAddress;
|
|
46
|
+
create3Deployer: string;
|
|
47
|
+
salt: string;
|
|
48
|
+
}
|
|
37
49
|
/**
|
|
38
50
|
* @category utils
|
|
39
51
|
* @notice Deploys a contract with optional Etherscan verification.
|
|
40
52
|
* @param options Deployment options. Default values:
|
|
53
|
+
* - constructorArgs: []
|
|
41
54
|
* - deploymentName: contractName
|
|
42
55
|
* - skipVerify: false
|
|
43
56
|
* - skipIfAlreadyDeployed: true
|
|
@@ -46,6 +59,34 @@ export interface DeployContractOptions {
|
|
|
46
59
|
* @returns The deployed contract instance.
|
|
47
60
|
*/
|
|
48
61
|
export declare function deployAndGetContract(options: DeployContractOptions): Promise<Contract>;
|
|
62
|
+
/**
|
|
63
|
+
* @category utils
|
|
64
|
+
* @notice Deploys a contract using create3 and saves the deployment information.
|
|
65
|
+
* @param options Deployment options. Default values:
|
|
66
|
+
* - constructorArgs: []
|
|
67
|
+
* - txSigner: first signer in the environment
|
|
68
|
+
* - deploymentName: contractName
|
|
69
|
+
* - skipVerify: false
|
|
70
|
+
* - waitConfirmations: 1 on dev chains, 6 on others
|
|
71
|
+
* @returns The deployed contract instance.
|
|
72
|
+
*/
|
|
73
|
+
export declare function deployAndGetContractWithCreate3(options: DeployContractOptionsWithCreate3): Promise<Contract>;
|
|
74
|
+
/**
|
|
75
|
+
* @category utils
|
|
76
|
+
* @notice Saves the deployment information using the deploy transaction hash.
|
|
77
|
+
* @param provider JSON RPC provider or Hardhat Ethers Provider.
|
|
78
|
+
* @param deployments Deployment facilitator object from Hardhat.
|
|
79
|
+
* @param contractName Name of the contract to deploy.
|
|
80
|
+
* @param deploymentName Optional custom name for deployment.
|
|
81
|
+
* @param constructorArgs Arguments for the contract's constructor.
|
|
82
|
+
* @param salt Salt value for create3 deployment.
|
|
83
|
+
* @param create3Deployer Address of the create3 deployer contract.
|
|
84
|
+
* @param deployTxHash Transaction hash of the create3 deployment.
|
|
85
|
+
* @param skipVerify Skips Etherscan verification if true.
|
|
86
|
+
* @returns The deployed contract instance.
|
|
87
|
+
*/
|
|
88
|
+
export declare function saveContractWithCreate3Deployment(provider: JsonRpcProvider | HardhatEthersProvider, deployments: DeploymentsExtension, contractName: string, deploymentName: string, constructorArgs: any[], // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
89
|
+
salt: string, create3Deployer: string, deployTxHash: string, skipVerify?: boolean): Promise<Contract>;
|
|
49
90
|
/**
|
|
50
91
|
* @category utils
|
|
51
92
|
* @notice Advances the blockchain time to a specific timestamp for testing purposes.
|
|
@@ -147,3 +188,4 @@ export declare function countInstructions(provider: JsonRpcProvider | {
|
|
|
147
188
|
* @return The price of the specified native token in USD, scaled by 1e18 to preserve precision.
|
|
148
189
|
*/
|
|
149
190
|
export declare function getEthPrice(nativeTokenSymbol?: string): Promise<bigint>;
|
|
191
|
+
export {};
|
package/dist/src/utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getEthPrice = exports.countInstructions = exports.signMessage = exports.fixSignature = exports.trackReceivedTokenAndTx = exports.deployContractFromBytecode = exports.deployContract = exports.timeIncreaseTo = exports.deployAndGetContract = void 0;
|
|
3
|
+
exports.getEthPrice = exports.countInstructions = exports.signMessage = exports.fixSignature = exports.trackReceivedTokenAndTx = exports.deployContractFromBytecode = exports.deployContract = exports.timeIncreaseTo = exports.saveContractWithCreate3Deployment = exports.deployAndGetContractWithCreate3 = exports.deployAndGetContract = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
require("@nomicfoundation/hardhat-ethers"); // required to populate the HardhatRuntimeEnvironment with ethers
|
|
6
6
|
const hardhat_1 = tslib_1.__importStar(require("hardhat"));
|
|
@@ -11,6 +11,7 @@ const prelude_1 = require("./prelude");
|
|
|
11
11
|
* @category utils
|
|
12
12
|
* @notice Deploys a contract with optional Etherscan verification.
|
|
13
13
|
* @param options Deployment options. Default values:
|
|
14
|
+
* - constructorArgs: []
|
|
14
15
|
* - deploymentName: contractName
|
|
15
16
|
* - skipVerify: false
|
|
16
17
|
* - skipIfAlreadyDeployed: true
|
|
@@ -20,7 +21,7 @@ const prelude_1 = require("./prelude");
|
|
|
20
21
|
*/
|
|
21
22
|
async function deployAndGetContract(options) {
|
|
22
23
|
// Set default values for options
|
|
23
|
-
const { contractName, constructorArgs, deployments, deployer, deploymentName = contractName, skipVerify = false, skipIfAlreadyDeployed = true, gasPrice, maxPriorityFeePerGas, maxFeePerGas, log = true, waitConfirmations = prelude_1.constants.DEV_CHAINS.includes(hardhat_1.default.network.name) ? 1 : 6, } = options;
|
|
24
|
+
const { contractName, constructorArgs = [], deployments, deployer, deploymentName = contractName, skipVerify = false, skipIfAlreadyDeployed = true, gasPrice, maxPriorityFeePerGas, maxFeePerGas, log = true, waitConfirmations = prelude_1.constants.DEV_CHAINS.includes(hardhat_1.default.network.name) ? 1 : 6, } = options;
|
|
24
25
|
/**
|
|
25
26
|
* Deploys contract and tries to verify it on Etherscan if requested.
|
|
26
27
|
* @remarks
|
|
@@ -39,6 +40,7 @@ async function deployAndGetContract(options) {
|
|
|
39
40
|
log,
|
|
40
41
|
waitConfirmations,
|
|
41
42
|
};
|
|
43
|
+
// If hardhat-deploy `deploy` function logs need to be displayed, add HARDHAT_DEPLOY_LOG = 'true' to the .env file
|
|
42
44
|
const deployResult = await deploy(deploymentName, deployOptions);
|
|
43
45
|
if (!(skipVerify || prelude_1.constants.DEV_CHAINS.includes(hardhat_1.default.network.name))) {
|
|
44
46
|
await hardhat_1.default.run('verify:verify', {
|
|
@@ -52,6 +54,78 @@ async function deployAndGetContract(options) {
|
|
|
52
54
|
return await hardhat_1.ethers.getContractAt(contractName, deployResult.address);
|
|
53
55
|
}
|
|
54
56
|
exports.deployAndGetContract = deployAndGetContract;
|
|
57
|
+
/**
|
|
58
|
+
* @category utils
|
|
59
|
+
* @notice Deploys a contract using create3 and saves the deployment information.
|
|
60
|
+
* @param options Deployment options. Default values:
|
|
61
|
+
* - constructorArgs: []
|
|
62
|
+
* - txSigner: first signer in the environment
|
|
63
|
+
* - deploymentName: contractName
|
|
64
|
+
* - skipVerify: false
|
|
65
|
+
* - waitConfirmations: 1 on dev chains, 6 on others
|
|
66
|
+
* @returns The deployed contract instance.
|
|
67
|
+
*/
|
|
68
|
+
async function deployAndGetContractWithCreate3(options) {
|
|
69
|
+
// Set default values for options
|
|
70
|
+
const { create3Deployer, salt, contractName, constructorArgs = [], deployments, txSigner = (await hardhat_1.ethers.getSigners())[0], deploymentName = contractName, skipVerify = false, gasPrice, maxPriorityFeePerGas, maxFeePerGas, waitConfirmations = prelude_1.constants.DEV_CHAINS.includes(hardhat_1.default.network.name) ? 1 : 6, } = options;
|
|
71
|
+
const deployer = await hardhat_1.ethers.getContractAt('ICreate3Deployer', create3Deployer);
|
|
72
|
+
const CustomContract = await hardhat_1.ethers.getContractFactory(contractName);
|
|
73
|
+
const deployData = (await CustomContract.getDeployTransaction(...constructorArgs)).data;
|
|
74
|
+
const txn = await deployer.connect(txSigner).deploy(salt, deployData, { gasPrice, maxPriorityFeePerGas, maxFeePerGas });
|
|
75
|
+
const receipt = await txn.wait(waitConfirmations);
|
|
76
|
+
const customContractAddress = await deployer.addressOf(salt);
|
|
77
|
+
console.log(`${contractName} deployed to: ${customContractAddress}`);
|
|
78
|
+
return await saveContractWithCreate3Deployment(txSigner.provider, deployments, contractName, deploymentName, constructorArgs, salt, create3Deployer, receipt.hash, skipVerify);
|
|
79
|
+
}
|
|
80
|
+
exports.deployAndGetContractWithCreate3 = deployAndGetContractWithCreate3;
|
|
81
|
+
/**
|
|
82
|
+
* @category utils
|
|
83
|
+
* @notice Saves the deployment information using the deploy transaction hash.
|
|
84
|
+
* @param provider JSON RPC provider or Hardhat Ethers Provider.
|
|
85
|
+
* @param deployments Deployment facilitator object from Hardhat.
|
|
86
|
+
* @param contractName Name of the contract to deploy.
|
|
87
|
+
* @param deploymentName Optional custom name for deployment.
|
|
88
|
+
* @param constructorArgs Arguments for the contract's constructor.
|
|
89
|
+
* @param salt Salt value for create3 deployment.
|
|
90
|
+
* @param create3Deployer Address of the create3 deployer contract.
|
|
91
|
+
* @param deployTxHash Transaction hash of the create3 deployment.
|
|
92
|
+
* @param skipVerify Skips Etherscan verification if true.
|
|
93
|
+
* @returns The deployed contract instance.
|
|
94
|
+
*/
|
|
95
|
+
async function saveContractWithCreate3Deployment(provider, deployments, contractName, deploymentName, constructorArgs, // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
96
|
+
salt, create3Deployer, deployTxHash, skipVerify = false) {
|
|
97
|
+
const deployer = await hardhat_1.ethers.getContractAt('ICreate3Deployer', create3Deployer);
|
|
98
|
+
const contract = await deployer.addressOf(salt);
|
|
99
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
100
|
+
const receipt = await provider.getTransactionReceipt(deployTxHash);
|
|
101
|
+
if (receipt != null) {
|
|
102
|
+
// conver ethers.TransactionReceipt object to hardhat-deploy.Receipt object
|
|
103
|
+
receipt.transactionHash = receipt.transactionHash || receipt.hash;
|
|
104
|
+
receipt.transactionIndex = receipt.transactionIndex || receipt.index;
|
|
105
|
+
['provider', 'blobGasPrice', 'type', 'root', 'hash', 'index'].forEach(key => delete receipt[key]);
|
|
106
|
+
}
|
|
107
|
+
if (!(skipVerify || prelude_1.constants.DEV_CHAINS.includes(hardhat_1.default.network.name))) {
|
|
108
|
+
await hardhat_1.default.run('verify:verify', {
|
|
109
|
+
address: contract,
|
|
110
|
+
constructorArguments: constructorArgs,
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
console.log('Skipping verification');
|
|
115
|
+
}
|
|
116
|
+
const ContractArtifact = await deployments.getArtifact(contractName);
|
|
117
|
+
const ContractDeploymentData = {};
|
|
118
|
+
ContractDeploymentData.address = contract;
|
|
119
|
+
ContractDeploymentData.transactionHash = receipt.hash;
|
|
120
|
+
ContractDeploymentData.receipt = receipt;
|
|
121
|
+
ContractDeploymentData.args = constructorArgs;
|
|
122
|
+
ContractDeploymentData.abi = ContractArtifact.abi;
|
|
123
|
+
ContractDeploymentData.bytecode = ContractArtifact.bytecode;
|
|
124
|
+
ContractDeploymentData.deployedBytecode = ContractArtifact.deployedBytecode;
|
|
125
|
+
await deployments.save(deploymentName, ContractDeploymentData);
|
|
126
|
+
return await hardhat_1.ethers.getContractAt(contractName, contract);
|
|
127
|
+
}
|
|
128
|
+
exports.saveContractWithCreate3Deployment = saveContractWithCreate3Deployment;
|
|
55
129
|
/**
|
|
56
130
|
* @category utils
|
|
57
131
|
* @notice Advances the blockchain time to a specific timestamp for testing purposes.
|
package/dist/src/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":";;;;AAAA,2CAAyC,CAAE,iEAAiE;AAC5G,2DAAsC;AACtC,sFAAgE;
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":";;;;AAAA,2CAAyC,CAAE,iEAAiE;AAC5G,2DAAsC;AACtC,sFAAgE;AAEhE,oEAA+B;AAI/B,uCAAsC;AAiDtC;;;;;;;;;;;GAWG;AACI,KAAK,UAAU,oBAAoB,CAAC,OAA8B;IACrE,iCAAiC;IACjC,MAAM,EACF,YAAY,EACZ,eAAe,GAAG,EAAE,EACpB,WAAW,EACX,QAAQ,EACR,cAAc,GAAG,YAAY,EAC7B,UAAU,GAAG,KAAK,EAClB,qBAAqB,GAAG,IAAI,EAC5B,QAAQ,EACR,oBAAoB,EACpB,YAAY,EACZ,GAAG,GAAG,IAAI,EACV,iBAAiB,GAAG,mBAAS,CAAC,UAAU,CAAC,QAAQ,CAAC,iBAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAC9E,GAAG,OAAO,CAAC;IAEZ;;;;;OAKG;IACH,MAAM,EAAE,MAAM,EAAE,GAAG,WAAW,CAAC;IAE/B,MAAM,aAAa,GAAkB;QACjC,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,YAAY;QACtB,qBAAqB;QACrB,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE;QAC9B,oBAAoB,EAAE,oBAAoB,EAAE,QAAQ,EAAE;QACtD,Y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E,CAAC;IACxB,IAAI,CAAC;QACD,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAuB,CAAA,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC;IAChG,CAAC;IAAC,MAAM,CAAC;QACL,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;IAC/D,CAAC;IACD,OAAO,MAAM,CAAC;AAClB,CAAC;AAdD,kCAcC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { BaseContract, FunctionFragment, Interface, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener } from "../../../common";
|
|
3
|
+
export interface Create3Interface extends Interface {
|
|
4
|
+
}
|
|
5
|
+
export interface Create3 extends BaseContract {
|
|
6
|
+
connect(runner?: ContractRunner | null): Create3;
|
|
7
|
+
waitForDeployment(): Promise<this>;
|
|
8
|
+
interface: Create3Interface;
|
|
9
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
10
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
11
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
12
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
13
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
14
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
15
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
16
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
17
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
18
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
19
|
+
filters: {};
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Create3.js","sourceRoot":"","sources":["../../../../../typechain-types/@0xsequence/create3/contracts/Create3.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { Create3 } from "./Create3";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../typechain-types/@0xsequence/create3/contracts/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../typechain-types/@0xsequence/create3/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../typechain-types/@0xsequence/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { BaseContract, BytesLike, FunctionFragment, Result, Interface, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../../common";
|
|
3
|
+
export interface Create3MockInterface extends Interface {
|
|
4
|
+
getFunction(nameOrSignature: "addressOf" | "deploy"): FunctionFragment;
|
|
5
|
+
encodeFunctionData(functionFragment: "addressOf", values: [BytesLike]): string;
|
|
6
|
+
encodeFunctionData(functionFragment: "deploy", values: [BytesLike, BytesLike]): string;
|
|
7
|
+
decodeFunctionResult(functionFragment: "addressOf", data: BytesLike): Result;
|
|
8
|
+
decodeFunctionResult(functionFragment: "deploy", data: BytesLike): Result;
|
|
9
|
+
}
|
|
10
|
+
export interface Create3Mock extends BaseContract {
|
|
11
|
+
connect(runner?: ContractRunner | null): Create3Mock;
|
|
12
|
+
waitForDeployment(): Promise<this>;
|
|
13
|
+
interface: Create3MockInterface;
|
|
14
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
15
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
16
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
17
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
18
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
19
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
20
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
21
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
22
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
23
|
+
addressOf: TypedContractMethod<[salt: BytesLike], [string], "view">;
|
|
24
|
+
deploy: TypedContractMethod<[
|
|
25
|
+
salt: BytesLike,
|
|
26
|
+
code: BytesLike
|
|
27
|
+
], [
|
|
28
|
+
string
|
|
29
|
+
], "nonpayable">;
|
|
30
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
31
|
+
getFunction(nameOrSignature: "addressOf"): TypedContractMethod<[salt: BytesLike], [string], "view">;
|
|
32
|
+
getFunction(nameOrSignature: "deploy"): TypedContractMethod<[
|
|
33
|
+
salt: BytesLike,
|
|
34
|
+
code: BytesLike
|
|
35
|
+
], [
|
|
36
|
+
string
|
|
37
|
+
], "nonpayable">;
|
|
38
|
+
filters: {};
|
|
39
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Create3Mock.js","sourceRoot":"","sources":["../../../../../typechain-types/contracts/tests/mocks/Create3Mock.ts"],"names":[],"mappings":""}
|
|
@@ -8,6 +8,7 @@ export type { AddressSetMock } from "./AddressSetMock";
|
|
|
8
8
|
export type { BySigTraitsMock } from "./BySigTraitsMock";
|
|
9
9
|
export type { BytesMemoryMock } from "./BytesMemoryMock";
|
|
10
10
|
export type { BytesStorageMock } from "./BytesStorageMock";
|
|
11
|
+
export type { Create3Mock } from "./Create3Mock";
|
|
11
12
|
export type { DaiLikePermitMock } from "./DaiLikePermitMock";
|
|
12
13
|
export type { ERC1271WalletMock } from "./ERC1271WalletMock";
|
|
13
14
|
export type { EthReceiverMock } from "./EthReceiverMock";
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ContractFactory, ContractTransactionResponse } from "ethers";
|
|
2
|
+
import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers";
|
|
3
|
+
import type { NonPayableOverrides } from "../../../../common";
|
|
4
|
+
import type { Create3, Create3Interface } from "../../../../@0xsequence/create3/contracts/Create3";
|
|
5
|
+
type Create3ConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
|
|
6
|
+
export declare class Create3__factory extends ContractFactory {
|
|
7
|
+
constructor(...args: Create3ConstructorParams);
|
|
8
|
+
getDeployTransaction(overrides?: NonPayableOverrides & {
|
|
9
|
+
from?: string;
|
|
10
|
+
}): Promise<ContractDeployTransaction>;
|
|
11
|
+
deploy(overrides?: NonPayableOverrides & {
|
|
12
|
+
from?: string;
|
|
13
|
+
}): Promise<Create3 & {
|
|
14
|
+
deploymentTransaction(): ContractTransactionResponse;
|
|
15
|
+
}>;
|
|
16
|
+
connect(runner: ContractRunner | null): Create3__factory;
|
|
17
|
+
static readonly bytecode = "0x6080806040523460175760399081601c823930815050f35b5f80fdfe5f80fdfea264697066735822122099deb8fbccc0ed640c2ccaa57f93cfb12f791290c0a8032ea47dfc8b4ece489664736f6c63430008190033";
|
|
18
|
+
static readonly abi: readonly [{
|
|
19
|
+
readonly inputs: readonly [];
|
|
20
|
+
readonly name: "ErrorCreatingContract";
|
|
21
|
+
readonly type: "error";
|
|
22
|
+
}, {
|
|
23
|
+
readonly inputs: readonly [];
|
|
24
|
+
readonly name: "ErrorCreatingProxy";
|
|
25
|
+
readonly type: "error";
|
|
26
|
+
}, {
|
|
27
|
+
readonly inputs: readonly [];
|
|
28
|
+
readonly name: "TargetAlreadyExists";
|
|
29
|
+
readonly type: "error";
|
|
30
|
+
}];
|
|
31
|
+
static createInterface(): Create3Interface;
|
|
32
|
+
static connect(address: string, runner?: ContractRunner | null): Create3;
|
|
33
|
+
}
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Create3__factory = void 0;
|
|
4
|
+
/* Autogenerated file. Do not edit manually. */
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
|
+
{
|
|
10
|
+
inputs: [],
|
|
11
|
+
name: "ErrorCreatingContract",
|
|
12
|
+
type: "error",
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
inputs: [],
|
|
16
|
+
name: "ErrorCreatingProxy",
|
|
17
|
+
type: "error",
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
inputs: [],
|
|
21
|
+
name: "TargetAlreadyExists",
|
|
22
|
+
type: "error",
|
|
23
|
+
},
|
|
24
|
+
];
|
|
25
|
+
const _bytecode = "0x6080806040523460175760399081601c823930815050f35b5f80fdfe5f80fdfea264697066735822122099deb8fbccc0ed640c2ccaa57f93cfb12f791290c0a8032ea47dfc8b4ece489664736f6c63430008190033";
|
|
26
|
+
const isSuperArgs = (xs) => xs.length > 1;
|
|
27
|
+
class Create3__factory extends ethers_1.ContractFactory {
|
|
28
|
+
constructor(...args) {
|
|
29
|
+
if (isSuperArgs(args)) {
|
|
30
|
+
super(...args);
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
super(_abi, _bytecode, args[0]);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
getDeployTransaction(overrides) {
|
|
37
|
+
return super.getDeployTransaction(overrides || {});
|
|
38
|
+
}
|
|
39
|
+
deploy(overrides) {
|
|
40
|
+
return super.deploy(overrides || {});
|
|
41
|
+
}
|
|
42
|
+
connect(runner) {
|
|
43
|
+
return super.connect(runner);
|
|
44
|
+
}
|
|
45
|
+
static createInterface() {
|
|
46
|
+
return new ethers_1.Interface(_abi);
|
|
47
|
+
}
|
|
48
|
+
static connect(address, runner) {
|
|
49
|
+
return new ethers_1.Contract(address, _abi, runner);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.Create3__factory = Create3__factory;
|
|
53
|
+
Create3__factory.bytecode = _bytecode;
|
|
54
|
+
Create3__factory.abi = _abi;
|
|
55
|
+
//# sourceMappingURL=Create3__factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Create3__factory.js","sourceRoot":"","sources":["../../../../../../typechain-types/factories/@0xsequence/create3/contracts/Create3__factory.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;AACpB,mCAKgB;AAQhB,MAAM,IAAI,GAAG;IACX;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,uBAAuB;QAC7B,IAAI,EAAE,OAA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|
1
|
+
export { Create3__factory } from "./Create3__factory";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Create3__factory = void 0;
|
|
4
|
+
/* Autogenerated file. Do not edit manually. */
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
var Create3__factory_1 = require("./Create3__factory");
|
|
8
|
+
Object.defineProperty(exports, "Create3__factory", { enumerable: true, get: function () { return Create3__factory_1.Create3__factory; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../typechain-types/factories/@0xsequence/create3/contracts/index.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;AACpB,uDAAsD;AAA7C,oHAAA,gBAAgB,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as contracts from "./contracts";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.contracts = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
/* Autogenerated file. Do not edit manually. */
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
exports.contracts = tslib_1.__importStar(require("./contracts"));
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../typechain-types/factories/@0xsequence/create3/index.ts"],"names":[],"mappings":";;;;AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;AACpB,iEAAyC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as create3 from "./create3";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.create3 = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
/* Autogenerated file. Do not edit manually. */
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
exports.create3 = tslib_1.__importStar(require("./create3"));
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../typechain-types/factories/@0xsequence/index.ts"],"names":[],"mappings":";;;;AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;AACpB,6DAAqC"}
|
|
@@ -14,7 +14,7 @@ export declare class ECDSATest__factory extends ContractFactory {
|
|
|
14
14
|
deploymentTransaction(): ContractTransactionResponse;
|
|
15
15
|
}>;
|
|
16
16
|
connect(runner: ContractRunner | null): ECDSATest__factory;
|
|
17
|
-
static readonly bytecode = "
|
|
17
|
+
static readonly bytecode = "0x60808060405234601557610a05908161001a8239f35b5f80fdfe604060808152600480361015610013575f80fd5b5f3560e01c908163126442731461034f57816319045a25146102de578163238a4d1e146102c05781633f91b7f6146102a25781634cf302cf146102845781634d84f864146102665781635b3cc7c5146102485781637df7a71c146101d8578163918a15cf14610173578163948696cb14610155578163a005410b146100f457508063c479e1b3146100d65763d573e327146100ac575f80fd5b346100d2576020906100c96100c036610456565b92919091610993565b90519015158152f35b5f80fd5b50346100d2576020906100c96100eb366104af565b93929092610940565b82346100d25760607ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100d25773ffffffffffffffffffffffffffffffffffffffff61014d6020936044359060243590356108b0565b915191168152f35b82346100d2576020906100c961016a36610456565b92919091610874565b82346100d25760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100d2576020917f19457468657265756d205369676e6564204d6573736167653a0a3332000000005f5235601c52603c5f209051908152f35b82346100d257807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100d25760426020928251907f190100000000000000000000000000000000000000000000000000000000000082523560028201526024356022820152209051908152f35b82346100d2576020906100c961025d366103e4565b929190916107fa565b82346100d2576020906100c961027b366104af565b93929092610798565b82346100d2576020906100c961029936610456565b9291909161073c565b82346100d2576020906100c96102b736610456565b929190916106b2565b82346100d2576020906100c96102d5366103e4565b9291909161064d565b82346100d257807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100d2576024359167ffffffffffffffff83116100d25761014d73ffffffffffffffffffffffffffffffffffffffff91610348602095369083016103b6565b913561057f565b82346100d25760807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100d25760243560ff811681036100d25761014d73ffffffffffffffffffffffffffffffffffffffff91602094606435916044359135610516565b9181601f840112156100d25782359167ffffffffffffffff83116100d257602083818601950101116100d257565b60607ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc8201126100d25760043573ffffffffffffffffffffffffffffffffffffffff811681036100d25791602435916044359067ffffffffffffffff82116100d257610452916004016103b6565b9091565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc60809101126100d25760043573ffffffffffffffffffffffffffffffffffffffff811681036100d25790602435906044359060643590565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc60a09101126100d25760043573ffffffffffffffffffffffffffffffffffffffff811681036100d257906024359060443560ff811681036100d257906064359060843590565b91939290935f947f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a1831061054b575b50505050565b6020949550915f9391608093604051938452868401526040830152606082015282805260015afa505f51905f808080610545565b6040515f9493909290836041821461063457506040146105ef57505f9150815b6105a7575050565b7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a16060830151106105d6575050565b6020929350816080915f935282805260015afa505f5190565b7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8160208086940135918260ff1c601b0182860152604085013716606082015261059f565b9160408092508101355f1a60208401528183013761059f565b5f9060209293959495829680604051927f1626ba7e00000000000000000000000000000000000000000000000000000000978885526004850152604060248501528160448501526064840137606401915afa6106a65750565b5f51143d602014169150565b60a5602092935f929695968397604051927f1626ba7e00000000000000000000000000000000000000000000000000000000978885526004850152604060248501526041604485015260648401527f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8116608484015260ff1c601b0160a48301535afa6106a65750565b60a4602092935f929695968397604051927f1626ba7e000000000000000000000000000000000000000000000000000000009788855260048501526040602485015260406044850152606484015260848301525afa6106a65750565b5f919360a5916020949796978498604051937f1626ba7e0000000000000000000000000000000000000000000000000000000098898652600486015260406024860152604160448601526064850152608484015260a48301535afa6106a65750565b92919073ffffffffffffffffffffffffffffffffffffffff808516801561086a576040851491821561085f575b82610848575b505061083f5761083c9361064d565b90565b50505050600190565b90915061085685858561057f565b16145f8061082d565b604186149250610827565b5050505050505f90565b92919073ffffffffffffffffffffffffffffffffffffffff80851690811561086a576108a18585856108b0565b161461083f5761083c9361073c565b9092915f937f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8216917f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a183106109065750505050565b6020949550915f939160809360405193845260ff1c601b01868401526040830152606082015282805260015afa505f51905f808080610545565b9392919073ffffffffffffffffffffffffffffffffffffffff8086169081156109885761096f86868686610516565b161461097e5761083c94610798565b5050505050600190565b505050505050505f90565b92919073ffffffffffffffffffffffffffffffffffffffff80851690811561086a576109c08585856108b0565b161461083f5761083c936106b256fea26469706673582212208434c966364d8a6fe8a3743627f55789fcc10aaa2ac99fb0a2f411f7bcda448864736f6c63430008190033";
|
|
18
18
|
static readonly abi: readonly [{
|
|
19
19
|
readonly inputs: readonly [{
|
|
20
20
|
readonly internalType: "address";
|
|
@@ -409,7 +409,7 @@ const _abi = [
|
|
|
409
409
|
type: "function",
|
|
410
410
|
},
|
|
411
411
|
];
|
|
412
|
-
const _bytecode = "
|
|
412
|
+
const _bytecode = "0x60808060405234601557610a05908161001a8239f35b5f80fdfe604060808152600480361015610013575f80fd5b5f3560e01c908163126442731461034f57816319045a25146102de578163238a4d1e146102c05781633f91b7f6146102a25781634cf302cf146102845781634d84f864146102665781635b3cc7c5146102485781637df7a71c146101d8578163918a15cf14610173578163948696cb14610155578163a005410b146100f457508063c479e1b3146100d65763d573e327146100ac575f80fd5b346100d2576020906100c96100c036610456565b92919091610993565b90519015158152f35b5f80fd5b50346100d2576020906100c96100eb366104af565b93929092610940565b82346100d25760607ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100d25773ffffffffffffffffffffffffffffffffffffffff61014d6020936044359060243590356108b0565b915191168152f35b82346100d2576020906100c961016a36610456565b92919091610874565b82346100d25760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100d2576020917f19457468657265756d205369676e6564204d6573736167653a0a3332000000005f5235601c52603c5f209051908152f35b82346100d257807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100d25760426020928251907f190100000000000000000000000000000000000000000000000000000000000082523560028201526024356022820152209051908152f35b82346100d2576020906100c961025d366103e4565b929190916107fa565b82346100d2576020906100c961027b366104af565b93929092610798565b82346100d2576020906100c961029936610456565b9291909161073c565b82346100d2576020906100c96102b736610456565b929190916106b2565b82346100d2576020906100c96102d5366103e4565b9291909161064d565b82346100d257807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100d2576024359167ffffffffffffffff83116100d25761014d73ffffffffffffffffffffffffffffffffffffffff91610348602095369083016103b6565b913561057f565b82346100d25760807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100d25760243560ff811681036100d25761014d73ffffffffffffffffffffffffffffffffffffffff91602094606435916044359135610516565b9181601f840112156100d25782359167ffffffffffffffff83116100d257602083818601950101116100d257565b60607ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc8201126100d25760043573ffffffffffffffffffffffffffffffffffffffff811681036100d25791602435916044359067ffffffffffffffff82116100d257610452916004016103b6565b9091565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc60809101126100d25760043573ffffffffffffffffffffffffffffffffffffffff811681036100d25790602435906044359060643590565b7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc60a09101126100d25760043573ffffffffffffffffffffffffffffffffffffffff811681036100d257906024359060443560ff811681036100d257906064359060843590565b91939290935f947f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a1831061054b575b50505050565b6020949550915f9391608093604051938452868401526040830152606082015282805260015afa505f51905f808080610545565b6040515f9493909290836041821461063457506040146105ef57505f9150815b6105a7575050565b7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a16060830151106105d6575050565b6020929350816080915f935282805260015afa505f5190565b7f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8160208086940135918260ff1c601b0182860152604085013716606082015261059f565b9160408092508101355f1a60208401528183013761059f565b5f9060209293959495829680604051927f1626ba7e00000000000000000000000000000000000000000000000000000000978885526004850152604060248501528160448501526064840137606401915afa6106a65750565b5f51143d602014169150565b60a5602092935f929695968397604051927f1626ba7e00000000000000000000000000000000000000000000000000000000978885526004850152604060248501526041604485015260648401527f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8116608484015260ff1c601b0160a48301535afa6106a65750565b60a4602092935f929695968397604051927f1626ba7e000000000000000000000000000000000000000000000000000000009788855260048501526040602485015260406044850152606484015260848301525afa6106a65750565b5f919360a5916020949796978498604051937f1626ba7e0000000000000000000000000000000000000000000000000000000098898652600486015260406024860152604160448601526064850152608484015260a48301535afa6106a65750565b92919073ffffffffffffffffffffffffffffffffffffffff808516801561086a576040851491821561085f575b82610848575b505061083f5761083c9361064d565b90565b50505050600190565b90915061085685858561057f565b16145f8061082d565b604186149250610827565b5050505050505f90565b92919073ffffffffffffffffffffffffffffffffffffffff80851690811561086a576108a18585856108b0565b161461083f5761083c9361073c565b9092915f937f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8216917f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a183106109065750505050565b6020949550915f939160809360405193845260ff1c601b01868401526040830152606082015282805260015afa505f51905f808080610545565b9392919073ffffffffffffffffffffffffffffffffffffffff8086169081156109885761096f86868686610516565b161461097e5761083c94610798565b5050505050600190565b505050505050505f90565b92919073ffffffffffffffffffffffffffffffffffffffff80851690811561086a576109c08585856108b0565b161461083f5761083c936106b256fea26469706673582212208434c966364d8a6fe8a3743627f55789fcc10aaa2ac99fb0a2f411f7bcda448864736f6c63430008190033";
|
|
413
413
|
const isSuperArgs = (xs) => xs.length > 1;
|
|
414
414
|
class ECDSATest__factory extends ethers_1.ContractFactory {
|
|
415
415
|
constructor(...args) {
|