@4everland/land-v6 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitattributes +1 -0
- package/.gitmodules +3 -0
- package/README.md +9 -0
- package/package.json +96 -0
- package/tsconfig.json +11 -0
- package/types/BasicToken.d.ts +300 -0
- package/types/BlackList.d.ts +512 -0
- package/types/BlastOracleLand.d.ts +933 -0
- package/types/ChainlinkPriceFeed.d.ts +427 -0
- package/types/Console.d.ts +101 -0
- package/types/CustomPriceFeed.d.ts +214 -0
- package/types/ERC1967Proxy.d.ts +126 -0
- package/types/ERC1967Upgrade.d.ts +126 -0
- package/types/ERC20.d.ts +343 -0
- package/types/ERC20Basic.d.ts +199 -0
- package/types/ETHOracleLand.d.ts +901 -0
- package/types/FixedPriceFeed.d.ts +212 -0
- package/types/IAggregatorV3Interface.d.ts +234 -0
- package/types/IBeacon.d.ts +101 -0
- package/types/IBlast.d.ts +919 -0
- package/types/ICoin.d.ts +95 -0
- package/types/IERC1822Proxiable.d.ts +101 -0
- package/types/IERC1967.d.ts +126 -0
- package/types/IERC20.d.ts +324 -0
- package/types/IERC20Metadata.d.ts +363 -0
- package/types/IERC20Rebasing.d.ts +184 -0
- package/types/ILand.d.ts +386 -0
- package/types/ILandCore.d.ts +255 -0
- package/types/IPriceFeed.d.ts +108 -0
- package/types/IPyth.d.ts +194 -0
- package/types/IQuoter.d.ts +269 -0
- package/types/ITransparentUpgradeableProxy.d.ts +256 -0
- package/types/IUniswapV3Pool.d.ts +203 -0
- package/types/IUniswapV3PoolActions.d.ts +396 -0
- package/types/IUniswapV3PoolDerivedState.d.ts +185 -0
- package/types/IUniswapV3PoolEvents.d.ts +482 -0
- package/types/IUniswapV3PoolImmutables.d.ts +174 -0
- package/types/IUniswapV3PoolOwnerActions.d.ts +168 -0
- package/types/IUniswapV3PoolState.d.ts +438 -0
- package/types/IWETH.d.ts +374 -0
- package/types/Initializable.d.ts +92 -0
- package/types/Land.d.ts +586 -0
- package/types/LandCore.d.ts +255 -0
- package/types/LandMath.d.ts +101 -0
- package/types/LandOwnable.d.ts +134 -0
- package/types/LandOwnableUpgradeable.d.ts +148 -0
- package/types/MockDAI.d.ts +441 -0
- package/types/MockUSDC.d.ts +441 -0
- package/types/MockUSDT.d.ts +441 -0
- package/types/OracleLand.d.ts +724 -0
- package/types/Ownable.d.ts +130 -0
- package/types/Pausable.d.ts +203 -0
- package/types/Proxy.d.ts +78 -0
- package/types/ProxyAdmin.d.ts +357 -0
- package/types/PythPriceFeed.d.ts +423 -0
- package/types/StandardToken.d.ts +493 -0
- package/types/TetherToken.d.ts +1018 -0
- package/types/TransparentUpgradeableProxy.d.ts +126 -0
- package/types/UpgradedStandardToken.d.ts +630 -0
- package/types/common.d.ts +35 -0
- package/types/factories/BasicToken__factory.js +183 -0
- package/types/factories/BasicToken__factory.ts +185 -0
- package/types/factories/BlackList__factory.js +318 -0
- package/types/factories/BlackList__factory.ts +320 -0
- package/types/factories/BlastOracleLand__factory.js +656 -0
- package/types/factories/BlastOracleLand__factory.ts +649 -0
- package/types/factories/ChainlinkPriceFeed__factory.js +378 -0
- package/types/factories/ChainlinkPriceFeed__factory.ts +398 -0
- package/types/factories/Console__factory.js +76 -0
- package/types/factories/Console__factory.ts +66 -0
- package/types/factories/CustomPriceFeed__factory.js +207 -0
- package/types/factories/CustomPriceFeed__factory.ts +211 -0
- package/types/factories/ERC1967Proxy__factory.js +132 -0
- package/types/factories/ERC1967Proxy__factory.ts +137 -0
- package/types/factories/ERC1967Upgrade__factory.js +66 -0
- package/types/factories/ERC1967Upgrade__factory.ts +71 -0
- package/types/factories/ERC20Basic__factory.js +108 -0
- package/types/factories/ERC20Basic__factory.ts +110 -0
- package/types/factories/ERC20__factory.js +193 -0
- package/types/factories/ERC20__factory.ts +192 -0
- package/types/factories/ETHOracleLand__factory.js +625 -0
- package/types/factories/ETHOracleLand__factory.ts +615 -0
- package/types/factories/FixedPriceFeed__factory.js +192 -0
- package/types/factories/FixedPriceFeed__factory.ts +203 -0
- package/types/factories/IAggregatorV3Interface__factory.js +132 -0
- package/types/factories/IAggregatorV3Interface__factory.ts +141 -0
- package/types/factories/IBeacon__factory.js +34 -0
- package/types/factories/IBeacon__factory.ts +36 -0
- package/types/factories/IBlast__factory.js +439 -0
- package/types/factories/IBlast__factory.ts +438 -0
- package/types/factories/ICoin__factory.js +34 -0
- package/types/factories/ICoin__factory.ts +33 -0
- package/types/factories/IERC1822Proxiable__factory.js +34 -0
- package/types/factories/IERC1822Proxiable__factory.ts +39 -0
- package/types/factories/IERC1967__factory.js +66 -0
- package/types/factories/IERC1967__factory.ts +68 -0
- package/types/factories/IERC20Metadata__factory.js +243 -0
- package/types/factories/IERC20Metadata__factory.ts +248 -0
- package/types/factories/IERC20Rebasing__factory.js +83 -0
- package/types/factories/IERC20Rebasing__factory.ts +88 -0
- package/types/factories/IERC20__factory.js +204 -0
- package/types/factories/IERC20__factory.ts +203 -0
- package/types/factories/ILandCore__factory.js +143 -0
- package/types/factories/ILandCore__factory.ts +145 -0
- package/types/factories/ILand__factory.js +255 -0
- package/types/factories/ILand__factory.ts +254 -0
- package/types/factories/IPriceFeed__factory.js +40 -0
- package/types/factories/IPriceFeed__factory.ts +42 -0
- package/types/factories/IPyth__factory.js +103 -0
- package/types/factories/IPyth__factory.ts +102 -0
- package/types/factories/IQuoter__factory.js +147 -0
- package/types/factories/IQuoter__factory.ts +149 -0
- package/types/factories/ITransparentUpgradeableProxy__factory.js +136 -0
- package/types/factories/ITransparentUpgradeableProxy__factory.ts +145 -0
- package/types/factories/IUniswapV3PoolActions__factory.js +241 -0
- package/types/factories/IUniswapV3PoolActions__factory.ts +250 -0
- package/types/factories/IUniswapV3PoolDerivedState__factory.js +79 -0
- package/types/factories/IUniswapV3PoolDerivedState__factory.ts +88 -0
- package/types/factories/IUniswapV3PoolEvents__factory.js +348 -0
- package/types/factories/IUniswapV3PoolEvents__factory.ts +357 -0
- package/types/factories/IUniswapV3PoolImmutables__factory.js +99 -0
- package/types/factories/IUniswapV3PoolImmutables__factory.ts +108 -0
- package/types/factories/IUniswapV3PoolOwnerActions__factory.js +73 -0
- package/types/factories/IUniswapV3PoolOwnerActions__factory.ts +82 -0
- package/types/factories/IUniswapV3PoolState__factory.js +267 -0
- package/types/factories/IUniswapV3PoolState__factory.ts +272 -0
- package/types/factories/IUniswapV3Pool__factory.js +114 -0
- package/types/factories/IUniswapV3Pool__factory.ts +119 -0
- package/types/factories/IWETH__factory.js +224 -0
- package/types/factories/IWETH__factory.ts +223 -0
- package/types/factories/Initializable__factory.js +34 -0
- package/types/factories/Initializable__factory.ts +36 -0
- package/types/factories/LandCore__factory.js +201 -0
- package/types/factories/LandCore__factory.ts +199 -0
- package/types/factories/LandMath__factory.js +76 -0
- package/types/factories/LandMath__factory.ts +66 -0
- package/types/factories/LandOwnableUpgradeable__factory.js +128 -0
- package/types/factories/LandOwnableUpgradeable__factory.ts +125 -0
- package/types/factories/LandOwnable__factory.js +126 -0
- package/types/factories/LandOwnable__factory.ts +118 -0
- package/types/factories/Land__factory.js +462 -0
- package/types/factories/Land__factory.ts +449 -0
- package/types/factories/MockDAI__factory.js +338 -0
- package/types/factories/MockDAI__factory.ts +328 -0
- package/types/factories/MockUSDC__factory.js +338 -0
- package/types/factories/MockUSDC__factory.ts +328 -0
- package/types/factories/MockUSDT__factory.js +338 -0
- package/types/factories/MockUSDT__factory.ts +328 -0
- package/types/factories/OracleLand__factory.js +537 -0
- package/types/factories/OracleLand__factory.ts +527 -0
- package/types/factories/Ownable__factory.js +73 -0
- package/types/factories/Ownable__factory.ts +75 -0
- package/types/factories/Pausable__factory.js +135 -0
- package/types/factories/Pausable__factory.ts +125 -0
- package/types/factories/ProxyAdmin__factory.js +212 -0
- package/types/factories/ProxyAdmin__factory.ts +202 -0
- package/types/factories/Proxy__factory.js +29 -0
- package/types/factories/Proxy__factory.ts +28 -0
- package/types/factories/PythPriceFeed__factory.js +378 -0
- package/types/factories/PythPriceFeed__factory.ts +400 -0
- package/types/factories/StandardToken__factory.js +305 -0
- package/types/factories/StandardToken__factory.ts +307 -0
- package/types/factories/TetherToken__factory.js +732 -0
- package/types/factories/TetherToken__factory.ts +749 -0
- package/types/factories/TransparentUpgradeableProxy__factory.js +137 -0
- package/types/factories/TransparentUpgradeableProxy__factory.ts +152 -0
- package/types/factories/UpgradedStandardToken__factory.js +375 -0
- package/types/factories/UpgradedStandardToken__factory.ts +384 -0
- package/types/hardhat.d.ts +573 -0
- package/types/index.js +112 -0
- package/types/index.ts +112 -0
@@ -0,0 +1,338 @@
|
|
1
|
+
"use strict";
|
2
|
+
/* Autogenerated file. Do not edit manually. */
|
3
|
+
/* tslint:disable */
|
4
|
+
/* eslint-disable */
|
5
|
+
var __extends = (this && this.__extends) || (function () {
|
6
|
+
var extendStatics = function (d, b) {
|
7
|
+
extendStatics = Object.setPrototypeOf ||
|
8
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
9
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
10
|
+
return extendStatics(d, b);
|
11
|
+
};
|
12
|
+
return function (d, b) {
|
13
|
+
if (typeof b !== "function" && b !== null)
|
14
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
15
|
+
extendStatics(d, b);
|
16
|
+
function __() { this.constructor = d; }
|
17
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
18
|
+
};
|
19
|
+
})();
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
21
|
+
exports.MockUSDC__factory = void 0;
|
22
|
+
var ethers_1 = require("ethers");
|
23
|
+
var _abi = [
|
24
|
+
{
|
25
|
+
inputs: [],
|
26
|
+
stateMutability: "nonpayable",
|
27
|
+
type: "constructor",
|
28
|
+
},
|
29
|
+
{
|
30
|
+
anonymous: false,
|
31
|
+
inputs: [
|
32
|
+
{
|
33
|
+
indexed: true,
|
34
|
+
internalType: "address",
|
35
|
+
name: "owner",
|
36
|
+
type: "address",
|
37
|
+
},
|
38
|
+
{
|
39
|
+
indexed: true,
|
40
|
+
internalType: "address",
|
41
|
+
name: "spender",
|
42
|
+
type: "address",
|
43
|
+
},
|
44
|
+
{
|
45
|
+
indexed: false,
|
46
|
+
internalType: "uint256",
|
47
|
+
name: "value",
|
48
|
+
type: "uint256",
|
49
|
+
},
|
50
|
+
],
|
51
|
+
name: "Approval",
|
52
|
+
type: "event",
|
53
|
+
},
|
54
|
+
{
|
55
|
+
anonymous: false,
|
56
|
+
inputs: [
|
57
|
+
{
|
58
|
+
indexed: true,
|
59
|
+
internalType: "address",
|
60
|
+
name: "from",
|
61
|
+
type: "address",
|
62
|
+
},
|
63
|
+
{
|
64
|
+
indexed: true,
|
65
|
+
internalType: "address",
|
66
|
+
name: "to",
|
67
|
+
type: "address",
|
68
|
+
},
|
69
|
+
{
|
70
|
+
indexed: false,
|
71
|
+
internalType: "uint256",
|
72
|
+
name: "value",
|
73
|
+
type: "uint256",
|
74
|
+
},
|
75
|
+
],
|
76
|
+
name: "Transfer",
|
77
|
+
type: "event",
|
78
|
+
},
|
79
|
+
{
|
80
|
+
inputs: [
|
81
|
+
{
|
82
|
+
internalType: "address",
|
83
|
+
name: "owner",
|
84
|
+
type: "address",
|
85
|
+
},
|
86
|
+
{
|
87
|
+
internalType: "address",
|
88
|
+
name: "spender",
|
89
|
+
type: "address",
|
90
|
+
},
|
91
|
+
],
|
92
|
+
name: "allowance",
|
93
|
+
outputs: [
|
94
|
+
{
|
95
|
+
internalType: "uint256",
|
96
|
+
name: "",
|
97
|
+
type: "uint256",
|
98
|
+
},
|
99
|
+
],
|
100
|
+
stateMutability: "view",
|
101
|
+
type: "function",
|
102
|
+
},
|
103
|
+
{
|
104
|
+
inputs: [
|
105
|
+
{
|
106
|
+
internalType: "address",
|
107
|
+
name: "spender",
|
108
|
+
type: "address",
|
109
|
+
},
|
110
|
+
{
|
111
|
+
internalType: "uint256",
|
112
|
+
name: "amount",
|
113
|
+
type: "uint256",
|
114
|
+
},
|
115
|
+
],
|
116
|
+
name: "approve",
|
117
|
+
outputs: [
|
118
|
+
{
|
119
|
+
internalType: "bool",
|
120
|
+
name: "",
|
121
|
+
type: "bool",
|
122
|
+
},
|
123
|
+
],
|
124
|
+
stateMutability: "nonpayable",
|
125
|
+
type: "function",
|
126
|
+
},
|
127
|
+
{
|
128
|
+
inputs: [
|
129
|
+
{
|
130
|
+
internalType: "address",
|
131
|
+
name: "account",
|
132
|
+
type: "address",
|
133
|
+
},
|
134
|
+
],
|
135
|
+
name: "balanceOf",
|
136
|
+
outputs: [
|
137
|
+
{
|
138
|
+
internalType: "uint256",
|
139
|
+
name: "",
|
140
|
+
type: "uint256",
|
141
|
+
},
|
142
|
+
],
|
143
|
+
stateMutability: "view",
|
144
|
+
type: "function",
|
145
|
+
},
|
146
|
+
{
|
147
|
+
inputs: [],
|
148
|
+
name: "decimals",
|
149
|
+
outputs: [
|
150
|
+
{
|
151
|
+
internalType: "uint8",
|
152
|
+
name: "",
|
153
|
+
type: "uint8",
|
154
|
+
},
|
155
|
+
],
|
156
|
+
stateMutability: "pure",
|
157
|
+
type: "function",
|
158
|
+
},
|
159
|
+
{
|
160
|
+
inputs: [
|
161
|
+
{
|
162
|
+
internalType: "address",
|
163
|
+
name: "spender",
|
164
|
+
type: "address",
|
165
|
+
},
|
166
|
+
{
|
167
|
+
internalType: "uint256",
|
168
|
+
name: "subtractedValue",
|
169
|
+
type: "uint256",
|
170
|
+
},
|
171
|
+
],
|
172
|
+
name: "decreaseAllowance",
|
173
|
+
outputs: [
|
174
|
+
{
|
175
|
+
internalType: "bool",
|
176
|
+
name: "",
|
177
|
+
type: "bool",
|
178
|
+
},
|
179
|
+
],
|
180
|
+
stateMutability: "nonpayable",
|
181
|
+
type: "function",
|
182
|
+
},
|
183
|
+
{
|
184
|
+
inputs: [
|
185
|
+
{
|
186
|
+
internalType: "address",
|
187
|
+
name: "spender",
|
188
|
+
type: "address",
|
189
|
+
},
|
190
|
+
{
|
191
|
+
internalType: "uint256",
|
192
|
+
name: "addedValue",
|
193
|
+
type: "uint256",
|
194
|
+
},
|
195
|
+
],
|
196
|
+
name: "increaseAllowance",
|
197
|
+
outputs: [
|
198
|
+
{
|
199
|
+
internalType: "bool",
|
200
|
+
name: "",
|
201
|
+
type: "bool",
|
202
|
+
},
|
203
|
+
],
|
204
|
+
stateMutability: "nonpayable",
|
205
|
+
type: "function",
|
206
|
+
},
|
207
|
+
{
|
208
|
+
inputs: [],
|
209
|
+
name: "name",
|
210
|
+
outputs: [
|
211
|
+
{
|
212
|
+
internalType: "string",
|
213
|
+
name: "",
|
214
|
+
type: "string",
|
215
|
+
},
|
216
|
+
],
|
217
|
+
stateMutability: "view",
|
218
|
+
type: "function",
|
219
|
+
},
|
220
|
+
{
|
221
|
+
inputs: [],
|
222
|
+
name: "symbol",
|
223
|
+
outputs: [
|
224
|
+
{
|
225
|
+
internalType: "string",
|
226
|
+
name: "",
|
227
|
+
type: "string",
|
228
|
+
},
|
229
|
+
],
|
230
|
+
stateMutability: "view",
|
231
|
+
type: "function",
|
232
|
+
},
|
233
|
+
{
|
234
|
+
inputs: [],
|
235
|
+
name: "totalSupply",
|
236
|
+
outputs: [
|
237
|
+
{
|
238
|
+
internalType: "uint256",
|
239
|
+
name: "",
|
240
|
+
type: "uint256",
|
241
|
+
},
|
242
|
+
],
|
243
|
+
stateMutability: "view",
|
244
|
+
type: "function",
|
245
|
+
},
|
246
|
+
{
|
247
|
+
inputs: [
|
248
|
+
{
|
249
|
+
internalType: "address",
|
250
|
+
name: "to",
|
251
|
+
type: "address",
|
252
|
+
},
|
253
|
+
{
|
254
|
+
internalType: "uint256",
|
255
|
+
name: "amount",
|
256
|
+
type: "uint256",
|
257
|
+
},
|
258
|
+
],
|
259
|
+
name: "transfer",
|
260
|
+
outputs: [
|
261
|
+
{
|
262
|
+
internalType: "bool",
|
263
|
+
name: "",
|
264
|
+
type: "bool",
|
265
|
+
},
|
266
|
+
],
|
267
|
+
stateMutability: "nonpayable",
|
268
|
+
type: "function",
|
269
|
+
},
|
270
|
+
{
|
271
|
+
inputs: [
|
272
|
+
{
|
273
|
+
internalType: "address",
|
274
|
+
name: "from",
|
275
|
+
type: "address",
|
276
|
+
},
|
277
|
+
{
|
278
|
+
internalType: "address",
|
279
|
+
name: "to",
|
280
|
+
type: "address",
|
281
|
+
},
|
282
|
+
{
|
283
|
+
internalType: "uint256",
|
284
|
+
name: "amount",
|
285
|
+
type: "uint256",
|
286
|
+
},
|
287
|
+
],
|
288
|
+
name: "transferFrom",
|
289
|
+
outputs: [
|
290
|
+
{
|
291
|
+
internalType: "bool",
|
292
|
+
name: "",
|
293
|
+
type: "bool",
|
294
|
+
},
|
295
|
+
],
|
296
|
+
stateMutability: "nonpayable",
|
297
|
+
type: "function",
|
298
|
+
},
|
299
|
+
];
|
300
|
+
var _bytecode = "0x60806040523480156200001157600080fd5b506040518060400160405280600e81526020016d2aa9a21029ba30b13632a1b7b4b760911b815250604051806040016040528060048152602001635553444360e01b815250816003908162000067919062000255565b50600462000076828262000255565b50505062000098336c0c9f2c9cd04674edea400000006200009e60201b60201c565b6200039a565b6001600160a01b038216620000d05760405162461bcd60e51b8152600401620000c79062000325565b60405180910390fd5b8060026000828254620000e4919062000377565b90915550506001600160a01b038216600081815260208190526040808220805485019055517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90620001389085906200038d565b60405180910390a35b5050565b505050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052602260045260246000fd5b6002810460018216806200018b57607f821691505b602082108103620001a057620001a062000160565b50919050565b6000620001b7620001b48381565b90565b92915050565b620001c883620001a6565b815460001960089490940293841b1916921b91909117905550565b600062000145818484620001bd565b81811015620001415762000208600082620001e3565b600101620001f2565b601f82111562000145576000818152602090206020601f850104810160208510156200023a5750805b6200024e6020601f860104830182620001f2565b5050505050565b81516001600160401b038111156200027157620002716200014a565b6200027d825462000176565b6200028a82828562000211565b6020601f831160018114620002c15760008415620002a85750858201515b600019600886021c19811660028602178655506200031d565b600085815260208120601f198616915b82811015620002f35788850151825560209485019460019092019101620002d1565b86831015620003105784890151600019601f89166008021c191682555b6001600288020188555050505b505050505050565b60208082528101620001b781601f81527f45524332303a206d696e7420746f20746865207a65726f206164647265737300602082015260400190565b634e487b7160e01b600052601160045260246000fd5b80820180821115620001b757620001b762000361565b81815260208101620001b7565b6109ae80620003aa6000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c80633950935111610071578063395093511461011f57806370a082311461013257806395d89b411461015b578063a457c2d714610163578063a9059cbb14610176578063dd62ed3e1461018957600080fd5b806306fdde03146100ae578063095ea7b3146100cc57806318160ddd146100ec57806323b872dd146100fd578063313ce56714610110575b600080fd5b6100b661019c565b6040516100c39190610560565b60405180910390f35b6100df6100da3660046105bc565b61022e565b6040516100c39190610603565b6002545b6040516100c39190610617565b6100df61010b366004610625565b610248565b60066040516100c3919061067e565b6100df61012d3660046105bc565b61026c565b6100f061014036600461068c565b6001600160a01b031660009081526020819052604090205490565b6100b661028e565b6100df6101713660046105bc565b61029d565b6100df6101843660046105bc565b6102e3565b6100f06101973660046106b5565b6102f1565b6060600380546101ab906106fe565b80601f01602080910402602001604051908101604052809291908181526020018280546101d7906106fe565b80156102245780601f106101f957610100808354040283529160200191610224565b820191906000526020600020905b81548152906001019060200180831161020757829003601f168201915b5050505050905090565b60003361023c81858561031c565b60019150505b92915050565b6000336102568582856103d0565b61026185858561041a565b506001949350505050565b60003361023c81858561027f83836102f1565b6102899190610740565b61031c565b6060600480546101ab906106fe565b600033816102ab82866102f1565b9050838110156102d65760405162461bcd60e51b81526004016102cd90610798565b60405180910390fd5b610261828686840361031c565b60003361023c81858561041a565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b0383166103425760405162461bcd60e51b81526004016102cd906107e9565b6001600160a01b0382166103685760405162461bcd60e51b81526004016102cd90610838565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906103c3908590610617565b60405180910390a3505050565b60006103dc84846102f1565b9050600019811461041457818110156104075760405162461bcd60e51b81526004016102cd90610848565b610414848484840361031c565b50505050565b6001600160a01b0383166104405760405162461bcd60e51b81526004016102cd906108c5565b6001600160a01b0382166104665760405162461bcd60e51b81526004016102cd90610915565b6001600160a01b0383166000908152602081905260409020548181101561049f5760405162461bcd60e51b81526004016102cd90610968565b6001600160a01b0380851660008181526020819052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906104fd908690610617565b60405180910390a3610414565b60005b8381101561052557818101518382015260200161050d565b50506000910152565b6000610538825190565b80845260208401935061054f81856020860161050a565b601f01601f19169290920192915050565b60208082528101610571818461052e565b9392505050565b60006001600160a01b038216610242565b61059281610578565b811461059d57600080fd5b50565b803561024281610589565b80610592565b8035610242816105ab565b600080604083850312156105d2576105d2600080fd5b60006105de85856105a0565b92505060206105ef858286016105b1565b9150509250929050565b8015155b82525050565b6020810161024282846105f9565b806105fd565b602081016102428284610611565b60008060006060848603121561063d5761063d600080fd5b600061064986866105a0565b935050602061065a868287016105a0565b925050604061066b868287016105b1565b9150509250925092565b60ff81166105fd565b602081016102428284610675565b6000602082840312156106a1576106a1600080fd5b60006106ad84846105a0565b949350505050565b600080604083850312156106cb576106cb600080fd5b60006106d785856105a0565b92505060206105ef858286016105a0565b634e487b7160e01b600052602260045260246000fd5b60028104600182168061071257607f821691505b602082108103610724576107246106e8565b50919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156102425761024261072a565b602581526000602082017f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77815264207a65726f60d81b602082015291505b5060400190565b6020808252810161024281610753565b602481526000602082017f45524332303a20617070726f76652066726f6d20746865207a65726f206164648152637265737360e01b60208201529150610791565b60208082528101610242816107a8565b602281526000602082017f45524332303a20617070726f766520746f20746865207a65726f206164647265815261737360f01b60208201529150610791565b60208082528101610242816107f9565b6020808252810161024281601d81527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000602082015260400190565b602581526000602082017f45524332303a207472616e736665722066726f6d20746865207a65726f206164815264647265737360d81b60208201529150610791565b6020808252810161024281610883565b602381526000602082017f45524332303a207472616e7366657220746f20746865207a65726f206164647281526265737360e81b60208201529150610791565b60208082528101610242816108d5565b602681526000602082017f45524332303a207472616e7366657220616d6f756e7420657863656564732062815265616c616e636560d01b60208201529150610791565b602080825281016102428161092556fea2646970667358221220e1ecc2b7f22bf897a402414f81abc73eaf0aaa6900a260382555e1dddb23bc7364736f6c63430008130033";
|
301
|
+
var MockUSDC__factory = exports.MockUSDC__factory = /** @class */ (function (_super) {
|
302
|
+
__extends(MockUSDC__factory, _super);
|
303
|
+
function MockUSDC__factory() {
|
304
|
+
var args = [];
|
305
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
306
|
+
args[_i] = arguments[_i];
|
307
|
+
}
|
308
|
+
var _this = this;
|
309
|
+
if (args.length === 1) {
|
310
|
+
_this = _super.call(this, _abi, _bytecode, args[0]) || this;
|
311
|
+
}
|
312
|
+
else {
|
313
|
+
_this = _super.apply(this, args) || this;
|
314
|
+
}
|
315
|
+
return _this;
|
316
|
+
}
|
317
|
+
MockUSDC__factory.prototype.deploy = function (overrides) {
|
318
|
+
return _super.prototype.deploy.call(this, overrides || {});
|
319
|
+
};
|
320
|
+
MockUSDC__factory.prototype.getDeployTransaction = function (overrides) {
|
321
|
+
return _super.prototype.getDeployTransaction.call(this, overrides || {});
|
322
|
+
};
|
323
|
+
MockUSDC__factory.prototype.attach = function (address) {
|
324
|
+
return _super.prototype.attach.call(this, address);
|
325
|
+
};
|
326
|
+
MockUSDC__factory.prototype.connect = function (signer) {
|
327
|
+
return _super.prototype.connect.call(this, signer);
|
328
|
+
};
|
329
|
+
MockUSDC__factory.createInterface = function () {
|
330
|
+
return new ethers_1.utils.Interface(_abi);
|
331
|
+
};
|
332
|
+
MockUSDC__factory.connect = function (address, signerOrProvider) {
|
333
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
334
|
+
};
|
335
|
+
MockUSDC__factory.bytecode = _bytecode;
|
336
|
+
MockUSDC__factory.abi = _abi;
|
337
|
+
return MockUSDC__factory;
|
338
|
+
}(ethers_1.ContractFactory));
|
@@ -0,0 +1,328 @@
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
2
|
+
/* tslint:disable */
|
3
|
+
/* eslint-disable */
|
4
|
+
|
5
|
+
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
|
6
|
+
import { Provider, TransactionRequest } from "@ethersproject/providers";
|
7
|
+
import type { MockUSDC, MockUSDCInterface } from "../MockUSDC";
|
8
|
+
|
9
|
+
const _abi = [
|
10
|
+
{
|
11
|
+
inputs: [],
|
12
|
+
stateMutability: "nonpayable",
|
13
|
+
type: "constructor",
|
14
|
+
},
|
15
|
+
{
|
16
|
+
anonymous: false,
|
17
|
+
inputs: [
|
18
|
+
{
|
19
|
+
indexed: true,
|
20
|
+
internalType: "address",
|
21
|
+
name: "owner",
|
22
|
+
type: "address",
|
23
|
+
},
|
24
|
+
{
|
25
|
+
indexed: true,
|
26
|
+
internalType: "address",
|
27
|
+
name: "spender",
|
28
|
+
type: "address",
|
29
|
+
},
|
30
|
+
{
|
31
|
+
indexed: false,
|
32
|
+
internalType: "uint256",
|
33
|
+
name: "value",
|
34
|
+
type: "uint256",
|
35
|
+
},
|
36
|
+
],
|
37
|
+
name: "Approval",
|
38
|
+
type: "event",
|
39
|
+
},
|
40
|
+
{
|
41
|
+
anonymous: false,
|
42
|
+
inputs: [
|
43
|
+
{
|
44
|
+
indexed: true,
|
45
|
+
internalType: "address",
|
46
|
+
name: "from",
|
47
|
+
type: "address",
|
48
|
+
},
|
49
|
+
{
|
50
|
+
indexed: true,
|
51
|
+
internalType: "address",
|
52
|
+
name: "to",
|
53
|
+
type: "address",
|
54
|
+
},
|
55
|
+
{
|
56
|
+
indexed: false,
|
57
|
+
internalType: "uint256",
|
58
|
+
name: "value",
|
59
|
+
type: "uint256",
|
60
|
+
},
|
61
|
+
],
|
62
|
+
name: "Transfer",
|
63
|
+
type: "event",
|
64
|
+
},
|
65
|
+
{
|
66
|
+
inputs: [
|
67
|
+
{
|
68
|
+
internalType: "address",
|
69
|
+
name: "owner",
|
70
|
+
type: "address",
|
71
|
+
},
|
72
|
+
{
|
73
|
+
internalType: "address",
|
74
|
+
name: "spender",
|
75
|
+
type: "address",
|
76
|
+
},
|
77
|
+
],
|
78
|
+
name: "allowance",
|
79
|
+
outputs: [
|
80
|
+
{
|
81
|
+
internalType: "uint256",
|
82
|
+
name: "",
|
83
|
+
type: "uint256",
|
84
|
+
},
|
85
|
+
],
|
86
|
+
stateMutability: "view",
|
87
|
+
type: "function",
|
88
|
+
},
|
89
|
+
{
|
90
|
+
inputs: [
|
91
|
+
{
|
92
|
+
internalType: "address",
|
93
|
+
name: "spender",
|
94
|
+
type: "address",
|
95
|
+
},
|
96
|
+
{
|
97
|
+
internalType: "uint256",
|
98
|
+
name: "amount",
|
99
|
+
type: "uint256",
|
100
|
+
},
|
101
|
+
],
|
102
|
+
name: "approve",
|
103
|
+
outputs: [
|
104
|
+
{
|
105
|
+
internalType: "bool",
|
106
|
+
name: "",
|
107
|
+
type: "bool",
|
108
|
+
},
|
109
|
+
],
|
110
|
+
stateMutability: "nonpayable",
|
111
|
+
type: "function",
|
112
|
+
},
|
113
|
+
{
|
114
|
+
inputs: [
|
115
|
+
{
|
116
|
+
internalType: "address",
|
117
|
+
name: "account",
|
118
|
+
type: "address",
|
119
|
+
},
|
120
|
+
],
|
121
|
+
name: "balanceOf",
|
122
|
+
outputs: [
|
123
|
+
{
|
124
|
+
internalType: "uint256",
|
125
|
+
name: "",
|
126
|
+
type: "uint256",
|
127
|
+
},
|
128
|
+
],
|
129
|
+
stateMutability: "view",
|
130
|
+
type: "function",
|
131
|
+
},
|
132
|
+
{
|
133
|
+
inputs: [],
|
134
|
+
name: "decimals",
|
135
|
+
outputs: [
|
136
|
+
{
|
137
|
+
internalType: "uint8",
|
138
|
+
name: "",
|
139
|
+
type: "uint8",
|
140
|
+
},
|
141
|
+
],
|
142
|
+
stateMutability: "pure",
|
143
|
+
type: "function",
|
144
|
+
},
|
145
|
+
{
|
146
|
+
inputs: [
|
147
|
+
{
|
148
|
+
internalType: "address",
|
149
|
+
name: "spender",
|
150
|
+
type: "address",
|
151
|
+
},
|
152
|
+
{
|
153
|
+
internalType: "uint256",
|
154
|
+
name: "subtractedValue",
|
155
|
+
type: "uint256",
|
156
|
+
},
|
157
|
+
],
|
158
|
+
name: "decreaseAllowance",
|
159
|
+
outputs: [
|
160
|
+
{
|
161
|
+
internalType: "bool",
|
162
|
+
name: "",
|
163
|
+
type: "bool",
|
164
|
+
},
|
165
|
+
],
|
166
|
+
stateMutability: "nonpayable",
|
167
|
+
type: "function",
|
168
|
+
},
|
169
|
+
{
|
170
|
+
inputs: [
|
171
|
+
{
|
172
|
+
internalType: "address",
|
173
|
+
name: "spender",
|
174
|
+
type: "address",
|
175
|
+
},
|
176
|
+
{
|
177
|
+
internalType: "uint256",
|
178
|
+
name: "addedValue",
|
179
|
+
type: "uint256",
|
180
|
+
},
|
181
|
+
],
|
182
|
+
name: "increaseAllowance",
|
183
|
+
outputs: [
|
184
|
+
{
|
185
|
+
internalType: "bool",
|
186
|
+
name: "",
|
187
|
+
type: "bool",
|
188
|
+
},
|
189
|
+
],
|
190
|
+
stateMutability: "nonpayable",
|
191
|
+
type: "function",
|
192
|
+
},
|
193
|
+
{
|
194
|
+
inputs: [],
|
195
|
+
name: "name",
|
196
|
+
outputs: [
|
197
|
+
{
|
198
|
+
internalType: "string",
|
199
|
+
name: "",
|
200
|
+
type: "string",
|
201
|
+
},
|
202
|
+
],
|
203
|
+
stateMutability: "view",
|
204
|
+
type: "function",
|
205
|
+
},
|
206
|
+
{
|
207
|
+
inputs: [],
|
208
|
+
name: "symbol",
|
209
|
+
outputs: [
|
210
|
+
{
|
211
|
+
internalType: "string",
|
212
|
+
name: "",
|
213
|
+
type: "string",
|
214
|
+
},
|
215
|
+
],
|
216
|
+
stateMutability: "view",
|
217
|
+
type: "function",
|
218
|
+
},
|
219
|
+
{
|
220
|
+
inputs: [],
|
221
|
+
name: "totalSupply",
|
222
|
+
outputs: [
|
223
|
+
{
|
224
|
+
internalType: "uint256",
|
225
|
+
name: "",
|
226
|
+
type: "uint256",
|
227
|
+
},
|
228
|
+
],
|
229
|
+
stateMutability: "view",
|
230
|
+
type: "function",
|
231
|
+
},
|
232
|
+
{
|
233
|
+
inputs: [
|
234
|
+
{
|
235
|
+
internalType: "address",
|
236
|
+
name: "to",
|
237
|
+
type: "address",
|
238
|
+
},
|
239
|
+
{
|
240
|
+
internalType: "uint256",
|
241
|
+
name: "amount",
|
242
|
+
type: "uint256",
|
243
|
+
},
|
244
|
+
],
|
245
|
+
name: "transfer",
|
246
|
+
outputs: [
|
247
|
+
{
|
248
|
+
internalType: "bool",
|
249
|
+
name: "",
|
250
|
+
type: "bool",
|
251
|
+
},
|
252
|
+
],
|
253
|
+
stateMutability: "nonpayable",
|
254
|
+
type: "function",
|
255
|
+
},
|
256
|
+
{
|
257
|
+
inputs: [
|
258
|
+
{
|
259
|
+
internalType: "address",
|
260
|
+
name: "from",
|
261
|
+
type: "address",
|
262
|
+
},
|
263
|
+
{
|
264
|
+
internalType: "address",
|
265
|
+
name: "to",
|
266
|
+
type: "address",
|
267
|
+
},
|
268
|
+
{
|
269
|
+
internalType: "uint256",
|
270
|
+
name: "amount",
|
271
|
+
type: "uint256",
|
272
|
+
},
|
273
|
+
],
|
274
|
+
name: "transferFrom",
|
275
|
+
outputs: [
|
276
|
+
{
|
277
|
+
internalType: "bool",
|
278
|
+
name: "",
|
279
|
+
type: "bool",
|
280
|
+
},
|
281
|
+
],
|
282
|
+
stateMutability: "nonpayable",
|
283
|
+
type: "function",
|
284
|
+
},
|
285
|
+
];
|
286
|
+
|
287
|
+
const _bytecode =
|
288
|
+
"0x60806040523480156200001157600080fd5b506040518060400160405280600e81526020016d2aa9a21029ba30b13632a1b7b4b760911b815250604051806040016040528060048152602001635553444360e01b815250816003908162000067919062000255565b50600462000076828262000255565b50505062000098336c0c9f2c9cd04674edea400000006200009e60201b60201c565b6200039a565b6001600160a01b038216620000d05760405162461bcd60e51b8152600401620000c79062000325565b60405180910390fd5b8060026000828254620000e4919062000377565b90915550506001600160a01b038216600081815260208190526040808220805485019055517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90620001389085906200038d565b60405180910390a35b5050565b505050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052602260045260246000fd5b6002810460018216806200018b57607f821691505b602082108103620001a057620001a062000160565b50919050565b6000620001b7620001b48381565b90565b92915050565b620001c883620001a6565b815460001960089490940293841b1916921b91909117905550565b600062000145818484620001bd565b81811015620001415762000208600082620001e3565b600101620001f2565b601f82111562000145576000818152602090206020601f850104810160208510156200023a5750805b6200024e6020601f860104830182620001f2565b5050505050565b81516001600160401b038111156200027157620002716200014a565b6200027d825462000176565b6200028a82828562000211565b6020601f831160018114620002c15760008415620002a85750858201515b600019600886021c19811660028602178655506200031d565b600085815260208120601f198616915b82811015620002f35788850151825560209485019460019092019101620002d1565b86831015620003105784890151600019601f89166008021c191682555b6001600288020188555050505b505050505050565b60208082528101620001b781601f81527f45524332303a206d696e7420746f20746865207a65726f206164647265737300602082015260400190565b634e487b7160e01b600052601160045260246000fd5b80820180821115620001b757620001b762000361565b81815260208101620001b7565b6109ae80620003aa6000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c80633950935111610071578063395093511461011f57806370a082311461013257806395d89b411461015b578063a457c2d714610163578063a9059cbb14610176578063dd62ed3e1461018957600080fd5b806306fdde03146100ae578063095ea7b3146100cc57806318160ddd146100ec57806323b872dd146100fd578063313ce56714610110575b600080fd5b6100b661019c565b6040516100c39190610560565b60405180910390f35b6100df6100da3660046105bc565b61022e565b6040516100c39190610603565b6002545b6040516100c39190610617565b6100df61010b366004610625565b610248565b60066040516100c3919061067e565b6100df61012d3660046105bc565b61026c565b6100f061014036600461068c565b6001600160a01b031660009081526020819052604090205490565b6100b661028e565b6100df6101713660046105bc565b61029d565b6100df6101843660046105bc565b6102e3565b6100f06101973660046106b5565b6102f1565b6060600380546101ab906106fe565b80601f01602080910402602001604051908101604052809291908181526020018280546101d7906106fe565b80156102245780601f106101f957610100808354040283529160200191610224565b820191906000526020600020905b81548152906001019060200180831161020757829003601f168201915b5050505050905090565b60003361023c81858561031c565b60019150505b92915050565b6000336102568582856103d0565b61026185858561041a565b506001949350505050565b60003361023c81858561027f83836102f1565b6102899190610740565b61031c565b6060600480546101ab906106fe565b600033816102ab82866102f1565b9050838110156102d65760405162461bcd60e51b81526004016102cd90610798565b60405180910390fd5b610261828686840361031c565b60003361023c81858561041a565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b0383166103425760405162461bcd60e51b81526004016102cd906107e9565b6001600160a01b0382166103685760405162461bcd60e51b81526004016102cd90610838565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925906103c3908590610617565b60405180910390a3505050565b60006103dc84846102f1565b9050600019811461041457818110156104075760405162461bcd60e51b81526004016102cd90610848565b610414848484840361031c565b50505050565b6001600160a01b0383166104405760405162461bcd60e51b81526004016102cd906108c5565b6001600160a01b0382166104665760405162461bcd60e51b81526004016102cd90610915565b6001600160a01b0383166000908152602081905260409020548181101561049f5760405162461bcd60e51b81526004016102cd90610968565b6001600160a01b0380851660008181526020819052604080822086860390559286168082529083902080548601905591517fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906104fd908690610617565b60405180910390a3610414565b60005b8381101561052557818101518382015260200161050d565b50506000910152565b6000610538825190565b80845260208401935061054f81856020860161050a565b601f01601f19169290920192915050565b60208082528101610571818461052e565b9392505050565b60006001600160a01b038216610242565b61059281610578565b811461059d57600080fd5b50565b803561024281610589565b80610592565b8035610242816105ab565b600080604083850312156105d2576105d2600080fd5b60006105de85856105a0565b92505060206105ef858286016105b1565b9150509250929050565b8015155b82525050565b6020810161024282846105f9565b806105fd565b602081016102428284610611565b60008060006060848603121561063d5761063d600080fd5b600061064986866105a0565b935050602061065a868287016105a0565b925050604061066b868287016105b1565b9150509250925092565b60ff81166105fd565b602081016102428284610675565b6000602082840312156106a1576106a1600080fd5b60006106ad84846105a0565b949350505050565b600080604083850312156106cb576106cb600080fd5b60006106d785856105a0565b92505060206105ef858286016105a0565b634e487b7160e01b600052602260045260246000fd5b60028104600182168061071257607f821691505b602082108103610724576107246106e8565b50919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156102425761024261072a565b602581526000602082017f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77815264207a65726f60d81b602082015291505b5060400190565b6020808252810161024281610753565b602481526000602082017f45524332303a20617070726f76652066726f6d20746865207a65726f206164648152637265737360e01b60208201529150610791565b60208082528101610242816107a8565b602281526000602082017f45524332303a20617070726f766520746f20746865207a65726f206164647265815261737360f01b60208201529150610791565b60208082528101610242816107f9565b6020808252810161024281601d81527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000602082015260400190565b602581526000602082017f45524332303a207472616e736665722066726f6d20746865207a65726f206164815264647265737360d81b60208201529150610791565b6020808252810161024281610883565b602381526000602082017f45524332303a207472616e7366657220746f20746865207a65726f206164647281526265737360e81b60208201529150610791565b60208082528101610242816108d5565b602681526000602082017f45524332303a207472616e7366657220616d6f756e7420657863656564732062815265616c616e636560d01b60208201529150610791565b602080825281016102428161092556fea2646970667358221220e1ecc2b7f22bf897a402414f81abc73eaf0aaa6900a260382555e1dddb23bc7364736f6c63430008130033";
|
289
|
+
|
290
|
+
export class MockUSDC__factory extends ContractFactory {
|
291
|
+
constructor(
|
292
|
+
...args: [signer: Signer] | ConstructorParameters<typeof ContractFactory>
|
293
|
+
) {
|
294
|
+
if (args.length === 1) {
|
295
|
+
super(_abi, _bytecode, args[0]);
|
296
|
+
} else {
|
297
|
+
super(...args);
|
298
|
+
}
|
299
|
+
}
|
300
|
+
|
301
|
+
deploy(
|
302
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
303
|
+
): Promise<MockUSDC> {
|
304
|
+
return super.deploy(overrides || {}) as Promise<MockUSDC>;
|
305
|
+
}
|
306
|
+
getDeployTransaction(
|
307
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
308
|
+
): TransactionRequest {
|
309
|
+
return super.getDeployTransaction(overrides || {});
|
310
|
+
}
|
311
|
+
attach(address: string): MockUSDC {
|
312
|
+
return super.attach(address) as MockUSDC;
|
313
|
+
}
|
314
|
+
connect(signer: Signer): MockUSDC__factory {
|
315
|
+
return super.connect(signer) as MockUSDC__factory;
|
316
|
+
}
|
317
|
+
static readonly bytecode = _bytecode;
|
318
|
+
static readonly abi = _abi;
|
319
|
+
static createInterface(): MockUSDCInterface {
|
320
|
+
return new utils.Interface(_abi) as MockUSDCInterface;
|
321
|
+
}
|
322
|
+
static connect(
|
323
|
+
address: string,
|
324
|
+
signerOrProvider: Signer | Provider
|
325
|
+
): MockUSDC {
|
326
|
+
return new Contract(address, _abi, signerOrProvider) as MockUSDC;
|
327
|
+
}
|
328
|
+
}
|