@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,255 @@
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.ILand__factory = void 0;
7
+ var ethers_1 = require("ethers");
8
+ var _abi = [
9
+ {
10
+ anonymous: false,
11
+ inputs: [
12
+ {
13
+ indexed: false,
14
+ internalType: "contract ICoin",
15
+ name: "coin",
16
+ type: "address",
17
+ },
18
+ ],
19
+ name: "AddCoin",
20
+ type: "event",
21
+ },
22
+ {
23
+ anonymous: false,
24
+ inputs: [
25
+ {
26
+ indexed: false,
27
+ internalType: "bytes32",
28
+ name: "account",
29
+ type: "bytes32",
30
+ },
31
+ {
32
+ indexed: false,
33
+ internalType: "contract ICoin",
34
+ name: "coin",
35
+ type: "address",
36
+ },
37
+ {
38
+ indexed: false,
39
+ internalType: "uint256",
40
+ name: "value",
41
+ type: "uint256",
42
+ },
43
+ {
44
+ indexed: false,
45
+ internalType: "uint256",
46
+ name: "coinAmount",
47
+ type: "uint256",
48
+ },
49
+ {
50
+ indexed: false,
51
+ internalType: "uint256",
52
+ name: "landAmount",
53
+ type: "uint256",
54
+ },
55
+ {
56
+ indexed: false,
57
+ internalType: "uint256",
58
+ name: "totalLandAmount",
59
+ type: "uint256",
60
+ },
61
+ ],
62
+ name: "Mint",
63
+ type: "event",
64
+ },
65
+ {
66
+ anonymous: false,
67
+ inputs: [
68
+ {
69
+ indexed: false,
70
+ internalType: "contract ICoin",
71
+ name: "coin",
72
+ type: "address",
73
+ },
74
+ ],
75
+ name: "RemoveCoin",
76
+ type: "event",
77
+ },
78
+ {
79
+ anonymous: false,
80
+ inputs: [
81
+ {
82
+ indexed: false,
83
+ internalType: "contract ICoin",
84
+ name: "coin",
85
+ type: "address",
86
+ },
87
+ {
88
+ indexed: false,
89
+ internalType: "address",
90
+ name: "to",
91
+ type: "address",
92
+ },
93
+ {
94
+ indexed: false,
95
+ internalType: "uint256",
96
+ name: "amount",
97
+ type: "uint256",
98
+ },
99
+ ],
100
+ name: "WithdrawnCoin",
101
+ type: "event",
102
+ },
103
+ {
104
+ inputs: [
105
+ {
106
+ internalType: "contract ICoin",
107
+ name: "coin",
108
+ type: "address",
109
+ },
110
+ ],
111
+ name: "addCoin",
112
+ outputs: [],
113
+ stateMutability: "nonpayable",
114
+ type: "function",
115
+ },
116
+ {
117
+ inputs: [
118
+ {
119
+ internalType: "bytes32",
120
+ name: "account",
121
+ type: "bytes32",
122
+ },
123
+ ],
124
+ name: "balanceOf",
125
+ outputs: [
126
+ {
127
+ internalType: "uint256",
128
+ name: "",
129
+ type: "uint256",
130
+ },
131
+ ],
132
+ stateMutability: "view",
133
+ type: "function",
134
+ },
135
+ {
136
+ inputs: [
137
+ {
138
+ internalType: "contract ICoin",
139
+ name: "coin",
140
+ type: "address",
141
+ },
142
+ ],
143
+ name: "coinExists",
144
+ outputs: [
145
+ {
146
+ internalType: "bool",
147
+ name: "",
148
+ type: "bool",
149
+ },
150
+ ],
151
+ stateMutability: "view",
152
+ type: "function",
153
+ },
154
+ {
155
+ inputs: [
156
+ {
157
+ internalType: "contract ICoin",
158
+ name: "coin",
159
+ type: "address",
160
+ },
161
+ ],
162
+ name: "decimalsOf",
163
+ outputs: [
164
+ {
165
+ internalType: "uint8",
166
+ name: "",
167
+ type: "uint8",
168
+ },
169
+ ],
170
+ stateMutability: "view",
171
+ type: "function",
172
+ },
173
+ {
174
+ inputs: [
175
+ {
176
+ internalType: "contract ICoin",
177
+ name: "coin",
178
+ type: "address",
179
+ },
180
+ {
181
+ internalType: "uint256",
182
+ name: "amount",
183
+ type: "uint256",
184
+ },
185
+ ],
186
+ name: "formatValue",
187
+ outputs: [
188
+ {
189
+ internalType: "uint256",
190
+ name: "",
191
+ type: "uint256",
192
+ },
193
+ ],
194
+ stateMutability: "view",
195
+ type: "function",
196
+ },
197
+ {
198
+ inputs: [
199
+ {
200
+ internalType: "contract ICoin",
201
+ name: "coin",
202
+ type: "address",
203
+ },
204
+ {
205
+ internalType: "bytes32",
206
+ name: "account",
207
+ type: "bytes32",
208
+ },
209
+ {
210
+ internalType: "uint256",
211
+ name: "amount",
212
+ type: "uint256",
213
+ },
214
+ ],
215
+ name: "mint",
216
+ outputs: [],
217
+ stateMutability: "nonpayable",
218
+ type: "function",
219
+ },
220
+ {
221
+ inputs: [
222
+ {
223
+ internalType: "contract ICoin",
224
+ name: "coin",
225
+ type: "address",
226
+ },
227
+ {
228
+ internalType: "address",
229
+ name: "to",
230
+ type: "address",
231
+ },
232
+ {
233
+ internalType: "uint256",
234
+ name: "amount",
235
+ type: "uint256",
236
+ },
237
+ ],
238
+ name: "withdraw",
239
+ outputs: [],
240
+ stateMutability: "nonpayable",
241
+ type: "function",
242
+ },
243
+ ];
244
+ var ILand__factory = exports.ILand__factory = /** @class */ (function () {
245
+ function ILand__factory() {
246
+ }
247
+ ILand__factory.createInterface = function () {
248
+ return new ethers_1.utils.Interface(_abi);
249
+ };
250
+ ILand__factory.connect = function (address, signerOrProvider) {
251
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
252
+ };
253
+ ILand__factory.abi = _abi;
254
+ return ILand__factory;
255
+ }());
@@ -0,0 +1,254 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import { Provider } from "@ethersproject/providers";
7
+ import type { ILand, ILandInterface } from "../ILand";
8
+
9
+ const _abi = [
10
+ {
11
+ anonymous: false,
12
+ inputs: [
13
+ {
14
+ indexed: false,
15
+ internalType: "contract ICoin",
16
+ name: "coin",
17
+ type: "address",
18
+ },
19
+ ],
20
+ name: "AddCoin",
21
+ type: "event",
22
+ },
23
+ {
24
+ anonymous: false,
25
+ inputs: [
26
+ {
27
+ indexed: false,
28
+ internalType: "bytes32",
29
+ name: "account",
30
+ type: "bytes32",
31
+ },
32
+ {
33
+ indexed: false,
34
+ internalType: "contract ICoin",
35
+ name: "coin",
36
+ type: "address",
37
+ },
38
+ {
39
+ indexed: false,
40
+ internalType: "uint256",
41
+ name: "value",
42
+ type: "uint256",
43
+ },
44
+ {
45
+ indexed: false,
46
+ internalType: "uint256",
47
+ name: "coinAmount",
48
+ type: "uint256",
49
+ },
50
+ {
51
+ indexed: false,
52
+ internalType: "uint256",
53
+ name: "landAmount",
54
+ type: "uint256",
55
+ },
56
+ {
57
+ indexed: false,
58
+ internalType: "uint256",
59
+ name: "totalLandAmount",
60
+ type: "uint256",
61
+ },
62
+ ],
63
+ name: "Mint",
64
+ type: "event",
65
+ },
66
+ {
67
+ anonymous: false,
68
+ inputs: [
69
+ {
70
+ indexed: false,
71
+ internalType: "contract ICoin",
72
+ name: "coin",
73
+ type: "address",
74
+ },
75
+ ],
76
+ name: "RemoveCoin",
77
+ type: "event",
78
+ },
79
+ {
80
+ anonymous: false,
81
+ inputs: [
82
+ {
83
+ indexed: false,
84
+ internalType: "contract ICoin",
85
+ name: "coin",
86
+ type: "address",
87
+ },
88
+ {
89
+ indexed: false,
90
+ internalType: "address",
91
+ name: "to",
92
+ type: "address",
93
+ },
94
+ {
95
+ indexed: false,
96
+ internalType: "uint256",
97
+ name: "amount",
98
+ type: "uint256",
99
+ },
100
+ ],
101
+ name: "WithdrawnCoin",
102
+ type: "event",
103
+ },
104
+ {
105
+ inputs: [
106
+ {
107
+ internalType: "contract ICoin",
108
+ name: "coin",
109
+ type: "address",
110
+ },
111
+ ],
112
+ name: "addCoin",
113
+ outputs: [],
114
+ stateMutability: "nonpayable",
115
+ type: "function",
116
+ },
117
+ {
118
+ inputs: [
119
+ {
120
+ internalType: "bytes32",
121
+ name: "account",
122
+ type: "bytes32",
123
+ },
124
+ ],
125
+ name: "balanceOf",
126
+ outputs: [
127
+ {
128
+ internalType: "uint256",
129
+ name: "",
130
+ type: "uint256",
131
+ },
132
+ ],
133
+ stateMutability: "view",
134
+ type: "function",
135
+ },
136
+ {
137
+ inputs: [
138
+ {
139
+ internalType: "contract ICoin",
140
+ name: "coin",
141
+ type: "address",
142
+ },
143
+ ],
144
+ name: "coinExists",
145
+ outputs: [
146
+ {
147
+ internalType: "bool",
148
+ name: "",
149
+ type: "bool",
150
+ },
151
+ ],
152
+ stateMutability: "view",
153
+ type: "function",
154
+ },
155
+ {
156
+ inputs: [
157
+ {
158
+ internalType: "contract ICoin",
159
+ name: "coin",
160
+ type: "address",
161
+ },
162
+ ],
163
+ name: "decimalsOf",
164
+ outputs: [
165
+ {
166
+ internalType: "uint8",
167
+ name: "",
168
+ type: "uint8",
169
+ },
170
+ ],
171
+ stateMutability: "view",
172
+ type: "function",
173
+ },
174
+ {
175
+ inputs: [
176
+ {
177
+ internalType: "contract ICoin",
178
+ name: "coin",
179
+ type: "address",
180
+ },
181
+ {
182
+ internalType: "uint256",
183
+ name: "amount",
184
+ type: "uint256",
185
+ },
186
+ ],
187
+ name: "formatValue",
188
+ outputs: [
189
+ {
190
+ internalType: "uint256",
191
+ name: "",
192
+ type: "uint256",
193
+ },
194
+ ],
195
+ stateMutability: "view",
196
+ type: "function",
197
+ },
198
+ {
199
+ inputs: [
200
+ {
201
+ internalType: "contract ICoin",
202
+ name: "coin",
203
+ type: "address",
204
+ },
205
+ {
206
+ internalType: "bytes32",
207
+ name: "account",
208
+ type: "bytes32",
209
+ },
210
+ {
211
+ internalType: "uint256",
212
+ name: "amount",
213
+ type: "uint256",
214
+ },
215
+ ],
216
+ name: "mint",
217
+ outputs: [],
218
+ stateMutability: "nonpayable",
219
+ type: "function",
220
+ },
221
+ {
222
+ inputs: [
223
+ {
224
+ internalType: "contract ICoin",
225
+ name: "coin",
226
+ type: "address",
227
+ },
228
+ {
229
+ internalType: "address",
230
+ name: "to",
231
+ type: "address",
232
+ },
233
+ {
234
+ internalType: "uint256",
235
+ name: "amount",
236
+ type: "uint256",
237
+ },
238
+ ],
239
+ name: "withdraw",
240
+ outputs: [],
241
+ stateMutability: "nonpayable",
242
+ type: "function",
243
+ },
244
+ ];
245
+
246
+ export class ILand__factory {
247
+ static readonly abi = _abi;
248
+ static createInterface(): ILandInterface {
249
+ return new utils.Interface(_abi) as ILandInterface;
250
+ }
251
+ static connect(address: string, signerOrProvider: Signer | Provider): ILand {
252
+ return new Contract(address, _abi, signerOrProvider) as ILand;
253
+ }
254
+ }
@@ -0,0 +1,40 @@
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.IPriceFeed__factory = void 0;
7
+ var ethers_1 = require("ethers");
8
+ var _abi = [
9
+ {
10
+ inputs: [
11
+ {
12
+ internalType: "address",
13
+ name: "_token",
14
+ type: "address",
15
+ },
16
+ ],
17
+ name: "fetchPrice",
18
+ outputs: [
19
+ {
20
+ internalType: "uint256",
21
+ name: "",
22
+ type: "uint256",
23
+ },
24
+ ],
25
+ stateMutability: "nonpayable",
26
+ type: "function",
27
+ },
28
+ ];
29
+ var IPriceFeed__factory = exports.IPriceFeed__factory = /** @class */ (function () {
30
+ function IPriceFeed__factory() {
31
+ }
32
+ IPriceFeed__factory.createInterface = function () {
33
+ return new ethers_1.utils.Interface(_abi);
34
+ };
35
+ IPriceFeed__factory.connect = function (address, signerOrProvider) {
36
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
37
+ };
38
+ IPriceFeed__factory.abi = _abi;
39
+ return IPriceFeed__factory;
40
+ }());
@@ -0,0 +1,42 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import { Provider } from "@ethersproject/providers";
7
+ import type { IPriceFeed, IPriceFeedInterface } from "../IPriceFeed";
8
+
9
+ const _abi = [
10
+ {
11
+ inputs: [
12
+ {
13
+ internalType: "address",
14
+ name: "_token",
15
+ type: "address",
16
+ },
17
+ ],
18
+ name: "fetchPrice",
19
+ outputs: [
20
+ {
21
+ internalType: "uint256",
22
+ name: "",
23
+ type: "uint256",
24
+ },
25
+ ],
26
+ stateMutability: "nonpayable",
27
+ type: "function",
28
+ },
29
+ ];
30
+
31
+ export class IPriceFeed__factory {
32
+ static readonly abi = _abi;
33
+ static createInterface(): IPriceFeedInterface {
34
+ return new utils.Interface(_abi) as IPriceFeedInterface;
35
+ }
36
+ static connect(
37
+ address: string,
38
+ signerOrProvider: Signer | Provider
39
+ ): IPriceFeed {
40
+ return new Contract(address, _abi, signerOrProvider) as IPriceFeed;
41
+ }
42
+ }
@@ -0,0 +1,103 @@
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.IPyth__factory = void 0;
7
+ var ethers_1 = require("ethers");
8
+ var _abi = [
9
+ {
10
+ inputs: [
11
+ {
12
+ internalType: "bytes32",
13
+ name: "id",
14
+ type: "bytes32",
15
+ },
16
+ ],
17
+ name: "getPrice",
18
+ outputs: [
19
+ {
20
+ components: [
21
+ {
22
+ internalType: "int64",
23
+ name: "price",
24
+ type: "int64",
25
+ },
26
+ {
27
+ internalType: "uint64",
28
+ name: "conf",
29
+ type: "uint64",
30
+ },
31
+ {
32
+ internalType: "int32",
33
+ name: "expo",
34
+ type: "int32",
35
+ },
36
+ {
37
+ internalType: "uint256",
38
+ name: "publishTime",
39
+ type: "uint256",
40
+ },
41
+ ],
42
+ internalType: "struct IPyth.Price",
43
+ name: "",
44
+ type: "tuple",
45
+ },
46
+ ],
47
+ stateMutability: "view",
48
+ type: "function",
49
+ },
50
+ {
51
+ inputs: [
52
+ {
53
+ internalType: "bytes32",
54
+ name: "id",
55
+ type: "bytes32",
56
+ },
57
+ ],
58
+ name: "getPriceUnsafe",
59
+ outputs: [
60
+ {
61
+ components: [
62
+ {
63
+ internalType: "int64",
64
+ name: "price",
65
+ type: "int64",
66
+ },
67
+ {
68
+ internalType: "uint64",
69
+ name: "conf",
70
+ type: "uint64",
71
+ },
72
+ {
73
+ internalType: "int32",
74
+ name: "expo",
75
+ type: "int32",
76
+ },
77
+ {
78
+ internalType: "uint256",
79
+ name: "publishTime",
80
+ type: "uint256",
81
+ },
82
+ ],
83
+ internalType: "struct IPyth.Price",
84
+ name: "price",
85
+ type: "tuple",
86
+ },
87
+ ],
88
+ stateMutability: "view",
89
+ type: "function",
90
+ },
91
+ ];
92
+ var IPyth__factory = exports.IPyth__factory = /** @class */ (function () {
93
+ function IPyth__factory() {
94
+ }
95
+ IPyth__factory.createInterface = function () {
96
+ return new ethers_1.utils.Interface(_abi);
97
+ };
98
+ IPyth__factory.connect = function (address, signerOrProvider) {
99
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
100
+ };
101
+ IPyth__factory.abi = _abi;
102
+ return IPyth__factory;
103
+ }());