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,979 @@
1
+ [
2
+ {
3
+ "inputs": [],
4
+ "payable": false,
5
+ "stateMutability": "nonpayable",
6
+ "type": "constructor"
7
+ },
8
+ {
9
+ "anonymous": false,
10
+ "inputs": [
11
+ {
12
+ "indexed": false,
13
+ "internalType": "address",
14
+ "name": "owner",
15
+ "type": "address"
16
+ }
17
+ ],
18
+ "name": "AddedOwner",
19
+ "type": "event"
20
+ },
21
+ {
22
+ "anonymous": false,
23
+ "inputs": [
24
+ {
25
+ "indexed": true,
26
+ "internalType": "bytes32",
27
+ "name": "approvedHash",
28
+ "type": "bytes32"
29
+ },
30
+ {
31
+ "indexed": true,
32
+ "internalType": "address",
33
+ "name": "owner",
34
+ "type": "address"
35
+ }
36
+ ],
37
+ "name": "ApproveHash",
38
+ "type": "event"
39
+ },
40
+ {
41
+ "anonymous": false,
42
+ "inputs": [
43
+ {
44
+ "indexed": false,
45
+ "internalType": "address",
46
+ "name": "masterCopy",
47
+ "type": "address"
48
+ }
49
+ ],
50
+ "name": "ChangedMasterCopy",
51
+ "type": "event"
52
+ },
53
+ {
54
+ "anonymous": false,
55
+ "inputs": [
56
+ {
57
+ "indexed": false,
58
+ "internalType": "uint256",
59
+ "name": "threshold",
60
+ "type": "uint256"
61
+ }
62
+ ],
63
+ "name": "ChangedThreshold",
64
+ "type": "event"
65
+ },
66
+ {
67
+ "anonymous": false,
68
+ "inputs": [
69
+ {
70
+ "indexed": false,
71
+ "internalType": "contract Module",
72
+ "name": "module",
73
+ "type": "address"
74
+ }
75
+ ],
76
+ "name": "DisabledModule",
77
+ "type": "event"
78
+ },
79
+ {
80
+ "anonymous": false,
81
+ "inputs": [
82
+ {
83
+ "indexed": false,
84
+ "internalType": "contract Module",
85
+ "name": "module",
86
+ "type": "address"
87
+ }
88
+ ],
89
+ "name": "EnabledModule",
90
+ "type": "event"
91
+ },
92
+ {
93
+ "anonymous": false,
94
+ "inputs": [
95
+ {
96
+ "indexed": false,
97
+ "internalType": "bytes32",
98
+ "name": "txHash",
99
+ "type": "bytes32"
100
+ },
101
+ {
102
+ "indexed": false,
103
+ "internalType": "uint256",
104
+ "name": "payment",
105
+ "type": "uint256"
106
+ }
107
+ ],
108
+ "name": "ExecutionFailure",
109
+ "type": "event"
110
+ },
111
+ {
112
+ "anonymous": false,
113
+ "inputs": [
114
+ {
115
+ "indexed": true,
116
+ "internalType": "address",
117
+ "name": "module",
118
+ "type": "address"
119
+ }
120
+ ],
121
+ "name": "ExecutionFromModuleFailure",
122
+ "type": "event"
123
+ },
124
+ {
125
+ "anonymous": false,
126
+ "inputs": [
127
+ {
128
+ "indexed": true,
129
+ "internalType": "address",
130
+ "name": "module",
131
+ "type": "address"
132
+ }
133
+ ],
134
+ "name": "ExecutionFromModuleSuccess",
135
+ "type": "event"
136
+ },
137
+ {
138
+ "anonymous": false,
139
+ "inputs": [
140
+ {
141
+ "indexed": false,
142
+ "internalType": "bytes32",
143
+ "name": "txHash",
144
+ "type": "bytes32"
145
+ },
146
+ {
147
+ "indexed": false,
148
+ "internalType": "uint256",
149
+ "name": "payment",
150
+ "type": "uint256"
151
+ }
152
+ ],
153
+ "name": "ExecutionSuccess",
154
+ "type": "event"
155
+ },
156
+ {
157
+ "anonymous": false,
158
+ "inputs": [
159
+ {
160
+ "indexed": false,
161
+ "internalType": "address",
162
+ "name": "owner",
163
+ "type": "address"
164
+ }
165
+ ],
166
+ "name": "RemovedOwner",
167
+ "type": "event"
168
+ },
169
+ {
170
+ "anonymous": false,
171
+ "inputs": [
172
+ {
173
+ "indexed": true,
174
+ "internalType": "bytes32",
175
+ "name": "msgHash",
176
+ "type": "bytes32"
177
+ }
178
+ ],
179
+ "name": "SignMsg",
180
+ "type": "event"
181
+ },
182
+ {
183
+ "payable": true,
184
+ "stateMutability": "payable",
185
+ "type": "fallback"
186
+ },
187
+ {
188
+ "constant": true,
189
+ "inputs": [],
190
+ "name": "NAME",
191
+ "outputs": [
192
+ {
193
+ "internalType": "string",
194
+ "name": "",
195
+ "type": "string"
196
+ }
197
+ ],
198
+ "payable": false,
199
+ "stateMutability": "view",
200
+ "type": "function"
201
+ },
202
+ {
203
+ "constant": true,
204
+ "inputs": [],
205
+ "name": "VERSION",
206
+ "outputs": [
207
+ {
208
+ "internalType": "string",
209
+ "name": "",
210
+ "type": "string"
211
+ }
212
+ ],
213
+ "payable": false,
214
+ "stateMutability": "view",
215
+ "type": "function"
216
+ },
217
+ {
218
+ "constant": false,
219
+ "inputs": [
220
+ {
221
+ "internalType": "address",
222
+ "name": "owner",
223
+ "type": "address"
224
+ },
225
+ {
226
+ "internalType": "uint256",
227
+ "name": "_threshold",
228
+ "type": "uint256"
229
+ }
230
+ ],
231
+ "name": "addOwnerWithThreshold",
232
+ "outputs": [],
233
+ "payable": false,
234
+ "stateMutability": "nonpayable",
235
+ "type": "function"
236
+ },
237
+ {
238
+ "constant": false,
239
+ "inputs": [
240
+ {
241
+ "internalType": "bytes32",
242
+ "name": "hashToApprove",
243
+ "type": "bytes32"
244
+ }
245
+ ],
246
+ "name": "approveHash",
247
+ "outputs": [],
248
+ "payable": false,
249
+ "stateMutability": "nonpayable",
250
+ "type": "function"
251
+ },
252
+ {
253
+ "constant": true,
254
+ "inputs": [
255
+ {
256
+ "internalType": "address",
257
+ "name": "",
258
+ "type": "address"
259
+ },
260
+ {
261
+ "internalType": "bytes32",
262
+ "name": "",
263
+ "type": "bytes32"
264
+ }
265
+ ],
266
+ "name": "approvedHashes",
267
+ "outputs": [
268
+ {
269
+ "internalType": "uint256",
270
+ "name": "",
271
+ "type": "uint256"
272
+ }
273
+ ],
274
+ "payable": false,
275
+ "stateMutability": "view",
276
+ "type": "function"
277
+ },
278
+ {
279
+ "constant": false,
280
+ "inputs": [
281
+ {
282
+ "internalType": "address",
283
+ "name": "_masterCopy",
284
+ "type": "address"
285
+ }
286
+ ],
287
+ "name": "changeMasterCopy",
288
+ "outputs": [],
289
+ "payable": false,
290
+ "stateMutability": "nonpayable",
291
+ "type": "function"
292
+ },
293
+ {
294
+ "constant": false,
295
+ "inputs": [
296
+ {
297
+ "internalType": "uint256",
298
+ "name": "_threshold",
299
+ "type": "uint256"
300
+ }
301
+ ],
302
+ "name": "changeThreshold",
303
+ "outputs": [],
304
+ "payable": false,
305
+ "stateMutability": "nonpayable",
306
+ "type": "function"
307
+ },
308
+ {
309
+ "constant": false,
310
+ "inputs": [
311
+ {
312
+ "internalType": "contract Module",
313
+ "name": "prevModule",
314
+ "type": "address"
315
+ },
316
+ {
317
+ "internalType": "contract Module",
318
+ "name": "module",
319
+ "type": "address"
320
+ }
321
+ ],
322
+ "name": "disableModule",
323
+ "outputs": [],
324
+ "payable": false,
325
+ "stateMutability": "nonpayable",
326
+ "type": "function"
327
+ },
328
+ {
329
+ "constant": true,
330
+ "inputs": [],
331
+ "name": "domainSeparator",
332
+ "outputs": [
333
+ {
334
+ "internalType": "bytes32",
335
+ "name": "",
336
+ "type": "bytes32"
337
+ }
338
+ ],
339
+ "payable": false,
340
+ "stateMutability": "view",
341
+ "type": "function"
342
+ },
343
+ {
344
+ "constant": false,
345
+ "inputs": [
346
+ {
347
+ "internalType": "contract Module",
348
+ "name": "module",
349
+ "type": "address"
350
+ }
351
+ ],
352
+ "name": "enableModule",
353
+ "outputs": [],
354
+ "payable": false,
355
+ "stateMutability": "nonpayable",
356
+ "type": "function"
357
+ },
358
+ {
359
+ "constant": true,
360
+ "inputs": [
361
+ {
362
+ "internalType": "address",
363
+ "name": "to",
364
+ "type": "address"
365
+ },
366
+ {
367
+ "internalType": "uint256",
368
+ "name": "value",
369
+ "type": "uint256"
370
+ },
371
+ {
372
+ "internalType": "bytes",
373
+ "name": "data",
374
+ "type": "bytes"
375
+ },
376
+ {
377
+ "internalType": "enum Enum.Operation",
378
+ "name": "operation",
379
+ "type": "uint8"
380
+ },
381
+ {
382
+ "internalType": "uint256",
383
+ "name": "safeTxGas",
384
+ "type": "uint256"
385
+ },
386
+ {
387
+ "internalType": "uint256",
388
+ "name": "baseGas",
389
+ "type": "uint256"
390
+ },
391
+ {
392
+ "internalType": "uint256",
393
+ "name": "gasPrice",
394
+ "type": "uint256"
395
+ },
396
+ {
397
+ "internalType": "address",
398
+ "name": "gasToken",
399
+ "type": "address"
400
+ },
401
+ {
402
+ "internalType": "address",
403
+ "name": "refundReceiver",
404
+ "type": "address"
405
+ },
406
+ {
407
+ "internalType": "uint256",
408
+ "name": "_nonce",
409
+ "type": "uint256"
410
+ }
411
+ ],
412
+ "name": "encodeTransactionData",
413
+ "outputs": [
414
+ {
415
+ "internalType": "bytes",
416
+ "name": "",
417
+ "type": "bytes"
418
+ }
419
+ ],
420
+ "payable": false,
421
+ "stateMutability": "view",
422
+ "type": "function"
423
+ },
424
+ {
425
+ "constant": false,
426
+ "inputs": [
427
+ {
428
+ "internalType": "address",
429
+ "name": "to",
430
+ "type": "address"
431
+ },
432
+ {
433
+ "internalType": "uint256",
434
+ "name": "value",
435
+ "type": "uint256"
436
+ },
437
+ {
438
+ "internalType": "bytes",
439
+ "name": "data",
440
+ "type": "bytes"
441
+ },
442
+ {
443
+ "internalType": "enum Enum.Operation",
444
+ "name": "operation",
445
+ "type": "uint8"
446
+ },
447
+ {
448
+ "internalType": "uint256",
449
+ "name": "safeTxGas",
450
+ "type": "uint256"
451
+ },
452
+ {
453
+ "internalType": "uint256",
454
+ "name": "baseGas",
455
+ "type": "uint256"
456
+ },
457
+ {
458
+ "internalType": "uint256",
459
+ "name": "gasPrice",
460
+ "type": "uint256"
461
+ },
462
+ {
463
+ "internalType": "address",
464
+ "name": "gasToken",
465
+ "type": "address"
466
+ },
467
+ {
468
+ "internalType": "address payable",
469
+ "name": "refundReceiver",
470
+ "type": "address"
471
+ },
472
+ {
473
+ "internalType": "bytes",
474
+ "name": "signatures",
475
+ "type": "bytes"
476
+ }
477
+ ],
478
+ "name": "execTransaction",
479
+ "outputs": [
480
+ {
481
+ "internalType": "bool",
482
+ "name": "success",
483
+ "type": "bool"
484
+ }
485
+ ],
486
+ "payable": false,
487
+ "stateMutability": "nonpayable",
488
+ "type": "function"
489
+ },
490
+ {
491
+ "constant": false,
492
+ "inputs": [
493
+ {
494
+ "internalType": "address",
495
+ "name": "to",
496
+ "type": "address"
497
+ },
498
+ {
499
+ "internalType": "uint256",
500
+ "name": "value",
501
+ "type": "uint256"
502
+ },
503
+ {
504
+ "internalType": "bytes",
505
+ "name": "data",
506
+ "type": "bytes"
507
+ },
508
+ {
509
+ "internalType": "enum Enum.Operation",
510
+ "name": "operation",
511
+ "type": "uint8"
512
+ }
513
+ ],
514
+ "name": "execTransactionFromModule",
515
+ "outputs": [
516
+ {
517
+ "internalType": "bool",
518
+ "name": "success",
519
+ "type": "bool"
520
+ }
521
+ ],
522
+ "payable": false,
523
+ "stateMutability": "nonpayable",
524
+ "type": "function"
525
+ },
526
+ {
527
+ "constant": false,
528
+ "inputs": [
529
+ {
530
+ "internalType": "address",
531
+ "name": "to",
532
+ "type": "address"
533
+ },
534
+ {
535
+ "internalType": "uint256",
536
+ "name": "value",
537
+ "type": "uint256"
538
+ },
539
+ {
540
+ "internalType": "bytes",
541
+ "name": "data",
542
+ "type": "bytes"
543
+ },
544
+ {
545
+ "internalType": "enum Enum.Operation",
546
+ "name": "operation",
547
+ "type": "uint8"
548
+ }
549
+ ],
550
+ "name": "execTransactionFromModuleReturnData",
551
+ "outputs": [
552
+ {
553
+ "internalType": "bool",
554
+ "name": "success",
555
+ "type": "bool"
556
+ },
557
+ {
558
+ "internalType": "bytes",
559
+ "name": "returnData",
560
+ "type": "bytes"
561
+ }
562
+ ],
563
+ "payable": false,
564
+ "stateMutability": "nonpayable",
565
+ "type": "function"
566
+ },
567
+ {
568
+ "constant": true,
569
+ "inputs": [
570
+ {
571
+ "internalType": "bytes",
572
+ "name": "message",
573
+ "type": "bytes"
574
+ }
575
+ ],
576
+ "name": "getMessageHash",
577
+ "outputs": [
578
+ {
579
+ "internalType": "bytes32",
580
+ "name": "",
581
+ "type": "bytes32"
582
+ }
583
+ ],
584
+ "payable": false,
585
+ "stateMutability": "view",
586
+ "type": "function"
587
+ },
588
+ {
589
+ "constant": true,
590
+ "inputs": [],
591
+ "name": "getModules",
592
+ "outputs": [
593
+ {
594
+ "internalType": "address[]",
595
+ "name": "",
596
+ "type": "address[]"
597
+ }
598
+ ],
599
+ "payable": false,
600
+ "stateMutability": "view",
601
+ "type": "function"
602
+ },
603
+ {
604
+ "constant": true,
605
+ "inputs": [
606
+ {
607
+ "internalType": "address",
608
+ "name": "start",
609
+ "type": "address"
610
+ },
611
+ {
612
+ "internalType": "uint256",
613
+ "name": "pageSize",
614
+ "type": "uint256"
615
+ }
616
+ ],
617
+ "name": "getModulesPaginated",
618
+ "outputs": [
619
+ {
620
+ "internalType": "address[]",
621
+ "name": "array",
622
+ "type": "address[]"
623
+ },
624
+ {
625
+ "internalType": "address",
626
+ "name": "next",
627
+ "type": "address"
628
+ }
629
+ ],
630
+ "payable": false,
631
+ "stateMutability": "view",
632
+ "type": "function"
633
+ },
634
+ {
635
+ "constant": true,
636
+ "inputs": [],
637
+ "name": "getOwners",
638
+ "outputs": [
639
+ {
640
+ "internalType": "address[]",
641
+ "name": "",
642
+ "type": "address[]"
643
+ }
644
+ ],
645
+ "payable": false,
646
+ "stateMutability": "view",
647
+ "type": "function"
648
+ },
649
+ {
650
+ "constant": true,
651
+ "inputs": [],
652
+ "name": "getThreshold",
653
+ "outputs": [
654
+ {
655
+ "internalType": "uint256",
656
+ "name": "",
657
+ "type": "uint256"
658
+ }
659
+ ],
660
+ "payable": false,
661
+ "stateMutability": "view",
662
+ "type": "function"
663
+ },
664
+ {
665
+ "constant": true,
666
+ "inputs": [
667
+ {
668
+ "internalType": "address",
669
+ "name": "to",
670
+ "type": "address"
671
+ },
672
+ {
673
+ "internalType": "uint256",
674
+ "name": "value",
675
+ "type": "uint256"
676
+ },
677
+ {
678
+ "internalType": "bytes",
679
+ "name": "data",
680
+ "type": "bytes"
681
+ },
682
+ {
683
+ "internalType": "enum Enum.Operation",
684
+ "name": "operation",
685
+ "type": "uint8"
686
+ },
687
+ {
688
+ "internalType": "uint256",
689
+ "name": "safeTxGas",
690
+ "type": "uint256"
691
+ },
692
+ {
693
+ "internalType": "uint256",
694
+ "name": "baseGas",
695
+ "type": "uint256"
696
+ },
697
+ {
698
+ "internalType": "uint256",
699
+ "name": "gasPrice",
700
+ "type": "uint256"
701
+ },
702
+ {
703
+ "internalType": "address",
704
+ "name": "gasToken",
705
+ "type": "address"
706
+ },
707
+ {
708
+ "internalType": "address",
709
+ "name": "refundReceiver",
710
+ "type": "address"
711
+ },
712
+ {
713
+ "internalType": "uint256",
714
+ "name": "_nonce",
715
+ "type": "uint256"
716
+ }
717
+ ],
718
+ "name": "getTransactionHash",
719
+ "outputs": [
720
+ {
721
+ "internalType": "bytes32",
722
+ "name": "",
723
+ "type": "bytes32"
724
+ }
725
+ ],
726
+ "payable": false,
727
+ "stateMutability": "view",
728
+ "type": "function"
729
+ },
730
+ {
731
+ "constant": true,
732
+ "inputs": [
733
+ {
734
+ "internalType": "address",
735
+ "name": "owner",
736
+ "type": "address"
737
+ }
738
+ ],
739
+ "name": "isOwner",
740
+ "outputs": [
741
+ {
742
+ "internalType": "bool",
743
+ "name": "",
744
+ "type": "bool"
745
+ }
746
+ ],
747
+ "payable": false,
748
+ "stateMutability": "view",
749
+ "type": "function"
750
+ },
751
+ {
752
+ "constant": false,
753
+ "inputs": [
754
+ {
755
+ "internalType": "bytes",
756
+ "name": "_data",
757
+ "type": "bytes"
758
+ },
759
+ {
760
+ "internalType": "bytes",
761
+ "name": "_signature",
762
+ "type": "bytes"
763
+ }
764
+ ],
765
+ "name": "isValidSignature",
766
+ "outputs": [
767
+ {
768
+ "internalType": "bytes4",
769
+ "name": "",
770
+ "type": "bytes4"
771
+ }
772
+ ],
773
+ "payable": false,
774
+ "stateMutability": "nonpayable",
775
+ "type": "function"
776
+ },
777
+ {
778
+ "constant": true,
779
+ "inputs": [],
780
+ "name": "nonce",
781
+ "outputs": [
782
+ {
783
+ "internalType": "uint256",
784
+ "name": "",
785
+ "type": "uint256"
786
+ }
787
+ ],
788
+ "payable": false,
789
+ "stateMutability": "view",
790
+ "type": "function"
791
+ },
792
+ {
793
+ "constant": false,
794
+ "inputs": [
795
+ {
796
+ "internalType": "address",
797
+ "name": "prevOwner",
798
+ "type": "address"
799
+ },
800
+ {
801
+ "internalType": "address",
802
+ "name": "owner",
803
+ "type": "address"
804
+ },
805
+ {
806
+ "internalType": "uint256",
807
+ "name": "_threshold",
808
+ "type": "uint256"
809
+ }
810
+ ],
811
+ "name": "removeOwner",
812
+ "outputs": [],
813
+ "payable": false,
814
+ "stateMutability": "nonpayable",
815
+ "type": "function"
816
+ },
817
+ {
818
+ "constant": false,
819
+ "inputs": [
820
+ {
821
+ "internalType": "address",
822
+ "name": "to",
823
+ "type": "address"
824
+ },
825
+ {
826
+ "internalType": "uint256",
827
+ "name": "value",
828
+ "type": "uint256"
829
+ },
830
+ {
831
+ "internalType": "bytes",
832
+ "name": "data",
833
+ "type": "bytes"
834
+ },
835
+ {
836
+ "internalType": "enum Enum.Operation",
837
+ "name": "operation",
838
+ "type": "uint8"
839
+ }
840
+ ],
841
+ "name": "requiredTxGas",
842
+ "outputs": [
843
+ {
844
+ "internalType": "uint256",
845
+ "name": "",
846
+ "type": "uint256"
847
+ }
848
+ ],
849
+ "payable": false,
850
+ "stateMutability": "nonpayable",
851
+ "type": "function"
852
+ },
853
+ {
854
+ "constant": false,
855
+ "inputs": [
856
+ {
857
+ "internalType": "address",
858
+ "name": "handler",
859
+ "type": "address"
860
+ }
861
+ ],
862
+ "name": "setFallbackHandler",
863
+ "outputs": [],
864
+ "payable": false,
865
+ "stateMutability": "nonpayable",
866
+ "type": "function"
867
+ },
868
+ {
869
+ "constant": false,
870
+ "inputs": [
871
+ {
872
+ "internalType": "address[]",
873
+ "name": "_owners",
874
+ "type": "address[]"
875
+ },
876
+ {
877
+ "internalType": "uint256",
878
+ "name": "_threshold",
879
+ "type": "uint256"
880
+ },
881
+ {
882
+ "internalType": "address",
883
+ "name": "to",
884
+ "type": "address"
885
+ },
886
+ {
887
+ "internalType": "bytes",
888
+ "name": "data",
889
+ "type": "bytes"
890
+ },
891
+ {
892
+ "internalType": "address",
893
+ "name": "fallbackHandler",
894
+ "type": "address"
895
+ },
896
+ {
897
+ "internalType": "address",
898
+ "name": "paymentToken",
899
+ "type": "address"
900
+ },
901
+ {
902
+ "internalType": "uint256",
903
+ "name": "payment",
904
+ "type": "uint256"
905
+ },
906
+ {
907
+ "internalType": "address payable",
908
+ "name": "paymentReceiver",
909
+ "type": "address"
910
+ }
911
+ ],
912
+ "name": "setup",
913
+ "outputs": [],
914
+ "payable": false,
915
+ "stateMutability": "nonpayable",
916
+ "type": "function"
917
+ },
918
+ {
919
+ "constant": false,
920
+ "inputs": [
921
+ {
922
+ "internalType": "bytes",
923
+ "name": "_data",
924
+ "type": "bytes"
925
+ }
926
+ ],
927
+ "name": "signMessage",
928
+ "outputs": [],
929
+ "payable": false,
930
+ "stateMutability": "nonpayable",
931
+ "type": "function"
932
+ },
933
+ {
934
+ "constant": true,
935
+ "inputs": [
936
+ {
937
+ "internalType": "bytes32",
938
+ "name": "",
939
+ "type": "bytes32"
940
+ }
941
+ ],
942
+ "name": "signedMessages",
943
+ "outputs": [
944
+ {
945
+ "internalType": "uint256",
946
+ "name": "",
947
+ "type": "uint256"
948
+ }
949
+ ],
950
+ "payable": false,
951
+ "stateMutability": "view",
952
+ "type": "function"
953
+ },
954
+ {
955
+ "constant": false,
956
+ "inputs": [
957
+ {
958
+ "internalType": "address",
959
+ "name": "prevOwner",
960
+ "type": "address"
961
+ },
962
+ {
963
+ "internalType": "address",
964
+ "name": "oldOwner",
965
+ "type": "address"
966
+ },
967
+ {
968
+ "internalType": "address",
969
+ "name": "newOwner",
970
+ "type": "address"
971
+ }
972
+ ],
973
+ "name": "swapOwner",
974
+ "outputs": [],
975
+ "payable": false,
976
+ "stateMutability": "nonpayable",
977
+ "type": "function"
978
+ }
979
+ ]