@cryptonergy/smart-contracts-sdk 1.0.0-dev.3
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/types/index.d.ts +1 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/index.ts +11 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/IERC1363.ts +412 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/IERC1967.ts +168 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/IERC4626.ts +618 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable.ts +90 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.ts +4 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors.ts +69 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors.ts +69 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors.ts +69 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.ts +6 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/interfaces/index.ts +10 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.ts +105 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.ts +69 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/proxy/ERC1967/index.ts +5 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/proxy/Proxy.ts +69 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/proxy/beacon/IBeacon.ts +90 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/proxy/beacon/index.ts +4 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/proxy/index.ts +8 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/ERC20.ts +286 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts +262 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.ts +286 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/index.ts +4 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/index.ts +9 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/utils/SafeERC20.ts +69 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/token/ERC20/utils/index.ts +4 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/token/index.ts +5 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/Address.ts +69 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/Errors.ts +69 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/index.ts +9 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/introspection/IERC165.ts +94 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/introspection/index.ts +4 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/math/SafeCast.ts +69 -0
- package/dist/types/typechain-types/@openzeppelin/contracts/utils/math/index.ts +4 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.ts +186 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/access/index.ts +4 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/index.ts +11 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/proxy/index.ts +5 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.ts +105 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.ts +196 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts +5 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.ts +318 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC4626Upgradeable.ts +653 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/index.ts +4 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/token/ERC20/index.ts +6 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/token/index.ts +5 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.ts +105 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/utils/ReentrancyGuardUpgradeable.ts +105 -0
- package/dist/types/typechain-types/@openzeppelin/contracts-upgradeable/utils/index.ts +5 -0
- package/dist/types/typechain-types/@openzeppelin/index.ts +7 -0
- package/dist/types/typechain-types/common.ts +131 -0
- package/dist/types/typechain-types/contracts/ManagementFeeUpgradeableV1.ts +285 -0
- package/dist/types/typechain-types/contracts/PerformanceFeeUpgradeableV1.ts +320 -0
- package/dist/types/typechain-types/contracts/VaultFactoryV1.ts +456 -0
- package/dist/types/typechain-types/contracts/VaultV1.ts +1383 -0
- package/dist/types/typechain-types/contracts/index.ts +13 -0
- package/dist/types/typechain-types/contracts/mocks/MockERC20.ts +305 -0
- package/dist/types/typechain-types/contracts/mocks/index.ts +4 -0
- package/dist/types/typechain-types/contracts/providers/AddressProviderV1.ts +342 -0
- package/dist/types/typechain-types/contracts/providers/index.ts +4 -0
- package/dist/types/typechain-types/contracts/registers/VaultRegistryV1.ts +558 -0
- package/dist/types/typechain-types/contracts/registers/index.ts +4 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/index.ts +7 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/IERC1363__factory.ts +393 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/IERC1967__factory.ts +67 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/IERC4626__factory.ts +634 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable__factory.ts +38 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.ts +4 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors__factory.ts +127 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors__factory.ts +111 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors__factory.ts +128 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/index.ts +6 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/interfaces/index.ts +8 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy__factory.ts +144 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils__factory.ts +105 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/ERC1967/index.ts +5 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/Proxy__factory.ts +26 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/beacon/IBeacon__factory.ts +35 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/beacon/index.ts +4 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/proxy/index.ts +6 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.ts +330 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.ts +205 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.ts +247 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/index.ts +4 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/index.ts +7 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/SafeERC20__factory.ts +96 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/index.ts +4 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/token/index.ts +4 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/Address__factory.ts +75 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/Errors__factory.ts +101 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/index.ts +7 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/introspection/IERC165__factory.ts +41 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/introspection/index.ts +4 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/math/SafeCast__factory.ts +118 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/math/index.ts +4 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable__factory.ts +122 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/access/index.ts +4 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/index.ts +7 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/index.ts +4 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory.ts +48 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable__factory.ts +153 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts +5 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable__factory.ts +356 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC4626Upgradeable__factory.ts +841 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/index.ts +4 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/token/ERC20/index.ts +5 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/token/index.ts +4 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.ts +48 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/ReentrancyGuardUpgradeable__factory.ts +57 -0
- package/dist/types/typechain-types/factories/@openzeppelin/contracts-upgradeable/utils/index.ts +5 -0
- package/dist/types/typechain-types/factories/@openzeppelin/index.ts +5 -0
- package/dist/types/typechain-types/factories/contracts/ManagementFeeUpgradeableV1__factory.ts +175 -0
- package/dist/types/typechain-types/factories/contracts/PerformanceFeeUpgradeableV1__factory.ts +194 -0
- package/dist/types/typechain-types/factories/contracts/VaultFactoryV1__factory.ts +449 -0
- package/dist/types/typechain-types/factories/contracts/VaultV1__factory.ts +1523 -0
- package/dist/types/typechain-types/factories/contracts/index.ts +10 -0
- package/dist/types/typechain-types/factories/contracts/mocks/MockERC20__factory.ts +412 -0
- package/dist/types/typechain-types/factories/contracts/mocks/index.ts +4 -0
- package/dist/types/typechain-types/factories/contracts/providers/AddressProviderV1__factory.ts +359 -0
- package/dist/types/typechain-types/factories/contracts/providers/index.ts +4 -0
- package/dist/types/typechain-types/factories/contracts/registers/VaultRegistryV1__factory.ts +554 -0
- package/dist/types/typechain-types/factories/contracts/registers/index.ts +4 -0
- package/dist/types/typechain-types/factories/index.ts +5 -0
- package/dist/types/typechain-types/hardhat.d.ts +639 -0
- package/dist/types/typechain-types/index.ts +74 -0
- package/package.json +23 -0
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Contract, Interface, type ContractRunner } from "ethers";
|
|
6
|
+
import type {
|
|
7
|
+
IERC20Metadata,
|
|
8
|
+
IERC20MetadataInterface,
|
|
9
|
+
} from "../../../../../../@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata";
|
|
10
|
+
|
|
11
|
+
const _abi = [
|
|
12
|
+
{
|
|
13
|
+
anonymous: false,
|
|
14
|
+
inputs: [
|
|
15
|
+
{
|
|
16
|
+
indexed: true,
|
|
17
|
+
internalType: "address",
|
|
18
|
+
name: "owner",
|
|
19
|
+
type: "address",
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
indexed: true,
|
|
23
|
+
internalType: "address",
|
|
24
|
+
name: "spender",
|
|
25
|
+
type: "address",
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
indexed: false,
|
|
29
|
+
internalType: "uint256",
|
|
30
|
+
name: "value",
|
|
31
|
+
type: "uint256",
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
name: "Approval",
|
|
35
|
+
type: "event",
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
anonymous: false,
|
|
39
|
+
inputs: [
|
|
40
|
+
{
|
|
41
|
+
indexed: true,
|
|
42
|
+
internalType: "address",
|
|
43
|
+
name: "from",
|
|
44
|
+
type: "address",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
indexed: true,
|
|
48
|
+
internalType: "address",
|
|
49
|
+
name: "to",
|
|
50
|
+
type: "address",
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
indexed: false,
|
|
54
|
+
internalType: "uint256",
|
|
55
|
+
name: "value",
|
|
56
|
+
type: "uint256",
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
name: "Transfer",
|
|
60
|
+
type: "event",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
inputs: [
|
|
64
|
+
{
|
|
65
|
+
internalType: "address",
|
|
66
|
+
name: "owner",
|
|
67
|
+
type: "address",
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
internalType: "address",
|
|
71
|
+
name: "spender",
|
|
72
|
+
type: "address",
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
name: "allowance",
|
|
76
|
+
outputs: [
|
|
77
|
+
{
|
|
78
|
+
internalType: "uint256",
|
|
79
|
+
name: "",
|
|
80
|
+
type: "uint256",
|
|
81
|
+
},
|
|
82
|
+
],
|
|
83
|
+
stateMutability: "view",
|
|
84
|
+
type: "function",
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
inputs: [
|
|
88
|
+
{
|
|
89
|
+
internalType: "address",
|
|
90
|
+
name: "spender",
|
|
91
|
+
type: "address",
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
internalType: "uint256",
|
|
95
|
+
name: "value",
|
|
96
|
+
type: "uint256",
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
name: "approve",
|
|
100
|
+
outputs: [
|
|
101
|
+
{
|
|
102
|
+
internalType: "bool",
|
|
103
|
+
name: "",
|
|
104
|
+
type: "bool",
|
|
105
|
+
},
|
|
106
|
+
],
|
|
107
|
+
stateMutability: "nonpayable",
|
|
108
|
+
type: "function",
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
inputs: [
|
|
112
|
+
{
|
|
113
|
+
internalType: "address",
|
|
114
|
+
name: "account",
|
|
115
|
+
type: "address",
|
|
116
|
+
},
|
|
117
|
+
],
|
|
118
|
+
name: "balanceOf",
|
|
119
|
+
outputs: [
|
|
120
|
+
{
|
|
121
|
+
internalType: "uint256",
|
|
122
|
+
name: "",
|
|
123
|
+
type: "uint256",
|
|
124
|
+
},
|
|
125
|
+
],
|
|
126
|
+
stateMutability: "view",
|
|
127
|
+
type: "function",
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
inputs: [],
|
|
131
|
+
name: "decimals",
|
|
132
|
+
outputs: [
|
|
133
|
+
{
|
|
134
|
+
internalType: "uint8",
|
|
135
|
+
name: "",
|
|
136
|
+
type: "uint8",
|
|
137
|
+
},
|
|
138
|
+
],
|
|
139
|
+
stateMutability: "view",
|
|
140
|
+
type: "function",
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
inputs: [],
|
|
144
|
+
name: "name",
|
|
145
|
+
outputs: [
|
|
146
|
+
{
|
|
147
|
+
internalType: "string",
|
|
148
|
+
name: "",
|
|
149
|
+
type: "string",
|
|
150
|
+
},
|
|
151
|
+
],
|
|
152
|
+
stateMutability: "view",
|
|
153
|
+
type: "function",
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
inputs: [],
|
|
157
|
+
name: "symbol",
|
|
158
|
+
outputs: [
|
|
159
|
+
{
|
|
160
|
+
internalType: "string",
|
|
161
|
+
name: "",
|
|
162
|
+
type: "string",
|
|
163
|
+
},
|
|
164
|
+
],
|
|
165
|
+
stateMutability: "view",
|
|
166
|
+
type: "function",
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
inputs: [],
|
|
170
|
+
name: "totalSupply",
|
|
171
|
+
outputs: [
|
|
172
|
+
{
|
|
173
|
+
internalType: "uint256",
|
|
174
|
+
name: "",
|
|
175
|
+
type: "uint256",
|
|
176
|
+
},
|
|
177
|
+
],
|
|
178
|
+
stateMutability: "view",
|
|
179
|
+
type: "function",
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
inputs: [
|
|
183
|
+
{
|
|
184
|
+
internalType: "address",
|
|
185
|
+
name: "to",
|
|
186
|
+
type: "address",
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
internalType: "uint256",
|
|
190
|
+
name: "value",
|
|
191
|
+
type: "uint256",
|
|
192
|
+
},
|
|
193
|
+
],
|
|
194
|
+
name: "transfer",
|
|
195
|
+
outputs: [
|
|
196
|
+
{
|
|
197
|
+
internalType: "bool",
|
|
198
|
+
name: "",
|
|
199
|
+
type: "bool",
|
|
200
|
+
},
|
|
201
|
+
],
|
|
202
|
+
stateMutability: "nonpayable",
|
|
203
|
+
type: "function",
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
inputs: [
|
|
207
|
+
{
|
|
208
|
+
internalType: "address",
|
|
209
|
+
name: "from",
|
|
210
|
+
type: "address",
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
internalType: "address",
|
|
214
|
+
name: "to",
|
|
215
|
+
type: "address",
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
internalType: "uint256",
|
|
219
|
+
name: "value",
|
|
220
|
+
type: "uint256",
|
|
221
|
+
},
|
|
222
|
+
],
|
|
223
|
+
name: "transferFrom",
|
|
224
|
+
outputs: [
|
|
225
|
+
{
|
|
226
|
+
internalType: "bool",
|
|
227
|
+
name: "",
|
|
228
|
+
type: "bool",
|
|
229
|
+
},
|
|
230
|
+
],
|
|
231
|
+
stateMutability: "nonpayable",
|
|
232
|
+
type: "function",
|
|
233
|
+
},
|
|
234
|
+
] as const;
|
|
235
|
+
|
|
236
|
+
export class IERC20Metadata__factory {
|
|
237
|
+
static readonly abi = _abi;
|
|
238
|
+
static createInterface(): IERC20MetadataInterface {
|
|
239
|
+
return new Interface(_abi) as IERC20MetadataInterface;
|
|
240
|
+
}
|
|
241
|
+
static connect(
|
|
242
|
+
address: string,
|
|
243
|
+
runner?: ContractRunner | null
|
|
244
|
+
): IERC20Metadata {
|
|
245
|
+
return new Contract(address, _abi, runner) as unknown as IERC20Metadata;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
export * as extensions from "./extensions";
|
|
5
|
+
export * as utils from "./utils";
|
|
6
|
+
export { ERC20__factory } from "./ERC20__factory";
|
|
7
|
+
export { IERC20__factory } from "./IERC20__factory";
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import {
|
|
5
|
+
Contract,
|
|
6
|
+
ContractFactory,
|
|
7
|
+
ContractTransactionResponse,
|
|
8
|
+
Interface,
|
|
9
|
+
} from "ethers";
|
|
10
|
+
import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers";
|
|
11
|
+
import type { NonPayableOverrides } from "../../../../../../common";
|
|
12
|
+
import type {
|
|
13
|
+
SafeERC20,
|
|
14
|
+
SafeERC20Interface,
|
|
15
|
+
} from "../../../../../../@openzeppelin/contracts/token/ERC20/utils/SafeERC20";
|
|
16
|
+
|
|
17
|
+
const _abi = [
|
|
18
|
+
{
|
|
19
|
+
inputs: [
|
|
20
|
+
{
|
|
21
|
+
internalType: "address",
|
|
22
|
+
name: "spender",
|
|
23
|
+
type: "address",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
internalType: "uint256",
|
|
27
|
+
name: "currentAllowance",
|
|
28
|
+
type: "uint256",
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
internalType: "uint256",
|
|
32
|
+
name: "requestedDecrease",
|
|
33
|
+
type: "uint256",
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
name: "SafeERC20FailedDecreaseAllowance",
|
|
37
|
+
type: "error",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
inputs: [
|
|
41
|
+
{
|
|
42
|
+
internalType: "address",
|
|
43
|
+
name: "token",
|
|
44
|
+
type: "address",
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
name: "SafeERC20FailedOperation",
|
|
48
|
+
type: "error",
|
|
49
|
+
},
|
|
50
|
+
] as const;
|
|
51
|
+
|
|
52
|
+
const _bytecode =
|
|
53
|
+
"0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122024bcf6f742afd24e740120c7668d8e11f6202e3410b1e7a4a0d7571bc5c1cc4664736f6c634300081c0033";
|
|
54
|
+
|
|
55
|
+
type SafeERC20ConstructorParams =
|
|
56
|
+
| [signer?: Signer]
|
|
57
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
58
|
+
|
|
59
|
+
const isSuperArgs = (
|
|
60
|
+
xs: SafeERC20ConstructorParams
|
|
61
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
62
|
+
|
|
63
|
+
export class SafeERC20__factory extends ContractFactory {
|
|
64
|
+
constructor(...args: SafeERC20ConstructorParams) {
|
|
65
|
+
if (isSuperArgs(args)) {
|
|
66
|
+
super(...args);
|
|
67
|
+
} else {
|
|
68
|
+
super(_abi, _bytecode, args[0]);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
override getDeployTransaction(
|
|
73
|
+
overrides?: NonPayableOverrides & { from?: string }
|
|
74
|
+
): Promise<ContractDeployTransaction> {
|
|
75
|
+
return super.getDeployTransaction(overrides || {});
|
|
76
|
+
}
|
|
77
|
+
override deploy(overrides?: NonPayableOverrides & { from?: string }) {
|
|
78
|
+
return super.deploy(overrides || {}) as Promise<
|
|
79
|
+
SafeERC20 & {
|
|
80
|
+
deploymentTransaction(): ContractTransactionResponse;
|
|
81
|
+
}
|
|
82
|
+
>;
|
|
83
|
+
}
|
|
84
|
+
override connect(runner: ContractRunner | null): SafeERC20__factory {
|
|
85
|
+
return super.connect(runner) as SafeERC20__factory;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
static readonly bytecode = _bytecode;
|
|
89
|
+
static readonly abi = _abi;
|
|
90
|
+
static createInterface(): SafeERC20Interface {
|
|
91
|
+
return new Interface(_abi) as SafeERC20Interface;
|
|
92
|
+
}
|
|
93
|
+
static connect(address: string, runner?: ContractRunner | null): SafeERC20 {
|
|
94
|
+
return new Contract(address, _abi, runner) as unknown as SafeERC20;
|
|
95
|
+
}
|
|
96
|
+
}
|
package/dist/types/typechain-types/factories/@openzeppelin/contracts/utils/Address__factory.ts
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import {
|
|
5
|
+
Contract,
|
|
6
|
+
ContractFactory,
|
|
7
|
+
ContractTransactionResponse,
|
|
8
|
+
Interface,
|
|
9
|
+
} from "ethers";
|
|
10
|
+
import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers";
|
|
11
|
+
import type { NonPayableOverrides } from "../../../../common";
|
|
12
|
+
import type {
|
|
13
|
+
Address,
|
|
14
|
+
AddressInterface,
|
|
15
|
+
} from "../../../../@openzeppelin/contracts/utils/Address";
|
|
16
|
+
|
|
17
|
+
const _abi = [
|
|
18
|
+
{
|
|
19
|
+
inputs: [
|
|
20
|
+
{
|
|
21
|
+
internalType: "address",
|
|
22
|
+
name: "target",
|
|
23
|
+
type: "address",
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
name: "AddressEmptyCode",
|
|
27
|
+
type: "error",
|
|
28
|
+
},
|
|
29
|
+
] as const;
|
|
30
|
+
|
|
31
|
+
const _bytecode =
|
|
32
|
+
"0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220eb713c0bdbedfc790367cf1fbbccde51b73c0f7bc7f1d21afc778e444f50282d64736f6c634300081c0033";
|
|
33
|
+
|
|
34
|
+
type AddressConstructorParams =
|
|
35
|
+
| [signer?: Signer]
|
|
36
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
37
|
+
|
|
38
|
+
const isSuperArgs = (
|
|
39
|
+
xs: AddressConstructorParams
|
|
40
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
41
|
+
|
|
42
|
+
export class Address__factory extends ContractFactory {
|
|
43
|
+
constructor(...args: AddressConstructorParams) {
|
|
44
|
+
if (isSuperArgs(args)) {
|
|
45
|
+
super(...args);
|
|
46
|
+
} else {
|
|
47
|
+
super(_abi, _bytecode, args[0]);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
override getDeployTransaction(
|
|
52
|
+
overrides?: NonPayableOverrides & { from?: string }
|
|
53
|
+
): Promise<ContractDeployTransaction> {
|
|
54
|
+
return super.getDeployTransaction(overrides || {});
|
|
55
|
+
}
|
|
56
|
+
override deploy(overrides?: NonPayableOverrides & { from?: string }) {
|
|
57
|
+
return super.deploy(overrides || {}) as Promise<
|
|
58
|
+
Address & {
|
|
59
|
+
deploymentTransaction(): ContractTransactionResponse;
|
|
60
|
+
}
|
|
61
|
+
>;
|
|
62
|
+
}
|
|
63
|
+
override connect(runner: ContractRunner | null): Address__factory {
|
|
64
|
+
return super.connect(runner) as Address__factory;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
static readonly bytecode = _bytecode;
|
|
68
|
+
static readonly abi = _abi;
|
|
69
|
+
static createInterface(): AddressInterface {
|
|
70
|
+
return new Interface(_abi) as AddressInterface;
|
|
71
|
+
}
|
|
72
|
+
static connect(address: string, runner?: ContractRunner | null): Address {
|
|
73
|
+
return new Contract(address, _abi, runner) as unknown as Address;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import {
|
|
5
|
+
Contract,
|
|
6
|
+
ContractFactory,
|
|
7
|
+
ContractTransactionResponse,
|
|
8
|
+
Interface,
|
|
9
|
+
} from "ethers";
|
|
10
|
+
import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers";
|
|
11
|
+
import type { NonPayableOverrides } from "../../../../common";
|
|
12
|
+
import type {
|
|
13
|
+
Errors,
|
|
14
|
+
ErrorsInterface,
|
|
15
|
+
} from "../../../../@openzeppelin/contracts/utils/Errors";
|
|
16
|
+
|
|
17
|
+
const _abi = [
|
|
18
|
+
{
|
|
19
|
+
inputs: [],
|
|
20
|
+
name: "FailedCall",
|
|
21
|
+
type: "error",
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
inputs: [],
|
|
25
|
+
name: "FailedDeployment",
|
|
26
|
+
type: "error",
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
inputs: [
|
|
30
|
+
{
|
|
31
|
+
internalType: "uint256",
|
|
32
|
+
name: "balance",
|
|
33
|
+
type: "uint256",
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
internalType: "uint256",
|
|
37
|
+
name: "needed",
|
|
38
|
+
type: "uint256",
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
name: "InsufficientBalance",
|
|
42
|
+
type: "error",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
inputs: [
|
|
46
|
+
{
|
|
47
|
+
internalType: "address",
|
|
48
|
+
name: "",
|
|
49
|
+
type: "address",
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
name: "MissingPrecompile",
|
|
53
|
+
type: "error",
|
|
54
|
+
},
|
|
55
|
+
] as const;
|
|
56
|
+
|
|
57
|
+
const _bytecode =
|
|
58
|
+
"0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212206e0d5922a018cc1796aca29f49cc00b7ffd8988f2d37a8dd1c233a73a7f9209864736f6c634300081c0033";
|
|
59
|
+
|
|
60
|
+
type ErrorsConstructorParams =
|
|
61
|
+
| [signer?: Signer]
|
|
62
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
63
|
+
|
|
64
|
+
const isSuperArgs = (
|
|
65
|
+
xs: ErrorsConstructorParams
|
|
66
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
|
67
|
+
|
|
68
|
+
export class Errors__factory extends ContractFactory {
|
|
69
|
+
constructor(...args: ErrorsConstructorParams) {
|
|
70
|
+
if (isSuperArgs(args)) {
|
|
71
|
+
super(...args);
|
|
72
|
+
} else {
|
|
73
|
+
super(_abi, _bytecode, args[0]);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
override getDeployTransaction(
|
|
78
|
+
overrides?: NonPayableOverrides & { from?: string }
|
|
79
|
+
): Promise<ContractDeployTransaction> {
|
|
80
|
+
return super.getDeployTransaction(overrides || {});
|
|
81
|
+
}
|
|
82
|
+
override deploy(overrides?: NonPayableOverrides & { from?: string }) {
|
|
83
|
+
return super.deploy(overrides || {}) as Promise<
|
|
84
|
+
Errors & {
|
|
85
|
+
deploymentTransaction(): ContractTransactionResponse;
|
|
86
|
+
}
|
|
87
|
+
>;
|
|
88
|
+
}
|
|
89
|
+
override connect(runner: ContractRunner | null): Errors__factory {
|
|
90
|
+
return super.connect(runner) as Errors__factory;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
static readonly bytecode = _bytecode;
|
|
94
|
+
static readonly abi = _abi;
|
|
95
|
+
static createInterface(): ErrorsInterface {
|
|
96
|
+
return new Interface(_abi) as ErrorsInterface;
|
|
97
|
+
}
|
|
98
|
+
static connect(address: string, runner?: ContractRunner | null): Errors {
|
|
99
|
+
return new Contract(address, _abi, runner) as unknown as Errors;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
export * as introspection from "./introspection";
|
|
5
|
+
export * as math from "./math";
|
|
6
|
+
export { Address__factory } from "./Address__factory";
|
|
7
|
+
export { Errors__factory } from "./Errors__factory";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Contract, Interface, type ContractRunner } from "ethers";
|
|
6
|
+
import type {
|
|
7
|
+
IERC165,
|
|
8
|
+
IERC165Interface,
|
|
9
|
+
} from "../../../../../@openzeppelin/contracts/utils/introspection/IERC165";
|
|
10
|
+
|
|
11
|
+
const _abi = [
|
|
12
|
+
{
|
|
13
|
+
inputs: [
|
|
14
|
+
{
|
|
15
|
+
internalType: "bytes4",
|
|
16
|
+
name: "interfaceId",
|
|
17
|
+
type: "bytes4",
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
name: "supportsInterface",
|
|
21
|
+
outputs: [
|
|
22
|
+
{
|
|
23
|
+
internalType: "bool",
|
|
24
|
+
name: "",
|
|
25
|
+
type: "bool",
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
stateMutability: "view",
|
|
29
|
+
type: "function",
|
|
30
|
+
},
|
|
31
|
+
] as const;
|
|
32
|
+
|
|
33
|
+
export class IERC165__factory {
|
|
34
|
+
static readonly abi = _abi;
|
|
35
|
+
static createInterface(): IERC165Interface {
|
|
36
|
+
return new Interface(_abi) as IERC165Interface;
|
|
37
|
+
}
|
|
38
|
+
static connect(address: string, runner?: ContractRunner | null): IERC165 {
|
|
39
|
+
return new Contract(address, _abi, runner) as unknown as IERC165;
|
|
40
|
+
}
|
|
41
|
+
}
|