@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,137 @@
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.TransparentUpgradeableProxy__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: "address",
33
+ name: "admin_",
34
+ type: "address",
35
+ },
36
+ {
37
+ internalType: "bytes",
38
+ name: "_data",
39
+ type: "bytes",
40
+ },
41
+ ],
42
+ stateMutability: "payable",
43
+ type: "constructor",
44
+ },
45
+ {
46
+ anonymous: false,
47
+ inputs: [
48
+ {
49
+ indexed: false,
50
+ internalType: "address",
51
+ name: "previousAdmin",
52
+ type: "address",
53
+ },
54
+ {
55
+ indexed: false,
56
+ internalType: "address",
57
+ name: "newAdmin",
58
+ type: "address",
59
+ },
60
+ ],
61
+ name: "AdminChanged",
62
+ type: "event",
63
+ },
64
+ {
65
+ anonymous: false,
66
+ inputs: [
67
+ {
68
+ indexed: true,
69
+ internalType: "address",
70
+ name: "beacon",
71
+ type: "address",
72
+ },
73
+ ],
74
+ name: "BeaconUpgraded",
75
+ type: "event",
76
+ },
77
+ {
78
+ anonymous: false,
79
+ inputs: [
80
+ {
81
+ indexed: true,
82
+ internalType: "address",
83
+ name: "implementation",
84
+ type: "address",
85
+ },
86
+ ],
87
+ name: "Upgraded",
88
+ type: "event",
89
+ },
90
+ {
91
+ stateMutability: "payable",
92
+ type: "fallback",
93
+ },
94
+ {
95
+ stateMutability: "payable",
96
+ type: "receive",
97
+ },
98
+ ];
99
+ var _bytecode = "0x60806040526040516200109938038062001099833981016040819052620000269162000477565b828162000036828260006200004d565b50620000449050826200007f565b50505062000687565b6200005883620000e8565b600082511180620000665750805b156200007a576200007883836200012a565b505b505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f620000c160008051602062001052833981519152546001600160a01b031690565b82604051620000d2929190620004fc565b60405180910390a1620000e5816200015b565b50565b620000f381620001c0565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060620001528383604051806060016040528060278152602001620010726027913962000212565b90505b92915050565b6001600160a01b0381166200018d5760405162461bcd60e51b8152600401620001849062000561565b60405180910390fd5b80600080516020620010528339815191525b80546001600160a01b0319166001600160a01b039290921691909117905550565b6001600160a01b0381163b620001ea5760405162461bcd60e51b81526004016200018490620005be565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc6200019f565b6060600080856001600160a01b031685604051620002319190620005f5565b600060405180830381855af49150503d80600081146200026e576040519150601f19603f3d011682016040523d82523d6000602084013e62000273565b606091505b509092509050620002878683838762000293565b925050505b9392505050565b60608315620002d8578251600003620002d0576001600160a01b0385163b620002d05760405162461bcd60e51b8152600401620001849062000603565b5081620002e4565b620002e48383620002ec565b949350505050565b815115620002fd5781518083602001fd5b8060405162461bcd60e51b815260040162000184919062000674565b60006001600160a01b03821662000155565b620003368162000319565b8114620000e557600080fd5b805162000155816200032b565b634e487b7160e01b600052604160045260246000fd5b601f19601f83011681018181106001600160401b03821117156200038d576200038d6200034f565b6040525050565b6000620003a060405190565b9050620003ae828262000365565b919050565b60006001600160401b03821115620003cf57620003cf6200034f565b601f19601f83011660200192915050565b60005b83811015620003fd578181015183820152602001620003e3565b50506000910152565b60006200041d6200041784620003b3565b62000394565b9050828152602081018484840111156200043a576200043a600080fd5b62000447848285620003e0565b509392505050565b600082601f830112620004655762000465600080fd5b8151620002e484826020860162000406565b600080600060608486031215620004915762000491600080fd5b60006200049f868662000342565b9350506020620004b28682870162000342565b92505060408401516001600160401b03811115620004d357620004d3600080fd5b620004e1868287016200044f565b9150509250925092565b620004f68162000319565b82525050565b604081016200050c8285620004eb565b6200028c6020830184620004eb565b602681526000602082017f455243313936373a206e65772061646d696e20697320746865207a65726f206181526564647265737360d01b602082015291505b5060400190565b6020808252810162000155816200051b565b602d81526000602082017f455243313936373a206e657720696d706c656d656e746174696f6e206973206e81526c1bdd08184818dbdb9d1c9858dd609a1b602082015291506200055a565b60208082528101620001558162000573565b6000620005db825190565b620005eb818560208601620003e0565b9290920192915050565b60006200028c8284620005d0565b602080825281016200015581601d81527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000602082015260400190565b60006200064a825190565b80845260208401935062000663818560208601620003e0565b601f01601f19169290920192915050565b602080825281016200015281846200063f565b6109bb80620006976000396000f3fe60806040523661001357610011610017565b005b6100115b61001f61010c565b6001600160a01b031633036101025760606001600160e01b0319600035166364d3180d60e11b810161005a5761005361013f565b91506100fa565b63587086bd60e11b6001600160e01b031982160161007a57610053610196565b63070d7c6960e41b6001600160e01b031982160161009a576100536101dc565b621eb96f60e61b6001600160e01b03198216016100b95761005361020d565b63a39f25e560e01b6001600160e01b03198216016100d957610053610249565b60405162461bcd60e51b81526004016100f190610566565b60405180910390fd5b815160208301f35b61010a61025d565b565b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b546001600160a01b0316919050565b606061014961026d565b600061015836600481846105d2565b8101906101659190610632565b905061018281604051806020016040528060008152506000610278565b505060408051602081019091526000815290565b60606000806101a836600481846105d2565b8101906101b5919061074e565b915091506101c582826001610278565b604051806020016040528060008152509250505090565b60606101e661026d565b60006101f536600481846105d2565b8101906102029190610632565b9050610182816102a4565b606061021761026d565b600061022161010c565b90508060405160200161023491906107b5565b60405160208183030381529060405291505090565b606061025361026d565b60006102216102f0565b61010a6102686102f0565b6102ff565b341561010a57600080fd5b61028183610323565b60008251118061028e5750805b1561029f5761029d8383610363565b505b505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6102cd61010c565b826040516102dc9291906107c3565b60405180910390a16102ed81610391565b50565b60006102fa6103fb565b905090565b3660008037600080366000845af43d6000803e80801561031e573d6000f35b3d6000fd5b61032c81610423565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060610388838360405180606001604052806027815260200161095f60279139610471565b90505b92915050565b6001600160a01b0381166103b75760405162461bcd60e51b81526004016100f190610824565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b80546001600160a01b0319166001600160a01b039290921691909117905550565b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610130565b6001600160a01b0381163b61044a5760405162461bcd60e51b81526004016100f19061087e565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc6103da565b6060600080856001600160a01b03168560405161048e91906108d4565b600060405180830381855af49150503d80600081146104c9576040519150601f19603f3d011682016040523d82523d6000602084013e6104ce565b606091505b50915091506104df868383876104eb565b925050505b9392505050565b6060831561052a578251600003610523576001600160a01b0385163b6105235760405162461bcd60e51b81526004016100f1906108e0565b5081610534565b610534838361053c565b949350505050565b81511561054c5781518083602001fd5b8060405162461bcd60e51b81526004016100f1919061094d565b6020808252810161038b81604281527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60208201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f78792074617267604082015261195d60f21b606082015260800190565b600080858511156105e5576105e5600080fd5b838611156105f5576105f5600080fd5b5050820193919092039150565b60006001600160a01b03821661038b565b61061c81610602565b81146102ed57600080fd5b803561038b81610613565b60006020828403121561064757610647600080fd5b60006105348484610627565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff8211171561068f5761068f610653565b6040525050565b60006106a160405190565b90506106ad8282610669565b919050565b600067ffffffffffffffff8211156106cc576106cc610653565b601f19601f83011660200192915050565b82818337506000910152565b60006106fc6106f7846106b2565b610696565b90508281526020810184848401111561071757610717600080fd5b6107228482856106dd565b509392505050565b600082601f83011261073e5761073e600080fd5b81356105348482602086016106e9565b6000806040838503121561076457610764600080fd5b60006107708585610627565b925050602083013567ffffffffffffffff81111561079057610790600080fd5b61079c8582860161072a565b9150509250929050565b6107af81610602565b82525050565b6020810161038b82846107a6565b604081016107d182856107a6565b6104e460208301846107a6565b602681526000602082017f455243313936373a206e65772061646d696e20697320746865207a65726f206181526564647265737360d01b602082015291505b5060400190565b6020808252810161038b816107de565b602d81526000602082017f455243313936373a206e657720696d706c656d656e746174696f6e206973206e81526c1bdd08184818dbdb9d1c9858dd609a1b6020820152915061081d565b6020808252810161038b81610834565b60005b838110156108a9578181015183820152602001610891565b50506000910152565b60006108bc825190565b6108ca81856020860161088e565b9290920192915050565b60006104e482846108b2565b6020808252810161038b81601d81527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000602082015260400190565b6000610925825190565b80845260208401935061093c81856020860161088e565b601f01601f19169290920192915050565b60208082528101610388818461091b56fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212200f6e317f46ea5acbd4d140a75984b3c755002f95b3e87a4ff779ec3b5682eeec64736f6c63430008130033b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564";
100
+ var TransparentUpgradeableProxy__factory = exports.TransparentUpgradeableProxy__factory = /** @class */ (function (_super) {
101
+ __extends(TransparentUpgradeableProxy__factory, _super);
102
+ function TransparentUpgradeableProxy__factory() {
103
+ var args = [];
104
+ for (var _i = 0; _i < arguments.length; _i++) {
105
+ args[_i] = arguments[_i];
106
+ }
107
+ var _this = this;
108
+ if (args.length === 1) {
109
+ _this = _super.call(this, _abi, _bytecode, args[0]) || this;
110
+ }
111
+ else {
112
+ _this = _super.apply(this, args) || this;
113
+ }
114
+ return _this;
115
+ }
116
+ TransparentUpgradeableProxy__factory.prototype.deploy = function (_logic, admin_, _data, overrides) {
117
+ return _super.prototype.deploy.call(this, _logic, admin_, _data, overrides || {});
118
+ };
119
+ TransparentUpgradeableProxy__factory.prototype.getDeployTransaction = function (_logic, admin_, _data, overrides) {
120
+ return _super.prototype.getDeployTransaction.call(this, _logic, admin_, _data, overrides || {});
121
+ };
122
+ TransparentUpgradeableProxy__factory.prototype.attach = function (address) {
123
+ return _super.prototype.attach.call(this, address);
124
+ };
125
+ TransparentUpgradeableProxy__factory.prototype.connect = function (signer) {
126
+ return _super.prototype.connect.call(this, signer);
127
+ };
128
+ TransparentUpgradeableProxy__factory.createInterface = function () {
129
+ return new ethers_1.utils.Interface(_abi);
130
+ };
131
+ TransparentUpgradeableProxy__factory.connect = function (address, signerOrProvider) {
132
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
133
+ };
134
+ TransparentUpgradeableProxy__factory.bytecode = _bytecode;
135
+ TransparentUpgradeableProxy__factory.abi = _abi;
136
+ return TransparentUpgradeableProxy__factory;
137
+ }(ethers_1.ContractFactory));
@@ -0,0 +1,152 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import {
6
+ Signer,
7
+ utils,
8
+ BytesLike,
9
+ Contract,
10
+ ContractFactory,
11
+ PayableOverrides,
12
+ } from "ethers";
13
+ import { Provider, TransactionRequest } from "@ethersproject/providers";
14
+ import type {
15
+ TransparentUpgradeableProxy,
16
+ TransparentUpgradeableProxyInterface,
17
+ } from "../TransparentUpgradeableProxy";
18
+
19
+ const _abi = [
20
+ {
21
+ inputs: [
22
+ {
23
+ internalType: "address",
24
+ name: "_logic",
25
+ type: "address",
26
+ },
27
+ {
28
+ internalType: "address",
29
+ name: "admin_",
30
+ type: "address",
31
+ },
32
+ {
33
+ internalType: "bytes",
34
+ name: "_data",
35
+ type: "bytes",
36
+ },
37
+ ],
38
+ stateMutability: "payable",
39
+ type: "constructor",
40
+ },
41
+ {
42
+ anonymous: false,
43
+ inputs: [
44
+ {
45
+ indexed: false,
46
+ internalType: "address",
47
+ name: "previousAdmin",
48
+ type: "address",
49
+ },
50
+ {
51
+ indexed: false,
52
+ internalType: "address",
53
+ name: "newAdmin",
54
+ type: "address",
55
+ },
56
+ ],
57
+ name: "AdminChanged",
58
+ type: "event",
59
+ },
60
+ {
61
+ anonymous: false,
62
+ inputs: [
63
+ {
64
+ indexed: true,
65
+ internalType: "address",
66
+ name: "beacon",
67
+ type: "address",
68
+ },
69
+ ],
70
+ name: "BeaconUpgraded",
71
+ type: "event",
72
+ },
73
+ {
74
+ anonymous: false,
75
+ inputs: [
76
+ {
77
+ indexed: true,
78
+ internalType: "address",
79
+ name: "implementation",
80
+ type: "address",
81
+ },
82
+ ],
83
+ name: "Upgraded",
84
+ type: "event",
85
+ },
86
+ {
87
+ stateMutability: "payable",
88
+ type: "fallback",
89
+ },
90
+ {
91
+ stateMutability: "payable",
92
+ type: "receive",
93
+ },
94
+ ];
95
+
96
+ const _bytecode =
97
+ "0x60806040526040516200109938038062001099833981016040819052620000269162000477565b828162000036828260006200004d565b50620000449050826200007f565b50505062000687565b6200005883620000e8565b600082511180620000665750805b156200007a576200007883836200012a565b505b505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f620000c160008051602062001052833981519152546001600160a01b031690565b82604051620000d2929190620004fc565b60405180910390a1620000e5816200015b565b50565b620000f381620001c0565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060620001528383604051806060016040528060278152602001620010726027913962000212565b90505b92915050565b6001600160a01b0381166200018d5760405162461bcd60e51b8152600401620001849062000561565b60405180910390fd5b80600080516020620010528339815191525b80546001600160a01b0319166001600160a01b039290921691909117905550565b6001600160a01b0381163b620001ea5760405162461bcd60e51b81526004016200018490620005be565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc6200019f565b6060600080856001600160a01b031685604051620002319190620005f5565b600060405180830381855af49150503d80600081146200026e576040519150601f19603f3d011682016040523d82523d6000602084013e62000273565b606091505b509092509050620002878683838762000293565b925050505b9392505050565b60608315620002d8578251600003620002d0576001600160a01b0385163b620002d05760405162461bcd60e51b8152600401620001849062000603565b5081620002e4565b620002e48383620002ec565b949350505050565b815115620002fd5781518083602001fd5b8060405162461bcd60e51b815260040162000184919062000674565b60006001600160a01b03821662000155565b620003368162000319565b8114620000e557600080fd5b805162000155816200032b565b634e487b7160e01b600052604160045260246000fd5b601f19601f83011681018181106001600160401b03821117156200038d576200038d6200034f565b6040525050565b6000620003a060405190565b9050620003ae828262000365565b919050565b60006001600160401b03821115620003cf57620003cf6200034f565b601f19601f83011660200192915050565b60005b83811015620003fd578181015183820152602001620003e3565b50506000910152565b60006200041d6200041784620003b3565b62000394565b9050828152602081018484840111156200043a576200043a600080fd5b62000447848285620003e0565b509392505050565b600082601f830112620004655762000465600080fd5b8151620002e484826020860162000406565b600080600060608486031215620004915762000491600080fd5b60006200049f868662000342565b9350506020620004b28682870162000342565b92505060408401516001600160401b03811115620004d357620004d3600080fd5b620004e1868287016200044f565b9150509250925092565b620004f68162000319565b82525050565b604081016200050c8285620004eb565b6200028c6020830184620004eb565b602681526000602082017f455243313936373a206e65772061646d696e20697320746865207a65726f206181526564647265737360d01b602082015291505b5060400190565b6020808252810162000155816200051b565b602d81526000602082017f455243313936373a206e657720696d706c656d656e746174696f6e206973206e81526c1bdd08184818dbdb9d1c9858dd609a1b602082015291506200055a565b60208082528101620001558162000573565b6000620005db825190565b620005eb818560208601620003e0565b9290920192915050565b60006200028c8284620005d0565b602080825281016200015581601d81527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000602082015260400190565b60006200064a825190565b80845260208401935062000663818560208601620003e0565b601f01601f19169290920192915050565b602080825281016200015281846200063f565b6109bb80620006976000396000f3fe60806040523661001357610011610017565b005b6100115b61001f61010c565b6001600160a01b031633036101025760606001600160e01b0319600035166364d3180d60e11b810161005a5761005361013f565b91506100fa565b63587086bd60e11b6001600160e01b031982160161007a57610053610196565b63070d7c6960e41b6001600160e01b031982160161009a576100536101dc565b621eb96f60e61b6001600160e01b03198216016100b95761005361020d565b63a39f25e560e01b6001600160e01b03198216016100d957610053610249565b60405162461bcd60e51b81526004016100f190610566565b60405180910390fd5b815160208301f35b61010a61025d565b565b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b546001600160a01b0316919050565b606061014961026d565b600061015836600481846105d2565b8101906101659190610632565b905061018281604051806020016040528060008152506000610278565b505060408051602081019091526000815290565b60606000806101a836600481846105d2565b8101906101b5919061074e565b915091506101c582826001610278565b604051806020016040528060008152509250505090565b60606101e661026d565b60006101f536600481846105d2565b8101906102029190610632565b9050610182816102a4565b606061021761026d565b600061022161010c565b90508060405160200161023491906107b5565b60405160208183030381529060405291505090565b606061025361026d565b60006102216102f0565b61010a6102686102f0565b6102ff565b341561010a57600080fd5b61028183610323565b60008251118061028e5750805b1561029f5761029d8383610363565b505b505050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6102cd61010c565b826040516102dc9291906107c3565b60405180910390a16102ed81610391565b50565b60006102fa6103fb565b905090565b3660008037600080366000845af43d6000803e80801561031e573d6000f35b3d6000fd5b61032c81610423565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060610388838360405180606001604052806027815260200161095f60279139610471565b90505b92915050565b6001600160a01b0381166103b75760405162461bcd60e51b81526004016100f190610824565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b80546001600160a01b0319166001600160a01b039290921691909117905550565b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc610130565b6001600160a01b0381163b61044a5760405162461bcd60e51b81526004016100f19061087e565b807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc6103da565b6060600080856001600160a01b03168560405161048e91906108d4565b600060405180830381855af49150503d80600081146104c9576040519150601f19603f3d011682016040523d82523d6000602084013e6104ce565b606091505b50915091506104df868383876104eb565b925050505b9392505050565b6060831561052a578251600003610523576001600160a01b0385163b6105235760405162461bcd60e51b81526004016100f1906108e0565b5081610534565b610534838361053c565b949350505050565b81511561054c5781518083602001fd5b8060405162461bcd60e51b81526004016100f1919061094d565b6020808252810161038b81604281527f5472616e73706172656e745570677261646561626c6550726f78793a2061646d60208201527f696e2063616e6e6f742066616c6c6261636b20746f2070726f78792074617267604082015261195d60f21b606082015260800190565b600080858511156105e5576105e5600080fd5b838611156105f5576105f5600080fd5b5050820193919092039150565b60006001600160a01b03821661038b565b61061c81610602565b81146102ed57600080fd5b803561038b81610613565b60006020828403121561064757610647600080fd5b60006105348484610627565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff8211171561068f5761068f610653565b6040525050565b60006106a160405190565b90506106ad8282610669565b919050565b600067ffffffffffffffff8211156106cc576106cc610653565b601f19601f83011660200192915050565b82818337506000910152565b60006106fc6106f7846106b2565b610696565b90508281526020810184848401111561071757610717600080fd5b6107228482856106dd565b509392505050565b600082601f83011261073e5761073e600080fd5b81356105348482602086016106e9565b6000806040838503121561076457610764600080fd5b60006107708585610627565b925050602083013567ffffffffffffffff81111561079057610790600080fd5b61079c8582860161072a565b9150509250929050565b6107af81610602565b82525050565b6020810161038b82846107a6565b604081016107d182856107a6565b6104e460208301846107a6565b602681526000602082017f455243313936373a206e65772061646d696e20697320746865207a65726f206181526564647265737360d01b602082015291505b5060400190565b6020808252810161038b816107de565b602d81526000602082017f455243313936373a206e657720696d706c656d656e746174696f6e206973206e81526c1bdd08184818dbdb9d1c9858dd609a1b6020820152915061081d565b6020808252810161038b81610834565b60005b838110156108a9578181015183820152602001610891565b50506000910152565b60006108bc825190565b6108ca81856020860161088e565b9290920192915050565b60006104e482846108b2565b6020808252810161038b81601d81527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000602082015260400190565b6000610925825190565b80845260208401935061093c81856020860161088e565b601f01601f19169290920192915050565b60208082528101610388818461091b56fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212200f6e317f46ea5acbd4d140a75984b3c755002f95b3e87a4ff779ec3b5682eeec64736f6c63430008130033b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564";
98
+
99
+ export class TransparentUpgradeableProxy__factory extends ContractFactory {
100
+ constructor(
101
+ ...args: [signer: Signer] | ConstructorParameters<typeof ContractFactory>
102
+ ) {
103
+ if (args.length === 1) {
104
+ super(_abi, _bytecode, args[0]);
105
+ } else {
106
+ super(...args);
107
+ }
108
+ }
109
+
110
+ deploy(
111
+ _logic: string,
112
+ admin_: string,
113
+ _data: BytesLike,
114
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
115
+ ): Promise<TransparentUpgradeableProxy> {
116
+ return super.deploy(
117
+ _logic,
118
+ admin_,
119
+ _data,
120
+ overrides || {}
121
+ ) as Promise<TransparentUpgradeableProxy>;
122
+ }
123
+ getDeployTransaction(
124
+ _logic: string,
125
+ admin_: string,
126
+ _data: BytesLike,
127
+ overrides?: PayableOverrides & { from?: string | Promise<string> }
128
+ ): TransactionRequest {
129
+ return super.getDeployTransaction(_logic, admin_, _data, overrides || {});
130
+ }
131
+ attach(address: string): TransparentUpgradeableProxy {
132
+ return super.attach(address) as TransparentUpgradeableProxy;
133
+ }
134
+ connect(signer: Signer): TransparentUpgradeableProxy__factory {
135
+ return super.connect(signer) as TransparentUpgradeableProxy__factory;
136
+ }
137
+ static readonly bytecode = _bytecode;
138
+ static readonly abi = _abi;
139
+ static createInterface(): TransparentUpgradeableProxyInterface {
140
+ return new utils.Interface(_abi) as TransparentUpgradeableProxyInterface;
141
+ }
142
+ static connect(
143
+ address: string,
144
+ signerOrProvider: Signer | Provider
145
+ ): TransparentUpgradeableProxy {
146
+ return new Contract(
147
+ address,
148
+ _abi,
149
+ signerOrProvider
150
+ ) as TransparentUpgradeableProxy;
151
+ }
152
+ }
@@ -0,0 +1,375 @@
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.UpgradedStandardToken__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: false,
135
+ inputs: [
136
+ {
137
+ name: "from",
138
+ type: "address",
139
+ },
140
+ {
141
+ name: "to",
142
+ type: "address",
143
+ },
144
+ {
145
+ name: "value",
146
+ type: "uint256",
147
+ },
148
+ ],
149
+ name: "transferByLegacy",
150
+ outputs: [],
151
+ payable: false,
152
+ stateMutability: "nonpayable",
153
+ type: "function",
154
+ },
155
+ {
156
+ constant: true,
157
+ inputs: [
158
+ {
159
+ name: "_owner",
160
+ type: "address",
161
+ },
162
+ ],
163
+ name: "balanceOf",
164
+ outputs: [
165
+ {
166
+ name: "balance",
167
+ type: "uint256",
168
+ },
169
+ ],
170
+ payable: false,
171
+ stateMutability: "view",
172
+ type: "function",
173
+ },
174
+ {
175
+ constant: false,
176
+ inputs: [
177
+ {
178
+ name: "sender",
179
+ type: "address",
180
+ },
181
+ {
182
+ name: "from",
183
+ type: "address",
184
+ },
185
+ {
186
+ name: "spender",
187
+ type: "address",
188
+ },
189
+ {
190
+ name: "value",
191
+ type: "uint256",
192
+ },
193
+ ],
194
+ name: "transferFromByLegacy",
195
+ outputs: [],
196
+ payable: false,
197
+ stateMutability: "nonpayable",
198
+ type: "function",
199
+ },
200
+ {
201
+ constant: true,
202
+ inputs: [],
203
+ name: "owner",
204
+ outputs: [
205
+ {
206
+ name: "",
207
+ type: "address",
208
+ },
209
+ ],
210
+ payable: false,
211
+ stateMutability: "view",
212
+ type: "function",
213
+ },
214
+ {
215
+ constant: false,
216
+ inputs: [
217
+ {
218
+ name: "_to",
219
+ type: "address",
220
+ },
221
+ {
222
+ name: "_value",
223
+ type: "uint256",
224
+ },
225
+ ],
226
+ name: "transfer",
227
+ outputs: [],
228
+ payable: false,
229
+ stateMutability: "nonpayable",
230
+ type: "function",
231
+ },
232
+ {
233
+ constant: false,
234
+ inputs: [
235
+ {
236
+ name: "from",
237
+ type: "address",
238
+ },
239
+ {
240
+ name: "spender",
241
+ type: "address",
242
+ },
243
+ {
244
+ name: "value",
245
+ type: "uint256",
246
+ },
247
+ ],
248
+ name: "approveByLegacy",
249
+ outputs: [],
250
+ payable: false,
251
+ stateMutability: "nonpayable",
252
+ type: "function",
253
+ },
254
+ {
255
+ constant: true,
256
+ inputs: [
257
+ {
258
+ name: "_owner",
259
+ type: "address",
260
+ },
261
+ {
262
+ name: "_spender",
263
+ type: "address",
264
+ },
265
+ ],
266
+ name: "allowance",
267
+ outputs: [
268
+ {
269
+ name: "remaining",
270
+ type: "uint256",
271
+ },
272
+ ],
273
+ payable: false,
274
+ stateMutability: "view",
275
+ type: "function",
276
+ },
277
+ {
278
+ constant: true,
279
+ inputs: [],
280
+ name: "basisPointsRate",
281
+ outputs: [
282
+ {
283
+ name: "",
284
+ type: "uint256",
285
+ },
286
+ ],
287
+ payable: false,
288
+ stateMutability: "view",
289
+ type: "function",
290
+ },
291
+ {
292
+ constant: true,
293
+ inputs: [],
294
+ name: "MAX_UINT",
295
+ outputs: [
296
+ {
297
+ name: "",
298
+ type: "uint256",
299
+ },
300
+ ],
301
+ payable: false,
302
+ stateMutability: "view",
303
+ type: "function",
304
+ },
305
+ {
306
+ constant: false,
307
+ inputs: [
308
+ {
309
+ name: "newOwner",
310
+ type: "address",
311
+ },
312
+ ],
313
+ name: "transferOwnership",
314
+ outputs: [],
315
+ payable: false,
316
+ stateMutability: "nonpayable",
317
+ type: "function",
318
+ },
319
+ {
320
+ anonymous: false,
321
+ inputs: [
322
+ {
323
+ indexed: true,
324
+ name: "owner",
325
+ type: "address",
326
+ },
327
+ {
328
+ indexed: true,
329
+ name: "spender",
330
+ type: "address",
331
+ },
332
+ {
333
+ indexed: false,
334
+ name: "value",
335
+ type: "uint256",
336
+ },
337
+ ],
338
+ name: "Approval",
339
+ type: "event",
340
+ },
341
+ {
342
+ anonymous: false,
343
+ inputs: [
344
+ {
345
+ indexed: true,
346
+ name: "from",
347
+ type: "address",
348
+ },
349
+ {
350
+ indexed: true,
351
+ name: "to",
352
+ type: "address",
353
+ },
354
+ {
355
+ indexed: false,
356
+ name: "value",
357
+ type: "uint256",
358
+ },
359
+ ],
360
+ name: "Transfer",
361
+ type: "event",
362
+ },
363
+ ];
364
+ var UpgradedStandardToken__factory = exports.UpgradedStandardToken__factory = /** @class */ (function () {
365
+ function UpgradedStandardToken__factory() {
366
+ }
367
+ UpgradedStandardToken__factory.createInterface = function () {
368
+ return new ethers_1.utils.Interface(_abi);
369
+ };
370
+ UpgradedStandardToken__factory.connect = function (address, signerOrProvider) {
371
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
372
+ };
373
+ UpgradedStandardToken__factory.abi = _abi;
374
+ return UpgradedStandardToken__factory;
375
+ }());