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,1181 @@
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": true,
118
+ "internalType": "address",
119
+ "name": "voter",
120
+ "type": "address"
121
+ },
122
+ {
123
+ "indexed": false,
124
+ "internalType": "uint256",
125
+ "name": "proposalId",
126
+ "type": "uint256"
127
+ },
128
+ {
129
+ "indexed": false,
130
+ "internalType": "uint8",
131
+ "name": "support",
132
+ "type": "uint8"
133
+ },
134
+ {
135
+ "indexed": false,
136
+ "internalType": "uint256",
137
+ "name": "weight",
138
+ "type": "uint256"
139
+ },
140
+ {
141
+ "indexed": false,
142
+ "internalType": "string",
143
+ "name": "reason",
144
+ "type": "string"
145
+ }
146
+ ],
147
+ "name": "VoteCast",
148
+ "type": "event"
149
+ },
150
+ {
151
+ "anonymous": false,
152
+ "inputs": [
153
+ {
154
+ "indexed": true,
155
+ "internalType": "address",
156
+ "name": "voter",
157
+ "type": "address"
158
+ },
159
+ {
160
+ "indexed": false,
161
+ "internalType": "uint256",
162
+ "name": "proposalId",
163
+ "type": "uint256"
164
+ },
165
+ {
166
+ "indexed": false,
167
+ "internalType": "uint8",
168
+ "name": "support",
169
+ "type": "uint8"
170
+ },
171
+ {
172
+ "indexed": false,
173
+ "internalType": "uint256",
174
+ "name": "weight",
175
+ "type": "uint256"
176
+ },
177
+ {
178
+ "indexed": false,
179
+ "internalType": "string",
180
+ "name": "reason",
181
+ "type": "string"
182
+ },
183
+ {
184
+ "indexed": false,
185
+ "internalType": "bytes",
186
+ "name": "params",
187
+ "type": "bytes"
188
+ }
189
+ ],
190
+ "name": "VoteCastWithParams",
191
+ "type": "event"
192
+ },
193
+ {
194
+ "inputs": [],
195
+ "name": "BALLOT_TYPEHASH",
196
+ "outputs": [
197
+ {
198
+ "internalType": "bytes32",
199
+ "name": "",
200
+ "type": "bytes32"
201
+ }
202
+ ],
203
+ "stateMutability": "view",
204
+ "type": "function"
205
+ },
206
+ {
207
+ "inputs": [],
208
+ "name": "COUNTING_MODE",
209
+ "outputs": [
210
+ {
211
+ "internalType": "string",
212
+ "name": "",
213
+ "type": "string"
214
+ }
215
+ ],
216
+ "stateMutability": "pure",
217
+ "type": "function"
218
+ },
219
+ {
220
+ "inputs": [],
221
+ "name": "EXTENDED_BALLOT_TYPEHASH",
222
+ "outputs": [
223
+ {
224
+ "internalType": "bytes32",
225
+ "name": "",
226
+ "type": "bytes32"
227
+ }
228
+ ],
229
+ "stateMutability": "view",
230
+ "type": "function"
231
+ },
232
+ {
233
+ "inputs": [
234
+ {
235
+ "internalType": "uint256",
236
+ "name": "proposalId",
237
+ "type": "uint256"
238
+ }
239
+ ],
240
+ "name": "cancel",
241
+ "outputs": [],
242
+ "stateMutability": "nonpayable",
243
+ "type": "function"
244
+ },
245
+ {
246
+ "inputs": [
247
+ {
248
+ "internalType": "uint256",
249
+ "name": "proposalId",
250
+ "type": "uint256"
251
+ },
252
+ {
253
+ "internalType": "uint8",
254
+ "name": "support",
255
+ "type": "uint8"
256
+ }
257
+ ],
258
+ "name": "castVote",
259
+ "outputs": [
260
+ {
261
+ "internalType": "uint256",
262
+ "name": "",
263
+ "type": "uint256"
264
+ }
265
+ ],
266
+ "stateMutability": "nonpayable",
267
+ "type": "function"
268
+ },
269
+ {
270
+ "inputs": [
271
+ {
272
+ "internalType": "uint256",
273
+ "name": "proposalId",
274
+ "type": "uint256"
275
+ },
276
+ {
277
+ "internalType": "uint8",
278
+ "name": "support",
279
+ "type": "uint8"
280
+ },
281
+ {
282
+ "internalType": "uint8",
283
+ "name": "v",
284
+ "type": "uint8"
285
+ },
286
+ {
287
+ "internalType": "bytes32",
288
+ "name": "r",
289
+ "type": "bytes32"
290
+ },
291
+ {
292
+ "internalType": "bytes32",
293
+ "name": "s",
294
+ "type": "bytes32"
295
+ }
296
+ ],
297
+ "name": "castVoteBySig",
298
+ "outputs": [
299
+ {
300
+ "internalType": "uint256",
301
+ "name": "",
302
+ "type": "uint256"
303
+ }
304
+ ],
305
+ "stateMutability": "nonpayable",
306
+ "type": "function"
307
+ },
308
+ {
309
+ "inputs": [
310
+ {
311
+ "internalType": "uint256",
312
+ "name": "proposalId",
313
+ "type": "uint256"
314
+ },
315
+ {
316
+ "internalType": "uint8",
317
+ "name": "support",
318
+ "type": "uint8"
319
+ },
320
+ {
321
+ "internalType": "string",
322
+ "name": "reason",
323
+ "type": "string"
324
+ }
325
+ ],
326
+ "name": "castVoteWithReason",
327
+ "outputs": [
328
+ {
329
+ "internalType": "uint256",
330
+ "name": "",
331
+ "type": "uint256"
332
+ }
333
+ ],
334
+ "stateMutability": "nonpayable",
335
+ "type": "function"
336
+ },
337
+ {
338
+ "inputs": [
339
+ {
340
+ "internalType": "uint256",
341
+ "name": "proposalId",
342
+ "type": "uint256"
343
+ },
344
+ {
345
+ "internalType": "uint8",
346
+ "name": "support",
347
+ "type": "uint8"
348
+ },
349
+ {
350
+ "internalType": "string",
351
+ "name": "reason",
352
+ "type": "string"
353
+ },
354
+ {
355
+ "internalType": "bytes",
356
+ "name": "params",
357
+ "type": "bytes"
358
+ }
359
+ ],
360
+ "name": "castVoteWithReasonAndParams",
361
+ "outputs": [
362
+ {
363
+ "internalType": "uint256",
364
+ "name": "",
365
+ "type": "uint256"
366
+ }
367
+ ],
368
+ "stateMutability": "nonpayable",
369
+ "type": "function"
370
+ },
371
+ {
372
+ "inputs": [
373
+ {
374
+ "internalType": "uint256",
375
+ "name": "proposalId",
376
+ "type": "uint256"
377
+ },
378
+ {
379
+ "internalType": "uint8",
380
+ "name": "support",
381
+ "type": "uint8"
382
+ },
383
+ {
384
+ "internalType": "string",
385
+ "name": "reason",
386
+ "type": "string"
387
+ },
388
+ {
389
+ "internalType": "bytes",
390
+ "name": "params",
391
+ "type": "bytes"
392
+ },
393
+ {
394
+ "internalType": "uint8",
395
+ "name": "v",
396
+ "type": "uint8"
397
+ },
398
+ {
399
+ "internalType": "bytes32",
400
+ "name": "r",
401
+ "type": "bytes32"
402
+ },
403
+ {
404
+ "internalType": "bytes32",
405
+ "name": "s",
406
+ "type": "bytes32"
407
+ }
408
+ ],
409
+ "name": "castVoteWithReasonAndParamsBySig",
410
+ "outputs": [
411
+ {
412
+ "internalType": "uint256",
413
+ "name": "",
414
+ "type": "uint256"
415
+ }
416
+ ],
417
+ "stateMutability": "nonpayable",
418
+ "type": "function"
419
+ },
420
+ {
421
+ "inputs": [
422
+ {
423
+ "internalType": "address[]",
424
+ "name": "targets",
425
+ "type": "address[]"
426
+ },
427
+ {
428
+ "internalType": "uint256[]",
429
+ "name": "values",
430
+ "type": "uint256[]"
431
+ },
432
+ {
433
+ "internalType": "bytes[]",
434
+ "name": "calldatas",
435
+ "type": "bytes[]"
436
+ },
437
+ {
438
+ "internalType": "bytes32",
439
+ "name": "descriptionHash",
440
+ "type": "bytes32"
441
+ }
442
+ ],
443
+ "name": "execute",
444
+ "outputs": [
445
+ {
446
+ "internalType": "uint256",
447
+ "name": "",
448
+ "type": "uint256"
449
+ }
450
+ ],
451
+ "stateMutability": "payable",
452
+ "type": "function"
453
+ },
454
+ {
455
+ "inputs": [
456
+ {
457
+ "internalType": "uint256",
458
+ "name": "proposalId",
459
+ "type": "uint256"
460
+ }
461
+ ],
462
+ "name": "execute",
463
+ "outputs": [],
464
+ "stateMutability": "payable",
465
+ "type": "function"
466
+ },
467
+ {
468
+ "inputs": [
469
+ {
470
+ "internalType": "uint256",
471
+ "name": "proposalId",
472
+ "type": "uint256"
473
+ }
474
+ ],
475
+ "name": "getActions",
476
+ "outputs": [
477
+ {
478
+ "internalType": "address[]",
479
+ "name": "targets",
480
+ "type": "address[]"
481
+ },
482
+ {
483
+ "internalType": "uint256[]",
484
+ "name": "values",
485
+ "type": "uint256[]"
486
+ },
487
+ {
488
+ "internalType": "string[]",
489
+ "name": "signatures",
490
+ "type": "string[]"
491
+ },
492
+ {
493
+ "internalType": "bytes[]",
494
+ "name": "calldatas",
495
+ "type": "bytes[]"
496
+ }
497
+ ],
498
+ "stateMutability": "view",
499
+ "type": "function"
500
+ },
501
+ {
502
+ "inputs": [
503
+ {
504
+ "internalType": "uint256",
505
+ "name": "proposalId",
506
+ "type": "uint256"
507
+ },
508
+ {
509
+ "internalType": "address",
510
+ "name": "voter",
511
+ "type": "address"
512
+ }
513
+ ],
514
+ "name": "getReceipt",
515
+ "outputs": [
516
+ {
517
+ "components": [
518
+ {
519
+ "internalType": "bool",
520
+ "name": "hasVoted",
521
+ "type": "bool"
522
+ },
523
+ {
524
+ "internalType": "uint8",
525
+ "name": "support",
526
+ "type": "uint8"
527
+ },
528
+ {
529
+ "internalType": "uint96",
530
+ "name": "votes",
531
+ "type": "uint96"
532
+ }
533
+ ],
534
+ "internalType": "struct IGovernorCompatibilityBravo.Receipt",
535
+ "name": "",
536
+ "type": "tuple"
537
+ }
538
+ ],
539
+ "stateMutability": "view",
540
+ "type": "function"
541
+ },
542
+ {
543
+ "inputs": [
544
+ {
545
+ "internalType": "address",
546
+ "name": "account",
547
+ "type": "address"
548
+ },
549
+ {
550
+ "internalType": "uint256",
551
+ "name": "blockNumber",
552
+ "type": "uint256"
553
+ }
554
+ ],
555
+ "name": "getVotes",
556
+ "outputs": [
557
+ {
558
+ "internalType": "uint256",
559
+ "name": "",
560
+ "type": "uint256"
561
+ }
562
+ ],
563
+ "stateMutability": "view",
564
+ "type": "function"
565
+ },
566
+ {
567
+ "inputs": [
568
+ {
569
+ "internalType": "address",
570
+ "name": "account",
571
+ "type": "address"
572
+ },
573
+ {
574
+ "internalType": "uint256",
575
+ "name": "blockNumber",
576
+ "type": "uint256"
577
+ },
578
+ {
579
+ "internalType": "bytes",
580
+ "name": "params",
581
+ "type": "bytes"
582
+ }
583
+ ],
584
+ "name": "getVotesWithParams",
585
+ "outputs": [
586
+ {
587
+ "internalType": "uint256",
588
+ "name": "",
589
+ "type": "uint256"
590
+ }
591
+ ],
592
+ "stateMutability": "view",
593
+ "type": "function"
594
+ },
595
+ {
596
+ "inputs": [
597
+ {
598
+ "internalType": "uint256",
599
+ "name": "proposalId",
600
+ "type": "uint256"
601
+ },
602
+ {
603
+ "internalType": "address",
604
+ "name": "account",
605
+ "type": "address"
606
+ }
607
+ ],
608
+ "name": "hasVoted",
609
+ "outputs": [
610
+ {
611
+ "internalType": "bool",
612
+ "name": "",
613
+ "type": "bool"
614
+ }
615
+ ],
616
+ "stateMutability": "view",
617
+ "type": "function"
618
+ },
619
+ {
620
+ "inputs": [
621
+ {
622
+ "internalType": "address[]",
623
+ "name": "targets",
624
+ "type": "address[]"
625
+ },
626
+ {
627
+ "internalType": "uint256[]",
628
+ "name": "values",
629
+ "type": "uint256[]"
630
+ },
631
+ {
632
+ "internalType": "bytes[]",
633
+ "name": "calldatas",
634
+ "type": "bytes[]"
635
+ },
636
+ {
637
+ "internalType": "bytes32",
638
+ "name": "descriptionHash",
639
+ "type": "bytes32"
640
+ }
641
+ ],
642
+ "name": "hashProposal",
643
+ "outputs": [
644
+ {
645
+ "internalType": "uint256",
646
+ "name": "",
647
+ "type": "uint256"
648
+ }
649
+ ],
650
+ "stateMutability": "pure",
651
+ "type": "function"
652
+ },
653
+ {
654
+ "inputs": [],
655
+ "name": "name",
656
+ "outputs": [
657
+ {
658
+ "internalType": "string",
659
+ "name": "",
660
+ "type": "string"
661
+ }
662
+ ],
663
+ "stateMutability": "view",
664
+ "type": "function"
665
+ },
666
+ {
667
+ "inputs": [
668
+ {
669
+ "internalType": "address",
670
+ "name": "",
671
+ "type": "address"
672
+ },
673
+ {
674
+ "internalType": "address",
675
+ "name": "",
676
+ "type": "address"
677
+ },
678
+ {
679
+ "internalType": "uint256[]",
680
+ "name": "",
681
+ "type": "uint256[]"
682
+ },
683
+ {
684
+ "internalType": "uint256[]",
685
+ "name": "",
686
+ "type": "uint256[]"
687
+ },
688
+ {
689
+ "internalType": "bytes",
690
+ "name": "",
691
+ "type": "bytes"
692
+ }
693
+ ],
694
+ "name": "onERC1155BatchReceived",
695
+ "outputs": [
696
+ {
697
+ "internalType": "bytes4",
698
+ "name": "",
699
+ "type": "bytes4"
700
+ }
701
+ ],
702
+ "stateMutability": "nonpayable",
703
+ "type": "function"
704
+ },
705
+ {
706
+ "inputs": [
707
+ {
708
+ "internalType": "address",
709
+ "name": "",
710
+ "type": "address"
711
+ },
712
+ {
713
+ "internalType": "address",
714
+ "name": "",
715
+ "type": "address"
716
+ },
717
+ {
718
+ "internalType": "uint256",
719
+ "name": "",
720
+ "type": "uint256"
721
+ },
722
+ {
723
+ "internalType": "uint256",
724
+ "name": "",
725
+ "type": "uint256"
726
+ },
727
+ {
728
+ "internalType": "bytes",
729
+ "name": "",
730
+ "type": "bytes"
731
+ }
732
+ ],
733
+ "name": "onERC1155Received",
734
+ "outputs": [
735
+ {
736
+ "internalType": "bytes4",
737
+ "name": "",
738
+ "type": "bytes4"
739
+ }
740
+ ],
741
+ "stateMutability": "nonpayable",
742
+ "type": "function"
743
+ },
744
+ {
745
+ "inputs": [
746
+ {
747
+ "internalType": "address",
748
+ "name": "",
749
+ "type": "address"
750
+ },
751
+ {
752
+ "internalType": "address",
753
+ "name": "",
754
+ "type": "address"
755
+ },
756
+ {
757
+ "internalType": "uint256",
758
+ "name": "",
759
+ "type": "uint256"
760
+ },
761
+ {
762
+ "internalType": "bytes",
763
+ "name": "",
764
+ "type": "bytes"
765
+ }
766
+ ],
767
+ "name": "onERC721Received",
768
+ "outputs": [
769
+ {
770
+ "internalType": "bytes4",
771
+ "name": "",
772
+ "type": "bytes4"
773
+ }
774
+ ],
775
+ "stateMutability": "nonpayable",
776
+ "type": "function"
777
+ },
778
+ {
779
+ "inputs": [
780
+ {
781
+ "internalType": "uint256",
782
+ "name": "proposalId",
783
+ "type": "uint256"
784
+ }
785
+ ],
786
+ "name": "proposalDeadline",
787
+ "outputs": [
788
+ {
789
+ "internalType": "uint256",
790
+ "name": "",
791
+ "type": "uint256"
792
+ }
793
+ ],
794
+ "stateMutability": "view",
795
+ "type": "function"
796
+ },
797
+ {
798
+ "inputs": [
799
+ {
800
+ "internalType": "uint256",
801
+ "name": "proposalId",
802
+ "type": "uint256"
803
+ }
804
+ ],
805
+ "name": "proposalEta",
806
+ "outputs": [
807
+ {
808
+ "internalType": "uint256",
809
+ "name": "",
810
+ "type": "uint256"
811
+ }
812
+ ],
813
+ "stateMutability": "view",
814
+ "type": "function"
815
+ },
816
+ {
817
+ "inputs": [
818
+ {
819
+ "internalType": "uint256",
820
+ "name": "proposalId",
821
+ "type": "uint256"
822
+ }
823
+ ],
824
+ "name": "proposalSnapshot",
825
+ "outputs": [
826
+ {
827
+ "internalType": "uint256",
828
+ "name": "",
829
+ "type": "uint256"
830
+ }
831
+ ],
832
+ "stateMutability": "view",
833
+ "type": "function"
834
+ },
835
+ {
836
+ "inputs": [],
837
+ "name": "proposalThreshold",
838
+ "outputs": [
839
+ {
840
+ "internalType": "uint256",
841
+ "name": "",
842
+ "type": "uint256"
843
+ }
844
+ ],
845
+ "stateMutability": "view",
846
+ "type": "function"
847
+ },
848
+ {
849
+ "inputs": [
850
+ {
851
+ "internalType": "uint256",
852
+ "name": "proposalId",
853
+ "type": "uint256"
854
+ }
855
+ ],
856
+ "name": "proposals",
857
+ "outputs": [
858
+ {
859
+ "internalType": "uint256",
860
+ "name": "id",
861
+ "type": "uint256"
862
+ },
863
+ {
864
+ "internalType": "address",
865
+ "name": "proposer",
866
+ "type": "address"
867
+ },
868
+ {
869
+ "internalType": "uint256",
870
+ "name": "eta",
871
+ "type": "uint256"
872
+ },
873
+ {
874
+ "internalType": "uint256",
875
+ "name": "startBlock",
876
+ "type": "uint256"
877
+ },
878
+ {
879
+ "internalType": "uint256",
880
+ "name": "endBlock",
881
+ "type": "uint256"
882
+ },
883
+ {
884
+ "internalType": "uint256",
885
+ "name": "forVotes",
886
+ "type": "uint256"
887
+ },
888
+ {
889
+ "internalType": "uint256",
890
+ "name": "againstVotes",
891
+ "type": "uint256"
892
+ },
893
+ {
894
+ "internalType": "uint256",
895
+ "name": "abstainVotes",
896
+ "type": "uint256"
897
+ },
898
+ {
899
+ "internalType": "bool",
900
+ "name": "canceled",
901
+ "type": "bool"
902
+ },
903
+ {
904
+ "internalType": "bool",
905
+ "name": "executed",
906
+ "type": "bool"
907
+ }
908
+ ],
909
+ "stateMutability": "view",
910
+ "type": "function"
911
+ },
912
+ {
913
+ "inputs": [
914
+ {
915
+ "internalType": "address[]",
916
+ "name": "targets",
917
+ "type": "address[]"
918
+ },
919
+ {
920
+ "internalType": "uint256[]",
921
+ "name": "values",
922
+ "type": "uint256[]"
923
+ },
924
+ {
925
+ "internalType": "bytes[]",
926
+ "name": "calldatas",
927
+ "type": "bytes[]"
928
+ },
929
+ {
930
+ "internalType": "string",
931
+ "name": "description",
932
+ "type": "string"
933
+ }
934
+ ],
935
+ "name": "propose",
936
+ "outputs": [
937
+ {
938
+ "internalType": "uint256",
939
+ "name": "",
940
+ "type": "uint256"
941
+ }
942
+ ],
943
+ "stateMutability": "nonpayable",
944
+ "type": "function"
945
+ },
946
+ {
947
+ "inputs": [
948
+ {
949
+ "internalType": "address[]",
950
+ "name": "targets",
951
+ "type": "address[]"
952
+ },
953
+ {
954
+ "internalType": "uint256[]",
955
+ "name": "values",
956
+ "type": "uint256[]"
957
+ },
958
+ {
959
+ "internalType": "string[]",
960
+ "name": "signatures",
961
+ "type": "string[]"
962
+ },
963
+ {
964
+ "internalType": "bytes[]",
965
+ "name": "calldatas",
966
+ "type": "bytes[]"
967
+ },
968
+ {
969
+ "internalType": "string",
970
+ "name": "description",
971
+ "type": "string"
972
+ }
973
+ ],
974
+ "name": "propose",
975
+ "outputs": [
976
+ {
977
+ "internalType": "uint256",
978
+ "name": "",
979
+ "type": "uint256"
980
+ }
981
+ ],
982
+ "stateMutability": "nonpayable",
983
+ "type": "function"
984
+ },
985
+ {
986
+ "inputs": [
987
+ {
988
+ "internalType": "address[]",
989
+ "name": "targets",
990
+ "type": "address[]"
991
+ },
992
+ {
993
+ "internalType": "uint256[]",
994
+ "name": "values",
995
+ "type": "uint256[]"
996
+ },
997
+ {
998
+ "internalType": "bytes[]",
999
+ "name": "calldatas",
1000
+ "type": "bytes[]"
1001
+ },
1002
+ {
1003
+ "internalType": "bytes32",
1004
+ "name": "descriptionHash",
1005
+ "type": "bytes32"
1006
+ }
1007
+ ],
1008
+ "name": "queue",
1009
+ "outputs": [
1010
+ {
1011
+ "internalType": "uint256",
1012
+ "name": "proposalId",
1013
+ "type": "uint256"
1014
+ }
1015
+ ],
1016
+ "stateMutability": "nonpayable",
1017
+ "type": "function"
1018
+ },
1019
+ {
1020
+ "inputs": [
1021
+ {
1022
+ "internalType": "uint256",
1023
+ "name": "proposalId",
1024
+ "type": "uint256"
1025
+ }
1026
+ ],
1027
+ "name": "queue",
1028
+ "outputs": [],
1029
+ "stateMutability": "nonpayable",
1030
+ "type": "function"
1031
+ },
1032
+ {
1033
+ "inputs": [
1034
+ {
1035
+ "internalType": "uint256",
1036
+ "name": "blockNumber",
1037
+ "type": "uint256"
1038
+ }
1039
+ ],
1040
+ "name": "quorum",
1041
+ "outputs": [
1042
+ {
1043
+ "internalType": "uint256",
1044
+ "name": "",
1045
+ "type": "uint256"
1046
+ }
1047
+ ],
1048
+ "stateMutability": "view",
1049
+ "type": "function"
1050
+ },
1051
+ {
1052
+ "inputs": [],
1053
+ "name": "quorumVotes",
1054
+ "outputs": [
1055
+ {
1056
+ "internalType": "uint256",
1057
+ "name": "",
1058
+ "type": "uint256"
1059
+ }
1060
+ ],
1061
+ "stateMutability": "view",
1062
+ "type": "function"
1063
+ },
1064
+ {
1065
+ "inputs": [
1066
+ {
1067
+ "internalType": "address",
1068
+ "name": "target",
1069
+ "type": "address"
1070
+ },
1071
+ {
1072
+ "internalType": "uint256",
1073
+ "name": "value",
1074
+ "type": "uint256"
1075
+ },
1076
+ {
1077
+ "internalType": "bytes",
1078
+ "name": "data",
1079
+ "type": "bytes"
1080
+ }
1081
+ ],
1082
+ "name": "relay",
1083
+ "outputs": [],
1084
+ "stateMutability": "nonpayable",
1085
+ "type": "function"
1086
+ },
1087
+ {
1088
+ "inputs": [
1089
+ {
1090
+ "internalType": "uint256",
1091
+ "name": "proposalId",
1092
+ "type": "uint256"
1093
+ }
1094
+ ],
1095
+ "name": "state",
1096
+ "outputs": [
1097
+ {
1098
+ "internalType": "enum IGovernor.ProposalState",
1099
+ "name": "",
1100
+ "type": "uint8"
1101
+ }
1102
+ ],
1103
+ "stateMutability": "view",
1104
+ "type": "function"
1105
+ },
1106
+ {
1107
+ "inputs": [
1108
+ {
1109
+ "internalType": "bytes4",
1110
+ "name": "interfaceId",
1111
+ "type": "bytes4"
1112
+ }
1113
+ ],
1114
+ "name": "supportsInterface",
1115
+ "outputs": [
1116
+ {
1117
+ "internalType": "bool",
1118
+ "name": "",
1119
+ "type": "bool"
1120
+ }
1121
+ ],
1122
+ "stateMutability": "view",
1123
+ "type": "function"
1124
+ },
1125
+ {
1126
+ "inputs": [],
1127
+ "name": "timelock",
1128
+ "outputs": [
1129
+ {
1130
+ "internalType": "address",
1131
+ "name": "",
1132
+ "type": "address"
1133
+ }
1134
+ ],
1135
+ "stateMutability": "view",
1136
+ "type": "function"
1137
+ },
1138
+ {
1139
+ "inputs": [],
1140
+ "name": "version",
1141
+ "outputs": [
1142
+ {
1143
+ "internalType": "string",
1144
+ "name": "",
1145
+ "type": "string"
1146
+ }
1147
+ ],
1148
+ "stateMutability": "view",
1149
+ "type": "function"
1150
+ },
1151
+ {
1152
+ "inputs": [],
1153
+ "name": "votingDelay",
1154
+ "outputs": [
1155
+ {
1156
+ "internalType": "uint256",
1157
+ "name": "",
1158
+ "type": "uint256"
1159
+ }
1160
+ ],
1161
+ "stateMutability": "view",
1162
+ "type": "function"
1163
+ },
1164
+ {
1165
+ "inputs": [],
1166
+ "name": "votingPeriod",
1167
+ "outputs": [
1168
+ {
1169
+ "internalType": "uint256",
1170
+ "name": "",
1171
+ "type": "uint256"
1172
+ }
1173
+ ],
1174
+ "stateMutability": "view",
1175
+ "type": "function"
1176
+ },
1177
+ {
1178
+ "stateMutability": "payable",
1179
+ "type": "receive"
1180
+ }
1181
+ ]