@safe-global/protocol-kit 3.0.1 → 3.1.0-alpha.0
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/src/Safe.d.ts +6 -0
- package/dist/src/Safe.js +17 -0
- package/dist/src/Safe.js.map +1 -1
- package/dist/src/contracts/utils.d.ts +2 -1
- package/dist/src/contracts/utils.js +37 -4
- package/dist/src/contracts/utils.js.map +1 -1
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.js +3 -2
- package/dist/src/index.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/contracts/index.d.ts +2 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/contracts/index.js +3 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/contracts/index.js.map +1 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/contracts/token/ERC20/ERC20Mintable.d.ts +211 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/contracts/token/ERC20/ERC20Mintable.js +3 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/contracts/token/ERC20/ERC20Mintable.js.map +1 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/contracts/token/ERC20/index.d.ts +1 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/contracts/token/ERC20/index.js +3 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/contracts/token/ERC20/index.js.map +1 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/contracts/token/index.d.ts +2 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/contracts/token/index.js +3 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/contracts/token/index.js.map +1 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/index.d.ts +2 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/index.js +3 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/index.js.map +1 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/common.d.ts +50 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/common.js +3 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/common.js.map +1 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/contracts/index.d.ts +2 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/contracts/index.js +3 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/contracts/index.js.map +1 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/contracts/safe_V1_2_0/index.d.ts +2 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/contracts/safe_V1_2_0/index.js +3 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/contracts/safe_V1_2_0/index.js.map +1 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/contracts/safe_V1_2_0/modules/SocialRecoveryModule.d.ts +137 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/contracts/safe_V1_2_0/modules/SocialRecoveryModule.js +3 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/contracts/safe_V1_2_0/modules/SocialRecoveryModule.js.map +1 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/contracts/safe_V1_2_0/modules/index.d.ts +1 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/contracts/safe_V1_2_0/modules/index.js +3 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/contracts/safe_V1_2_0/modules/index.js.map +1 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/contracts/index.d.ts +1 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/contracts/index.js +31 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/contracts/index.js.map +1 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/contracts/token/ERC20/ERC20Mintable__factory.d.ts +290 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/contracts/token/ERC20/ERC20Mintable__factory.js +384 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/contracts/token/ERC20/ERC20Mintable__factory.js.map +1 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/contracts/token/ERC20/index.d.ts +1 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/contracts/token/ERC20/index.js +9 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/contracts/token/ERC20/index.js.map +1 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/contracts/token/index.d.ts +1 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/contracts/token/index.js +31 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/contracts/token/index.js.map +1 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/index.d.ts +1 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/index.js +31 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/index.js.map +1 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/factories/contracts/index.d.ts +1 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/factories/contracts/index.js +31 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/factories/contracts/index.js.map +1 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/factories/contracts/safe_V1_2_0/index.d.ts +1 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/factories/contracts/safe_V1_2_0/index.js +31 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/factories/contracts/safe_V1_2_0/index.js.map +1 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/factories/contracts/safe_V1_2_0/modules/SocialRecoveryModule__factory.d.ts +240 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/factories/contracts/safe_V1_2_0/modules/SocialRecoveryModule__factory.js +319 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/factories/contracts/safe_V1_2_0/modules/SocialRecoveryModule__factory.js.map +1 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/factories/contracts/safe_V1_2_0/modules/index.d.ts +1 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/factories/contracts/safe_V1_2_0/modules/index.js +9 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/factories/contracts/safe_V1_2_0/modules/index.js.map +1 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/factories/index.d.ts +2 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/factories/index.js +32 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/factories/index.js.map +1 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/index.d.ts +9 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/index.js +32 -0
- package/dist/typechain/tests/ethers-v6/v1.2.0/index.js.map +1 -0
- package/dist/typechain/tests/ethers-v6/v1.3.0/DebugTransactionGuard.d.ts +154 -0
- package/dist/typechain/tests/ethers-v6/v1.3.0/DebugTransactionGuard.js +3 -0
- package/dist/typechain/tests/ethers-v6/v1.3.0/DebugTransactionGuard.js.map +1 -0
- package/dist/typechain/tests/ethers-v6/v1.3.0/common.d.ts +50 -0
- package/dist/typechain/tests/ethers-v6/v1.3.0/common.js +3 -0
- package/dist/typechain/tests/ethers-v6/v1.3.0/common.js.map +1 -0
- package/dist/typechain/tests/ethers-v6/v1.3.0/factories/DebugTransactionGuard__factory.d.ts +178 -0
- package/dist/typechain/tests/ethers-v6/v1.3.0/factories/DebugTransactionGuard__factory.js +236 -0
- package/dist/typechain/tests/ethers-v6/v1.3.0/factories/DebugTransactionGuard__factory.js.map +1 -0
- package/dist/typechain/tests/ethers-v6/v1.3.0/factories/index.d.ts +1 -0
- package/dist/typechain/tests/ethers-v6/v1.3.0/factories/index.js +9 -0
- package/dist/typechain/tests/ethers-v6/v1.3.0/factories/index.js.map +1 -0
- package/dist/typechain/tests/ethers-v6/v1.3.0/index.d.ts +3 -0
- package/dist/typechain/tests/ethers-v6/v1.3.0/index.js +30 -0
- package/dist/typechain/tests/ethers-v6/v1.3.0/index.js.map +1 -0
- package/dist/typechain/tests/ethers-v6/v1.4.1/DebugTransactionGuard.d.ts +168 -0
- package/dist/typechain/tests/ethers-v6/v1.4.1/DebugTransactionGuard.js +3 -0
- package/dist/typechain/tests/ethers-v6/v1.4.1/DebugTransactionGuard.js.map +1 -0
- package/dist/typechain/tests/ethers-v6/v1.4.1/common.d.ts +50 -0
- package/dist/typechain/tests/ethers-v6/v1.4.1/common.js +3 -0
- package/dist/typechain/tests/ethers-v6/v1.4.1/common.js.map +1 -0
- package/dist/typechain/tests/ethers-v6/v1.4.1/factories/DebugTransactionGuard__factory.d.ts +202 -0
- package/dist/typechain/tests/ethers-v6/v1.4.1/factories/DebugTransactionGuard__factory.js +267 -0
- package/dist/typechain/tests/ethers-v6/v1.4.1/factories/DebugTransactionGuard__factory.js.map +1 -0
- package/dist/typechain/tests/ethers-v6/v1.4.1/factories/index.d.ts +1 -0
- package/dist/typechain/tests/ethers-v6/v1.4.1/factories/index.js +9 -0
- package/dist/typechain/tests/ethers-v6/v1.4.1/factories/index.js.map +1 -0
- package/dist/typechain/tests/ethers-v6/v1.4.1/index.d.ts +3 -0
- package/dist/typechain/tests/ethers-v6/v1.4.1/index.js +30 -0
- package/dist/typechain/tests/ethers-v6/v1.4.1/index.js.map +1 -0
- package/dist/typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/index.d.ts +2 -0
- package/dist/typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/index.js +3 -0
- package/dist/typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/index.js.map +1 -0
- package/dist/typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/token/ERC20/ERC20Mintable.d.ts +72 -0
- package/dist/typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/token/ERC20/ERC20Mintable.js +6 -0
- package/dist/typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/token/ERC20/ERC20Mintable.js.map +1 -0
- package/dist/typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/token/ERC20/index.d.ts +1 -0
- package/dist/typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/token/ERC20/index.js +3 -0
- package/dist/typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/token/ERC20/index.js.map +1 -0
- package/dist/typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/token/index.d.ts +2 -0
- package/dist/typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/token/index.js +3 -0
- package/dist/typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/token/index.js.map +1 -0
- package/dist/typechain/tests/web3-v1/v1.2.0/@openzeppelin/index.d.ts +2 -0
- package/dist/typechain/tests/web3-v1/v1.2.0/@openzeppelin/index.js +3 -0
- package/dist/typechain/tests/web3-v1/v1.2.0/@openzeppelin/index.js.map +1 -0
- package/dist/typechain/tests/web3-v1/v1.2.0/contracts/index.d.ts +2 -0
- package/dist/typechain/tests/web3-v1/v1.2.0/contracts/index.js +3 -0
- package/dist/typechain/tests/web3-v1/v1.2.0/contracts/index.js.map +1 -0
- package/dist/typechain/tests/web3-v1/v1.2.0/contracts/safe_V1_2_0/index.d.ts +2 -0
- package/dist/typechain/tests/web3-v1/v1.2.0/contracts/safe_V1_2_0/index.js +3 -0
- package/dist/typechain/tests/web3-v1/v1.2.0/contracts/safe_V1_2_0/index.js.map +1 -0
- package/dist/typechain/tests/web3-v1/v1.2.0/contracts/safe_V1_2_0/modules/SocialRecoveryModule.d.ts +42 -0
- package/dist/typechain/tests/web3-v1/v1.2.0/contracts/safe_V1_2_0/modules/SocialRecoveryModule.js +6 -0
- package/dist/typechain/tests/web3-v1/v1.2.0/contracts/safe_V1_2_0/modules/SocialRecoveryModule.js.map +1 -0
- package/dist/typechain/tests/web3-v1/v1.2.0/contracts/safe_V1_2_0/modules/index.d.ts +1 -0
- package/dist/typechain/tests/web3-v1/v1.2.0/contracts/safe_V1_2_0/modules/index.js +3 -0
- package/dist/typechain/tests/web3-v1/v1.2.0/contracts/safe_V1_2_0/modules/index.js.map +1 -0
- package/dist/typechain/tests/web3-v1/v1.2.0/index.d.ts +4 -0
- package/dist/typechain/tests/web3-v1/v1.2.0/index.js +3 -0
- package/dist/typechain/tests/web3-v1/v1.2.0/index.js.map +1 -0
- package/dist/typechain/tests/web3-v1/v1.2.0/types.d.ts +54 -0
- package/dist/typechain/tests/web3-v1/v1.2.0/types.js +3 -0
- package/dist/typechain/tests/web3-v1/v1.2.0/types.js.map +1 -0
- package/dist/typechain/tests/web3-v1/v1.3.0/DebugTransactionGuard.d.ts +61 -0
- package/dist/typechain/tests/web3-v1/v1.3.0/DebugTransactionGuard.js +6 -0
- package/dist/typechain/tests/web3-v1/v1.3.0/DebugTransactionGuard.js.map +1 -0
- package/dist/typechain/tests/web3-v1/v1.3.0/index.d.ts +1 -0
- package/dist/typechain/tests/web3-v1/v1.3.0/index.js +3 -0
- package/dist/typechain/tests/web3-v1/v1.3.0/index.js.map +1 -0
- package/dist/typechain/tests/web3-v1/v1.3.0/types.d.ts +54 -0
- package/dist/typechain/tests/web3-v1/v1.3.0/types.js +3 -0
- package/dist/typechain/tests/web3-v1/v1.3.0/types.js.map +1 -0
- package/dist/typechain/tests/web3-v1/v1.4.1/DebugTransactionGuard.d.ts +66 -0
- package/dist/typechain/tests/web3-v1/v1.4.1/DebugTransactionGuard.js +6 -0
- package/dist/typechain/tests/web3-v1/v1.4.1/DebugTransactionGuard.js.map +1 -0
- package/dist/typechain/tests/web3-v1/v1.4.1/index.d.ts +1 -0
- package/dist/typechain/tests/web3-v1/v1.4.1/index.js +3 -0
- package/dist/typechain/tests/web3-v1/v1.4.1/index.js.map +1 -0
- package/dist/typechain/tests/web3-v1/v1.4.1/types.d.ts +54 -0
- package/dist/typechain/tests/web3-v1/v1.4.1/types.js +3 -0
- package/dist/typechain/tests/web3-v1/v1.4.1/types.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DebugTransactionGuard__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
|
+
anonymous: false,
|
|
11
|
+
inputs: [
|
|
12
|
+
{
|
|
13
|
+
indexed: true,
|
|
14
|
+
internalType: "address",
|
|
15
|
+
name: "safe",
|
|
16
|
+
type: "address",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
indexed: true,
|
|
20
|
+
internalType: "bytes32",
|
|
21
|
+
name: "txHash",
|
|
22
|
+
type: "bytes32",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
indexed: true,
|
|
26
|
+
internalType: "uint256",
|
|
27
|
+
name: "nonce",
|
|
28
|
+
type: "uint256",
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
indexed: false,
|
|
32
|
+
internalType: "bool",
|
|
33
|
+
name: "success",
|
|
34
|
+
type: "bool",
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
name: "GasUsage",
|
|
38
|
+
type: "event",
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
anonymous: false,
|
|
42
|
+
inputs: [
|
|
43
|
+
{
|
|
44
|
+
indexed: true,
|
|
45
|
+
internalType: "address",
|
|
46
|
+
name: "safe",
|
|
47
|
+
type: "address",
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
indexed: true,
|
|
51
|
+
internalType: "bytes32",
|
|
52
|
+
name: "txHash",
|
|
53
|
+
type: "bytes32",
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
indexed: false,
|
|
57
|
+
internalType: "address",
|
|
58
|
+
name: "to",
|
|
59
|
+
type: "address",
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
indexed: false,
|
|
63
|
+
internalType: "uint256",
|
|
64
|
+
name: "value",
|
|
65
|
+
type: "uint256",
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
indexed: false,
|
|
69
|
+
internalType: "bytes",
|
|
70
|
+
name: "data",
|
|
71
|
+
type: "bytes",
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
indexed: false,
|
|
75
|
+
internalType: "enum Enum.Operation",
|
|
76
|
+
name: "operation",
|
|
77
|
+
type: "uint8",
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
indexed: false,
|
|
81
|
+
internalType: "uint256",
|
|
82
|
+
name: "safeTxGas",
|
|
83
|
+
type: "uint256",
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
indexed: false,
|
|
87
|
+
internalType: "bool",
|
|
88
|
+
name: "usesRefund",
|
|
89
|
+
type: "bool",
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
indexed: false,
|
|
93
|
+
internalType: "uint256",
|
|
94
|
+
name: "nonce",
|
|
95
|
+
type: "uint256",
|
|
96
|
+
},
|
|
97
|
+
],
|
|
98
|
+
name: "TransactionDetails",
|
|
99
|
+
type: "event",
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
stateMutability: "nonpayable",
|
|
103
|
+
type: "fallback",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
inputs: [
|
|
107
|
+
{
|
|
108
|
+
internalType: "bytes32",
|
|
109
|
+
name: "txHash",
|
|
110
|
+
type: "bytes32",
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
internalType: "bool",
|
|
114
|
+
name: "success",
|
|
115
|
+
type: "bool",
|
|
116
|
+
},
|
|
117
|
+
],
|
|
118
|
+
name: "checkAfterExecution",
|
|
119
|
+
outputs: [],
|
|
120
|
+
stateMutability: "nonpayable",
|
|
121
|
+
type: "function",
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
inputs: [
|
|
125
|
+
{
|
|
126
|
+
internalType: "address",
|
|
127
|
+
name: "to",
|
|
128
|
+
type: "address",
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
internalType: "uint256",
|
|
132
|
+
name: "value",
|
|
133
|
+
type: "uint256",
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
internalType: "bytes",
|
|
137
|
+
name: "data",
|
|
138
|
+
type: "bytes",
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
internalType: "enum Enum.Operation",
|
|
142
|
+
name: "operation",
|
|
143
|
+
type: "uint8",
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
internalType: "uint256",
|
|
147
|
+
name: "safeTxGas",
|
|
148
|
+
type: "uint256",
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
internalType: "uint256",
|
|
152
|
+
name: "baseGas",
|
|
153
|
+
type: "uint256",
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
internalType: "uint256",
|
|
157
|
+
name: "gasPrice",
|
|
158
|
+
type: "uint256",
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
internalType: "address",
|
|
162
|
+
name: "gasToken",
|
|
163
|
+
type: "address",
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
internalType: "address payable",
|
|
167
|
+
name: "refundReceiver",
|
|
168
|
+
type: "address",
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
internalType: "bytes",
|
|
172
|
+
name: "",
|
|
173
|
+
type: "bytes",
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
internalType: "address",
|
|
177
|
+
name: "",
|
|
178
|
+
type: "address",
|
|
179
|
+
},
|
|
180
|
+
],
|
|
181
|
+
name: "checkTransaction",
|
|
182
|
+
outputs: [],
|
|
183
|
+
stateMutability: "nonpayable",
|
|
184
|
+
type: "function",
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
inputs: [
|
|
188
|
+
{
|
|
189
|
+
internalType: "bytes32",
|
|
190
|
+
name: "",
|
|
191
|
+
type: "bytes32",
|
|
192
|
+
},
|
|
193
|
+
],
|
|
194
|
+
name: "txNonces",
|
|
195
|
+
outputs: [
|
|
196
|
+
{
|
|
197
|
+
internalType: "uint256",
|
|
198
|
+
name: "",
|
|
199
|
+
type: "uint256",
|
|
200
|
+
},
|
|
201
|
+
],
|
|
202
|
+
stateMutability: "view",
|
|
203
|
+
type: "function",
|
|
204
|
+
},
|
|
205
|
+
];
|
|
206
|
+
const _bytecode = "0x608060405234801561001057600080fd5b5061075e806100206000396000f3fe608060405234801561001057600080fd5b50600436106100455760003560e01c806375f0bb52146100485780639327136814610250578063ddbdba631461028a57610046565b5b005b61024e600480360361016081101561005f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001906401000000008111156100a657600080fd5b8201836020820111156100b857600080fd5b803590602001918460018302840111640100000000831117156100da57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290803560ff169060200190929190803590602001909291908035906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001906401000000008111156101a857600080fd5b8201836020820111156101ba57600080fd5b803590602001918460018302840111640100000000831117156101dc57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506102cc565b005b6102886004803603604081101561026657600080fd5b8101908080359060200190929190803515159060200190929190505050610613565b005b6102b6600480360360208110156102a057600080fd5b8101908080359060200190929190505050610710565b6040518082815260200191505060405180910390f35b600080600033905060018173ffffffffffffffffffffffffffffffffffffffff1663affed0e06040518163ffffffff1660e01b815260040160206040518083038186803b15801561031c57600080fd5b505afa158015610330573d6000803e3d6000fd5b505050506040513d602081101561034657600080fd5b81019080805190602001909291905050500392508073ffffffffffffffffffffffffffffffffffffffff1663d8d11f788f8f8f8f8f8f8f8f8f8d6040518b63ffffffff1660e01b8152600401808b73ffffffffffffffffffffffffffffffffffffffff1681526020018a8152602001806020018960018111156103c557fe5b81526020018881526020018781526020018681526020018573ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff16815260200183815260200182810382528a818151815260200191508051906020019080838360005b83811015610452578082015181840152602081019050610437565b50505050905090810190601f16801561047f5780820380516001836020036101000a031916815260200191505b509b50505050505050505050505060206040518083038186803b1580156104a557600080fd5b505afa1580156104b9573d6000803e3d6000fd5b505050506040513d60208110156104cf57600080fd5b8101908080519060200190929190505050915050803373ffffffffffffffffffffffffffffffffffffffff167f1b68334da83afaffd8348d6c85c5146d8e7de31a6c034d2d522be12d615c4f7b8f8f8f8f8f60008f118a604051808873ffffffffffffffffffffffffffffffffffffffff1681526020018781526020018060200186600181111561055c57fe5b81526020018581526020018415158152602001838152602001828103825287818151815260200191508051906020019080838360005b838110156105ad578082015181840152602081019050610592565b50505050905090810190601f1680156105da5780820380516001836020036101000a031916815260200191505b509850505050505050505060405180910390a3816000808381526020019081526020016000208190555050505050505050505050505050565b600080600084815260200190815260200160002054905060008114156106a1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f436f756c64206e6f7420676574206e6f6e63650000000000000000000000000081525060200191505060405180910390fd5b60008060008581526020019081526020016000208190555080833373ffffffffffffffffffffffffffffffffffffffff167f0dcc0fb56a30b6fe6b188f45b47369bc7f3c928a9748e245a79fc3f54ddd05688560405180821515815260200191505060405180910390a4505050565b6000602052806000526040600020600091509050548156fea26469706673582212203d9744d3d3cc44b54b7478cf053b7ae087d0ccebb0335c3e3ba60e8338d6d25964736f6c63430007060033";
|
|
207
|
+
const isSuperArgs = (xs) => xs.length > 1;
|
|
208
|
+
class DebugTransactionGuard__factory extends ethers_1.ContractFactory {
|
|
209
|
+
constructor(...args) {
|
|
210
|
+
if (isSuperArgs(args)) {
|
|
211
|
+
super(...args);
|
|
212
|
+
}
|
|
213
|
+
else {
|
|
214
|
+
super(_abi, _bytecode, args[0]);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
getDeployTransaction(overrides) {
|
|
218
|
+
return super.getDeployTransaction(overrides || {});
|
|
219
|
+
}
|
|
220
|
+
deploy(overrides) {
|
|
221
|
+
return super.deploy(overrides || {});
|
|
222
|
+
}
|
|
223
|
+
connect(runner) {
|
|
224
|
+
return super.connect(runner);
|
|
225
|
+
}
|
|
226
|
+
static createInterface() {
|
|
227
|
+
return new ethers_1.Interface(_abi);
|
|
228
|
+
}
|
|
229
|
+
static connect(address, runner) {
|
|
230
|
+
return new ethers_1.Contract(address, _abi, runner);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
exports.DebugTransactionGuard__factory = DebugTransactionGuard__factory;
|
|
234
|
+
DebugTransactionGuard__factory.bytecode = _bytecode;
|
|
235
|
+
DebugTransactionGuard__factory.abi = _abi;
|
|
236
|
+
//# sourceMappingURL=DebugTransactionGuard__factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DebugTransactionGuard__factory.js","sourceRoot":"","sources":["../../../../../../typechain/tests/ethers-v6/v1.3.0/factories/DebugTransactionGuard__factory.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;AACpB,mCAKgB;AAQhB,MAAM,IAAI,GAAG;IACX;QACE,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE;YACN;gBACE,OAAO,EAAE,IAAI;gBACb,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,OAAO,EAAE,IAAI;gBACb,YAA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,SAAmD;QACjE,OAAO,KAAK,CAAC,MAAM,CAAC,SAAS,IAAI,EAAE,CAIlC,CAAC;IACJ,CAAC;IACQ,OAAO,CACd,MAA6B;QAE7B,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,CAAmC,CAAC;IACjE,CAAC;IAID,MAAM,CAAC,eAAe;QACpB,OAAO,IAAI,kBAAS,CAAC,IAAI,CAAmC,CAAC;IAC/D,CAAC;IACD,MAAM,CAAC,OAAO,CACZ,OAAe,EACf,MAA8B;QAE9B,OAAO,IAAI,iBAAQ,CACjB,OAAO,EACP,IAAI,EACJ,MAAM,CAC6B,CAAC;IACxC,CAAC;;AAzCH,wEA0CC;AAfiB,uCAAQ,GAAG,SAAS,CAAC;AACrB,kCAAG,GAAG,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DebugTransactionGuard__factory } from "./DebugTransactionGuard__factory";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DebugTransactionGuard__factory = void 0;
|
|
4
|
+
/* Autogenerated file. Do not edit manually. */
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
var DebugTransactionGuard__factory_1 = require("./DebugTransactionGuard__factory");
|
|
8
|
+
Object.defineProperty(exports, "DebugTransactionGuard__factory", { enumerable: true, get: function () { return DebugTransactionGuard__factory_1.DebugTransactionGuard__factory; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../typechain/tests/ethers-v6/v1.3.0/factories/index.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;AACpB,mFAAkF;AAAzE,gJAAA,8BAA8B,OAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.DebugTransactionGuard__factory = exports.factories = void 0;
|
|
27
|
+
exports.factories = __importStar(require("./factories"));
|
|
28
|
+
var DebugTransactionGuard__factory_1 = require("./factories/DebugTransactionGuard__factory");
|
|
29
|
+
Object.defineProperty(exports, "DebugTransactionGuard__factory", { enumerable: true, get: function () { return DebugTransactionGuard__factory_1.DebugTransactionGuard__factory; } });
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../typechain/tests/ethers-v6/v1.3.0/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,yDAAyC;AACzC,6FAA4F;AAAnF,gJAAA,8BAA8B,OAAA"}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "./common";
|
|
3
|
+
export interface DebugTransactionGuardInterface extends Interface {
|
|
4
|
+
getFunction(nameOrSignature: "checkAfterExecution" | "checkTransaction" | "supportsInterface" | "txNonces"): FunctionFragment;
|
|
5
|
+
getEvent(nameOrSignatureOrTopic: "GasUsage" | "TransactionDetails"): EventFragment;
|
|
6
|
+
encodeFunctionData(functionFragment: "checkAfterExecution", values: [BytesLike, boolean]): string;
|
|
7
|
+
encodeFunctionData(functionFragment: "checkTransaction", values: [
|
|
8
|
+
AddressLike,
|
|
9
|
+
BigNumberish,
|
|
10
|
+
BytesLike,
|
|
11
|
+
BigNumberish,
|
|
12
|
+
BigNumberish,
|
|
13
|
+
BigNumberish,
|
|
14
|
+
BigNumberish,
|
|
15
|
+
AddressLike,
|
|
16
|
+
AddressLike,
|
|
17
|
+
BytesLike,
|
|
18
|
+
AddressLike
|
|
19
|
+
]): string;
|
|
20
|
+
encodeFunctionData(functionFragment: "supportsInterface", values: [BytesLike]): string;
|
|
21
|
+
encodeFunctionData(functionFragment: "txNonces", values: [BytesLike]): string;
|
|
22
|
+
decodeFunctionResult(functionFragment: "checkAfterExecution", data: BytesLike): Result;
|
|
23
|
+
decodeFunctionResult(functionFragment: "checkTransaction", data: BytesLike): Result;
|
|
24
|
+
decodeFunctionResult(functionFragment: "supportsInterface", data: BytesLike): Result;
|
|
25
|
+
decodeFunctionResult(functionFragment: "txNonces", data: BytesLike): Result;
|
|
26
|
+
}
|
|
27
|
+
export declare namespace GasUsageEvent {
|
|
28
|
+
type InputTuple = [
|
|
29
|
+
safe: AddressLike,
|
|
30
|
+
txHash: BytesLike,
|
|
31
|
+
nonce: BigNumberish,
|
|
32
|
+
success: boolean
|
|
33
|
+
];
|
|
34
|
+
type OutputTuple = [
|
|
35
|
+
safe: string,
|
|
36
|
+
txHash: string,
|
|
37
|
+
nonce: bigint,
|
|
38
|
+
success: boolean
|
|
39
|
+
];
|
|
40
|
+
interface OutputObject {
|
|
41
|
+
safe: string;
|
|
42
|
+
txHash: string;
|
|
43
|
+
nonce: bigint;
|
|
44
|
+
success: boolean;
|
|
45
|
+
}
|
|
46
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
47
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
48
|
+
type Log = TypedEventLog<Event>;
|
|
49
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
50
|
+
}
|
|
51
|
+
export declare namespace TransactionDetailsEvent {
|
|
52
|
+
type InputTuple = [
|
|
53
|
+
safe: AddressLike,
|
|
54
|
+
txHash: BytesLike,
|
|
55
|
+
to: AddressLike,
|
|
56
|
+
value: BigNumberish,
|
|
57
|
+
data: BytesLike,
|
|
58
|
+
operation: BigNumberish,
|
|
59
|
+
safeTxGas: BigNumberish,
|
|
60
|
+
usesRefund: boolean,
|
|
61
|
+
nonce: BigNumberish,
|
|
62
|
+
signatures: BytesLike,
|
|
63
|
+
executor: AddressLike
|
|
64
|
+
];
|
|
65
|
+
type OutputTuple = [
|
|
66
|
+
safe: string,
|
|
67
|
+
txHash: string,
|
|
68
|
+
to: string,
|
|
69
|
+
value: bigint,
|
|
70
|
+
data: string,
|
|
71
|
+
operation: bigint,
|
|
72
|
+
safeTxGas: bigint,
|
|
73
|
+
usesRefund: boolean,
|
|
74
|
+
nonce: bigint,
|
|
75
|
+
signatures: string,
|
|
76
|
+
executor: string
|
|
77
|
+
];
|
|
78
|
+
interface OutputObject {
|
|
79
|
+
safe: string;
|
|
80
|
+
txHash: string;
|
|
81
|
+
to: string;
|
|
82
|
+
value: bigint;
|
|
83
|
+
data: string;
|
|
84
|
+
operation: bigint;
|
|
85
|
+
safeTxGas: bigint;
|
|
86
|
+
usesRefund: boolean;
|
|
87
|
+
nonce: bigint;
|
|
88
|
+
signatures: string;
|
|
89
|
+
executor: string;
|
|
90
|
+
}
|
|
91
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
92
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
93
|
+
type Log = TypedEventLog<Event>;
|
|
94
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
95
|
+
}
|
|
96
|
+
export interface DebugTransactionGuard extends BaseContract {
|
|
97
|
+
connect(runner?: ContractRunner | null): DebugTransactionGuard;
|
|
98
|
+
waitForDeployment(): Promise<this>;
|
|
99
|
+
interface: DebugTransactionGuardInterface;
|
|
100
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
101
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
102
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
103
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
104
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
105
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
106
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
107
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
108
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
109
|
+
checkAfterExecution: TypedContractMethod<[
|
|
110
|
+
txHash: BytesLike,
|
|
111
|
+
success: boolean
|
|
112
|
+
], [
|
|
113
|
+
void
|
|
114
|
+
], "nonpayable">;
|
|
115
|
+
checkTransaction: TypedContractMethod<[
|
|
116
|
+
to: AddressLike,
|
|
117
|
+
value: BigNumberish,
|
|
118
|
+
data: BytesLike,
|
|
119
|
+
operation: BigNumberish,
|
|
120
|
+
safeTxGas: BigNumberish,
|
|
121
|
+
baseGas: BigNumberish,
|
|
122
|
+
gasPrice: BigNumberish,
|
|
123
|
+
gasToken: AddressLike,
|
|
124
|
+
refundReceiver: AddressLike,
|
|
125
|
+
signatures: BytesLike,
|
|
126
|
+
executor: AddressLike
|
|
127
|
+
], [
|
|
128
|
+
void
|
|
129
|
+
], "nonpayable">;
|
|
130
|
+
supportsInterface: TypedContractMethod<[
|
|
131
|
+
interfaceId: BytesLike
|
|
132
|
+
], [
|
|
133
|
+
boolean
|
|
134
|
+
], "view">;
|
|
135
|
+
txNonces: TypedContractMethod<[arg0: BytesLike], [bigint], "view">;
|
|
136
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
137
|
+
getFunction(nameOrSignature: "checkAfterExecution"): TypedContractMethod<[
|
|
138
|
+
txHash: BytesLike,
|
|
139
|
+
success: boolean
|
|
140
|
+
], [
|
|
141
|
+
void
|
|
142
|
+
], "nonpayable">;
|
|
143
|
+
getFunction(nameOrSignature: "checkTransaction"): TypedContractMethod<[
|
|
144
|
+
to: AddressLike,
|
|
145
|
+
value: BigNumberish,
|
|
146
|
+
data: BytesLike,
|
|
147
|
+
operation: BigNumberish,
|
|
148
|
+
safeTxGas: BigNumberish,
|
|
149
|
+
baseGas: BigNumberish,
|
|
150
|
+
gasPrice: BigNumberish,
|
|
151
|
+
gasToken: AddressLike,
|
|
152
|
+
refundReceiver: AddressLike,
|
|
153
|
+
signatures: BytesLike,
|
|
154
|
+
executor: AddressLike
|
|
155
|
+
], [
|
|
156
|
+
void
|
|
157
|
+
], "nonpayable">;
|
|
158
|
+
getFunction(nameOrSignature: "supportsInterface"): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
|
|
159
|
+
getFunction(nameOrSignature: "txNonces"): TypedContractMethod<[arg0: BytesLike], [bigint], "view">;
|
|
160
|
+
getEvent(key: "GasUsage"): TypedContractEvent<GasUsageEvent.InputTuple, GasUsageEvent.OutputTuple, GasUsageEvent.OutputObject>;
|
|
161
|
+
getEvent(key: "TransactionDetails"): TypedContractEvent<TransactionDetailsEvent.InputTuple, TransactionDetailsEvent.OutputTuple, TransactionDetailsEvent.OutputObject>;
|
|
162
|
+
filters: {
|
|
163
|
+
"GasUsage(address,bytes32,uint256,bool)": TypedContractEvent<GasUsageEvent.InputTuple, GasUsageEvent.OutputTuple, GasUsageEvent.OutputObject>;
|
|
164
|
+
GasUsage: TypedContractEvent<GasUsageEvent.InputTuple, GasUsageEvent.OutputTuple, GasUsageEvent.OutputObject>;
|
|
165
|
+
"TransactionDetails(address,bytes32,address,uint256,bytes,uint8,uint256,bool,uint256,bytes,address)": TypedContractEvent<TransactionDetailsEvent.InputTuple, TransactionDetailsEvent.OutputTuple, TransactionDetailsEvent.OutputObject>;
|
|
166
|
+
TransactionDetails: TypedContractEvent<TransactionDetailsEvent.InputTuple, TransactionDetailsEvent.OutputTuple, TransactionDetailsEvent.OutputObject>;
|
|
167
|
+
};
|
|
168
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DebugTransactionGuard.js","sourceRoot":"","sources":["../../../../../typechain/tests/ethers-v6/v1.4.1/DebugTransactionGuard.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { FunctionFragment, Typed, EventFragment, ContractTransaction, ContractTransactionResponse, DeferredTopicFilter, EventLog, TransactionRequest, LogDescription } from "ethers";
|
|
2
|
+
export interface TypedDeferredTopicFilter<_TCEvent extends TypedContractEvent> extends DeferredTopicFilter {
|
|
3
|
+
}
|
|
4
|
+
export interface TypedContractEvent<InputTuple extends Array<any> = any, OutputTuple extends Array<any> = any, OutputObject = any> {
|
|
5
|
+
(...args: Partial<InputTuple>): TypedDeferredTopicFilter<TypedContractEvent<InputTuple, OutputTuple, OutputObject>>;
|
|
6
|
+
name: string;
|
|
7
|
+
fragment: EventFragment;
|
|
8
|
+
getFragment(...args: Partial<InputTuple>): EventFragment;
|
|
9
|
+
}
|
|
10
|
+
type __TypechainAOutputTuple<T> = T extends TypedContractEvent<infer _U, infer W> ? W : never;
|
|
11
|
+
type __TypechainOutputObject<T> = T extends TypedContractEvent<infer _U, infer _W, infer V> ? V : never;
|
|
12
|
+
export interface TypedEventLog<TCEvent extends TypedContractEvent> extends Omit<EventLog, "args"> {
|
|
13
|
+
args: __TypechainAOutputTuple<TCEvent> & __TypechainOutputObject<TCEvent>;
|
|
14
|
+
}
|
|
15
|
+
export interface TypedLogDescription<TCEvent extends TypedContractEvent> extends Omit<LogDescription, "args"> {
|
|
16
|
+
args: __TypechainAOutputTuple<TCEvent> & __TypechainOutputObject<TCEvent>;
|
|
17
|
+
}
|
|
18
|
+
export type TypedListener<TCEvent extends TypedContractEvent> = (...listenerArg: [
|
|
19
|
+
...__TypechainAOutputTuple<TCEvent>,
|
|
20
|
+
TypedEventLog<TCEvent>,
|
|
21
|
+
...undefined[]
|
|
22
|
+
]) => void;
|
|
23
|
+
export type MinEthersFactory<C, ARGS> = {
|
|
24
|
+
deploy(...a: ARGS[]): Promise<C>;
|
|
25
|
+
};
|
|
26
|
+
export type GetContractTypeFromFactory<F> = F extends MinEthersFactory<infer C, any> ? C : never;
|
|
27
|
+
export type GetARGsTypeFromFactory<F> = F extends MinEthersFactory<any, any> ? Parameters<F["deploy"]> : never;
|
|
28
|
+
export type StateMutability = "nonpayable" | "payable" | "view";
|
|
29
|
+
export type BaseOverrides = Omit<TransactionRequest, "to" | "data">;
|
|
30
|
+
export type NonPayableOverrides = Omit<BaseOverrides, "value" | "blockTag" | "enableCcipRead">;
|
|
31
|
+
export type PayableOverrides = Omit<BaseOverrides, "blockTag" | "enableCcipRead">;
|
|
32
|
+
export type ViewOverrides = Omit<TransactionRequest, "to" | "data">;
|
|
33
|
+
export type Overrides<S extends StateMutability> = S extends "nonpayable" ? NonPayableOverrides : S extends "payable" ? PayableOverrides : ViewOverrides;
|
|
34
|
+
export type PostfixOverrides<A extends Array<any>, S extends StateMutability> = A | [...A, Overrides<S>];
|
|
35
|
+
export type ContractMethodArgs<A extends Array<any>, S extends StateMutability> = PostfixOverrides<{
|
|
36
|
+
[I in keyof A]-?: A[I] | Typed;
|
|
37
|
+
}, S>;
|
|
38
|
+
export type DefaultReturnType<R> = R extends Array<any> ? R[0] : R;
|
|
39
|
+
export interface TypedContractMethod<A extends Array<any> = Array<any>, R = any, S extends StateMutability = "payable"> {
|
|
40
|
+
(...args: ContractMethodArgs<A, S>): S extends "view" ? Promise<DefaultReturnType<R>> : Promise<ContractTransactionResponse>;
|
|
41
|
+
name: string;
|
|
42
|
+
fragment: FunctionFragment;
|
|
43
|
+
getFragment(...args: ContractMethodArgs<A, S>): FunctionFragment;
|
|
44
|
+
populateTransaction(...args: ContractMethodArgs<A, S>): Promise<ContractTransaction>;
|
|
45
|
+
staticCall(...args: ContractMethodArgs<A, "view">): Promise<DefaultReturnType<R>>;
|
|
46
|
+
send(...args: ContractMethodArgs<A, S>): Promise<ContractTransactionResponse>;
|
|
47
|
+
estimateGas(...args: ContractMethodArgs<A, S>): Promise<bigint>;
|
|
48
|
+
staticCallResult(...args: ContractMethodArgs<A, "view">): Promise<R>;
|
|
49
|
+
}
|
|
50
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../typechain/tests/ethers-v6/v1.4.1/common.ts"],"names":[],"mappings":""}
|