dequanto 0.0.1 → 0.0.7

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 (886) hide show
  1. package/.circleci/config.yml +28 -0
  2. package/actions/contracts.act.ts +50 -0
  3. package/actions/logs.act.ts +7 -0
  4. package/actions/safe.act.ts +7 -0
  5. package/actions/tokens.act.ts +20 -2
  6. package/configs/defi.yml +24 -0
  7. package/configs/dequanto.yml +49 -2
  8. package/contracts/abi/gnosis/GnosisSafe.json +979 -0
  9. package/contracts/gen/base/{ERC20Base.ts → ERC20Base/ERC20Base.ts} +136 -90
  10. package/contracts/gen/eth/WETHBase.ts +35 -35
  11. package/contracts/gnosis/GnosisSafe.ts +750 -0
  12. package/contracts/openzeppelin/AccessControl.json +206 -0
  13. package/contracts/openzeppelin/AccessControl.ts +236 -0
  14. package/contracts/openzeppelin/AccessControlCrossChain.json +219 -0
  15. package/contracts/openzeppelin/AccessControlCrossChain.ts +247 -0
  16. package/contracts/openzeppelin/AccessControlEnumerable.json +249 -0
  17. package/contracts/openzeppelin/AccessControlEnumerable.ts +258 -0
  18. package/contracts/openzeppelin/Address.json +1 -0
  19. package/contracts/openzeppelin/Address.ts +83 -0
  20. package/contracts/openzeppelin/Arrays.json +1 -0
  21. package/contracts/openzeppelin/Arrays.ts +83 -0
  22. package/contracts/openzeppelin/Base64.json +1 -0
  23. package/contracts/openzeppelin/Base64.ts +83 -0
  24. package/contracts/openzeppelin/BeaconProxy.json +71 -0
  25. package/contracts/openzeppelin/BeaconProxy.ts +163 -0
  26. package/contracts/openzeppelin/BitMaps.json +1 -0
  27. package/contracts/openzeppelin/BitMaps.ts +83 -0
  28. package/contracts/openzeppelin/Checkpoints.json +1 -0
  29. package/contracts/openzeppelin/Checkpoints.ts +83 -0
  30. package/contracts/openzeppelin/Clones.json +1 -0
  31. package/contracts/openzeppelin/Clones.ts +83 -0
  32. package/contracts/openzeppelin/ConditionalEscrow.json +156 -0
  33. package/contracts/openzeppelin/ConditionalEscrow.ts +236 -0
  34. package/contracts/openzeppelin/Context.json +1 -0
  35. package/contracts/openzeppelin/Context.ts +83 -0
  36. package/contracts/openzeppelin/Counters.json +1 -0
  37. package/contracts/openzeppelin/Counters.ts +83 -0
  38. package/contracts/openzeppelin/Create2.json +1 -0
  39. package/contracts/openzeppelin/Create2.ts +83 -0
  40. package/contracts/openzeppelin/CrossChainEnabled.json +1 -0
  41. package/contracts/openzeppelin/CrossChainEnabled.ts +83 -0
  42. package/contracts/openzeppelin/CrossChainEnabledAMB.json +13 -0
  43. package/contracts/openzeppelin/CrossChainEnabledAMB.ts +83 -0
  44. package/contracts/openzeppelin/CrossChainEnabledArbitrumL1.json +1 -0
  45. package/contracts/openzeppelin/CrossChainEnabledArbitrumL1.ts +83 -0
  46. package/contracts/openzeppelin/CrossChainEnabledArbitrumL2.json +1 -0
  47. package/contracts/openzeppelin/CrossChainEnabledArbitrumL2.ts +83 -0
  48. package/contracts/openzeppelin/CrossChainEnabledOptimism.json +1 -0
  49. package/contracts/openzeppelin/CrossChainEnabledOptimism.ts +83 -0
  50. package/contracts/openzeppelin/CrossChainEnabledPolygonChild.json +30 -0
  51. package/contracts/openzeppelin/CrossChainEnabledPolygonChild.ts +90 -0
  52. package/contracts/openzeppelin/DoubleEndedQueue.json +12 -0
  53. package/contracts/openzeppelin/DoubleEndedQueue.ts +83 -0
  54. package/contracts/openzeppelin/ECDSA.json +1 -0
  55. package/contracts/openzeppelin/ECDSA.ts +83 -0
  56. package/contracts/openzeppelin/EIP712.json +1 -0
  57. package/contracts/openzeppelin/EIP712.ts +83 -0
  58. package/contracts/openzeppelin/ERC1155.json +325 -0
  59. package/contracts/openzeppelin/ERC1155.ts +276 -0
  60. package/contracts/openzeppelin/ERC1155Burnable.json +360 -0
  61. package/contracts/openzeppelin/ERC1155Burnable.ts +298 -0
  62. package/contracts/openzeppelin/ERC1155Holder.json +99 -0
  63. package/contracts/openzeppelin/ERC1155Holder.ts +112 -0
  64. package/contracts/openzeppelin/ERC1155Pausable.json +353 -0
  65. package/contracts/openzeppelin/ERC1155Pausable.ts +345 -0
  66. package/contracts/openzeppelin/ERC1155PresetMinterPauser.json +734 -0
  67. package/contracts/openzeppelin/ERC1155PresetMinterPauser.ts +608 -0
  68. package/contracts/openzeppelin/ERC1155Receiver.json +99 -0
  69. package/contracts/openzeppelin/ERC1155Receiver.ts +112 -0
  70. package/contracts/openzeppelin/ERC1155Supply.json +352 -0
  71. package/contracts/openzeppelin/ERC1155Supply.ts +298 -0
  72. package/contracts/openzeppelin/ERC1155URIStorage.json +314 -0
  73. package/contracts/openzeppelin/ERC1155URIStorage.ts +276 -0
  74. package/contracts/openzeppelin/ERC165.json +21 -0
  75. package/contracts/openzeppelin/ERC165.ts +90 -0
  76. package/contracts/openzeppelin/ERC165Checker.json +1 -0
  77. package/contracts/openzeppelin/ERC165Checker.ts +83 -0
  78. package/contracts/openzeppelin/ERC165Storage.json +21 -0
  79. package/contracts/openzeppelin/ERC165Storage.ts +90 -0
  80. package/contracts/openzeppelin/ERC1820Implementer.json +26 -0
  81. package/contracts/openzeppelin/ERC1820Implementer.ts +90 -0
  82. package/contracts/openzeppelin/ERC1967Proxy.json +71 -0
  83. package/contracts/openzeppelin/ERC1967Proxy.ts +163 -0
  84. package/contracts/openzeppelin/ERC1967Upgrade.json +47 -0
  85. package/contracts/openzeppelin/ERC1967Upgrade.ts +163 -0
  86. package/contracts/openzeppelin/ERC20.json +288 -0
  87. package/contracts/openzeppelin/ERC20.ts +251 -0
  88. package/contracts/openzeppelin/ERC20Burnable.json +303 -0
  89. package/contracts/openzeppelin/ERC20Burnable.ts +273 -0
  90. package/contracts/openzeppelin/ERC20Capped.json +285 -0
  91. package/contracts/openzeppelin/ERC20Capped.ts +262 -0
  92. package/contracts/openzeppelin/ERC20FlashMint.json +349 -0
  93. package/contracts/openzeppelin/ERC20FlashMint.ts +284 -0
  94. package/contracts/openzeppelin/ERC20Pausable.json +311 -0
  95. package/contracts/openzeppelin/ERC20Pausable.ts +320 -0
  96. package/contracts/openzeppelin/ERC20Permit.json +347 -0
  97. package/contracts/openzeppelin/ERC20Permit.ts +284 -0
  98. package/contracts/openzeppelin/ERC20PresetFixedSupply.json +329 -0
  99. package/contracts/openzeppelin/ERC20PresetFixedSupply.ts +273 -0
  100. package/contracts/openzeppelin/ERC20PresetMinterPauser.json +663 -0
  101. package/contracts/openzeppelin/ERC20PresetMinterPauser.ts +583 -0
  102. package/contracts/openzeppelin/ERC20Snapshot.json +328 -0
  103. package/contracts/openzeppelin/ERC20Snapshot.ts +302 -0
  104. package/contracts/openzeppelin/ERC20Votes.json +584 -0
  105. package/contracts/openzeppelin/ERC20Votes.ts +430 -0
  106. package/contracts/openzeppelin/ERC20VotesComp.json +627 -0
  107. package/contracts/openzeppelin/ERC20VotesComp.ts +452 -0
  108. package/contracts/openzeppelin/ERC20Wrapper.json +333 -0
  109. package/contracts/openzeppelin/ERC20Wrapper.ts +284 -0
  110. package/contracts/openzeppelin/ERC2771Context.json +21 -0
  111. package/contracts/openzeppelin/ERC2771Context.ts +90 -0
  112. package/contracts/openzeppelin/ERC2981.json +50 -0
  113. package/contracts/openzeppelin/ERC2981.ts +101 -0
  114. package/contracts/openzeppelin/ERC4626.json +662 -0
  115. package/contracts/openzeppelin/ERC4626.ts +485 -0
  116. package/contracts/openzeppelin/ERC721.json +348 -0
  117. package/contracts/openzeppelin/ERC721.ts +295 -0
  118. package/contracts/openzeppelin/ERC721Burnable.json +345 -0
  119. package/contracts/openzeppelin/ERC721Burnable.ts +306 -0
  120. package/contracts/openzeppelin/ERC721Enumerable.json +388 -0
  121. package/contracts/openzeppelin/ERC721Enumerable.ts +328 -0
  122. package/contracts/openzeppelin/ERC721Holder.json +36 -0
  123. package/contracts/openzeppelin/ERC721Holder.ts +90 -0
  124. package/contracts/openzeppelin/ERC721Pausable.json +371 -0
  125. package/contracts/openzeppelin/ERC721Pausable.ts +364 -0
  126. package/contracts/openzeppelin/ERC721PresetMinterPauserAutoId.json +742 -0
  127. package/contracts/openzeppelin/ERC721PresetMinterPauserAutoId.ts +638 -0
  128. package/contracts/openzeppelin/ERC721Royalty.json +361 -0
  129. package/contracts/openzeppelin/ERC721Royalty.ts +306 -0
  130. package/contracts/openzeppelin/ERC721URIStorage.json +332 -0
  131. package/contracts/openzeppelin/ERC721URIStorage.ts +295 -0
  132. package/contracts/openzeppelin/ERC721Votes.json +546 -0
  133. package/contracts/openzeppelin/ERC721Votes.ts +441 -0
  134. package/contracts/openzeppelin/ERC777.json +578 -0
  135. package/contracts/openzeppelin/ERC777.ts +473 -0
  136. package/contracts/openzeppelin/ERC777PresetFixedSupply.json +588 -0
  137. package/contracts/openzeppelin/ERC777PresetFixedSupply.ts +473 -0
  138. package/contracts/openzeppelin/EnumerableMap.json +1 -0
  139. package/contracts/openzeppelin/EnumerableMap.ts +83 -0
  140. package/contracts/openzeppelin/EnumerableSet.json +1 -0
  141. package/contracts/openzeppelin/EnumerableSet.ts +83 -0
  142. package/contracts/openzeppelin/Escrow.json +137 -0
  143. package/contracts/openzeppelin/Escrow.ts +225 -0
  144. package/contracts/openzeppelin/Governor.json +866 -0
  145. package/contracts/openzeppelin/Governor.ts +525 -0
  146. package/contracts/openzeppelin/GovernorCompatibilityBravo.json +1181 -0
  147. package/contracts/openzeppelin/GovernorCompatibilityBravo.ts +654 -0
  148. package/contracts/openzeppelin/GovernorCountingSimple.json +895 -0
  149. package/contracts/openzeppelin/GovernorCountingSimple.ts +536 -0
  150. package/contracts/openzeppelin/GovernorPreventLateQuorum.json +930 -0
  151. package/contracts/openzeppelin/GovernorPreventLateQuorum.ts +605 -0
  152. package/contracts/openzeppelin/GovernorProposalThreshold.json +866 -0
  153. package/contracts/openzeppelin/GovernorProposalThreshold.ts +525 -0
  154. package/contracts/openzeppelin/GovernorSettings.json +962 -0
  155. package/contracts/openzeppelin/GovernorSettings.ts +645 -0
  156. package/contracts/openzeppelin/GovernorTimelockCompound.json +990 -0
  157. package/contracts/openzeppelin/GovernorTimelockCompound.ts +638 -0
  158. package/contracts/openzeppelin/GovernorTimelockControl.json +983 -0
  159. package/contracts/openzeppelin/GovernorTimelockControl.ts +627 -0
  160. package/contracts/openzeppelin/GovernorVotes.json +879 -0
  161. package/contracts/openzeppelin/GovernorVotes.ts +536 -0
  162. package/contracts/openzeppelin/GovernorVotesComp.json +879 -0
  163. package/contracts/openzeppelin/GovernorVotesComp.ts +536 -0
  164. package/contracts/openzeppelin/GovernorVotesQuorumFraction.json +937 -0
  165. package/contracts/openzeppelin/GovernorVotesQuorumFraction.ts +598 -0
  166. package/contracts/openzeppelin/IAMB.json +327 -0
  167. package/contracts/openzeppelin/IAMB.ts +331 -0
  168. package/contracts/openzeppelin/IAccessControl.json +174 -0
  169. package/contracts/openzeppelin/IAccessControl.ts +214 -0
  170. package/contracts/openzeppelin/IAccessControlEnumerable.json +217 -0
  171. package/contracts/openzeppelin/IAccessControlEnumerable.ts +236 -0
  172. package/contracts/openzeppelin/IArbSys.json +270 -0
  173. package/contracts/openzeppelin/IArbSys.ts +233 -0
  174. package/contracts/openzeppelin/IBeacon.json +15 -0
  175. package/contracts/openzeppelin/IBeacon.ts +90 -0
  176. package/contracts/openzeppelin/IBridge.json +296 -0
  177. package/contracts/openzeppelin/IBridge.ts +287 -0
  178. package/contracts/openzeppelin/ICompoundTimelock.json +415 -0
  179. package/contracts/openzeppelin/ICompoundTimelock.ts +389 -0
  180. package/contracts/openzeppelin/ICrossDomainMessenger.json +101 -0
  181. package/contracts/openzeppelin/ICrossDomainMessenger.ts +181 -0
  182. package/contracts/openzeppelin/IERC1155.json +295 -0
  183. package/contracts/openzeppelin/IERC1155.ts +265 -0
  184. package/contracts/openzeppelin/IERC1155MetadataURI.json +314 -0
  185. package/contracts/openzeppelin/IERC1155MetadataURI.ts +276 -0
  186. package/contracts/openzeppelin/IERC1155Receiver.json +99 -0
  187. package/contracts/openzeppelin/IERC1155Receiver.ts +112 -0
  188. package/contracts/openzeppelin/IERC1271.json +26 -0
  189. package/contracts/openzeppelin/IERC1271.ts +90 -0
  190. package/contracts/openzeppelin/IERC1363.json +373 -0
  191. package/contracts/openzeppelin/IERC1363.ts +252 -0
  192. package/contracts/openzeppelin/IERC1363Receiver.json +36 -0
  193. package/contracts/openzeppelin/IERC1363Receiver.ts +90 -0
  194. package/contracts/openzeppelin/IERC1363Spender.json +31 -0
  195. package/contracts/openzeppelin/IERC1363Spender.ts +90 -0
  196. package/contracts/openzeppelin/IERC165.json +21 -0
  197. package/contracts/openzeppelin/IERC165.ts +90 -0
  198. package/contracts/openzeppelin/IERC1820Implementer.json +26 -0
  199. package/contracts/openzeppelin/IERC1820Implementer.ts +90 -0
  200. package/contracts/openzeppelin/IERC1820Registry.json +215 -0
  201. package/contracts/openzeppelin/IERC1820Registry.ts +218 -0
  202. package/contracts/openzeppelin/IERC1822Proxiable.json +15 -0
  203. package/contracts/openzeppelin/IERC1822Proxiable.ts +90 -0
  204. package/contracts/openzeppelin/IERC20.json +185 -0
  205. package/contracts/openzeppelin/IERC20.ts +196 -0
  206. package/contracts/openzeppelin/IERC20Metadata.json +224 -0
  207. package/contracts/openzeppelin/IERC20Metadata.ts +229 -0
  208. package/contracts/openzeppelin/IERC20Permit.json +77 -0
  209. package/contracts/openzeppelin/IERC20Permit.ts +112 -0
  210. package/contracts/openzeppelin/IERC2612.json +77 -0
  211. package/contracts/openzeppelin/IERC2612.ts +112 -0
  212. package/contracts/openzeppelin/IERC2981.json +50 -0
  213. package/contracts/openzeppelin/IERC2981.ts +101 -0
  214. package/contracts/openzeppelin/IERC3156FlashBorrower.json +41 -0
  215. package/contracts/openzeppelin/IERC3156FlashBorrower.ts +90 -0
  216. package/contracts/openzeppelin/IERC3156FlashLender.json +79 -0
  217. package/contracts/openzeppelin/IERC3156FlashLender.ts +112 -0
  218. package/contracts/openzeppelin/IERC4626.json +614 -0
  219. package/contracts/openzeppelin/IERC4626.ts +463 -0
  220. package/contracts/openzeppelin/IERC721.json +287 -0
  221. package/contracts/openzeppelin/IERC721.ts +262 -0
  222. package/contracts/openzeppelin/IERC721Enumerable.json +343 -0
  223. package/contracts/openzeppelin/IERC721Enumerable.ts +295 -0
  224. package/contracts/openzeppelin/IERC721Metadata.json +332 -0
  225. package/contracts/openzeppelin/IERC721Metadata.ts +295 -0
  226. package/contracts/openzeppelin/IERC721Receiver.json +36 -0
  227. package/contracts/openzeppelin/IERC721Receiver.ts +90 -0
  228. package/contracts/openzeppelin/IERC777.json +393 -0
  229. package/contracts/openzeppelin/IERC777.ts +360 -0
  230. package/contracts/openzeppelin/IERC777Recipient.json +40 -0
  231. package/contracts/openzeppelin/IERC777Recipient.ts +90 -0
  232. package/contracts/openzeppelin/IERC777Sender.json +40 -0
  233. package/contracts/openzeppelin/IERC777Sender.ts +90 -0
  234. package/contracts/openzeppelin/IFxMessageProcessor.json +25 -0
  235. package/contracts/openzeppelin/IFxMessageProcessor.ts +90 -0
  236. package/contracts/openzeppelin/IGovernor.json +683 -0
  237. package/contracts/openzeppelin/IGovernor.ts +448 -0
  238. package/contracts/openzeppelin/IGovernorCompatibilityBravo.json +913 -0
  239. package/contracts/openzeppelin/IGovernorCompatibilityBravo.ts +522 -0
  240. package/contracts/openzeppelin/IGovernorTimelock.json +768 -0
  241. package/contracts/openzeppelin/IGovernorTimelock.ts +510 -0
  242. package/contracts/openzeppelin/IInbox.json +377 -0
  243. package/contracts/openzeppelin/IInbox.ts +273 -0
  244. package/contracts/openzeppelin/IMessageProvider.json +34 -0
  245. package/contracts/openzeppelin/IMessageProvider.ts +134 -0
  246. package/contracts/openzeppelin/IOutbox.json +179 -0
  247. package/contracts/openzeppelin/IOutbox.ts +218 -0
  248. package/contracts/openzeppelin/IVotes.json +184 -0
  249. package/contracts/openzeppelin/IVotes.ts +196 -0
  250. package/contracts/openzeppelin/Initializable.json +15 -0
  251. package/contracts/openzeppelin/Initializable.ts +105 -0
  252. package/contracts/openzeppelin/LibAMB.json +1 -0
  253. package/contracts/openzeppelin/LibAMB.ts +83 -0
  254. package/contracts/openzeppelin/LibArbitrumL1.json +1 -0
  255. package/contracts/openzeppelin/LibArbitrumL1.ts +83 -0
  256. package/contracts/openzeppelin/LibArbitrumL2.json +15 -0
  257. package/contracts/openzeppelin/LibArbitrumL2.ts +90 -0
  258. package/contracts/openzeppelin/LibOptimism.json +1 -0
  259. package/contracts/openzeppelin/LibOptimism.ts +83 -0
  260. package/contracts/openzeppelin/Math.json +1 -0
  261. package/contracts/openzeppelin/Math.ts +83 -0
  262. package/contracts/openzeppelin/MerkleProof.json +1 -0
  263. package/contracts/openzeppelin/MerkleProof.ts +83 -0
  264. package/contracts/openzeppelin/MinimalForwarder.json +143 -0
  265. package/contracts/openzeppelin/MinimalForwarder.ts +112 -0
  266. package/contracts/openzeppelin/Multicall.json +21 -0
  267. package/contracts/openzeppelin/Multicall.ts +90 -0
  268. package/contracts/openzeppelin/Ownable.json +54 -0
  269. package/contracts/openzeppelin/Ownable.ts +134 -0
  270. package/contracts/openzeppelin/Pausable.json +41 -0
  271. package/contracts/openzeppelin/Pausable.ts +141 -0
  272. package/contracts/openzeppelin/PaymentSplitter.json +304 -0
  273. package/contracts/openzeppelin/PaymentSplitter.ts +281 -0
  274. package/contracts/openzeppelin/Proxy.json +10 -0
  275. package/contracts/openzeppelin/Proxy.ts +83 -0
  276. package/contracts/openzeppelin/ProxyAdmin.json +151 -0
  277. package/contracts/openzeppelin/ProxyAdmin.ts +189 -0
  278. package/contracts/openzeppelin/PullPayment.json +34 -0
  279. package/contracts/openzeppelin/PullPayment.ts +101 -0
  280. package/contracts/openzeppelin/ReentrancyGuard.json +1 -0
  281. package/contracts/openzeppelin/ReentrancyGuard.ts +83 -0
  282. package/contracts/openzeppelin/RefundEscrow.json +226 -0
  283. package/contracts/openzeppelin/RefundEscrow.ts +349 -0
  284. package/contracts/openzeppelin/SafeCast.json +1 -0
  285. package/contracts/openzeppelin/SafeCast.ts +83 -0
  286. package/contracts/openzeppelin/SafeERC20.json +1 -0
  287. package/contracts/openzeppelin/SafeERC20.ts +83 -0
  288. package/contracts/openzeppelin/SafeMath.json +1 -0
  289. package/contracts/openzeppelin/SafeMath.ts +83 -0
  290. package/contracts/openzeppelin/SignatureChecker.json +1 -0
  291. package/contracts/openzeppelin/SignatureChecker.ts +83 -0
  292. package/contracts/openzeppelin/SignedMath.json +1 -0
  293. package/contracts/openzeppelin/SignedMath.ts +83 -0
  294. package/contracts/openzeppelin/SignedSafeMath.json +1 -0
  295. package/contracts/openzeppelin/SignedSafeMath.ts +83 -0
  296. package/contracts/openzeppelin/StorageSlot.json +1 -0
  297. package/contracts/openzeppelin/StorageSlot.ts +83 -0
  298. package/contracts/openzeppelin/Strings.json +1 -0
  299. package/contracts/openzeppelin/Strings.ts +83 -0
  300. package/contracts/openzeppelin/TimelockController.json +867 -0
  301. package/contracts/openzeppelin/TimelockController.ts +583 -0
  302. package/contracts/openzeppelin/Timers.json +1 -0
  303. package/contracts/openzeppelin/Timers.ts +83 -0
  304. package/contracts/openzeppelin/TokenTimelock.json +69 -0
  305. package/contracts/openzeppelin/TokenTimelock.ts +123 -0
  306. package/contracts/openzeppelin/TransparentUpgradeableProxy.json +146 -0
  307. package/contracts/openzeppelin/TransparentUpgradeableProxy.ts +214 -0
  308. package/contracts/openzeppelin/UUPSUpgradeable.json +91 -0
  309. package/contracts/openzeppelin/UUPSUpgradeable.ts +192 -0
  310. package/contracts/openzeppelin/UpgradeableBeacon.json +104 -0
  311. package/contracts/openzeppelin/UpgradeableBeacon.ts +185 -0
  312. package/contracts/openzeppelin/VestingWallet.json +193 -0
  313. package/contracts/openzeppelin/VestingWallet.ts +208 -0
  314. package/contracts/openzeppelin/Votes.json +216 -0
  315. package/contracts/openzeppelin/Votes.ts +218 -0
  316. package/data/evm/eventHashes.json +19314 -0
  317. package/data/evm/events.json +19314 -0
  318. package/data/evm/functionHashes.json +121138 -0
  319. package/data/evm/functions.json +121140 -0
  320. package/data/tokens/coingecko.json +137409 -0
  321. package/dist/contracts/gen/base/ERC20Base/ERC20Base.js +94 -0
  322. package/dist/contracts/gnosis/GnosisSafe.js +357 -0
  323. package/dist/src/BlockchainExplorer/BlockChainExplorerFactory.js +114 -20
  324. package/dist/src/BlockchainExplorer/BlockChainExplorerProvider.js +8 -0
  325. package/dist/src/BlockchainExplorer/Bscscan.js +1 -0
  326. package/dist/src/BlockchainExplorer/Etherscan.js +14 -4
  327. package/dist/src/BlockchainExplorer/Evmscan.js +9 -0
  328. package/dist/src/BlockchainExplorer/Polyscan.js +1 -0
  329. package/dist/src/ChainAccountProvider.js +89 -0
  330. package/dist/src/ChainAccountsService.js +20 -2
  331. package/dist/src/Config.js +76 -0
  332. package/dist/src/blocks/BlockDateResolver.js +9 -8
  333. package/dist/src/bridges/hop/HopBridge.js +5 -2
  334. package/dist/src/chains/PlatformFactory.js +2 -2
  335. package/dist/src/chains/arbitrum/ArbWeb3Client.js +5 -24
  336. package/dist/src/chains/arbitrum/TokensServiceArbitrum.js +18 -0
  337. package/dist/src/chains/boba/BobaWeb3Client.js +5 -33
  338. package/dist/src/chains/xdai/XDaiWeb3Client.js +6 -30
  339. package/dist/src/class/SubjectKind.js +9 -0
  340. package/dist/src/class/SubjectStream.js +104 -0
  341. package/dist/src/class/Subscription.js +13 -0
  342. package/dist/src/clients/BscWeb3Client.js +5 -24
  343. package/dist/src/clients/ClientEventsStream.js +62 -18
  344. package/dist/src/clients/ClientPool.js +115 -55
  345. package/dist/src/clients/EthWeb3Client.js +7 -22
  346. package/dist/src/clients/EvmWeb3Client.js +25 -0
  347. package/dist/src/clients/HardhatWeb3Client.js +19 -40
  348. package/dist/src/clients/PolyWeb3Client.js +5 -51
  349. package/dist/src/clients/Web3Client.js +355 -10
  350. package/dist/src/clients/Web3ClientFactory.js +15 -0
  351. package/dist/src/clients/debug/ClientDebugMethods.js +64 -0
  352. package/dist/src/clients/utils/ClientEndpoints.js +6 -0
  353. package/dist/src/clients/utils/TxFactory.js +7 -12
  354. package/dist/src/contracts/Contract.js +2 -1
  355. package/dist/src/contracts/ContractAbiProvider.js +58 -0
  356. package/dist/src/contracts/ContractBase.js +161 -26
  357. package/dist/src/contracts/ContractReader.js +78 -2
  358. package/dist/src/contracts/ContractStorageReaderBase.js +15 -0
  359. package/dist/src/contracts/ContractStream.js +21 -8
  360. package/dist/src/contracts/ContractWriter.js +47 -20
  361. package/dist/src/contracts/TxContract.js +6 -3
  362. package/dist/src/contracts/common/ERC20.js +1 -1
  363. package/dist/src/contracts/utils/AbiDeserializer.js +15 -5
  364. package/dist/src/contracts/utils/InputDataUtils.js +5 -2
  365. package/dist/src/env/BigIntSerializer.js +2 -1
  366. package/dist/src/evm/EVM.js +214 -0
  367. package/dist/src/evm/OpcodesWalker.js +137 -0
  368. package/dist/src/evm/Stack.js +57 -0
  369. package/dist/src/evm/interfaces/IJumps.js +2 -0
  370. package/dist/src/evm/interfaces/IMemory.js +2 -0
  371. package/dist/src/evm/interfaces/IOpcode.js +2 -0
  372. package/dist/src/evm/interfaces/IStorage.js +2 -0
  373. package/dist/src/evm/opcodes/add.js +50 -0
  374. package/dist/src/evm/opcodes/addmod.js +19 -0
  375. package/dist/src/evm/opcodes/address.js +17 -0
  376. package/dist/src/evm/opcodes/and.js +56 -0
  377. package/dist/src/evm/opcodes/balance.js +22 -0
  378. package/dist/src/evm/opcodes/blockhash.js +22 -0
  379. package/dist/src/evm/opcodes/byte.js +30 -0
  380. package/dist/src/evm/opcodes/call.js +48 -0
  381. package/dist/src/evm/opcodes/callcode.js +48 -0
  382. package/dist/src/evm/opcodes/calldatacopy.js +27 -0
  383. package/dist/src/evm/opcodes/calldataload.js +33 -0
  384. package/dist/src/evm/opcodes/calldatasize.js +16 -0
  385. package/dist/src/evm/opcodes/caller.js +17 -0
  386. package/dist/src/evm/opcodes/callvalue.js +16 -0
  387. package/dist/src/evm/opcodes/codecopy.js +31 -0
  388. package/dist/src/evm/opcodes/codesize.js +16 -0
  389. package/dist/src/evm/opcodes/coinbase.js +16 -0
  390. package/dist/src/evm/opcodes/create.js +35 -0
  391. package/dist/src/evm/opcodes/create2.js +34 -0
  392. package/dist/src/evm/opcodes/delegatecall.js +44 -0
  393. package/dist/src/evm/opcodes/difficulty.js +16 -0
  394. package/dist/src/evm/opcodes/div.js +33 -0
  395. package/dist/src/evm/opcodes/dup.js +6 -0
  396. package/dist/src/evm/opcodes/eq.js +69 -0
  397. package/dist/src/evm/opcodes/exp.js +30 -0
  398. package/dist/src/evm/opcodes/extcodecopy.js +35 -0
  399. package/dist/src/evm/opcodes/extcodehash.js +22 -0
  400. package/dist/src/evm/opcodes/extcodesize.js +22 -0
  401. package/dist/src/evm/opcodes/gas.js +16 -0
  402. package/dist/src/evm/opcodes/gaslimit.js +16 -0
  403. package/dist/src/evm/opcodes/gasprice.js +16 -0
  404. package/dist/src/evm/opcodes/gt.js +36 -0
  405. package/dist/src/evm/opcodes/invalid.js +18 -0
  406. package/dist/src/evm/opcodes/iszero.js +51 -0
  407. package/dist/src/evm/opcodes/jump.js +66 -0
  408. package/dist/src/evm/opcodes/jumpdest.js +5 -0
  409. package/dist/src/evm/opcodes/jumpi.js +298 -0
  410. package/dist/src/evm/opcodes/log.js +74 -0
  411. package/dist/src/evm/opcodes/lt.js +36 -0
  412. package/dist/src/evm/opcodes/mload.js +28 -0
  413. package/dist/src/evm/opcodes/mod.js +30 -0
  414. package/dist/src/evm/opcodes/msize.js +16 -0
  415. package/dist/src/evm/opcodes/mstore.js +30 -0
  416. package/dist/src/evm/opcodes/mul.js +34 -0
  417. package/dist/src/evm/opcodes/mulmod.js +19 -0
  418. package/dist/src/evm/opcodes/not.js +28 -0
  419. package/dist/src/evm/opcodes/number.js +16 -0
  420. package/dist/src/evm/opcodes/or.js +30 -0
  421. package/dist/src/evm/opcodes/origin.js +16 -0
  422. package/dist/src/evm/opcodes/pc.js +5 -0
  423. package/dist/src/evm/opcodes/pop.js +5 -0
  424. package/dist/src/evm/opcodes/push.js +6 -0
  425. package/dist/src/evm/opcodes/return.js +70 -0
  426. package/dist/src/evm/opcodes/returndatacopy.js +31 -0
  427. package/dist/src/evm/opcodes/returndatasize.js +16 -0
  428. package/dist/src/evm/opcodes/revert.js +57 -0
  429. package/dist/src/evm/opcodes/sar.js +30 -0
  430. package/dist/src/evm/opcodes/selfdestruct.js +23 -0
  431. package/dist/src/evm/opcodes/sha3.js +56 -0
  432. package/dist/src/evm/opcodes/shl.js +35 -0
  433. package/dist/src/evm/opcodes/shr.js +30 -0
  434. package/dist/src/evm/opcodes/signextend.js +19 -0
  435. package/dist/src/evm/opcodes/sload.js +140 -0
  436. package/dist/src/evm/opcodes/sstore.js +189 -0
  437. package/dist/src/evm/opcodes/staticcall.js +44 -0
  438. package/dist/src/evm/opcodes/stop.js +17 -0
  439. package/dist/src/evm/opcodes/sub.js +30 -0
  440. package/dist/src/evm/opcodes/swap.js +6 -0
  441. package/dist/src/evm/opcodes/timestamp.js +16 -0
  442. package/dist/src/evm/opcodes/xor.js +30 -0
  443. package/dist/src/evm/opcodes.js +192 -0
  444. package/dist/src/evm/tx.class.js +154 -0
  445. package/dist/src/evm/utils/BigNumber.js +14 -0
  446. package/dist/src/evm/utils/hex.js +44 -0
  447. package/dist/src/evm/utils/opcodes.js +217 -0
  448. package/dist/src/evm/utils/stringify.js +14 -0
  449. package/dist/src/evm/utils/stringifyEvents.js +38 -0
  450. package/dist/src/evm/utils/stringifyFunctions.js +70 -0
  451. package/dist/src/evm/utils/stringifyInstructions.js +44 -0
  452. package/dist/src/evm/utils/stringifyMappings.js +62 -0
  453. package/dist/src/evm/utils/stringifyStructs.js +16 -0
  454. package/dist/src/evm/utils/stringifyVariables.js +33 -0
  455. package/dist/src/gen/ContractStorageReaderTemplate.js +11 -0
  456. package/dist/src/gen/Generator.js +37 -16
  457. package/dist/src/gen/GeneratorFromAbi.js +225 -72
  458. package/dist/src/gen/GeneratorStorageReader.js +89 -0
  459. package/dist/src/gen/utils/$gen.js +14 -0
  460. package/dist/src/gen/utils/Str.js +47 -0
  461. package/dist/src/hardhat/HardhatProvider.js +177 -0
  462. package/dist/src/indexer/BlocksTxIndexer.js +19 -7
  463. package/dist/src/indexer/handlers/BlocksWalker.js +65 -54
  464. package/dist/src/loggers/LoggerService.js +8 -5
  465. package/dist/src/models/TAccount.js +2 -0
  466. package/dist/src/ns/NameService.js +3 -0
  467. package/dist/src/ns/utils/$ns.js +6 -3
  468. package/dist/src/safe/$gnosis.js +23 -0
  469. package/dist/src/safe/GnosisSafeFactory.js +27 -0
  470. package/dist/src/safe/GnosisSafeHandler.js +361 -0
  471. package/dist/src/safe/transport/FileServiceTransport.js +92 -0
  472. package/dist/src/safe/transport/GnosisServiceTransport.js +78 -0
  473. package/dist/src/safe/transport/ISafeServiceTransport.js +2 -0
  474. package/dist/src/safe/transport/InMemoryServiceTransport.js +56 -0
  475. package/dist/src/solidity/SlotsParser.js +594 -0
  476. package/dist/src/solidity/SlotsStorage.js +158 -0
  477. package/dist/src/solidity/storage/Accessor.js +126 -0
  478. package/dist/src/solidity/storage/SlotDynamicArray.js +17 -0
  479. package/dist/src/solidity/storage/SlotFixedArray.js +28 -0
  480. package/dist/src/solidity/storage/SlotsStorageHandler.js +10 -0
  481. package/dist/src/solidity/storage/SlotsStorageTransport.js +126 -0
  482. package/dist/src/solidity/storage/handlers/SlotDynamicArrayHandler.js +47 -0
  483. package/dist/src/solidity/storage/handlers/SlotFixedArrayHandler.js +50 -0
  484. package/dist/src/solidity/storage/handlers/SlotMappingHandler.js +42 -0
  485. package/dist/src/solidity/storage/handlers/SlotStringHandler.js +109 -0
  486. package/dist/src/solidity/storage/handlers/SlotStructHandler.js +45 -0
  487. package/dist/src/solidity/storage/handlers/SlotValueHandler.js +30 -0
  488. package/dist/src/solidity/utils/$str.js +38 -0
  489. package/dist/src/solidity/utils/$types.js +22 -0
  490. package/dist/src/structs/PackedRanges.js +8 -1
  491. package/dist/src/tokens/TokenDataProvider.js +251 -0
  492. package/dist/src/tokens/TokenExchanges/AmmBase/V2/AmmPairV2Service.js +3 -1
  493. package/dist/src/tokens/TokenExchanges/AmmV2ExchangeBase.js +4 -4
  494. package/dist/src/tokens/TokenExchanges/PancakeswapExchange.js +4 -7
  495. package/dist/src/tokens/TokenExchanges/SushiswapPolygonExchange.js +4 -5
  496. package/dist/src/tokens/TokenExchanges/UniswapExchange.js +4 -7
  497. package/dist/src/tokens/TokenOracles/AmmPriceV2Oracle.js +2 -4
  498. package/dist/src/tokens/TokenOracles/CoingeckoOracle.js +12 -0
  499. package/dist/src/tokens/TokenOracles/TokenPriceStore.js +1 -1
  500. package/dist/src/tokens/TokenProviders/TPChain.js +14 -7
  501. package/dist/src/tokens/TokenProviders/TPCoingecko.js +117 -0
  502. package/dist/src/tokens/TokenProviders/TPConfig.js +46 -0
  503. package/dist/src/tokens/TokenProviders/TPExplorer.js +35 -0
  504. package/dist/src/tokens/TokenService.js +5 -2
  505. package/dist/src/tokens/TokenTransferService.js +28 -18
  506. package/dist/src/tokens/TokensService.js +32 -177
  507. package/dist/src/tokens/TokensServiceFactory.js +13 -1
  508. package/dist/src/txs/TxDataBuilder.js +54 -22
  509. package/dist/src/txs/TxLogger.js +3 -3
  510. package/dist/src/txs/TxWriter.js +169 -37
  511. package/dist/src/txs/receipt/TxLogParser.js +11 -1
  512. package/dist/src/txs/receipt/TxLogsTransfer.js +14 -13
  513. package/dist/src/txs/receipt/TxTopicProvider.js +10 -6
  514. package/dist/src/txs/sig-transports/SigFileTransport.js +48 -0
  515. package/dist/src/utils/$abiParser.js +55 -20
  516. package/dist/src/utils/$abiType.js +184 -3
  517. package/dist/src/utils/$abiUtils.js +54 -5
  518. package/dist/src/utils/$account.js +30 -0
  519. package/dist/src/utils/$address.js +8 -0
  520. package/dist/src/utils/$bigint.js +52 -3
  521. package/dist/src/utils/$block.js +16 -0
  522. package/dist/src/utils/$bloom.js +42 -0
  523. package/dist/src/utils/$buffer.js +94 -0
  524. package/dist/src/utils/$cli.js +20 -0
  525. package/dist/src/utils/$color.js +171 -0
  526. package/dist/src/utils/$config.js +65 -5
  527. package/dist/src/utils/$const.js +4 -0
  528. package/dist/src/utils/$contract.js +20 -2
  529. package/dist/src/utils/$crypto.js +25 -0
  530. package/dist/src/utils/$csv.js +17 -27
  531. package/dist/src/utils/$date.js +129 -25
  532. package/dist/src/utils/$gas.js +15 -0
  533. package/dist/src/utils/$hex.js +77 -0
  534. package/dist/src/utils/$is.js +24 -21
  535. package/dist/src/utils/$logger.js +56 -3
  536. package/dist/src/utils/$machine.js +77 -0
  537. package/dist/src/utils/$number.js +24 -1
  538. package/dist/src/utils/$path.js +17 -0
  539. package/dist/src/utils/$promise.js +81 -0
  540. package/dist/src/utils/$require.js +15 -1
  541. package/dist/src/utils/$secret.js +29 -0
  542. package/dist/src/utils/$sign.js +96 -14
  543. package/dist/src/utils/$signRaw.js +48 -0
  544. package/dist/src/utils/$signSerializer.js +5 -4
  545. package/dist/src/utils/$txData.js +19 -0
  546. package/hardhat.config.js +21 -1
  547. package/package.json +28 -14
  548. package/readme.md +21 -4
  549. package/src/BlockchainExplorer/BlockChainExplorerFactory.ts +149 -39
  550. package/src/BlockchainExplorer/BlockChainExplorerProvider.ts +10 -0
  551. package/src/BlockchainExplorer/Bscscan.ts +1 -0
  552. package/src/BlockchainExplorer/Etherscan.ts +17 -5
  553. package/src/BlockchainExplorer/Evmscan.ts +8 -0
  554. package/src/BlockchainExplorer/IBlockChainExplorer.ts +3 -2
  555. package/src/BlockchainExplorer/Polyscan.ts +1 -0
  556. package/src/ChainAccountProvider.ts +84 -0
  557. package/src/ChainAccountsService.ts +21 -2
  558. package/src/Config.ts +85 -0
  559. package/src/blocks/BlockDateResolver.ts +10 -12
  560. package/src/bridges/hop/HopBridge.ts +9 -2
  561. package/src/bridges/hop/contracts/polygon/Dai_l2AmmWrapperContract.ts +35 -35
  562. package/src/bridges/hop/contracts/polygon/Dai_l2BridgeContract.ts +35 -35
  563. package/src/bridges/hop/contracts/polygon/Dai_l2SaddleSwapContract.ts +35 -35
  564. package/src/bridges/hop/contracts/polygon/Eth_l2AmmWrapperContract.ts +35 -35
  565. package/src/bridges/hop/contracts/polygon/Eth_l2BridgeContract.ts +35 -35
  566. package/src/bridges/hop/contracts/polygon/Eth_l2SaddleSwapContract.ts +35 -35
  567. package/src/bridges/hop/contracts/polygon/Matic_l2AmmWrapperContract.ts +35 -35
  568. package/src/bridges/hop/contracts/polygon/Matic_l2BridgeContract.ts +35 -35
  569. package/src/bridges/hop/contracts/polygon/Matic_l2SaddleSwapContract.ts +35 -35
  570. package/src/bridges/hop/contracts/polygon/Usdc_l2AmmWrapperContract.ts +35 -35
  571. package/src/bridges/hop/contracts/polygon/Usdc_l2BridgeContract.ts +35 -35
  572. package/src/bridges/hop/contracts/polygon/Usdc_l2SaddleSwapContract.ts +35 -35
  573. package/src/bridges/hop/contracts/polygon/Usdt_l2AmmWrapperContract.ts +35 -35
  574. package/src/bridges/hop/contracts/polygon/Usdt_l2BridgeContract.ts +35 -35
  575. package/src/bridges/hop/contracts/polygon/Usdt_l2SaddleSwapContract.ts +35 -35
  576. package/src/bridges/hop/contracts/polygon/Wbtc_l2AmmWrapperContract.ts +35 -35
  577. package/src/bridges/hop/contracts/polygon/Wbtc_l2BridgeContract.ts +35 -35
  578. package/src/bridges/hop/contracts/polygon/Wbtc_l2SaddleSwapContract.ts +35 -35
  579. package/src/bridges/models/IBridge.ts +1 -1
  580. package/src/chains/PlatformFactory.ts +3 -2
  581. package/src/chains/arbitrum/ArbWeb3Client.ts +7 -22
  582. package/src/chains/arbitrum/TokensServiceArbitrum.ts +19 -0
  583. package/src/chains/boba/BobaWeb3Client.ts +5 -33
  584. package/src/chains/xdai/XDaiWeb3Client.ts +6 -32
  585. package/src/class/SubjectKind.ts +5 -0
  586. package/src/class/SubjectStream.ts +111 -0
  587. package/src/class/Subscription.ts +7 -0
  588. package/src/clients/BscWeb3Client.ts +5 -22
  589. package/src/clients/ClientEventsStream.ts +86 -19
  590. package/src/clients/ClientPool.ts +145 -61
  591. package/src/clients/EthWeb3Client.ts +8 -21
  592. package/src/clients/EvmWeb3Client.ts +26 -0
  593. package/src/clients/HardhatWeb3Client.ts +17 -39
  594. package/src/clients/PolyWeb3Client.ts +5 -54
  595. package/src/clients/Web3Client.ts +430 -32
  596. package/src/clients/Web3ClientFactory.ts +17 -1
  597. package/src/clients/debug/ClientDebugMethods.ts +75 -0
  598. package/src/clients/interfaces/IWeb3Client.ts +33 -5
  599. package/src/clients/interfaces/IWeb3EndpointOptions.ts +6 -0
  600. package/src/clients/utils/ClientEndpoints.ts +6 -0
  601. package/src/clients/utils/TxFactory.ts +13 -13
  602. package/src/contracts/Contract.ts +3 -2
  603. package/src/contracts/ContractAbiProvider.ts +68 -0
  604. package/src/contracts/ContractBase.ts +205 -36
  605. package/src/contracts/ContractReader.ts +116 -3
  606. package/src/contracts/ContractStorageReaderBase.ts +26 -0
  607. package/src/contracts/ContractStream.ts +24 -6
  608. package/src/contracts/ContractWriter.ts +58 -28
  609. package/src/contracts/TxContract.ts +7 -4
  610. package/src/contracts/common/ERC20.ts +1 -1
  611. package/src/contracts/utils/AbiDeserializer.ts +16 -7
  612. package/src/contracts/utils/InputDataUtils.ts +8 -6
  613. package/src/env/BigIntSerializer.ts +3 -1
  614. package/src/evm/EVM.ts +246 -0
  615. package/src/evm/OpcodesWalker.ts +149 -0
  616. package/src/evm/Stack.ts +58 -0
  617. package/src/evm/interfaces/IJumps.ts +3 -0
  618. package/src/evm/interfaces/IMemory.ts +3 -0
  619. package/src/evm/interfaces/IOpcode.ts +11 -0
  620. package/src/evm/interfaces/IStorage.ts +3 -0
  621. package/src/evm/opcodes/add.ts +49 -0
  622. package/src/evm/opcodes/addmod.ts +19 -0
  623. package/src/evm/opcodes/address.ts +22 -0
  624. package/src/evm/opcodes/and.ts +58 -0
  625. package/src/evm/opcodes/balance.ts +25 -0
  626. package/src/evm/opcodes/blockhash.ts +25 -0
  627. package/src/evm/opcodes/byte.ts +34 -0
  628. package/src/evm/opcodes/call.ts +69 -0
  629. package/src/evm/opcodes/callcode.ts +69 -0
  630. package/src/evm/opcodes/calldatacopy.ts +36 -0
  631. package/src/evm/opcodes/calldataload.ts +40 -0
  632. package/src/evm/opcodes/calldatasize.ts +21 -0
  633. package/src/evm/opcodes/caller.ts +22 -0
  634. package/src/evm/opcodes/callvalue.ts +21 -0
  635. package/src/evm/opcodes/codecopy.ts +37 -0
  636. package/src/evm/opcodes/codesize.ts +21 -0
  637. package/src/evm/opcodes/coinbase.ts +21 -0
  638. package/src/evm/opcodes/create.ts +42 -0
  639. package/src/evm/opcodes/create2.ts +41 -0
  640. package/src/evm/opcodes/delegatecall.ts +63 -0
  641. package/src/evm/opcodes/difficulty.ts +21 -0
  642. package/src/evm/opcodes/div.ts +35 -0
  643. package/src/evm/opcodes/dup.ts +7 -0
  644. package/src/evm/opcodes/eq.ts +92 -0
  645. package/src/evm/opcodes/exp.ts +34 -0
  646. package/src/evm/opcodes/extcodecopy.ts +42 -0
  647. package/src/evm/opcodes/extcodehash.ts +25 -0
  648. package/src/evm/opcodes/extcodesize.ts +25 -0
  649. package/src/evm/opcodes/gas.ts +21 -0
  650. package/src/evm/opcodes/gaslimit.ts +21 -0
  651. package/src/evm/opcodes/gasprice.ts +21 -0
  652. package/src/evm/opcodes/gt.ts +39 -0
  653. package/src/evm/opcodes/invalid.ts +24 -0
  654. package/src/evm/opcodes/iszero.ts +48 -0
  655. package/src/evm/opcodes/jump.ts +66 -0
  656. package/src/evm/opcodes/jumpdest.ts +6 -0
  657. package/src/evm/opcodes/jumpi.ts +367 -0
  658. package/src/evm/opcodes/log.ts +89 -0
  659. package/src/evm/opcodes/lt.ts +39 -0
  660. package/src/evm/opcodes/mload.ts +30 -0
  661. package/src/evm/opcodes/mod.ts +33 -0
  662. package/src/evm/opcodes/msize.ts +21 -0
  663. package/src/evm/opcodes/mstore.ts +33 -0
  664. package/src/evm/opcodes/mul.ts +38 -0
  665. package/src/evm/opcodes/mulmod.ts +19 -0
  666. package/src/evm/opcodes/not.ts +30 -0
  667. package/src/evm/opcodes/number.ts +21 -0
  668. package/src/evm/opcodes/or.ts +33 -0
  669. package/src/evm/opcodes/origin.ts +21 -0
  670. package/src/evm/opcodes/pc.ts +7 -0
  671. package/src/evm/opcodes/pop.ts +6 -0
  672. package/src/evm/opcodes/push.ts +8 -0
  673. package/src/evm/opcodes/return.ts +78 -0
  674. package/src/evm/opcodes/returndatacopy.ts +37 -0
  675. package/src/evm/opcodes/returndatasize.ts +21 -0
  676. package/src/evm/opcodes/revert.ts +64 -0
  677. package/src/evm/opcodes/sar.ts +33 -0
  678. package/src/evm/opcodes/selfdestruct.ts +26 -0
  679. package/src/evm/opcodes/sha3.ts +63 -0
  680. package/src/evm/opcodes/shl.ts +42 -0
  681. package/src/evm/opcodes/shr.ts +33 -0
  682. package/src/evm/opcodes/signextend.ts +25 -0
  683. package/src/evm/opcodes/sload.ts +190 -0
  684. package/src/evm/opcodes/sstore.ts +259 -0
  685. package/src/evm/opcodes/staticcall.ts +63 -0
  686. package/src/evm/opcodes/stop.ts +22 -0
  687. package/src/evm/opcodes/sub.ts +33 -0
  688. package/src/evm/opcodes/swap.ts +7 -0
  689. package/src/evm/opcodes/timestamp.ts +21 -0
  690. package/src/evm/opcodes/xor.ts +33 -0
  691. package/src/evm/opcodes.ts +207 -0
  692. package/src/evm/tx.class.ts +137 -0
  693. package/src/evm/utils/BigNumber.ts +9 -0
  694. package/src/evm/utils/hex.ts +37 -0
  695. package/src/evm/utils/opcodes.ts +213 -0
  696. package/src/evm/utils/stringify.ts +12 -0
  697. package/src/evm/utils/stringifyEvents.ts +37 -0
  698. package/src/evm/utils/stringifyFunctions.ts +41 -0
  699. package/src/evm/utils/stringifyInstructions.ts +38 -0
  700. package/src/evm/utils/stringifyMappings.ts +65 -0
  701. package/src/evm/utils/stringifyStructs.ts +16 -0
  702. package/src/evm/utils/stringifyVariables.ts +32 -0
  703. package/src/gen/ContractStorageReaderTemplate.ts +18 -0
  704. package/src/gen/ContractTemplate.ts +41 -7
  705. package/src/gen/Generator.ts +50 -19
  706. package/src/gen/GeneratorFromAbi.ts +239 -67
  707. package/src/gen/GeneratorStorageReader.ts +113 -0
  708. package/src/gen/utils/$gen.ts +11 -0
  709. package/src/gen/utils/Str.ts +40 -0
  710. package/src/handlers/TokenHandler.ts +1 -1
  711. package/src/hardhat/HardhatProvider.ts +207 -0
  712. package/src/indexer/BlocksTxIndexer.ts +36 -10
  713. package/src/indexer/handlers/BlocksWalker.ts +81 -62
  714. package/src/indexer/handlers/TxQueueLoader.ts +7 -7
  715. package/src/json/JsonObjectStore.ts +1 -1
  716. package/src/loggers/LoggerService.ts +9 -5
  717. package/src/loggers/TxLoggerService.ts +1 -1
  718. package/src/models/IToken.ts +9 -0
  719. package/src/models/TAccount.ts +30 -0
  720. package/src/models/TBufferLike.ts +2 -2
  721. package/src/models/TPlatform.ts +1 -1
  722. package/src/ns/NameService.ts +3 -0
  723. package/src/ns/utils/$ns.ts +3 -4
  724. package/src/safe/$gnosis.ts +20 -0
  725. package/src/safe/GnosisSafeFactory.ts +40 -0
  726. package/src/safe/GnosisSafeHandler.ts +432 -0
  727. package/src/safe/transport/FileServiceTransport.ts +115 -0
  728. package/src/safe/transport/GnosisServiceTransport.ts +83 -0
  729. package/src/safe/transport/ISafeServiceTransport.ts +26 -0
  730. package/src/safe/transport/InMemoryServiceTransport.ts +79 -0
  731. package/src/solidity/SlotsParser.ts +650 -0
  732. package/src/solidity/SlotsStorage.ts +177 -0
  733. package/src/solidity/storage/Accessor.spec.ts +45 -0
  734. package/src/solidity/storage/Accessor.ts +136 -0
  735. package/src/solidity/storage/SlotDynamicArray.ts +46 -0
  736. package/src/solidity/storage/SlotFixedArray.ts +31 -0
  737. package/src/solidity/storage/SlotsStorageHandler.ts +17 -0
  738. package/src/solidity/storage/SlotsStorageTransport.ts +152 -0
  739. package/src/solidity/storage/handlers/SlotDynamicArrayHandler.ts +52 -0
  740. package/src/solidity/storage/handlers/SlotFixedArrayHandler.ts +52 -0
  741. package/src/solidity/storage/handlers/SlotMappingHandler.ts +52 -0
  742. package/src/solidity/storage/handlers/SlotStringHandler.ts +130 -0
  743. package/src/solidity/storage/handlers/SlotStructHandler.ts +46 -0
  744. package/src/solidity/storage/handlers/SlotValueHandler.ts +36 -0
  745. package/src/solidity/utils/$str.ts +36 -0
  746. package/src/solidity/utils/$types.ts +16 -0
  747. package/src/structs/PackedRanges.ts +9 -3
  748. package/src/tokens/TokenDataProvider.ts +271 -0
  749. package/src/tokens/TokenExchanges/AmmBase/V2/AmmPairV2Service.ts +3 -1
  750. package/src/tokens/TokenExchanges/AmmV2ExchangeBase.ts +4 -3
  751. package/src/tokens/TokenExchanges/OneInchExchange.ts +1 -1
  752. package/src/tokens/TokenExchanges/PancakeswapExchange.ts +5 -10
  753. package/src/tokens/TokenExchanges/SushiswapPolygonExchange.ts +8 -5
  754. package/src/tokens/TokenExchanges/UniswapExchange.ts +6 -9
  755. package/src/tokens/TokenOracles/AmmPriceV2Oracle.ts +5 -5
  756. package/src/tokens/TokenOracles/CoingeckoOracle.ts +13 -0
  757. package/src/tokens/TokenOracles/TokenPriceStore.ts +1 -1
  758. package/src/tokens/TokenPriceService.ts +0 -1
  759. package/src/tokens/TokenProviders/ITokenProvider.ts +1 -1
  760. package/src/tokens/TokenProviders/TPChain.ts +20 -8
  761. package/src/tokens/TokenProviders/TPCoingecko.ts +121 -0
  762. package/src/tokens/TokenProviders/TPConfig.ts +53 -0
  763. package/src/tokens/TokenProviders/TPExplorer.ts +41 -0
  764. package/src/tokens/TokenService.ts +6 -3
  765. package/src/tokens/TokenSwapService.ts +1 -1
  766. package/src/tokens/TokenTransferService.ts +40 -24
  767. package/src/tokens/TokensService.ts +34 -179
  768. package/src/tokens/TokensServiceFactory.ts +13 -1
  769. package/src/tokens/defi/ISwapService.ts +1 -1
  770. package/src/tokens/defi/paraswap/Paraswap.ts +2 -1
  771. package/src/txs/ITxConfig.ts +1 -1
  772. package/src/txs/TxDataBuilder.ts +78 -34
  773. package/src/txs/TxLogger.ts +4 -4
  774. package/src/txs/TxWriter.ts +245 -48
  775. package/src/txs/conditional/GasWatcherTx.ts +0 -1
  776. package/src/txs/receipt/ITxLogItem.ts +8 -5
  777. package/src/txs/receipt/TxLogParser.ts +13 -2
  778. package/src/txs/receipt/TxLogsTransfer.ts +15 -15
  779. package/src/txs/receipt/TxTopicInMemoryProvider.ts +1 -1
  780. package/src/txs/receipt/TxTopicProvider.ts +7 -7
  781. package/src/txs/sig-transports/SigFileTransport.ts +52 -0
  782. package/src/utils/$abiParser.spec.ts +90 -0
  783. package/src/utils/$abiParser.ts +60 -25
  784. package/src/utils/$abiType.ts +195 -5
  785. package/src/utils/$abiUtils.ts +57 -6
  786. package/src/utils/$account.ts +30 -0
  787. package/src/utils/$address.ts +5 -0
  788. package/src/utils/$bigint.ts +56 -3
  789. package/src/utils/$block.ts +14 -1
  790. package/src/utils/$bloom.ts +43 -0
  791. package/src/utils/$buffer.ts +114 -0
  792. package/src/utils/$cli.ts +16 -0
  793. package/src/utils/$color.ts +211 -0
  794. package/src/utils/$config.ts +70 -7
  795. package/src/utils/$const.ts +1 -0
  796. package/src/utils/$contract.ts +21 -3
  797. package/src/utils/$crypto.ts +33 -0
  798. package/src/utils/$csv.ts +23 -7
  799. package/src/utils/$date.ts +194 -40
  800. package/src/utils/$gas.ts +17 -0
  801. package/src/utils/$hex.ts +72 -0
  802. package/src/utils/$is.ts +24 -22
  803. package/src/utils/$logger.ts +60 -2
  804. package/src/utils/$machine.ts +85 -0
  805. package/src/utils/$number.ts +24 -1
  806. package/src/utils/$path.ts +17 -1
  807. package/src/utils/$promise.ts +101 -0
  808. package/src/utils/$require.ts +15 -1
  809. package/src/utils/$secret.ts +27 -0
  810. package/src/utils/$sign.ts +115 -16
  811. package/src/utils/$signRaw.ts +50 -0
  812. package/src/utils/$signSerializer.ts +8 -6
  813. package/src/utils/$txData.ts +16 -0
  814. package/src/utils/$wallet.ts +1 -1
  815. package/test/Batch.spec.ts +89 -0
  816. package/test/BlockChainExplorer.spec.ts +33 -0
  817. package/test/ChainAccount.spec.ts +1 -1
  818. package/test/client.spec.ts +10 -11
  819. package/test/config.js +8 -0
  820. package/test/config.spec.ts +31 -0
  821. package/test/ecrecover.spec.ts +49 -0
  822. package/test/fixtures/contracts/Counter.sol +25 -0
  823. package/test/fixtures/contracts/Ecrecover.sol +33 -0
  824. package/test/fixtures/contracts/Foo.sol +32 -0
  825. package/test/fixtures/contracts/Foo.ts +78 -0
  826. package/test/fixtures/contracts/FreeToken.sol +263 -0
  827. package/test/fixtures/explorer/0xfbD2aa7efA2B46Ce3c58D7ab0D92C176c71499C0.html +2788 -0
  828. package/test/fixtures/gnosis/GnosisSafe.sol +422 -0
  829. package/test/fixtures/gnosis/GnosisSafeL2.sol +86 -0
  830. package/test/fixtures/gnosis/accessors/SimulateTxAccessor.sol +52 -0
  831. package/test/fixtures/gnosis/base/Executor.sol +27 -0
  832. package/test/fixtures/gnosis/base/FallbackManager.sol +53 -0
  833. package/test/fixtures/gnosis/base/GuardManager.sol +62 -0
  834. package/test/fixtures/gnosis/base/ModuleManager.sol +133 -0
  835. package/test/fixtures/gnosis/base/OwnerManager.sol +149 -0
  836. package/test/fixtures/gnosis/common/Enum.sol +8 -0
  837. package/test/fixtures/gnosis/common/EtherPaymentFallback.sol +13 -0
  838. package/test/fixtures/gnosis/common/SecuredTokenTransfer.sol +35 -0
  839. package/test/fixtures/gnosis/common/SelfAuthorized.sol +16 -0
  840. package/test/fixtures/gnosis/common/SignatureDecoder.sol +36 -0
  841. package/test/fixtures/gnosis/common/Singleton.sol +11 -0
  842. package/test/fixtures/gnosis/common/StorageAccessible.sol +47 -0
  843. package/test/fixtures/gnosis/external/GnosisSafeMath.sol +54 -0
  844. package/test/fixtures/gnosis/interfaces/ERC1155TokenReceiver.sol +49 -0
  845. package/test/fixtures/gnosis/interfaces/ERC721TokenReceiver.sol +24 -0
  846. package/test/fixtures/gnosis/interfaces/ERC777TokensRecipient.sol +13 -0
  847. package/test/fixtures/gnosis/interfaces/IERC165.sol +15 -0
  848. package/test/fixtures/gnosis/interfaces/ISignatureValidator.sol +20 -0
  849. package/test/fixtures/gnosis/interfaces/ViewStorageAccessible.sol +11 -0
  850. package/test/fixtures/gnosis/libraries/CreateCall.sol +30 -0
  851. package/test/fixtures/gnosis/libraries/GnosisSafeStorage.sol +21 -0
  852. package/test/fixtures/gnosis/libraries/MultiSend.sol +66 -0
  853. package/test/fixtures/gnosis/libraries/MultiSendCallOnly.sol +61 -0
  854. package/test/fixtures/gnosis/libraries/SignMessageLib.sol +34 -0
  855. package/test/fixtures/gnosis/proxies/GnosisSafeProxy.sol +44 -0
  856. package/test/fixtures/gnosis/proxies/GnosisSafeProxyFactory.sol +107 -0
  857. package/test/fixtures/gnosis/proxies/IProxyCreationCallback.sol +12 -0
  858. package/test/fixtures/scan/WETH.sol +1533 -0
  859. package/test/fixtures/slots/FooStorage.sol +8 -0
  860. package/test/fixtures/slots/FooStorageBase.sol +6 -0
  861. package/test/fixtures/slots/Vault.sol +85 -0
  862. package/test/generate/class.spec.ts +144 -6
  863. package/test/generate/evm.spec.ts +64 -0
  864. package/test/generate/openzeppelin.spec.ts +18 -0
  865. package/test/generate/slotreader.spec.ts +34 -0
  866. package/test/hardhat/TestNode.ts +37 -9
  867. package/test/hardhat/deploy.spec.ts +22 -0
  868. package/test/indexer/BlocksWalker.spec.ts +51 -0
  869. package/test/ns.spec.ts +4 -0
  870. package/test/receipt.spec.ts +1 -4
  871. package/test/safe/tx.act.ts +194 -0
  872. package/test/solidity/SlotsParser.spec.ts +186 -0
  873. package/test/solidity/SlotsReader.spec.ts +168 -0
  874. package/test/solidity/Storage.spec.ts +328 -0
  875. package/test/structs/PackedRanges.spec.ts +56 -0
  876. package/test/subscriptions.spec.ts +127 -0
  877. package/test/token.spec.ts +11 -0
  878. package/test/utils/abi-types.spec.ts +31 -0
  879. package/test/utils/abi-utils.spec.ts +23 -0
  880. package/test/utils/bigint.spec.ts +0 -1
  881. package/test/utils/date.spec.ts +3 -2
  882. package/test/utils/logbloom.spec.ts +17 -0
  883. package/test/utils/number.spec.ts +14 -3
  884. package/test/utils/sign.spec.ts +43 -7
  885. package/src/ChainAccounts.ts +0 -72
  886. package/src/structs/PackedRanges.spec.ts +0 -38
@@ -0,0 +1,990 @@
1
+ [
2
+ {
3
+ "inputs": [],
4
+ "name": "Empty",
5
+ "type": "error"
6
+ },
7
+ {
8
+ "anonymous": false,
9
+ "inputs": [
10
+ {
11
+ "indexed": false,
12
+ "internalType": "uint256",
13
+ "name": "proposalId",
14
+ "type": "uint256"
15
+ }
16
+ ],
17
+ "name": "ProposalCanceled",
18
+ "type": "event"
19
+ },
20
+ {
21
+ "anonymous": false,
22
+ "inputs": [
23
+ {
24
+ "indexed": false,
25
+ "internalType": "uint256",
26
+ "name": "proposalId",
27
+ "type": "uint256"
28
+ },
29
+ {
30
+ "indexed": false,
31
+ "internalType": "address",
32
+ "name": "proposer",
33
+ "type": "address"
34
+ },
35
+ {
36
+ "indexed": false,
37
+ "internalType": "address[]",
38
+ "name": "targets",
39
+ "type": "address[]"
40
+ },
41
+ {
42
+ "indexed": false,
43
+ "internalType": "uint256[]",
44
+ "name": "values",
45
+ "type": "uint256[]"
46
+ },
47
+ {
48
+ "indexed": false,
49
+ "internalType": "string[]",
50
+ "name": "signatures",
51
+ "type": "string[]"
52
+ },
53
+ {
54
+ "indexed": false,
55
+ "internalType": "bytes[]",
56
+ "name": "calldatas",
57
+ "type": "bytes[]"
58
+ },
59
+ {
60
+ "indexed": false,
61
+ "internalType": "uint256",
62
+ "name": "startBlock",
63
+ "type": "uint256"
64
+ },
65
+ {
66
+ "indexed": false,
67
+ "internalType": "uint256",
68
+ "name": "endBlock",
69
+ "type": "uint256"
70
+ },
71
+ {
72
+ "indexed": false,
73
+ "internalType": "string",
74
+ "name": "description",
75
+ "type": "string"
76
+ }
77
+ ],
78
+ "name": "ProposalCreated",
79
+ "type": "event"
80
+ },
81
+ {
82
+ "anonymous": false,
83
+ "inputs": [
84
+ {
85
+ "indexed": false,
86
+ "internalType": "uint256",
87
+ "name": "proposalId",
88
+ "type": "uint256"
89
+ }
90
+ ],
91
+ "name": "ProposalExecuted",
92
+ "type": "event"
93
+ },
94
+ {
95
+ "anonymous": false,
96
+ "inputs": [
97
+ {
98
+ "indexed": false,
99
+ "internalType": "uint256",
100
+ "name": "proposalId",
101
+ "type": "uint256"
102
+ },
103
+ {
104
+ "indexed": false,
105
+ "internalType": "uint256",
106
+ "name": "eta",
107
+ "type": "uint256"
108
+ }
109
+ ],
110
+ "name": "ProposalQueued",
111
+ "type": "event"
112
+ },
113
+ {
114
+ "anonymous": false,
115
+ "inputs": [
116
+ {
117
+ "indexed": false,
118
+ "internalType": "address",
119
+ "name": "oldTimelock",
120
+ "type": "address"
121
+ },
122
+ {
123
+ "indexed": false,
124
+ "internalType": "address",
125
+ "name": "newTimelock",
126
+ "type": "address"
127
+ }
128
+ ],
129
+ "name": "TimelockChange",
130
+ "type": "event"
131
+ },
132
+ {
133
+ "anonymous": false,
134
+ "inputs": [
135
+ {
136
+ "indexed": true,
137
+ "internalType": "address",
138
+ "name": "voter",
139
+ "type": "address"
140
+ },
141
+ {
142
+ "indexed": false,
143
+ "internalType": "uint256",
144
+ "name": "proposalId",
145
+ "type": "uint256"
146
+ },
147
+ {
148
+ "indexed": false,
149
+ "internalType": "uint8",
150
+ "name": "support",
151
+ "type": "uint8"
152
+ },
153
+ {
154
+ "indexed": false,
155
+ "internalType": "uint256",
156
+ "name": "weight",
157
+ "type": "uint256"
158
+ },
159
+ {
160
+ "indexed": false,
161
+ "internalType": "string",
162
+ "name": "reason",
163
+ "type": "string"
164
+ }
165
+ ],
166
+ "name": "VoteCast",
167
+ "type": "event"
168
+ },
169
+ {
170
+ "anonymous": false,
171
+ "inputs": [
172
+ {
173
+ "indexed": true,
174
+ "internalType": "address",
175
+ "name": "voter",
176
+ "type": "address"
177
+ },
178
+ {
179
+ "indexed": false,
180
+ "internalType": "uint256",
181
+ "name": "proposalId",
182
+ "type": "uint256"
183
+ },
184
+ {
185
+ "indexed": false,
186
+ "internalType": "uint8",
187
+ "name": "support",
188
+ "type": "uint8"
189
+ },
190
+ {
191
+ "indexed": false,
192
+ "internalType": "uint256",
193
+ "name": "weight",
194
+ "type": "uint256"
195
+ },
196
+ {
197
+ "indexed": false,
198
+ "internalType": "string",
199
+ "name": "reason",
200
+ "type": "string"
201
+ },
202
+ {
203
+ "indexed": false,
204
+ "internalType": "bytes",
205
+ "name": "params",
206
+ "type": "bytes"
207
+ }
208
+ ],
209
+ "name": "VoteCastWithParams",
210
+ "type": "event"
211
+ },
212
+ {
213
+ "inputs": [],
214
+ "name": "BALLOT_TYPEHASH",
215
+ "outputs": [
216
+ {
217
+ "internalType": "bytes32",
218
+ "name": "",
219
+ "type": "bytes32"
220
+ }
221
+ ],
222
+ "stateMutability": "view",
223
+ "type": "function"
224
+ },
225
+ {
226
+ "inputs": [],
227
+ "name": "COUNTING_MODE",
228
+ "outputs": [
229
+ {
230
+ "internalType": "string",
231
+ "name": "",
232
+ "type": "string"
233
+ }
234
+ ],
235
+ "stateMutability": "pure",
236
+ "type": "function"
237
+ },
238
+ {
239
+ "inputs": [],
240
+ "name": "EXTENDED_BALLOT_TYPEHASH",
241
+ "outputs": [
242
+ {
243
+ "internalType": "bytes32",
244
+ "name": "",
245
+ "type": "bytes32"
246
+ }
247
+ ],
248
+ "stateMutability": "view",
249
+ "type": "function"
250
+ },
251
+ {
252
+ "inputs": [],
253
+ "name": "__acceptAdmin",
254
+ "outputs": [],
255
+ "stateMutability": "nonpayable",
256
+ "type": "function"
257
+ },
258
+ {
259
+ "inputs": [
260
+ {
261
+ "internalType": "uint256",
262
+ "name": "proposalId",
263
+ "type": "uint256"
264
+ },
265
+ {
266
+ "internalType": "uint8",
267
+ "name": "support",
268
+ "type": "uint8"
269
+ }
270
+ ],
271
+ "name": "castVote",
272
+ "outputs": [
273
+ {
274
+ "internalType": "uint256",
275
+ "name": "",
276
+ "type": "uint256"
277
+ }
278
+ ],
279
+ "stateMutability": "nonpayable",
280
+ "type": "function"
281
+ },
282
+ {
283
+ "inputs": [
284
+ {
285
+ "internalType": "uint256",
286
+ "name": "proposalId",
287
+ "type": "uint256"
288
+ },
289
+ {
290
+ "internalType": "uint8",
291
+ "name": "support",
292
+ "type": "uint8"
293
+ },
294
+ {
295
+ "internalType": "uint8",
296
+ "name": "v",
297
+ "type": "uint8"
298
+ },
299
+ {
300
+ "internalType": "bytes32",
301
+ "name": "r",
302
+ "type": "bytes32"
303
+ },
304
+ {
305
+ "internalType": "bytes32",
306
+ "name": "s",
307
+ "type": "bytes32"
308
+ }
309
+ ],
310
+ "name": "castVoteBySig",
311
+ "outputs": [
312
+ {
313
+ "internalType": "uint256",
314
+ "name": "",
315
+ "type": "uint256"
316
+ }
317
+ ],
318
+ "stateMutability": "nonpayable",
319
+ "type": "function"
320
+ },
321
+ {
322
+ "inputs": [
323
+ {
324
+ "internalType": "uint256",
325
+ "name": "proposalId",
326
+ "type": "uint256"
327
+ },
328
+ {
329
+ "internalType": "uint8",
330
+ "name": "support",
331
+ "type": "uint8"
332
+ },
333
+ {
334
+ "internalType": "string",
335
+ "name": "reason",
336
+ "type": "string"
337
+ }
338
+ ],
339
+ "name": "castVoteWithReason",
340
+ "outputs": [
341
+ {
342
+ "internalType": "uint256",
343
+ "name": "",
344
+ "type": "uint256"
345
+ }
346
+ ],
347
+ "stateMutability": "nonpayable",
348
+ "type": "function"
349
+ },
350
+ {
351
+ "inputs": [
352
+ {
353
+ "internalType": "uint256",
354
+ "name": "proposalId",
355
+ "type": "uint256"
356
+ },
357
+ {
358
+ "internalType": "uint8",
359
+ "name": "support",
360
+ "type": "uint8"
361
+ },
362
+ {
363
+ "internalType": "string",
364
+ "name": "reason",
365
+ "type": "string"
366
+ },
367
+ {
368
+ "internalType": "bytes",
369
+ "name": "params",
370
+ "type": "bytes"
371
+ }
372
+ ],
373
+ "name": "castVoteWithReasonAndParams",
374
+ "outputs": [
375
+ {
376
+ "internalType": "uint256",
377
+ "name": "",
378
+ "type": "uint256"
379
+ }
380
+ ],
381
+ "stateMutability": "nonpayable",
382
+ "type": "function"
383
+ },
384
+ {
385
+ "inputs": [
386
+ {
387
+ "internalType": "uint256",
388
+ "name": "proposalId",
389
+ "type": "uint256"
390
+ },
391
+ {
392
+ "internalType": "uint8",
393
+ "name": "support",
394
+ "type": "uint8"
395
+ },
396
+ {
397
+ "internalType": "string",
398
+ "name": "reason",
399
+ "type": "string"
400
+ },
401
+ {
402
+ "internalType": "bytes",
403
+ "name": "params",
404
+ "type": "bytes"
405
+ },
406
+ {
407
+ "internalType": "uint8",
408
+ "name": "v",
409
+ "type": "uint8"
410
+ },
411
+ {
412
+ "internalType": "bytes32",
413
+ "name": "r",
414
+ "type": "bytes32"
415
+ },
416
+ {
417
+ "internalType": "bytes32",
418
+ "name": "s",
419
+ "type": "bytes32"
420
+ }
421
+ ],
422
+ "name": "castVoteWithReasonAndParamsBySig",
423
+ "outputs": [
424
+ {
425
+ "internalType": "uint256",
426
+ "name": "",
427
+ "type": "uint256"
428
+ }
429
+ ],
430
+ "stateMutability": "nonpayable",
431
+ "type": "function"
432
+ },
433
+ {
434
+ "inputs": [
435
+ {
436
+ "internalType": "address[]",
437
+ "name": "targets",
438
+ "type": "address[]"
439
+ },
440
+ {
441
+ "internalType": "uint256[]",
442
+ "name": "values",
443
+ "type": "uint256[]"
444
+ },
445
+ {
446
+ "internalType": "bytes[]",
447
+ "name": "calldatas",
448
+ "type": "bytes[]"
449
+ },
450
+ {
451
+ "internalType": "bytes32",
452
+ "name": "descriptionHash",
453
+ "type": "bytes32"
454
+ }
455
+ ],
456
+ "name": "execute",
457
+ "outputs": [
458
+ {
459
+ "internalType": "uint256",
460
+ "name": "",
461
+ "type": "uint256"
462
+ }
463
+ ],
464
+ "stateMutability": "payable",
465
+ "type": "function"
466
+ },
467
+ {
468
+ "inputs": [
469
+ {
470
+ "internalType": "address",
471
+ "name": "account",
472
+ "type": "address"
473
+ },
474
+ {
475
+ "internalType": "uint256",
476
+ "name": "blockNumber",
477
+ "type": "uint256"
478
+ }
479
+ ],
480
+ "name": "getVotes",
481
+ "outputs": [
482
+ {
483
+ "internalType": "uint256",
484
+ "name": "",
485
+ "type": "uint256"
486
+ }
487
+ ],
488
+ "stateMutability": "view",
489
+ "type": "function"
490
+ },
491
+ {
492
+ "inputs": [
493
+ {
494
+ "internalType": "address",
495
+ "name": "account",
496
+ "type": "address"
497
+ },
498
+ {
499
+ "internalType": "uint256",
500
+ "name": "blockNumber",
501
+ "type": "uint256"
502
+ },
503
+ {
504
+ "internalType": "bytes",
505
+ "name": "params",
506
+ "type": "bytes"
507
+ }
508
+ ],
509
+ "name": "getVotesWithParams",
510
+ "outputs": [
511
+ {
512
+ "internalType": "uint256",
513
+ "name": "",
514
+ "type": "uint256"
515
+ }
516
+ ],
517
+ "stateMutability": "view",
518
+ "type": "function"
519
+ },
520
+ {
521
+ "inputs": [
522
+ {
523
+ "internalType": "uint256",
524
+ "name": "proposalId",
525
+ "type": "uint256"
526
+ },
527
+ {
528
+ "internalType": "address",
529
+ "name": "account",
530
+ "type": "address"
531
+ }
532
+ ],
533
+ "name": "hasVoted",
534
+ "outputs": [
535
+ {
536
+ "internalType": "bool",
537
+ "name": "",
538
+ "type": "bool"
539
+ }
540
+ ],
541
+ "stateMutability": "view",
542
+ "type": "function"
543
+ },
544
+ {
545
+ "inputs": [
546
+ {
547
+ "internalType": "address[]",
548
+ "name": "targets",
549
+ "type": "address[]"
550
+ },
551
+ {
552
+ "internalType": "uint256[]",
553
+ "name": "values",
554
+ "type": "uint256[]"
555
+ },
556
+ {
557
+ "internalType": "bytes[]",
558
+ "name": "calldatas",
559
+ "type": "bytes[]"
560
+ },
561
+ {
562
+ "internalType": "bytes32",
563
+ "name": "descriptionHash",
564
+ "type": "bytes32"
565
+ }
566
+ ],
567
+ "name": "hashProposal",
568
+ "outputs": [
569
+ {
570
+ "internalType": "uint256",
571
+ "name": "",
572
+ "type": "uint256"
573
+ }
574
+ ],
575
+ "stateMutability": "pure",
576
+ "type": "function"
577
+ },
578
+ {
579
+ "inputs": [],
580
+ "name": "name",
581
+ "outputs": [
582
+ {
583
+ "internalType": "string",
584
+ "name": "",
585
+ "type": "string"
586
+ }
587
+ ],
588
+ "stateMutability": "view",
589
+ "type": "function"
590
+ },
591
+ {
592
+ "inputs": [
593
+ {
594
+ "internalType": "address",
595
+ "name": "",
596
+ "type": "address"
597
+ },
598
+ {
599
+ "internalType": "address",
600
+ "name": "",
601
+ "type": "address"
602
+ },
603
+ {
604
+ "internalType": "uint256[]",
605
+ "name": "",
606
+ "type": "uint256[]"
607
+ },
608
+ {
609
+ "internalType": "uint256[]",
610
+ "name": "",
611
+ "type": "uint256[]"
612
+ },
613
+ {
614
+ "internalType": "bytes",
615
+ "name": "",
616
+ "type": "bytes"
617
+ }
618
+ ],
619
+ "name": "onERC1155BatchReceived",
620
+ "outputs": [
621
+ {
622
+ "internalType": "bytes4",
623
+ "name": "",
624
+ "type": "bytes4"
625
+ }
626
+ ],
627
+ "stateMutability": "nonpayable",
628
+ "type": "function"
629
+ },
630
+ {
631
+ "inputs": [
632
+ {
633
+ "internalType": "address",
634
+ "name": "",
635
+ "type": "address"
636
+ },
637
+ {
638
+ "internalType": "address",
639
+ "name": "",
640
+ "type": "address"
641
+ },
642
+ {
643
+ "internalType": "uint256",
644
+ "name": "",
645
+ "type": "uint256"
646
+ },
647
+ {
648
+ "internalType": "uint256",
649
+ "name": "",
650
+ "type": "uint256"
651
+ },
652
+ {
653
+ "internalType": "bytes",
654
+ "name": "",
655
+ "type": "bytes"
656
+ }
657
+ ],
658
+ "name": "onERC1155Received",
659
+ "outputs": [
660
+ {
661
+ "internalType": "bytes4",
662
+ "name": "",
663
+ "type": "bytes4"
664
+ }
665
+ ],
666
+ "stateMutability": "nonpayable",
667
+ "type": "function"
668
+ },
669
+ {
670
+ "inputs": [
671
+ {
672
+ "internalType": "address",
673
+ "name": "",
674
+ "type": "address"
675
+ },
676
+ {
677
+ "internalType": "address",
678
+ "name": "",
679
+ "type": "address"
680
+ },
681
+ {
682
+ "internalType": "uint256",
683
+ "name": "",
684
+ "type": "uint256"
685
+ },
686
+ {
687
+ "internalType": "bytes",
688
+ "name": "",
689
+ "type": "bytes"
690
+ }
691
+ ],
692
+ "name": "onERC721Received",
693
+ "outputs": [
694
+ {
695
+ "internalType": "bytes4",
696
+ "name": "",
697
+ "type": "bytes4"
698
+ }
699
+ ],
700
+ "stateMutability": "nonpayable",
701
+ "type": "function"
702
+ },
703
+ {
704
+ "inputs": [
705
+ {
706
+ "internalType": "uint256",
707
+ "name": "proposalId",
708
+ "type": "uint256"
709
+ }
710
+ ],
711
+ "name": "proposalDeadline",
712
+ "outputs": [
713
+ {
714
+ "internalType": "uint256",
715
+ "name": "",
716
+ "type": "uint256"
717
+ }
718
+ ],
719
+ "stateMutability": "view",
720
+ "type": "function"
721
+ },
722
+ {
723
+ "inputs": [
724
+ {
725
+ "internalType": "uint256",
726
+ "name": "proposalId",
727
+ "type": "uint256"
728
+ }
729
+ ],
730
+ "name": "proposalEta",
731
+ "outputs": [
732
+ {
733
+ "internalType": "uint256",
734
+ "name": "",
735
+ "type": "uint256"
736
+ }
737
+ ],
738
+ "stateMutability": "view",
739
+ "type": "function"
740
+ },
741
+ {
742
+ "inputs": [
743
+ {
744
+ "internalType": "uint256",
745
+ "name": "proposalId",
746
+ "type": "uint256"
747
+ }
748
+ ],
749
+ "name": "proposalSnapshot",
750
+ "outputs": [
751
+ {
752
+ "internalType": "uint256",
753
+ "name": "",
754
+ "type": "uint256"
755
+ }
756
+ ],
757
+ "stateMutability": "view",
758
+ "type": "function"
759
+ },
760
+ {
761
+ "inputs": [],
762
+ "name": "proposalThreshold",
763
+ "outputs": [
764
+ {
765
+ "internalType": "uint256",
766
+ "name": "",
767
+ "type": "uint256"
768
+ }
769
+ ],
770
+ "stateMutability": "view",
771
+ "type": "function"
772
+ },
773
+ {
774
+ "inputs": [
775
+ {
776
+ "internalType": "address[]",
777
+ "name": "targets",
778
+ "type": "address[]"
779
+ },
780
+ {
781
+ "internalType": "uint256[]",
782
+ "name": "values",
783
+ "type": "uint256[]"
784
+ },
785
+ {
786
+ "internalType": "bytes[]",
787
+ "name": "calldatas",
788
+ "type": "bytes[]"
789
+ },
790
+ {
791
+ "internalType": "string",
792
+ "name": "description",
793
+ "type": "string"
794
+ }
795
+ ],
796
+ "name": "propose",
797
+ "outputs": [
798
+ {
799
+ "internalType": "uint256",
800
+ "name": "",
801
+ "type": "uint256"
802
+ }
803
+ ],
804
+ "stateMutability": "nonpayable",
805
+ "type": "function"
806
+ },
807
+ {
808
+ "inputs": [
809
+ {
810
+ "internalType": "address[]",
811
+ "name": "targets",
812
+ "type": "address[]"
813
+ },
814
+ {
815
+ "internalType": "uint256[]",
816
+ "name": "values",
817
+ "type": "uint256[]"
818
+ },
819
+ {
820
+ "internalType": "bytes[]",
821
+ "name": "calldatas",
822
+ "type": "bytes[]"
823
+ },
824
+ {
825
+ "internalType": "bytes32",
826
+ "name": "descriptionHash",
827
+ "type": "bytes32"
828
+ }
829
+ ],
830
+ "name": "queue",
831
+ "outputs": [
832
+ {
833
+ "internalType": "uint256",
834
+ "name": "",
835
+ "type": "uint256"
836
+ }
837
+ ],
838
+ "stateMutability": "nonpayable",
839
+ "type": "function"
840
+ },
841
+ {
842
+ "inputs": [
843
+ {
844
+ "internalType": "uint256",
845
+ "name": "blockNumber",
846
+ "type": "uint256"
847
+ }
848
+ ],
849
+ "name": "quorum",
850
+ "outputs": [
851
+ {
852
+ "internalType": "uint256",
853
+ "name": "",
854
+ "type": "uint256"
855
+ }
856
+ ],
857
+ "stateMutability": "view",
858
+ "type": "function"
859
+ },
860
+ {
861
+ "inputs": [
862
+ {
863
+ "internalType": "address",
864
+ "name": "target",
865
+ "type": "address"
866
+ },
867
+ {
868
+ "internalType": "uint256",
869
+ "name": "value",
870
+ "type": "uint256"
871
+ },
872
+ {
873
+ "internalType": "bytes",
874
+ "name": "data",
875
+ "type": "bytes"
876
+ }
877
+ ],
878
+ "name": "relay",
879
+ "outputs": [],
880
+ "stateMutability": "nonpayable",
881
+ "type": "function"
882
+ },
883
+ {
884
+ "inputs": [
885
+ {
886
+ "internalType": "uint256",
887
+ "name": "proposalId",
888
+ "type": "uint256"
889
+ }
890
+ ],
891
+ "name": "state",
892
+ "outputs": [
893
+ {
894
+ "internalType": "enum IGovernor.ProposalState",
895
+ "name": "",
896
+ "type": "uint8"
897
+ }
898
+ ],
899
+ "stateMutability": "view",
900
+ "type": "function"
901
+ },
902
+ {
903
+ "inputs": [
904
+ {
905
+ "internalType": "bytes4",
906
+ "name": "interfaceId",
907
+ "type": "bytes4"
908
+ }
909
+ ],
910
+ "name": "supportsInterface",
911
+ "outputs": [
912
+ {
913
+ "internalType": "bool",
914
+ "name": "",
915
+ "type": "bool"
916
+ }
917
+ ],
918
+ "stateMutability": "view",
919
+ "type": "function"
920
+ },
921
+ {
922
+ "inputs": [],
923
+ "name": "timelock",
924
+ "outputs": [
925
+ {
926
+ "internalType": "address",
927
+ "name": "",
928
+ "type": "address"
929
+ }
930
+ ],
931
+ "stateMutability": "view",
932
+ "type": "function"
933
+ },
934
+ {
935
+ "inputs": [
936
+ {
937
+ "internalType": "contract ICompoundTimelock",
938
+ "name": "newTimelock",
939
+ "type": "address"
940
+ }
941
+ ],
942
+ "name": "updateTimelock",
943
+ "outputs": [],
944
+ "stateMutability": "nonpayable",
945
+ "type": "function"
946
+ },
947
+ {
948
+ "inputs": [],
949
+ "name": "version",
950
+ "outputs": [
951
+ {
952
+ "internalType": "string",
953
+ "name": "",
954
+ "type": "string"
955
+ }
956
+ ],
957
+ "stateMutability": "view",
958
+ "type": "function"
959
+ },
960
+ {
961
+ "inputs": [],
962
+ "name": "votingDelay",
963
+ "outputs": [
964
+ {
965
+ "internalType": "uint256",
966
+ "name": "",
967
+ "type": "uint256"
968
+ }
969
+ ],
970
+ "stateMutability": "view",
971
+ "type": "function"
972
+ },
973
+ {
974
+ "inputs": [],
975
+ "name": "votingPeriod",
976
+ "outputs": [
977
+ {
978
+ "internalType": "uint256",
979
+ "name": "",
980
+ "type": "uint256"
981
+ }
982
+ ],
983
+ "stateMutability": "view",
984
+ "type": "function"
985
+ },
986
+ {
987
+ "stateMutability": "payable",
988
+ "type": "receive"
989
+ }
990
+ ]