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,867 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "uint256",
6
+ "name": "minDelay",
7
+ "type": "uint256"
8
+ },
9
+ {
10
+ "internalType": "address[]",
11
+ "name": "proposers",
12
+ "type": "address[]"
13
+ },
14
+ {
15
+ "internalType": "address[]",
16
+ "name": "executors",
17
+ "type": "address[]"
18
+ }
19
+ ],
20
+ "stateMutability": "nonpayable",
21
+ "type": "constructor"
22
+ },
23
+ {
24
+ "anonymous": false,
25
+ "inputs": [
26
+ {
27
+ "indexed": true,
28
+ "internalType": "bytes32",
29
+ "name": "id",
30
+ "type": "bytes32"
31
+ },
32
+ {
33
+ "indexed": true,
34
+ "internalType": "uint256",
35
+ "name": "index",
36
+ "type": "uint256"
37
+ },
38
+ {
39
+ "indexed": false,
40
+ "internalType": "address",
41
+ "name": "target",
42
+ "type": "address"
43
+ },
44
+ {
45
+ "indexed": false,
46
+ "internalType": "uint256",
47
+ "name": "value",
48
+ "type": "uint256"
49
+ },
50
+ {
51
+ "indexed": false,
52
+ "internalType": "bytes",
53
+ "name": "data",
54
+ "type": "bytes"
55
+ }
56
+ ],
57
+ "name": "CallExecuted",
58
+ "type": "event"
59
+ },
60
+ {
61
+ "anonymous": false,
62
+ "inputs": [
63
+ {
64
+ "indexed": true,
65
+ "internalType": "bytes32",
66
+ "name": "id",
67
+ "type": "bytes32"
68
+ },
69
+ {
70
+ "indexed": true,
71
+ "internalType": "uint256",
72
+ "name": "index",
73
+ "type": "uint256"
74
+ },
75
+ {
76
+ "indexed": false,
77
+ "internalType": "address",
78
+ "name": "target",
79
+ "type": "address"
80
+ },
81
+ {
82
+ "indexed": false,
83
+ "internalType": "uint256",
84
+ "name": "value",
85
+ "type": "uint256"
86
+ },
87
+ {
88
+ "indexed": false,
89
+ "internalType": "bytes",
90
+ "name": "data",
91
+ "type": "bytes"
92
+ },
93
+ {
94
+ "indexed": false,
95
+ "internalType": "bytes32",
96
+ "name": "predecessor",
97
+ "type": "bytes32"
98
+ },
99
+ {
100
+ "indexed": false,
101
+ "internalType": "uint256",
102
+ "name": "delay",
103
+ "type": "uint256"
104
+ }
105
+ ],
106
+ "name": "CallScheduled",
107
+ "type": "event"
108
+ },
109
+ {
110
+ "anonymous": false,
111
+ "inputs": [
112
+ {
113
+ "indexed": true,
114
+ "internalType": "bytes32",
115
+ "name": "id",
116
+ "type": "bytes32"
117
+ }
118
+ ],
119
+ "name": "Cancelled",
120
+ "type": "event"
121
+ },
122
+ {
123
+ "anonymous": false,
124
+ "inputs": [
125
+ {
126
+ "indexed": false,
127
+ "internalType": "uint256",
128
+ "name": "oldDuration",
129
+ "type": "uint256"
130
+ },
131
+ {
132
+ "indexed": false,
133
+ "internalType": "uint256",
134
+ "name": "newDuration",
135
+ "type": "uint256"
136
+ }
137
+ ],
138
+ "name": "MinDelayChange",
139
+ "type": "event"
140
+ },
141
+ {
142
+ "anonymous": false,
143
+ "inputs": [
144
+ {
145
+ "indexed": true,
146
+ "internalType": "bytes32",
147
+ "name": "role",
148
+ "type": "bytes32"
149
+ },
150
+ {
151
+ "indexed": true,
152
+ "internalType": "bytes32",
153
+ "name": "previousAdminRole",
154
+ "type": "bytes32"
155
+ },
156
+ {
157
+ "indexed": true,
158
+ "internalType": "bytes32",
159
+ "name": "newAdminRole",
160
+ "type": "bytes32"
161
+ }
162
+ ],
163
+ "name": "RoleAdminChanged",
164
+ "type": "event"
165
+ },
166
+ {
167
+ "anonymous": false,
168
+ "inputs": [
169
+ {
170
+ "indexed": true,
171
+ "internalType": "bytes32",
172
+ "name": "role",
173
+ "type": "bytes32"
174
+ },
175
+ {
176
+ "indexed": true,
177
+ "internalType": "address",
178
+ "name": "account",
179
+ "type": "address"
180
+ },
181
+ {
182
+ "indexed": true,
183
+ "internalType": "address",
184
+ "name": "sender",
185
+ "type": "address"
186
+ }
187
+ ],
188
+ "name": "RoleGranted",
189
+ "type": "event"
190
+ },
191
+ {
192
+ "anonymous": false,
193
+ "inputs": [
194
+ {
195
+ "indexed": true,
196
+ "internalType": "bytes32",
197
+ "name": "role",
198
+ "type": "bytes32"
199
+ },
200
+ {
201
+ "indexed": true,
202
+ "internalType": "address",
203
+ "name": "account",
204
+ "type": "address"
205
+ },
206
+ {
207
+ "indexed": true,
208
+ "internalType": "address",
209
+ "name": "sender",
210
+ "type": "address"
211
+ }
212
+ ],
213
+ "name": "RoleRevoked",
214
+ "type": "event"
215
+ },
216
+ {
217
+ "inputs": [],
218
+ "name": "CANCELLER_ROLE",
219
+ "outputs": [
220
+ {
221
+ "internalType": "bytes32",
222
+ "name": "",
223
+ "type": "bytes32"
224
+ }
225
+ ],
226
+ "stateMutability": "view",
227
+ "type": "function"
228
+ },
229
+ {
230
+ "inputs": [],
231
+ "name": "DEFAULT_ADMIN_ROLE",
232
+ "outputs": [
233
+ {
234
+ "internalType": "bytes32",
235
+ "name": "",
236
+ "type": "bytes32"
237
+ }
238
+ ],
239
+ "stateMutability": "view",
240
+ "type": "function"
241
+ },
242
+ {
243
+ "inputs": [],
244
+ "name": "EXECUTOR_ROLE",
245
+ "outputs": [
246
+ {
247
+ "internalType": "bytes32",
248
+ "name": "",
249
+ "type": "bytes32"
250
+ }
251
+ ],
252
+ "stateMutability": "view",
253
+ "type": "function"
254
+ },
255
+ {
256
+ "inputs": [],
257
+ "name": "PROPOSER_ROLE",
258
+ "outputs": [
259
+ {
260
+ "internalType": "bytes32",
261
+ "name": "",
262
+ "type": "bytes32"
263
+ }
264
+ ],
265
+ "stateMutability": "view",
266
+ "type": "function"
267
+ },
268
+ {
269
+ "inputs": [],
270
+ "name": "TIMELOCK_ADMIN_ROLE",
271
+ "outputs": [
272
+ {
273
+ "internalType": "bytes32",
274
+ "name": "",
275
+ "type": "bytes32"
276
+ }
277
+ ],
278
+ "stateMutability": "view",
279
+ "type": "function"
280
+ },
281
+ {
282
+ "inputs": [
283
+ {
284
+ "internalType": "bytes32",
285
+ "name": "id",
286
+ "type": "bytes32"
287
+ }
288
+ ],
289
+ "name": "cancel",
290
+ "outputs": [],
291
+ "stateMutability": "nonpayable",
292
+ "type": "function"
293
+ },
294
+ {
295
+ "inputs": [
296
+ {
297
+ "internalType": "address",
298
+ "name": "target",
299
+ "type": "address"
300
+ },
301
+ {
302
+ "internalType": "uint256",
303
+ "name": "value",
304
+ "type": "uint256"
305
+ },
306
+ {
307
+ "internalType": "bytes",
308
+ "name": "payload",
309
+ "type": "bytes"
310
+ },
311
+ {
312
+ "internalType": "bytes32",
313
+ "name": "predecessor",
314
+ "type": "bytes32"
315
+ },
316
+ {
317
+ "internalType": "bytes32",
318
+ "name": "salt",
319
+ "type": "bytes32"
320
+ }
321
+ ],
322
+ "name": "execute",
323
+ "outputs": [],
324
+ "stateMutability": "payable",
325
+ "type": "function"
326
+ },
327
+ {
328
+ "inputs": [
329
+ {
330
+ "internalType": "address[]",
331
+ "name": "targets",
332
+ "type": "address[]"
333
+ },
334
+ {
335
+ "internalType": "uint256[]",
336
+ "name": "values",
337
+ "type": "uint256[]"
338
+ },
339
+ {
340
+ "internalType": "bytes[]",
341
+ "name": "payloads",
342
+ "type": "bytes[]"
343
+ },
344
+ {
345
+ "internalType": "bytes32",
346
+ "name": "predecessor",
347
+ "type": "bytes32"
348
+ },
349
+ {
350
+ "internalType": "bytes32",
351
+ "name": "salt",
352
+ "type": "bytes32"
353
+ }
354
+ ],
355
+ "name": "executeBatch",
356
+ "outputs": [],
357
+ "stateMutability": "payable",
358
+ "type": "function"
359
+ },
360
+ {
361
+ "inputs": [],
362
+ "name": "getMinDelay",
363
+ "outputs": [
364
+ {
365
+ "internalType": "uint256",
366
+ "name": "duration",
367
+ "type": "uint256"
368
+ }
369
+ ],
370
+ "stateMutability": "view",
371
+ "type": "function"
372
+ },
373
+ {
374
+ "inputs": [
375
+ {
376
+ "internalType": "bytes32",
377
+ "name": "role",
378
+ "type": "bytes32"
379
+ }
380
+ ],
381
+ "name": "getRoleAdmin",
382
+ "outputs": [
383
+ {
384
+ "internalType": "bytes32",
385
+ "name": "",
386
+ "type": "bytes32"
387
+ }
388
+ ],
389
+ "stateMutability": "view",
390
+ "type": "function"
391
+ },
392
+ {
393
+ "inputs": [
394
+ {
395
+ "internalType": "bytes32",
396
+ "name": "id",
397
+ "type": "bytes32"
398
+ }
399
+ ],
400
+ "name": "getTimestamp",
401
+ "outputs": [
402
+ {
403
+ "internalType": "uint256",
404
+ "name": "timestamp",
405
+ "type": "uint256"
406
+ }
407
+ ],
408
+ "stateMutability": "view",
409
+ "type": "function"
410
+ },
411
+ {
412
+ "inputs": [
413
+ {
414
+ "internalType": "bytes32",
415
+ "name": "role",
416
+ "type": "bytes32"
417
+ },
418
+ {
419
+ "internalType": "address",
420
+ "name": "account",
421
+ "type": "address"
422
+ }
423
+ ],
424
+ "name": "grantRole",
425
+ "outputs": [],
426
+ "stateMutability": "nonpayable",
427
+ "type": "function"
428
+ },
429
+ {
430
+ "inputs": [
431
+ {
432
+ "internalType": "bytes32",
433
+ "name": "role",
434
+ "type": "bytes32"
435
+ },
436
+ {
437
+ "internalType": "address",
438
+ "name": "account",
439
+ "type": "address"
440
+ }
441
+ ],
442
+ "name": "hasRole",
443
+ "outputs": [
444
+ {
445
+ "internalType": "bool",
446
+ "name": "",
447
+ "type": "bool"
448
+ }
449
+ ],
450
+ "stateMutability": "view",
451
+ "type": "function"
452
+ },
453
+ {
454
+ "inputs": [
455
+ {
456
+ "internalType": "address",
457
+ "name": "target",
458
+ "type": "address"
459
+ },
460
+ {
461
+ "internalType": "uint256",
462
+ "name": "value",
463
+ "type": "uint256"
464
+ },
465
+ {
466
+ "internalType": "bytes",
467
+ "name": "data",
468
+ "type": "bytes"
469
+ },
470
+ {
471
+ "internalType": "bytes32",
472
+ "name": "predecessor",
473
+ "type": "bytes32"
474
+ },
475
+ {
476
+ "internalType": "bytes32",
477
+ "name": "salt",
478
+ "type": "bytes32"
479
+ }
480
+ ],
481
+ "name": "hashOperation",
482
+ "outputs": [
483
+ {
484
+ "internalType": "bytes32",
485
+ "name": "hash",
486
+ "type": "bytes32"
487
+ }
488
+ ],
489
+ "stateMutability": "pure",
490
+ "type": "function"
491
+ },
492
+ {
493
+ "inputs": [
494
+ {
495
+ "internalType": "address[]",
496
+ "name": "targets",
497
+ "type": "address[]"
498
+ },
499
+ {
500
+ "internalType": "uint256[]",
501
+ "name": "values",
502
+ "type": "uint256[]"
503
+ },
504
+ {
505
+ "internalType": "bytes[]",
506
+ "name": "payloads",
507
+ "type": "bytes[]"
508
+ },
509
+ {
510
+ "internalType": "bytes32",
511
+ "name": "predecessor",
512
+ "type": "bytes32"
513
+ },
514
+ {
515
+ "internalType": "bytes32",
516
+ "name": "salt",
517
+ "type": "bytes32"
518
+ }
519
+ ],
520
+ "name": "hashOperationBatch",
521
+ "outputs": [
522
+ {
523
+ "internalType": "bytes32",
524
+ "name": "hash",
525
+ "type": "bytes32"
526
+ }
527
+ ],
528
+ "stateMutability": "pure",
529
+ "type": "function"
530
+ },
531
+ {
532
+ "inputs": [
533
+ {
534
+ "internalType": "bytes32",
535
+ "name": "id",
536
+ "type": "bytes32"
537
+ }
538
+ ],
539
+ "name": "isOperation",
540
+ "outputs": [
541
+ {
542
+ "internalType": "bool",
543
+ "name": "registered",
544
+ "type": "bool"
545
+ }
546
+ ],
547
+ "stateMutability": "view",
548
+ "type": "function"
549
+ },
550
+ {
551
+ "inputs": [
552
+ {
553
+ "internalType": "bytes32",
554
+ "name": "id",
555
+ "type": "bytes32"
556
+ }
557
+ ],
558
+ "name": "isOperationDone",
559
+ "outputs": [
560
+ {
561
+ "internalType": "bool",
562
+ "name": "done",
563
+ "type": "bool"
564
+ }
565
+ ],
566
+ "stateMutability": "view",
567
+ "type": "function"
568
+ },
569
+ {
570
+ "inputs": [
571
+ {
572
+ "internalType": "bytes32",
573
+ "name": "id",
574
+ "type": "bytes32"
575
+ }
576
+ ],
577
+ "name": "isOperationPending",
578
+ "outputs": [
579
+ {
580
+ "internalType": "bool",
581
+ "name": "pending",
582
+ "type": "bool"
583
+ }
584
+ ],
585
+ "stateMutability": "view",
586
+ "type": "function"
587
+ },
588
+ {
589
+ "inputs": [
590
+ {
591
+ "internalType": "bytes32",
592
+ "name": "id",
593
+ "type": "bytes32"
594
+ }
595
+ ],
596
+ "name": "isOperationReady",
597
+ "outputs": [
598
+ {
599
+ "internalType": "bool",
600
+ "name": "ready",
601
+ "type": "bool"
602
+ }
603
+ ],
604
+ "stateMutability": "view",
605
+ "type": "function"
606
+ },
607
+ {
608
+ "inputs": [
609
+ {
610
+ "internalType": "address",
611
+ "name": "",
612
+ "type": "address"
613
+ },
614
+ {
615
+ "internalType": "address",
616
+ "name": "",
617
+ "type": "address"
618
+ },
619
+ {
620
+ "internalType": "uint256[]",
621
+ "name": "",
622
+ "type": "uint256[]"
623
+ },
624
+ {
625
+ "internalType": "uint256[]",
626
+ "name": "",
627
+ "type": "uint256[]"
628
+ },
629
+ {
630
+ "internalType": "bytes",
631
+ "name": "",
632
+ "type": "bytes"
633
+ }
634
+ ],
635
+ "name": "onERC1155BatchReceived",
636
+ "outputs": [
637
+ {
638
+ "internalType": "bytes4",
639
+ "name": "",
640
+ "type": "bytes4"
641
+ }
642
+ ],
643
+ "stateMutability": "nonpayable",
644
+ "type": "function"
645
+ },
646
+ {
647
+ "inputs": [
648
+ {
649
+ "internalType": "address",
650
+ "name": "",
651
+ "type": "address"
652
+ },
653
+ {
654
+ "internalType": "address",
655
+ "name": "",
656
+ "type": "address"
657
+ },
658
+ {
659
+ "internalType": "uint256",
660
+ "name": "",
661
+ "type": "uint256"
662
+ },
663
+ {
664
+ "internalType": "uint256",
665
+ "name": "",
666
+ "type": "uint256"
667
+ },
668
+ {
669
+ "internalType": "bytes",
670
+ "name": "",
671
+ "type": "bytes"
672
+ }
673
+ ],
674
+ "name": "onERC1155Received",
675
+ "outputs": [
676
+ {
677
+ "internalType": "bytes4",
678
+ "name": "",
679
+ "type": "bytes4"
680
+ }
681
+ ],
682
+ "stateMutability": "nonpayable",
683
+ "type": "function"
684
+ },
685
+ {
686
+ "inputs": [
687
+ {
688
+ "internalType": "address",
689
+ "name": "",
690
+ "type": "address"
691
+ },
692
+ {
693
+ "internalType": "address",
694
+ "name": "",
695
+ "type": "address"
696
+ },
697
+ {
698
+ "internalType": "uint256",
699
+ "name": "",
700
+ "type": "uint256"
701
+ },
702
+ {
703
+ "internalType": "bytes",
704
+ "name": "",
705
+ "type": "bytes"
706
+ }
707
+ ],
708
+ "name": "onERC721Received",
709
+ "outputs": [
710
+ {
711
+ "internalType": "bytes4",
712
+ "name": "",
713
+ "type": "bytes4"
714
+ }
715
+ ],
716
+ "stateMutability": "nonpayable",
717
+ "type": "function"
718
+ },
719
+ {
720
+ "inputs": [
721
+ {
722
+ "internalType": "bytes32",
723
+ "name": "role",
724
+ "type": "bytes32"
725
+ },
726
+ {
727
+ "internalType": "address",
728
+ "name": "account",
729
+ "type": "address"
730
+ }
731
+ ],
732
+ "name": "renounceRole",
733
+ "outputs": [],
734
+ "stateMutability": "nonpayable",
735
+ "type": "function"
736
+ },
737
+ {
738
+ "inputs": [
739
+ {
740
+ "internalType": "bytes32",
741
+ "name": "role",
742
+ "type": "bytes32"
743
+ },
744
+ {
745
+ "internalType": "address",
746
+ "name": "account",
747
+ "type": "address"
748
+ }
749
+ ],
750
+ "name": "revokeRole",
751
+ "outputs": [],
752
+ "stateMutability": "nonpayable",
753
+ "type": "function"
754
+ },
755
+ {
756
+ "inputs": [
757
+ {
758
+ "internalType": "address",
759
+ "name": "target",
760
+ "type": "address"
761
+ },
762
+ {
763
+ "internalType": "uint256",
764
+ "name": "value",
765
+ "type": "uint256"
766
+ },
767
+ {
768
+ "internalType": "bytes",
769
+ "name": "data",
770
+ "type": "bytes"
771
+ },
772
+ {
773
+ "internalType": "bytes32",
774
+ "name": "predecessor",
775
+ "type": "bytes32"
776
+ },
777
+ {
778
+ "internalType": "bytes32",
779
+ "name": "salt",
780
+ "type": "bytes32"
781
+ },
782
+ {
783
+ "internalType": "uint256",
784
+ "name": "delay",
785
+ "type": "uint256"
786
+ }
787
+ ],
788
+ "name": "schedule",
789
+ "outputs": [],
790
+ "stateMutability": "nonpayable",
791
+ "type": "function"
792
+ },
793
+ {
794
+ "inputs": [
795
+ {
796
+ "internalType": "address[]",
797
+ "name": "targets",
798
+ "type": "address[]"
799
+ },
800
+ {
801
+ "internalType": "uint256[]",
802
+ "name": "values",
803
+ "type": "uint256[]"
804
+ },
805
+ {
806
+ "internalType": "bytes[]",
807
+ "name": "payloads",
808
+ "type": "bytes[]"
809
+ },
810
+ {
811
+ "internalType": "bytes32",
812
+ "name": "predecessor",
813
+ "type": "bytes32"
814
+ },
815
+ {
816
+ "internalType": "bytes32",
817
+ "name": "salt",
818
+ "type": "bytes32"
819
+ },
820
+ {
821
+ "internalType": "uint256",
822
+ "name": "delay",
823
+ "type": "uint256"
824
+ }
825
+ ],
826
+ "name": "scheduleBatch",
827
+ "outputs": [],
828
+ "stateMutability": "nonpayable",
829
+ "type": "function"
830
+ },
831
+ {
832
+ "inputs": [
833
+ {
834
+ "internalType": "bytes4",
835
+ "name": "interfaceId",
836
+ "type": "bytes4"
837
+ }
838
+ ],
839
+ "name": "supportsInterface",
840
+ "outputs": [
841
+ {
842
+ "internalType": "bool",
843
+ "name": "",
844
+ "type": "bool"
845
+ }
846
+ ],
847
+ "stateMutability": "view",
848
+ "type": "function"
849
+ },
850
+ {
851
+ "inputs": [
852
+ {
853
+ "internalType": "uint256",
854
+ "name": "newDelay",
855
+ "type": "uint256"
856
+ }
857
+ ],
858
+ "name": "updateDelay",
859
+ "outputs": [],
860
+ "stateMutability": "nonpayable",
861
+ "type": "function"
862
+ },
863
+ {
864
+ "stateMutability": "payable",
865
+ "type": "receive"
866
+ }
867
+ ]