@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.
Files changed (171) hide show
  1. package/.gitattributes +1 -0
  2. package/.gitmodules +3 -0
  3. package/README.md +9 -0
  4. package/package.json +96 -0
  5. package/tsconfig.json +11 -0
  6. package/types/BasicToken.d.ts +300 -0
  7. package/types/BlackList.d.ts +512 -0
  8. package/types/BlastOracleLand.d.ts +933 -0
  9. package/types/ChainlinkPriceFeed.d.ts +427 -0
  10. package/types/Console.d.ts +101 -0
  11. package/types/CustomPriceFeed.d.ts +214 -0
  12. package/types/ERC1967Proxy.d.ts +126 -0
  13. package/types/ERC1967Upgrade.d.ts +126 -0
  14. package/types/ERC20.d.ts +343 -0
  15. package/types/ERC20Basic.d.ts +199 -0
  16. package/types/ETHOracleLand.d.ts +901 -0
  17. package/types/FixedPriceFeed.d.ts +212 -0
  18. package/types/IAggregatorV3Interface.d.ts +234 -0
  19. package/types/IBeacon.d.ts +101 -0
  20. package/types/IBlast.d.ts +919 -0
  21. package/types/ICoin.d.ts +95 -0
  22. package/types/IERC1822Proxiable.d.ts +101 -0
  23. package/types/IERC1967.d.ts +126 -0
  24. package/types/IERC20.d.ts +324 -0
  25. package/types/IERC20Metadata.d.ts +363 -0
  26. package/types/IERC20Rebasing.d.ts +184 -0
  27. package/types/ILand.d.ts +386 -0
  28. package/types/ILandCore.d.ts +255 -0
  29. package/types/IPriceFeed.d.ts +108 -0
  30. package/types/IPyth.d.ts +194 -0
  31. package/types/IQuoter.d.ts +269 -0
  32. package/types/ITransparentUpgradeableProxy.d.ts +256 -0
  33. package/types/IUniswapV3Pool.d.ts +203 -0
  34. package/types/IUniswapV3PoolActions.d.ts +396 -0
  35. package/types/IUniswapV3PoolDerivedState.d.ts +185 -0
  36. package/types/IUniswapV3PoolEvents.d.ts +482 -0
  37. package/types/IUniswapV3PoolImmutables.d.ts +174 -0
  38. package/types/IUniswapV3PoolOwnerActions.d.ts +168 -0
  39. package/types/IUniswapV3PoolState.d.ts +438 -0
  40. package/types/IWETH.d.ts +374 -0
  41. package/types/Initializable.d.ts +92 -0
  42. package/types/Land.d.ts +586 -0
  43. package/types/LandCore.d.ts +255 -0
  44. package/types/LandMath.d.ts +101 -0
  45. package/types/LandOwnable.d.ts +134 -0
  46. package/types/LandOwnableUpgradeable.d.ts +148 -0
  47. package/types/MockDAI.d.ts +441 -0
  48. package/types/MockUSDC.d.ts +441 -0
  49. package/types/MockUSDT.d.ts +441 -0
  50. package/types/OracleLand.d.ts +724 -0
  51. package/types/Ownable.d.ts +130 -0
  52. package/types/Pausable.d.ts +203 -0
  53. package/types/Proxy.d.ts +78 -0
  54. package/types/ProxyAdmin.d.ts +357 -0
  55. package/types/PythPriceFeed.d.ts +423 -0
  56. package/types/StandardToken.d.ts +493 -0
  57. package/types/TetherToken.d.ts +1018 -0
  58. package/types/TransparentUpgradeableProxy.d.ts +126 -0
  59. package/types/UpgradedStandardToken.d.ts +630 -0
  60. package/types/common.d.ts +35 -0
  61. package/types/factories/BasicToken__factory.js +183 -0
  62. package/types/factories/BasicToken__factory.ts +185 -0
  63. package/types/factories/BlackList__factory.js +318 -0
  64. package/types/factories/BlackList__factory.ts +320 -0
  65. package/types/factories/BlastOracleLand__factory.js +656 -0
  66. package/types/factories/BlastOracleLand__factory.ts +649 -0
  67. package/types/factories/ChainlinkPriceFeed__factory.js +378 -0
  68. package/types/factories/ChainlinkPriceFeed__factory.ts +398 -0
  69. package/types/factories/Console__factory.js +76 -0
  70. package/types/factories/Console__factory.ts +66 -0
  71. package/types/factories/CustomPriceFeed__factory.js +207 -0
  72. package/types/factories/CustomPriceFeed__factory.ts +211 -0
  73. package/types/factories/ERC1967Proxy__factory.js +132 -0
  74. package/types/factories/ERC1967Proxy__factory.ts +137 -0
  75. package/types/factories/ERC1967Upgrade__factory.js +66 -0
  76. package/types/factories/ERC1967Upgrade__factory.ts +71 -0
  77. package/types/factories/ERC20Basic__factory.js +108 -0
  78. package/types/factories/ERC20Basic__factory.ts +110 -0
  79. package/types/factories/ERC20__factory.js +193 -0
  80. package/types/factories/ERC20__factory.ts +192 -0
  81. package/types/factories/ETHOracleLand__factory.js +625 -0
  82. package/types/factories/ETHOracleLand__factory.ts +615 -0
  83. package/types/factories/FixedPriceFeed__factory.js +192 -0
  84. package/types/factories/FixedPriceFeed__factory.ts +203 -0
  85. package/types/factories/IAggregatorV3Interface__factory.js +132 -0
  86. package/types/factories/IAggregatorV3Interface__factory.ts +141 -0
  87. package/types/factories/IBeacon__factory.js +34 -0
  88. package/types/factories/IBeacon__factory.ts +36 -0
  89. package/types/factories/IBlast__factory.js +439 -0
  90. package/types/factories/IBlast__factory.ts +438 -0
  91. package/types/factories/ICoin__factory.js +34 -0
  92. package/types/factories/ICoin__factory.ts +33 -0
  93. package/types/factories/IERC1822Proxiable__factory.js +34 -0
  94. package/types/factories/IERC1822Proxiable__factory.ts +39 -0
  95. package/types/factories/IERC1967__factory.js +66 -0
  96. package/types/factories/IERC1967__factory.ts +68 -0
  97. package/types/factories/IERC20Metadata__factory.js +243 -0
  98. package/types/factories/IERC20Metadata__factory.ts +248 -0
  99. package/types/factories/IERC20Rebasing__factory.js +83 -0
  100. package/types/factories/IERC20Rebasing__factory.ts +88 -0
  101. package/types/factories/IERC20__factory.js +204 -0
  102. package/types/factories/IERC20__factory.ts +203 -0
  103. package/types/factories/ILandCore__factory.js +143 -0
  104. package/types/factories/ILandCore__factory.ts +145 -0
  105. package/types/factories/ILand__factory.js +255 -0
  106. package/types/factories/ILand__factory.ts +254 -0
  107. package/types/factories/IPriceFeed__factory.js +40 -0
  108. package/types/factories/IPriceFeed__factory.ts +42 -0
  109. package/types/factories/IPyth__factory.js +103 -0
  110. package/types/factories/IPyth__factory.ts +102 -0
  111. package/types/factories/IQuoter__factory.js +147 -0
  112. package/types/factories/IQuoter__factory.ts +149 -0
  113. package/types/factories/ITransparentUpgradeableProxy__factory.js +136 -0
  114. package/types/factories/ITransparentUpgradeableProxy__factory.ts +145 -0
  115. package/types/factories/IUniswapV3PoolActions__factory.js +241 -0
  116. package/types/factories/IUniswapV3PoolActions__factory.ts +250 -0
  117. package/types/factories/IUniswapV3PoolDerivedState__factory.js +79 -0
  118. package/types/factories/IUniswapV3PoolDerivedState__factory.ts +88 -0
  119. package/types/factories/IUniswapV3PoolEvents__factory.js +348 -0
  120. package/types/factories/IUniswapV3PoolEvents__factory.ts +357 -0
  121. package/types/factories/IUniswapV3PoolImmutables__factory.js +99 -0
  122. package/types/factories/IUniswapV3PoolImmutables__factory.ts +108 -0
  123. package/types/factories/IUniswapV3PoolOwnerActions__factory.js +73 -0
  124. package/types/factories/IUniswapV3PoolOwnerActions__factory.ts +82 -0
  125. package/types/factories/IUniswapV3PoolState__factory.js +267 -0
  126. package/types/factories/IUniswapV3PoolState__factory.ts +272 -0
  127. package/types/factories/IUniswapV3Pool__factory.js +114 -0
  128. package/types/factories/IUniswapV3Pool__factory.ts +119 -0
  129. package/types/factories/IWETH__factory.js +224 -0
  130. package/types/factories/IWETH__factory.ts +223 -0
  131. package/types/factories/Initializable__factory.js +34 -0
  132. package/types/factories/Initializable__factory.ts +36 -0
  133. package/types/factories/LandCore__factory.js +201 -0
  134. package/types/factories/LandCore__factory.ts +199 -0
  135. package/types/factories/LandMath__factory.js +76 -0
  136. package/types/factories/LandMath__factory.ts +66 -0
  137. package/types/factories/LandOwnableUpgradeable__factory.js +128 -0
  138. package/types/factories/LandOwnableUpgradeable__factory.ts +125 -0
  139. package/types/factories/LandOwnable__factory.js +126 -0
  140. package/types/factories/LandOwnable__factory.ts +118 -0
  141. package/types/factories/Land__factory.js +462 -0
  142. package/types/factories/Land__factory.ts +449 -0
  143. package/types/factories/MockDAI__factory.js +338 -0
  144. package/types/factories/MockDAI__factory.ts +328 -0
  145. package/types/factories/MockUSDC__factory.js +338 -0
  146. package/types/factories/MockUSDC__factory.ts +328 -0
  147. package/types/factories/MockUSDT__factory.js +338 -0
  148. package/types/factories/MockUSDT__factory.ts +328 -0
  149. package/types/factories/OracleLand__factory.js +537 -0
  150. package/types/factories/OracleLand__factory.ts +527 -0
  151. package/types/factories/Ownable__factory.js +73 -0
  152. package/types/factories/Ownable__factory.ts +75 -0
  153. package/types/factories/Pausable__factory.js +135 -0
  154. package/types/factories/Pausable__factory.ts +125 -0
  155. package/types/factories/ProxyAdmin__factory.js +212 -0
  156. package/types/factories/ProxyAdmin__factory.ts +202 -0
  157. package/types/factories/Proxy__factory.js +29 -0
  158. package/types/factories/Proxy__factory.ts +28 -0
  159. package/types/factories/PythPriceFeed__factory.js +378 -0
  160. package/types/factories/PythPriceFeed__factory.ts +400 -0
  161. package/types/factories/StandardToken__factory.js +305 -0
  162. package/types/factories/StandardToken__factory.ts +307 -0
  163. package/types/factories/TetherToken__factory.js +732 -0
  164. package/types/factories/TetherToken__factory.ts +749 -0
  165. package/types/factories/TransparentUpgradeableProxy__factory.js +137 -0
  166. package/types/factories/TransparentUpgradeableProxy__factory.ts +152 -0
  167. package/types/factories/UpgradedStandardToken__factory.js +375 -0
  168. package/types/factories/UpgradedStandardToken__factory.ts +384 -0
  169. package/types/hardhat.d.ts +573 -0
  170. package/types/index.js +112 -0
  171. package/types/index.ts +112 -0
@@ -0,0 +1,400 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import {
6
+ Signer,
7
+ utils,
8
+ BytesLike,
9
+ BigNumberish,
10
+ Contract,
11
+ ContractFactory,
12
+ Overrides,
13
+ } from "ethers";
14
+ import { Provider, TransactionRequest } from "@ethersproject/providers";
15
+ import type { PythPriceFeed, PythPriceFeedInterface } from "../PythPriceFeed";
16
+
17
+ const _abi = [
18
+ {
19
+ inputs: [
20
+ {
21
+ internalType: "contract ILandCore",
22
+ name: "_core",
23
+ type: "address",
24
+ },
25
+ {
26
+ internalType: "address",
27
+ name: "_token",
28
+ type: "address",
29
+ },
30
+ {
31
+ internalType: "address",
32
+ name: "_pyth",
33
+ type: "address",
34
+ },
35
+ {
36
+ internalType: "bytes32",
37
+ name: "_feed",
38
+ type: "bytes32",
39
+ },
40
+ {
41
+ internalType: "uint32",
42
+ name: "_heartbeat",
43
+ type: "uint32",
44
+ },
45
+ ],
46
+ stateMutability: "nonpayable",
47
+ type: "constructor",
48
+ },
49
+ {
50
+ inputs: [
51
+ {
52
+ internalType: "address",
53
+ name: "token",
54
+ type: "address",
55
+ },
56
+ ],
57
+ name: "PriceFeed__FeedFrozenError",
58
+ type: "error",
59
+ },
60
+ {
61
+ inputs: [],
62
+ name: "PriceFeed__HeartbeatOutOfBoundsError",
63
+ type: "error",
64
+ },
65
+ {
66
+ inputs: [
67
+ {
68
+ internalType: "address",
69
+ name: "token",
70
+ type: "address",
71
+ },
72
+ ],
73
+ name: "PriceFeed__InvalidFeedResponseError",
74
+ type: "error",
75
+ },
76
+ {
77
+ anonymous: false,
78
+ inputs: [
79
+ {
80
+ indexed: false,
81
+ internalType: "address",
82
+ name: "token",
83
+ type: "address",
84
+ },
85
+ {
86
+ indexed: false,
87
+ internalType: "address",
88
+ name: "pyth",
89
+ type: "address",
90
+ },
91
+ {
92
+ indexed: false,
93
+ internalType: "bytes32",
94
+ name: "feed",
95
+ type: "bytes32",
96
+ },
97
+ ],
98
+ name: "NewOracleRegistered",
99
+ type: "event",
100
+ },
101
+ {
102
+ anonymous: false,
103
+ inputs: [
104
+ {
105
+ indexed: false,
106
+ internalType: "address",
107
+ name: "token",
108
+ type: "address",
109
+ },
110
+ {
111
+ indexed: false,
112
+ internalType: "address",
113
+ name: "oracle",
114
+ type: "address",
115
+ },
116
+ {
117
+ indexed: false,
118
+ internalType: "bool",
119
+ name: "isWorking",
120
+ type: "bool",
121
+ },
122
+ ],
123
+ name: "PriceFeedStatusUpdated",
124
+ type: "event",
125
+ },
126
+ {
127
+ anonymous: false,
128
+ inputs: [
129
+ {
130
+ indexed: true,
131
+ internalType: "address",
132
+ name: "token",
133
+ type: "address",
134
+ },
135
+ {
136
+ indexed: false,
137
+ internalType: "uint256",
138
+ name: "_price",
139
+ type: "uint256",
140
+ },
141
+ ],
142
+ name: "PriceRecordUpdated",
143
+ type: "event",
144
+ },
145
+ {
146
+ inputs: [],
147
+ name: "LandCore",
148
+ outputs: [
149
+ {
150
+ internalType: "contract ILandCore",
151
+ name: "",
152
+ type: "address",
153
+ },
154
+ ],
155
+ stateMutability: "view",
156
+ type: "function",
157
+ },
158
+ {
159
+ inputs: [],
160
+ name: "RESPONSE_TIMEOUT_BUFFER",
161
+ outputs: [
162
+ {
163
+ internalType: "uint256",
164
+ name: "",
165
+ type: "uint256",
166
+ },
167
+ ],
168
+ stateMutability: "view",
169
+ type: "function",
170
+ },
171
+ {
172
+ inputs: [],
173
+ name: "TARGET_DIGITS",
174
+ outputs: [
175
+ {
176
+ internalType: "uint256",
177
+ name: "",
178
+ type: "uint256",
179
+ },
180
+ ],
181
+ stateMutability: "view",
182
+ type: "function",
183
+ },
184
+ {
185
+ inputs: [
186
+ {
187
+ internalType: "address",
188
+ name: "_token",
189
+ type: "address",
190
+ },
191
+ ],
192
+ name: "fetchPrice",
193
+ outputs: [
194
+ {
195
+ internalType: "uint256",
196
+ name: "",
197
+ type: "uint256",
198
+ },
199
+ ],
200
+ stateMutability: "nonpayable",
201
+ type: "function",
202
+ },
203
+ {
204
+ inputs: [],
205
+ name: "guardian",
206
+ outputs: [
207
+ {
208
+ internalType: "address",
209
+ name: "",
210
+ type: "address",
211
+ },
212
+ ],
213
+ stateMutability: "view",
214
+ type: "function",
215
+ },
216
+ {
217
+ inputs: [
218
+ {
219
+ internalType: "address",
220
+ name: "",
221
+ type: "address",
222
+ },
223
+ ],
224
+ name: "oracleRecords",
225
+ outputs: [
226
+ {
227
+ internalType: "contract IPyth",
228
+ name: "pyth",
229
+ type: "address",
230
+ },
231
+ {
232
+ internalType: "bytes32",
233
+ name: "feed",
234
+ type: "bytes32",
235
+ },
236
+ {
237
+ internalType: "uint32",
238
+ name: "decimals",
239
+ type: "uint32",
240
+ },
241
+ {
242
+ internalType: "uint32",
243
+ name: "heartbeat",
244
+ type: "uint32",
245
+ },
246
+ ],
247
+ stateMutability: "view",
248
+ type: "function",
249
+ },
250
+ {
251
+ inputs: [],
252
+ name: "owner",
253
+ outputs: [
254
+ {
255
+ internalType: "address",
256
+ name: "",
257
+ type: "address",
258
+ },
259
+ ],
260
+ stateMutability: "view",
261
+ type: "function",
262
+ },
263
+ {
264
+ inputs: [],
265
+ name: "paused",
266
+ outputs: [
267
+ {
268
+ internalType: "bool",
269
+ name: "",
270
+ type: "bool",
271
+ },
272
+ ],
273
+ stateMutability: "view",
274
+ type: "function",
275
+ },
276
+ {
277
+ inputs: [
278
+ {
279
+ internalType: "address",
280
+ name: "",
281
+ type: "address",
282
+ },
283
+ ],
284
+ name: "priceRecords",
285
+ outputs: [
286
+ {
287
+ internalType: "uint96",
288
+ name: "scaledPrice",
289
+ type: "uint96",
290
+ },
291
+ {
292
+ internalType: "uint32",
293
+ name: "timestamp",
294
+ type: "uint32",
295
+ },
296
+ {
297
+ internalType: "uint32",
298
+ name: "lastUpdated",
299
+ type: "uint32",
300
+ },
301
+ ],
302
+ stateMutability: "view",
303
+ type: "function",
304
+ },
305
+ {
306
+ inputs: [
307
+ {
308
+ internalType: "address",
309
+ name: "_token",
310
+ type: "address",
311
+ },
312
+ {
313
+ internalType: "address",
314
+ name: "_pyth",
315
+ type: "address",
316
+ },
317
+ {
318
+ internalType: "bytes32",
319
+ name: "_feed",
320
+ type: "bytes32",
321
+ },
322
+ {
323
+ internalType: "uint32",
324
+ name: "_heartbeat",
325
+ type: "uint32",
326
+ },
327
+ ],
328
+ name: "setOracle",
329
+ outputs: [],
330
+ stateMutability: "nonpayable",
331
+ type: "function",
332
+ },
333
+ ];
334
+
335
+ const _bytecode =
336
+ "0x60806040523480156200001157600080fd5b50604051620017bb380380620017bb83398101604081905262000034916200053f565b600080546001600160a01b0319166001600160a01b0387161790556200005d8484848462000068565b50505050506200096c565b82600062000077828562000181565b905060006040518060800160405280846001600160a01b031681526020018681526020018360400151620000ab90620005d9565b63ffffffff90811682528681166020928301526001600160a01b038a811660009081526001808552604091829020865181546001600160a01b03191694169390931783559385015193820193909355918301516002909201805460608501519383166001600160401b031990911617640100000000939092169290920217905590506200013a878284620001bf565b507f70b62b3e9d813f6a0ec49f19e5829c00a071d6051183b2a8c28d78a1a71edd8787878760405162000170939291906200061e565b60405180910390a150505050505050565b6040805160a081018252600080825260208201819052918101829052606081018290526080810191909152620001b8838362000235565b9392505050565b6000620001cc826200030b565b620001f757836040516312b2728d60e21b8152600401620001ee919062000654565b60405180910390fd5b60408301518251600090620002139063ffffffff841662000318565b90506200022c86828660600151620003a460201b60201c565b95945050505050565b6040805160a08101825260008082526020820181905281830181905260608201819052608082015290516396834ad360e01b81526001600160a01b038416906396834ad3906200028a90859060040162000664565b608060405180830381865afa925050508015620002c6575060408051601f3d908101601f19168201909252620002c391810190620007a3565b60015b156200030557805160070b82526020808201516001600160401b03169083015260408082015160030b9083015260609081015190820152600160808201525b92915050565b6000620003058262000474565b6000601282036200033457506001600160401b03821662000305565b601282101562000375576200034b826012620007c8565b6200035890600a6200090c565b6200036d906001600160401b0385166200091d565b905062000305565b62000382601283620007c8565b6200038f90600a6200090c565b6200036d906001600160401b03851662000955565b604080516060810182526001600160601b03808516825263ffffffff80851660208085019182524283168587019081526001600160a01b038a16600081815260029093529187902095518654935191518516600160801b0263ffffffff60801b19929095166c01000000000000000000000000026001600160801b031990941695169490941791909117929092161790915590517f07529ee41a2aab62dbd5cc22c9f45bd6db300404e0a697d2e80349b69ca3087e906200046790859062000664565b60405180910390a2505050565b6000816080015180156200048c575060008260600151115b80156200049d575042826060015111155b80156200030557505051600060079190910b1390565b60006001600160a01b03821662000305565b60006200030582620004b3565b620004dd81620004c5565b8114620004e957600080fd5b50565b80516200030581620004d2565b620004dd81620004b3565b80516200030581620004f9565b80620004dd565b8051620003058162000511565b63ffffffff8116620004dd565b8051620003058162000525565b600080600080600060a086880312156200055c576200055c600080fd5b60006200056a8888620004ec565b95505060206200057d8882890162000504565b9450506040620005908882890162000504565b9350506060620005a38882890162000518565b9250506080620005b68882890162000532565b9150509295509295909350565b634e487b7160e01b600052601160045260246000fd5b6000620005e68260030b90565b9150637fffffff198203620005ff57620005ff620005c3565b5060000390565b6200061181620004b3565b82525050565b8062000611565b606081016200062e828662000606565b6200063d602083018562000606565b6200064c604083018462000617565b949350505050565b6020810162000305828462000606565b6020810162000305828462000617565b634e487b7160e01b600052604160045260246000fd5b601f19601f83011681018181106001600160401b0382111715620006b257620006b262000674565b6040525050565b6000620006c560405190565b9050620006d382826200068a565b919050565b620004dd8160070b90565b80516200030581620006d8565b6001600160401b038116620004dd565b80516200030581620006f0565b620004dd8160030b90565b805162000305816200070d565b6000608082840312156200073c576200073c600080fd5b620007486080620006b9565b90506000620007588484620006e3565b82525060206200076b8484830162000700565b6020830152506040620007818482850162000718565b6040830152506060620007978482850162000518565b60608301525092915050565b600060808284031215620007ba57620007ba600080fd5b60006200064c848462000725565b81810381811115620003055762000305620005c3565b80825b60018511156200082457808604811115620008005762000800620005c3565b60018516156200080f57908102905b80026200081c8560011c90565b9450620007e1565b94509492505050565b6000826200083e57506001620001b8565b816200084d57506000620001b8565b81600181146200086657600281146200087157620008a5565b6001915050620001b8565b60ff841115620008855762000885620005c3565b8360020a9150848211156200089e576200089e620005c3565b50620001b8565b5060208310610133831016604e8410600b8410161715620008dd575081810a83811115620008d757620008d7620005c3565b620001b8565b620008ec8484846001620007de565b92509050818404811115620009055762000905620005c3565b0292915050565b6000620001b860001984846200082d565b818102808215838204851417620009385762000938620005c3565b5092915050565b634e487b7160e01b600052601260045260246000fd5b6000826200096757620009676200093f565b500490565b610e3f806200097c6000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c80637cdde506116100665780637cdde506146101085780638da5cb5b14610164578063a2a870a91461016c578063ace1798e146101bd578063ce6d603f146101d057600080fd5b806302480c96146100a35780631be5c92f146100b857806325838f23146100d6578063452a9320146100de5780635c975abb146100f3575b600080fd5b6100b66100b13660046108e7565b6101f0565b005b6100c0601281565b6040516100cd9190610953565b60405180910390f35b6100c0600081565b6100e6610243565b6040516100cd919061096a565b6100fb6102c0565b6040516100cd9190610980565b61015461011636600461098e565b60016020819052600091825260409091208054918101546002909101546001600160a01b039092169163ffffffff8082169164010000000090041684565b6040516100cd94939291906109e2565b6100e6610338565b6101ae61017a36600461098e565b6002602052600090815260409020546001600160601b0381169063ffffffff600160601b8204811691600160801b90041683565b6040516100cd93929190610a26565b6100c06101cb36600461098e565b61038c565b6000546101e3906001600160a01b031681565b6040516100cd9190610a4e565b6101f8610243565b6001600160a01b0316336001600160a01b0316146102315760405162461bcd60e51b815260040161022890610a5c565b60405180910390fd5b61023d84848484610484565b50505050565b60008060009054906101000a90046001600160a01b03166001600160a01b031663452a93206040518163ffffffff1660e01b8152600401602060405180830381865afa158015610297573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102bb9190610a92565b905090565b60008060009054906101000a90046001600160a01b03166001600160a01b0316635c975abb6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610314573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102bb9190610ac6565b60008060009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610297573d6000803e3d6000fd5b6001600160a01b0381166000908152600260209081526040808320815160608101835290546001600160601b038116825263ffffffff600160601b8204811694830194909452600160801b90049092169082018190524290036103f957516001600160601b031692915050565b6001600160a01b03808416600090815260016020819052604082208054918101549093610427921690610596565b6040805160808101825284546001600160a01b0316815260018501546020820152600285015463ffffffff808216938301939093526401000000009004909116606082015290915061047b908690836105d2565b95945050505050565b8260006104918285610596565b905060006040518060800160405280846001600160a01b0316815260200186815260200183604001516104c390610afd565b63ffffffff90811682528681166020928301526001600160a01b038a811660009081526001808552604091829020865181546001600160a01b031916941693909317835593850151938201939093559183015160029092018054606085015193831667ffffffffffffffff1990911617640100000000939092169290920217905590506105518782846105d2565b507f70b62b3e9d813f6a0ec49f19e5829c00a071d6051183b2a8c28d78a1a71edd8787878760405161058593929190610b26565b60405180910390a150505050505050565b6040805160a0810182526000808252602082018190529181018290526060810182905260808101919091526105cb8383610627565b9392505050565b60006105dd826106f8565b6105fc57836040516312b2728d60e21b8152600401610228919061096a565b604083015182516000906106169063ffffffff8416610703565b905061047b86828660600151610782565b6040805160a08101825260008082526020820181905281830181905260608201819052608082015290516396834ad360e01b81526001600160a01b038416906396834ad39061067a908590600401610953565b608060405180830381865afa9250505080156106b3575060408051601f3d908101601f191682019092526106b091810190610c6f565b60015b156106f257805160070b825260208082015167ffffffffffffffff169083015260408082015160030b9083015260609081015190820152600160808201525b92915050565b60006106f282610850565b60006012820361071e575067ffffffffffffffff82166106f2565b601282101561075857610732826012610c90565b61073d90600a610db1565b6107519067ffffffffffffffff8516610dc0565b90506106f2565b610763601283610c90565b61076e90600a610db1565b6107519067ffffffffffffffff8516610df5565b604080516060810182526001600160601b03808516825263ffffffff80851660208085019182524283168587019081526001600160a01b038a16600081815260029093529187902095518654935191518516600160801b0263ffffffff60801b1992909516600160601b026fffffffffffffffffffffffffffffffff1990941695169490941791909117929092161790915590517f07529ee41a2aab62dbd5cc22c9f45bd6db300404e0a697d2e80349b69ca3087e90610843908590610953565b60405180910390a2505050565b600081608001518015610867575060008260600151115b8015610877575042826060015111155b80156106f257505051600060079190910b1390565b60006001600160a01b0382166106f2565b6108a68161088c565b81146108b157600080fd5b50565b80356106f28161089d565b806108a6565b80356106f2816108bf565b63ffffffff81166108a6565b80356106f2816108d0565b6000806000806080858703121561090057610900600080fd5b600061090c87876108b4565b945050602061091d878288016108b4565b935050604061092e878288016108c5565b925050606061093f878288016108dc565b91505092959194509250565b805b82525050565b602081016106f2828461094b565b61094d8161088c565b602081016106f28284610961565b80151561094d565b602081016106f28284610978565b6000602082840312156109a3576109a3600080fd5b60006109af84846108b4565b949350505050565b60006106f28261088c565b60006106f2826109b7565b61094d816109c2565b63ffffffff811661094d565b608081016109f082876109cd565b6109fd602083018661094b565b610a0a60408301856109d6565b61047b60608301846109d6565b6001600160601b03811661094d565b60608101610a348286610a17565b610a4160208301856109d6565b6109af60408301846109d6565b602081016106f282846109cd565b602080825281016106f281600d81526c27b7363c9033bab0b93234b0b760991b602082015260400190565b80516106f28161089d565b600060208284031215610aa757610aa7600080fd5b60006109af8484610a87565b8015156108a6565b80516106f281610ab3565b600060208284031215610adb57610adb600080fd5b60006109af8484610abb565b634e487b7160e01b600052601160045260246000fd5b6000610b098260030b90565b9150637fffffff198203610b1f57610b1f610ae7565b5060000390565b60608101610b348286610961565b610b416020830185610961565b6109af604083018461094b565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff82111715610b8a57610b8a610b4e565b6040525050565b6000610b9c60405190565b9050610ba88282610b64565b919050565b6108a68160070b90565b80516106f281610bad565b67ffffffffffffffff81166108a6565b80516106f281610bc2565b6108a68160030b90565b80516106f281610bdd565b80516106f2816108bf565b600060808284031215610c1257610c12600080fd5b610c1c6080610b91565b90506000610c2a8484610bb7565b8252506020610c3b84848301610bd2565b6020830152506040610c4f84828501610be7565b6040830152506060610c6384828501610bf2565b60608301525092915050565b600060808284031215610c8457610c84600080fd5b60006109af8484610bfd565b818103818111156106f2576106f2610ae7565b80825b6001851115610ce257808604811115610cc157610cc1610ae7565b6001851615610ccf57908102905b8002610cdb8560011c90565b9450610ca6565b94509492505050565b600082610cfa575060016105cb565b81610d07575060006105cb565b8160018114610d1d5760028114610d2757610d54565b60019150506105cb565b60ff841115610d3857610d38610ae7565b8360020a915084821115610d4e57610d4e610ae7565b506105cb565b5060208310610133831016604e8410600b8410161715610d87575081810a83811115610d8257610d82610ae7565b6105cb565b610d948484846001610ca3565b92509050818404811115610daa57610daa610ae7565b0292915050565b60006105cb6000198484610ceb565b818102808215838204851417610dd857610dd8610ae7565b5092915050565b634e487b7160e01b600052601260045260246000fd5b600082610e0457610e04610ddf565b50049056fea26469706673582212203dae62a0e626df4238be70b4d74cc29a5d70596bfdf1372f1472b6f6f2e54b9664736f6c63430008130033";
337
+
338
+ export class PythPriceFeed__factory extends ContractFactory {
339
+ constructor(
340
+ ...args: [signer: Signer] | ConstructorParameters<typeof ContractFactory>
341
+ ) {
342
+ if (args.length === 1) {
343
+ super(_abi, _bytecode, args[0]);
344
+ } else {
345
+ super(...args);
346
+ }
347
+ }
348
+
349
+ deploy(
350
+ _core: string,
351
+ _token: string,
352
+ _pyth: string,
353
+ _feed: BytesLike,
354
+ _heartbeat: BigNumberish,
355
+ overrides?: Overrides & { from?: string | Promise<string> }
356
+ ): Promise<PythPriceFeed> {
357
+ return super.deploy(
358
+ _core,
359
+ _token,
360
+ _pyth,
361
+ _feed,
362
+ _heartbeat,
363
+ overrides || {}
364
+ ) as Promise<PythPriceFeed>;
365
+ }
366
+ getDeployTransaction(
367
+ _core: string,
368
+ _token: string,
369
+ _pyth: string,
370
+ _feed: BytesLike,
371
+ _heartbeat: BigNumberish,
372
+ overrides?: Overrides & { from?: string | Promise<string> }
373
+ ): TransactionRequest {
374
+ return super.getDeployTransaction(
375
+ _core,
376
+ _token,
377
+ _pyth,
378
+ _feed,
379
+ _heartbeat,
380
+ overrides || {}
381
+ );
382
+ }
383
+ attach(address: string): PythPriceFeed {
384
+ return super.attach(address) as PythPriceFeed;
385
+ }
386
+ connect(signer: Signer): PythPriceFeed__factory {
387
+ return super.connect(signer) as PythPriceFeed__factory;
388
+ }
389
+ static readonly bytecode = _bytecode;
390
+ static readonly abi = _abi;
391
+ static createInterface(): PythPriceFeedInterface {
392
+ return new utils.Interface(_abi) as PythPriceFeedInterface;
393
+ }
394
+ static connect(
395
+ address: string,
396
+ signerOrProvider: Signer | Provider
397
+ ): PythPriceFeed {
398
+ return new Contract(address, _abi, signerOrProvider) as PythPriceFeed;
399
+ }
400
+ }
@@ -0,0 +1,305 @@
1
+ "use strict";
2
+ /* Autogenerated file. Do not edit manually. */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.StandardToken__factory = void 0;
7
+ var ethers_1 = require("ethers");
8
+ var _abi = [
9
+ {
10
+ constant: false,
11
+ inputs: [
12
+ {
13
+ name: "_spender",
14
+ type: "address",
15
+ },
16
+ {
17
+ name: "_value",
18
+ type: "uint256",
19
+ },
20
+ ],
21
+ name: "approve",
22
+ outputs: [],
23
+ payable: false,
24
+ stateMutability: "nonpayable",
25
+ type: "function",
26
+ },
27
+ {
28
+ constant: true,
29
+ inputs: [],
30
+ name: "totalSupply",
31
+ outputs: [
32
+ {
33
+ name: "",
34
+ type: "uint256",
35
+ },
36
+ ],
37
+ payable: false,
38
+ stateMutability: "view",
39
+ type: "function",
40
+ },
41
+ {
42
+ constant: false,
43
+ inputs: [
44
+ {
45
+ name: "_from",
46
+ type: "address",
47
+ },
48
+ {
49
+ name: "_to",
50
+ type: "address",
51
+ },
52
+ {
53
+ name: "_value",
54
+ type: "uint256",
55
+ },
56
+ ],
57
+ name: "transferFrom",
58
+ outputs: [],
59
+ payable: false,
60
+ stateMutability: "nonpayable",
61
+ type: "function",
62
+ },
63
+ {
64
+ constant: true,
65
+ inputs: [
66
+ {
67
+ name: "",
68
+ type: "address",
69
+ },
70
+ ],
71
+ name: "balances",
72
+ outputs: [
73
+ {
74
+ name: "",
75
+ type: "uint256",
76
+ },
77
+ ],
78
+ payable: false,
79
+ stateMutability: "view",
80
+ type: "function",
81
+ },
82
+ {
83
+ constant: true,
84
+ inputs: [],
85
+ name: "maximumFee",
86
+ outputs: [
87
+ {
88
+ name: "",
89
+ type: "uint256",
90
+ },
91
+ ],
92
+ payable: false,
93
+ stateMutability: "view",
94
+ type: "function",
95
+ },
96
+ {
97
+ constant: true,
98
+ inputs: [],
99
+ name: "_totalSupply",
100
+ outputs: [
101
+ {
102
+ name: "",
103
+ type: "uint256",
104
+ },
105
+ ],
106
+ payable: false,
107
+ stateMutability: "view",
108
+ type: "function",
109
+ },
110
+ {
111
+ constant: true,
112
+ inputs: [
113
+ {
114
+ name: "",
115
+ type: "address",
116
+ },
117
+ {
118
+ name: "",
119
+ type: "address",
120
+ },
121
+ ],
122
+ name: "allowed",
123
+ outputs: [
124
+ {
125
+ name: "",
126
+ type: "uint256",
127
+ },
128
+ ],
129
+ payable: false,
130
+ stateMutability: "view",
131
+ type: "function",
132
+ },
133
+ {
134
+ constant: true,
135
+ inputs: [
136
+ {
137
+ name: "_owner",
138
+ type: "address",
139
+ },
140
+ ],
141
+ name: "balanceOf",
142
+ outputs: [
143
+ {
144
+ name: "balance",
145
+ type: "uint256",
146
+ },
147
+ ],
148
+ payable: false,
149
+ stateMutability: "view",
150
+ type: "function",
151
+ },
152
+ {
153
+ constant: true,
154
+ inputs: [],
155
+ name: "owner",
156
+ outputs: [
157
+ {
158
+ name: "",
159
+ type: "address",
160
+ },
161
+ ],
162
+ payable: false,
163
+ stateMutability: "view",
164
+ type: "function",
165
+ },
166
+ {
167
+ constant: false,
168
+ inputs: [
169
+ {
170
+ name: "_to",
171
+ type: "address",
172
+ },
173
+ {
174
+ name: "_value",
175
+ type: "uint256",
176
+ },
177
+ ],
178
+ name: "transfer",
179
+ outputs: [],
180
+ payable: false,
181
+ stateMutability: "nonpayable",
182
+ type: "function",
183
+ },
184
+ {
185
+ constant: true,
186
+ inputs: [
187
+ {
188
+ name: "_owner",
189
+ type: "address",
190
+ },
191
+ {
192
+ name: "_spender",
193
+ type: "address",
194
+ },
195
+ ],
196
+ name: "allowance",
197
+ outputs: [
198
+ {
199
+ name: "remaining",
200
+ type: "uint256",
201
+ },
202
+ ],
203
+ payable: false,
204
+ stateMutability: "view",
205
+ type: "function",
206
+ },
207
+ {
208
+ constant: true,
209
+ inputs: [],
210
+ name: "basisPointsRate",
211
+ outputs: [
212
+ {
213
+ name: "",
214
+ type: "uint256",
215
+ },
216
+ ],
217
+ payable: false,
218
+ stateMutability: "view",
219
+ type: "function",
220
+ },
221
+ {
222
+ constant: true,
223
+ inputs: [],
224
+ name: "MAX_UINT",
225
+ outputs: [
226
+ {
227
+ name: "",
228
+ type: "uint256",
229
+ },
230
+ ],
231
+ payable: false,
232
+ stateMutability: "view",
233
+ type: "function",
234
+ },
235
+ {
236
+ constant: false,
237
+ inputs: [
238
+ {
239
+ name: "newOwner",
240
+ type: "address",
241
+ },
242
+ ],
243
+ name: "transferOwnership",
244
+ outputs: [],
245
+ payable: false,
246
+ stateMutability: "nonpayable",
247
+ type: "function",
248
+ },
249
+ {
250
+ anonymous: false,
251
+ inputs: [
252
+ {
253
+ indexed: true,
254
+ name: "owner",
255
+ type: "address",
256
+ },
257
+ {
258
+ indexed: true,
259
+ name: "spender",
260
+ type: "address",
261
+ },
262
+ {
263
+ indexed: false,
264
+ name: "value",
265
+ type: "uint256",
266
+ },
267
+ ],
268
+ name: "Approval",
269
+ type: "event",
270
+ },
271
+ {
272
+ anonymous: false,
273
+ inputs: [
274
+ {
275
+ indexed: true,
276
+ name: "from",
277
+ type: "address",
278
+ },
279
+ {
280
+ indexed: true,
281
+ name: "to",
282
+ type: "address",
283
+ },
284
+ {
285
+ indexed: false,
286
+ name: "value",
287
+ type: "uint256",
288
+ },
289
+ ],
290
+ name: "Transfer",
291
+ type: "event",
292
+ },
293
+ ];
294
+ var StandardToken__factory = exports.StandardToken__factory = /** @class */ (function () {
295
+ function StandardToken__factory() {
296
+ }
297
+ StandardToken__factory.createInterface = function () {
298
+ return new ethers_1.utils.Interface(_abi);
299
+ };
300
+ StandardToken__factory.connect = function (address, signerOrProvider) {
301
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
302
+ };
303
+ StandardToken__factory.abi = _abi;
304
+ return StandardToken__factory;
305
+ }());