@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,207 @@
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.CustomPriceFeed__factory = void 0;
22
+ var ethers_1 = require("ethers");
23
+ var _abi = [
24
+ {
25
+ inputs: [
26
+ {
27
+ internalType: "contract ILandCore",
28
+ name: "_core",
29
+ type: "address",
30
+ },
31
+ {
32
+ internalType: "address",
33
+ name: "token",
34
+ type: "address",
35
+ },
36
+ {
37
+ internalType: "address",
38
+ name: "_v3Pool",
39
+ type: "address",
40
+ },
41
+ ],
42
+ stateMutability: "nonpayable",
43
+ type: "constructor",
44
+ },
45
+ {
46
+ inputs: [],
47
+ name: "LandCore",
48
+ outputs: [
49
+ {
50
+ internalType: "contract ILandCore",
51
+ name: "",
52
+ type: "address",
53
+ },
54
+ ],
55
+ stateMutability: "view",
56
+ type: "function",
57
+ },
58
+ {
59
+ inputs: [],
60
+ name: "Q96",
61
+ outputs: [
62
+ {
63
+ internalType: "uint256",
64
+ name: "",
65
+ type: "uint256",
66
+ },
67
+ ],
68
+ stateMutability: "view",
69
+ type: "function",
70
+ },
71
+ {
72
+ inputs: [],
73
+ name: "TWAP_PERIOD",
74
+ outputs: [
75
+ {
76
+ internalType: "uint32",
77
+ name: "",
78
+ type: "uint32",
79
+ },
80
+ ],
81
+ stateMutability: "view",
82
+ type: "function",
83
+ },
84
+ {
85
+ inputs: [
86
+ {
87
+ internalType: "address",
88
+ name: "token",
89
+ type: "address",
90
+ },
91
+ ],
92
+ name: "fetchPrice",
93
+ outputs: [
94
+ {
95
+ internalType: "uint256",
96
+ name: "",
97
+ type: "uint256",
98
+ },
99
+ ],
100
+ stateMutability: "view",
101
+ type: "function",
102
+ },
103
+ {
104
+ inputs: [],
105
+ name: "guardian",
106
+ outputs: [
107
+ {
108
+ internalType: "address",
109
+ name: "",
110
+ type: "address",
111
+ },
112
+ ],
113
+ stateMutability: "view",
114
+ type: "function",
115
+ },
116
+ {
117
+ inputs: [],
118
+ name: "owner",
119
+ outputs: [
120
+ {
121
+ internalType: "address",
122
+ name: "",
123
+ type: "address",
124
+ },
125
+ ],
126
+ stateMutability: "view",
127
+ type: "function",
128
+ },
129
+ {
130
+ inputs: [],
131
+ name: "paused",
132
+ outputs: [
133
+ {
134
+ internalType: "bool",
135
+ name: "",
136
+ type: "bool",
137
+ },
138
+ ],
139
+ stateMutability: "view",
140
+ type: "function",
141
+ },
142
+ {
143
+ inputs: [],
144
+ name: "pool",
145
+ outputs: [
146
+ {
147
+ internalType: "contract IUniswapV3Pool",
148
+ name: "",
149
+ type: "address",
150
+ },
151
+ ],
152
+ stateMutability: "view",
153
+ type: "function",
154
+ },
155
+ {
156
+ inputs: [],
157
+ name: "targetToken",
158
+ outputs: [
159
+ {
160
+ internalType: "address",
161
+ name: "",
162
+ type: "address",
163
+ },
164
+ ],
165
+ stateMutability: "view",
166
+ type: "function",
167
+ },
168
+ ];
169
+ var _bytecode = "0x608060405234801561001057600080fd5b50604051610d00380380610d008339818101604052606081101561003357600080fd5b5080516020820151604090920151600080546001600160a01b039384166001600160a01b031991821617909155600280549284169282169290921790915560018054929093169116179055610c738061008d6000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c80635c975abb116100665780635c975abb146100e65780637ca25184146101025780638da5cb5b14610123578063ace1798e1461012b578063ce6d603f1461015157610093565b806316f0115b14610098578063327107f7146100bc57806340792465146100c4578063452a9320146100de575b600080fd5b6100a0610159565b604080516001600160a01b039092168252519081900360200190f35b6100a0610168565b6100cc610177565b60408051918252519081900360200190f35b6100a061017f565b6100ee6101ff565b604080519115158252519081900360200190f35b61010a61024e565b6040805163ffffffff9092168252519081900360200190f35b6100a0610254565b6100cc6004803603602081101561014157600080fd5b50356001600160a01b03166102a3565b6100a06107a7565b6002546001600160a01b031681565b6001546001600160a01b031681565b600160601b81565b60008060009054906101000a90046001600160a01b03166001600160a01b031663452a93206040518163ffffffff1660e01b815260040160206040518083038186803b1580156101ce57600080fd5b505afa1580156101e2573d6000803e3d6000fd5b505050506040513d60208110156101f857600080fd5b5051905090565b60008060009054906101000a90046001600160a01b03166001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b1580156101ce57600080fd5b61070881565b60008060009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156101ce57600080fd5b6001546000906001600160a01b038381169116146102f25760405162461bcd60e51b815260040180806020018281038252602a815260200180610c14602a913960400191505060405180910390fd5b6040805160028082526060820183526000926020830190803683370190505090506107088160008151811061032357fe5b602002602001019063ffffffff16908163ffffffff168152505060008160018151811061034c57fe5b63ffffffff90921660209283029190910182015260025460405163883bdbfd60e01b8152600481018381528451602483015284516000946001600160a01b039094169363883bdbfd93879392839260449092019185810191028083838b5b838110156103c25781810151838201526020016103aa565b505050509050019250505060006040518083038186803b1580156103e557600080fd5b505afa1580156103f9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604090815281101561042257600080fd5b810190808051604051939291908464010000000082111561044257600080fd5b90830190602082018581111561045757600080fd5b825186602082028301116401000000008211171561047457600080fd5b82525081516020918201928201910280838360005b838110156104a1578181015183820152602001610489565b50505050905001604052602001805160405193929190846401000000008211156104ca57600080fd5b9083019060208201858111156104df57600080fd5b82518660208202830111640100000000821117156104fc57600080fd5b82525081516020918201928201910280838360005b83811015610529578181015183820152602001610511565b5050505090500160405250505050905060008160008151811061054857fe5b60200260200101518260018151811061055d57fe5b6020026020010151039050600061070860030b8260060b8161057b57fe5b0590506000600260009054906101000a90046001600160a01b03166001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b1580156105ce57600080fd5b505afa1580156105e2573d6000803e3d6000fd5b505050506040513d60208110156105f857600080fd5b50516002546040805163d21220a760e01b815290519293506000926001600160a01b039092169163d21220a791600480820192602092909190829003018186803b15801561064557600080fd5b505afa158015610659573d6000803e3d6000fd5b505050506040513d602081101561066f57600080fd5b50516040805163313ce56760e01b815290519192506000916001600160a01b0385169163313ce567916004808301926020929190829003018186803b1580156106b757600080fd5b505afa1580156106cb573d6000803e3d6000fd5b505050506040513d60208110156106e157600080fd5b50516040805163313ce56760e01b815290519192506000916001600160a01b0385169163313ce567916004808301926020929190829003018186803b15801561072957600080fd5b505afa15801561073d573d6000803e3d6000fd5b505050506040513d602081101561075357600080fd5b5051905060006107648684846107b6565b6001549091506001600160a01b038581169116141561079957806ec097ce7bc90715b34b9f10000000008161079557fe5b0490505b9a9950505050505050505050565b6000546001600160a01b031681565b6000806107c285610832565b905060006107e66001600160a01b038316800260ff8716600a0a600160c01b610b64565b905060128460ff1610156108055760ff601285900316600a0a02610827565b60128460ff161115610827576012840360ff16600a0a818161082357fe5b0490505b9150505b9392505050565b60008060008360020b12610849578260020b610851565b8260020b6000035b9050620d89e881111561088f576040805162461bcd60e51b81526020600482015260016024820152601560fa1b604482015290519081900360640190fd5b6000600182166108a357600160801b6108b5565b6ffffcb933bd6fad37aa2d162d1a5940015b70ffffffffffffffffffffffffffffffffff16905060028216156108e9576ffff97272373d413259a46990580e213a0260801c5b6004821615610908576ffff2e50f5f656932ef12357cf3c7fdcc0260801c5b6008821615610927576fffe5caca7e10e4e61c3624eaa0941cd00260801c5b6010821615610946576fffcb9843d60f6159c9db58835c9266440260801c5b6020821615610965576fff973b41fa98c081472e6896dfb254c00260801c5b6040821615610984576fff2ea16466c96a3843ec78b326b528610260801c5b60808216156109a3576ffe5dee046a99a2a811c461f1969c30530260801c5b6101008216156109c3576ffcbe86c7900a88aedcffc83b479aa3a40260801c5b6102008216156109e3576ff987a7253ac413176f2b074cf7815e540260801c5b610400821615610a03576ff3392b0822b70005940c7a398e4b70f30260801c5b610800821615610a23576fe7159475a2c29b7443b29c7fa6e889d90260801c5b611000821615610a43576fd097f3bdfd2022b8845ad8f792aa58250260801c5b612000821615610a63576fa9f746462d870fdf8a65dc1f90e061e50260801c5b614000821615610a83576f70d869a156d2a1b890bb3df62baf32f70260801c5b618000821615610aa3576f31be135f97d08fd981231505542fcfa60260801c5b62010000821615610ac4576f09aa508b5b7a84e1c677de54f3e99bc90260801c5b62020000821615610ae4576e5d6af8dedb81196699c329225ee6040260801c5b62040000821615610b03576d2216e584f5fa1ea926041bedfe980260801c5b62080000821615610b20576b048a170391f7dc42444e8fa20260801c5b60008460020b1315610b3b578060001981610b3757fe5b0490505b640100000000810615610b4f576001610b52565b60005b60ff16602082901c0192505050919050565b6000808060001985870986860292508281109083900303905080610b9a5760008411610b8f57600080fd5b50829004905061082b565b808411610ba657600080fd5b6000848688096000868103871696879004966002600389028118808a02820302808a02820302808a02820302808a02820302808a02820302808a0290910302918190038190046001018684119095039490940291909403929092049190911791909102915050939250505056fe49437573746f6d5072696365466565643a20746f6b656e206973206e6f7420746172676574546f6b656ea26469706673582212201c0a6b9324a6193c9100a418354720d595ff7791ec5e55eaaef5d80712519f9164736f6c63430007060033";
170
+ var CustomPriceFeed__factory = exports.CustomPriceFeed__factory = /** @class */ (function (_super) {
171
+ __extends(CustomPriceFeed__factory, _super);
172
+ function CustomPriceFeed__factory() {
173
+ var args = [];
174
+ for (var _i = 0; _i < arguments.length; _i++) {
175
+ args[_i] = arguments[_i];
176
+ }
177
+ var _this = this;
178
+ if (args.length === 1) {
179
+ _this = _super.call(this, _abi, _bytecode, args[0]) || this;
180
+ }
181
+ else {
182
+ _this = _super.apply(this, args) || this;
183
+ }
184
+ return _this;
185
+ }
186
+ CustomPriceFeed__factory.prototype.deploy = function (_core, token, _v3Pool, overrides) {
187
+ return _super.prototype.deploy.call(this, _core, token, _v3Pool, overrides || {});
188
+ };
189
+ CustomPriceFeed__factory.prototype.getDeployTransaction = function (_core, token, _v3Pool, overrides) {
190
+ return _super.prototype.getDeployTransaction.call(this, _core, token, _v3Pool, overrides || {});
191
+ };
192
+ CustomPriceFeed__factory.prototype.attach = function (address) {
193
+ return _super.prototype.attach.call(this, address);
194
+ };
195
+ CustomPriceFeed__factory.prototype.connect = function (signer) {
196
+ return _super.prototype.connect.call(this, signer);
197
+ };
198
+ CustomPriceFeed__factory.createInterface = function () {
199
+ return new ethers_1.utils.Interface(_abi);
200
+ };
201
+ CustomPriceFeed__factory.connect = function (address, signerOrProvider) {
202
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
203
+ };
204
+ CustomPriceFeed__factory.bytecode = _bytecode;
205
+ CustomPriceFeed__factory.abi = _abi;
206
+ return CustomPriceFeed__factory;
207
+ }(ethers_1.ContractFactory));
@@ -0,0 +1,211 @@
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 {
8
+ CustomPriceFeed,
9
+ CustomPriceFeedInterface,
10
+ } from "../CustomPriceFeed";
11
+
12
+ const _abi = [
13
+ {
14
+ inputs: [
15
+ {
16
+ internalType: "contract ILandCore",
17
+ name: "_core",
18
+ type: "address",
19
+ },
20
+ {
21
+ internalType: "address",
22
+ name: "token",
23
+ type: "address",
24
+ },
25
+ {
26
+ internalType: "address",
27
+ name: "_v3Pool",
28
+ type: "address",
29
+ },
30
+ ],
31
+ stateMutability: "nonpayable",
32
+ type: "constructor",
33
+ },
34
+ {
35
+ inputs: [],
36
+ name: "LandCore",
37
+ outputs: [
38
+ {
39
+ internalType: "contract ILandCore",
40
+ name: "",
41
+ type: "address",
42
+ },
43
+ ],
44
+ stateMutability: "view",
45
+ type: "function",
46
+ },
47
+ {
48
+ inputs: [],
49
+ name: "Q96",
50
+ outputs: [
51
+ {
52
+ internalType: "uint256",
53
+ name: "",
54
+ type: "uint256",
55
+ },
56
+ ],
57
+ stateMutability: "view",
58
+ type: "function",
59
+ },
60
+ {
61
+ inputs: [],
62
+ name: "TWAP_PERIOD",
63
+ outputs: [
64
+ {
65
+ internalType: "uint32",
66
+ name: "",
67
+ type: "uint32",
68
+ },
69
+ ],
70
+ stateMutability: "view",
71
+ type: "function",
72
+ },
73
+ {
74
+ inputs: [
75
+ {
76
+ internalType: "address",
77
+ name: "token",
78
+ type: "address",
79
+ },
80
+ ],
81
+ name: "fetchPrice",
82
+ outputs: [
83
+ {
84
+ internalType: "uint256",
85
+ name: "",
86
+ type: "uint256",
87
+ },
88
+ ],
89
+ stateMutability: "view",
90
+ type: "function",
91
+ },
92
+ {
93
+ inputs: [],
94
+ name: "guardian",
95
+ outputs: [
96
+ {
97
+ internalType: "address",
98
+ name: "",
99
+ type: "address",
100
+ },
101
+ ],
102
+ stateMutability: "view",
103
+ type: "function",
104
+ },
105
+ {
106
+ inputs: [],
107
+ name: "owner",
108
+ outputs: [
109
+ {
110
+ internalType: "address",
111
+ name: "",
112
+ type: "address",
113
+ },
114
+ ],
115
+ stateMutability: "view",
116
+ type: "function",
117
+ },
118
+ {
119
+ inputs: [],
120
+ name: "paused",
121
+ outputs: [
122
+ {
123
+ internalType: "bool",
124
+ name: "",
125
+ type: "bool",
126
+ },
127
+ ],
128
+ stateMutability: "view",
129
+ type: "function",
130
+ },
131
+ {
132
+ inputs: [],
133
+ name: "pool",
134
+ outputs: [
135
+ {
136
+ internalType: "contract IUniswapV3Pool",
137
+ name: "",
138
+ type: "address",
139
+ },
140
+ ],
141
+ stateMutability: "view",
142
+ type: "function",
143
+ },
144
+ {
145
+ inputs: [],
146
+ name: "targetToken",
147
+ outputs: [
148
+ {
149
+ internalType: "address",
150
+ name: "",
151
+ type: "address",
152
+ },
153
+ ],
154
+ stateMutability: "view",
155
+ type: "function",
156
+ },
157
+ ];
158
+
159
+ const _bytecode =
160
+ "0x608060405234801561001057600080fd5b50604051610d00380380610d008339818101604052606081101561003357600080fd5b5080516020820151604090920151600080546001600160a01b039384166001600160a01b031991821617909155600280549284169282169290921790915560018054929093169116179055610c738061008d6000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c80635c975abb116100665780635c975abb146100e65780637ca25184146101025780638da5cb5b14610123578063ace1798e1461012b578063ce6d603f1461015157610093565b806316f0115b14610098578063327107f7146100bc57806340792465146100c4578063452a9320146100de575b600080fd5b6100a0610159565b604080516001600160a01b039092168252519081900360200190f35b6100a0610168565b6100cc610177565b60408051918252519081900360200190f35b6100a061017f565b6100ee6101ff565b604080519115158252519081900360200190f35b61010a61024e565b6040805163ffffffff9092168252519081900360200190f35b6100a0610254565b6100cc6004803603602081101561014157600080fd5b50356001600160a01b03166102a3565b6100a06107a7565b6002546001600160a01b031681565b6001546001600160a01b031681565b600160601b81565b60008060009054906101000a90046001600160a01b03166001600160a01b031663452a93206040518163ffffffff1660e01b815260040160206040518083038186803b1580156101ce57600080fd5b505afa1580156101e2573d6000803e3d6000fd5b505050506040513d60208110156101f857600080fd5b5051905090565b60008060009054906101000a90046001600160a01b03166001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b1580156101ce57600080fd5b61070881565b60008060009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156101ce57600080fd5b6001546000906001600160a01b038381169116146102f25760405162461bcd60e51b815260040180806020018281038252602a815260200180610c14602a913960400191505060405180910390fd5b6040805160028082526060820183526000926020830190803683370190505090506107088160008151811061032357fe5b602002602001019063ffffffff16908163ffffffff168152505060008160018151811061034c57fe5b63ffffffff90921660209283029190910182015260025460405163883bdbfd60e01b8152600481018381528451602483015284516000946001600160a01b039094169363883bdbfd93879392839260449092019185810191028083838b5b838110156103c25781810151838201526020016103aa565b505050509050019250505060006040518083038186803b1580156103e557600080fd5b505afa1580156103f9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604090815281101561042257600080fd5b810190808051604051939291908464010000000082111561044257600080fd5b90830190602082018581111561045757600080fd5b825186602082028301116401000000008211171561047457600080fd5b82525081516020918201928201910280838360005b838110156104a1578181015183820152602001610489565b50505050905001604052602001805160405193929190846401000000008211156104ca57600080fd5b9083019060208201858111156104df57600080fd5b82518660208202830111640100000000821117156104fc57600080fd5b82525081516020918201928201910280838360005b83811015610529578181015183820152602001610511565b5050505090500160405250505050905060008160008151811061054857fe5b60200260200101518260018151811061055d57fe5b6020026020010151039050600061070860030b8260060b8161057b57fe5b0590506000600260009054906101000a90046001600160a01b03166001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b1580156105ce57600080fd5b505afa1580156105e2573d6000803e3d6000fd5b505050506040513d60208110156105f857600080fd5b50516002546040805163d21220a760e01b815290519293506000926001600160a01b039092169163d21220a791600480820192602092909190829003018186803b15801561064557600080fd5b505afa158015610659573d6000803e3d6000fd5b505050506040513d602081101561066f57600080fd5b50516040805163313ce56760e01b815290519192506000916001600160a01b0385169163313ce567916004808301926020929190829003018186803b1580156106b757600080fd5b505afa1580156106cb573d6000803e3d6000fd5b505050506040513d60208110156106e157600080fd5b50516040805163313ce56760e01b815290519192506000916001600160a01b0385169163313ce567916004808301926020929190829003018186803b15801561072957600080fd5b505afa15801561073d573d6000803e3d6000fd5b505050506040513d602081101561075357600080fd5b5051905060006107648684846107b6565b6001549091506001600160a01b038581169116141561079957806ec097ce7bc90715b34b9f10000000008161079557fe5b0490505b9a9950505050505050505050565b6000546001600160a01b031681565b6000806107c285610832565b905060006107e66001600160a01b038316800260ff8716600a0a600160c01b610b64565b905060128460ff1610156108055760ff601285900316600a0a02610827565b60128460ff161115610827576012840360ff16600a0a818161082357fe5b0490505b9150505b9392505050565b60008060008360020b12610849578260020b610851565b8260020b6000035b9050620d89e881111561088f576040805162461bcd60e51b81526020600482015260016024820152601560fa1b604482015290519081900360640190fd5b6000600182166108a357600160801b6108b5565b6ffffcb933bd6fad37aa2d162d1a5940015b70ffffffffffffffffffffffffffffffffff16905060028216156108e9576ffff97272373d413259a46990580e213a0260801c5b6004821615610908576ffff2e50f5f656932ef12357cf3c7fdcc0260801c5b6008821615610927576fffe5caca7e10e4e61c3624eaa0941cd00260801c5b6010821615610946576fffcb9843d60f6159c9db58835c9266440260801c5b6020821615610965576fff973b41fa98c081472e6896dfb254c00260801c5b6040821615610984576fff2ea16466c96a3843ec78b326b528610260801c5b60808216156109a3576ffe5dee046a99a2a811c461f1969c30530260801c5b6101008216156109c3576ffcbe86c7900a88aedcffc83b479aa3a40260801c5b6102008216156109e3576ff987a7253ac413176f2b074cf7815e540260801c5b610400821615610a03576ff3392b0822b70005940c7a398e4b70f30260801c5b610800821615610a23576fe7159475a2c29b7443b29c7fa6e889d90260801c5b611000821615610a43576fd097f3bdfd2022b8845ad8f792aa58250260801c5b612000821615610a63576fa9f746462d870fdf8a65dc1f90e061e50260801c5b614000821615610a83576f70d869a156d2a1b890bb3df62baf32f70260801c5b618000821615610aa3576f31be135f97d08fd981231505542fcfa60260801c5b62010000821615610ac4576f09aa508b5b7a84e1c677de54f3e99bc90260801c5b62020000821615610ae4576e5d6af8dedb81196699c329225ee6040260801c5b62040000821615610b03576d2216e584f5fa1ea926041bedfe980260801c5b62080000821615610b20576b048a170391f7dc42444e8fa20260801c5b60008460020b1315610b3b578060001981610b3757fe5b0490505b640100000000810615610b4f576001610b52565b60005b60ff16602082901c0192505050919050565b6000808060001985870986860292508281109083900303905080610b9a5760008411610b8f57600080fd5b50829004905061082b565b808411610ba657600080fd5b6000848688096000868103871696879004966002600389028118808a02820302808a02820302808a02820302808a02820302808a02820302808a0290910302918190038190046001018684119095039490940291909403929092049190911791909102915050939250505056fe49437573746f6d5072696365466565643a20746f6b656e206973206e6f7420746172676574546f6b656ea26469706673582212201c0a6b9324a6193c9100a418354720d595ff7791ec5e55eaaef5d80712519f9164736f6c63430007060033";
161
+
162
+ export class CustomPriceFeed__factory extends ContractFactory {
163
+ constructor(
164
+ ...args: [signer: Signer] | ConstructorParameters<typeof ContractFactory>
165
+ ) {
166
+ if (args.length === 1) {
167
+ super(_abi, _bytecode, args[0]);
168
+ } else {
169
+ super(...args);
170
+ }
171
+ }
172
+
173
+ deploy(
174
+ _core: string,
175
+ token: string,
176
+ _v3Pool: string,
177
+ overrides?: Overrides & { from?: string | Promise<string> }
178
+ ): Promise<CustomPriceFeed> {
179
+ return super.deploy(
180
+ _core,
181
+ token,
182
+ _v3Pool,
183
+ overrides || {}
184
+ ) as Promise<CustomPriceFeed>;
185
+ }
186
+ getDeployTransaction(
187
+ _core: string,
188
+ token: string,
189
+ _v3Pool: string,
190
+ overrides?: Overrides & { from?: string | Promise<string> }
191
+ ): TransactionRequest {
192
+ return super.getDeployTransaction(_core, token, _v3Pool, overrides || {});
193
+ }
194
+ attach(address: string): CustomPriceFeed {
195
+ return super.attach(address) as CustomPriceFeed;
196
+ }
197
+ connect(signer: Signer): CustomPriceFeed__factory {
198
+ return super.connect(signer) as CustomPriceFeed__factory;
199
+ }
200
+ static readonly bytecode = _bytecode;
201
+ static readonly abi = _abi;
202
+ static createInterface(): CustomPriceFeedInterface {
203
+ return new utils.Interface(_abi) as CustomPriceFeedInterface;
204
+ }
205
+ static connect(
206
+ address: string,
207
+ signerOrProvider: Signer | Provider
208
+ ): CustomPriceFeed {
209
+ return new Contract(address, _abi, signerOrProvider) as CustomPriceFeed;
210
+ }
211
+ }
@@ -0,0 +1,132 @@
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.ERC1967Proxy__factory = void 0;
22
+ var ethers_1 = require("ethers");
23
+ var _abi = [
24
+ {
25
+ inputs: [
26
+ {
27
+ internalType: "address",
28
+ name: "_logic",
29
+ type: "address",
30
+ },
31
+ {
32
+ internalType: "bytes",
33
+ name: "_data",
34
+ type: "bytes",
35
+ },
36
+ ],
37
+ stateMutability: "payable",
38
+ type: "constructor",
39
+ },
40
+ {
41
+ anonymous: false,
42
+ inputs: [
43
+ {
44
+ indexed: false,
45
+ internalType: "address",
46
+ name: "previousAdmin",
47
+ type: "address",
48
+ },
49
+ {
50
+ indexed: false,
51
+ internalType: "address",
52
+ name: "newAdmin",
53
+ type: "address",
54
+ },
55
+ ],
56
+ name: "AdminChanged",
57
+ type: "event",
58
+ },
59
+ {
60
+ anonymous: false,
61
+ inputs: [
62
+ {
63
+ indexed: true,
64
+ internalType: "address",
65
+ name: "beacon",
66
+ type: "address",
67
+ },
68
+ ],
69
+ name: "BeaconUpgraded",
70
+ type: "event",
71
+ },
72
+ {
73
+ anonymous: false,
74
+ inputs: [
75
+ {
76
+ indexed: true,
77
+ internalType: "address",
78
+ name: "implementation",
79
+ type: "address",
80
+ },
81
+ ],
82
+ name: "Upgraded",
83
+ type: "event",
84
+ },
85
+ {
86
+ stateMutability: "payable",
87
+ type: "fallback",
88
+ },
89
+ {
90
+ stateMutability: "payable",
91
+ type: "receive",
92
+ },
93
+ ];
94
+ var _bytecode = "0x60806040526040516105b93803806105b983398101604081905261002291610378565b61002e82826000610035565b50506104d3565b61003e83610061565b60008251118061004b5750805b1561005c5761005a83836100a1565b505b505050565b61006a816100cf565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606100c6838360405180606001604052806027815260200161059260279139610140565b90505b92915050565b6001600160a01b0381163b6100ff5760405162461bcd60e51b81526004016100f6906103cf565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b6060600080856001600160a01b03168560405161015d9190610442565b600060405180830381855af49150503d8060008114610198576040519150601f19603f3d011682016040523d82523d6000602084013e61019d565b606091505b5090925090506101af868383876101b9565b9695505050505050565b606083156101f85782516000036101f1576001600160a01b0385163b6101f15760405162461bcd60e51b81526004016100f690610455565b5081610202565b610202838361020a565b949350505050565b81511561021a5781518083602001fd5b8060405162461bcd60e51b81526004016100f691906104c2565b60006001600160a01b0382166100c9565b61024e81610234565b811461025957600080fd5b50565b80516100c981610245565b634e487b7160e01b600052604160045260246000fd5b601f19601f83011681018181106001600160401b03821117156102a2576102a2610267565b6040525050565b60006102b460405190565b90506102c0828261027d565b919050565b60006001600160401b038211156102de576102de610267565b601f19601f83011660200192915050565b60005b8381101561030a5781810151838201526020016102f2565b50506000910152565b6000610326610321846102c5565b6102a9565b90508281526020810184848401111561034157610341600080fd5b61034c8482856102ef565b509392505050565b600082601f83011261036857610368600080fd5b8151610202848260208601610313565b6000806040838503121561038e5761038e600080fd5b600061039a858561025c565b92505060208301516001600160401b038111156103b9576103b9600080fd5b6103c585828601610354565b9150509250929050565b602080825281016100c981602d81527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60208201526c1bdd08184818dbdb9d1c9858dd609a1b604082015260600190565b600061042a825190565b6104388185602086016102ef565b9290920192915050565b600061044e8284610420565b9392505050565b602080825281016100c981601d81527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000602082015260400190565b600061049a825190565b8084526020840193506104b18185602086016102ef565b601f01601f19169290920192915050565b602080825281016100c68184610490565b60b1806104e16000396000f3fe608060405236601057600e6013565b005b600e5b601f601b6021565b6058565b565b600060537f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156076573d6000f35b3d6000fdfea2646970667358221220a284bc0cc93798dc6655bfe75d509669e9d900146e595ec010f22cf54a31790b64736f6c63430008130033416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564";
95
+ var ERC1967Proxy__factory = exports.ERC1967Proxy__factory = /** @class */ (function (_super) {
96
+ __extends(ERC1967Proxy__factory, _super);
97
+ function ERC1967Proxy__factory() {
98
+ var args = [];
99
+ for (var _i = 0; _i < arguments.length; _i++) {
100
+ args[_i] = arguments[_i];
101
+ }
102
+ var _this = this;
103
+ if (args.length === 1) {
104
+ _this = _super.call(this, _abi, _bytecode, args[0]) || this;
105
+ }
106
+ else {
107
+ _this = _super.apply(this, args) || this;
108
+ }
109
+ return _this;
110
+ }
111
+ ERC1967Proxy__factory.prototype.deploy = function (_logic, _data, overrides) {
112
+ return _super.prototype.deploy.call(this, _logic, _data, overrides || {});
113
+ };
114
+ ERC1967Proxy__factory.prototype.getDeployTransaction = function (_logic, _data, overrides) {
115
+ return _super.prototype.getDeployTransaction.call(this, _logic, _data, overrides || {});
116
+ };
117
+ ERC1967Proxy__factory.prototype.attach = function (address) {
118
+ return _super.prototype.attach.call(this, address);
119
+ };
120
+ ERC1967Proxy__factory.prototype.connect = function (signer) {
121
+ return _super.prototype.connect.call(this, signer);
122
+ };
123
+ ERC1967Proxy__factory.createInterface = function () {
124
+ return new ethers_1.utils.Interface(_abi);
125
+ };
126
+ ERC1967Proxy__factory.connect = function (address, signerOrProvider) {
127
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
128
+ };
129
+ ERC1967Proxy__factory.bytecode = _bytecode;
130
+ ERC1967Proxy__factory.abi = _abi;
131
+ return ERC1967Proxy__factory;
132
+ }(ethers_1.ContractFactory));