@layerzerolabs/lz-evm-sdk-v2 2.3.19 → 2.3.21

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 (282) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/deployments/arbitrum-sandbox-local/DVN.json +7 -7
  3. package/deployments/arbitrum-sandbox-local/DVNDecompressor.json +5 -5
  4. package/deployments/arbitrum-sandbox-local/DVNFeeLib.json +5 -5
  5. package/deployments/arbitrum-sandbox-local/PriceFeed.json +11 -11
  6. package/deployments/arbitrum-sandbox-local/PriceFeedProxyAdmin.json +7 -7
  7. package/deployments/arbitrum-sandbox-local/PriceFeed_Implementation.json +3 -3
  8. package/deployments/arbitrum-sandbox-local/PriceFeed_Proxy.json +11 -11
  9. package/deployments/besu1-testnet/ReceiveUln301View.json +355 -0
  10. package/deployments/besu1-testnet/ReceiveUln301View_Implementation.json +232 -0
  11. package/deployments/besu1-testnet/ReceiveUln301View_Proxy.json +231 -0
  12. package/deployments/bouncebit-testnet/DVN.json +1930 -0
  13. package/deployments/bouncebit-testnet/DVNFeeLib.json +399 -0
  14. package/deployments/bouncebit-testnet/DefaultProxyAdmin.json +259 -0
  15. package/deployments/bouncebit-testnet/EndpointV2.json +2989 -0
  16. package/deployments/bouncebit-testnet/EndpointV2View.json +436 -0
  17. package/deployments/bouncebit-testnet/EndpointV2View_Implementation.json +314 -0
  18. package/deployments/bouncebit-testnet/EndpointV2View_Proxy.json +231 -0
  19. package/deployments/bouncebit-testnet/Executor.json +1653 -0
  20. package/deployments/bouncebit-testnet/ExecutorFeeLib.json +439 -0
  21. package/deployments/bouncebit-testnet/ExecutorProxyAdmin.json +284 -0
  22. package/deployments/bouncebit-testnet/Executor_Implementation.json +1720 -0
  23. package/deployments/bouncebit-testnet/Executor_Proxy.json +366 -0
  24. package/deployments/bouncebit-testnet/LzExecutor.json +758 -0
  25. package/deployments/bouncebit-testnet/LzExecutor_Implementation.json +704 -0
  26. package/deployments/bouncebit-testnet/LzExecutor_Proxy.json +245 -0
  27. package/deployments/bouncebit-testnet/PriceFeed.json +935 -0
  28. package/deployments/bouncebit-testnet/PriceFeedProxyAdmin.json +284 -0
  29. package/deployments/bouncebit-testnet/PriceFeed_Implementation.json +977 -0
  30. package/deployments/bouncebit-testnet/PriceFeed_Proxy.json +245 -0
  31. package/deployments/bouncebit-testnet/ReceiveUln301.json +1293 -0
  32. package/deployments/bouncebit-testnet/ReceiveUln301View.json +355 -0
  33. package/deployments/bouncebit-testnet/ReceiveUln301View_Implementation.json +232 -0
  34. package/deployments/bouncebit-testnet/ReceiveUln301View_Proxy.json +231 -0
  35. package/deployments/bouncebit-testnet/ReceiveUln302.json +1007 -0
  36. package/deployments/bouncebit-testnet/ReceiveUln302View.json +479 -0
  37. package/deployments/bouncebit-testnet/ReceiveUln302View_Implementation.json +385 -0
  38. package/deployments/bouncebit-testnet/ReceiveUln302View_Proxy.json +231 -0
  39. package/deployments/bouncebit-testnet/SendUln301.json +1570 -0
  40. package/deployments/bouncebit-testnet/SendUln302.json +1528 -0
  41. package/deployments/bouncebit-testnet/Treasury.json +413 -0
  42. package/deployments/bouncebit-testnet/TreasuryFeeHandler.json +126 -0
  43. package/deployments/bsc-sandbox-local/DVN.json +11 -11
  44. package/deployments/bsc-sandbox-local/DVNDecompressor.json +5 -5
  45. package/deployments/bsc-sandbox-local/DVNFeeLib.json +5 -5
  46. package/deployments/bsc-sandbox-local/DefaultProxyAdmin.json +5 -5
  47. package/deployments/bsc-sandbox-local/EndpointV2.json +9 -9
  48. package/deployments/bsc-sandbox-local/EndpointV2View.json +9 -9
  49. package/deployments/bsc-sandbox-local/EndpointV2View_Implementation.json +3 -3
  50. package/deployments/bsc-sandbox-local/EndpointV2View_Proxy.json +9 -9
  51. package/deployments/bsc-sandbox-local/Executor.json +29 -29
  52. package/deployments/bsc-sandbox-local/ExecutorDecompressor.json +5 -5
  53. package/deployments/bsc-sandbox-local/ExecutorFeeLib.json +5 -5
  54. package/deployments/bsc-sandbox-local/ExecutorProxyAdmin.json +7 -7
  55. package/deployments/bsc-sandbox-local/Executor_Implementation.json +3 -3
  56. package/deployments/bsc-sandbox-local/Executor_Proxy.json +29 -29
  57. package/deployments/bsc-sandbox-local/LzExecutor.json +11 -11
  58. package/deployments/bsc-sandbox-local/LzExecutor_Implementation.json +3 -3
  59. package/deployments/bsc-sandbox-local/LzExecutor_Proxy.json +11 -11
  60. package/deployments/bsc-sandbox-local/NonceContractMock.json +3 -3
  61. package/deployments/bsc-sandbox-local/PriceFeed.json +11 -11
  62. package/deployments/bsc-sandbox-local/PriceFeedProxyAdmin.json +7 -7
  63. package/deployments/bsc-sandbox-local/PriceFeed_Implementation.json +3 -3
  64. package/deployments/bsc-sandbox-local/PriceFeed_Proxy.json +11 -11
  65. package/deployments/bsc-sandbox-local/ReceiveUln301.json +5 -5
  66. package/deployments/bsc-sandbox-local/ReceiveUln301View.json +9 -9
  67. package/deployments/bsc-sandbox-local/ReceiveUln301View_Implementation.json +3 -3
  68. package/deployments/bsc-sandbox-local/ReceiveUln301View_Proxy.json +9 -9
  69. package/deployments/bsc-sandbox-local/ReceiveUln302.json +5 -5
  70. package/deployments/bsc-sandbox-local/ReceiveUln302View.json +9 -9
  71. package/deployments/bsc-sandbox-local/ReceiveUln302View_Implementation.json +3 -3
  72. package/deployments/bsc-sandbox-local/ReceiveUln302View_Proxy.json +9 -9
  73. package/deployments/bsc-sandbox-local/SendUln301.json +5 -5
  74. package/deployments/bsc-sandbox-local/SendUln302.json +5 -5
  75. package/deployments/bsc-sandbox-local/SimpleMessageLib.json +5 -5
  76. package/deployments/bsc-sandbox-local/Treasury.json +5 -5
  77. package/deployments/bsc-sandbox-local/TreasuryFeeHandler.json +3 -3
  78. package/deployments/ethereum-sandbox-local/DVN.json +16 -16
  79. package/deployments/ethereum-sandbox-local/DVNDecompressor.json +7 -7
  80. package/deployments/ethereum-sandbox-local/DVNFeeLib.json +7 -7
  81. package/deployments/ethereum-sandbox-local/DefaultProxyAdmin.json +7 -7
  82. package/deployments/ethereum-sandbox-local/EndpointV2.json +13 -13
  83. package/deployments/ethereum-sandbox-local/EndpointV2View.json +13 -13
  84. package/deployments/ethereum-sandbox-local/EndpointV2View_Implementation.json +4 -4
  85. package/deployments/ethereum-sandbox-local/EndpointV2View_Proxy.json +13 -13
  86. package/deployments/ethereum-sandbox-local/Executor.json +43 -43
  87. package/deployments/ethereum-sandbox-local/ExecutorDecompressor.json +7 -7
  88. package/deployments/ethereum-sandbox-local/ExecutorFeeLib.json +7 -7
  89. package/deployments/ethereum-sandbox-local/ExecutorProxyAdmin.json +10 -10
  90. package/deployments/ethereum-sandbox-local/Executor_Implementation.json +4 -4
  91. package/deployments/ethereum-sandbox-local/Executor_Proxy.json +43 -43
  92. package/deployments/ethereum-sandbox-local/LzExecutor.json +16 -16
  93. package/deployments/ethereum-sandbox-local/LzExecutor_Implementation.json +4 -4
  94. package/deployments/ethereum-sandbox-local/LzExecutor_Proxy.json +16 -16
  95. package/deployments/ethereum-sandbox-local/NonceContractMock.json +4 -4
  96. package/deployments/ethereum-sandbox-local/PriceFeed.json +16 -16
  97. package/deployments/ethereum-sandbox-local/PriceFeedProxyAdmin.json +10 -10
  98. package/deployments/ethereum-sandbox-local/PriceFeed_Implementation.json +4 -4
  99. package/deployments/ethereum-sandbox-local/PriceFeed_Proxy.json +16 -16
  100. package/deployments/ethereum-sandbox-local/ReceiveUln301.json +7 -7
  101. package/deployments/ethereum-sandbox-local/ReceiveUln301View.json +13 -13
  102. package/deployments/ethereum-sandbox-local/ReceiveUln301View_Implementation.json +4 -4
  103. package/deployments/ethereum-sandbox-local/ReceiveUln301View_Proxy.json +13 -13
  104. package/deployments/ethereum-sandbox-local/ReceiveUln302.json +7 -7
  105. package/deployments/ethereum-sandbox-local/ReceiveUln302View.json +13 -13
  106. package/deployments/ethereum-sandbox-local/ReceiveUln302View_Implementation.json +4 -4
  107. package/deployments/ethereum-sandbox-local/ReceiveUln302View_Proxy.json +13 -13
  108. package/deployments/ethereum-sandbox-local/SendUln301.json +7 -7
  109. package/deployments/ethereum-sandbox-local/SendUln302.json +7 -7
  110. package/deployments/ethereum-sandbox-local/SimpleMessageLib.json +7 -7
  111. package/deployments/ethereum-sandbox-local/Treasury.json +7 -7
  112. package/deployments/ethereum-sandbox-local/TreasuryFeeHandler.json +4 -4
  113. package/deployments/etherlink-mainnet/DVN.json +1914 -0
  114. package/deployments/etherlink-mainnet/DVNFeeLib.json +399 -0
  115. package/deployments/etherlink-mainnet/DefaultProxyAdmin.json +259 -0
  116. package/deployments/etherlink-mainnet/EndpointV2.json +2947 -0
  117. package/deployments/etherlink-mainnet/EndpointV2View.json +436 -0
  118. package/deployments/etherlink-mainnet/EndpointV2View_Implementation.json +314 -0
  119. package/deployments/etherlink-mainnet/EndpointV2View_Proxy.json +231 -0
  120. package/deployments/etherlink-mainnet/Executor.json +1621 -0
  121. package/deployments/etherlink-mainnet/ExecutorFeeLib.json +439 -0
  122. package/deployments/etherlink-mainnet/ExecutorProxyAdmin.json +284 -0
  123. package/deployments/etherlink-mainnet/Executor_Implementation.json +1720 -0
  124. package/deployments/etherlink-mainnet/Executor_Proxy.json +336 -0
  125. package/deployments/etherlink-mainnet/LzExecutor.json +758 -0
  126. package/deployments/etherlink-mainnet/LzExecutor_Implementation.json +704 -0
  127. package/deployments/etherlink-mainnet/LzExecutor_Proxy.json +245 -0
  128. package/deployments/etherlink-mainnet/PriceFeed.json +935 -0
  129. package/deployments/etherlink-mainnet/PriceFeedProxyAdmin.json +284 -0
  130. package/deployments/etherlink-mainnet/PriceFeed_Implementation.json +977 -0
  131. package/deployments/etherlink-mainnet/PriceFeed_Proxy.json +245 -0
  132. package/deployments/etherlink-mainnet/ReceiveUln301.json +1293 -0
  133. package/deployments/etherlink-mainnet/ReceiveUln301View.json +355 -0
  134. package/deployments/etherlink-mainnet/ReceiveUln301View_Implementation.json +232 -0
  135. package/deployments/etherlink-mainnet/ReceiveUln301View_Proxy.json +231 -0
  136. package/deployments/etherlink-mainnet/ReceiveUln302.json +1007 -0
  137. package/deployments/etherlink-mainnet/ReceiveUln302View.json +479 -0
  138. package/deployments/etherlink-mainnet/ReceiveUln302View_Implementation.json +385 -0
  139. package/deployments/etherlink-mainnet/ReceiveUln302View_Proxy.json +231 -0
  140. package/deployments/etherlink-mainnet/SendUln301.json +1570 -0
  141. package/deployments/etherlink-mainnet/SendUln302.json +1528 -0
  142. package/deployments/etherlink-mainnet/Treasury.json +413 -0
  143. package/deployments/etherlink-mainnet/TreasuryFeeHandler.json +126 -0
  144. package/deployments/joc-mainnet/DVN.json +1914 -0
  145. package/deployments/joc-mainnet/DVNFeeLib.json +399 -0
  146. package/deployments/joc-mainnet/DefaultProxyAdmin.json +259 -0
  147. package/deployments/joc-mainnet/EndpointV2.json +2989 -0
  148. package/deployments/joc-mainnet/EndpointV2View.json +436 -0
  149. package/deployments/joc-mainnet/EndpointV2View_Implementation.json +314 -0
  150. package/deployments/joc-mainnet/EndpointV2View_Proxy.json +231 -0
  151. package/deployments/joc-mainnet/Executor.json +1621 -0
  152. package/deployments/joc-mainnet/ExecutorFeeLib.json +439 -0
  153. package/deployments/joc-mainnet/ExecutorProxyAdmin.json +284 -0
  154. package/deployments/joc-mainnet/Executor_Implementation.json +1720 -0
  155. package/deployments/joc-mainnet/Executor_Proxy.json +336 -0
  156. package/deployments/joc-mainnet/LzExecutor.json +758 -0
  157. package/deployments/joc-mainnet/LzExecutor_Implementation.json +704 -0
  158. package/deployments/joc-mainnet/LzExecutor_Proxy.json +245 -0
  159. package/deployments/joc-mainnet/PriceFeed.json +935 -0
  160. package/deployments/joc-mainnet/PriceFeedProxyAdmin.json +284 -0
  161. package/deployments/joc-mainnet/PriceFeed_Implementation.json +977 -0
  162. package/deployments/joc-mainnet/PriceFeed_Proxy.json +245 -0
  163. package/deployments/joc-mainnet/ReceiveUln301.json +1293 -0
  164. package/deployments/joc-mainnet/ReceiveUln301View.json +355 -0
  165. package/deployments/joc-mainnet/ReceiveUln301View_Implementation.json +232 -0
  166. package/deployments/joc-mainnet/ReceiveUln301View_Proxy.json +231 -0
  167. package/deployments/joc-mainnet/ReceiveUln302.json +1007 -0
  168. package/deployments/joc-mainnet/ReceiveUln302View.json +479 -0
  169. package/deployments/joc-mainnet/ReceiveUln302View_Implementation.json +385 -0
  170. package/deployments/joc-mainnet/ReceiveUln302View_Proxy.json +231 -0
  171. package/deployments/joc-mainnet/SendUln301.json +1570 -0
  172. package/deployments/joc-mainnet/SendUln302.json +1528 -0
  173. package/deployments/joc-mainnet/Treasury.json +413 -0
  174. package/deployments/joc-mainnet/TreasuryFeeHandler.json +126 -0
  175. package/deployments/polygon-sandbox-local/DVN.json +16 -16
  176. package/deployments/polygon-sandbox-local/DVNDecompressor.json +7 -7
  177. package/deployments/polygon-sandbox-local/DVNFeeLib.json +7 -7
  178. package/deployments/polygon-sandbox-local/DefaultProxyAdmin.json +7 -7
  179. package/deployments/polygon-sandbox-local/EndpointV2.json +13 -13
  180. package/deployments/polygon-sandbox-local/EndpointV2View.json +13 -13
  181. package/deployments/polygon-sandbox-local/EndpointV2View_Implementation.json +4 -4
  182. package/deployments/polygon-sandbox-local/EndpointV2View_Proxy.json +13 -13
  183. package/deployments/polygon-sandbox-local/Executor.json +43 -43
  184. package/deployments/polygon-sandbox-local/ExecutorDecompressor.json +7 -7
  185. package/deployments/polygon-sandbox-local/ExecutorFeeLib.json +7 -7
  186. package/deployments/polygon-sandbox-local/ExecutorProxyAdmin.json +10 -10
  187. package/deployments/polygon-sandbox-local/Executor_Implementation.json +4 -4
  188. package/deployments/polygon-sandbox-local/Executor_Proxy.json +43 -43
  189. package/deployments/polygon-sandbox-local/LzExecutor.json +16 -16
  190. package/deployments/polygon-sandbox-local/LzExecutor_Implementation.json +4 -4
  191. package/deployments/polygon-sandbox-local/LzExecutor_Proxy.json +16 -16
  192. package/deployments/polygon-sandbox-local/NonceContractMock.json +4 -4
  193. package/deployments/polygon-sandbox-local/PriceFeed.json +16 -16
  194. package/deployments/polygon-sandbox-local/PriceFeedProxyAdmin.json +10 -10
  195. package/deployments/polygon-sandbox-local/PriceFeed_Implementation.json +4 -4
  196. package/deployments/polygon-sandbox-local/PriceFeed_Proxy.json +16 -16
  197. package/deployments/polygon-sandbox-local/ReceiveUln301.json +7 -7
  198. package/deployments/polygon-sandbox-local/ReceiveUln301View.json +13 -13
  199. package/deployments/polygon-sandbox-local/ReceiveUln301View_Implementation.json +4 -4
  200. package/deployments/polygon-sandbox-local/ReceiveUln301View_Proxy.json +13 -13
  201. package/deployments/polygon-sandbox-local/ReceiveUln302.json +7 -7
  202. package/deployments/polygon-sandbox-local/ReceiveUln302View.json +13 -13
  203. package/deployments/polygon-sandbox-local/ReceiveUln302View_Implementation.json +4 -4
  204. package/deployments/polygon-sandbox-local/ReceiveUln302View_Proxy.json +13 -13
  205. package/deployments/polygon-sandbox-local/SendUln301.json +7 -7
  206. package/deployments/polygon-sandbox-local/SendUln302.json +7 -7
  207. package/deployments/polygon-sandbox-local/SimpleMessageLib.json +7 -7
  208. package/deployments/polygon-sandbox-local/Treasury.json +7 -7
  209. package/deployments/polygon-sandbox-local/TreasuryFeeHandler.json +4 -4
  210. package/deployments/skale-testnet/ReceiveUln301View.json +355 -0
  211. package/deployments/skale-testnet/ReceiveUln301View_Implementation.json +232 -0
  212. package/deployments/skale-testnet/ReceiveUln301View_Proxy.json +231 -0
  213. package/deployments/taiko-mainnet/DVN.json +1914 -0
  214. package/deployments/taiko-mainnet/DVNFeeLib.json +399 -0
  215. package/deployments/taiko-mainnet/DefaultProxyAdmin.json +259 -0
  216. package/deployments/taiko-mainnet/EndpointV2.json +2989 -0
  217. package/deployments/taiko-mainnet/EndpointV2View.json +436 -0
  218. package/deployments/taiko-mainnet/EndpointV2View_Implementation.json +314 -0
  219. package/deployments/taiko-mainnet/EndpointV2View_Proxy.json +231 -0
  220. package/deployments/taiko-mainnet/Executor.json +1621 -0
  221. package/deployments/taiko-mainnet/ExecutorFeeLib.json +439 -0
  222. package/deployments/taiko-mainnet/ExecutorProxyAdmin.json +284 -0
  223. package/deployments/taiko-mainnet/Executor_Implementation.json +1720 -0
  224. package/deployments/taiko-mainnet/Executor_Proxy.json +336 -0
  225. package/deployments/taiko-mainnet/LzExecutor.json +758 -0
  226. package/deployments/taiko-mainnet/LzExecutor_Implementation.json +704 -0
  227. package/deployments/taiko-mainnet/LzExecutor_Proxy.json +245 -0
  228. package/deployments/taiko-mainnet/PriceFeed.json +935 -0
  229. package/deployments/taiko-mainnet/PriceFeedProxyAdmin.json +284 -0
  230. package/deployments/taiko-mainnet/PriceFeed_Implementation.json +977 -0
  231. package/deployments/taiko-mainnet/PriceFeed_Proxy.json +245 -0
  232. package/deployments/taiko-mainnet/ReceiveUln301.json +1293 -0
  233. package/deployments/taiko-mainnet/ReceiveUln301View.json +355 -0
  234. package/deployments/taiko-mainnet/ReceiveUln301View_Implementation.json +232 -0
  235. package/deployments/taiko-mainnet/ReceiveUln301View_Proxy.json +231 -0
  236. package/deployments/taiko-mainnet/ReceiveUln302.json +1007 -0
  237. package/deployments/taiko-mainnet/ReceiveUln302View.json +479 -0
  238. package/deployments/taiko-mainnet/ReceiveUln302View_Implementation.json +385 -0
  239. package/deployments/taiko-mainnet/ReceiveUln302View_Proxy.json +231 -0
  240. package/deployments/taiko-mainnet/SendUln301.json +1570 -0
  241. package/deployments/taiko-mainnet/SendUln302.json +1528 -0
  242. package/deployments/taiko-mainnet/Treasury.json +413 -0
  243. package/deployments/taiko-mainnet/TreasuryFeeHandler.json +126 -0
  244. package/deployments/tron-sandbox-local/DVN.json +17 -17
  245. package/deployments/tron-sandbox-local/DVNDecompressor.json +12 -12
  246. package/deployments/tron-sandbox-local/DVNFeeLib.json +10 -10
  247. package/deployments/tron-sandbox-local/PriceFeed.json +27 -27
  248. package/deployments/tron-sandbox-local/PriceFeedProxyAdmin.json +14 -14
  249. package/deployments/tron-sandbox-local/PriceFeed_Implementation.json +6 -6
  250. package/deployments/tron-sandbox-local/PriceFeed_Proxy.json +26 -26
  251. package/deployments/xchain-mainnet/DVN.json +1914 -0
  252. package/deployments/xchain-mainnet/DVNFeeLib.json +399 -0
  253. package/deployments/xchain-mainnet/DefaultProxyAdmin.json +259 -0
  254. package/deployments/xchain-mainnet/EndpointV2.json +2989 -0
  255. package/deployments/xchain-mainnet/EndpointV2View.json +436 -0
  256. package/deployments/xchain-mainnet/EndpointV2View_Implementation.json +314 -0
  257. package/deployments/xchain-mainnet/EndpointV2View_Proxy.json +231 -0
  258. package/deployments/xchain-mainnet/Executor.json +1621 -0
  259. package/deployments/xchain-mainnet/ExecutorFeeLib.json +439 -0
  260. package/deployments/xchain-mainnet/ExecutorProxyAdmin.json +284 -0
  261. package/deployments/xchain-mainnet/Executor_Implementation.json +1720 -0
  262. package/deployments/xchain-mainnet/Executor_Proxy.json +336 -0
  263. package/deployments/xchain-mainnet/LzExecutor.json +758 -0
  264. package/deployments/xchain-mainnet/LzExecutor_Implementation.json +704 -0
  265. package/deployments/xchain-mainnet/LzExecutor_Proxy.json +245 -0
  266. package/deployments/xchain-mainnet/PriceFeed.json +935 -0
  267. package/deployments/xchain-mainnet/PriceFeedProxyAdmin.json +284 -0
  268. package/deployments/xchain-mainnet/PriceFeed_Implementation.json +977 -0
  269. package/deployments/xchain-mainnet/PriceFeed_Proxy.json +245 -0
  270. package/deployments/xchain-mainnet/ReceiveUln301.json +1293 -0
  271. package/deployments/xchain-mainnet/ReceiveUln301View.json +355 -0
  272. package/deployments/xchain-mainnet/ReceiveUln301View_Implementation.json +232 -0
  273. package/deployments/xchain-mainnet/ReceiveUln301View_Proxy.json +231 -0
  274. package/deployments/xchain-mainnet/ReceiveUln302.json +1007 -0
  275. package/deployments/xchain-mainnet/ReceiveUln302View.json +479 -0
  276. package/deployments/xchain-mainnet/ReceiveUln302View_Implementation.json +385 -0
  277. package/deployments/xchain-mainnet/ReceiveUln302View_Proxy.json +231 -0
  278. package/deployments/xchain-mainnet/SendUln301.json +1570 -0
  279. package/deployments/xchain-mainnet/SendUln302.json +1528 -0
  280. package/deployments/xchain-mainnet/Treasury.json +413 -0
  281. package/deployments/xchain-mainnet/TreasuryFeeHandler.json +126 -0
  282. package/package.json +9 -9
@@ -0,0 +1,399 @@
1
+ {
2
+ "address": "0xce8358bc28dd8296Ce8cAF1CD2b44787abd65887",
3
+ "abi": [
4
+ {
5
+ "inputs": [
6
+ {
7
+ "internalType": "uint256",
8
+ "name": "_nativeDecimalsRate",
9
+ "type": "uint256"
10
+ }
11
+ ],
12
+ "stateMutability": "nonpayable",
13
+ "type": "constructor"
14
+ },
15
+ {
16
+ "inputs": [
17
+ {
18
+ "internalType": "uint32",
19
+ "name": "eid",
20
+ "type": "uint32"
21
+ }
22
+ ],
23
+ "name": "DVN_EidNotSupported",
24
+ "type": "error"
25
+ },
26
+ {
27
+ "inputs": [
28
+ {
29
+ "internalType": "uint256",
30
+ "name": "cursor",
31
+ "type": "uint256"
32
+ }
33
+ ],
34
+ "name": "DVN_InvalidDVNOptions",
35
+ "type": "error"
36
+ },
37
+ {
38
+ "inputs": [
39
+ {
40
+ "internalType": "uint8",
41
+ "name": "optionType",
42
+ "type": "uint8"
43
+ }
44
+ ],
45
+ "name": "DVN_UnsupportedOptionType",
46
+ "type": "error"
47
+ },
48
+ {
49
+ "inputs": [
50
+ {
51
+ "internalType": "address",
52
+ "name": "_to",
53
+ "type": "address"
54
+ },
55
+ {
56
+ "internalType": "uint256",
57
+ "name": "_value",
58
+ "type": "uint256"
59
+ }
60
+ ],
61
+ "name": "Transfer_NativeFailed",
62
+ "type": "error"
63
+ },
64
+ {
65
+ "inputs": [],
66
+ "name": "Transfer_ToAddressIsZero",
67
+ "type": "error"
68
+ },
69
+ {
70
+ "anonymous": false,
71
+ "inputs": [
72
+ {
73
+ "indexed": true,
74
+ "internalType": "address",
75
+ "name": "previousOwner",
76
+ "type": "address"
77
+ },
78
+ {
79
+ "indexed": true,
80
+ "internalType": "address",
81
+ "name": "newOwner",
82
+ "type": "address"
83
+ }
84
+ ],
85
+ "name": "OwnershipTransferred",
86
+ "type": "event"
87
+ },
88
+ {
89
+ "inputs": [
90
+ {
91
+ "components": [
92
+ {
93
+ "internalType": "address",
94
+ "name": "priceFeed",
95
+ "type": "address"
96
+ },
97
+ {
98
+ "internalType": "uint32",
99
+ "name": "dstEid",
100
+ "type": "uint32"
101
+ },
102
+ {
103
+ "internalType": "uint64",
104
+ "name": "confirmations",
105
+ "type": "uint64"
106
+ },
107
+ {
108
+ "internalType": "address",
109
+ "name": "sender",
110
+ "type": "address"
111
+ },
112
+ {
113
+ "internalType": "uint64",
114
+ "name": "quorum",
115
+ "type": "uint64"
116
+ },
117
+ {
118
+ "internalType": "uint16",
119
+ "name": "defaultMultiplierBps",
120
+ "type": "uint16"
121
+ }
122
+ ],
123
+ "internalType": "struct IDVNFeeLib.FeeParams",
124
+ "name": "_params",
125
+ "type": "tuple"
126
+ },
127
+ {
128
+ "components": [
129
+ {
130
+ "internalType": "uint64",
131
+ "name": "gas",
132
+ "type": "uint64"
133
+ },
134
+ {
135
+ "internalType": "uint16",
136
+ "name": "multiplierBps",
137
+ "type": "uint16"
138
+ },
139
+ {
140
+ "internalType": "uint128",
141
+ "name": "floorMarginUSD",
142
+ "type": "uint128"
143
+ }
144
+ ],
145
+ "internalType": "struct IDVN.DstConfig",
146
+ "name": "_dstConfig",
147
+ "type": "tuple"
148
+ },
149
+ {
150
+ "internalType": "bytes",
151
+ "name": "_options",
152
+ "type": "bytes"
153
+ }
154
+ ],
155
+ "name": "getFee",
156
+ "outputs": [
157
+ {
158
+ "internalType": "uint256",
159
+ "name": "",
160
+ "type": "uint256"
161
+ }
162
+ ],
163
+ "stateMutability": "view",
164
+ "type": "function"
165
+ },
166
+ {
167
+ "inputs": [
168
+ {
169
+ "components": [
170
+ {
171
+ "internalType": "address",
172
+ "name": "priceFeed",
173
+ "type": "address"
174
+ },
175
+ {
176
+ "internalType": "uint32",
177
+ "name": "dstEid",
178
+ "type": "uint32"
179
+ },
180
+ {
181
+ "internalType": "uint64",
182
+ "name": "confirmations",
183
+ "type": "uint64"
184
+ },
185
+ {
186
+ "internalType": "address",
187
+ "name": "sender",
188
+ "type": "address"
189
+ },
190
+ {
191
+ "internalType": "uint64",
192
+ "name": "quorum",
193
+ "type": "uint64"
194
+ },
195
+ {
196
+ "internalType": "uint16",
197
+ "name": "defaultMultiplierBps",
198
+ "type": "uint16"
199
+ }
200
+ ],
201
+ "internalType": "struct IDVNFeeLib.FeeParams",
202
+ "name": "_params",
203
+ "type": "tuple"
204
+ },
205
+ {
206
+ "components": [
207
+ {
208
+ "internalType": "uint64",
209
+ "name": "gas",
210
+ "type": "uint64"
211
+ },
212
+ {
213
+ "internalType": "uint16",
214
+ "name": "multiplierBps",
215
+ "type": "uint16"
216
+ },
217
+ {
218
+ "internalType": "uint128",
219
+ "name": "floorMarginUSD",
220
+ "type": "uint128"
221
+ }
222
+ ],
223
+ "internalType": "struct IDVN.DstConfig",
224
+ "name": "_dstConfig",
225
+ "type": "tuple"
226
+ },
227
+ {
228
+ "internalType": "bytes",
229
+ "name": "_options",
230
+ "type": "bytes"
231
+ }
232
+ ],
233
+ "name": "getFeeOnSend",
234
+ "outputs": [
235
+ {
236
+ "internalType": "uint256",
237
+ "name": "",
238
+ "type": "uint256"
239
+ }
240
+ ],
241
+ "stateMutability": "payable",
242
+ "type": "function"
243
+ },
244
+ {
245
+ "inputs": [],
246
+ "name": "owner",
247
+ "outputs": [
248
+ {
249
+ "internalType": "address",
250
+ "name": "",
251
+ "type": "address"
252
+ }
253
+ ],
254
+ "stateMutability": "view",
255
+ "type": "function"
256
+ },
257
+ {
258
+ "inputs": [],
259
+ "name": "renounceOwnership",
260
+ "outputs": [],
261
+ "stateMutability": "nonpayable",
262
+ "type": "function"
263
+ },
264
+ {
265
+ "inputs": [
266
+ {
267
+ "internalType": "address",
268
+ "name": "newOwner",
269
+ "type": "address"
270
+ }
271
+ ],
272
+ "name": "transferOwnership",
273
+ "outputs": [],
274
+ "stateMutability": "nonpayable",
275
+ "type": "function"
276
+ },
277
+ {
278
+ "inputs": [
279
+ {
280
+ "internalType": "address",
281
+ "name": "_token",
282
+ "type": "address"
283
+ },
284
+ {
285
+ "internalType": "address",
286
+ "name": "_to",
287
+ "type": "address"
288
+ },
289
+ {
290
+ "internalType": "uint256",
291
+ "name": "_amount",
292
+ "type": "uint256"
293
+ }
294
+ ],
295
+ "name": "withdrawToken",
296
+ "outputs": [],
297
+ "stateMutability": "nonpayable",
298
+ "type": "function"
299
+ },
300
+ {
301
+ "stateMutability": "payable",
302
+ "type": "receive"
303
+ }
304
+ ],
305
+ "transactionHash": "0x8df1407c661b2012a5290ac203b5778b90bf0864592c86ff14102c14602289b6",
306
+ "receipt": {
307
+ "to": null,
308
+ "from": "0x9F403140Bc0574D7d36eA472b82DAa1Bbd4eF327",
309
+ "contractAddress": "0xce8358bc28dd8296Ce8cAF1CD2b44787abd65887",
310
+ "transactionIndex": 0,
311
+ "gasUsed": "20942434",
312
+ "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000001800000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000810000000000020000000000000000000000000000000000000000000000000000000000000000000",
313
+ "blockHash": "0x5379624bdc3fd7704d7f5e0701247aef624a3d2cc02535c0b8a1ffc6ce78ebf7",
314
+ "transactionHash": "0x8df1407c661b2012a5290ac203b5778b90bf0864592c86ff14102c14602289b6",
315
+ "logs": [
316
+ {
317
+ "transactionIndex": 0,
318
+ "blockNumber": 295047,
319
+ "transactionHash": "0x8df1407c661b2012a5290ac203b5778b90bf0864592c86ff14102c14602289b6",
320
+ "address": "0xce8358bc28dd8296Ce8cAF1CD2b44787abd65887",
321
+ "topics": [
322
+ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
323
+ "0x0000000000000000000000000000000000000000000000000000000000000000",
324
+ "0x0000000000000000000000009f403140bc0574d7d36ea472b82daa1bbd4ef327"
325
+ ],
326
+ "data": "0x",
327
+ "logIndex": 0,
328
+ "blockHash": "0x5379624bdc3fd7704d7f5e0701247aef624a3d2cc02535c0b8a1ffc6ce78ebf7"
329
+ }
330
+ ],
331
+ "blockNumber": 295047,
332
+ "cumulativeGasUsed": "20942434",
333
+ "status": 1,
334
+ "byzantium": true
335
+ },
336
+ "args": [
337
+ "1000000000000000000"
338
+ ],
339
+ "numDeployments": 1,
340
+ "solcInputHash": "72bb6280e8e5b284c7ae61d40992d7e4",
341
+ "metadata": "{\"compiler\":{\"version\":\"0.8.22+commit.4fc1097e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_nativeDecimalsRate\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"eid\",\"type\":\"uint32\"}],\"name\":\"DVN_EidNotSupported\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"cursor\",\"type\":\"uint256\"}],\"name\":\"DVN_InvalidDVNOptions\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"optionType\",\"type\":\"uint8\"}],\"name\":\"DVN_UnsupportedOptionType\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_value\",\"type\":\"uint256\"}],\"name\":\"Transfer_NativeFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"Transfer_ToAddressIsZero\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"priceFeed\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"dstEid\",\"type\":\"uint32\"},{\"internalType\":\"uint64\",\"name\":\"confirmations\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"quorum\",\"type\":\"uint64\"},{\"internalType\":\"uint16\",\"name\":\"defaultMultiplierBps\",\"type\":\"uint16\"}],\"internalType\":\"struct IDVNFeeLib.FeeParams\",\"name\":\"_params\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint64\",\"name\":\"gas\",\"type\":\"uint64\"},{\"internalType\":\"uint16\",\"name\":\"multiplierBps\",\"type\":\"uint16\"},{\"internalType\":\"uint128\",\"name\":\"floorMarginUSD\",\"type\":\"uint128\"}],\"internalType\":\"struct IDVN.DstConfig\",\"name\":\"_dstConfig\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"_options\",\"type\":\"bytes\"}],\"name\":\"getFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"priceFeed\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"dstEid\",\"type\":\"uint32\"},{\"internalType\":\"uint64\",\"name\":\"confirmations\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"quorum\",\"type\":\"uint64\"},{\"internalType\":\"uint16\",\"name\":\"defaultMultiplierBps\",\"type\":\"uint16\"}],\"internalType\":\"struct IDVNFeeLib.FeeParams\",\"name\":\"_params\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint64\",\"name\":\"gas\",\"type\":\"uint64\"},{\"internalType\":\"uint16\",\"name\":\"multiplierBps\",\"type\":\"uint16\"},{\"internalType\":\"uint128\",\"name\":\"floorMarginUSD\",\"type\":\"uint128\"}],\"internalType\":\"struct IDVN.DstConfig\",\"name\":\"_dstConfig\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"_options\",\"type\":\"bytes\"}],\"name\":\"getFeeOnSend\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"withdrawToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"getFee((address,uint32,uint64,address,uint64,uint16),(uint64,uint16,uint128),bytes)\":{\"details\":\"get fee view function\",\"params\":{\"\":\"//_options options\",\"_dstConfig\":\"dst config\",\"_params\":\"fee params\"}},\"getFeeOnSend((address,uint32,uint64,address,uint64,uint16),(uint64,uint16,uint128),bytes)\":{\"details\":\"get fee function that can change state. e.g. paying priceFeed\",\"params\":{\"\":\"//_options options\",\"_dstConfig\":\"dst config\",\"_params\":\"fee params\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/uln/dvn/DVNFeeLib.sol\":\"DVNFeeLib\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":20000},\"remappings\":[]},\"sources\":{\"@layerzerolabs/lz-evm-protocol-v2/contracts/libs/CalldataBytesLib.sol\":{\"content\":\"// SPDX-License-Identifier: LZBL-1.2\\n\\npragma solidity ^0.8.20;\\n\\nlibrary CalldataBytesLib {\\n function toU8(bytes calldata _bytes, uint256 _start) internal pure returns (uint8) {\\n return uint8(_bytes[_start]);\\n }\\n\\n function toU16(bytes calldata _bytes, uint256 _start) internal pure returns (uint16) {\\n unchecked {\\n uint256 end = _start + 2;\\n return uint16(bytes2(_bytes[_start:end]));\\n }\\n }\\n\\n function toU32(bytes calldata _bytes, uint256 _start) internal pure returns (uint32) {\\n unchecked {\\n uint256 end = _start + 4;\\n return uint32(bytes4(_bytes[_start:end]));\\n }\\n }\\n\\n function toU64(bytes calldata _bytes, uint256 _start) internal pure returns (uint64) {\\n unchecked {\\n uint256 end = _start + 8;\\n return uint64(bytes8(_bytes[_start:end]));\\n }\\n }\\n\\n function toU128(bytes calldata _bytes, uint256 _start) internal pure returns (uint128) {\\n unchecked {\\n uint256 end = _start + 16;\\n return uint128(bytes16(_bytes[_start:end]));\\n }\\n }\\n\\n function toU256(bytes calldata _bytes, uint256 _start) internal pure returns (uint256) {\\n unchecked {\\n uint256 end = _start + 32;\\n return uint256(bytes32(_bytes[_start:end]));\\n }\\n }\\n\\n function toAddr(bytes calldata _bytes, uint256 _start) internal pure returns (address) {\\n unchecked {\\n uint256 end = _start + 20;\\n return address(bytes20(_bytes[_start:end]));\\n }\\n }\\n\\n function toB32(bytes calldata _bytes, uint256 _start) internal pure returns (bytes32) {\\n unchecked {\\n uint256 end = _start + 32;\\n return bytes32(_bytes[_start:end]);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x5c0db161cef6603c3b256d4220f489419e7478ef775e52a80056654129c61875\",\"license\":\"LZBL-1.2\"},\"@layerzerolabs/lz-evm-protocol-v2/contracts/libs/Transfer.sol\":{\"content\":\"// SPDX-License-Identifier: LZBL-1.2\\n\\npragma solidity ^0.8.20;\\n\\nimport { SafeERC20 } from \\\"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\\\";\\nimport { IERC20 } from \\\"@openzeppelin/contracts/token/ERC20/IERC20.sol\\\";\\n\\nlibrary Transfer {\\n using SafeERC20 for IERC20;\\n\\n address internal constant ADDRESS_ZERO = address(0);\\n\\n error Transfer_NativeFailed(address _to, uint256 _value);\\n error Transfer_ToAddressIsZero();\\n\\n function native(address _to, uint256 _value) internal {\\n if (_to == ADDRESS_ZERO) revert Transfer_ToAddressIsZero();\\n (bool success, ) = _to.call{ value: _value }(\\\"\\\");\\n if (!success) revert Transfer_NativeFailed(_to, _value);\\n }\\n\\n function token(address _token, address _to, uint256 _value) internal {\\n if (_to == ADDRESS_ZERO) revert Transfer_ToAddressIsZero();\\n IERC20(_token).safeTransfer(_to, _value);\\n }\\n\\n function nativeOrToken(address _token, address _to, uint256 _value) internal {\\n if (_token == ADDRESS_ZERO) {\\n native(_to, _value);\\n } else {\\n token(_token, _to, _value);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x621d6dd5b8b7e827351459fff4ac87c16ba4656757592cf67de8b199aea4cf9a\",\"license\":\"LZBL-1.2\"},\"@layerzerolabs/lz-evm-protocol-v2/contracts/messagelib/libs/BitMaps.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\n// modified from https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/structs/BitMaps.sol\\npragma solidity ^0.8.20;\\n\\ntype BitMap256 is uint256;\\n\\nusing BitMaps for BitMap256 global;\\n\\nlibrary BitMaps {\\n /**\\n * @dev Returns whether the bit at `index` is set.\\n */\\n function get(BitMap256 bitmap, uint8 index) internal pure returns (bool) {\\n uint256 mask = 1 << index;\\n return BitMap256.unwrap(bitmap) & mask != 0;\\n }\\n\\n /**\\n * @dev Sets the bit at `index`.\\n */\\n function set(BitMap256 bitmap, uint8 index) internal pure returns (BitMap256) {\\n uint256 mask = 1 << index;\\n return BitMap256.wrap(BitMap256.unwrap(bitmap) | mask);\\n }\\n}\\n\",\"keccak256\":\"0xaad3c72ef43480d2253fd48b394e8fb7286d009991d2bc4e61be58ce48ac5ee9\",\"license\":\"MIT\"},\"@openzeppelin/contracts/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n constructor() {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xba43b97fba0d32eb4254f6a5a297b39a19a247082a02d6e69349e071e2946218\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20 {\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n\\n /**\\n * @dev Returns the amount of tokens in existence.\\n */\\n function totalSupply() external view returns (uint256);\\n\\n /**\\n * @dev Returns the amount of tokens owned by `account`.\\n */\\n function balanceOf(address account) external view returns (uint256);\\n\\n /**\\n * @dev Moves `amount` tokens from the caller's account to `to`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address to, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `from` to `to` using the\\n * allowance mechanism. `amount` is then deducted from the caller's\\n * allowance.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transferFrom(address from, address to, uint256 amount) external returns (bool);\\n}\\n\",\"keccak256\":\"0x287b55befed2961a7eabd7d7b1b2839cbca8a5b80ef8dcbb25ed3d4c2002c305\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/IERC20Permit.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\\n * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\\n *\\n * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\\n * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't\\n * need to send a transaction, and thus is not required to hold Ether at all.\\n *\\n * ==== Security Considerations\\n *\\n * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature\\n * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be\\n * considered as an intention to spend the allowance in any specific way. The second is that because permits have\\n * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should\\n * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be\\n * generally recommended is:\\n *\\n * ```solidity\\n * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {\\n * try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}\\n * doThing(..., value);\\n * }\\n *\\n * function doThing(..., uint256 value) public {\\n * token.safeTransferFrom(msg.sender, address(this), value);\\n * ...\\n * }\\n * ```\\n *\\n * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of\\n * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also\\n * {SafeERC20-safeTransferFrom}).\\n *\\n * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so\\n * contracts should have entry points that don't rely on permit.\\n */\\ninterface IERC20Permit {\\n /**\\n * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,\\n * given ``owner``'s signed approval.\\n *\\n * IMPORTANT: The same issues {IERC20-approve} has related to transaction\\n * ordering also apply here.\\n *\\n * Emits an {Approval} event.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n * - `deadline` must be a timestamp in the future.\\n * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`\\n * over the EIP712-formatted function arguments.\\n * - the signature must use ``owner``'s current nonce (see {nonces}).\\n *\\n * For more information on the signature format, see the\\n * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP\\n * section].\\n *\\n * CAUTION: See Security Considerations above.\\n */\\n function permit(\\n address owner,\\n address spender,\\n uint256 value,\\n uint256 deadline,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) external;\\n\\n /**\\n * @dev Returns the current nonce for `owner`. This value must be\\n * included whenever a signature is generated for {permit}.\\n *\\n * Every successful call to {permit} increases ``owner``'s nonce by one. This\\n * prevents a signature from being used multiple times.\\n */\\n function nonces(address owner) external view returns (uint256);\\n\\n /**\\n * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.\\n */\\n // solhint-disable-next-line func-name-mixedcase\\n function DOMAIN_SEPARATOR() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0xb264c03a3442eb37a68ad620cefd1182766b58bee6cec40343480392d6b14d69\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20.sol\\\";\\nimport \\\"../extensions/IERC20Permit.sol\\\";\\nimport \\\"../../../utils/Address.sol\\\";\\n\\n/**\\n * @title SafeERC20\\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\\n * contract returns false). Tokens that return no value (and instead revert or\\n * throw on failure) are also supported, non-reverting calls are assumed to be\\n * successful.\\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\\n */\\nlibrary SafeERC20 {\\n using Address for address;\\n\\n /**\\n * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,\\n * non-reverting calls are assumed to be successful.\\n */\\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\\n }\\n\\n /**\\n * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the\\n * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.\\n */\\n function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));\\n }\\n\\n /**\\n * @dev Deprecated. This function has issues similar to the ones found in\\n * {IERC20-approve}, and its usage is discouraged.\\n *\\n * Whenever possible, use {safeIncreaseAllowance} and\\n * {safeDecreaseAllowance} instead.\\n */\\n function safeApprove(IERC20 token, address spender, uint256 value) internal {\\n // safeApprove should only be called when setting an initial allowance,\\n // or when resetting it to zero. To increase and decrease it, use\\n // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\\n require(\\n (value == 0) || (token.allowance(address(this), spender) == 0),\\n \\\"SafeERC20: approve from non-zero to non-zero allowance\\\"\\n );\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\\n }\\n\\n /**\\n * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\\n * non-reverting calls are assumed to be successful.\\n */\\n function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\\n uint256 oldAllowance = token.allowance(address(this), spender);\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));\\n }\\n\\n /**\\n * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,\\n * non-reverting calls are assumed to be successful.\\n */\\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {\\n unchecked {\\n uint256 oldAllowance = token.allowance(address(this), spender);\\n require(oldAllowance >= value, \\\"SafeERC20: decreased allowance below zero\\\");\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));\\n }\\n }\\n\\n /**\\n * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,\\n * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval\\n * to be set to zero before setting it to a non-zero value, such as USDT.\\n */\\n function forceApprove(IERC20 token, address spender, uint256 value) internal {\\n bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);\\n\\n if (!_callOptionalReturnBool(token, approvalCall)) {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));\\n _callOptionalReturn(token, approvalCall);\\n }\\n }\\n\\n /**\\n * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.\\n * Revert on invalid signature.\\n */\\n function safePermit(\\n IERC20Permit token,\\n address owner,\\n address spender,\\n uint256 value,\\n uint256 deadline,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal {\\n uint256 nonceBefore = token.nonces(owner);\\n token.permit(owner, spender, value, deadline, v, r, s);\\n uint256 nonceAfter = token.nonces(owner);\\n require(nonceAfter == nonceBefore + 1, \\\"SafeERC20: permit did not succeed\\\");\\n }\\n\\n /**\\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\\n * on the return value: the return value is optional (but if data is returned, it must not be false).\\n * @param token The token targeted by the call.\\n * @param data The call data (encoded using abi.encode or one of its variants).\\n */\\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\\n // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that\\n // the target address contains contract code and also asserts for success in the low-level call.\\n\\n bytes memory returndata = address(token).functionCall(data, \\\"SafeERC20: low-level call failed\\\");\\n require(returndata.length == 0 || abi.decode(returndata, (bool)), \\\"SafeERC20: ERC20 operation did not succeed\\\");\\n }\\n\\n /**\\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\\n * on the return value: the return value is optional (but if data is returned, it must not be false).\\n * @param token The token targeted by the call.\\n * @param data The call data (encoded using abi.encode or one of its variants).\\n *\\n * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.\\n */\\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\\n // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false\\n // and not revert is the subcall reverts.\\n\\n (bool success, bytes memory returndata) = address(token).call(data);\\n return\\n success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));\\n }\\n}\\n\",\"keccak256\":\"0xabefac93435967b4d36a4fabcbdbb918d1f0b7ae3c3d85bc30923b326c927ed1\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n *\\n * Furthermore, `isContract` will also return true if the target contract within\\n * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\\n * which only has an effect at the end of a transaction.\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x006dd67219697fe68d7fbfdea512e7c4cb64a43565ed86171d67e844982da6fa\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0xa92e4fa126feb6907daa0513ddd816b2eb91f30a808de54f63c17d0e162c3439\",\"license\":\"MIT\"},\"contracts/interfaces/ILayerZeroPriceFeed.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.8.0;\\n\\ninterface ILayerZeroPriceFeed {\\n /**\\n * @dev\\n * priceRatio: (USD price of 1 unit of remote native token in unit of local native token) * PRICE_RATIO_DENOMINATOR\\n */\\n\\n struct Price {\\n uint128 priceRatio; // float value * 10 ^ 20, decimal awared. for aptos to evm, the basis would be (10^18 / 10^8) * 10 ^20 = 10 ^ 30.\\n uint64 gasPriceInUnit; // for evm, it is in wei, for aptos, it is in octas.\\n uint32 gasPerByte;\\n }\\n\\n struct UpdatePrice {\\n uint32 eid;\\n Price price;\\n }\\n\\n /**\\n * @dev\\n * ArbGasInfo.go:GetPricesInArbGas\\n *\\n */\\n struct ArbitrumPriceExt {\\n uint64 gasPerL2Tx; // L2 overhead\\n uint32 gasPerL1CallDataByte;\\n }\\n\\n struct UpdatePriceExt {\\n uint32 eid;\\n Price price;\\n ArbitrumPriceExt extend;\\n }\\n\\n error LZ_PriceFeed_OnlyPriceUpdater();\\n error LZ_PriceFeed_InsufficientFee(uint256 provided, uint256 required);\\n error LZ_PriceFeed_NotAnOPStack(uint32 l2Eid);\\n\\n function nativeTokenPriceUSD() external view returns (uint128);\\n\\n function getFee(uint32 _dstEid, uint256 _callDataSize, uint256 _gas) external view returns (uint256);\\n\\n function getPrice(uint32 _dstEid) external view returns (Price memory);\\n\\n function getPriceRatioDenominator() external view returns (uint128);\\n\\n function estimateFeeByEid(\\n uint32 _dstEid,\\n uint256 _callDataSize,\\n uint256 _gas\\n ) external view returns (uint256 fee, uint128 priceRatio, uint128 priceRatioDenominator, uint128 nativePriceUSD);\\n\\n function estimateFeeOnSend(\\n uint32 _dstEid,\\n uint256 _callDataSize,\\n uint256 _gas\\n ) external payable returns (uint256 fee, uint128 priceRatio, uint128 priceRatioDenominator, uint128 nativePriceUSD);\\n}\\n\",\"keccak256\":\"0xb4df72798a64f5ea44775b526e0c417c3de0ffc661659d7b31d5b28567c6fbcc\",\"license\":\"MIT\"},\"contracts/interfaces/IWorker.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.8.0;\\n\\ninterface IWorker {\\n event SetWorkerLib(address workerLib);\\n event SetPriceFeed(address priceFeed);\\n event SetDefaultMultiplierBps(uint16 multiplierBps);\\n event SetSupportedOptionTypes(uint32 dstEid, uint8[] optionTypes);\\n event Withdraw(address lib, address to, uint256 amount);\\n\\n error Worker_NotAllowed();\\n error Worker_OnlyMessageLib();\\n error Worker_RoleRenouncingDisabled();\\n\\n function setPriceFeed(address _priceFeed) external;\\n\\n function priceFeed() external view returns (address);\\n\\n function setDefaultMultiplierBps(uint16 _multiplierBps) external;\\n\\n function defaultMultiplierBps() external view returns (uint16);\\n\\n function withdrawFee(address _lib, address _to, uint256 _amount) external;\\n\\n function setSupportedOptionTypes(uint32 _eid, uint8[] calldata _optionTypes) external;\\n\\n function getSupportedOptionTypes(uint32 _eid) external view returns (uint8[] memory);\\n}\\n\",\"keccak256\":\"0xa6b61913767305227576cc6da5067de4208f09a4f58bfbfe32beafdfae9869b1\",\"license\":\"MIT\"},\"contracts/uln/dvn/DVNFeeLib.sol\":{\"content\":\"// SPDX-License-Identifier: LZBL-1.2\\n\\npragma solidity ^0.8.20;\\n\\nimport { Ownable } from \\\"@openzeppelin/contracts/access/Ownable.sol\\\";\\nimport { Transfer } from \\\"@layerzerolabs/lz-evm-protocol-v2/contracts/libs/Transfer.sol\\\";\\n\\nimport { ILayerZeroPriceFeed } from \\\"../../interfaces/ILayerZeroPriceFeed.sol\\\";\\nimport { IDVN } from \\\"../interfaces/IDVN.sol\\\";\\nimport { IDVNFeeLib } from \\\"../interfaces/IDVNFeeLib.sol\\\";\\nimport { DVNOptions } from \\\"../libs/DVNOptions.sol\\\";\\n\\ncontract DVNFeeLib is Ownable, IDVNFeeLib {\\n using DVNOptions for bytes;\\n\\n uint16 internal constant EXECUTE_FIXED_BYTES = 68; // encoded: funcSigHash + params -> 4 + (32 * 2)\\n uint16 internal constant SIGNATURE_RAW_BYTES = 65; // not encoded\\n // callData(updateHash) = 132 (4 + 32 * 4), padded to 32 = 160 and encoded as bytes with an 64 byte overhead = 224\\n uint16 internal constant UPDATE_HASH_BYTES = 224;\\n\\n uint256 private immutable nativeDecimalsRate;\\n\\n constructor(uint256 _nativeDecimalsRate) {\\n nativeDecimalsRate = _nativeDecimalsRate;\\n }\\n\\n // ================================ OnlyOwner ================================\\n function withdrawToken(address _token, address _to, uint256 _amount) external onlyOwner {\\n // transfers native if _token is address(0x0)\\n Transfer.nativeOrToken(_token, _to, _amount);\\n }\\n\\n // ========================= External =========================\\n /// @dev get fee function that can change state. e.g. paying priceFeed\\n /// @param _params fee params\\n /// @param _dstConfig dst config\\n /// @param //_options options\\n function getFeeOnSend(\\n FeeParams calldata _params,\\n IDVN.DstConfig calldata _dstConfig,\\n bytes calldata _options\\n ) external payable returns (uint256) {\\n if (_dstConfig.gas == 0) revert DVN_EidNotSupported(_params.dstEid);\\n\\n _decodeDVNOptions(_options); // todo: validate options\\n\\n uint256 callDataSize = _getCallDataSize(_params.quorum);\\n\\n // for future versions where priceFeed charges a fee\\n // uint256 priceFeedFee = ILayerZeroPriceFeed(_params.priceFeed).getFee(_params.dstEid, callDataSize, _dstConfig.gas);\\n // (uint256 fee, , , uint128 nativePriceUSD) = ILayerZeroPriceFeed(_params.priceFeed).estimateFeeOnSend{\\n // value: priceFeedFee\\n // }(_params.dstEid, callDataSize, _dstConfig.gas);\\n\\n (uint256 fee, , , uint128 nativePriceUSD) = ILayerZeroPriceFeed(_params.priceFeed).estimateFeeOnSend(\\n _params.dstEid,\\n callDataSize,\\n _dstConfig.gas\\n );\\n\\n return\\n _applyPremium(\\n fee,\\n _dstConfig.multiplierBps,\\n _params.defaultMultiplierBps,\\n _dstConfig.floorMarginUSD,\\n nativePriceUSD\\n );\\n }\\n\\n // ========================= View =========================\\n /// @dev get fee view function\\n /// @param _params fee params\\n /// @param _dstConfig dst config\\n /// @param //_options options\\n function getFee(\\n FeeParams calldata _params,\\n IDVN.DstConfig calldata _dstConfig,\\n bytes calldata _options\\n ) external view returns (uint256) {\\n if (_dstConfig.gas == 0) revert DVN_EidNotSupported(_params.dstEid);\\n\\n _decodeDVNOptions(_options); // validate options\\n\\n uint256 callDataSize = _getCallDataSize(_params.quorum);\\n (uint256 fee, , , uint128 nativePriceUSD) = ILayerZeroPriceFeed(_params.priceFeed).estimateFeeByEid(\\n _params.dstEid,\\n callDataSize,\\n _dstConfig.gas\\n );\\n return\\n _applyPremium(\\n fee,\\n _dstConfig.multiplierBps,\\n _params.defaultMultiplierBps,\\n _dstConfig.floorMarginUSD,\\n nativePriceUSD\\n );\\n }\\n\\n // ========================= Internal =========================\\n function _getCallDataSize(uint256 _quorum) internal pure returns (uint256) {\\n uint256 totalSignatureBytes = _quorum * SIGNATURE_RAW_BYTES;\\n if (totalSignatureBytes % 32 != 0) {\\n totalSignatureBytes = totalSignatureBytes - (totalSignatureBytes % 32) + 32;\\n }\\n // getFee should charge on execute(updateHash)\\n // totalSignatureBytesPadded also has 64 overhead for bytes\\n return uint256(EXECUTE_FIXED_BYTES) + UPDATE_HASH_BYTES + totalSignatureBytes + 64;\\n }\\n\\n function _applyPremium(\\n uint256 _fee,\\n uint16 _bps,\\n uint16 _defaultBps,\\n uint128 _marginUSD,\\n uint128 _nativePriceUSD\\n ) internal view returns (uint256) {\\n uint16 multiplierBps = _bps == 0 ? _defaultBps : _bps;\\n\\n uint256 feeWithMultiplier = (_fee * multiplierBps) / 10000;\\n if (_nativePriceUSD == 0 || _marginUSD == 0) {\\n return feeWithMultiplier;\\n }\\n\\n uint256 feeWithFloorMargin = _fee + (_marginUSD * nativeDecimalsRate) / _nativePriceUSD;\\n\\n return feeWithFloorMargin > feeWithMultiplier ? feeWithFloorMargin : feeWithMultiplier;\\n }\\n\\n function _decodeDVNOptions(bytes calldata _options) internal pure returns (uint256) {\\n uint256 cursor;\\n while (cursor < _options.length) {\\n (uint8 optionType, , uint256 newCursor) = _options.nextDVNOption(cursor);\\n cursor = newCursor;\\n revert DVN_UnsupportedOptionType(optionType);\\n }\\n if (cursor != _options.length) revert DVNOptions.DVN_InvalidDVNOptions(cursor);\\n\\n return 0; // todo: precrime fee model\\n }\\n\\n // send funds here to pay for price feed directly\\n receive() external payable {}\\n}\\n\",\"keccak256\":\"0xeef75205d7a5b2f5ba95a85855606a80af05c6ba5403bd77e29a9f1a9b34d1ac\",\"license\":\"LZBL-1.2\"},\"contracts/uln/interfaces/IDVN.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.8.0;\\n\\nimport { IWorker } from \\\"../../interfaces/IWorker.sol\\\";\\nimport { ILayerZeroDVN } from \\\"./ILayerZeroDVN.sol\\\";\\n\\ninterface IDVN is IWorker, ILayerZeroDVN {\\n struct DstConfigParam {\\n uint32 dstEid;\\n uint64 gas;\\n uint16 multiplierBps;\\n uint128 floorMarginUSD;\\n }\\n\\n struct DstConfig {\\n uint64 gas;\\n uint16 multiplierBps;\\n uint128 floorMarginUSD; // uses priceFeed PRICE_RATIO_DENOMINATOR\\n }\\n\\n event SetDstConfig(DstConfigParam[] params);\\n\\n function dstConfig(uint32 _dstEid) external view returns (uint64, uint16, uint128);\\n}\\n\",\"keccak256\":\"0xa7fbe84ee6a646a09577f409b6c4c5ad05467e6896f9da6db91510801d6eaa4f\",\"license\":\"MIT\"},\"contracts/uln/interfaces/IDVNFeeLib.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.8.0;\\n\\nimport { IDVN } from \\\"./IDVN.sol\\\";\\n\\ninterface IDVNFeeLib {\\n struct FeeParams {\\n address priceFeed;\\n uint32 dstEid;\\n uint64 confirmations;\\n address sender;\\n uint64 quorum;\\n uint16 defaultMultiplierBps;\\n }\\n\\n error DVN_UnsupportedOptionType(uint8 optionType);\\n error DVN_EidNotSupported(uint32 eid);\\n\\n function getFeeOnSend(\\n FeeParams calldata _params,\\n IDVN.DstConfig calldata _dstConfig,\\n bytes calldata _options\\n ) external payable returns (uint256 fee);\\n\\n function getFee(\\n FeeParams calldata _params,\\n IDVN.DstConfig calldata _dstConfig,\\n bytes calldata _options\\n ) external view returns (uint256 fee);\\n}\\n\",\"keccak256\":\"0x7edb42d1580a08e77d5cc48d83087f7d8c35138605456a5c82a583df3a7cbd73\",\"license\":\"MIT\"},\"contracts/uln/interfaces/ILayerZeroDVN.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.8.0;\\n\\ninterface ILayerZeroDVN {\\n struct AssignJobParam {\\n uint32 dstEid;\\n bytes packetHeader;\\n bytes32 payloadHash;\\n uint64 confirmations;\\n address sender;\\n }\\n\\n // @notice query price and assign jobs at the same time\\n // @param _dstEid - the destination endpoint identifier\\n // @param _packetHeader - version + nonce + path\\n // @param _payloadHash - hash of guid + message\\n // @param _confirmations - block confirmation delay before relaying blocks\\n // @param _sender - the source sending contract address\\n // @param _options - options\\n function assignJob(AssignJobParam calldata _param, bytes calldata _options) external payable returns (uint256 fee);\\n\\n // @notice query the dvn fee for relaying block information to the destination chain\\n // @param _dstEid the destination endpoint identifier\\n // @param _confirmations - block confirmation delay before relaying blocks\\n // @param _sender - the source sending contract address\\n // @param _options - options\\n function getFee(\\n uint32 _dstEid,\\n uint64 _confirmations,\\n address _sender,\\n bytes calldata _options\\n ) external view returns (uint256 fee);\\n}\\n\",\"keccak256\":\"0x308e77078242fd5c5746ec29c12e618249134f9e4377c0028ab8f59c07a6014b\",\"license\":\"MIT\"},\"contracts/uln/libs/DVNOptions.sol\":{\"content\":\"// SPDX-License-Identifier: LZBL-1.2\\n\\npragma solidity ^0.8.20;\\n\\nimport { BytesLib } from \\\"solidity-bytes-utils/contracts/BytesLib.sol\\\";\\n\\nimport { BitMap256 } from \\\"@layerzerolabs/lz-evm-protocol-v2/contracts/messagelib/libs/BitMaps.sol\\\";\\nimport { CalldataBytesLib } from \\\"@layerzerolabs/lz-evm-protocol-v2/contracts/libs/CalldataBytesLib.sol\\\";\\n\\nlibrary DVNOptions {\\n using CalldataBytesLib for bytes;\\n using BytesLib for bytes;\\n\\n uint8 internal constant WORKER_ID = 2;\\n uint8 internal constant OPTION_TYPE_PRECRIME = 1;\\n\\n error DVN_InvalidDVNIdx();\\n error DVN_InvalidDVNOptions(uint256 cursor);\\n\\n /// @dev group dvn options by its idx\\n /// @param _options [dvn_id][dvn_option][dvn_id][dvn_option]...\\n /// dvn_option = [option_size][dvn_idx][option_type][option]\\n /// option_size = len(dvn_idx) + len(option_type) + len(option)\\n /// dvn_id: uint8, dvn_idx: uint8, option_size: uint16, option_type: uint8, option: bytes\\n /// @return dvnOptions the grouped options, still share the same format of _options\\n /// @return dvnIndices the dvn indices\\n function groupDVNOptionsByIdx(\\n bytes memory _options\\n ) internal pure returns (bytes[] memory dvnOptions, uint8[] memory dvnIndices) {\\n if (_options.length == 0) return (dvnOptions, dvnIndices);\\n\\n uint8 numDVNs = getNumDVNs(_options);\\n\\n // if there is only 1 dvn, we can just return the whole options\\n if (numDVNs == 1) {\\n dvnOptions = new bytes[](1);\\n dvnOptions[0] = _options;\\n\\n dvnIndices = new uint8[](1);\\n dvnIndices[0] = _options.toUint8(3); // dvn idx\\n return (dvnOptions, dvnIndices);\\n }\\n\\n // otherwise, we need to group the options by dvn_idx\\n dvnIndices = new uint8[](numDVNs);\\n dvnOptions = new bytes[](numDVNs);\\n unchecked {\\n uint256 cursor = 0;\\n uint256 start = 0;\\n uint8 lastDVNIdx = 255; // 255 is an invalid dvn_idx\\n\\n while (cursor < _options.length) {\\n ++cursor; // skip worker_id\\n\\n // optionLength asserted in getNumDVNs (skip check)\\n uint16 optionLength = _options.toUint16(cursor);\\n cursor += 2;\\n\\n // dvnIdx asserted in getNumDVNs (skip check)\\n uint8 dvnIdx = _options.toUint8(cursor);\\n\\n // dvnIdx must equal to the lastDVNIdx for the first option\\n // so it is always skipped in the first option\\n // this operation slices out options whenever the scan finds a different lastDVNIdx\\n if (lastDVNIdx == 255) {\\n lastDVNIdx = dvnIdx;\\n } else if (dvnIdx != lastDVNIdx) {\\n uint256 len = cursor - start - 3; // 3 is for worker_id and option_length\\n bytes memory opt = _options.slice(start, len);\\n _insertDVNOptions(dvnOptions, dvnIndices, lastDVNIdx, opt);\\n\\n // reset the start and lastDVNIdx\\n start += len;\\n lastDVNIdx = dvnIdx;\\n }\\n\\n cursor += optionLength;\\n }\\n\\n // skip check the cursor here because the cursor is asserted in getNumDVNs\\n // if we have reached the end of the options, we need to process the last dvn\\n uint256 size = cursor - start;\\n bytes memory op = _options.slice(start, size);\\n _insertDVNOptions(dvnOptions, dvnIndices, lastDVNIdx, op);\\n\\n // revert dvnIndices to start from 0\\n for (uint8 i = 0; i < numDVNs; ++i) {\\n --dvnIndices[i];\\n }\\n }\\n }\\n\\n function _insertDVNOptions(\\n bytes[] memory _dvnOptions,\\n uint8[] memory _dvnIndices,\\n uint8 _dvnIdx,\\n bytes memory _newOptions\\n ) internal pure {\\n // dvnIdx starts from 0 but default value of dvnIndices is 0,\\n // so we tell if the slot is empty by adding 1 to dvnIdx\\n if (_dvnIdx == 255) revert DVN_InvalidDVNIdx();\\n uint8 dvnIdxAdj = _dvnIdx + 1;\\n\\n for (uint256 j = 0; j < _dvnIndices.length; ++j) {\\n uint8 index = _dvnIndices[j];\\n if (dvnIdxAdj == index) {\\n _dvnOptions[j] = abi.encodePacked(_dvnOptions[j], _newOptions);\\n break;\\n } else if (index == 0) {\\n // empty slot, that means it is the first time we see this dvn\\n _dvnIndices[j] = dvnIdxAdj;\\n _dvnOptions[j] = _newOptions;\\n break;\\n }\\n }\\n }\\n\\n /// @dev get the number of unique dvns\\n /// @param _options the format is the same as groupDVNOptionsByIdx\\n function getNumDVNs(bytes memory _options) internal pure returns (uint8 numDVNs) {\\n uint256 cursor = 0;\\n BitMap256 bitmap;\\n\\n // find number of unique dvn_idx\\n unchecked {\\n while (cursor < _options.length) {\\n ++cursor; // skip worker_id\\n\\n uint16 optionLength = _options.toUint16(cursor);\\n cursor += 2;\\n if (optionLength < 2) revert DVN_InvalidDVNOptions(cursor); // at least 1 byte for dvn_idx and 1 byte for option_type\\n\\n uint8 dvnIdx = _options.toUint8(cursor);\\n\\n // if dvnIdx is not set, increment numDVNs\\n // max num of dvns is 255, 255 is an invalid dvn_idx\\n // The order of the dvnIdx is not required to be sequential, as enforcing the order may weaken\\n // the composability of the options. e.g. if we refrain from enforcing the order, an OApp that has\\n // already enforced certain options can append additional options to the end of the enforced\\n // ones without restrictions.\\n if (dvnIdx == 255) revert DVN_InvalidDVNIdx();\\n if (!bitmap.get(dvnIdx)) {\\n ++numDVNs;\\n bitmap = bitmap.set(dvnIdx);\\n }\\n\\n cursor += optionLength;\\n }\\n }\\n if (cursor != _options.length) revert DVN_InvalidDVNOptions(cursor);\\n }\\n\\n /// @dev decode the next dvn option from _options starting from the specified cursor\\n /// @param _options the format is the same as groupDVNOptionsByIdx\\n /// @param _cursor the cursor to start decoding\\n /// @return optionType the type of the option\\n /// @return option the option\\n /// @return cursor the cursor to start decoding the next option\\n function nextDVNOption(\\n bytes calldata _options,\\n uint256 _cursor\\n ) internal pure returns (uint8 optionType, bytes calldata option, uint256 cursor) {\\n unchecked {\\n // skip worker id\\n cursor = _cursor + 1;\\n\\n // read option size\\n uint16 size = _options.toU16(cursor);\\n cursor += 2;\\n\\n // read option type\\n optionType = _options.toU8(cursor + 1); // skip dvn_idx\\n\\n // startCursor and endCursor are used to slice the option from _options\\n uint256 startCursor = cursor + 2; // skip option type and dvn_idx\\n uint256 endCursor = cursor + size;\\n option = _options[startCursor:endCursor];\\n cursor += size;\\n }\\n }\\n}\\n\",\"keccak256\":\"0x2beee03cdf59a9bc72e94d08b69cb2e908725f4ceabb48651494938100e21e35\",\"license\":\"LZBL-1.2\"},\"solidity-bytes-utils/contracts/BytesLib.sol\":{\"content\":\"// SPDX-License-Identifier: Unlicense\\n/*\\n * @title Solidity Bytes Arrays Utils\\n * @author Gon\\u00e7alo S\\u00e1 <goncalo.sa@consensys.net>\\n *\\n * @dev Bytes tightly packed arrays utility library for ethereum contracts written in Solidity.\\n * The library lets you concatenate, slice and type cast bytes arrays both in memory and storage.\\n */\\npragma solidity >=0.8.0 <0.9.0;\\n\\n\\nlibrary BytesLib {\\n function concat(\\n bytes memory _preBytes,\\n bytes memory _postBytes\\n )\\n internal\\n pure\\n returns (bytes memory)\\n {\\n bytes memory tempBytes;\\n\\n assembly {\\n // Get a location of some free memory and store it in tempBytes as\\n // Solidity does for memory variables.\\n tempBytes := mload(0x40)\\n\\n // Store the length of the first bytes array at the beginning of\\n // the memory for tempBytes.\\n let length := mload(_preBytes)\\n mstore(tempBytes, length)\\n\\n // Maintain a memory counter for the current write location in the\\n // temp bytes array by adding the 32 bytes for the array length to\\n // the starting location.\\n let mc := add(tempBytes, 0x20)\\n // Stop copying when the memory counter reaches the length of the\\n // first bytes array.\\n let end := add(mc, length)\\n\\n for {\\n // Initialize a copy counter to the start of the _preBytes data,\\n // 32 bytes into its memory.\\n let cc := add(_preBytes, 0x20)\\n } lt(mc, end) {\\n // Increase both counters by 32 bytes each iteration.\\n mc := add(mc, 0x20)\\n cc := add(cc, 0x20)\\n } {\\n // Write the _preBytes data into the tempBytes memory 32 bytes\\n // at a time.\\n mstore(mc, mload(cc))\\n }\\n\\n // Add the length of _postBytes to the current length of tempBytes\\n // and store it as the new length in the first 32 bytes of the\\n // tempBytes memory.\\n length := mload(_postBytes)\\n mstore(tempBytes, add(length, mload(tempBytes)))\\n\\n // Move the memory counter back from a multiple of 0x20 to the\\n // actual end of the _preBytes data.\\n mc := end\\n // Stop copying when the memory counter reaches the new combined\\n // length of the arrays.\\n end := add(mc, length)\\n\\n for {\\n let cc := add(_postBytes, 0x20)\\n } lt(mc, end) {\\n mc := add(mc, 0x20)\\n cc := add(cc, 0x20)\\n } {\\n mstore(mc, mload(cc))\\n }\\n\\n // Update the free-memory pointer by padding our last write location\\n // to 32 bytes: add 31 bytes to the end of tempBytes to move to the\\n // next 32 byte block, then round down to the nearest multiple of\\n // 32. If the sum of the length of the two arrays is zero then add\\n // one before rounding down to leave a blank 32 bytes (the length block with 0).\\n mstore(0x40, and(\\n add(add(end, iszero(add(length, mload(_preBytes)))), 31),\\n not(31) // Round down to the nearest 32 bytes.\\n ))\\n }\\n\\n return tempBytes;\\n }\\n\\n function concatStorage(bytes storage _preBytes, bytes memory _postBytes) internal {\\n assembly {\\n // Read the first 32 bytes of _preBytes storage, which is the length\\n // of the array. (We don't need to use the offset into the slot\\n // because arrays use the entire slot.)\\n let fslot := sload(_preBytes.slot)\\n // Arrays of 31 bytes or less have an even value in their slot,\\n // while longer arrays have an odd value. The actual length is\\n // the slot divided by two for odd values, and the lowest order\\n // byte divided by two for even values.\\n // If the slot is even, bitwise and the slot with 255 and divide by\\n // two to get the length. If the slot is odd, bitwise and the slot\\n // with -1 and divide by two.\\n let slength := div(and(fslot, sub(mul(0x100, iszero(and(fslot, 1))), 1)), 2)\\n let mlength := mload(_postBytes)\\n let newlength := add(slength, mlength)\\n // slength can contain both the length and contents of the array\\n // if length < 32 bytes so let's prepare for that\\n // v. http://solidity.readthedocs.io/en/latest/miscellaneous.html#layout-of-state-variables-in-storage\\n switch add(lt(slength, 32), lt(newlength, 32))\\n case 2 {\\n // Since the new array still fits in the slot, we just need to\\n // update the contents of the slot.\\n // uint256(bytes_storage) = uint256(bytes_storage) + uint256(bytes_memory) + new_length\\n sstore(\\n _preBytes.slot,\\n // all the modifications to the slot are inside this\\n // next block\\n add(\\n // we can just add to the slot contents because the\\n // bytes we want to change are the LSBs\\n fslot,\\n add(\\n mul(\\n div(\\n // load the bytes from memory\\n mload(add(_postBytes, 0x20)),\\n // zero all bytes to the right\\n exp(0x100, sub(32, mlength))\\n ),\\n // and now shift left the number of bytes to\\n // leave space for the length in the slot\\n exp(0x100, sub(32, newlength))\\n ),\\n // increase length by the double of the memory\\n // bytes length\\n mul(mlength, 2)\\n )\\n )\\n )\\n }\\n case 1 {\\n // The stored value fits in the slot, but the combined value\\n // will exceed it.\\n // get the keccak hash to get the contents of the array\\n mstore(0x0, _preBytes.slot)\\n let sc := add(keccak256(0x0, 0x20), div(slength, 32))\\n\\n // save new length\\n sstore(_preBytes.slot, add(mul(newlength, 2), 1))\\n\\n // The contents of the _postBytes array start 32 bytes into\\n // the structure. Our first read should obtain the `submod`\\n // bytes that can fit into the unused space in the last word\\n // of the stored array. To get this, we read 32 bytes starting\\n // from `submod`, so the data we read overlaps with the array\\n // contents by `submod` bytes. Masking the lowest-order\\n // `submod` bytes allows us to add that value directly to the\\n // stored value.\\n\\n let submod := sub(32, slength)\\n let mc := add(_postBytes, submod)\\n let end := add(_postBytes, mlength)\\n let mask := sub(exp(0x100, submod), 1)\\n\\n sstore(\\n sc,\\n add(\\n and(\\n fslot,\\n 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00\\n ),\\n and(mload(mc), mask)\\n )\\n )\\n\\n for {\\n mc := add(mc, 0x20)\\n sc := add(sc, 1)\\n } lt(mc, end) {\\n sc := add(sc, 1)\\n mc := add(mc, 0x20)\\n } {\\n sstore(sc, mload(mc))\\n }\\n\\n mask := exp(0x100, sub(mc, end))\\n\\n sstore(sc, mul(div(mload(mc), mask), mask))\\n }\\n default {\\n // get the keccak hash to get the contents of the array\\n mstore(0x0, _preBytes.slot)\\n // Start copying to the last used word of the stored array.\\n let sc := add(keccak256(0x0, 0x20), div(slength, 32))\\n\\n // save new length\\n sstore(_preBytes.slot, add(mul(newlength, 2), 1))\\n\\n // Copy over the first `submod` bytes of the new data as in\\n // case 1 above.\\n let slengthmod := mod(slength, 32)\\n let mlengthmod := mod(mlength, 32)\\n let submod := sub(32, slengthmod)\\n let mc := add(_postBytes, submod)\\n let end := add(_postBytes, mlength)\\n let mask := sub(exp(0x100, submod), 1)\\n\\n sstore(sc, add(sload(sc), and(mload(mc), mask)))\\n\\n for {\\n sc := add(sc, 1)\\n mc := add(mc, 0x20)\\n } lt(mc, end) {\\n sc := add(sc, 1)\\n mc := add(mc, 0x20)\\n } {\\n sstore(sc, mload(mc))\\n }\\n\\n mask := exp(0x100, sub(mc, end))\\n\\n sstore(sc, mul(div(mload(mc), mask), mask))\\n }\\n }\\n }\\n\\n function slice(\\n bytes memory _bytes,\\n uint256 _start,\\n uint256 _length\\n )\\n internal\\n pure\\n returns (bytes memory)\\n {\\n require(_length + 31 >= _length, \\\"slice_overflow\\\");\\n require(_bytes.length >= _start + _length, \\\"slice_outOfBounds\\\");\\n\\n bytes memory tempBytes;\\n\\n assembly {\\n switch iszero(_length)\\n case 0 {\\n // Get a location of some free memory and store it in tempBytes as\\n // Solidity does for memory variables.\\n tempBytes := mload(0x40)\\n\\n // The first word of the slice result is potentially a partial\\n // word read from the original array. To read it, we calculate\\n // the length of that partial word and start copying that many\\n // bytes into the array. The first word we copy will start with\\n // data we don't care about, but the last `lengthmod` bytes will\\n // land at the beginning of the contents of the new array. When\\n // we're done copying, we overwrite the full first word with\\n // the actual length of the slice.\\n let lengthmod := and(_length, 31)\\n\\n // The multiplication in the next line is necessary\\n // because when slicing multiples of 32 bytes (lengthmod == 0)\\n // the following copy loop was copying the origin's length\\n // and then ending prematurely not copying everything it should.\\n let mc := add(add(tempBytes, lengthmod), mul(0x20, iszero(lengthmod)))\\n let end := add(mc, _length)\\n\\n for {\\n // The multiplication in the next line has the same exact purpose\\n // as the one above.\\n let cc := add(add(add(_bytes, lengthmod), mul(0x20, iszero(lengthmod))), _start)\\n } lt(mc, end) {\\n mc := add(mc, 0x20)\\n cc := add(cc, 0x20)\\n } {\\n mstore(mc, mload(cc))\\n }\\n\\n mstore(tempBytes, _length)\\n\\n //update free-memory pointer\\n //allocating the array padded to 32 bytes like the compiler does now\\n mstore(0x40, and(add(mc, 31), not(31)))\\n }\\n //if we want a zero-length slice let's just return a zero-length array\\n default {\\n tempBytes := mload(0x40)\\n //zero out the 32 bytes slice we are about to return\\n //we need to do it because Solidity does not garbage collect\\n mstore(tempBytes, 0)\\n\\n mstore(0x40, add(tempBytes, 0x20))\\n }\\n }\\n\\n return tempBytes;\\n }\\n\\n function toAddress(bytes memory _bytes, uint256 _start) internal pure returns (address) {\\n require(_bytes.length >= _start + 20, \\\"toAddress_outOfBounds\\\");\\n address tempAddress;\\n\\n assembly {\\n tempAddress := div(mload(add(add(_bytes, 0x20), _start)), 0x1000000000000000000000000)\\n }\\n\\n return tempAddress;\\n }\\n\\n function toUint8(bytes memory _bytes, uint256 _start) internal pure returns (uint8) {\\n require(_bytes.length >= _start + 1 , \\\"toUint8_outOfBounds\\\");\\n uint8 tempUint;\\n\\n assembly {\\n tempUint := mload(add(add(_bytes, 0x1), _start))\\n }\\n\\n return tempUint;\\n }\\n\\n function toUint16(bytes memory _bytes, uint256 _start) internal pure returns (uint16) {\\n require(_bytes.length >= _start + 2, \\\"toUint16_outOfBounds\\\");\\n uint16 tempUint;\\n\\n assembly {\\n tempUint := mload(add(add(_bytes, 0x2), _start))\\n }\\n\\n return tempUint;\\n }\\n\\n function toUint32(bytes memory _bytes, uint256 _start) internal pure returns (uint32) {\\n require(_bytes.length >= _start + 4, \\\"toUint32_outOfBounds\\\");\\n uint32 tempUint;\\n\\n assembly {\\n tempUint := mload(add(add(_bytes, 0x4), _start))\\n }\\n\\n return tempUint;\\n }\\n\\n function toUint64(bytes memory _bytes, uint256 _start) internal pure returns (uint64) {\\n require(_bytes.length >= _start + 8, \\\"toUint64_outOfBounds\\\");\\n uint64 tempUint;\\n\\n assembly {\\n tempUint := mload(add(add(_bytes, 0x8), _start))\\n }\\n\\n return tempUint;\\n }\\n\\n function toUint96(bytes memory _bytes, uint256 _start) internal pure returns (uint96) {\\n require(_bytes.length >= _start + 12, \\\"toUint96_outOfBounds\\\");\\n uint96 tempUint;\\n\\n assembly {\\n tempUint := mload(add(add(_bytes, 0xc), _start))\\n }\\n\\n return tempUint;\\n }\\n\\n function toUint128(bytes memory _bytes, uint256 _start) internal pure returns (uint128) {\\n require(_bytes.length >= _start + 16, \\\"toUint128_outOfBounds\\\");\\n uint128 tempUint;\\n\\n assembly {\\n tempUint := mload(add(add(_bytes, 0x10), _start))\\n }\\n\\n return tempUint;\\n }\\n\\n function toUint256(bytes memory _bytes, uint256 _start) internal pure returns (uint256) {\\n require(_bytes.length >= _start + 32, \\\"toUint256_outOfBounds\\\");\\n uint256 tempUint;\\n\\n assembly {\\n tempUint := mload(add(add(_bytes, 0x20), _start))\\n }\\n\\n return tempUint;\\n }\\n\\n function toBytes32(bytes memory _bytes, uint256 _start) internal pure returns (bytes32) {\\n require(_bytes.length >= _start + 32, \\\"toBytes32_outOfBounds\\\");\\n bytes32 tempBytes32;\\n\\n assembly {\\n tempBytes32 := mload(add(add(_bytes, 0x20), _start))\\n }\\n\\n return tempBytes32;\\n }\\n\\n function equal(bytes memory _preBytes, bytes memory _postBytes) internal pure returns (bool) {\\n bool success = true;\\n\\n assembly {\\n let length := mload(_preBytes)\\n\\n // if lengths don't match the arrays are not equal\\n switch eq(length, mload(_postBytes))\\n case 1 {\\n // cb is a circuit breaker in the for loop since there's\\n // no said feature for inline assembly loops\\n // cb = 1 - don't breaker\\n // cb = 0 - break\\n let cb := 1\\n\\n let mc := add(_preBytes, 0x20)\\n let end := add(mc, length)\\n\\n for {\\n let cc := add(_postBytes, 0x20)\\n // the next line is the loop condition:\\n // while(uint256(mc < end) + cb == 2)\\n } eq(add(lt(mc, end), cb), 2) {\\n mc := add(mc, 0x20)\\n cc := add(cc, 0x20)\\n } {\\n // if any of these checks fails then arrays are not equal\\n if iszero(eq(mload(mc), mload(cc))) {\\n // unsuccess:\\n success := 0\\n cb := 0\\n }\\n }\\n }\\n default {\\n // unsuccess:\\n success := 0\\n }\\n }\\n\\n return success;\\n }\\n\\n function equalStorage(\\n bytes storage _preBytes,\\n bytes memory _postBytes\\n )\\n internal\\n view\\n returns (bool)\\n {\\n bool success = true;\\n\\n assembly {\\n // we know _preBytes_offset is 0\\n let fslot := sload(_preBytes.slot)\\n // Decode the length of the stored array like in concatStorage().\\n let slength := div(and(fslot, sub(mul(0x100, iszero(and(fslot, 1))), 1)), 2)\\n let mlength := mload(_postBytes)\\n\\n // if lengths don't match the arrays are not equal\\n switch eq(slength, mlength)\\n case 1 {\\n // slength can contain both the length and contents of the array\\n // if length < 32 bytes so let's prepare for that\\n // v. http://solidity.readthedocs.io/en/latest/miscellaneous.html#layout-of-state-variables-in-storage\\n if iszero(iszero(slength)) {\\n switch lt(slength, 32)\\n case 1 {\\n // blank the last byte which is the length\\n fslot := mul(div(fslot, 0x100), 0x100)\\n\\n if iszero(eq(fslot, mload(add(_postBytes, 0x20)))) {\\n // unsuccess:\\n success := 0\\n }\\n }\\n default {\\n // cb is a circuit breaker in the for loop since there's\\n // no said feature for inline assembly loops\\n // cb = 1 - don't breaker\\n // cb = 0 - break\\n let cb := 1\\n\\n // get the keccak hash to get the contents of the array\\n mstore(0x0, _preBytes.slot)\\n let sc := keccak256(0x0, 0x20)\\n\\n let mc := add(_postBytes, 0x20)\\n let end := add(mc, mlength)\\n\\n // the next line is the loop condition:\\n // while(uint256(mc < end) + cb == 2)\\n for {} eq(add(lt(mc, end), cb), 2) {\\n sc := add(sc, 1)\\n mc := add(mc, 0x20)\\n } {\\n if iszero(eq(sload(sc), mload(mc))) {\\n // unsuccess:\\n success := 0\\n cb := 0\\n }\\n }\\n }\\n }\\n }\\n default {\\n // unsuccess:\\n success := 0\\n }\\n }\\n\\n return success;\\n }\\n}\\n\",\"keccak256\":\"0xf75784dfc94ea43668eb195d5690a1dde1b6eda62017e73a3899721583821d29\",\"license\":\"Unlicense\"}},\"version\":1}",
342
+ "bytecode": "0x60a060405234801561001057600080fd5b506040516112b43803806112b483398101604081905261002f91610090565b61003833610040565b6080526100a9565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100a257600080fd5b5051919050565b6080516111f06100c460003960006107c801526111f06000f3fe6080604052600436106100695760003560e01c80638da5cb5b116100435780638da5cb5b146100df578063df2b057e14610114578063f2fde38b1461012757600080fd5b806301e3366714610075578063715018a6146100975780637bfa20a9146100ac57600080fd5b3661007057005b600080fd5b34801561008157600080fd5b50610095610090366004610d88565b610147565b005b3480156100a357600080fd5b5061009561015f565b3480156100b857600080fd5b506100cc6100c7366004610dc4565b610173565b6040519081526020015b60405180910390f35b3480156100eb57600080fd5b5060005460405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100d6565b6100cc610122366004610dc4565b610343565b34801561013357600080fd5b50610095610142366004610e84565b610451565b61014f610508565b61015a838383610589565b505050565b610167610508565b61017160006105b9565b565b60006101826020850185610e9f565b67ffffffffffffffff166000036101e3576101a36040860160208701610ec9565b6040517fd009138a00000000000000000000000000000000000000000000000000000000815263ffffffff90911660048201526024015b60405180910390fd5b6101ed838361062e565b50600061021261020360a0880160808901610e9f565b67ffffffffffffffff166106d2565b90506000806102246020890189610e84565b73ffffffffffffffffffffffffffffffffffffffff166388a4124c61024f60408b0160208c01610ec9565b8561025d60208c018c610e9f565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b16815263ffffffff939093166004840152602483019190915267ffffffffffffffff166044820152606401608060405180830381865afa1580156102ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102f29190610f0d565b9350505091506103358288602001602081019061030f9190610f62565b61031f60c08c0160a08d01610f62565b61032f60608c0160408d01610f86565b8561073e565b93505050505b949350505050565b60006103526020850185610e9f565b67ffffffffffffffff16600003610373576101a36040860160208701610ec9565b61037d838361062e565b50600061039361020360a0880160808901610e9f565b90506000806103a56020890189610e84565b73ffffffffffffffffffffffffffffffffffffffff1663c1723a1d6103d060408b0160208c01610ec9565b856103de60208c018c610e9f565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b16815263ffffffff939093166004840152602483019190915267ffffffffffffffff1660448201526064016080604051808303816000875af11580156102ce573d6000803e3d6000fd5b610459610508565b73ffffffffffffffffffffffffffffffffffffffff81166104fc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016101da565b610505816105b9565b50565b60005473ffffffffffffffffffffffffffffffffffffffff163314610171576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101da565b73ffffffffffffffffffffffffffffffffffffffff83166105ae5761015a8282610838565b61015a83838361093e565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080821561068a576000806106458686856109ac565b6040517f7085244b00000000000000000000000000000000000000000000000000000000815260ff8516600482015290965092945085935050602490910190506101da565b8083146106c6576040517f04eb6e0c000000000000000000000000000000000000000000000000000000008152600481018290526024016101da565b60009150505b92915050565b6000806106e0604184610fd2565b90506106ed602082611018565b15610715576106fd602082611018565b610707908261102c565b61071290602061103f565b90505b8061072260e0604461103f565b61072c919061103f565b61073790604061103f565b9392505050565b60008061ffff8616156107515785610753565b845b9050600061271061076861ffff84168a610fd2565b6107729190611052565b90506fffffffffffffffffffffffffffffffff841615806107a357506fffffffffffffffffffffffffffffffff8516155b156107b157915061082f9050565b6000846fffffffffffffffffffffffffffffffff167f0000000000000000000000000000000000000000000000000000000000000000876fffffffffffffffffffffffffffffffff166108049190610fd2565b61080e9190611052565b610818908a61103f565b90508181116108275781610829565b805b93505050505b95945050505050565b73ffffffffffffffffffffffffffffffffffffffff8216610885576040517f6b7a931000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d80600081146108df576040519150601f19603f3d011682016040523d82523d6000602084013e6108e4565b606091505b505090508061015a576040517f465bc83400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84166004820152602481018390526044016101da565b73ffffffffffffffffffffffffffffffffffffffff821661098b576040517f6b7a931000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61015a73ffffffffffffffffffffffffffffffffffffffff84168383610a06565b6000368160018401816109c0888884610a93565b60028301929091506109d89089908990600301610aba565b94506002820161ffff821683016109f181838b8d611066565b979b909a50969850505061ffff160193505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905261015a908490610adf565b600060028201610aa581848688611066565b610aae91611090565b60f01c95945050505050565b6000838383818110610ace57610ace6110d8565b919091013560f81c95945050505050565b6000610b41826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610bee9092919063ffffffff16565b9050805160001480610b62575080806020019051810190610b629190611107565b61015a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016101da565b606061033b8484600085856000808673ffffffffffffffffffffffffffffffffffffffff168587604051610c22919061114d565b60006040518083038185875af1925050503d8060008114610c5f576040519150601f19603f3d011682016040523d82523d6000602084013e610c64565b606091505b5091509150610c7587838387610c80565b979650505050505050565b60608315610d16578251600003610d0f5773ffffffffffffffffffffffffffffffffffffffff85163b610d0f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101da565b508161033b565b61033b8383815115610d2b5781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101da9190611169565b803573ffffffffffffffffffffffffffffffffffffffff81168114610d8357600080fd5b919050565b600080600060608486031215610d9d57600080fd5b610da684610d5f565b9250610db460208501610d5f565b9150604084013590509250925092565b600080600080848603610140811215610ddc57600080fd5b60c0811215610dea57600080fd5b85945060607fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff4082011215610e1d57600080fd5b5060c08501925061012085013567ffffffffffffffff80821115610e4057600080fd5b818701915087601f830112610e5457600080fd5b813581811115610e6357600080fd5b886020828501011115610e7557600080fd5b95989497505060200194505050565b600060208284031215610e9657600080fd5b61073782610d5f565b600060208284031215610eb157600080fd5b813567ffffffffffffffff8116811461073757600080fd5b600060208284031215610edb57600080fd5b813563ffffffff8116811461073757600080fd5b6fffffffffffffffffffffffffffffffff8116811461050557600080fd5b60008060008060808587031215610f2357600080fd5b845193506020850151610f3581610eef565b6040860151909350610f4681610eef565b6060860151909250610f5781610eef565b939692955090935050565b600060208284031215610f7457600080fd5b813561ffff8116811461073757600080fd5b600060208284031215610f9857600080fd5b813561073781610eef565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820281158282048414176106cc576106cc610fa3565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60008261102757611027610fe9565b500690565b818103818111156106cc576106cc610fa3565b808201808211156106cc576106cc610fa3565b60008261106157611061610fe9565b500490565b6000808585111561107657600080fd5b8386111561108357600080fd5b5050820193919092039150565b7fffff00000000000000000000000000000000000000000000000000000000000081358181169160028510156110d05780818660020360031b1b83161692505b505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006020828403121561111957600080fd5b8151801515811461073757600080fd5b60005b8381101561114457818101518382015260200161112c565b50506000910152565b6000825161115f818460208701611129565b9190910192915050565b6020815260008251806020840152611188816040850160208701611129565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220e451c6f2f6749102e043ca854031dae5b894904402cd955b3b360b2b9c3e830964736f6c63430008160033",
343
+ "deployedBytecode": "0x6080604052600436106100695760003560e01c80638da5cb5b116100435780638da5cb5b146100df578063df2b057e14610114578063f2fde38b1461012757600080fd5b806301e3366714610075578063715018a6146100975780637bfa20a9146100ac57600080fd5b3661007057005b600080fd5b34801561008157600080fd5b50610095610090366004610d88565b610147565b005b3480156100a357600080fd5b5061009561015f565b3480156100b857600080fd5b506100cc6100c7366004610dc4565b610173565b6040519081526020015b60405180910390f35b3480156100eb57600080fd5b5060005460405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100d6565b6100cc610122366004610dc4565b610343565b34801561013357600080fd5b50610095610142366004610e84565b610451565b61014f610508565b61015a838383610589565b505050565b610167610508565b61017160006105b9565b565b60006101826020850185610e9f565b67ffffffffffffffff166000036101e3576101a36040860160208701610ec9565b6040517fd009138a00000000000000000000000000000000000000000000000000000000815263ffffffff90911660048201526024015b60405180910390fd5b6101ed838361062e565b50600061021261020360a0880160808901610e9f565b67ffffffffffffffff166106d2565b90506000806102246020890189610e84565b73ffffffffffffffffffffffffffffffffffffffff166388a4124c61024f60408b0160208c01610ec9565b8561025d60208c018c610e9f565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b16815263ffffffff939093166004840152602483019190915267ffffffffffffffff166044820152606401608060405180830381865afa1580156102ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102f29190610f0d565b9350505091506103358288602001602081019061030f9190610f62565b61031f60c08c0160a08d01610f62565b61032f60608c0160408d01610f86565b8561073e565b93505050505b949350505050565b60006103526020850185610e9f565b67ffffffffffffffff16600003610373576101a36040860160208701610ec9565b61037d838361062e565b50600061039361020360a0880160808901610e9f565b90506000806103a56020890189610e84565b73ffffffffffffffffffffffffffffffffffffffff1663c1723a1d6103d060408b0160208c01610ec9565b856103de60208c018c610e9f565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b16815263ffffffff939093166004840152602483019190915267ffffffffffffffff1660448201526064016080604051808303816000875af11580156102ce573d6000803e3d6000fd5b610459610508565b73ffffffffffffffffffffffffffffffffffffffff81166104fc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016101da565b610505816105b9565b50565b60005473ffffffffffffffffffffffffffffffffffffffff163314610171576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101da565b73ffffffffffffffffffffffffffffffffffffffff83166105ae5761015a8282610838565b61015a83838361093e565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080821561068a576000806106458686856109ac565b6040517f7085244b00000000000000000000000000000000000000000000000000000000815260ff8516600482015290965092945085935050602490910190506101da565b8083146106c6576040517f04eb6e0c000000000000000000000000000000000000000000000000000000008152600481018290526024016101da565b60009150505b92915050565b6000806106e0604184610fd2565b90506106ed602082611018565b15610715576106fd602082611018565b610707908261102c565b61071290602061103f565b90505b8061072260e0604461103f565b61072c919061103f565b61073790604061103f565b9392505050565b60008061ffff8616156107515785610753565b845b9050600061271061076861ffff84168a610fd2565b6107729190611052565b90506fffffffffffffffffffffffffffffffff841615806107a357506fffffffffffffffffffffffffffffffff8516155b156107b157915061082f9050565b6000846fffffffffffffffffffffffffffffffff167f0000000000000000000000000000000000000000000000000000000000000000876fffffffffffffffffffffffffffffffff166108049190610fd2565b61080e9190611052565b610818908a61103f565b90508181116108275781610829565b805b93505050505b95945050505050565b73ffffffffffffffffffffffffffffffffffffffff8216610885576040517f6b7a931000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d80600081146108df576040519150601f19603f3d011682016040523d82523d6000602084013e6108e4565b606091505b505090508061015a576040517f465bc83400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84166004820152602481018390526044016101da565b73ffffffffffffffffffffffffffffffffffffffff821661098b576040517f6b7a931000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61015a73ffffffffffffffffffffffffffffffffffffffff84168383610a06565b6000368160018401816109c0888884610a93565b60028301929091506109d89089908990600301610aba565b94506002820161ffff821683016109f181838b8d611066565b979b909a50969850505061ffff160193505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905261015a908490610adf565b600060028201610aa581848688611066565b610aae91611090565b60f01c95945050505050565b6000838383818110610ace57610ace6110d8565b919091013560f81c95945050505050565b6000610b41826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610bee9092919063ffffffff16565b9050805160001480610b62575080806020019051810190610b629190611107565b61015a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016101da565b606061033b8484600085856000808673ffffffffffffffffffffffffffffffffffffffff168587604051610c22919061114d565b60006040518083038185875af1925050503d8060008114610c5f576040519150601f19603f3d011682016040523d82523d6000602084013e610c64565b606091505b5091509150610c7587838387610c80565b979650505050505050565b60608315610d16578251600003610d0f5773ffffffffffffffffffffffffffffffffffffffff85163b610d0f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101da565b508161033b565b61033b8383815115610d2b5781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101da9190611169565b803573ffffffffffffffffffffffffffffffffffffffff81168114610d8357600080fd5b919050565b600080600060608486031215610d9d57600080fd5b610da684610d5f565b9250610db460208501610d5f565b9150604084013590509250925092565b600080600080848603610140811215610ddc57600080fd5b60c0811215610dea57600080fd5b85945060607fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff4082011215610e1d57600080fd5b5060c08501925061012085013567ffffffffffffffff80821115610e4057600080fd5b818701915087601f830112610e5457600080fd5b813581811115610e6357600080fd5b886020828501011115610e7557600080fd5b95989497505060200194505050565b600060208284031215610e9657600080fd5b61073782610d5f565b600060208284031215610eb157600080fd5b813567ffffffffffffffff8116811461073757600080fd5b600060208284031215610edb57600080fd5b813563ffffffff8116811461073757600080fd5b6fffffffffffffffffffffffffffffffff8116811461050557600080fd5b60008060008060808587031215610f2357600080fd5b845193506020850151610f3581610eef565b6040860151909350610f4681610eef565b6060860151909250610f5781610eef565b939692955090935050565b600060208284031215610f7457600080fd5b813561ffff8116811461073757600080fd5b600060208284031215610f9857600080fd5b813561073781610eef565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b80820281158282048414176106cc576106cc610fa3565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60008261102757611027610fe9565b500690565b818103818111156106cc576106cc610fa3565b808201808211156106cc576106cc610fa3565b60008261106157611061610fe9565b500490565b6000808585111561107657600080fd5b8386111561108357600080fd5b5050820193919092039150565b7fffff00000000000000000000000000000000000000000000000000000000000081358181169160028510156110d05780818660020360031b1b83161692505b505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006020828403121561111957600080fd5b8151801515811461073757600080fd5b60005b8381101561114457818101518382015260200161112c565b50506000910152565b6000825161115f818460208701611129565b9190910192915050565b6020815260008251806020840152611188816040850160208701611129565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220e451c6f2f6749102e043ca854031dae5b894904402cd955b3b360b2b9c3e830964736f6c63430008160033",
344
+ "devdoc": {
345
+ "kind": "dev",
346
+ "methods": {
347
+ "getFee((address,uint32,uint64,address,uint64,uint16),(uint64,uint16,uint128),bytes)": {
348
+ "details": "get fee view function",
349
+ "params": {
350
+ "": "//_options options",
351
+ "_dstConfig": "dst config",
352
+ "_params": "fee params"
353
+ }
354
+ },
355
+ "getFeeOnSend((address,uint32,uint64,address,uint64,uint16),(uint64,uint16,uint128),bytes)": {
356
+ "details": "get fee function that can change state. e.g. paying priceFeed",
357
+ "params": {
358
+ "": "//_options options",
359
+ "_dstConfig": "dst config",
360
+ "_params": "fee params"
361
+ }
362
+ },
363
+ "owner()": {
364
+ "details": "Returns the address of the current owner."
365
+ },
366
+ "renounceOwnership()": {
367
+ "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner."
368
+ },
369
+ "transferOwnership(address)": {
370
+ "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
371
+ }
372
+ },
373
+ "version": 1
374
+ },
375
+ "userdoc": {
376
+ "kind": "user",
377
+ "methods": {},
378
+ "version": 1
379
+ },
380
+ "storageLayout": {
381
+ "storage": [
382
+ {
383
+ "astId": 7808,
384
+ "contract": "contracts/uln/dvn/DVNFeeLib.sol:DVNFeeLib",
385
+ "label": "_owner",
386
+ "offset": 0,
387
+ "slot": "0",
388
+ "type": "t_address"
389
+ }
390
+ ],
391
+ "types": {
392
+ "t_address": {
393
+ "encoding": "inplace",
394
+ "label": "address",
395
+ "numberOfBytes": "20"
396
+ }
397
+ }
398
+ }
399
+ }