@ercworldio/blockchain-shared 1.0.2-dev-PROJ-1265.0 → 1.0.2-dev-PROJ-1265.1.fix
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/build/chains/networks_dev copy.json +793 -0
- package/build/chains/networks_prod-ab120.json +644 -0
- package/build/chains/networks_prod-dz-v1.json +727 -0
- package/build/chains/networks_prod-sh.json +645 -0
- package/build/chains/networks_prod-yb.json +645 -0
- package/build/chains/networks_stg-ab120-mainnet.json +681 -0
- package/build/chains/networks_stg-ab120.json +597 -0
- package/build/chains/networks_stg-bu-v1.json +635 -0
- package/build/chains/networks_stg-yb-v1.json +574 -0
- package/build/contracts/artifacts/Escrow.json +16 -0
- package/build/contracts/typechain-types/contracts/lib/Events.d.ts +394 -0
- package/build/contracts/typechain-types/contracts/lib/Events.d.ts.map +1 -0
- package/build/contracts/typechain-types/contracts/lib/Events.js +2 -0
- package/build/contracts/typechain-types/contracts/lib/MultisigLib.d.ts +21 -0
- package/build/contracts/typechain-types/contracts/lib/MultisigLib.d.ts.map +1 -0
- package/build/contracts/typechain-types/contracts/lib/MultisigLib.js +2 -0
- package/build/contracts/typechain-types/contracts/lib/index.d.ts +3 -0
- package/build/contracts/typechain-types/contracts/lib/index.d.ts.map +1 -0
- package/build/contracts/typechain-types/contracts/lib/index.js +2 -0
- package/build/contracts/typechain-types/contracts/mock/ReentrantReceiver.d.ts +54 -0
- package/build/contracts/typechain-types/contracts/mock/ReentrantReceiver.d.ts.map +1 -0
- package/build/contracts/typechain-types/contracts/mock/ReentrantReceiver.js +2 -0
- package/build/contracts/typechain-types/contracts/mock/SelfDestructForcer.d.ts +26 -0
- package/build/contracts/typechain-types/contracts/mock/SelfDestructForcer.d.ts.map +1 -0
- package/build/contracts/typechain-types/contracts/mock/SelfDestructForcer.js +2 -0
- package/build/contracts/typechain-types/contracts/test/DelegatecallProbe.d.ts +30 -0
- package/build/contracts/typechain-types/contracts/test/DelegatecallProbe.d.ts.map +1 -0
- package/build/contracts/typechain-types/contracts/test/DelegatecallProbe.js +2 -0
- package/build/contracts/typechain-types/contracts/test/index.d.ts +2 -0
- package/build/contracts/typechain-types/contracts/test/index.d.ts.map +1 -0
- package/build/contracts/typechain-types/contracts/test/index.js +2 -0
- package/build/contracts/typechain-types/factories/contracts/lib/Events__factory.d.ts +373 -0
- package/build/contracts/typechain-types/factories/contracts/lib/Events__factory.d.ts.map +1 -0
- package/build/contracts/typechain-types/factories/contracts/lib/Events__factory.js +474 -0
- package/build/contracts/typechain-types/factories/contracts/lib/MultisigLib__factory.d.ts +99 -0
- package/build/contracts/typechain-types/factories/contracts/lib/MultisigLib__factory.d.ts.map +1 -0
- package/build/contracts/typechain-types/factories/contracts/lib/MultisigLib__factory.js +140 -0
- package/build/contracts/typechain-types/factories/contracts/lib/index.d.ts +3 -0
- package/build/contracts/typechain-types/factories/contracts/lib/index.d.ts.map +1 -0
- package/build/contracts/typechain-types/factories/contracts/lib/index.js +10 -0
- package/build/contracts/typechain-types/factories/contracts/mock/ReentrantReceiver__factory.d.ts +112 -0
- package/build/contracts/typechain-types/factories/contracts/mock/ReentrantReceiver__factory.d.ts.map +1 -0
- package/build/contracts/typechain-types/factories/contracts/mock/ReentrantReceiver__factory.js +156 -0
- package/build/contracts/typechain-types/factories/contracts/mock/SelfDestructForcer__factory.d.ts +37 -0
- package/build/contracts/typechain-types/factories/contracts/mock/SelfDestructForcer__factory.d.ts.map +1 -0
- package/build/contracts/typechain-types/factories/contracts/mock/SelfDestructForcer__factory.js +57 -0
- package/build/contracts/typechain-types/factories/contracts/test/DelegatecallProbe__factory.d.ts +55 -0
- package/build/contracts/typechain-types/factories/contracts/test/DelegatecallProbe__factory.d.ts.map +1 -0
- package/build/contracts/typechain-types/factories/contracts/test/DelegatecallProbe__factory.js +81 -0
- package/build/contracts/typechain-types/factories/contracts/test/index.d.ts +2 -0
- package/build/contracts/typechain-types/factories/contracts/test/index.d.ts.map +1 -0
- package/build/contracts/typechain-types/factories/contracts/test/index.js +8 -0
- package/build/entities/AdminOperationThresholds.d.ts +11 -0
- package/build/entities/AdminOperationThresholds.d.ts.map +1 -0
- package/build/entities/AdminOperationThresholds.js +52 -0
- package/build/entities/AdminWithdrawal.d.ts +20 -0
- package/build/entities/AdminWithdrawal.d.ts.map +1 -0
- package/build/entities/AdminWithdrawal.js +88 -0
- package/build/entities/CryptoOperationType.d.ts +18 -0
- package/build/entities/CryptoOperationType.d.ts.map +1 -0
- package/build/entities/CryptoOperationType.js +50 -0
- package/build/entities/EscrowRoles.d.ts +12 -0
- package/build/entities/EscrowRoles.d.ts.map +1 -0
- package/build/entities/EscrowRoles.js +57 -0
- package/build/entities/GlobalTimelock.d.ts +13 -0
- package/build/entities/GlobalTimelock.d.ts.map +1 -0
- package/build/entities/GlobalTimelock.js +60 -0
- package/build/entities/GranularTimelock .d.ts +12 -0
- package/build/entities/GranularTimelock .d.ts.map +1 -0
- package/build/entities/GranularTimelock .js +56 -0
- package/build/entities/GranularTimelock.d.ts +11 -0
- package/build/entities/GranularTimelock.d.ts.map +1 -0
- package/build/entities/GranularTimelock.js +52 -0
- package/build/entities/OperationType.d.ts +18 -0
- package/build/entities/OperationType.d.ts.map +1 -0
- package/build/entities/OperationType.js +50 -0
- package/build/entities/RoleHash.d.ts +11 -0
- package/build/entities/RoleHash.d.ts.map +1 -0
- package/build/entities/RoleHash.js +52 -0
- package/build/entities/ScheduleTransactionJob.d.ts +23 -0
- package/build/entities/ScheduleTransactionJob.d.ts.map +1 -0
- package/build/entities/ScheduleTransactionJob.js +89 -0
- package/build/entities/ScheduleTransactionJobHistory.d.ts +17 -0
- package/build/entities/ScheduleTransactionJobHistory.d.ts.map +1 -0
- package/build/entities/ScheduleTransactionJobHistory.js +66 -0
- package/build/entities/Signatures.d.ts +16 -0
- package/build/entities/Signatures.d.ts.map +1 -0
- package/build/entities/Signatures.js +72 -0
- package/build/entities/TokenExecutionThresholds.d.ts +15 -0
- package/build/entities/TokenExecutionThresholds.d.ts.map +1 -0
- package/build/entities/TokenExecutionThresholds.js +68 -0
- package/build/entities/WithdrawalCommitment.d.ts +15 -0
- package/build/entities/WithdrawalCommitment.d.ts.map +1 -0
- package/build/entities/WithdrawalCommitment.js +64 -0
- package/build/entities/index.d.ts +22 -0
- package/build/entities/index.d.ts.map +1 -0
- package/build/entities/index.js +37 -0
- package/build/services/AccountingService.d.ts +2 -0
- package/build/services/AccountingService.d.ts.map +1 -1
- package/build/services/AccountingService.js +35 -6
- package/build/services/AccountingServiceStatic.d.ts +14 -0
- package/build/services/AccountingServiceStatic.d.ts.map +1 -0
- package/build/services/AccountingServiceStatic.js +38 -0
- package/build/services/ClaimJobServiceStatic.d.ts +9 -0
- package/build/services/ClaimJobServiceStatic.d.ts.map +1 -0
- package/build/services/ClaimJobServiceStatic.js +54 -0
- package/build/services/WithdrawalService.d.ts +10 -0
- package/build/services/WithdrawalService.d.ts.map +1 -0
- package/build/services/WithdrawalService.js +38 -0
- package/build/services/db/multisig/MultisigService.d.ts +31 -0
- package/build/services/db/multisig/MultisigService.d.ts.map +1 -0
- package/build/services/db/multisig/MultisigService.js +134 -0
- package/build/services/db/roles/ContractRoles.d.ts +54 -0
- package/build/services/db/roles/ContractRoles.d.ts.map +1 -0
- package/build/services/db/roles/ContractRoles.js +87 -0
- package/build/services/db/timelock/ScheduleTransactionJobHistoryService.d.ts +14 -0
- package/build/services/db/timelock/ScheduleTransactionJobHistoryService.d.ts.map +1 -0
- package/build/services/db/timelock/ScheduleTransactionJobHistoryService.js +63 -0
- package/build/services/db/timelock/ScheduleTransactionService.d.ts +46 -0
- package/build/services/db/timelock/ScheduleTransactionService.d.ts.map +1 -0
- package/build/services/db/timelock/ScheduleTransactionService.js +476 -0
- package/build/services/rpc/RPC.d.ts +20 -0
- package/build/services/rpc/RPC.d.ts.map +1 -0
- package/build/services/rpc/RPC.js +49 -0
- package/build/services/solana/escrow/services/TreasuryWithdrawalSignature.d.ts +58 -0
- package/build/services/solana/escrow/services/TreasuryWithdrawalSignature.d.ts.map +1 -0
- package/build/services/solana/escrow/services/TreasuryWithdrawalSignature.js +109 -0
- package/build/services/types/db/index.d.ts +3 -0
- package/build/services/types/db/index.d.ts.map +1 -0
- package/build/services/types/db/index.js +18 -0
- package/build/services/types/db/multisig_service.d.ts +154 -0
- package/build/services/types/db/multisig_service.d.ts.map +1 -0
- package/build/services/types/db/multisig_service.js +2 -0
- package/build/services/types/db/timelock.d.ts +84 -0
- package/build/services/types/db/timelock.d.ts.map +1 -0
- package/build/services/types/db/timelock.js +2 -0
- package/build/services/types/db/withdrawal_service.d.ts +16 -0
- package/build/services/types/db/withdrawal_service.d.ts.map +1 -0
- package/build/services/types/db/withdrawal_service.js +2 -0
- package/build/services/types/watchdog.d.ts +9 -0
- package/build/services/types/watchdog.d.ts.map +1 -0
- package/build/services/types/watchdog.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MultisigLib__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
|
+
{
|
|
12
|
+
internalType: "uint256",
|
|
13
|
+
name: "required",
|
|
14
|
+
type: "uint256",
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
internalType: "uint256",
|
|
18
|
+
name: "provided",
|
|
19
|
+
type: "uint256",
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
name: "InsufficientExecutiveSigs",
|
|
23
|
+
type: "error",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
inputs: [
|
|
27
|
+
{
|
|
28
|
+
internalType: "uint256",
|
|
29
|
+
name: "requestId",
|
|
30
|
+
type: "uint256",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
internalType: "uint256",
|
|
34
|
+
name: "required",
|
|
35
|
+
type: "uint256",
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
internalType: "uint256",
|
|
39
|
+
name: "provided",
|
|
40
|
+
type: "uint256",
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
name: "InsufficientExecutiveSigsForRequest",
|
|
44
|
+
type: "error",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
inputs: [
|
|
48
|
+
{
|
|
49
|
+
internalType: "uint256",
|
|
50
|
+
name: "required",
|
|
51
|
+
type: "uint256",
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
internalType: "uint256",
|
|
55
|
+
name: "provided",
|
|
56
|
+
type: "uint256",
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
name: "InsufficientManagerSigs",
|
|
60
|
+
type: "error",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
inputs: [
|
|
64
|
+
{
|
|
65
|
+
internalType: "uint256",
|
|
66
|
+
name: "requestId",
|
|
67
|
+
type: "uint256",
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
internalType: "uint256",
|
|
71
|
+
name: "required",
|
|
72
|
+
type: "uint256",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
internalType: "uint256",
|
|
76
|
+
name: "provided",
|
|
77
|
+
type: "uint256",
|
|
78
|
+
},
|
|
79
|
+
],
|
|
80
|
+
name: "InsufficientManagerSigsForRequest",
|
|
81
|
+
type: "error",
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
inputs: [
|
|
85
|
+
{
|
|
86
|
+
internalType: "uint256",
|
|
87
|
+
name: "sig_idx",
|
|
88
|
+
type: "uint256",
|
|
89
|
+
},
|
|
90
|
+
],
|
|
91
|
+
name: "InvalidMultiSig",
|
|
92
|
+
type: "error",
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
inputs: [
|
|
96
|
+
{
|
|
97
|
+
internalType: "uint256",
|
|
98
|
+
name: "requestId",
|
|
99
|
+
type: "uint256",
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
internalType: "uint256",
|
|
103
|
+
name: "sig_idx",
|
|
104
|
+
type: "uint256",
|
|
105
|
+
},
|
|
106
|
+
],
|
|
107
|
+
name: "InvalidMultiSigForRequest",
|
|
108
|
+
type: "error",
|
|
109
|
+
},
|
|
110
|
+
];
|
|
111
|
+
const _bytecode = "0x6080806040523460175760399081601c823930815050f35b5f80fdfe5f80fdfea2646970667358221220b5f7e6d03a35ce48cab826e80ee9da9f04833a34f4dc08ea045cbedba43bdd3364736f6c634300081c0033";
|
|
112
|
+
const isSuperArgs = (xs) => xs.length > 1;
|
|
113
|
+
class MultisigLib__factory extends ethers_1.ContractFactory {
|
|
114
|
+
constructor(...args) {
|
|
115
|
+
if (isSuperArgs(args)) {
|
|
116
|
+
super(...args);
|
|
117
|
+
}
|
|
118
|
+
else {
|
|
119
|
+
super(_abi, _bytecode, args[0]);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
getDeployTransaction(overrides) {
|
|
123
|
+
return super.getDeployTransaction(overrides || {});
|
|
124
|
+
}
|
|
125
|
+
deploy(overrides) {
|
|
126
|
+
return super.deploy(overrides || {});
|
|
127
|
+
}
|
|
128
|
+
connect(runner) {
|
|
129
|
+
return super.connect(runner);
|
|
130
|
+
}
|
|
131
|
+
static createInterface() {
|
|
132
|
+
return new ethers_1.Interface(_abi);
|
|
133
|
+
}
|
|
134
|
+
static connect(address, runner) {
|
|
135
|
+
return new ethers_1.Contract(address, _abi, runner);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
exports.MultisigLib__factory = MultisigLib__factory;
|
|
139
|
+
MultisigLib__factory.bytecode = _bytecode;
|
|
140
|
+
MultisigLib__factory.abi = _abi;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/contracts/typechain-types/factories/contracts/lib/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MultisigLib__factory = exports.Events__factory = void 0;
|
|
4
|
+
/* Autogenerated file. Do not edit manually. */
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
var Events__factory_1 = require("./Events__factory");
|
|
8
|
+
Object.defineProperty(exports, "Events__factory", { enumerable: true, get: function () { return Events__factory_1.Events__factory; } });
|
|
9
|
+
var MultisigLib__factory_1 = require("./MultisigLib__factory");
|
|
10
|
+
Object.defineProperty(exports, "MultisigLib__factory", { enumerable: true, get: function () { return MultisigLib__factory_1.MultisigLib__factory; } });
|
package/build/contracts/typechain-types/factories/contracts/mock/ReentrantReceiver__factory.d.ts
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { ContractFactory, ContractTransactionResponse } from "ethers";
|
|
2
|
+
import type { Signer, AddressLike, ContractDeployTransaction, ContractRunner } from "ethers";
|
|
3
|
+
import type { NonPayableOverrides } from "../../../common";
|
|
4
|
+
import type { ReentrantReceiver, ReentrantReceiverInterface } from "../../../contracts/mock/ReentrantReceiver";
|
|
5
|
+
type ReentrantReceiverConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
|
|
6
|
+
export declare class ReentrantReceiver__factory extends ContractFactory {
|
|
7
|
+
constructor(...args: ReentrantReceiverConstructorParams);
|
|
8
|
+
getDeployTransaction(_target: AddressLike, overrides?: NonPayableOverrides & {
|
|
9
|
+
from?: string;
|
|
10
|
+
}): Promise<ContractDeployTransaction>;
|
|
11
|
+
deploy(_target: AddressLike, overrides?: NonPayableOverrides & {
|
|
12
|
+
from?: string;
|
|
13
|
+
}): Promise<ReentrantReceiver & {
|
|
14
|
+
deploymentTransaction(): ContractTransactionResponse;
|
|
15
|
+
}>;
|
|
16
|
+
connect(runner: ContractRunner | null): ReentrantReceiver__factory;
|
|
17
|
+
static readonly bytecode = "0x608034606f57601f6107d738819003918201601f19168301916001600160401b03831184841017607357808492602094604052833981010312606f57516001600160a01b03811690819003606f575f80546001600160a01b03191691909117905560405161074f90816100888239f35b5f80fd5b634e487b7160e01b5f52604160045260245ffdfe6080806040526004361015610209575b50361561001a575f80fd5b60015461002681610531565b61002c57005b5f809161004061003a61058b565b91610531565b601f81116101de575b5060018281556002805460ff1916909117905581548151916020019083906001600160a01b03165af161007a6106ba565b9061ff0060025491151560081b169061ff00191617600255805167ffffffffffffffff81116101ca576100ae600354610531565b601f8111610171575b50602091601f82116001146100f6576100e6925f91836100eb575b50508160011b915f199060031b1c19161790565b600355005b015190505f806100d2565b601f1982169260035f527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b915f5b85811061015957508360019510610141575b505050811b01600355005b01515f1960f88460031b161c191690555f8080610136565b91926020600181928685015181550194019201610124565b60035f526101ba907fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b601f840160051c810191602085106101c0575b601f0160051c01906106a4565b5f6100b7565b90915081906101ad565b634e487b7160e01b5f52604160045260245ffd5b6001835261020390601f0160051c5f5160206106fa5f395f51905f52908101906106a4565b5f610049565b5f3560e01c90816350fc86dd146105125750806359703b2e146104ed57806388478a39146104d2578063935e9e96146103f4578063b9f5e328146102e6578063d4b83992146102bf5763e0932d5414610262575f61000f565b346102bb575f8061027236610653565b8260018060a01b0381541692826040519384928337810182815203925af16102986106ba565b906102b76040519283921515835260406020840152604083019061062f565b0390f35b5f80fd5b346102bb575f3660031901126102bb575f546040516001600160a01b039091168152602090f35b346102bb576102f436610653565b67ffffffffffffffff81116101ca5761030e600154610531565b601f81116103b9575b505f601f8211600114610354578190610344935f926103495750508160011b915f199060031b1c19161790565b600155005b0135905083806100d2565b601f198216925f5160206106fa5f395f51905f52915f5b8581106103a157508360019510610388575b505050811b01600155005b01355f19600384901b60f8161c1916905582808061037d565b9092602060018192868601358155019401910161036b565b60015f526103ee905f5160206106fa5f395f51905f52601f840160051c810191602085106101c057601f0160051c01906106a4565b82610317565b346102bb575f3660031901126102bb576040515f60035461041481610531565b80845290600181169081156104ae5750600114610450575b6102b78361043c81850382610569565b60405191829160208352602083019061062f565b60035f9081527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b939250905b8082106104945750909150810160200161043c61042c565b91926001816020925483858801015201910190929161047c565b60ff191660208086019190915291151560051b8401909101915061043c905061042c565b346102bb575f3660031901126102bb576102b761043c61058b565b346102bb575f3660031901126102bb57602060ff60025460081c166040519015158152f35b346102bb575f3660031901126102bb5760209060ff6002541615158152f35b90600182811c9216801561055f575b602083101461054b57565b634e487b7160e01b5f52602260045260245ffd5b91607f1691610540565b90601f8019910116810190811067ffffffffffffffff8211176101ca57604052565b604051905f826001549161059e83610531565b808352926001811690811561061057506001146105c4575b6105c292500383610569565b565b5060015f90815290915f5160206106fa5f395f51905f525b8183106105f45750509060206105c2928201016105b6565b60209193508060019154838589010152019101909184926105dc565b602092506105c294915060ff191682840152151560051b8201016105b6565b805180835260209291819084018484015e5f828201840152601f01601f1916010190565b9060206003198301126102bb5760043567ffffffffffffffff81116102bb57826023820112156102bb5780600401359267ffffffffffffffff84116102bb57602484830101116102bb576024019190565b8181106106af575050565b5f81556001016106a4565b3d156106f4573d9067ffffffffffffffff82116101ca57604051916106e9601f8201601f191660200184610569565b82523d5f602084013e565b60609056feb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6a26469706673582212200e40a4f233153f0b5f0adb3eb0cb9d244bfa256545470613585bdc9c557db33264736f6c634300081c0033";
|
|
18
|
+
static readonly abi: readonly [{
|
|
19
|
+
readonly inputs: readonly [{
|
|
20
|
+
readonly internalType: "address";
|
|
21
|
+
readonly name: "_target";
|
|
22
|
+
readonly type: "address";
|
|
23
|
+
}];
|
|
24
|
+
readonly stateMutability: "nonpayable";
|
|
25
|
+
readonly type: "constructor";
|
|
26
|
+
}, {
|
|
27
|
+
readonly inputs: readonly [{
|
|
28
|
+
readonly internalType: "bytes";
|
|
29
|
+
readonly name: "data";
|
|
30
|
+
readonly type: "bytes";
|
|
31
|
+
}];
|
|
32
|
+
readonly name: "armReentry";
|
|
33
|
+
readonly outputs: readonly [];
|
|
34
|
+
readonly stateMutability: "nonpayable";
|
|
35
|
+
readonly type: "function";
|
|
36
|
+
}, {
|
|
37
|
+
readonly inputs: readonly [{
|
|
38
|
+
readonly internalType: "bytes";
|
|
39
|
+
readonly name: "data";
|
|
40
|
+
readonly type: "bytes";
|
|
41
|
+
}];
|
|
42
|
+
readonly name: "callTarget";
|
|
43
|
+
readonly outputs: readonly [{
|
|
44
|
+
readonly internalType: "bool";
|
|
45
|
+
readonly name: "";
|
|
46
|
+
readonly type: "bool";
|
|
47
|
+
}, {
|
|
48
|
+
readonly internalType: "bytes";
|
|
49
|
+
readonly name: "";
|
|
50
|
+
readonly type: "bytes";
|
|
51
|
+
}];
|
|
52
|
+
readonly stateMutability: "nonpayable";
|
|
53
|
+
readonly type: "function";
|
|
54
|
+
}, {
|
|
55
|
+
readonly inputs: readonly [];
|
|
56
|
+
readonly name: "reentryAttempted";
|
|
57
|
+
readonly outputs: readonly [{
|
|
58
|
+
readonly internalType: "bool";
|
|
59
|
+
readonly name: "";
|
|
60
|
+
readonly type: "bool";
|
|
61
|
+
}];
|
|
62
|
+
readonly stateMutability: "view";
|
|
63
|
+
readonly type: "function";
|
|
64
|
+
}, {
|
|
65
|
+
readonly inputs: readonly [];
|
|
66
|
+
readonly name: "reentryCalldata";
|
|
67
|
+
readonly outputs: readonly [{
|
|
68
|
+
readonly internalType: "bytes";
|
|
69
|
+
readonly name: "";
|
|
70
|
+
readonly type: "bytes";
|
|
71
|
+
}];
|
|
72
|
+
readonly stateMutability: "view";
|
|
73
|
+
readonly type: "function";
|
|
74
|
+
}, {
|
|
75
|
+
readonly inputs: readonly [];
|
|
76
|
+
readonly name: "reentryReturnData";
|
|
77
|
+
readonly outputs: readonly [{
|
|
78
|
+
readonly internalType: "bytes";
|
|
79
|
+
readonly name: "";
|
|
80
|
+
readonly type: "bytes";
|
|
81
|
+
}];
|
|
82
|
+
readonly stateMutability: "view";
|
|
83
|
+
readonly type: "function";
|
|
84
|
+
}, {
|
|
85
|
+
readonly inputs: readonly [];
|
|
86
|
+
readonly name: "reentrySucceeded";
|
|
87
|
+
readonly outputs: readonly [{
|
|
88
|
+
readonly internalType: "bool";
|
|
89
|
+
readonly name: "";
|
|
90
|
+
readonly type: "bool";
|
|
91
|
+
}];
|
|
92
|
+
readonly stateMutability: "view";
|
|
93
|
+
readonly type: "function";
|
|
94
|
+
}, {
|
|
95
|
+
readonly inputs: readonly [];
|
|
96
|
+
readonly name: "target";
|
|
97
|
+
readonly outputs: readonly [{
|
|
98
|
+
readonly internalType: "address";
|
|
99
|
+
readonly name: "";
|
|
100
|
+
readonly type: "address";
|
|
101
|
+
}];
|
|
102
|
+
readonly stateMutability: "view";
|
|
103
|
+
readonly type: "function";
|
|
104
|
+
}, {
|
|
105
|
+
readonly stateMutability: "payable";
|
|
106
|
+
readonly type: "receive";
|
|
107
|
+
}];
|
|
108
|
+
static createInterface(): ReentrantReceiverInterface;
|
|
109
|
+
static connect(address: string, runner?: ContractRunner | null): ReentrantReceiver;
|
|
110
|
+
}
|
|
111
|
+
export {};
|
|
112
|
+
//# sourceMappingURL=ReentrantReceiver__factory.d.ts.map
|
package/build/contracts/typechain-types/factories/contracts/mock/ReentrantReceiver__factory.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReentrantReceiver__factory.d.ts","sourceRoot":"","sources":["../../../../../../src/contracts/typechain-types/factories/contracts/mock/ReentrantReceiver__factory.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,eAAe,EACf,2BAA2B,EAE5B,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EACV,MAAM,EACN,WAAW,EACX,yBAAyB,EACzB,cAAc,EACf,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,KAAK,EACV,iBAAiB,EACjB,0BAA0B,EAC3B,MAAM,2CAA2C,CAAC;AA6HnD,KAAK,kCAAkC,GACnC,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,GACjB,qBAAqB,CAAC,OAAO,eAAe,CAAC,CAAC;AAMlD,qBAAa,0BAA2B,SAAQ,eAAe;gBACjD,GAAG,IAAI,EAAE,kCAAkC;IAQ9C,oBAAoB,CAC3B,OAAO,EAAE,WAAW,EACpB,SAAS,CAAC,EAAE,mBAAmB,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAClD,OAAO,CAAC,yBAAyB,CAAC;IAG5B,MAAM,CACb,OAAO,EAAE,WAAW,EACpB,SAAS,CAAC,EAAE,mBAAmB,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAEF,OAAO,CACtD,iBAAiB,GAAG;QAClB,qBAAqB,IAAI,2BAA2B,CAAC;KACtD,CACF;IAEM,OAAO,CAAC,MAAM,EAAE,cAAc,GAAG,IAAI,GAAG,0BAA0B;IAI3E,MAAM,CAAC,QAAQ,CAAC,QAAQ,s7HAAa;IACrC,MAAM,CAAC,QAAQ,CAAC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAQ;IAC3B,MAAM,CAAC,eAAe,IAAI,0BAA0B;IAGpD,MAAM,CAAC,OAAO,CACZ,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,cAAc,GAAG,IAAI,GAC7B,iBAAiB;CAGrB"}
|
package/build/contracts/typechain-types/factories/contracts/mock/ReentrantReceiver__factory.js
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReentrantReceiver__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
|
+
{
|
|
12
|
+
internalType: "address",
|
|
13
|
+
name: "_target",
|
|
14
|
+
type: "address",
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
stateMutability: "nonpayable",
|
|
18
|
+
type: "constructor",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
inputs: [
|
|
22
|
+
{
|
|
23
|
+
internalType: "bytes",
|
|
24
|
+
name: "data",
|
|
25
|
+
type: "bytes",
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
name: "armReentry",
|
|
29
|
+
outputs: [],
|
|
30
|
+
stateMutability: "nonpayable",
|
|
31
|
+
type: "function",
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
inputs: [
|
|
35
|
+
{
|
|
36
|
+
internalType: "bytes",
|
|
37
|
+
name: "data",
|
|
38
|
+
type: "bytes",
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
name: "callTarget",
|
|
42
|
+
outputs: [
|
|
43
|
+
{
|
|
44
|
+
internalType: "bool",
|
|
45
|
+
name: "",
|
|
46
|
+
type: "bool",
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
internalType: "bytes",
|
|
50
|
+
name: "",
|
|
51
|
+
type: "bytes",
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
stateMutability: "nonpayable",
|
|
55
|
+
type: "function",
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
inputs: [],
|
|
59
|
+
name: "reentryAttempted",
|
|
60
|
+
outputs: [
|
|
61
|
+
{
|
|
62
|
+
internalType: "bool",
|
|
63
|
+
name: "",
|
|
64
|
+
type: "bool",
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
stateMutability: "view",
|
|
68
|
+
type: "function",
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
inputs: [],
|
|
72
|
+
name: "reentryCalldata",
|
|
73
|
+
outputs: [
|
|
74
|
+
{
|
|
75
|
+
internalType: "bytes",
|
|
76
|
+
name: "",
|
|
77
|
+
type: "bytes",
|
|
78
|
+
},
|
|
79
|
+
],
|
|
80
|
+
stateMutability: "view",
|
|
81
|
+
type: "function",
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
inputs: [],
|
|
85
|
+
name: "reentryReturnData",
|
|
86
|
+
outputs: [
|
|
87
|
+
{
|
|
88
|
+
internalType: "bytes",
|
|
89
|
+
name: "",
|
|
90
|
+
type: "bytes",
|
|
91
|
+
},
|
|
92
|
+
],
|
|
93
|
+
stateMutability: "view",
|
|
94
|
+
type: "function",
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
inputs: [],
|
|
98
|
+
name: "reentrySucceeded",
|
|
99
|
+
outputs: [
|
|
100
|
+
{
|
|
101
|
+
internalType: "bool",
|
|
102
|
+
name: "",
|
|
103
|
+
type: "bool",
|
|
104
|
+
},
|
|
105
|
+
],
|
|
106
|
+
stateMutability: "view",
|
|
107
|
+
type: "function",
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
inputs: [],
|
|
111
|
+
name: "target",
|
|
112
|
+
outputs: [
|
|
113
|
+
{
|
|
114
|
+
internalType: "address",
|
|
115
|
+
name: "",
|
|
116
|
+
type: "address",
|
|
117
|
+
},
|
|
118
|
+
],
|
|
119
|
+
stateMutability: "view",
|
|
120
|
+
type: "function",
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
stateMutability: "payable",
|
|
124
|
+
type: "receive",
|
|
125
|
+
},
|
|
126
|
+
];
|
|
127
|
+
const _bytecode = "0x608034606f57601f6107d738819003918201601f19168301916001600160401b03831184841017607357808492602094604052833981010312606f57516001600160a01b03811690819003606f575f80546001600160a01b03191691909117905560405161074f90816100888239f35b5f80fd5b634e487b7160e01b5f52604160045260245ffdfe6080806040526004361015610209575b50361561001a575f80fd5b60015461002681610531565b61002c57005b5f809161004061003a61058b565b91610531565b601f81116101de575b5060018281556002805460ff1916909117905581548151916020019083906001600160a01b03165af161007a6106ba565b9061ff0060025491151560081b169061ff00191617600255805167ffffffffffffffff81116101ca576100ae600354610531565b601f8111610171575b50602091601f82116001146100f6576100e6925f91836100eb575b50508160011b915f199060031b1c19161790565b600355005b015190505f806100d2565b601f1982169260035f527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b915f5b85811061015957508360019510610141575b505050811b01600355005b01515f1960f88460031b161c191690555f8080610136565b91926020600181928685015181550194019201610124565b60035f526101ba907fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b601f840160051c810191602085106101c0575b601f0160051c01906106a4565b5f6100b7565b90915081906101ad565b634e487b7160e01b5f52604160045260245ffd5b6001835261020390601f0160051c5f5160206106fa5f395f51905f52908101906106a4565b5f610049565b5f3560e01c90816350fc86dd146105125750806359703b2e146104ed57806388478a39146104d2578063935e9e96146103f4578063b9f5e328146102e6578063d4b83992146102bf5763e0932d5414610262575f61000f565b346102bb575f8061027236610653565b8260018060a01b0381541692826040519384928337810182815203925af16102986106ba565b906102b76040519283921515835260406020840152604083019061062f565b0390f35b5f80fd5b346102bb575f3660031901126102bb575f546040516001600160a01b039091168152602090f35b346102bb576102f436610653565b67ffffffffffffffff81116101ca5761030e600154610531565b601f81116103b9575b505f601f8211600114610354578190610344935f926103495750508160011b915f199060031b1c19161790565b600155005b0135905083806100d2565b601f198216925f5160206106fa5f395f51905f52915f5b8581106103a157508360019510610388575b505050811b01600155005b01355f19600384901b60f8161c1916905582808061037d565b9092602060018192868601358155019401910161036b565b60015f526103ee905f5160206106fa5f395f51905f52601f840160051c810191602085106101c057601f0160051c01906106a4565b82610317565b346102bb575f3660031901126102bb576040515f60035461041481610531565b80845290600181169081156104ae5750600114610450575b6102b78361043c81850382610569565b60405191829160208352602083019061062f565b60035f9081527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b939250905b8082106104945750909150810160200161043c61042c565b91926001816020925483858801015201910190929161047c565b60ff191660208086019190915291151560051b8401909101915061043c905061042c565b346102bb575f3660031901126102bb576102b761043c61058b565b346102bb575f3660031901126102bb57602060ff60025460081c166040519015158152f35b346102bb575f3660031901126102bb5760209060ff6002541615158152f35b90600182811c9216801561055f575b602083101461054b57565b634e487b7160e01b5f52602260045260245ffd5b91607f1691610540565b90601f8019910116810190811067ffffffffffffffff8211176101ca57604052565b604051905f826001549161059e83610531565b808352926001811690811561061057506001146105c4575b6105c292500383610569565b565b5060015f90815290915f5160206106fa5f395f51905f525b8183106105f45750509060206105c2928201016105b6565b60209193508060019154838589010152019101909184926105dc565b602092506105c294915060ff191682840152151560051b8201016105b6565b805180835260209291819084018484015e5f828201840152601f01601f1916010190565b9060206003198301126102bb5760043567ffffffffffffffff81116102bb57826023820112156102bb5780600401359267ffffffffffffffff84116102bb57602484830101116102bb576024019190565b8181106106af575050565b5f81556001016106a4565b3d156106f4573d9067ffffffffffffffff82116101ca57604051916106e9601f8201601f191660200184610569565b82523d5f602084013e565b60609056feb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6a26469706673582212200e40a4f233153f0b5f0adb3eb0cb9d244bfa256545470613585bdc9c557db33264736f6c634300081c0033";
|
|
128
|
+
const isSuperArgs = (xs) => xs.length > 1;
|
|
129
|
+
class ReentrantReceiver__factory extends ethers_1.ContractFactory {
|
|
130
|
+
constructor(...args) {
|
|
131
|
+
if (isSuperArgs(args)) {
|
|
132
|
+
super(...args);
|
|
133
|
+
}
|
|
134
|
+
else {
|
|
135
|
+
super(_abi, _bytecode, args[0]);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
getDeployTransaction(_target, overrides) {
|
|
139
|
+
return super.getDeployTransaction(_target, overrides || {});
|
|
140
|
+
}
|
|
141
|
+
deploy(_target, overrides) {
|
|
142
|
+
return super.deploy(_target, overrides || {});
|
|
143
|
+
}
|
|
144
|
+
connect(runner) {
|
|
145
|
+
return super.connect(runner);
|
|
146
|
+
}
|
|
147
|
+
static createInterface() {
|
|
148
|
+
return new ethers_1.Interface(_abi);
|
|
149
|
+
}
|
|
150
|
+
static connect(address, runner) {
|
|
151
|
+
return new ethers_1.Contract(address, _abi, runner);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
exports.ReentrantReceiver__factory = ReentrantReceiver__factory;
|
|
155
|
+
ReentrantReceiver__factory.bytecode = _bytecode;
|
|
156
|
+
ReentrantReceiver__factory.abi = _abi;
|
package/build/contracts/typechain-types/factories/contracts/mock/SelfDestructForcer__factory.d.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ContractFactory, ContractTransactionResponse } from "ethers";
|
|
2
|
+
import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers";
|
|
3
|
+
import type { PayableOverrides } from "../../../common";
|
|
4
|
+
import type { SelfDestructForcer, SelfDestructForcerInterface } from "../../../contracts/mock/SelfDestructForcer";
|
|
5
|
+
type SelfDestructForcerConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
|
|
6
|
+
export declare class SelfDestructForcer__factory extends ContractFactory {
|
|
7
|
+
constructor(...args: SelfDestructForcerConstructorParams);
|
|
8
|
+
getDeployTransaction(overrides?: PayableOverrides & {
|
|
9
|
+
from?: string;
|
|
10
|
+
}): Promise<ContractDeployTransaction>;
|
|
11
|
+
deploy(overrides?: PayableOverrides & {
|
|
12
|
+
from?: string;
|
|
13
|
+
}): Promise<SelfDestructForcer & {
|
|
14
|
+
deploymentTransaction(): ContractTransactionResponse;
|
|
15
|
+
}>;
|
|
16
|
+
connect(runner: ContractRunner | null): SelfDestructForcer__factory;
|
|
17
|
+
static readonly bytecode = "0x6080806040526079908160108239f3fe6004361015600b575f80fd5b5f3560e01c62f55d9d14601c575f80fd5b34603f576020366003190112603f576004356001600160a01b0381168103603f57ff5b5f80fdfea2646970667358221220d5ca8953b345d592e2ebf52f51773d7f9be067896817da0c61aecfb5d1f2514a64736f6c634300081c0033";
|
|
18
|
+
static readonly abi: readonly [{
|
|
19
|
+
readonly inputs: readonly [];
|
|
20
|
+
readonly stateMutability: "payable";
|
|
21
|
+
readonly type: "constructor";
|
|
22
|
+
}, {
|
|
23
|
+
readonly inputs: readonly [{
|
|
24
|
+
readonly internalType: "address payable";
|
|
25
|
+
readonly name: "target";
|
|
26
|
+
readonly type: "address";
|
|
27
|
+
}];
|
|
28
|
+
readonly name: "destroy";
|
|
29
|
+
readonly outputs: readonly [];
|
|
30
|
+
readonly stateMutability: "nonpayable";
|
|
31
|
+
readonly type: "function";
|
|
32
|
+
}];
|
|
33
|
+
static createInterface(): SelfDestructForcerInterface;
|
|
34
|
+
static connect(address: string, runner?: ContractRunner | null): SelfDestructForcer;
|
|
35
|
+
}
|
|
36
|
+
export {};
|
|
37
|
+
//# sourceMappingURL=SelfDestructForcer__factory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelfDestructForcer__factory.d.ts","sourceRoot":"","sources":["../../../../../../src/contracts/typechain-types/factories/contracts/mock/SelfDestructForcer__factory.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,eAAe,EACf,2BAA2B,EAE5B,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EAAE,MAAM,EAAE,yBAAyB,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAChF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,KAAK,EACV,kBAAkB,EAClB,2BAA2B,EAC5B,MAAM,4CAA4C,CAAC;AA0BpD,KAAK,mCAAmC,GACpC,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,GACjB,qBAAqB,CAAC,OAAO,eAAe,CAAC,CAAC;AAMlD,qBAAa,2BAA4B,SAAQ,eAAe;gBAClD,GAAG,IAAI,EAAE,mCAAmC;IAQ/C,oBAAoB,CAC3B,SAAS,CAAC,EAAE,gBAAgB,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAC/C,OAAO,CAAC,yBAAyB,CAAC;IAG5B,MAAM,CAAC,SAAS,CAAC,EAAE,gBAAgB,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GACtB,OAAO,CAC7C,kBAAkB,GAAG;QACnB,qBAAqB,IAAI,2BAA2B,CAAC;KACtD,CACF;IAEM,OAAO,CAAC,MAAM,EAAE,cAAc,GAAG,IAAI,GAAG,2BAA2B;IAI5E,MAAM,CAAC,QAAQ,CAAC,QAAQ,0RAAa;IACrC,MAAM,CAAC,QAAQ,CAAC,GAAG;;;;;;;;;;;;;;OAAQ;IAC3B,MAAM,CAAC,eAAe,IAAI,2BAA2B;IAGrD,MAAM,CAAC,OAAO,CACZ,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,cAAc,GAAG,IAAI,GAC7B,kBAAkB;CAGtB"}
|
package/build/contracts/typechain-types/factories/contracts/mock/SelfDestructForcer__factory.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SelfDestructForcer__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
|
+
stateMutability: "payable",
|
|
12
|
+
type: "constructor",
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
inputs: [
|
|
16
|
+
{
|
|
17
|
+
internalType: "address payable",
|
|
18
|
+
name: "target",
|
|
19
|
+
type: "address",
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
name: "destroy",
|
|
23
|
+
outputs: [],
|
|
24
|
+
stateMutability: "nonpayable",
|
|
25
|
+
type: "function",
|
|
26
|
+
},
|
|
27
|
+
];
|
|
28
|
+
const _bytecode = "0x6080806040526079908160108239f3fe6004361015600b575f80fd5b5f3560e01c62f55d9d14601c575f80fd5b34603f576020366003190112603f576004356001600160a01b0381168103603f57ff5b5f80fdfea2646970667358221220d5ca8953b345d592e2ebf52f51773d7f9be067896817da0c61aecfb5d1f2514a64736f6c634300081c0033";
|
|
29
|
+
const isSuperArgs = (xs) => xs.length > 1;
|
|
30
|
+
class SelfDestructForcer__factory extends ethers_1.ContractFactory {
|
|
31
|
+
constructor(...args) {
|
|
32
|
+
if (isSuperArgs(args)) {
|
|
33
|
+
super(...args);
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
super(_abi, _bytecode, args[0]);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
getDeployTransaction(overrides) {
|
|
40
|
+
return super.getDeployTransaction(overrides || {});
|
|
41
|
+
}
|
|
42
|
+
deploy(overrides) {
|
|
43
|
+
return super.deploy(overrides || {});
|
|
44
|
+
}
|
|
45
|
+
connect(runner) {
|
|
46
|
+
return super.connect(runner);
|
|
47
|
+
}
|
|
48
|
+
static createInterface() {
|
|
49
|
+
return new ethers_1.Interface(_abi);
|
|
50
|
+
}
|
|
51
|
+
static connect(address, runner) {
|
|
52
|
+
return new ethers_1.Contract(address, _abi, runner);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
exports.SelfDestructForcer__factory = SelfDestructForcer__factory;
|
|
56
|
+
SelfDestructForcer__factory.bytecode = _bytecode;
|
|
57
|
+
SelfDestructForcer__factory.abi = _abi;
|
package/build/contracts/typechain-types/factories/contracts/test/DelegatecallProbe__factory.d.ts
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ContractFactory, ContractTransactionResponse } from "ethers";
|
|
2
|
+
import type { Signer, BytesLike, AddressLike, ContractDeployTransaction, ContractRunner } from "ethers";
|
|
3
|
+
import type { NonPayableOverrides } from "../../../common";
|
|
4
|
+
import type { DelegatecallProbe, DelegatecallProbeInterface } from "../../../contracts/test/DelegatecallProbe";
|
|
5
|
+
type DelegatecallProbeConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
|
|
6
|
+
export declare class DelegatecallProbe__factory extends ContractFactory {
|
|
7
|
+
constructor(...args: DelegatecallProbeConstructorParams);
|
|
8
|
+
getDeployTransaction(target: AddressLike, data: BytesLike, overrides?: NonPayableOverrides & {
|
|
9
|
+
from?: string;
|
|
10
|
+
}): Promise<ContractDeployTransaction>;
|
|
11
|
+
deploy(target: AddressLike, data: BytesLike, overrides?: NonPayableOverrides & {
|
|
12
|
+
from?: string;
|
|
13
|
+
}): Promise<DelegatecallProbe & {
|
|
14
|
+
deploymentTransaction(): ContractTransactionResponse;
|
|
15
|
+
}>;
|
|
16
|
+
connect(runner: ContractRunner | null): DelegatecallProbe__factory;
|
|
17
|
+
static readonly bytecode = "0x6080604052346100a55761048180380380610019816100bd565b92833981016040828203126100a5578151916001600160a01b03831683036100a5576020810151906001600160401b0382116100a557019181601f840112156100a557825161006f61006a826100e7565b6100bd565b92818452602082860101116100a5576020815f928261009697018387015e84010152610189565b6040516101c290816102bf8239f35b5f80fd5b634e487b7160e01b5f52604160045260245ffd5b6040519190601f01601f191682016001600160401b038111838210176100e257604052565b6100a9565b6001600160401b0381116100e257601f01601f191660200190565b90600182811c92168015610130575b602083101461011c57565b634e487b7160e01b5f52602260045260245ffd5b91607f1691610111565b601f8111610146575050565b5f805260205f20906020601f840160051c8301931061017f575b601f0160051c01905b818110610174575050565b5f8155600101610169565b9091508190610160565b5f918291602082519201905af4903d156102b6573d916101ab61006a846100e7565b9283523d5f602085013e5b159160ff196001541660ff8415161760015580519260018060401b0384116100e2576101eb846101e65f54610102565b61013a565b602093601f8111600114610238578061021b929394955f9161022d575b508160011b915f199060031b1c19161790565b5f555b6102255750565b602081519101fd5b90508401515f610208565b5f8052601f198116947f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563905f5b87811061029e57508260019495969710610286575b5050811b015f5561021e565b8501515f1960f88460031b161c191690555f8061027a565b90916020600181928589015181550193019101610265565b6060916101b656fe6080806040526004361015610012575f80fd5b5f3560e01c90816379b76a501461016d575063ebddbaf614610032575f80fd5b34610169575f366003190112610169576040515f5f54908160011c6001831692831561015f575b60208210841461014b57818552602085019390811561013257506001146100de575b50829003601f01601f191682019167ffffffffffffffff8311818410176100ca576040918391828452602083525180918160208501528484015e5f828201840152601f01601f19168101030190f35b634e487b7160e01b5f52604160045260245ffd5b90505f80527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5635f905b82821061011c5750602091508301015f61007b565b6001816020925483858901015201910190610107565b60ff1916845250151560051b830160200190505f61007b565b634e487b7160e01b5f52602260045260245ffd5b90607f1690610059565b5f80fd5b34610169575f3660031901126101695760209060ff6001541615158152f3fea26469706673582212200c95f4424c22e74ca0cb4875360f9aa245ef8f251e136c8d41d8ab5a08fd6f8964736f6c634300081c0033";
|
|
18
|
+
static readonly abi: readonly [{
|
|
19
|
+
readonly inputs: readonly [{
|
|
20
|
+
readonly internalType: "address";
|
|
21
|
+
readonly name: "target";
|
|
22
|
+
readonly type: "address";
|
|
23
|
+
}, {
|
|
24
|
+
readonly internalType: "bytes";
|
|
25
|
+
readonly name: "data";
|
|
26
|
+
readonly type: "bytes";
|
|
27
|
+
}];
|
|
28
|
+
readonly stateMutability: "nonpayable";
|
|
29
|
+
readonly type: "constructor";
|
|
30
|
+
}, {
|
|
31
|
+
readonly inputs: readonly [];
|
|
32
|
+
readonly name: "callSucceeded";
|
|
33
|
+
readonly outputs: readonly [{
|
|
34
|
+
readonly internalType: "bool";
|
|
35
|
+
readonly name: "";
|
|
36
|
+
readonly type: "bool";
|
|
37
|
+
}];
|
|
38
|
+
readonly stateMutability: "view";
|
|
39
|
+
readonly type: "function";
|
|
40
|
+
}, {
|
|
41
|
+
readonly inputs: readonly [];
|
|
42
|
+
readonly name: "returnData";
|
|
43
|
+
readonly outputs: readonly [{
|
|
44
|
+
readonly internalType: "bytes";
|
|
45
|
+
readonly name: "";
|
|
46
|
+
readonly type: "bytes";
|
|
47
|
+
}];
|
|
48
|
+
readonly stateMutability: "view";
|
|
49
|
+
readonly type: "function";
|
|
50
|
+
}];
|
|
51
|
+
static createInterface(): DelegatecallProbeInterface;
|
|
52
|
+
static connect(address: string, runner?: ContractRunner | null): DelegatecallProbe;
|
|
53
|
+
}
|
|
54
|
+
export {};
|
|
55
|
+
//# sourceMappingURL=DelegatecallProbe__factory.d.ts.map
|
package/build/contracts/typechain-types/factories/contracts/test/DelegatecallProbe__factory.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DelegatecallProbe__factory.d.ts","sourceRoot":"","sources":["../../../../../../src/contracts/typechain-types/factories/contracts/test/DelegatecallProbe__factory.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,eAAe,EACf,2BAA2B,EAE5B,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EACV,MAAM,EACN,SAAS,EACT,WAAW,EACX,yBAAyB,EACzB,cAAc,EACf,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,KAAK,EACV,iBAAiB,EACjB,0BAA0B,EAC3B,MAAM,2CAA2C,CAAC;AAkDnD,KAAK,kCAAkC,GACnC,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,GACjB,qBAAqB,CAAC,OAAO,eAAe,CAAC,CAAC;AAMlD,qBAAa,0BAA2B,SAAQ,eAAe;gBACjD,GAAG,IAAI,EAAE,kCAAkC;IAQ9C,oBAAoB,CAC3B,MAAM,EAAE,WAAW,EACnB,IAAI,EAAE,SAAS,EACf,SAAS,CAAC,EAAE,mBAAmB,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAClD,OAAO,CAAC,yBAAyB,CAAC;IAG5B,MAAM,CACb,MAAM,EAAE,WAAW,EACnB,IAAI,EAAE,SAAS,EACf,SAAS,CAAC,EAAE,mBAAmB,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAEG,OAAO,CAC3D,iBAAiB,GAAG;QAClB,qBAAqB,IAAI,2BAA2B,CAAC;KACtD,CACF;IAEM,OAAO,CAAC,MAAM,EAAE,cAAc,GAAG,IAAI,GAAG,0BAA0B;IAI3E,MAAM,CAAC,QAAQ,CAAC,QAAQ,0wEAAa;IACrC,MAAM,CAAC,QAAQ,CAAC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAQ;IAC3B,MAAM,CAAC,eAAe,IAAI,0BAA0B;IAGpD,MAAM,CAAC,OAAO,CACZ,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,cAAc,GAAG,IAAI,GAC7B,iBAAiB;CAGrB"}
|