@layerzerolabs/lz-evm-sdk-v1 2.1.21 → 2.1.23

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 (107) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/deployments/arbitrum-sandbox-local/DefaultProxyAdmin.json +14 -14
  3. package/deployments/arbitrum-sandbox-local/Endpoint.json +19 -19
  4. package/deployments/arbitrum-sandbox-local/FPValidator.json +12 -12
  5. package/deployments/arbitrum-sandbox-local/MPTValidator01.json +12 -12
  6. package/deployments/arbitrum-sandbox-local/NonceContract.json +8 -8
  7. package/deployments/arbitrum-sandbox-local/RelayerV2.json +83 -18
  8. package/deployments/arbitrum-sandbox-local/RelayerV2_Implementation.json +160 -48
  9. package/deployments/arbitrum-sandbox-local/RelayerV2_Proxy.json +18 -18
  10. package/deployments/arbitrum-sandbox-local/TreasuryV2.json +20 -20
  11. package/deployments/arbitrum-sandbox-local/UltraLightNode.json +53 -53
  12. package/deployments/arbitrum-sandbox-local/UltraLightNodeV2.json +41 -41
  13. package/deployments/avalanche-sandbox-local/DefaultProxyAdmin.json +273 -0
  14. package/deployments/avalanche-sandbox-local/Endpoint.json +1282 -0
  15. package/deployments/avalanche-sandbox-local/FPValidator.json +382 -0
  16. package/deployments/avalanche-sandbox-local/MPTValidator01.json +395 -0
  17. package/deployments/avalanche-sandbox-local/NonceContract.json +159 -0
  18. package/deployments/avalanche-sandbox-local/RelayerV2.json +1314 -0
  19. package/deployments/avalanche-sandbox-local/RelayerV2_Implementation.json +1488 -0
  20. package/deployments/avalanche-sandbox-local/RelayerV2_Proxy.json +245 -0
  21. package/deployments/avalanche-sandbox-local/TreasuryV2.json +458 -0
  22. package/deployments/avalanche-sandbox-local/UltraLightNodeV2.json +1816 -0
  23. package/deployments/bsc-sandbox-local/DefaultProxyAdmin.json +14 -14
  24. package/deployments/bsc-sandbox-local/Endpoint.json +19 -19
  25. package/deployments/bsc-sandbox-local/FPValidator.json +12 -12
  26. package/deployments/bsc-sandbox-local/MPTValidator01.json +12 -12
  27. package/deployments/bsc-sandbox-local/NonceContract.json +8 -8
  28. package/deployments/bsc-sandbox-local/RelayerV2.json +83 -18
  29. package/deployments/bsc-sandbox-local/RelayerV2_Implementation.json +160 -48
  30. package/deployments/bsc-sandbox-local/RelayerV2_Proxy.json +18 -18
  31. package/deployments/bsc-sandbox-local/TreasuryV2.json +20 -20
  32. package/deployments/bsc-sandbox-local/UltraLightNode.json +53 -53
  33. package/deployments/bsc-sandbox-local/UltraLightNodeV2.json +41 -41
  34. package/deployments/ethereum-sandbox-local/DefaultProxyAdmin.json +11 -11
  35. package/deployments/ethereum-sandbox-local/Endpoint.json +17 -17
  36. package/deployments/ethereum-sandbox-local/FPValidator.json +11 -11
  37. package/deployments/ethereum-sandbox-local/MPTValidator01.json +11 -11
  38. package/deployments/ethereum-sandbox-local/NonceContract.json +7 -7
  39. package/deployments/ethereum-sandbox-local/RelayerV2.json +78 -13
  40. package/deployments/ethereum-sandbox-local/RelayerV2_Implementation.json +159 -47
  41. package/deployments/ethereum-sandbox-local/RelayerV2_Proxy.json +13 -13
  42. package/deployments/ethereum-sandbox-local/TreasuryV2.json +18 -18
  43. package/deployments/ethereum-sandbox-local/UltraLightNode.json +51 -51
  44. package/deployments/ethereum-sandbox-local/UltraLightNodeV2.json +39 -39
  45. package/deployments/merlin-testnet/DefaultProxyAdmin.json +273 -0
  46. package/deployments/merlin-testnet/Endpoint.json +1282 -0
  47. package/deployments/merlin-testnet/FPValidator.json +382 -0
  48. package/deployments/merlin-testnet/MPTValidator01.json +395 -0
  49. package/deployments/merlin-testnet/NonceContract.json +159 -0
  50. package/deployments/merlin-testnet/RelayerV2.json +1314 -0
  51. package/deployments/merlin-testnet/RelayerV2_Implementation.json +1488 -0
  52. package/deployments/merlin-testnet/RelayerV2_Proxy.json +245 -0
  53. package/deployments/merlin-testnet/TreasuryV2.json +458 -0
  54. package/deployments/merlin-testnet/UltraLightNodeV2.json +1816 -0
  55. package/deployments/metis-sandbox-local/DefaultProxyAdmin.json +273 -0
  56. package/deployments/metis-sandbox-local/Endpoint.json +1282 -0
  57. package/deployments/metis-sandbox-local/FPValidator.json +382 -0
  58. package/deployments/metis-sandbox-local/MPTValidator01.json +395 -0
  59. package/deployments/metis-sandbox-local/NonceContract.json +159 -0
  60. package/deployments/metis-sandbox-local/RelayerV2.json +1314 -0
  61. package/deployments/metis-sandbox-local/RelayerV2_Implementation.json +1488 -0
  62. package/deployments/metis-sandbox-local/RelayerV2_Proxy.json +245 -0
  63. package/deployments/metis-sandbox-local/TreasuryV2.json +458 -0
  64. package/deployments/metis-sandbox-local/UltraLightNodeV2.json +1816 -0
  65. package/deployments/optimism-sandbox-local/DefaultProxyAdmin.json +273 -0
  66. package/deployments/optimism-sandbox-local/Endpoint.json +1282 -0
  67. package/deployments/optimism-sandbox-local/FPValidator.json +382 -0
  68. package/deployments/optimism-sandbox-local/MPTValidator01.json +395 -0
  69. package/deployments/optimism-sandbox-local/NonceContract.json +159 -0
  70. package/deployments/optimism-sandbox-local/RelayerV2.json +1314 -0
  71. package/deployments/optimism-sandbox-local/RelayerV2_Implementation.json +1488 -0
  72. package/deployments/optimism-sandbox-local/RelayerV2_Proxy.json +245 -0
  73. package/deployments/optimism-sandbox-local/TreasuryV2.json +458 -0
  74. package/deployments/optimism-sandbox-local/UltraLightNodeV2.json +1816 -0
  75. package/deployments/polygon-sandbox-local/DefaultProxyAdmin.json +14 -14
  76. package/deployments/polygon-sandbox-local/Endpoint.json +19 -19
  77. package/deployments/polygon-sandbox-local/FPValidator.json +12 -12
  78. package/deployments/polygon-sandbox-local/MPTValidator01.json +12 -12
  79. package/deployments/polygon-sandbox-local/NonceContract.json +8 -8
  80. package/deployments/polygon-sandbox-local/RelayerV2.json +83 -18
  81. package/deployments/polygon-sandbox-local/RelayerV2_Implementation.json +160 -48
  82. package/deployments/polygon-sandbox-local/RelayerV2_Proxy.json +18 -18
  83. package/deployments/polygon-sandbox-local/TreasuryV2.json +20 -20
  84. package/deployments/polygon-sandbox-local/UltraLightNode.json +53 -53
  85. package/deployments/polygon-sandbox-local/UltraLightNodeV2.json +41 -41
  86. package/deployments/tron-sandbox-local/DefaultProxyAdmin.json +15 -15
  87. package/deployments/tron-sandbox-local/Endpoint.json +17 -17
  88. package/deployments/tron-sandbox-local/FPValidator.json +9 -9
  89. package/deployments/tron-sandbox-local/MPTValidator01.json +9 -9
  90. package/deployments/tron-sandbox-local/NonceContract.json +8 -8
  91. package/deployments/tron-sandbox-local/RelayerV2.json +96 -31
  92. package/deployments/tron-sandbox-local/RelayerV2_Implementation.json +162 -50
  93. package/deployments/tron-sandbox-local/RelayerV2_Proxy.json +28 -28
  94. package/deployments/tron-sandbox-local/TreasuryV2.json +19 -19
  95. package/deployments/tron-sandbox-local/UltraLightNode.json +52 -52
  96. package/deployments/tron-sandbox-local/UltraLightNodeV2.json +41 -41
  97. package/deployments/trondev-sandbox-local/DefaultProxyAdmin.json +273 -0
  98. package/deployments/trondev-sandbox-local/Endpoint.json +1282 -0
  99. package/deployments/trondev-sandbox-local/FPValidator.json +382 -0
  100. package/deployments/trondev-sandbox-local/MPTValidator01.json +395 -0
  101. package/deployments/trondev-sandbox-local/NonceContract.json +159 -0
  102. package/deployments/trondev-sandbox-local/RelayerV2.json +1314 -0
  103. package/deployments/trondev-sandbox-local/RelayerV2_Implementation.json +1488 -0
  104. package/deployments/trondev-sandbox-local/RelayerV2_Proxy.json +245 -0
  105. package/deployments/trondev-sandbox-local/TreasuryV2.json +458 -0
  106. package/deployments/trondev-sandbox-local/UltraLightNodeV2.json +1816 -0
  107. package/package.json +7 -7
@@ -1466,21 +1466,21 @@
1466
1466
  "type": "function"
1467
1467
  }
1468
1468
  ],
1469
- "transactionHash": "0x4c4640016e8a60fc47035e76d0a271e9ba6b22e70892f3e9bd65c480fcf60ad6",
1469
+ "transactionHash": "0x08b6ce7b7f9a83dd738d6b4cb4aeca80d3dfeb81748ffe213175edaa3724493d",
1470
1470
  "receipt": {
1471
1471
  "to": null,
1472
1472
  "from": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8",
1473
1473
  "contractAddress": "0x712516e61C8B383dF4A63CFe83d7701Bce54B03e",
1474
1474
  "transactionIndex": 0,
1475
- "gasUsed": "4596068",
1475
+ "gasUsed": "4916642",
1476
1476
  "logsBloom": "0x000000000000000000020040000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000008000a0000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000001000000000000000000000000000000",
1477
- "blockHash": "0xeed6caf2252de6330828e15b07c3026f251291d1f22f50c9637037d6329713cd",
1478
- "transactionHash": "0x4c4640016e8a60fc47035e76d0a271e9ba6b22e70892f3e9bd65c480fcf60ad6",
1477
+ "blockHash": "0x370b35ce345ad6b027d6677e32d30e1d914b4e1633c2010ad26d1ac128cc53e3",
1478
+ "transactionHash": "0x08b6ce7b7f9a83dd738d6b4cb4aeca80d3dfeb81748ffe213175edaa3724493d",
1479
1479
  "logs": [
1480
1480
  {
1481
1481
  "transactionIndex": 0,
1482
- "blockNumber": 9,
1483
- "transactionHash": "0x4c4640016e8a60fc47035e76d0a271e9ba6b22e70892f3e9bd65c480fcf60ad6",
1482
+ "blockNumber": 10,
1483
+ "transactionHash": "0x08b6ce7b7f9a83dd738d6b4cb4aeca80d3dfeb81748ffe213175edaa3724493d",
1484
1484
  "address": "0x712516e61C8B383dF4A63CFe83d7701Bce54B03e",
1485
1485
  "topics": [
1486
1486
  "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
@@ -1489,11 +1489,11 @@
1489
1489
  ],
1490
1490
  "data": "0x",
1491
1491
  "logIndex": 0,
1492
- "blockHash": "0xeed6caf2252de6330828e15b07c3026f251291d1f22f50c9637037d6329713cd"
1492
+ "blockHash": "0x370b35ce345ad6b027d6677e32d30e1d914b4e1633c2010ad26d1ac128cc53e3"
1493
1493
  }
1494
1494
  ],
1495
- "blockNumber": 9,
1496
- "cumulativeGasUsed": "4596068",
1495
+ "blockNumber": 10,
1496
+ "cumulativeGasUsed": "4916642",
1497
1497
  "status": 1,
1498
1498
  "byzantium": true
1499
1499
  },
@@ -1501,10 +1501,10 @@
1501
1501
  "0x8464135c8F25Da09e49BC8782676a84730C318bC"
1502
1502
  ],
1503
1503
  "numDeployments": 1,
1504
- "solcInputHash": "26073710b59023fa12a4a7fdb81fff44",
1505
- "metadata": "{\"compiler\":{\"version\":\"0.7.6+commit.7338295f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_endpoint\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"chainId\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"lib\",\"type\":\"address\"}],\"name\":\"AddInboundProofLibraryForChain\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"userApplication\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"configType\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"newConfig\",\"type\":\"bytes\"}],\"name\":\"AppConfigUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"chainId\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"proofType\",\"type\":\"uint16\"}],\"name\":\"EnableSupportedOutboundProof\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"srcChainId\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oracle\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"confirmations\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"blockhash\",\"type\":\"bytes32\"}],\"name\":\"HashReceived\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"chainId\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"payload\",\"type\":\"bytes\"}],\"name\":\"Packet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"chainId\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"nonce\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"outboundProofType\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"adapterParams\",\"type\":\"bytes\"}],\"name\":\"RelayerParams\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"chainId\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"size\",\"type\":\"uint256\"}],\"name\":\"SetChainAddressSize\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"chainId\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"proofType\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"adapterParams\",\"type\":\"bytes\"}],\"name\":\"SetDefaultAdapterParamsForChainId\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"chainId\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"inboundProofLib\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"inboundBlockConfirm\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"relayer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"outboundProofType\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"outboundBlockConfirm\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oracle\",\"type\":\"address\"}],\"name\":\"SetDefaultConfigForChainId\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"}],\"name\":\"SetLayerZeroToken\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"relayerFeeContract\",\"type\":\"address\"}],\"name\":\"SetRelayerFeeContract\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"chainId\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"uln\",\"type\":\"bytes32\"}],\"name\":\"SetRemoteUln\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"treasuryAddress\",\"type\":\"address\"}],\"name\":\"SetTreasury\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"_type\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_msgSender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"WithdrawNative\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_msgSender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"WithdrawZRO\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"BP_DENOMINATOR\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"CONFIG_TYPE_INBOUND_BLOCK_CONFIRMATIONS\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"CONFIG_TYPE_INBOUND_PROOF_LIBRARY_VERSION\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"CONFIG_TYPE_ORACLE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"CONFIG_TYPE_OUTBOUND_BLOCK_CONFIRMATIONS\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"CONFIG_TYPE_OUTBOUND_PROOF_TYPE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"CONFIG_TYPE_RELAYER\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"WITHDRAW_TYPE_ORACLE_QUOTED_FEES\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"WITHDRAW_TYPE_RELAYER_QUOTED_FEES\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"WITHDRAW_TYPE_TREASURY_PROTOCOL_FEES\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_chainId\",\"type\":\"uint16\"},{\"internalType\":\"address\",\"name\":\"_library\",\"type\":\"address\"}],\"name\":\"addInboundProofLibraryForChain\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"name\":\"appConfig\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"inboundProofLibraryVersion\",\"type\":\"uint16\"},{\"internalType\":\"uint64\",\"name\":\"inboundBlockConfirmations\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"relayer\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"outboundProofType\",\"type\":\"uint16\"},{\"internalType\":\"uint64\",\"name\":\"outboundBlockConfirmations\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"oracle\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"name\":\"chainAddressSizeMap\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"name\":\"defaultAdapterParams\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"name\":\"defaultAppConfig\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"inboundProofLibraryVersion\",\"type\":\"uint16\"},{\"internalType\":\"uint64\",\"name\":\"inboundBlockConfirmations\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"relayer\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"outboundProofType\",\"type\":\"uint16\"},{\"internalType\":\"uint64\",\"name\":\"outboundBlockConfirmations\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"oracle\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_chainId\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"_proofType\",\"type\":\"uint16\"}],\"name\":\"enableSupportedOutboundProof\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"endpoint\",\"outputs\":[{\"internalType\":\"contract ILayerZeroEndpoint\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_chainId\",\"type\":\"uint16\"},{\"internalType\":\"address\",\"name\":\"_ua\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_payload\",\"type\":\"bytes\"},{\"internalType\":\"bool\",\"name\":\"_payInZRO\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"_adapterParams\",\"type\":\"bytes\"}],\"name\":\"estimateFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"nativeFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"zroFee\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_chainId\",\"type\":\"uint16\"},{\"internalType\":\"address\",\"name\":\"userApplicationAddress\",\"type\":\"address\"}],\"name\":\"getAppConfig\",\"outputs\":[{\"components\":[{\"internalType\":\"uint16\",\"name\":\"inboundProofLibraryVersion\",\"type\":\"uint16\"},{\"internalType\":\"uint64\",\"name\":\"inboundBlockConfirmations\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"relayer\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"outboundProofType\",\"type\":\"uint16\"},{\"internalType\":\"uint64\",\"name\":\"outboundBlockConfirmations\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"oracle\",\"type\":\"address\"}],\"internalType\":\"struct UltraLightNode.ApplicationConfiguration\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_oracle\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"_remoteChainId\",\"type\":\"uint16\"},{\"internalType\":\"bytes32\",\"name\":\"_lookupHash\",\"type\":\"bytes32\"}],\"name\":\"getBlockHeaderData\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"confirmations\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"data\",\"type\":\"bytes32\"}],\"internalType\":\"struct UltraLightNode.BlockData\",\"name\":\"blockData\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_chainId\",\"type\":\"uint16\"},{\"internalType\":\"address\",\"name\":\"userApplicationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_configType\",\"type\":\"uint256\"}],\"name\":\"getConfig\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"},{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"hashLookup\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"confirmations\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"data\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"name\":\"inboundProofLibrary\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"layerZeroToken\",\"outputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"name\":\"maxInboundProofLibrary\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_oracle\",\"type\":\"address\"}],\"name\":\"oracleQuotedAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"oracleQuotedFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_relayer\",\"type\":\"address\"}],\"name\":\"relayerQuotedAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"relayerQuotedFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_ua\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"_nonce\",\"type\":\"uint64\"},{\"internalType\":\"uint16\",\"name\":\"_chainId\",\"type\":\"uint16\"},{\"internalType\":\"bytes\",\"name\":\"_destination\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"_payload\",\"type\":\"bytes\"},{\"internalType\":\"address payable\",\"name\":\"_refundAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_zroPaymentAddress\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_adapterParams\",\"type\":\"bytes\"}],\"name\":\"send\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_chainId\",\"type\":\"uint16\"},{\"internalType\":\"uint256\",\"name\":\"_size\",\"type\":\"uint256\"}],\"name\":\"setChainAddressSize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"chainId\",\"type\":\"uint16\"},{\"internalType\":\"address\",\"name\":\"_ua\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_configType\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_config\",\"type\":\"bytes\"}],\"name\":\"setConfig\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_chainId\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"_proofType\",\"type\":\"uint16\"},{\"internalType\":\"bytes\",\"name\":\"_adapterParams\",\"type\":\"bytes\"}],\"name\":\"setDefaultAdapterParamsForChainId\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_chainId\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"_inboundProofLibraryVersion\",\"type\":\"uint16\"},{\"internalType\":\"uint64\",\"name\":\"_inboundBlockConfirmations\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"_relayer\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"_outboundProofType\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"_outboundBlockConfirmations\",\"type\":\"uint16\"},{\"internalType\":\"address\",\"name\":\"_oracle\",\"type\":\"address\"}],\"name\":\"setDefaultConfigForChainId\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_layerZeroToken\",\"type\":\"address\"}],\"name\":\"setLayerZeroToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_remoteChainId\",\"type\":\"uint16\"},{\"internalType\":\"bytes32\",\"name\":\"_remoteUln\",\"type\":\"bytes32\"}],\"name\":\"setRemoteUln\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_treasury\",\"type\":\"address\"}],\"name\":\"setTreasury\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"name\":\"supportedOutboundProof\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"treasuryContract\",\"outputs\":[{\"internalType\":\"contract ILayerZeroTreasury\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"treasuryNativeFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"treasuryZROFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"name\":\"ulnLookup\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_srcChainId\",\"type\":\"uint16\"},{\"internalType\":\"bytes32\",\"name\":\"_lookupHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"_confirmations\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"_data\",\"type\":\"bytes32\"}],\"name\":\"updateHash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_srcChainId\",\"type\":\"uint16\"},{\"internalType\":\"address\",\"name\":\"_dstAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_gasLimit\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"_lookupHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"_transactionProof\",\"type\":\"bytes\"}],\"name\":\"validateTransactionProof\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"_type\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"},{\"internalType\":\"address payable\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"withdrawNative\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"withdrawZRO\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"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 anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing 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/UltraLightNode.sol\":\"UltraLightNode\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":10000},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.7.0;\\n\\nimport \\\"../utils/Context.sol\\\";\\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 address msgSender = _msgSender();\\n _owner = msgSender;\\n emit OwnershipTransferred(address(0), msgSender);\\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 called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n _;\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions anymore. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby removing any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n emit OwnershipTransferred(_owner, address(0));\\n _owner = 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 emit OwnershipTransferred(_owner, newOwner);\\n _owner = newOwner;\\n }\\n}\\n\",\"keccak256\":\"0x549c5343ad9f7e3f38aa4c4761854403502574bbc15b822db2ce892ff9b79da7\",\"license\":\"MIT\"},\"@openzeppelin/contracts/math/SafeMath.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.7.0;\\n\\n/**\\n * @dev Wrappers over Solidity's arithmetic operations with added overflow\\n * checks.\\n *\\n * Arithmetic operations in Solidity wrap on overflow. This can easily result\\n * in bugs, because programmers usually assume that an overflow raises an\\n * error, which is the standard behavior in high level programming languages.\\n * `SafeMath` restores this intuition by reverting the transaction when an\\n * operation overflows.\\n *\\n * Using this library instead of the unchecked operations eliminates an entire\\n * class of bugs, so it's recommended to use it always.\\n */\\nlibrary SafeMath {\\n /**\\n * @dev Returns the addition of two unsigned integers, with an overflow flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n uint256 c = a + b;\\n if (c < a) return (false, 0);\\n return (true, c);\\n }\\n\\n /**\\n * @dev Returns the substraction of two unsigned integers, with an overflow flag.\\n *\\n * _Available since v3.4._\\n */\\n function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n if (b > a) return (false, 0);\\n return (true, a - b);\\n }\\n\\n /**\\n * @dev Returns the multiplication of two unsigned integers, with an overflow flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\\n // benefit is lost if 'b' is also tested.\\n // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\\n if (a == 0) return (true, 0);\\n uint256 c = a * b;\\n if (c / a != b) return (false, 0);\\n return (true, c);\\n }\\n\\n /**\\n * @dev Returns the division of two unsigned integers, with a division by zero flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n if (b == 0) return (false, 0);\\n return (true, a / b);\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n if (b == 0) return (false, 0);\\n return (true, a % b);\\n }\\n\\n /**\\n * @dev Returns the addition of two unsigned integers, reverting on\\n * overflow.\\n *\\n * Counterpart to Solidity's `+` operator.\\n *\\n * Requirements:\\n *\\n * - Addition cannot overflow.\\n */\\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\\n uint256 c = a + b;\\n require(c >= a, \\\"SafeMath: addition overflow\\\");\\n return c;\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, reverting on\\n * overflow (when the result is negative).\\n *\\n * Counterpart to Solidity's `-` operator.\\n *\\n * Requirements:\\n *\\n * - Subtraction cannot overflow.\\n */\\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\\n require(b <= a, \\\"SafeMath: subtraction overflow\\\");\\n return a - b;\\n }\\n\\n /**\\n * @dev Returns the multiplication of two unsigned integers, reverting on\\n * overflow.\\n *\\n * Counterpart to Solidity's `*` operator.\\n *\\n * Requirements:\\n *\\n * - Multiplication cannot overflow.\\n */\\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\\n if (a == 0) return 0;\\n uint256 c = a * b;\\n require(c / a == b, \\\"SafeMath: multiplication overflow\\\");\\n return c;\\n }\\n\\n /**\\n * @dev Returns the integer division of two unsigned integers, reverting on\\n * division by zero. The result is rounded towards zero.\\n *\\n * Counterpart to Solidity's `/` operator. Note: this function uses a\\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\\n * uses an invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function div(uint256 a, uint256 b) internal pure returns (uint256) {\\n require(b > 0, \\\"SafeMath: division by zero\\\");\\n return a / b;\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\\n * reverting when dividing by zero.\\n *\\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\\n * opcode (which leaves remaining gas untouched) while Solidity uses an\\n * invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function mod(uint256 a, uint256 b) internal pure returns (uint256) {\\n require(b > 0, \\\"SafeMath: modulo by zero\\\");\\n return a % b;\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, reverting with custom message on\\n * overflow (when the result is negative).\\n *\\n * CAUTION: This function is deprecated because it requires allocating memory for the error\\n * message unnecessarily. For custom revert reasons use {trySub}.\\n *\\n * Counterpart to Solidity's `-` operator.\\n *\\n * Requirements:\\n *\\n * - Subtraction cannot overflow.\\n */\\n function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\\n require(b <= a, errorMessage);\\n return a - b;\\n }\\n\\n /**\\n * @dev Returns the integer division of two unsigned integers, reverting with custom message on\\n * division by zero. The result is rounded towards zero.\\n *\\n * CAUTION: This function is deprecated because it requires allocating memory for the error\\n * message unnecessarily. For custom revert reasons use {tryDiv}.\\n *\\n * Counterpart to Solidity's `/` operator. Note: this function uses a\\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\\n * uses an invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\\n require(b > 0, errorMessage);\\n return a / b;\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\\n * reverting with custom message when dividing by zero.\\n *\\n * CAUTION: This function is deprecated because it requires allocating memory for the error\\n * message unnecessarily. For custom revert reasons use {tryMod}.\\n *\\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\\n * opcode (which leaves remaining gas untouched) while Solidity uses an\\n * invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\\n require(b > 0, errorMessage);\\n return a % b;\\n }\\n}\\n\",\"keccak256\":\"0xe22a1fc7400ae196eba2ad1562d0386462b00a6363b742d55a2fd2021a58586f\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.7.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20 {\\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 `recipient`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, uint256 amount) external returns (bool);\\n\\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\",\"keccak256\":\"0xbd74f587ab9b9711801baf667db1426e4a03fd2d7f15af33e0e0d0394e7cef76\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/SafeERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.7.0;\\n\\nimport \\\"./IERC20.sol\\\";\\nimport \\\"../../math/SafeMath.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 SafeMath for uint256;\\n using Address for address;\\n\\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\\n }\\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 // solhint-disable-next-line max-line-length\\n require((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 function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\\n uint256 newAllowance = token.allowance(address(this), spender).add(value);\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\\n }\\n\\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {\\n uint256 newAllowance = token.allowance(address(this), spender).sub(value, \\\"SafeERC20: decreased allowance below zero\\\");\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\\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 if (returndata.length > 0) { // Return data is optional\\n // solhint-disable-next-line max-line-length\\n require(abi.decode(returndata, (bool)), \\\"SafeERC20: ERC20 operation did not succeed\\\");\\n }\\n }\\n}\\n\",\"keccak256\":\"0xc77dd6233a82c7c6e3dc49da8f3456baa00ecd3ea4dfa9222002a9aebf155dcd\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.7.0;\\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 */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize, which returns 0 for contracts in\\n // construction, since the code is only stored at the end of the\\n // constructor execution.\\n\\n uint256 size;\\n // solhint-disable-next-line no-inline-assembly\\n assembly { size := extcodesize(account) }\\n return size > 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://diligence.consensys.net/posts/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.5.11/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 // solhint-disable-next-line avoid-low-level-calls, avoid-call-value\\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 functionCall(target, data, \\\"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(address target, bytes memory data, string memory errorMessage) 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(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, bytes memory returndata) = target.call{ value: value }(data);\\n return _verifyCallResult(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(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {\\n require(isContract(target), \\\"Address: static call to non-contract\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return _verifyCallResult(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(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {\\n require(isContract(target), \\\"Address: delegate call to non-contract\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return _verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\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\\n // solhint-disable-next-line no-inline-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}\\n\",\"keccak256\":\"0xf89f005a3d98f7768cdee2583707db0ac725cf567d455751af32ee68132f3db3\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <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 GSN 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 payable) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes memory) {\\n this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0x8d3cb350f04ff49cfb10aef08d87f19dcbaecc8027b0bed12f3275cd12f38cf0\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/ReentrancyGuard.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.7.0;\\n\\n/**\\n * @dev Contract module that helps prevent reentrant calls to a function.\\n *\\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\\n * available, which can be applied to functions to make sure there are no nested\\n * (reentrant) calls to them.\\n *\\n * Note that because there is a single `nonReentrant` guard, functions marked as\\n * `nonReentrant` may not call one another. This can be worked around by making\\n * those functions `private`, and then adding `external` `nonReentrant` entry\\n * points to them.\\n *\\n * TIP: If you would like to learn more about reentrancy and alternative ways\\n * to protect against it, check out our blog post\\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\\n */\\nabstract contract ReentrancyGuard {\\n // Booleans are more expensive than uint256 or any type that takes up a full\\n // word because each write operation emits an extra SLOAD to first read the\\n // slot's contents, replace the bits taken up by the boolean, and then write\\n // back. This is the compiler's defense against contract upgrades and\\n // pointer aliasing, and it cannot be disabled.\\n\\n // The values being non-zero value makes deployment a bit more expensive,\\n // but in exchange the refund on every call to nonReentrant will be lower in\\n // amount. Since refunds are capped to a percentage of the total\\n // transaction's gas, it is best to keep them low in cases like this one, to\\n // increase the likelihood of the full refund coming into effect.\\n uint256 private constant _NOT_ENTERED = 1;\\n uint256 private constant _ENTERED = 2;\\n\\n uint256 private _status;\\n\\n constructor () {\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev Prevents a contract from calling itself, directly or indirectly.\\n * Calling a `nonReentrant` function from another `nonReentrant`\\n * function is not supported. It is possible to prevent this from happening\\n * by making the `nonReentrant` function external, and make it call a\\n * `private` function that does the actual work.\\n */\\n modifier nonReentrant() {\\n // On the first call to nonReentrant, _notEntered will be true\\n require(_status != _ENTERED, \\\"ReentrancyGuard: reentrant call\\\");\\n\\n // Any calls to nonReentrant after this point will fail\\n _status = _ENTERED;\\n\\n _;\\n\\n // By storing the original value once again, a refund is triggered (see\\n // https://eips.ethereum.org/EIPS/eip-2200)\\n _status = _NOT_ENTERED;\\n }\\n}\\n\",\"keccak256\":\"0x1153f6dd334c01566417b8c551122450542a2b75a2bbb379d59a8c320ed6da28\",\"license\":\"MIT\"},\"contracts/UltraLightNode.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\n\\npragma solidity 0.7.6;\\npragma abicoder v2;\\n\\nimport \\\"@openzeppelin/contracts/access/Ownable.sol\\\";\\nimport \\\"@openzeppelin/contracts/math/SafeMath.sol\\\";\\nimport \\\"@openzeppelin/contracts/utils/ReentrancyGuard.sol\\\";\\nimport \\\"@openzeppelin/contracts/token/ERC20/IERC20.sol\\\";\\nimport \\\"@openzeppelin/contracts/token/ERC20/SafeERC20.sol\\\";\\n\\nimport \\\"./interfaces/ILayerZeroValidationLibrary.sol\\\";\\nimport \\\"./interfaces/ILayerZeroMessagingLibrary.sol\\\";\\nimport \\\"./interfaces/ILayerZeroReceiver.sol\\\";\\nimport \\\"./interfaces/ILayerZeroRelayer.sol\\\";\\nimport \\\"./interfaces/ILayerZeroTreasury.sol\\\";\\nimport \\\"./interfaces/ILayerZeroOracle.sol\\\";\\nimport \\\"./interfaces/ILayerZeroUltraLightNodeV1.sol\\\";\\nimport \\\"./interfaces/ILayerZeroEndpoint.sol\\\";\\n\\ncontract UltraLightNode is ILayerZeroMessagingLibrary, ILayerZeroUltraLightNodeV1, ReentrancyGuard, Ownable {\\n using SafeERC20 for IERC20;\\n using SafeMath for uint;\\n\\n struct BlockData {\\n uint confirmations;\\n bytes32 data;\\n }\\n\\n // Application config\\n uint public constant CONFIG_TYPE_INBOUND_PROOF_LIBRARY_VERSION = 1;\\n uint public constant CONFIG_TYPE_INBOUND_BLOCK_CONFIRMATIONS = 2;\\n uint public constant CONFIG_TYPE_RELAYER = 3;\\n uint public constant CONFIG_TYPE_OUTBOUND_PROOF_TYPE = 4;\\n uint public constant CONFIG_TYPE_OUTBOUND_BLOCK_CONFIRMATIONS = 5;\\n uint public constant CONFIG_TYPE_ORACLE = 6;\\n\\n struct ApplicationConfiguration {\\n uint16 inboundProofLibraryVersion;\\n uint64 inboundBlockConfirmations;\\n address relayer;\\n uint16 outboundProofType;\\n uint64 outboundBlockConfirmations;\\n address oracle;\\n }\\n\\n // Token and Contracts\\n IERC20 public layerZeroToken;\\n ILayerZeroTreasury public treasuryContract;\\n\\n // Fee management\\n uint public constant BP_DENOMINATOR = 10000;\\n // treasury and relayer share the protocol fee, either in native token or ZRO\\n uint8 public constant WITHDRAW_TYPE_TREASURY_PROTOCOL_FEES = 0;\\n uint8 public constant WITHDRAW_TYPE_ORACLE_QUOTED_FEES = 1; // quoted fee refers to the fee in block relaying\\n uint8 public constant WITHDRAW_TYPE_RELAYER_QUOTED_FEES = 2; //quoted fee refers the fee in msg relaying\\n\\n mapping(address => uint) public oracleQuotedFees;\\n mapping(address => uint) public relayerQuotedFees;\\n uint public treasuryNativeFees;\\n uint public treasuryZROFees;\\n\\n // User Application\\n mapping(address => mapping(uint16 => ApplicationConfiguration)) public appConfig; // app address => chainId => config\\n mapping(uint16 => ApplicationConfiguration) public defaultAppConfig; // default UA settings if no version specified\\n mapping(uint16 => mapping(uint16 => bytes)) public defaultAdapterParams;\\n\\n // Validation\\n mapping(uint16 => mapping(uint16 => address)) public inboundProofLibrary; // chainId => library Id => inboundProofLibrary contract\\n mapping(uint16 => uint16) public maxInboundProofLibrary; // chainId => inboundProofLibrary\\n mapping(uint16 => mapping(uint16 => bool)) public supportedOutboundProof; // chainId => outboundProofType => enabled\\n mapping(uint16 => uint) public chainAddressSizeMap;\\n mapping(address => mapping(uint16 => mapping(bytes32 => BlockData))) public hashLookup;\\n mapping(uint16 => bytes32) public ulnLookup; // remote ulns\\n\\n ILayerZeroEndpoint public immutable endpoint;\\n\\n // Events\\n event AppConfigUpdated(address userApplication, uint configType, bytes newConfig);\\n event AddInboundProofLibraryForChain(uint16 chainId, address lib);\\n event EnableSupportedOutboundProof(uint16 chainId, uint16 proofType);\\n event HashReceived(uint16 srcChainId, address oracle, uint confirmations, bytes32 blockhash);\\n event Packet(uint16 chainId, bytes payload);\\n event RelayerParams(uint16 chainId, uint64 nonce, uint16 outboundProofType, bytes adapterParams);\\n event SetChainAddressSize(uint16 chainId, uint size);\\n event SetDefaultConfigForChainId(\\n uint16 chainId,\\n uint16 inboundProofLib,\\n uint64 inboundBlockConfirm,\\n address relayer,\\n uint16 outboundProofType,\\n uint16 outboundBlockConfirm,\\n address oracle\\n );\\n event SetDefaultAdapterParamsForChainId(uint16 chainId, uint16 proofType, bytes adapterParams);\\n event SetLayerZeroToken(address tokenAddress);\\n event SetRelayerFeeContract(address relayerFeeContract);\\n event SetRemoteUln(uint16 chainId, bytes32 uln);\\n event SetTreasury(address treasuryAddress);\\n event WithdrawZRO(address _msgSender, address _to, uint _amount);\\n event WithdrawNative(uint8 _type, address _owner, address _msgSender, address _to, uint _amount);\\n\\n constructor(address _endpoint) {\\n require(_endpoint != address(0x0), \\\"LayerZero: endpoint cannot be zero address\\\");\\n endpoint = ILayerZeroEndpoint(_endpoint);\\n }\\n\\n // only the endpoint can call SEND() and setConfig()\\n modifier onlyEndpoint() {\\n require(address(endpoint) == msg.sender, \\\"LayerZero: only endpoint\\\");\\n _;\\n }\\n\\n //----------------------------------------------------------------------------------\\n // PROTOCOL\\n\\n // This function completes delivery of a LayerZero message.\\n //\\n // In order to deliver the message, this function:\\n // (a) takes the _transactionProof submitted by UA's relayer, and\\n // (b) retrieve UA's validation library\\n // (c) takes the _blockData submitted by the UA's oracle given the their configuration (and blockConfirmations),\\n // (d) decodes using UA's validation library using (a) and (c)\\n // then, this functions asserts that\\n // (e) the payload originated from the known Ultra Light Node from source chain, and\\n // (f) the _dstAddress the specified destination contract\\n function validateTransactionProof(\\n uint16 _srcChainId,\\n address _dstAddress,\\n uint _gasLimit,\\n bytes32 _lookupHash,\\n bytes calldata _transactionProof\\n ) external override {\\n // retrieve UA's configuration using the _dstAddress from arguments.\\n ApplicationConfiguration memory uaConfig = getAppConfig(_srcChainId, _dstAddress);\\n\\n // (a) assert that the caller == UA's relayer\\n require(uaConfig.relayer == msg.sender, \\\"LayerZero: invalid relayer\\\");\\n\\n LayerZeroPacket.Packet memory _packet;\\n {\\n // (b) retrieve UA's validation library\\n address inboundProofLib = inboundProofLibrary[_srcChainId][uaConfig.inboundProofLibraryVersion];\\n\\n // (c) assert that the data submitted by UA's oracle have no fewer confirmations than UA's configuration\\n BlockData storage blockData = hashLookup[uaConfig.oracle][_srcChainId][_lookupHash];\\n require(\\n blockData.confirmations >= uaConfig.inboundBlockConfirmations,\\n \\\"LayerZero: not enough block confirmations\\\"\\n );\\n\\n // (d) decode\\n uint remoteAddressSize = chainAddressSizeMap[_srcChainId];\\n _packet = ILayerZeroValidationLibrary(inboundProofLib).validateProof(\\n blockData.data,\\n _transactionProof,\\n remoteAddressSize\\n );\\n }\\n\\n // (e) assert that the packet was emitted by the source ultra light node\\n require(ulnLookup[_srcChainId] == _packet.ulnAddress, \\\"LayerZero: _packet.ulnAddress is invalid\\\");\\n\\n // (f) assert that the _packet._dstAddress == the _dstAddress specified by the UAs message\\n require(_packet.dstAddress == _dstAddress, \\\"LayerZero: invalid dst address\\\");\\n\\n // publish the payload and _gasLimit to the endpoint for calling lzReceive at _dstAddress\\n endpoint.receivePayload(\\n _packet.srcChainId,\\n _packet.srcAddress,\\n _packet.dstAddress,\\n _packet.nonce,\\n _gasLimit,\\n _packet.payload\\n );\\n }\\n\\n // Called (by the Endpoint) with the information required to send a LayerZero message for a User Application.\\n // This function:\\n // (a) pays the protocol (native token or ZRO), oracle (native token) and relayer (native token) for their roles in sending the message.\\n // (b) generates the message payload and emits events of the message and adapterParams\\n // (c) notifies the oracle\\n function send(\\n address _ua,\\n uint64 _nonce,\\n uint16 _chainId,\\n bytes calldata _destination,\\n bytes calldata _payload,\\n address payable _refundAddress,\\n address _zroPaymentAddress,\\n bytes calldata _adapterParams\\n ) external payable override onlyEndpoint {\\n ApplicationConfiguration memory uaConfig = getAppConfig(_chainId, _ua);\\n address ua = _ua;\\n uint64 nonce = _nonce;\\n uint16 chainId = _chainId;\\n require(ulnLookup[chainId] != bytes32(0), \\\"LayerZero: chainId does not exist\\\");\\n\\n uint totalNativeFee;\\n {\\n uint oracleFee;\\n // (a - 1), pay the oracle\\n {\\n oracleFee = ILayerZeroOracle(uaConfig.oracle).getPrice(chainId, uaConfig.outboundProofType);\\n oracleQuotedFees[uaConfig.oracle] = oracleQuotedFees[uaConfig.oracle].add(oracleFee);\\n }\\n\\n // (a - 2), pay the relayer\\n {\\n uint payloadSize = _payload.length;\\n ILayerZeroRelayer relayer = ILayerZeroRelayer(uaConfig.relayer);\\n if (_adapterParams.length == 0) {\\n bytes memory defaultAdaptorParam = defaultAdapterParams[chainId][uaConfig.outboundProofType];\\n totalNativeFee = relayer.getPrice(\\n chainId,\\n uaConfig.outboundProofType,\\n ua,\\n payloadSize,\\n defaultAdaptorParam\\n );\\n relayer.notifyRelayer(chainId, uaConfig.outboundProofType, defaultAdaptorParam);\\n } else {\\n totalNativeFee = relayer.getPrice(\\n chainId,\\n uaConfig.outboundProofType,\\n ua,\\n payloadSize,\\n _adapterParams\\n );\\n relayer.notifyRelayer(chainId, uaConfig.outboundProofType, _adapterParams);\\n }\\n relayerQuotedFees[uaConfig.relayer] = relayerQuotedFees[uaConfig.relayer].add(totalNativeFee); // totalNativeFee == relayerFee here\\n\\n // emit the param events\\n emit RelayerParams(chainId, nonce, uaConfig.outboundProofType, _adapterParams);\\n }\\n\\n // (a - 3), pay the protocol\\n {\\n // if no ZRO token or not specifying a payment address, pay in native token\\n bool payInNative = _zroPaymentAddress == address(0x0) || address(layerZeroToken) == address(0x0);\\n uint protocolFee = treasuryContract.getFees(!payInNative, totalNativeFee, oracleFee); // totalNativeFee == relayerFee here\\n\\n if (protocolFee > 0) {\\n if (payInNative) {\\n treasuryNativeFees = treasuryNativeFees.add(protocolFee);\\n totalNativeFee = totalNativeFee.add(protocolFee);\\n } else {\\n // zro payment address must equal the _ua or the tx.origin otherwise the transaction reverts\\n require(\\n _zroPaymentAddress == ua || _zroPaymentAddress == tx.origin,\\n \\\"LayerZero: must be paid by sender or origin\\\"\\n );\\n\\n // transfer the LayerZero token to this contract from the payee\\n layerZeroToken.safeTransferFrom(_zroPaymentAddress, address(this), protocolFee);\\n\\n treasuryZROFees = treasuryZROFees.add(protocolFee);\\n }\\n }\\n }\\n\\n totalNativeFee = totalNativeFee.add(oracleFee);\\n }\\n\\n // (b) emit payload and the adapterParams if any\\n {\\n bytes memory encodedPayload = abi.encodePacked(nonce, ua, _destination, _payload);\\n emit Packet(chainId, encodedPayload);\\n // (c) notify the oracle\\n ILayerZeroOracle(uaConfig.oracle).notifyOracle(\\n chainId,\\n uaConfig.outboundProofType,\\n uaConfig.outboundBlockConfirmations\\n );\\n }\\n\\n require(totalNativeFee <= msg.value, \\\"LayerZero: not enough native for fees\\\");\\n // refund if they send too much\\n uint amount = msg.value.sub(totalNativeFee);\\n if (amount > 0) {\\n (bool success, ) = _refundAddress.call{value: amount}(\\\"\\\");\\n require(success, \\\"LayerZero: failed to refund\\\");\\n }\\n }\\n\\n // Can be called by any address to update a block header\\n // can only upload new block data or the same block data with more confirmations\\n function updateHash(uint16 _srcChainId, bytes32 _lookupHash, uint _confirmations, bytes32 _data) external override {\\n // this function may revert with a default message if the oracle address is not an ILayerZeroOracle\\n BlockData storage bd = hashLookup[msg.sender][_srcChainId][_lookupHash];\\n // if it has a record, requires a larger confirmation.\\n require(\\n bd.confirmations < _confirmations,\\n \\\"LayerZero: oracle data can only update if it has more confirmations\\\"\\n );\\n\\n // set the new information into storage\\n bd.confirmations = _confirmations;\\n bd.data = _data;\\n\\n emit HashReceived(_srcChainId, msg.sender, _confirmations, _lookupHash);\\n }\\n\\n //----------------------------------------------------------------------------------\\n // Other Library Interfaces\\n\\n // default to DEFAULT setting if ZERO value\\n function getAppConfig(\\n uint16 _chainId,\\n address userApplicationAddress\\n ) public view returns (ApplicationConfiguration memory) {\\n ApplicationConfiguration memory config = appConfig[userApplicationAddress][_chainId];\\n ApplicationConfiguration storage defaultConfig = defaultAppConfig[_chainId];\\n\\n if (config.inboundProofLibraryVersion == 0) {\\n config.inboundProofLibraryVersion = defaultConfig.inboundProofLibraryVersion;\\n }\\n\\n if (config.inboundBlockConfirmations == 0) {\\n config.inboundBlockConfirmations = defaultConfig.inboundBlockConfirmations;\\n }\\n\\n if (config.relayer == address(0x0)) {\\n config.relayer = defaultConfig.relayer;\\n }\\n\\n if (config.outboundProofType == 0) {\\n config.outboundProofType = defaultConfig.outboundProofType;\\n }\\n\\n if (config.outboundBlockConfirmations == 0) {\\n config.outboundBlockConfirmations = defaultConfig.outboundBlockConfirmations;\\n }\\n\\n if (config.oracle == address(0x0)) {\\n config.oracle = defaultConfig.oracle;\\n }\\n\\n return config;\\n }\\n\\n function setConfig(\\n uint16 chainId,\\n address _ua,\\n uint _configType,\\n bytes calldata _config\\n ) external override onlyEndpoint {\\n ApplicationConfiguration storage uaConfig = appConfig[_ua][chainId];\\n if (_configType == CONFIG_TYPE_INBOUND_PROOF_LIBRARY_VERSION) {\\n uint16 inboundProofLibraryVersion = abi.decode(_config, (uint16));\\n require(\\n inboundProofLibraryVersion <= maxInboundProofLibrary[chainId],\\n \\\"LayerZero: invalid inbound proof library version\\\"\\n );\\n uaConfig.inboundProofLibraryVersion = inboundProofLibraryVersion;\\n } else if (_configType == CONFIG_TYPE_INBOUND_BLOCK_CONFIRMATIONS) {\\n uint64 blockConfirmations = abi.decode(_config, (uint64));\\n uaConfig.inboundBlockConfirmations = blockConfirmations;\\n } else if (_configType == CONFIG_TYPE_RELAYER) {\\n address relayer = abi.decode(_config, (address));\\n uaConfig.relayer = relayer;\\n } else if (_configType == CONFIG_TYPE_OUTBOUND_PROOF_TYPE) {\\n uint16 outboundProofType = abi.decode(_config, (uint16));\\n require(\\n supportedOutboundProof[chainId][outboundProofType] || outboundProofType == 0,\\n \\\"LayerZero: invalid outbound proof type\\\"\\n );\\n uaConfig.outboundProofType = outboundProofType;\\n } else if (_configType == CONFIG_TYPE_OUTBOUND_BLOCK_CONFIRMATIONS) {\\n uint64 blockConfirmations = abi.decode(_config, (uint64));\\n uaConfig.outboundBlockConfirmations = blockConfirmations;\\n } else if (_configType == CONFIG_TYPE_ORACLE) {\\n address oracle = abi.decode(_config, (address));\\n uaConfig.oracle = oracle;\\n } else {\\n revert(\\\"LayerZero: Invalid config type\\\");\\n }\\n\\n emit AppConfigUpdated(_ua, _configType, _config);\\n }\\n\\n function getConfig(\\n uint16 _chainId,\\n address userApplicationAddress,\\n uint _configType\\n ) external view override returns (bytes memory) {\\n ApplicationConfiguration storage uaConfig = appConfig[userApplicationAddress][_chainId];\\n\\n if (_configType == CONFIG_TYPE_INBOUND_PROOF_LIBRARY_VERSION) {\\n if (uaConfig.inboundProofLibraryVersion == 0) {\\n return abi.encode(defaultAppConfig[_chainId].inboundProofLibraryVersion);\\n }\\n return abi.encode(uaConfig.inboundProofLibraryVersion);\\n } else if (_configType == CONFIG_TYPE_INBOUND_BLOCK_CONFIRMATIONS) {\\n if (uaConfig.inboundBlockConfirmations == 0) {\\n return abi.encode(defaultAppConfig[_chainId].inboundBlockConfirmations);\\n }\\n return abi.encode(uaConfig.inboundBlockConfirmations);\\n } else if (_configType == CONFIG_TYPE_RELAYER) {\\n if (uaConfig.relayer == address(0x0)) {\\n return abi.encode(defaultAppConfig[_chainId].relayer);\\n }\\n return abi.encode(uaConfig.relayer);\\n } else if (_configType == CONFIG_TYPE_OUTBOUND_PROOF_TYPE) {\\n if (uaConfig.outboundProofType == 0) {\\n return abi.encode(defaultAppConfig[_chainId].outboundProofType);\\n }\\n return abi.encode(uaConfig.outboundProofType);\\n } else if (_configType == CONFIG_TYPE_OUTBOUND_BLOCK_CONFIRMATIONS) {\\n if (uaConfig.outboundBlockConfirmations == 0) {\\n return abi.encode(defaultAppConfig[_chainId].outboundBlockConfirmations);\\n }\\n return abi.encode(uaConfig.outboundBlockConfirmations);\\n } else if (_configType == CONFIG_TYPE_ORACLE) {\\n if (uaConfig.oracle == address(0x0)) {\\n return abi.encode(defaultAppConfig[_chainId].oracle);\\n }\\n return abi.encode(uaConfig.oracle);\\n } else {\\n revert(\\\"LayerZero: Invalid config type\\\");\\n }\\n }\\n\\n // returns the native fee the UA pays to cover fees\\n function estimateFees(\\n uint16 _chainId,\\n address _ua,\\n bytes calldata _payload,\\n bool _payInZRO,\\n bytes calldata _adapterParams\\n ) external view override returns (uint nativeFee, uint zroFee) {\\n uint16 chainId = _chainId;\\n address ua = _ua;\\n uint payloadSize = _payload.length;\\n bytes memory adapterParam = _adapterParams;\\n\\n ApplicationConfiguration memory uaConfig = getAppConfig(chainId, ua);\\n\\n // Relayer Fee\\n uint relayerFee;\\n {\\n if (adapterParam.length == 0) {\\n bytes memory defaultAdaptorParam = defaultAdapterParams[chainId][uaConfig.outboundProofType];\\n relayerFee = ILayerZeroRelayer(uaConfig.relayer).getPrice(\\n chainId,\\n uaConfig.outboundProofType,\\n ua,\\n payloadSize,\\n defaultAdaptorParam\\n );\\n } else {\\n relayerFee = ILayerZeroRelayer(uaConfig.relayer).getPrice(\\n chainId,\\n uaConfig.outboundProofType,\\n ua,\\n payloadSize,\\n adapterParam\\n );\\n }\\n }\\n\\n // Oracle Fee\\n uint oracleFee = ILayerZeroOracle(uaConfig.oracle).getPrice(chainId, uaConfig.outboundProofType);\\n\\n // LayerZero Fee\\n {\\n uint protocolFee = treasuryContract.getFees(_payInZRO, relayerFee, oracleFee);\\n _payInZRO ? zroFee = protocolFee : nativeFee = protocolFee;\\n }\\n\\n // return the sum of fees\\n nativeFee = nativeFee.add(relayerFee).add(oracleFee);\\n }\\n\\n //---------------------------------------------------------------------------\\n // Claim Fees\\n\\n // universal withdraw ZRO token function\\n function withdrawZRO(address _to, uint _amount) external override nonReentrant {\\n require(msg.sender == address(treasuryContract), \\\"LayerZero: only treasury\\\");\\n treasuryZROFees = treasuryZROFees.sub(_amount);\\n layerZeroToken.safeTransfer(_to, _amount);\\n emit WithdrawZRO(msg.sender, _to, _amount);\\n }\\n\\n // universal withdraw native token function.\\n // the source contract should perform all the authentication control\\n // safemath overflow if the amount is not enough\\n function withdrawNative(\\n uint8 _type,\\n address _owner,\\n address payable _to,\\n uint _amount\\n ) external override nonReentrant {\\n if (_type == WITHDRAW_TYPE_TREASURY_PROTOCOL_FEES) {\\n require(msg.sender == address(treasuryContract), \\\"LayerZero:only treasury\\\");\\n treasuryNativeFees = treasuryNativeFees.sub(_amount);\\n } else if (_type == WITHDRAW_TYPE_ORACLE_QUOTED_FEES) {\\n oracleQuotedFees[msg.sender] = oracleQuotedFees[msg.sender].sub(_amount);\\n } else if (_type == WITHDRAW_TYPE_RELAYER_QUOTED_FEES) {\\n relayerQuotedFees[msg.sender] = relayerQuotedFees[msg.sender].sub(_amount);\\n } else {\\n revert(\\\"LayerZero: unsupported withdraw type\\\");\\n }\\n\\n (bool success, ) = _to.call{value: _amount}(\\\"\\\");\\n require(success, \\\"LayerZero: withdraw failed\\\");\\n emit WithdrawNative(_type, _owner, msg.sender, _to, _amount);\\n }\\n\\n //---------------------------------------------------------------------------\\n // Owner calls, configuration only.\\n function setLayerZeroToken(address _layerZeroToken) external onlyOwner {\\n require(_layerZeroToken != address(0x0), \\\"LayerZero: _layerZeroToken cannot be zero address\\\");\\n layerZeroToken = IERC20(_layerZeroToken);\\n emit SetLayerZeroToken(_layerZeroToken);\\n }\\n\\n function setTreasury(address _treasury) external onlyOwner {\\n require(_treasury != address(0x0), \\\"LayerZero: treasury cannot be zero address\\\");\\n treasuryContract = ILayerZeroTreasury(_treasury);\\n emit SetTreasury(_treasury);\\n }\\n\\n function addInboundProofLibraryForChain(uint16 _chainId, address _library) external onlyOwner {\\n require(_library != address(0x0), \\\"LayerZero: library cannot be zero address\\\");\\n require(maxInboundProofLibrary[_chainId] < 65535, \\\"LayerZero: can not add new library\\\");\\n maxInboundProofLibrary[_chainId]++;\\n inboundProofLibrary[_chainId][maxInboundProofLibrary[_chainId]] = _library;\\n emit AddInboundProofLibraryForChain(_chainId, _library);\\n }\\n\\n function enableSupportedOutboundProof(uint16 _chainId, uint16 _proofType) external onlyOwner {\\n supportedOutboundProof[_chainId][_proofType] = true;\\n emit EnableSupportedOutboundProof(_chainId, _proofType);\\n }\\n\\n function setDefaultConfigForChainId(\\n uint16 _chainId,\\n uint16 _inboundProofLibraryVersion,\\n uint64 _inboundBlockConfirmations,\\n address _relayer,\\n uint16 _outboundProofType,\\n uint16 _outboundBlockConfirmations,\\n address _oracle\\n ) external onlyOwner {\\n require(\\n _inboundProofLibraryVersion <= maxInboundProofLibrary[_chainId] && _inboundProofLibraryVersion > 0,\\n \\\"LayerZero: invalid inbound proof library version\\\"\\n );\\n require(_inboundBlockConfirmations > 0, \\\"LayerZero: invalid inbound block confirmation\\\");\\n require(_relayer != address(0x0), \\\"LayerZero: invalid relayer address\\\");\\n require(supportedOutboundProof[_chainId][_outboundProofType], \\\"LayerZero: invalid outbound proof type\\\");\\n require(_outboundBlockConfirmations > 0, \\\"LayerZero: invalid outbound block confirmation\\\");\\n require(_oracle != address(0x0), \\\"LayerZero: invalid oracle address\\\");\\n defaultAppConfig[_chainId] = ApplicationConfiguration(\\n _inboundProofLibraryVersion,\\n _inboundBlockConfirmations,\\n _relayer,\\n _outboundProofType,\\n _outboundBlockConfirmations,\\n _oracle\\n );\\n emit SetDefaultConfigForChainId(\\n _chainId,\\n _inboundProofLibraryVersion,\\n _inboundBlockConfirmations,\\n _relayer,\\n _outboundProofType,\\n _outboundBlockConfirmations,\\n _oracle\\n );\\n }\\n\\n function setDefaultAdapterParamsForChainId(\\n uint16 _chainId,\\n uint16 _proofType,\\n bytes calldata _adapterParams\\n ) external onlyOwner {\\n defaultAdapterParams[_chainId][_proofType] = _adapterParams;\\n emit SetDefaultAdapterParamsForChainId(_chainId, _proofType, _adapterParams);\\n }\\n\\n function setRemoteUln(uint16 _remoteChainId, bytes32 _remoteUln) external onlyOwner {\\n require(ulnLookup[_remoteChainId] == bytes32(0), \\\"LayerZero: remote uln already set\\\");\\n ulnLookup[_remoteChainId] = _remoteUln;\\n emit SetRemoteUln(_remoteChainId, _remoteUln);\\n }\\n\\n function setChainAddressSize(uint16 _chainId, uint _size) external onlyOwner {\\n require(chainAddressSizeMap[_chainId] == 0, \\\"LayerZero: remote chain address size already set\\\");\\n chainAddressSizeMap[_chainId] = _size;\\n emit SetChainAddressSize(_chainId, _size);\\n }\\n\\n //----------------------------------------------------------------------------------\\n // view functions\\n function getBlockHeaderData(\\n address _oracle,\\n uint16 _remoteChainId,\\n bytes32 _lookupHash\\n ) external view returns (BlockData memory blockData) {\\n return hashLookup[_oracle][_remoteChainId][_lookupHash];\\n }\\n\\n function oracleQuotedAmount(address _oracle) external view override returns (uint) {\\n return oracleQuotedFees[_oracle];\\n }\\n\\n function relayerQuotedAmount(address _relayer) external view override returns (uint) {\\n return relayerQuotedFees[_relayer];\\n }\\n}\\n\",\"keccak256\":\"0x56cc605f63c6e3b045e30a9251d3646d45ed119ae16eb9a05c99af500e3fb1a3\",\"license\":\"BUSL-1.1\"},\"contracts/interfaces/ILayerZeroEndpoint.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\n\\npragma solidity >=0.5.0;\\n\\nimport \\\"./ILayerZeroUserApplicationConfig.sol\\\";\\n\\ninterface ILayerZeroEndpoint is ILayerZeroUserApplicationConfig {\\n // @notice send a LayerZero message to the specified address at a LayerZero endpoint.\\n // @param _dstChainId - the destination chain identifier\\n // @param _destination - the address on destination chain (in bytes). address length/format may vary by chains\\n // @param _payload - a custom bytes payload to send to the destination contract\\n // @param _refundAddress - if the source transaction is cheaper than the amount of value passed, refund the additional amount to this address\\n // @param _zroPaymentAddress - the address of the ZRO token holder who would pay for the transaction\\n // @param _adapterParams - parameters for custom functionality. e.g. receive airdropped native gas from the relayer on destination\\n function send(\\n uint16 _dstChainId,\\n bytes calldata _destination,\\n bytes calldata _payload,\\n address payable _refundAddress,\\n address _zroPaymentAddress,\\n bytes calldata _adapterParams\\n ) external payable;\\n\\n // @notice used by the messaging library to publish verified payload\\n // @param _srcChainId - the source chain identifier\\n // @param _srcAddress - the source contract (as bytes) at the source chain\\n // @param _dstAddress - the address on destination chain\\n // @param _nonce - the unbound message ordering nonce\\n // @param _gasLimit - the gas limit for external contract execution\\n // @param _payload - verified payload to send to the destination contract\\n function receivePayload(\\n uint16 _srcChainId,\\n bytes calldata _srcAddress,\\n address _dstAddress,\\n uint64 _nonce,\\n uint _gasLimit,\\n bytes calldata _payload\\n ) external;\\n\\n // @notice get the inboundNonce of a receiver from a source chain which could be EVM or non-EVM chain\\n // @param _srcChainId - the source chain identifier\\n // @param _srcAddress - the source chain contract address\\n function getInboundNonce(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (uint64);\\n\\n // @notice get the outboundNonce from this source chain which, consequently, is always an EVM\\n // @param _srcAddress - the source chain contract address\\n function getOutboundNonce(uint16 _dstChainId, address _srcAddress) external view returns (uint64);\\n\\n // @notice gets a quote in source native gas, for the amount that send() requires to pay for message delivery\\n // @param _dstChainId - the destination chain identifier\\n // @param _userApplication - the user app address on this EVM chain\\n // @param _payload - the custom message to send over LayerZero\\n // @param _payInZRO - if false, user app pays the protocol fee in native token\\n // @param _adapterParam - parameters for the adapter service, e.g. send some dust native token to dstChain\\n function estimateFees(\\n uint16 _dstChainId,\\n address _userApplication,\\n bytes calldata _payload,\\n bool _payInZRO,\\n bytes calldata _adapterParam\\n ) external view returns (uint nativeFee, uint zroFee);\\n\\n // @notice get this Endpoint's immutable source identifier\\n function getChainId() external view returns (uint16);\\n\\n // @notice the interface to retry failed message on this Endpoint destination\\n // @param _srcChainId - the source chain identifier\\n // @param _srcAddress - the source chain contract address\\n // @param _payload - the payload to be retried\\n function retryPayload(uint16 _srcChainId, bytes calldata _srcAddress, bytes calldata _payload) external;\\n\\n // @notice query if any STORED payload (message blocking) at the endpoint.\\n // @param _srcChainId - the source chain identifier\\n // @param _srcAddress - the source chain contract address\\n function hasStoredPayload(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (bool);\\n\\n // @notice query if the _libraryAddress is valid for sending msgs.\\n // @param _userApplication - the user app address on this EVM chain\\n function getSendLibraryAddress(address _userApplication) external view returns (address);\\n\\n // @notice query if the _libraryAddress is valid for receiving msgs.\\n // @param _userApplication - the user app address on this EVM chain\\n function getReceiveLibraryAddress(address _userApplication) external view returns (address);\\n\\n // @notice query if the non-reentrancy guard for send() is on\\n // @return true if the guard is on. false otherwise\\n function isSendingPayload() external view returns (bool);\\n\\n // @notice query if the non-reentrancy guard for receive() is on\\n // @return true if the guard is on. false otherwise\\n function isReceivingPayload() external view returns (bool);\\n\\n // @notice get the configuration of the LayerZero messaging library of the specified version\\n // @param _version - messaging library version\\n // @param _chainId - the chainId for the pending config change\\n // @param _userApplication - the contract address of the user application\\n // @param _configType - type of configuration. every messaging library has its own convention.\\n function getConfig(\\n uint16 _version,\\n uint16 _chainId,\\n address _userApplication,\\n uint _configType\\n ) external view returns (bytes memory);\\n\\n // @notice get the send() LayerZero messaging library version\\n // @param _userApplication - the contract address of the user application\\n function getSendVersion(address _userApplication) external view returns (uint16);\\n\\n // @notice get the lzReceive() LayerZero messaging library version\\n // @param _userApplication - the contract address of the user application\\n function getReceiveVersion(address _userApplication) external view returns (uint16);\\n}\\n\",\"keccak256\":\"0xb6a446c0b622566f8c2e2ae4c32208bcc3f815c5f5657a27fa48d583e31f7b7d\",\"license\":\"BUSL-1.1\"},\"contracts/interfaces/ILayerZeroMessagingLibrary.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\n\\npragma solidity >=0.7.0;\\n\\nimport \\\"./ILayerZeroUserApplicationConfig.sol\\\";\\n\\ninterface ILayerZeroMessagingLibrary {\\n // send(), messages will be inflight.\\n function send(\\n address _userApplication,\\n uint64 _lastNonce,\\n uint16 _chainId,\\n bytes calldata _destination,\\n bytes calldata _payload,\\n address payable refundAddress,\\n address _zroPaymentAddress,\\n bytes calldata _adapterParams\\n ) external payable;\\n\\n // estimate native fee at the send side\\n function estimateFees(\\n uint16 _chainId,\\n address _userApplication,\\n bytes calldata _payload,\\n bool _payInZRO,\\n bytes calldata _adapterParam\\n ) external view returns (uint nativeFee, uint zroFee);\\n\\n //---------------------------------------------------------------------------\\n // setConfig / getConfig are User Application (UA) functions to specify Oracle, Relayer, blockConfirmations, libraryVersion\\n function setConfig(uint16 _chainId, address _userApplication, uint _configType, bytes calldata _config) external;\\n\\n function getConfig(\\n uint16 _chainId,\\n address _userApplication,\\n uint _configType\\n ) external view returns (bytes memory);\\n}\\n\",\"keccak256\":\"0x7fb6d715e58bdad860e194c7b34cc3539fa27df54dbb18d1b41e4da08c064418\",\"license\":\"BUSL-1.1\"},\"contracts/interfaces/ILayerZeroOracle.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\n\\npragma solidity >=0.7.0;\\n\\ninterface ILayerZeroOracle {\\n // @notice query the oracle price for relaying block information to the destination chain\\n // @param _dstChainId the destination endpoint identifier\\n // @param _outboundProofType the proof type identifier to specify the data to be relayed\\n function getPrice(uint16 _dstChainId, uint16 _outboundProofType) external view returns (uint price);\\n\\n // @notice Ultra-Light Node notifies the Oracle of a new block information relaying request\\n // @param _dstChainId the destination endpoint identifier\\n // @param _outboundProofType the proof type identifier to specify the data to be relayed\\n // @param _outboundBlockConfirmations the number of source chain block confirmation needed\\n function notifyOracle(uint16 _dstChainId, uint16 _outboundProofType, uint64 _outboundBlockConfirmations) external;\\n\\n // @notice query if the address is an approved actor for privileges like data submission and fee withdrawal etc.\\n // @param _address the address to be checked\\n function isApproved(address _address) external view returns (bool approved);\\n}\\n\",\"keccak256\":\"0x441295e1bc5d3c4bb021458b45f5e98d7f5a7c79ed53ba72932a261f857c4709\",\"license\":\"BUSL-1.1\"},\"contracts/interfaces/ILayerZeroReceiver.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\n\\npragma solidity >=0.5.0;\\n\\ninterface ILayerZeroReceiver {\\n // @notice LayerZero endpoint will invoke this function to deliver the message on the destination\\n // @param _srcChainId - the source endpoint identifier\\n // @param _srcAddress - the source sending contract address from the source chain\\n // @param _nonce - the ordered message nonce\\n // @param _payload - the signed payload is the UA bytes has encoded to be sent\\n function lzReceive(uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload) external;\\n}\\n\",\"keccak256\":\"0xd1617e455d90d41556bba636bc440627d301ec481de16ff04fbd520333c3c6f3\",\"license\":\"BUSL-1.1\"},\"contracts/interfaces/ILayerZeroRelayer.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\n\\npragma solidity >=0.7.0;\\n\\ninterface ILayerZeroRelayer {\\n // @notice query the relayer price for relaying the payload and its proof to the destination chain\\n // @param _dstChainId - the destination endpoint identifier\\n // @param _outboundProofType - the proof type identifier to specify proof to be relayed\\n // @param _userApplication - the source sending contract address. relayers may apply price discrimination to user apps\\n // @param _payloadSize - the length of the payload. it is an indicator of gas usage for relaying cross-chain messages\\n // @param _adapterParams - optional parameters for extra service plugins, e.g. sending dust tokens at the destination chain\\n function getPrice(\\n uint16 _dstChainId,\\n uint16 _outboundProofType,\\n address _userApplication,\\n uint _payloadSize,\\n bytes calldata _adapterParams\\n ) external view returns (uint price);\\n\\n // @notice Ultra-Light Node notifies the Oracle of a new block information relaying request\\n // @param _dstChainId - the destination endpoint identifier\\n // @param _outboundProofType - the proof type identifier to specify the data to be relayed\\n // @param _adapterParams - optional parameters for extra service plugins, e.g. sending dust tokens at the destination chain\\n function notifyRelayer(uint16 _dstChainId, uint16 _outboundProofType, bytes calldata _adapterParams) external;\\n\\n // @notice query if the address is an approved actor for privileges like data submission and fee withdrawal etc.\\n // @param _address - the address to be checked\\n function isApproved(address _address) external view returns (bool approved);\\n}\\n\",\"keccak256\":\"0x5c7d60823c57e8d7e276689cf1d421b9328b785bcce88718c6222193905e94f5\",\"license\":\"BUSL-1.1\"},\"contracts/interfaces/ILayerZeroTreasury.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\n\\npragma solidity >=0.5.0;\\n\\ninterface ILayerZeroTreasury {\\n function getFees(bool payInZro, uint relayerFee, uint oracleFee) external view returns (uint);\\n}\\n\",\"keccak256\":\"0xf30814340363b85498937030f671adb282435ca16d350ce2210d28b75901a1e4\",\"license\":\"BUSL-1.1\"},\"contracts/interfaces/ILayerZeroUltraLightNodeV1.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\n\\npragma solidity >=0.7.0;\\n\\ninterface ILayerZeroUltraLightNodeV1 {\\n // a Relayer can execute the validateTransactionProof()\\n function validateTransactionProof(\\n uint16 _srcChainId,\\n address _dstAddress,\\n uint _gasLimit,\\n bytes32 _lookupHash,\\n bytes calldata _transactionProof\\n ) external;\\n\\n // an Oracle delivers the block data using updateHash()\\n function updateHash(uint16 _remoteChainId, bytes32 _lookupHash, uint _confirmations, bytes32 _data) external;\\n\\n // can only withdraw the receivable of the msg.sender\\n function withdrawNative(uint8 _type, address _owner, address payable _to, uint _amount) external;\\n\\n function withdrawZRO(address _to, uint _amount) external;\\n\\n // view functions\\n function oracleQuotedAmount(address _oracle) external view returns (uint);\\n\\n function relayerQuotedAmount(address _relayer) external view returns (uint);\\n}\\n\",\"keccak256\":\"0x4675df4f71a0e3b2afb612e00016c7b344c1f138dd51735512b286d728bab446\",\"license\":\"BUSL-1.1\"},\"contracts/interfaces/ILayerZeroUserApplicationConfig.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\n\\npragma solidity >=0.5.0;\\n\\ninterface ILayerZeroUserApplicationConfig {\\n // @notice set the configuration of the LayerZero messaging library of the specified version\\n // @param _version - messaging library version\\n // @param _chainId - the chainId for the pending config change\\n // @param _configType - type of configuration. every messaging library has its own convention.\\n // @param _config - configuration in the bytes. can encode arbitrary content.\\n function setConfig(uint16 _version, uint16 _chainId, uint _configType, bytes calldata _config) external;\\n\\n // @notice set the send() LayerZero messaging library version to _version\\n // @param _version - new messaging library version\\n function setSendVersion(uint16 _version) external;\\n\\n // @notice set the lzReceive() LayerZero messaging library version to _version\\n // @param _version - new messaging library version\\n function setReceiveVersion(uint16 _version) external;\\n\\n // @notice Only when the UA needs to resume the message flow in blocking mode and clear the stored payload\\n // @param _srcChainId - the chainId of the source chain\\n // @param _srcAddress - the contract address of the source contract at the source chain\\n function forceResumeReceive(uint16 _srcChainId, bytes calldata _srcAddress) external;\\n}\\n\",\"keccak256\":\"0xdc7e072cf3064081a8edf4a286ca43ddecc24330f2923d96f416f9d3f6538447\",\"license\":\"BUSL-1.1\"},\"contracts/interfaces/ILayerZeroValidationLibrary.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\n\\npragma solidity >=0.7.0;\\npragma abicoder v2;\\n\\nimport \\\"../proof/utility/LayerZeroPacket.sol\\\";\\n\\ninterface ILayerZeroValidationLibrary {\\n function validateProof(\\n bytes32 blockData,\\n bytes calldata _data,\\n uint _remoteAddressSize\\n ) external returns (LayerZeroPacket.Packet memory packet);\\n}\\n\",\"keccak256\":\"0x0621a318689774296b47c95d8738d0c4e1bc63efe62e524cb3ea36ef1a9da487\",\"license\":\"BUSL-1.1\"},\"contracts/proof/utility/Buffer.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\n\\n// https://github.com/ensdomains/buffer\\n\\npragma solidity ^0.7.0;\\n\\n/**\\n * @dev A library for working with mutable byte buffers in Solidity.\\n *\\n * Byte buffers are mutable and expandable, and provide a variety of primitives\\n * for writing to them. At any time you can fetch a bytes object containing the\\n * current contents of the buffer. The bytes object should not be stored between\\n * operations, as it may change due to resizing of the buffer.\\n */\\nlibrary Buffer {\\n /**\\n * @dev Represents a mutable buffer. Buffers have a current value (buf) and\\n * a capacity. The capacity may be longer than the current value, in\\n * which case it can be extended without the need to allocate more memory.\\n */\\n struct buffer {\\n bytes buf;\\n uint capacity;\\n }\\n\\n /**\\n * @dev Initializes a buffer with an initial capacity.a co\\n * @param buf The buffer to initialize.\\n * @param capacity The number of bytes of space to allocate the buffer.\\n * @return The buffer, for chaining.\\n */\\n function init(buffer memory buf, uint capacity) internal pure returns (buffer memory) {\\n if (capacity % 32 != 0) {\\n capacity += 32 - (capacity % 32);\\n }\\n // Allocate space for the buffer data\\n buf.capacity = capacity;\\n assembly {\\n let ptr := mload(0x40)\\n mstore(buf, ptr)\\n mstore(ptr, 0)\\n mstore(0x40, add(32, add(ptr, capacity)))\\n }\\n return buf;\\n }\\n\\n /**\\n * @dev Writes a byte string to a buffer. Resizes if doing so would exceed\\n * the capacity of the buffer.\\n * @param buf The buffer to append to.\\n * @param off The start offset to write to.\\n * @param rawData The data to append.\\n * @param len The number of bytes to copy.\\n * @return The original buffer, for chaining.\\n */\\n function writeRawBytes(\\n buffer memory buf,\\n uint off,\\n bytes memory rawData,\\n uint offData,\\n uint len\\n ) internal pure returns (buffer memory) {\\n if (off + len > buf.capacity) {\\n resize(buf, max(buf.capacity, len + off) * 2);\\n }\\n\\n uint dest;\\n uint src;\\n assembly {\\n // Memory address of the buffer data\\n let bufptr := mload(buf)\\n // Length of existing buffer data\\n let buflen := mload(bufptr)\\n // Start address = buffer address + offset + sizeof(buffer length)\\n dest := add(add(bufptr, 32), off)\\n // Update buffer length if we're extending it\\n if gt(add(len, off), buflen) {\\n mstore(bufptr, add(len, off))\\n }\\n src := add(rawData, offData)\\n }\\n\\n // Copy word-length chunks while possible\\n for (; len >= 32; len -= 32) {\\n assembly {\\n mstore(dest, mload(src))\\n }\\n dest += 32;\\n src += 32;\\n }\\n\\n // Copy remaining bytes\\n uint mask = 256 ** (32 - len) - 1;\\n assembly {\\n let srcpart := and(mload(src), not(mask))\\n let destpart := and(mload(dest), mask)\\n mstore(dest, or(destpart, srcpart))\\n }\\n\\n return buf;\\n }\\n\\n /**\\n * @dev Writes a byte string to a buffer. Resizes if doing so would exceed\\n * the capacity of the buffer.\\n * @param buf The buffer to append to.\\n * @param off The start offset to write to.\\n * @param data The data to append.\\n * @param len The number of bytes to copy.\\n * @return The original buffer, for chaining.\\n */\\n function write(buffer memory buf, uint off, bytes memory data, uint len) internal pure returns (buffer memory) {\\n require(len <= data.length);\\n\\n if (off + len > buf.capacity) {\\n resize(buf, max(buf.capacity, len + off) * 2);\\n }\\n\\n uint dest;\\n uint src;\\n assembly {\\n // Memory address of the buffer data\\n let bufptr := mload(buf)\\n // Length of existing buffer data\\n let buflen := mload(bufptr)\\n // Start address = buffer address + offset + sizeof(buffer length)\\n dest := add(add(bufptr, 32), off)\\n // Update buffer length if we're extending it\\n if gt(add(len, off), buflen) {\\n mstore(bufptr, add(len, off))\\n }\\n src := add(data, 32)\\n }\\n\\n // Copy word-length chunks while possible\\n for (; len >= 32; len -= 32) {\\n assembly {\\n mstore(dest, mload(src))\\n }\\n dest += 32;\\n src += 32;\\n }\\n\\n // Copy remaining bytes\\n uint mask = 256 ** (32 - len) - 1;\\n assembly {\\n let srcpart := and(mload(src), not(mask))\\n let destpart := and(mload(dest), mask)\\n mstore(dest, or(destpart, srcpart))\\n }\\n\\n return buf;\\n }\\n\\n function append(buffer memory buf, bytes memory data) internal pure returns (buffer memory) {\\n return write(buf, buf.buf.length, data, data.length);\\n }\\n\\n function resize(buffer memory buf, uint capacity) private pure {\\n bytes memory oldbuf = buf.buf;\\n init(buf, capacity);\\n append(buf, oldbuf);\\n }\\n\\n function max(uint a, uint b) private pure returns (uint) {\\n if (a > b) {\\n return a;\\n }\\n return b;\\n }\\n}\\n\",\"keccak256\":\"0x6fb6ba1e85708e05e0f2181136650463faca122318dd16aa6cbaa4f88e48d908\",\"license\":\"BUSL-1.1\"},\"contracts/proof/utility/LayerZeroPacket.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\n\\npragma solidity 0.7.6;\\n\\nimport \\\"./Buffer.sol\\\";\\nimport \\\"@openzeppelin/contracts/math/SafeMath.sol\\\";\\n\\nlibrary LayerZeroPacket {\\n using Buffer for Buffer.buffer;\\n using SafeMath for uint;\\n\\n struct Packet {\\n uint16 srcChainId;\\n uint16 dstChainId;\\n uint64 nonce;\\n address dstAddress;\\n bytes srcAddress;\\n bytes32 ulnAddress;\\n bytes payload;\\n }\\n\\n function getPacket(\\n bytes memory data,\\n uint16 srcChain,\\n uint sizeOfSrcAddress,\\n bytes32 ulnAddress\\n ) internal pure returns (LayerZeroPacket.Packet memory) {\\n uint16 dstChainId;\\n address dstAddress;\\n uint size;\\n uint64 nonce;\\n\\n // The log consists of the destination chain id and then a bytes payload\\n // 0--------------------------------------------31\\n // 0 | total bytes size\\n // 32 | destination chain id\\n // 64 | bytes offset\\n // 96 | bytes array size\\n // 128 | payload\\n assembly {\\n dstChainId := mload(add(data, 32))\\n size := mload(add(data, 96)) /// size of the byte array\\n nonce := mload(add(data, 104)) // offset to convert to uint64 128 is index -24\\n dstAddress := mload(add(data, sub(add(128, sizeOfSrcAddress), 4))) // offset to convert to address 12 -8\\n }\\n\\n Buffer.buffer memory srcAddressBuffer;\\n srcAddressBuffer.init(sizeOfSrcAddress);\\n srcAddressBuffer.writeRawBytes(0, data, 136, sizeOfSrcAddress); // 128 + 8\\n\\n uint payloadSize = size.sub(28).sub(sizeOfSrcAddress);\\n Buffer.buffer memory payloadBuffer;\\n payloadBuffer.init(payloadSize);\\n payloadBuffer.writeRawBytes(0, data, sizeOfSrcAddress.add(156), payloadSize); // 148 + 8\\n return\\n LayerZeroPacket.Packet(\\n srcChain,\\n dstChainId,\\n nonce,\\n dstAddress,\\n srcAddressBuffer.buf,\\n ulnAddress,\\n payloadBuffer.buf\\n );\\n }\\n\\n function getPacketV2(\\n bytes memory data,\\n uint sizeOfSrcAddress,\\n bytes32 ulnAddress\\n ) internal pure returns (LayerZeroPacket.Packet memory) {\\n // packet def: abi.encodePacked(nonce, srcChain, srcAddress, dstChain, dstAddress, payload);\\n // data def: abi.encode(packet) = offset(32) + length(32) + packet\\n // if from EVM\\n // 0 - 31 0 - 31 | total bytes size\\n // 32 - 63 32 - 63 | location\\n // 64 - 95 64 - 95 | size of the packet\\n // 96 - 103 96 - 103 | nonce\\n // 104 - 105 104 - 105 | srcChainId\\n // 106 - P 106 - 125 | srcAddress, where P = 106 + sizeOfSrcAddress - 1,\\n // P+1 - P+2 126 - 127 | dstChainId\\n // P+3 - P+22 128 - 147 | dstAddress\\n // P+23 - END 148 - END | payload\\n\\n // decode the packet\\n uint256 realSize;\\n uint64 nonce;\\n uint16 srcChain;\\n uint16 dstChain;\\n address dstAddress;\\n assembly {\\n realSize := mload(add(data, 64))\\n nonce := mload(add(data, 72)) // 104 - 32\\n srcChain := mload(add(data, 74)) // 106 - 32\\n dstChain := mload(add(data, add(76, sizeOfSrcAddress))) // P + 3 - 32 = 105 + size + 3 - 32 = 76 + size\\n dstAddress := mload(add(data, add(96, sizeOfSrcAddress))) // P + 23 - 32 = 105 + size + 23 - 32 = 96 + size\\n }\\n\\n require(srcChain != 0, \\\"LayerZeroPacket: invalid packet\\\");\\n\\n Buffer.buffer memory srcAddressBuffer;\\n srcAddressBuffer.init(sizeOfSrcAddress);\\n srcAddressBuffer.writeRawBytes(0, data, 106, sizeOfSrcAddress);\\n\\n uint nonPayloadSize = sizeOfSrcAddress.add(32); // 2 + 2 + 8 + 20, 32 + 20 = 52 if sizeOfSrcAddress == 20\\n uint payloadSize = realSize.sub(nonPayloadSize);\\n Buffer.buffer memory payloadBuffer;\\n payloadBuffer.init(payloadSize);\\n payloadBuffer.writeRawBytes(0, data, nonPayloadSize.add(96), payloadSize);\\n\\n return\\n LayerZeroPacket.Packet(\\n srcChain,\\n dstChain,\\n nonce,\\n dstAddress,\\n srcAddressBuffer.buf,\\n ulnAddress,\\n payloadBuffer.buf\\n );\\n }\\n\\n function getPacketV3(\\n bytes memory data,\\n uint sizeOfSrcAddress,\\n bytes32 ulnAddress\\n ) internal pure returns (LayerZeroPacket.Packet memory) {\\n // data def: abi.encodePacked(nonce, srcChain, srcAddress, dstChain, dstAddress, payload);\\n // if from EVM\\n // 0 - 31 0 - 31 | total bytes size\\n // 32 - 39 32 - 39 | nonce\\n // 40 - 41 40 - 41 | srcChainId\\n // 42 - P 42 - 61 | srcAddress, where P = 41 + sizeOfSrcAddress,\\n // P+1 - P+2 62 - 63 | dstChainId\\n // P+3 - P+22 64 - 83 | dstAddress\\n // P+23 - END 84 - END | payload\\n\\n // decode the packet\\n uint256 realSize = data.length;\\n uint nonPayloadSize = sizeOfSrcAddress.add(32); // 2 + 2 + 8 + 20, 32 + 20 = 52 if sizeOfSrcAddress == 20\\n require(realSize >= nonPayloadSize, \\\"LayerZeroPacket: invalid packet\\\");\\n uint payloadSize = realSize - nonPayloadSize;\\n\\n uint64 nonce;\\n uint16 srcChain;\\n uint16 dstChain;\\n address dstAddress;\\n assembly {\\n nonce := mload(add(data, 8)) // 40 - 32\\n srcChain := mload(add(data, 10)) // 42 - 32\\n dstChain := mload(add(data, add(12, sizeOfSrcAddress))) // P + 3 - 32 = 41 + size + 3 - 32 = 12 + size\\n dstAddress := mload(add(data, add(32, sizeOfSrcAddress))) // P + 23 - 32 = 41 + size + 23 - 32 = 32 + size\\n }\\n\\n require(srcChain != 0, \\\"LayerZeroPacket: invalid packet\\\");\\n\\n Buffer.buffer memory srcAddressBuffer;\\n srcAddressBuffer.init(sizeOfSrcAddress);\\n srcAddressBuffer.writeRawBytes(0, data, 42, sizeOfSrcAddress);\\n\\n Buffer.buffer memory payloadBuffer;\\n if (payloadSize > 0) {\\n payloadBuffer.init(payloadSize);\\n payloadBuffer.writeRawBytes(0, data, nonPayloadSize.add(32), payloadSize);\\n }\\n\\n return\\n LayerZeroPacket.Packet(\\n srcChain,\\n dstChain,\\n nonce,\\n dstAddress,\\n srcAddressBuffer.buf,\\n ulnAddress,\\n payloadBuffer.buf\\n );\\n }\\n}\\n\",\"keccak256\":\"0xf96248293a8bb6e9a3908ac7eb78dfb794bb197a5743d377905fe771911d2192\",\"license\":\"BUSL-1.1\"}},\"version\":1}",
1506
- "bytecode": "0x60a06040523480156200001157600080fd5b5060405162005306380380620053068339810160408190526200003491620000df565b6001600090815562000045620000db565b600180546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160a01b038116620000c55760405162461bcd60e51b8152600401620000bc906200010f565b60405180910390fd5b60601b6001600160601b03191660805262000159565b3390565b600060208284031215620000f1578081fd5b81516001600160a01b038116811462000108578182fd5b9392505050565b6020808252602a908201527f4c617965725a65726f3a20656e64706f696e742063616e6e6f74206265207a65604082015269726f206164647265737360b01b606082015260800190565b60805160601c61518062000186600039806113c852806122b9528061233352806130ee52506151806000f3fe60806040526004361061031e5760003560e01c80638317814a116101a5578063d56bc64b116100ec578063ebfa08e911610095578063f2fde38b1161006f578063f2fde38b146108a4578063f47a5feb146108c4578063f8e1734c146108d9578063f9dd8e0f146108f95761031e565b8063ebfa08e914610837578063ed28580a14610864578063f0f44260146108845761031e565b8063e6108a82116100c6578063e6108a82146107d7578063ea216c21146107f7578063eb0d4c31146108175761031e565b8063d56bc64b14610777578063db00719b14610797578063ddfdef5a146107b75761031e565b8063a183608c1161014e578063b77d22ad11610128578063b77d22ad14610708578063b8e7e3e01461071d578063d543c7741461074a5761031e565b8063a183608c146106a6578063a4662222146106c6578063abe685cd146106f35761031e565b80638da5cb5b1161017f5780638da5cb5b1461065c578063904d3b8d14610671578063959f5943146106865761031e565b80638317814a146105fc5780638525b7111461061c57806387078f9f1461063c5761031e565b80634d0ca1b4116102695780635e280f1111610212578063715018a6116101ec578063715018a6146105b25780638140666e146105c75780638207f79d146105dc5761031e565b80635e280f111461055d57806361aa19da14610572578063704316e5146105925761031e565b806352d3b5001161024357806352d3b500146105085780635b5a2678146105285780635c0115311461053d5761031e565b80634d0ca1b4146104c05780634d3a0f7c146104d557806352d2871f146104e85761031e565b80632cfacb06116102cb57806331bd2430116102a557806331bd24301461046857806340a7bb101461047d57806349148c37146104ab5761031e565b80632cfacb06146103ff5780632e9959ec146104145780632f813464146104365761031e565b806318da0011116102fc57806318da00111461039d57806322c10776146103b25780632a819bbf146103d25761031e565b806302e72c631461032357806307b9ca7c14610359578063096607f81461037b575b600080fd5b34801561032f57600080fd5b5061034361033e366004613b51565b61090e565b6040516103509190614380565b60405180910390f35b34801561036557600080fd5b5061036e610920565b60405161035091906142f2565b34801561038757600080fd5b5061039b6103963660046140c1565b61092f565b005b3480156103a957600080fd5b5061036e610c95565b3480156103be57600080fd5b5061039b6103cd36600461418a565b610ca4565b3480156103de57600080fd5b506103f26103ed366004614041565b610e9d565b60405161035091906143b4565b34801561040b57600080fd5b50610343610f5f565b34801561042057600080fd5b50610429610f64565b6040516103509190615005565b34801561044257600080fd5b50610456610451366004613ddc565b610f69565b60405161035096959493929190614f61565b34801561047457600080fd5b50610343610fed565b34801561048957600080fd5b5061049d610498366004613e25565b610ff2565b604051610350929190614fe2565b3480156104b757600080fd5b506103436113bc565b3480156104cc57600080fd5b506104296113c1565b61039b6104e3366004613c10565b6113c6565b3480156104f457600080fd5b506103f2610503366004613ed0565b611be7565b34801561051457600080fd5b5061039b610523366004613b51565b611f4f565b34801561053457600080fd5b50610343612057565b34801561054957600080fd5b5061039b610558366004613eff565b61205d565b34801561056957600080fd5b5061036e612331565b34801561057e57600080fd5b5061034361058d366004613b51565b612355565b34801561059e57600080fd5b5061039b6105ad366004614007565b612374565b3480156105be57600080fd5b5061039b612409565b3480156105d357600080fd5b506103436124df565b3480156105e857600080fd5b5061039b6105f7366004613df8565b6124e4565b34801561060857600080fd5b5061039b61061736600461405e565b61267c565b34801561062857600080fd5b5061039b610637366004613be5565b61275f565b34801561064857600080fd5b5061039b610657366004613fea565b612851565b34801561066857600080fd5b5061036e61293e565b34801561067d57600080fd5b5061034361294d565b34801561069257600080fd5b506103436106a1366004613ddc565b612952565b3480156106b257600080fd5b506103436106c1366004613b51565b612964565b3480156106d257600080fd5b506106e66106e1366004613df8565b612976565b6040516103509190614c8c565b3480156106ff57600080fd5b50610343612b44565b34801561071457600080fd5b50610343610f64565b34801561072957600080fd5b5061073d610738366004613ddc565b612b4a565b6040516103509190614d0f565b34801561075657600080fd5b5061076a610765366004614041565b612b60565b604051610350919061435d565b34801561078357600080fd5b5061049d610792366004613ba5565b612b80565b3480156107a357600080fd5b5061036e6107b2366004614041565b612baa565b3480156107c357600080fd5b506104566107d2366004613b6d565b612bd0565b3480156107e357600080fd5b506103436107f2366004613b51565b612c5f565b34801561080357600080fd5b50610343610812366004613ddc565b612c7a565b34801561082357600080fd5b5061039b610832366004614041565b612c8c565b34801561084357600080fd5b50610857610852366004613ba5565b612d7b565b6040516103509190614cf8565b34801561087057600080fd5b5061039b61087f366004613fea565b612dcf565b34801561089057600080fd5b5061039b61089f366004613b51565b612ebc565b3480156108b057600080fd5b5061039b6108bf366004613b51565b612fb9565b3480156108d057600080fd5b506103436130e6565b3480156108e557600080fd5b5061039b6108f4366004613f79565b6130ec565b34801561090557600080fd5b506104296113bc565b60056020526000908152604090205481565b6002546001600160a01b031681565b61093761344c565b6001600160a01b031661094861293e565b6001600160a01b0316146109a3576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61ffff8088166000908152600c60205260409020548116908716118015906109cf575060008661ffff16115b6109f45760405162461bcd60e51b81526004016109eb906148b3565b60405180910390fd5b60008567ffffffffffffffff1611610a1e5760405162461bcd60e51b81526004016109eb90614bd2565b6001600160a01b038416610a445760405162461bcd60e51b81526004016109eb90614583565b61ffff8088166000908152600d602090815260408083209387168352929052205460ff16610a845760405162461bcd60e51b81526004016109eb906143c7565b60008261ffff1611610aa85760405162461bcd60e51b81526004016109eb90614a5e565b6001600160a01b038116610ace5760405162461bcd60e51b81526004016109eb906146d1565b6040518060c001604052808761ffff1681526020018667ffffffffffffffff168152602001856001600160a01b031681526020018461ffff1681526020018361ffff1667ffffffffffffffff168152602001826001600160a01b0316815250600960008961ffff1661ffff16815260200190815260200160002060008201518160000160006101000a81548161ffff021916908361ffff16021790555060208201518160000160026101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550604082015181600001600a6101000a8154816001600160a01b0302191690836001600160a01b03160217905550606082015181600001601e6101000a81548161ffff021916908361ffff16021790555060808201518160010160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060a08201518160010160086101000a8154816001600160a01b0302191690836001600160a01b031602179055509050507f45bb8a2b6b05457ff80b84be5bf06f2d05069fa8099fcb9d8e34149654b4d5c287878787878787604051610c849796959493929190614f11565b60405180910390a150505050505050565b6003546001600160a01b031681565b60026000541415610cfc576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260005560ff8416610d48576003546001600160a01b03163314610d335760405162461bcd60e51b81526004016109eb9061487c565b600654610d409082613450565b600655610dd6565b60ff841660011415610d835733600090815260046020526040902054610d6e9082613450565b33600090815260046020526040902055610dd6565b60ff841660021415610dbe5733600090815260056020526040902054610da99082613450565b33600090815260056020526040902055610dd6565b60405162461bcd60e51b81526004016109eb90614abb565b6000826001600160a01b031682604051610def90614271565b60006040518083038185875af1925050503d8060008114610e2c576040519150601f19603f3d011682016040523d82523d6000602084013e610e31565b606091505b5050905080610e525760405162461bcd60e51b81526004016109eb90614492565b7f163adce0473e267e1db8ecb524c0fcdceda62c3e6f231966bbb252e0104325378585338686604051610e89959493929190615013565b60405180910390a150506001600055505050565b600a6020908152600092835260408084208252918352918190208054825160026001831615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190921691909104601f810185900485028201850190935282815292909190830182828015610f575780601f10610f2c57610100808354040283529160200191610f57565b820191906000526020600020905b815481529060010190602001808311610f3a57829003601f168201915b505050505081565b600381565b600181565b6009602052600090815260409020805460019091015461ffff8083169267ffffffffffffffff6201000082048116936001600160a01b036a010000000000000000000084048116947e010000000000000000000000000000000000000000000000000000000000009094049093169291811691680100000000000000009091041686565b600681565b604080516020601f840181900481028201810190925282815260009182918a918a918991859190899089908190840183828082843760009201829052509394506110429250879150869050612976565b905060008251600014156111b25761ffff8681166000908152600a60209081526040808320606087015190941683529281528282208054845160026001831615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190921691909104601f8101849004840282018401909552848152929390918301828280156111175780601f106110ec57610100808354040283529160200191611117565b820191906000526020600020905b8154815290600101906020018083116110fa57829003601f168201915b5050505050905082604001516001600160a01b031663e54a22158885606001518989866040518663ffffffff1660e01b815260040161115a959493929190614e55565b60206040518083038186803b15801561117257600080fd5b505afa158015611186573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111aa9190614156565b915050611241565b81604001516001600160a01b031663e54a22158784606001518888886040518663ffffffff1660e01b81526004016111ee959493929190614e55565b60206040518083038186803b15801561120657600080fd5b505afa15801561121a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061123e9190614156565b90505b60a082015160608301516040517f0b4d51070000000000000000000000000000000000000000000000000000000081526000926001600160a01b031691630b4d510791611292918b91600401614df7565b60206040518083038186803b1580156112aa57600080fd5b505afa1580156112be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112e29190614156565b90506000600360009054906101000a90046001600160a01b03166001600160a01b0316635cbbbd758e85856040518463ffffffff1660e01b815260040161132b93929190614368565b60206040518083038186803b15801561134357600080fd5b505afa158015611357573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061137b9190614156565b90508c61138b5780995089611390565b809850885b506113a79050816113a18b856134ad565b906134ad565b98505050505050505097509795505050505050565b600281565b600081565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316331461140e5760405162461bcd60e51b81526004016109eb90614a27565b600061141a8a8d612976565b61ffff8b166000908152601060205260409020549091508c908c908c906114535760405162461bcd60e51b81526004016109eb90614674565b6000808560a001516001600160a01b0316630b4d51078488606001516040518363ffffffff1660e01b815260040161148c929190614df7565b60206040518083038186803b1580156114a457600080fd5b505afa1580156114b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114dc9190614156565b60a08701516001600160a01b031660009081526004602052604090205490915061150690826134ad565b60a08701516001600160a01b031660009081526004602052604090819020919091558601518b90886117295761ffff8581166000908152600a6020908152604080832060608d015190941683529281528282208054845160026001831615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190921691909104601f8101849004840282018401909552848152929390918301828280156115f95780601f106115ce576101008083540402835291602001916115f9565b820191906000526020600020905b8154815290600101906020018083116115dc57829003601f168201915b5050505060608b01516040517fe54a22150000000000000000000000000000000000000000000000000000000081529293506001600160a01b0385169263e54a22159250611651918a918d9089908890600401614e55565b60206040518083038186803b15801561166957600080fd5b505afa15801561167d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116a19190614156565b60608a01516040517f3a5fb82a0000000000000000000000000000000000000000000000000000000081529196506001600160a01b03841691633a5fb82a916116f1918a91908690600401614eb9565b600060405180830381600087803b15801561170b57600080fd5b505af115801561171f573d6000803e3d6000fd5b5050505050611838565b806001600160a01b031663e54a2215868a606001518a868f8f6040518763ffffffff1660e01b815260040161176396959493929190614e0c565b60206040518083038186803b15801561177b57600080fd5b505afa15801561178f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117b39190614156565b60608901516040517f3a5fb82a0000000000000000000000000000000000000000000000000000000081529195506001600160a01b03831691633a5fb82a91611805918991908f908f90600401614e91565b600060405180830381600087803b15801561181f57600080fd5b505af1158015611833573d6000803e3d6000fd5b505050505b6040808901516001600160a01b031660009081526005602052205461185d90856134ad565b6040808a01516001600160a01b03166000908152600560205281902091909155606089015190517fb8a7262132db1f61626604a31c3de81dc1a5bb0f1511dfa70d626ab1b88b52c2916118b79188918a918f908f90614faa565b60405180910390a150600090506001600160a01b038a1615806118e357506002546001600160a01b0316155b6003546040517f5cbbbd750000000000000000000000000000000000000000000000000000000081529192506000916001600160a01b0390911690635cbbbd75906119379085159088908890600401614368565b60206040518083038186803b15801561194f57600080fd5b505afa158015611963573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119879190614156565b90508015611a235781156119b6576006546119a290826134ad565b6006556119af84826134ad565b9350611a23565b866001600160a01b03168b6001600160a01b031614806119de57506001600160a01b038b1632145b6119fa5760405162461bcd60e51b81526004016109eb90614617565b600254611a12906001600160a01b03168c3084613507565b600754611a1f90826134ad565b6007555b50611a30905082826134ad565b915050600083858f8f8f8f604051602001611a5096959493929190614274565b60405160208183030381529060405290507fe8d23d927749ec8e512eb885679c2977d57068839d8cca1a85685dbbea0648f68382604051611a92929190614d79565b60405180910390a160a0860151606087015160808801516040517f665305790000000000000000000000000000000000000000000000000000000081526001600160a01b0390931692636653057992611aef928892600401614ee9565b600060405180830381600087803b158015611b0957600080fd5b505af1158015611b1d573d6000803e3d6000fd5b505050505034811115611b425760405162461bcd60e51b81526004016109eb906144c9565b6000611b4e3483613450565b90508015611bd45760008a6001600160a01b031682604051611b6f90614271565b60006040518083038185875af1925050503d8060008114611bac576040519150601f19603f3d011682016040523d82523d6000602084013e611bb1565b606091505b5050905080611bd25760405162461bcd60e51b81526004016109eb906145e0565b505b5050505050505050505050505050505050565b6001600160a01b038216600090815260086020908152604080832061ffff8716845290915290206060906001831415611c7b57805461ffff16611c655761ffff808616600090815260096020908152604091829020549151611c4e93929092169101614d0f565b604051602081830303815290604052915050611f48565b8054604051611c4e9161ffff1690602001614d0f565b6002831415611cf157805462010000900467ffffffffffffffff16611ccf5761ffff8516600090815260096020908152604091829020549151611c4e9262010000900467ffffffffffffffff169101614ff0565b8054604051611c4e9162010000900467ffffffffffffffff1690602001614ff0565b6003831415611d7c5780546a010000000000000000000090046001600160a01b0316611d535761ffff8516600090815260096020908152604091829020549151611c4e926a010000000000000000000090046001600160a01b031691016142f2565b8054604051611c4e916a010000000000000000000090046001600160a01b0316906020016142f2565b6004831415611e355780547e01000000000000000000000000000000000000000000000000000000000000900461ffff16611dfd5761ffff808616600090815260096020908152604091829020549151611c4e937e010000000000000000000000000000000000000000000000000000000000009093049092169101614d0f565b8054604051611c4e917e01000000000000000000000000000000000000000000000000000000000000900461ffff1690602001614d0f565b6005831415611ea257600181015467ffffffffffffffff16611e835761ffff8516600090815260096020908152604091829020600101549151611c4e9267ffffffffffffffff169101614ff0565b6001810154604051611c4e9167ffffffffffffffff1690602001614ff0565b6006831415611f305760018101546801000000000000000090046001600160a01b0316611f065761ffff8516600090815260096020908152604091829020600101549151611c4e926801000000000000000090046001600160a01b031691016142f2565b6001810154604051611c4e916801000000000000000090046001600160a01b0316906020016142f2565b60405162461bcd60e51b81526004016109eb9061445b565b9392505050565b611f5761344c565b6001600160a01b0316611f6861293e565b6001600160a01b031614611fc3576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116611fe95760405162461bcd60e51b81526004016109eb90614526565b600280547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383161790556040517f33d644987381deff4408951d55afa136f124e22a7810b163b2aaa3ebef770f649061204c9083906142f2565b60405180910390a150565b60065481565b60006120698787612976565b60408101519091506001600160a01b031633146120985760405162461bcd60e51b81526004016109eb90614765565b6120a0613905565b61ffff8089166000818152600b60209081526040808320875190951683529381528382205460a08701516001600160a01b039081168452600f83528584209484529382528483208a84528252939091209085015181549290931692909167ffffffffffffffff90911611156121275760405162461bcd60e51b81526004016109eb90614c2f565b61ffff8a166000908152600e60205260409081902054600183015491517fb71e0f7100000000000000000000000000000000000000000000000000000000815290916001600160a01b0385169163b71e0f719161218c918b908b908790600401614389565b600060405180830381600087803b1580156121a657600080fd5b505af11580156121ba573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526122009190810190613d00565b60a081015161ffff8d1660009081526010602052604090205491955014925061223e9150505760405162461bcd60e51b81526004016109eb90614b18565b866001600160a01b031681606001516001600160a01b0316146122735760405162461bcd60e51b81526004016109eb9061472e565b80516080820151606083015160408085015160c086015191517fc2fa48130000000000000000000000000000000000000000000000000000000081526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169563c2fa4813956122f5959194909391928e9190600401614d96565b600060405180830381600087803b15801561230f57600080fd5b505af1158015612323573d6000803e3d6000fd5b505050505050505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6001600160a01b0381166000908152600460205260409020545b919050565b336000908152600f6020908152604080832061ffff8816845282528083208684529091529020805483116123ba5760405162461bcd60e51b81526004016109eb906147f9565b828155600181018290556040517fc5e97f049604c4d8626704341240f021a22cee0d8b66ec306a45344be67733a0906123fa908790339087908990614d3b565b60405180910390a15050505050565b61241161344c565b6001600160a01b031661242261293e565b6001600160a01b03161461247d576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b600481565b6124ec61344c565b6001600160a01b03166124fd61293e565b6001600160a01b031614612558576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03811661257e5760405162461bcd60e51b81526004016109eb9061479c565b61ffff8281166000908152600c60205260409020548116106125b25760405162461bcd60e51b81526004016109eb906149ca565b61ffff8083166000908152600c60209081526040808320805480861660010186167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00009091161790819055600b83528184209416835292905281902080546001600160a01b0384167fffffffffffffffffffffffff0000000000000000000000000000000000000000909116179055517f802d55279d51813cb7a9a98e8fd2d7bec5346cb830901c11b85d1650cb857e9a906126709084908490614d1e565b60405180910390a15050565b61268461344c565b6001600160a01b031661269561293e565b6001600160a01b0316146126f0576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61ffff8085166000908152600a6020908152604080832093871683529290522061271b908383613943565b507f4a5695eee2a74d548d5f5c485a3de99ace99e3b664c8e30a90f49be6ebb54932848484846040516127519493929190614e91565b60405180910390a150505050565b600260005414156127b7576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026000556003546001600160a01b031633146127e65760405162461bcd60e51b81526004016109eb90614424565b6007546127f39082613450565b60075560025461280d906001600160a01b03168383613595565b7f3a20c8c3cd1848485ae8261a52398bb9b26f195b717306b3cf7f058e62c095d533838360405161284093929190614306565b60405180910390a150506001600055565b61285961344c565b6001600160a01b031661286a61293e565b6001600160a01b0316146128c5576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61ffff82166000908152600e6020526040902054156128f65760405162461bcd60e51b81526004016109eb90614b75565b61ffff82166000908152600e602052604090819020829055517f0611bb2107e385b79ec826fff8ecc1c1248a7aae3c875c96668f8cfbf1734220906126709084908490614d65565b6001546001600160a01b031690565b600581565b600e6020526000908152604090205481565b60046020526000908152604090205481565b61297e6139ed565b6001600160a01b03808316600090815260086020908152604080832061ffff808916808652918452828520835160c0810185528154808416825267ffffffffffffffff6201000082048116838901526a010000000000000000000082048a16838801527e010000000000000000000000000000000000000000000000000000000000009091048416606083015260019092015491821660808201526801000000000000000090910490961660a087015290845260099092529091208251909116612a4b57805461ffff1682525b602082015167ffffffffffffffff16612a7657805462010000900467ffffffffffffffff1660208301525b60408201516001600160a01b0316612aa75780546a010000000000000000000090046001600160a01b031660408301525b606082015161ffff16612ae25780547e01000000000000000000000000000000000000000000000000000000000000900461ffff1660608301525b608082015167ffffffffffffffff16612b0a57600181015467ffffffffffffffff1660808301525b60a08201516001600160a01b0316612b3c5760018101546801000000000000000090046001600160a01b031660a08301525b509392505050565b61271081565b600c6020526000908152604090205461ffff1681565b600d60209081526000928352604080842090915290825290205460ff1681565b600f6020908152600093845260408085208252928452828420905282529020805460019091015482565b600b6020908152600092835260408084209091529082529020546001600160a01b031681565b60086020908152600092835260408084209091529082529020805460019091015461ffff8083169267ffffffffffffffff6201000082048116936001600160a01b036a010000000000000000000084048116947e010000000000000000000000000000000000000000000000000000000000009094049093169291811691680100000000000000009091041686565b6001600160a01b031660009081526005602052604090205490565b60106020526000908152604090205481565b612c9461344c565b6001600160a01b0316612ca561293e565b6001600160a01b031614612d00576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61ffff8083166000908152600d60209081526040808320938516835292905281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055517fec23bee6f88cfecebb09d6aaaed66f0ce110debc1f61117c8270a7116597df9a906126709084908490614df7565b612d83613a22565b506001600160a01b0383166000908152600f6020908152604080832061ffff86168452825280832084845282529182902082518084019093528054835260010154908201529392505050565b612dd761344c565b6001600160a01b0316612de861293e565b6001600160a01b031614612e43576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61ffff821660009081526010602052604090205415612e745760405162461bcd60e51b81526004016109eb9061496d565b61ffff821660009081526010602052604090819020829055517f0dad975e1d2fbe771c95cdcc7be9a1e61181de7173abe0a32b8f8f83140873e5906126709084908490614d65565b612ec461344c565b6001600160a01b0316612ed561293e565b6001600160a01b031614612f30576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116612f565760405162461bcd60e51b81526004016109eb90614910565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383161790556040517fcb7ef3e545f5cdb893f5c568ba710fe08f336375a2d9fd66e161033f8fc09ef39061204c9083906142f2565b612fc161344c565b6001600160a01b0316612fd261293e565b6001600160a01b03161461302d576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166130725760405162461bcd60e51b81526004018080602001828103825260268152602001806150d56026913960400191505060405180910390fd5b6001546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b60075481565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633146131345760405162461bcd60e51b81526004016109eb90614a27565b6001600160a01b038416600090815260086020908152604080832061ffff89168452909152902060018414156131e157600061317283850185613ddc565b61ffff8089166000908152600c602052604090205491925090811690821611156131ae5760405162461bcd60e51b81526004016109eb906148b3565b81547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001661ffff91909116178155613407565b60028414156132385760006131f88385018561416e565b825467ffffffffffffffff90911662010000027fffffffffffffffffffffffffffffffffffffffffffff0000000000000000ffff90911617825550613407565b600384141561329657600061324f83850185613b51565b82546001600160a01b039091166a0100000000000000000000027fffff0000000000000000000000000000000000000000ffffffffffffffffffff90911617825550613407565b60048414156133505760006132ad83850185613ddc565b61ffff8089166000908152600d602090815260408083209385168352929052205490915060ff16806132e1575061ffff8116155b6132fd5760405162461bcd60e51b81526004016109eb906143c7565b815461ffff9091167e01000000000000000000000000000000000000000000000000000000000000027dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff909116178155613407565b60058414156133a85760006133678385018561416e565b6001830180547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff9290921691909117905550613407565b6006841415611f305760006133bf83850185613b51565b6001830180546001600160a01b0390921668010000000000000000027fffffffff0000000000000000000000000000000000000000ffffffffffffffff909216919091179055505b7ffc01bf86212a14151d51d1be5c2ac64d67d5ec823dfc6f53298d7ce3f3d3d2528585858560405161343c949392919061432a565b60405180910390a1505050505050565b3390565b6000828211156134a7576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600082820183811015611f48576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd0000000000000000000000000000000000000000000000000000000017905261358f90859061361a565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905261361590849061361a565b505050565b600061366f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166136cb9092919063ffffffff16565b8051909150156136155780806020019051602081101561368e57600080fd5b50516136155760405162461bcd60e51b815260040180806020018281038252602a815260200180615121602a913960400191505060405180910390fd5b60606136da84846000856136e2565b949350505050565b6060824710156137235760405162461bcd60e51b81526004018080602001828103825260268152602001806150fb6026913960400191505060405180910390fd5b61372c8561385b565b61377d576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b602083106137d957805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0909201916020918201910161379c565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461383b576040519150601f19603f3d011682016040523d82523d6000602084013e613840565b606091505b5091509150613850828286613861565b979650505050505050565b3b151590565b60608315613870575081611f48565b8251156138805782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156138ca5781810151838201526020016138b2565b50505050905090810190601f1680156138f75780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6040805160e08101825260008082526020820181905291810182905260608082018390526080820181905260a082019290925260c081019190915290565b828054600181600116156101000203166002900490600052602060002090601f01602090048101928261397957600085556139dd565b82601f106139b0578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008235161785556139dd565b828001600101855582156139dd579182015b828111156139dd5782358255916020019190600101906139c2565b506139e9929150613a39565b5090565b6040805160c081018252600080825260208201819052918101829052606081018290526080810182905260a081019190915290565b604080518082019091526000808252602082015290565b5b808211156139e95760008155600101613a3a565b803561236f81615096565b805161236f81615096565b60008083601f840112613a75578182fd5b50813567ffffffffffffffff811115613a8c578182fd5b602083019150836020828501011115613aa457600080fd5b9250929050565b600082601f830112613abb578081fd5b815167ffffffffffffffff811115613acf57fe5b613b0060207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601615046565b818152846020838601011115613b14578283fd5b6136da82602083016020870161506a565b803561236f816150ae565b805161236f816150ae565b803561236f816150be565b805161236f816150be565b600060208284031215613b62578081fd5b8135611f4881615096565b60008060408385031215613b7f578081fd5b8235613b8a81615096565b91506020830135613b9a816150ae565b809150509250929050565b600080600060608486031215613bb9578081fd5b8335613bc481615096565b92506020840135613bd4816150ae565b929592945050506040919091013590565b60008060408385031215613bf7578182fd5b8235613c0281615096565b946020939093013593505050565b60008060008060008060008060008060006101008c8e031215613c31578687fd5b613c3a8c613a4e565b9a50613c4860208d01613b3b565b9950613c5660408d01613b25565b985067ffffffffffffffff8060608e01351115613c71578788fd5b613c818e60608f01358f01613a64565b909950975060808d0135811015613c96578687fd5b613ca68e60808f01358f01613a64565b9097509550613cb760a08e01613a4e565b9450613cc560c08e01613a4e565b93508060e08e01351115613cd7578283fd5b50613ce88d60e08e01358e01613a64565b81935080925050509295989b509295989b9093969950565b600060208284031215613d11578081fd5b815167ffffffffffffffff80821115613d28578283fd5b9083019060e08286031215613d3b578283fd5b613d4560e0615046565b613d4e83613b30565b8152613d5c60208401613b30565b6020820152613d6d60408401613b46565b6040820152613d7e60608401613a59565b6060820152608083015182811115613d94578485fd5b613da087828601613aab565b60808301525060a083015160a082015260c083015182811115613dc1578485fd5b613dcd87828601613aab565b60c08301525095945050505050565b600060208284031215613ded578081fd5b8135611f48816150ae565b60008060408385031215613e0a578182fd5b8235613e15816150ae565b91506020830135613b9a81615096565b600080600080600080600060a0888a031215613e3f578081fd5b8735613e4a816150ae565b96506020880135613e5a81615096565b9550604088013567ffffffffffffffff80821115613e76578283fd5b613e828b838c01613a64565b909750955060608a013591508115158214613e9b578283fd5b90935060808901359080821115613eb0578283fd5b50613ebd8a828b01613a64565b989b979a50959850939692959293505050565b600080600060608486031215613ee4578081fd5b8335613eef816150ae565b92506020840135613bd481615096565b60008060008060008060a08789031215613f17578384fd5b8635613f22816150ae565b95506020870135613f3281615096565b94506040870135935060608701359250608087013567ffffffffffffffff811115613f5b578283fd5b613f6789828a01613a64565b979a9699509497509295939492505050565b600080600080600060808688031215613f90578283fd5b8535613f9b816150ae565b94506020860135613fab81615096565b935060408601359250606086013567ffffffffffffffff811115613fcd578182fd5b613fd988828901613a64565b969995985093965092949392505050565b60008060408385031215613ffc578182fd5b8235613c02816150ae565b6000806000806080858703121561401c578182fd5b8435614027816150ae565b966020860135965060408601359560600135945092505050565b60008060408385031215614053578182fd5b8235613b8a816150ae565b60008060008060608587031215614073578182fd5b843561407e816150ae565b9350602085013561408e816150ae565b9250604085013567ffffffffffffffff8111156140a9578283fd5b6140b587828801613a64565b95989497509550505050565b600080600080600080600060e0888a0312156140db578081fd5b87356140e6816150ae565b965060208801356140f6816150ae565b95506040880135614106816150be565b9450606088013561411681615096565b93506080880135614126816150ae565b925060a0880135614136816150ae565b915060c088013561414681615096565b8091505092959891949750929550565b600060208284031215614167578081fd5b5051919050565b60006020828403121561417f578081fd5b8135611f48816150be565b6000806000806080858703121561419f578182fd5b843560ff811681146141af578283fd5b935060208501356141bf81615096565b925060408501356141cf81615096565b9396929550929360600135925050565b600082845282826020860137806020848601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f85011685010190509392505050565b6000815180845261423f81602086016020860161506a565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b90565b60007fffffffffffffffff0000000000000000000000000000000000000000000000008860c01b1682527fffffffffffffffffffffffffffffffffffffffff0000000000000000000000008760601b1660088301528486601c840137848201601c81018281528486823750909201601c019182525095945050505050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b60006001600160a01b0386168252846020830152606060408301526143536060830184866141df565b9695505050505050565b901515815260200190565b92151583526020830191909152604082015260600190565b90815260200190565b6000858252606060208301526143a36060830185876141df565b905082604083015295945050505050565b600060208252611f486020830184614227565b60208082526026908201527f4c617965725a65726f3a20696e76616c6964206f7574626f756e642070726f6f60408201527f6620747970650000000000000000000000000000000000000000000000000000606082015260800190565b60208082526018908201527f4c617965725a65726f3a206f6e6c792074726561737572790000000000000000604082015260600190565b6020808252601e908201527f4c617965725a65726f3a20496e76616c696420636f6e66696720747970650000604082015260600190565b6020808252601a908201527f4c617965725a65726f3a207769746864726177206661696c6564000000000000604082015260600190565b60208082526025908201527f4c617965725a65726f3a206e6f7420656e6f756768206e617469766520666f7260408201527f2066656573000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526031908201527f4c617965725a65726f3a205f6c617965725a65726f546f6b656e2063616e6e6f60408201527f74206265207a65726f2061646472657373000000000000000000000000000000606082015260800190565b60208082526022908201527f4c617965725a65726f3a20696e76616c69642072656c6179657220616464726560408201527f7373000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601b908201527f4c617965725a65726f3a206661696c656420746f20726566756e640000000000604082015260600190565b6020808252602b908201527f4c617965725a65726f3a206d75737420626520706169642062792073656e646560408201527f72206f72206f726967696e000000000000000000000000000000000000000000606082015260800190565b60208082526021908201527f4c617965725a65726f3a20636861696e496420646f6573206e6f74206578697360408201527f7400000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526021908201527f4c617965725a65726f3a20696e76616c6964206f7261636c652061646472657360408201527f7300000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601e908201527f4c617965725a65726f3a20696e76616c69642064737420616464726573730000604082015260600190565b6020808252601a908201527f4c617965725a65726f3a20696e76616c69642072656c61796572000000000000604082015260600190565b60208082526029908201527f4c617965725a65726f3a206c6962726172792063616e6e6f74206265207a657260408201527f6f20616464726573730000000000000000000000000000000000000000000000606082015260800190565b60208082526043908201527f4c617965725a65726f3a206f7261636c6520646174612063616e206f6e6c792060408201527f75706461746520696620697420686173206d6f726520636f6e6669726d61746960608201527f6f6e730000000000000000000000000000000000000000000000000000000000608082015260a00190565b60208082526017908201527f4c617965725a65726f3a6f6e6c79207472656173757279000000000000000000604082015260600190565b60208082526030908201527f4c617965725a65726f3a20696e76616c696420696e626f756e642070726f6f6660408201527f206c6962726172792076657273696f6e00000000000000000000000000000000606082015260800190565b6020808252602a908201527f4c617965725a65726f3a2074726561737572792063616e6e6f74206265207a6560408201527f726f206164647265737300000000000000000000000000000000000000000000606082015260800190565b60208082526021908201527f4c617965725a65726f3a2072656d6f746520756c6e20616c726561647920736560408201527f7400000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526022908201527f4c617965725a65726f3a2063616e206e6f7420616464206e6577206c6962726160408201527f7279000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526018908201527f4c617965725a65726f3a206f6e6c7920656e64706f696e740000000000000000604082015260600190565b6020808252602e908201527f4c617965725a65726f3a20696e76616c6964206f7574626f756e6420626c6f6360408201527f6b20636f6e6669726d6174696f6e000000000000000000000000000000000000606082015260800190565b60208082526024908201527f4c617965725a65726f3a20756e737570706f727465642077697468647261772060408201527f7479706500000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526028908201527f4c617965725a65726f3a205f7061636b65742e756c6e4164647265737320697360408201527f20696e76616c6964000000000000000000000000000000000000000000000000606082015260800190565b60208082526030908201527f4c617965725a65726f3a2072656d6f746520636861696e20616464726573732060408201527f73697a6520616c72656164792073657400000000000000000000000000000000606082015260800190565b6020808252602d908201527f4c617965725a65726f3a20696e76616c696420696e626f756e6420626c6f636b60408201527f20636f6e6669726d6174696f6e00000000000000000000000000000000000000606082015260800190565b60208082526029908201527f4c617965725a65726f3a206e6f7420656e6f75676820626c6f636b20636f6e6660408201527f69726d6174696f6e730000000000000000000000000000000000000000000000606082015260800190565b600060c08201905061ffff808451168352602084015167ffffffffffffffff8082166020860152604086015191506001600160a01b0380831660408701528360608801511660608701528160808801511660808701528060a08801511660a08701525050505092915050565b815181526020918201519181019190915260400190565b61ffff91909116815260200190565b61ffff9290921682526001600160a01b0316602082015260400190565b61ffff9490941684526001600160a01b039290921660208401526040830152606082015260800190565b61ffff929092168252602082015260400190565b600061ffff84168252604060208301526136da6040830184614227565b600061ffff8816825260c06020830152614db360c0830188614227565b6001600160a01b038716604084015267ffffffffffffffff8616606084015284608084015282810360a0840152614dea8185614227565b9998505050505050505050565b61ffff92831681529116602082015260400190565b600061ffff80891683528088166020840152506001600160a01b038616604083015284606083015260a06080830152614e4960a0830184866141df565b98975050505050505050565b600061ffff80881683528087166020840152506001600160a01b038516604083015283606083015260a0608083015261385060a0830184614227565b600061ffff8087168352808616602084015250606060408301526143536060830184866141df565b600061ffff808616835280851660208401525060606040830152614ee06060830184614227565b95945050505050565b61ffff938416815291909216602082015267ffffffffffffffff909116604082015260600190565b61ffff9788168152958716602087015267ffffffffffffffff9490941660408601526001600160a01b039283166060860152908516608085015290931660a083015290911660c082015260e00190565b61ffff968716815267ffffffffffffffff95861660208201526001600160a01b03948516604082015292909516606083015290921660808301529190911660a082015260c00190565b600061ffff808816835267ffffffffffffffff87166020840152808616604084015250608060608301526138506080830184866141df565b918252602082015260400190565b67ffffffffffffffff91909116815260200190565b60ff91909116815260200190565b60ff9590951685526001600160a01b03938416602086015291831660408501529091166060830152608082015260a00190565b60405181810167ffffffffffffffff8111828210171561506257fe5b604052919050565b60005b8381101561508557818101518382015260200161506d565b8381111561358f5750506000910152565b6001600160a01b03811681146150ab57600080fd5b50565b61ffff811681146150ab57600080fd5b67ffffffffffffffff811681146150ab57600080fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220e17d259a389652c35621600dfb3202de3541da2766e0ab74bef94fe8b06a386b64736f6c63430007060033",
1507
- "deployedBytecode": "0x60806040526004361061031e5760003560e01c80638317814a116101a5578063d56bc64b116100ec578063ebfa08e911610095578063f2fde38b1161006f578063f2fde38b146108a4578063f47a5feb146108c4578063f8e1734c146108d9578063f9dd8e0f146108f95761031e565b8063ebfa08e914610837578063ed28580a14610864578063f0f44260146108845761031e565b8063e6108a82116100c6578063e6108a82146107d7578063ea216c21146107f7578063eb0d4c31146108175761031e565b8063d56bc64b14610777578063db00719b14610797578063ddfdef5a146107b75761031e565b8063a183608c1161014e578063b77d22ad11610128578063b77d22ad14610708578063b8e7e3e01461071d578063d543c7741461074a5761031e565b8063a183608c146106a6578063a4662222146106c6578063abe685cd146106f35761031e565b80638da5cb5b1161017f5780638da5cb5b1461065c578063904d3b8d14610671578063959f5943146106865761031e565b80638317814a146105fc5780638525b7111461061c57806387078f9f1461063c5761031e565b80634d0ca1b4116102695780635e280f1111610212578063715018a6116101ec578063715018a6146105b25780638140666e146105c75780638207f79d146105dc5761031e565b80635e280f111461055d57806361aa19da14610572578063704316e5146105925761031e565b806352d3b5001161024357806352d3b500146105085780635b5a2678146105285780635c0115311461053d5761031e565b80634d0ca1b4146104c05780634d3a0f7c146104d557806352d2871f146104e85761031e565b80632cfacb06116102cb57806331bd2430116102a557806331bd24301461046857806340a7bb101461047d57806349148c37146104ab5761031e565b80632cfacb06146103ff5780632e9959ec146104145780632f813464146104365761031e565b806318da0011116102fc57806318da00111461039d57806322c10776146103b25780632a819bbf146103d25761031e565b806302e72c631461032357806307b9ca7c14610359578063096607f81461037b575b600080fd5b34801561032f57600080fd5b5061034361033e366004613b51565b61090e565b6040516103509190614380565b60405180910390f35b34801561036557600080fd5b5061036e610920565b60405161035091906142f2565b34801561038757600080fd5b5061039b6103963660046140c1565b61092f565b005b3480156103a957600080fd5b5061036e610c95565b3480156103be57600080fd5b5061039b6103cd36600461418a565b610ca4565b3480156103de57600080fd5b506103f26103ed366004614041565b610e9d565b60405161035091906143b4565b34801561040b57600080fd5b50610343610f5f565b34801561042057600080fd5b50610429610f64565b6040516103509190615005565b34801561044257600080fd5b50610456610451366004613ddc565b610f69565b60405161035096959493929190614f61565b34801561047457600080fd5b50610343610fed565b34801561048957600080fd5b5061049d610498366004613e25565b610ff2565b604051610350929190614fe2565b3480156104b757600080fd5b506103436113bc565b3480156104cc57600080fd5b506104296113c1565b61039b6104e3366004613c10565b6113c6565b3480156104f457600080fd5b506103f2610503366004613ed0565b611be7565b34801561051457600080fd5b5061039b610523366004613b51565b611f4f565b34801561053457600080fd5b50610343612057565b34801561054957600080fd5b5061039b610558366004613eff565b61205d565b34801561056957600080fd5b5061036e612331565b34801561057e57600080fd5b5061034361058d366004613b51565b612355565b34801561059e57600080fd5b5061039b6105ad366004614007565b612374565b3480156105be57600080fd5b5061039b612409565b3480156105d357600080fd5b506103436124df565b3480156105e857600080fd5b5061039b6105f7366004613df8565b6124e4565b34801561060857600080fd5b5061039b61061736600461405e565b61267c565b34801561062857600080fd5b5061039b610637366004613be5565b61275f565b34801561064857600080fd5b5061039b610657366004613fea565b612851565b34801561066857600080fd5b5061036e61293e565b34801561067d57600080fd5b5061034361294d565b34801561069257600080fd5b506103436106a1366004613ddc565b612952565b3480156106b257600080fd5b506103436106c1366004613b51565b612964565b3480156106d257600080fd5b506106e66106e1366004613df8565b612976565b6040516103509190614c8c565b3480156106ff57600080fd5b50610343612b44565b34801561071457600080fd5b50610343610f64565b34801561072957600080fd5b5061073d610738366004613ddc565b612b4a565b6040516103509190614d0f565b34801561075657600080fd5b5061076a610765366004614041565b612b60565b604051610350919061435d565b34801561078357600080fd5b5061049d610792366004613ba5565b612b80565b3480156107a357600080fd5b5061036e6107b2366004614041565b612baa565b3480156107c357600080fd5b506104566107d2366004613b6d565b612bd0565b3480156107e357600080fd5b506103436107f2366004613b51565b612c5f565b34801561080357600080fd5b50610343610812366004613ddc565b612c7a565b34801561082357600080fd5b5061039b610832366004614041565b612c8c565b34801561084357600080fd5b50610857610852366004613ba5565b612d7b565b6040516103509190614cf8565b34801561087057600080fd5b5061039b61087f366004613fea565b612dcf565b34801561089057600080fd5b5061039b61089f366004613b51565b612ebc565b3480156108b057600080fd5b5061039b6108bf366004613b51565b612fb9565b3480156108d057600080fd5b506103436130e6565b3480156108e557600080fd5b5061039b6108f4366004613f79565b6130ec565b34801561090557600080fd5b506104296113bc565b60056020526000908152604090205481565b6002546001600160a01b031681565b61093761344c565b6001600160a01b031661094861293e565b6001600160a01b0316146109a3576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61ffff8088166000908152600c60205260409020548116908716118015906109cf575060008661ffff16115b6109f45760405162461bcd60e51b81526004016109eb906148b3565b60405180910390fd5b60008567ffffffffffffffff1611610a1e5760405162461bcd60e51b81526004016109eb90614bd2565b6001600160a01b038416610a445760405162461bcd60e51b81526004016109eb90614583565b61ffff8088166000908152600d602090815260408083209387168352929052205460ff16610a845760405162461bcd60e51b81526004016109eb906143c7565b60008261ffff1611610aa85760405162461bcd60e51b81526004016109eb90614a5e565b6001600160a01b038116610ace5760405162461bcd60e51b81526004016109eb906146d1565b6040518060c001604052808761ffff1681526020018667ffffffffffffffff168152602001856001600160a01b031681526020018461ffff1681526020018361ffff1667ffffffffffffffff168152602001826001600160a01b0316815250600960008961ffff1661ffff16815260200190815260200160002060008201518160000160006101000a81548161ffff021916908361ffff16021790555060208201518160000160026101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550604082015181600001600a6101000a8154816001600160a01b0302191690836001600160a01b03160217905550606082015181600001601e6101000a81548161ffff021916908361ffff16021790555060808201518160010160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060a08201518160010160086101000a8154816001600160a01b0302191690836001600160a01b031602179055509050507f45bb8a2b6b05457ff80b84be5bf06f2d05069fa8099fcb9d8e34149654b4d5c287878787878787604051610c849796959493929190614f11565b60405180910390a150505050505050565b6003546001600160a01b031681565b60026000541415610cfc576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260005560ff8416610d48576003546001600160a01b03163314610d335760405162461bcd60e51b81526004016109eb9061487c565b600654610d409082613450565b600655610dd6565b60ff841660011415610d835733600090815260046020526040902054610d6e9082613450565b33600090815260046020526040902055610dd6565b60ff841660021415610dbe5733600090815260056020526040902054610da99082613450565b33600090815260056020526040902055610dd6565b60405162461bcd60e51b81526004016109eb90614abb565b6000826001600160a01b031682604051610def90614271565b60006040518083038185875af1925050503d8060008114610e2c576040519150601f19603f3d011682016040523d82523d6000602084013e610e31565b606091505b5050905080610e525760405162461bcd60e51b81526004016109eb90614492565b7f163adce0473e267e1db8ecb524c0fcdceda62c3e6f231966bbb252e0104325378585338686604051610e89959493929190615013565b60405180910390a150506001600055505050565b600a6020908152600092835260408084208252918352918190208054825160026001831615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190921691909104601f810185900485028201850190935282815292909190830182828015610f575780601f10610f2c57610100808354040283529160200191610f57565b820191906000526020600020905b815481529060010190602001808311610f3a57829003601f168201915b505050505081565b600381565b600181565b6009602052600090815260409020805460019091015461ffff8083169267ffffffffffffffff6201000082048116936001600160a01b036a010000000000000000000084048116947e010000000000000000000000000000000000000000000000000000000000009094049093169291811691680100000000000000009091041686565b600681565b604080516020601f840181900481028201810190925282815260009182918a918a918991859190899089908190840183828082843760009201829052509394506110429250879150869050612976565b905060008251600014156111b25761ffff8681166000908152600a60209081526040808320606087015190941683529281528282208054845160026001831615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190921691909104601f8101849004840282018401909552848152929390918301828280156111175780601f106110ec57610100808354040283529160200191611117565b820191906000526020600020905b8154815290600101906020018083116110fa57829003601f168201915b5050505050905082604001516001600160a01b031663e54a22158885606001518989866040518663ffffffff1660e01b815260040161115a959493929190614e55565b60206040518083038186803b15801561117257600080fd5b505afa158015611186573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111aa9190614156565b915050611241565b81604001516001600160a01b031663e54a22158784606001518888886040518663ffffffff1660e01b81526004016111ee959493929190614e55565b60206040518083038186803b15801561120657600080fd5b505afa15801561121a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061123e9190614156565b90505b60a082015160608301516040517f0b4d51070000000000000000000000000000000000000000000000000000000081526000926001600160a01b031691630b4d510791611292918b91600401614df7565b60206040518083038186803b1580156112aa57600080fd5b505afa1580156112be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112e29190614156565b90506000600360009054906101000a90046001600160a01b03166001600160a01b0316635cbbbd758e85856040518463ffffffff1660e01b815260040161132b93929190614368565b60206040518083038186803b15801561134357600080fd5b505afa158015611357573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061137b9190614156565b90508c61138b5780995089611390565b809850885b506113a79050816113a18b856134ad565b906134ad565b98505050505050505097509795505050505050565b600281565b600081565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316331461140e5760405162461bcd60e51b81526004016109eb90614a27565b600061141a8a8d612976565b61ffff8b166000908152601060205260409020549091508c908c908c906114535760405162461bcd60e51b81526004016109eb90614674565b6000808560a001516001600160a01b0316630b4d51078488606001516040518363ffffffff1660e01b815260040161148c929190614df7565b60206040518083038186803b1580156114a457600080fd5b505afa1580156114b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114dc9190614156565b60a08701516001600160a01b031660009081526004602052604090205490915061150690826134ad565b60a08701516001600160a01b031660009081526004602052604090819020919091558601518b90886117295761ffff8581166000908152600a6020908152604080832060608d015190941683529281528282208054845160026001831615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190921691909104601f8101849004840282018401909552848152929390918301828280156115f95780601f106115ce576101008083540402835291602001916115f9565b820191906000526020600020905b8154815290600101906020018083116115dc57829003601f168201915b5050505060608b01516040517fe54a22150000000000000000000000000000000000000000000000000000000081529293506001600160a01b0385169263e54a22159250611651918a918d9089908890600401614e55565b60206040518083038186803b15801561166957600080fd5b505afa15801561167d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116a19190614156565b60608a01516040517f3a5fb82a0000000000000000000000000000000000000000000000000000000081529196506001600160a01b03841691633a5fb82a916116f1918a91908690600401614eb9565b600060405180830381600087803b15801561170b57600080fd5b505af115801561171f573d6000803e3d6000fd5b5050505050611838565b806001600160a01b031663e54a2215868a606001518a868f8f6040518763ffffffff1660e01b815260040161176396959493929190614e0c565b60206040518083038186803b15801561177b57600080fd5b505afa15801561178f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117b39190614156565b60608901516040517f3a5fb82a0000000000000000000000000000000000000000000000000000000081529195506001600160a01b03831691633a5fb82a91611805918991908f908f90600401614e91565b600060405180830381600087803b15801561181f57600080fd5b505af1158015611833573d6000803e3d6000fd5b505050505b6040808901516001600160a01b031660009081526005602052205461185d90856134ad565b6040808a01516001600160a01b03166000908152600560205281902091909155606089015190517fb8a7262132db1f61626604a31c3de81dc1a5bb0f1511dfa70d626ab1b88b52c2916118b79188918a918f908f90614faa565b60405180910390a150600090506001600160a01b038a1615806118e357506002546001600160a01b0316155b6003546040517f5cbbbd750000000000000000000000000000000000000000000000000000000081529192506000916001600160a01b0390911690635cbbbd75906119379085159088908890600401614368565b60206040518083038186803b15801561194f57600080fd5b505afa158015611963573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119879190614156565b90508015611a235781156119b6576006546119a290826134ad565b6006556119af84826134ad565b9350611a23565b866001600160a01b03168b6001600160a01b031614806119de57506001600160a01b038b1632145b6119fa5760405162461bcd60e51b81526004016109eb90614617565b600254611a12906001600160a01b03168c3084613507565b600754611a1f90826134ad565b6007555b50611a30905082826134ad565b915050600083858f8f8f8f604051602001611a5096959493929190614274565b60405160208183030381529060405290507fe8d23d927749ec8e512eb885679c2977d57068839d8cca1a85685dbbea0648f68382604051611a92929190614d79565b60405180910390a160a0860151606087015160808801516040517f665305790000000000000000000000000000000000000000000000000000000081526001600160a01b0390931692636653057992611aef928892600401614ee9565b600060405180830381600087803b158015611b0957600080fd5b505af1158015611b1d573d6000803e3d6000fd5b505050505034811115611b425760405162461bcd60e51b81526004016109eb906144c9565b6000611b4e3483613450565b90508015611bd45760008a6001600160a01b031682604051611b6f90614271565b60006040518083038185875af1925050503d8060008114611bac576040519150601f19603f3d011682016040523d82523d6000602084013e611bb1565b606091505b5050905080611bd25760405162461bcd60e51b81526004016109eb906145e0565b505b5050505050505050505050505050505050565b6001600160a01b038216600090815260086020908152604080832061ffff8716845290915290206060906001831415611c7b57805461ffff16611c655761ffff808616600090815260096020908152604091829020549151611c4e93929092169101614d0f565b604051602081830303815290604052915050611f48565b8054604051611c4e9161ffff1690602001614d0f565b6002831415611cf157805462010000900467ffffffffffffffff16611ccf5761ffff8516600090815260096020908152604091829020549151611c4e9262010000900467ffffffffffffffff169101614ff0565b8054604051611c4e9162010000900467ffffffffffffffff1690602001614ff0565b6003831415611d7c5780546a010000000000000000000090046001600160a01b0316611d535761ffff8516600090815260096020908152604091829020549151611c4e926a010000000000000000000090046001600160a01b031691016142f2565b8054604051611c4e916a010000000000000000000090046001600160a01b0316906020016142f2565b6004831415611e355780547e01000000000000000000000000000000000000000000000000000000000000900461ffff16611dfd5761ffff808616600090815260096020908152604091829020549151611c4e937e010000000000000000000000000000000000000000000000000000000000009093049092169101614d0f565b8054604051611c4e917e01000000000000000000000000000000000000000000000000000000000000900461ffff1690602001614d0f565b6005831415611ea257600181015467ffffffffffffffff16611e835761ffff8516600090815260096020908152604091829020600101549151611c4e9267ffffffffffffffff169101614ff0565b6001810154604051611c4e9167ffffffffffffffff1690602001614ff0565b6006831415611f305760018101546801000000000000000090046001600160a01b0316611f065761ffff8516600090815260096020908152604091829020600101549151611c4e926801000000000000000090046001600160a01b031691016142f2565b6001810154604051611c4e916801000000000000000090046001600160a01b0316906020016142f2565b60405162461bcd60e51b81526004016109eb9061445b565b9392505050565b611f5761344c565b6001600160a01b0316611f6861293e565b6001600160a01b031614611fc3576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116611fe95760405162461bcd60e51b81526004016109eb90614526565b600280547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383161790556040517f33d644987381deff4408951d55afa136f124e22a7810b163b2aaa3ebef770f649061204c9083906142f2565b60405180910390a150565b60065481565b60006120698787612976565b60408101519091506001600160a01b031633146120985760405162461bcd60e51b81526004016109eb90614765565b6120a0613905565b61ffff8089166000818152600b60209081526040808320875190951683529381528382205460a08701516001600160a01b039081168452600f83528584209484529382528483208a84528252939091209085015181549290931692909167ffffffffffffffff90911611156121275760405162461bcd60e51b81526004016109eb90614c2f565b61ffff8a166000908152600e60205260409081902054600183015491517fb71e0f7100000000000000000000000000000000000000000000000000000000815290916001600160a01b0385169163b71e0f719161218c918b908b908790600401614389565b600060405180830381600087803b1580156121a657600080fd5b505af11580156121ba573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526122009190810190613d00565b60a081015161ffff8d1660009081526010602052604090205491955014925061223e9150505760405162461bcd60e51b81526004016109eb90614b18565b866001600160a01b031681606001516001600160a01b0316146122735760405162461bcd60e51b81526004016109eb9061472e565b80516080820151606083015160408085015160c086015191517fc2fa48130000000000000000000000000000000000000000000000000000000081526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169563c2fa4813956122f5959194909391928e9190600401614d96565b600060405180830381600087803b15801561230f57600080fd5b505af1158015612323573d6000803e3d6000fd5b505050505050505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6001600160a01b0381166000908152600460205260409020545b919050565b336000908152600f6020908152604080832061ffff8816845282528083208684529091529020805483116123ba5760405162461bcd60e51b81526004016109eb906147f9565b828155600181018290556040517fc5e97f049604c4d8626704341240f021a22cee0d8b66ec306a45344be67733a0906123fa908790339087908990614d3b565b60405180910390a15050505050565b61241161344c565b6001600160a01b031661242261293e565b6001600160a01b03161461247d576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b600481565b6124ec61344c565b6001600160a01b03166124fd61293e565b6001600160a01b031614612558576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03811661257e5760405162461bcd60e51b81526004016109eb9061479c565b61ffff8281166000908152600c60205260409020548116106125b25760405162461bcd60e51b81526004016109eb906149ca565b61ffff8083166000908152600c60209081526040808320805480861660010186167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00009091161790819055600b83528184209416835292905281902080546001600160a01b0384167fffffffffffffffffffffffff0000000000000000000000000000000000000000909116179055517f802d55279d51813cb7a9a98e8fd2d7bec5346cb830901c11b85d1650cb857e9a906126709084908490614d1e565b60405180910390a15050565b61268461344c565b6001600160a01b031661269561293e565b6001600160a01b0316146126f0576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61ffff8085166000908152600a6020908152604080832093871683529290522061271b908383613943565b507f4a5695eee2a74d548d5f5c485a3de99ace99e3b664c8e30a90f49be6ebb54932848484846040516127519493929190614e91565b60405180910390a150505050565b600260005414156127b7576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026000556003546001600160a01b031633146127e65760405162461bcd60e51b81526004016109eb90614424565b6007546127f39082613450565b60075560025461280d906001600160a01b03168383613595565b7f3a20c8c3cd1848485ae8261a52398bb9b26f195b717306b3cf7f058e62c095d533838360405161284093929190614306565b60405180910390a150506001600055565b61285961344c565b6001600160a01b031661286a61293e565b6001600160a01b0316146128c5576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61ffff82166000908152600e6020526040902054156128f65760405162461bcd60e51b81526004016109eb90614b75565b61ffff82166000908152600e602052604090819020829055517f0611bb2107e385b79ec826fff8ecc1c1248a7aae3c875c96668f8cfbf1734220906126709084908490614d65565b6001546001600160a01b031690565b600581565b600e6020526000908152604090205481565b60046020526000908152604090205481565b61297e6139ed565b6001600160a01b03808316600090815260086020908152604080832061ffff808916808652918452828520835160c0810185528154808416825267ffffffffffffffff6201000082048116838901526a010000000000000000000082048a16838801527e010000000000000000000000000000000000000000000000000000000000009091048416606083015260019092015491821660808201526801000000000000000090910490961660a087015290845260099092529091208251909116612a4b57805461ffff1682525b602082015167ffffffffffffffff16612a7657805462010000900467ffffffffffffffff1660208301525b60408201516001600160a01b0316612aa75780546a010000000000000000000090046001600160a01b031660408301525b606082015161ffff16612ae25780547e01000000000000000000000000000000000000000000000000000000000000900461ffff1660608301525b608082015167ffffffffffffffff16612b0a57600181015467ffffffffffffffff1660808301525b60a08201516001600160a01b0316612b3c5760018101546801000000000000000090046001600160a01b031660a08301525b509392505050565b61271081565b600c6020526000908152604090205461ffff1681565b600d60209081526000928352604080842090915290825290205460ff1681565b600f6020908152600093845260408085208252928452828420905282529020805460019091015482565b600b6020908152600092835260408084209091529082529020546001600160a01b031681565b60086020908152600092835260408084209091529082529020805460019091015461ffff8083169267ffffffffffffffff6201000082048116936001600160a01b036a010000000000000000000084048116947e010000000000000000000000000000000000000000000000000000000000009094049093169291811691680100000000000000009091041686565b6001600160a01b031660009081526005602052604090205490565b60106020526000908152604090205481565b612c9461344c565b6001600160a01b0316612ca561293e565b6001600160a01b031614612d00576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61ffff8083166000908152600d60209081526040808320938516835292905281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055517fec23bee6f88cfecebb09d6aaaed66f0ce110debc1f61117c8270a7116597df9a906126709084908490614df7565b612d83613a22565b506001600160a01b0383166000908152600f6020908152604080832061ffff86168452825280832084845282529182902082518084019093528054835260010154908201529392505050565b612dd761344c565b6001600160a01b0316612de861293e565b6001600160a01b031614612e43576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61ffff821660009081526010602052604090205415612e745760405162461bcd60e51b81526004016109eb9061496d565b61ffff821660009081526010602052604090819020829055517f0dad975e1d2fbe771c95cdcc7be9a1e61181de7173abe0a32b8f8f83140873e5906126709084908490614d65565b612ec461344c565b6001600160a01b0316612ed561293e565b6001600160a01b031614612f30576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116612f565760405162461bcd60e51b81526004016109eb90614910565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383161790556040517fcb7ef3e545f5cdb893f5c568ba710fe08f336375a2d9fd66e161033f8fc09ef39061204c9083906142f2565b612fc161344c565b6001600160a01b0316612fd261293e565b6001600160a01b03161461302d576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166130725760405162461bcd60e51b81526004018080602001828103825260268152602001806150d56026913960400191505060405180910390fd5b6001546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b60075481565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633146131345760405162461bcd60e51b81526004016109eb90614a27565b6001600160a01b038416600090815260086020908152604080832061ffff89168452909152902060018414156131e157600061317283850185613ddc565b61ffff8089166000908152600c602052604090205491925090811690821611156131ae5760405162461bcd60e51b81526004016109eb906148b3565b81547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001661ffff91909116178155613407565b60028414156132385760006131f88385018561416e565b825467ffffffffffffffff90911662010000027fffffffffffffffffffffffffffffffffffffffffffff0000000000000000ffff90911617825550613407565b600384141561329657600061324f83850185613b51565b82546001600160a01b039091166a0100000000000000000000027fffff0000000000000000000000000000000000000000ffffffffffffffffffff90911617825550613407565b60048414156133505760006132ad83850185613ddc565b61ffff8089166000908152600d602090815260408083209385168352929052205490915060ff16806132e1575061ffff8116155b6132fd5760405162461bcd60e51b81526004016109eb906143c7565b815461ffff9091167e01000000000000000000000000000000000000000000000000000000000000027dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff909116178155613407565b60058414156133a85760006133678385018561416e565b6001830180547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff9290921691909117905550613407565b6006841415611f305760006133bf83850185613b51565b6001830180546001600160a01b0390921668010000000000000000027fffffffff0000000000000000000000000000000000000000ffffffffffffffff909216919091179055505b7ffc01bf86212a14151d51d1be5c2ac64d67d5ec823dfc6f53298d7ce3f3d3d2528585858560405161343c949392919061432a565b60405180910390a1505050505050565b3390565b6000828211156134a7576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600082820183811015611f48576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd0000000000000000000000000000000000000000000000000000000017905261358f90859061361a565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905261361590849061361a565b505050565b600061366f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166136cb9092919063ffffffff16565b8051909150156136155780806020019051602081101561368e57600080fd5b50516136155760405162461bcd60e51b815260040180806020018281038252602a815260200180615121602a913960400191505060405180910390fd5b60606136da84846000856136e2565b949350505050565b6060824710156137235760405162461bcd60e51b81526004018080602001828103825260268152602001806150fb6026913960400191505060405180910390fd5b61372c8561385b565b61377d576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b602083106137d957805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0909201916020918201910161379c565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461383b576040519150601f19603f3d011682016040523d82523d6000602084013e613840565b606091505b5091509150613850828286613861565b979650505050505050565b3b151590565b60608315613870575081611f48565b8251156138805782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156138ca5781810151838201526020016138b2565b50505050905090810190601f1680156138f75780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6040805160e08101825260008082526020820181905291810182905260608082018390526080820181905260a082019290925260c081019190915290565b828054600181600116156101000203166002900490600052602060002090601f01602090048101928261397957600085556139dd565b82601f106139b0578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008235161785556139dd565b828001600101855582156139dd579182015b828111156139dd5782358255916020019190600101906139c2565b506139e9929150613a39565b5090565b6040805160c081018252600080825260208201819052918101829052606081018290526080810182905260a081019190915290565b604080518082019091526000808252602082015290565b5b808211156139e95760008155600101613a3a565b803561236f81615096565b805161236f81615096565b60008083601f840112613a75578182fd5b50813567ffffffffffffffff811115613a8c578182fd5b602083019150836020828501011115613aa457600080fd5b9250929050565b600082601f830112613abb578081fd5b815167ffffffffffffffff811115613acf57fe5b613b0060207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601615046565b818152846020838601011115613b14578283fd5b6136da82602083016020870161506a565b803561236f816150ae565b805161236f816150ae565b803561236f816150be565b805161236f816150be565b600060208284031215613b62578081fd5b8135611f4881615096565b60008060408385031215613b7f578081fd5b8235613b8a81615096565b91506020830135613b9a816150ae565b809150509250929050565b600080600060608486031215613bb9578081fd5b8335613bc481615096565b92506020840135613bd4816150ae565b929592945050506040919091013590565b60008060408385031215613bf7578182fd5b8235613c0281615096565b946020939093013593505050565b60008060008060008060008060008060006101008c8e031215613c31578687fd5b613c3a8c613a4e565b9a50613c4860208d01613b3b565b9950613c5660408d01613b25565b985067ffffffffffffffff8060608e01351115613c71578788fd5b613c818e60608f01358f01613a64565b909950975060808d0135811015613c96578687fd5b613ca68e60808f01358f01613a64565b9097509550613cb760a08e01613a4e565b9450613cc560c08e01613a4e565b93508060e08e01351115613cd7578283fd5b50613ce88d60e08e01358e01613a64565b81935080925050509295989b509295989b9093969950565b600060208284031215613d11578081fd5b815167ffffffffffffffff80821115613d28578283fd5b9083019060e08286031215613d3b578283fd5b613d4560e0615046565b613d4e83613b30565b8152613d5c60208401613b30565b6020820152613d6d60408401613b46565b6040820152613d7e60608401613a59565b6060820152608083015182811115613d94578485fd5b613da087828601613aab565b60808301525060a083015160a082015260c083015182811115613dc1578485fd5b613dcd87828601613aab565b60c08301525095945050505050565b600060208284031215613ded578081fd5b8135611f48816150ae565b60008060408385031215613e0a578182fd5b8235613e15816150ae565b91506020830135613b9a81615096565b600080600080600080600060a0888a031215613e3f578081fd5b8735613e4a816150ae565b96506020880135613e5a81615096565b9550604088013567ffffffffffffffff80821115613e76578283fd5b613e828b838c01613a64565b909750955060608a013591508115158214613e9b578283fd5b90935060808901359080821115613eb0578283fd5b50613ebd8a828b01613a64565b989b979a50959850939692959293505050565b600080600060608486031215613ee4578081fd5b8335613eef816150ae565b92506020840135613bd481615096565b60008060008060008060a08789031215613f17578384fd5b8635613f22816150ae565b95506020870135613f3281615096565b94506040870135935060608701359250608087013567ffffffffffffffff811115613f5b578283fd5b613f6789828a01613a64565b979a9699509497509295939492505050565b600080600080600060808688031215613f90578283fd5b8535613f9b816150ae565b94506020860135613fab81615096565b935060408601359250606086013567ffffffffffffffff811115613fcd578182fd5b613fd988828901613a64565b969995985093965092949392505050565b60008060408385031215613ffc578182fd5b8235613c02816150ae565b6000806000806080858703121561401c578182fd5b8435614027816150ae565b966020860135965060408601359560600135945092505050565b60008060408385031215614053578182fd5b8235613b8a816150ae565b60008060008060608587031215614073578182fd5b843561407e816150ae565b9350602085013561408e816150ae565b9250604085013567ffffffffffffffff8111156140a9578283fd5b6140b587828801613a64565b95989497509550505050565b600080600080600080600060e0888a0312156140db578081fd5b87356140e6816150ae565b965060208801356140f6816150ae565b95506040880135614106816150be565b9450606088013561411681615096565b93506080880135614126816150ae565b925060a0880135614136816150ae565b915060c088013561414681615096565b8091505092959891949750929550565b600060208284031215614167578081fd5b5051919050565b60006020828403121561417f578081fd5b8135611f48816150be565b6000806000806080858703121561419f578182fd5b843560ff811681146141af578283fd5b935060208501356141bf81615096565b925060408501356141cf81615096565b9396929550929360600135925050565b600082845282826020860137806020848601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f85011685010190509392505050565b6000815180845261423f81602086016020860161506a565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b90565b60007fffffffffffffffff0000000000000000000000000000000000000000000000008860c01b1682527fffffffffffffffffffffffffffffffffffffffff0000000000000000000000008760601b1660088301528486601c840137848201601c81018281528486823750909201601c019182525095945050505050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b60006001600160a01b0386168252846020830152606060408301526143536060830184866141df565b9695505050505050565b901515815260200190565b92151583526020830191909152604082015260600190565b90815260200190565b6000858252606060208301526143a36060830185876141df565b905082604083015295945050505050565b600060208252611f486020830184614227565b60208082526026908201527f4c617965725a65726f3a20696e76616c6964206f7574626f756e642070726f6f60408201527f6620747970650000000000000000000000000000000000000000000000000000606082015260800190565b60208082526018908201527f4c617965725a65726f3a206f6e6c792074726561737572790000000000000000604082015260600190565b6020808252601e908201527f4c617965725a65726f3a20496e76616c696420636f6e66696720747970650000604082015260600190565b6020808252601a908201527f4c617965725a65726f3a207769746864726177206661696c6564000000000000604082015260600190565b60208082526025908201527f4c617965725a65726f3a206e6f7420656e6f756768206e617469766520666f7260408201527f2066656573000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526031908201527f4c617965725a65726f3a205f6c617965725a65726f546f6b656e2063616e6e6f60408201527f74206265207a65726f2061646472657373000000000000000000000000000000606082015260800190565b60208082526022908201527f4c617965725a65726f3a20696e76616c69642072656c6179657220616464726560408201527f7373000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601b908201527f4c617965725a65726f3a206661696c656420746f20726566756e640000000000604082015260600190565b6020808252602b908201527f4c617965725a65726f3a206d75737420626520706169642062792073656e646560408201527f72206f72206f726967696e000000000000000000000000000000000000000000606082015260800190565b60208082526021908201527f4c617965725a65726f3a20636861696e496420646f6573206e6f74206578697360408201527f7400000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526021908201527f4c617965725a65726f3a20696e76616c6964206f7261636c652061646472657360408201527f7300000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601e908201527f4c617965725a65726f3a20696e76616c69642064737420616464726573730000604082015260600190565b6020808252601a908201527f4c617965725a65726f3a20696e76616c69642072656c61796572000000000000604082015260600190565b60208082526029908201527f4c617965725a65726f3a206c6962726172792063616e6e6f74206265207a657260408201527f6f20616464726573730000000000000000000000000000000000000000000000606082015260800190565b60208082526043908201527f4c617965725a65726f3a206f7261636c6520646174612063616e206f6e6c792060408201527f75706461746520696620697420686173206d6f726520636f6e6669726d61746960608201527f6f6e730000000000000000000000000000000000000000000000000000000000608082015260a00190565b60208082526017908201527f4c617965725a65726f3a6f6e6c79207472656173757279000000000000000000604082015260600190565b60208082526030908201527f4c617965725a65726f3a20696e76616c696420696e626f756e642070726f6f6660408201527f206c6962726172792076657273696f6e00000000000000000000000000000000606082015260800190565b6020808252602a908201527f4c617965725a65726f3a2074726561737572792063616e6e6f74206265207a6560408201527f726f206164647265737300000000000000000000000000000000000000000000606082015260800190565b60208082526021908201527f4c617965725a65726f3a2072656d6f746520756c6e20616c726561647920736560408201527f7400000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526022908201527f4c617965725a65726f3a2063616e206e6f7420616464206e6577206c6962726160408201527f7279000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526018908201527f4c617965725a65726f3a206f6e6c7920656e64706f696e740000000000000000604082015260600190565b6020808252602e908201527f4c617965725a65726f3a20696e76616c6964206f7574626f756e6420626c6f6360408201527f6b20636f6e6669726d6174696f6e000000000000000000000000000000000000606082015260800190565b60208082526024908201527f4c617965725a65726f3a20756e737570706f727465642077697468647261772060408201527f7479706500000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526028908201527f4c617965725a65726f3a205f7061636b65742e756c6e4164647265737320697360408201527f20696e76616c6964000000000000000000000000000000000000000000000000606082015260800190565b60208082526030908201527f4c617965725a65726f3a2072656d6f746520636861696e20616464726573732060408201527f73697a6520616c72656164792073657400000000000000000000000000000000606082015260800190565b6020808252602d908201527f4c617965725a65726f3a20696e76616c696420696e626f756e6420626c6f636b60408201527f20636f6e6669726d6174696f6e00000000000000000000000000000000000000606082015260800190565b60208082526029908201527f4c617965725a65726f3a206e6f7420656e6f75676820626c6f636b20636f6e6660408201527f69726d6174696f6e730000000000000000000000000000000000000000000000606082015260800190565b600060c08201905061ffff808451168352602084015167ffffffffffffffff8082166020860152604086015191506001600160a01b0380831660408701528360608801511660608701528160808801511660808701528060a08801511660a08701525050505092915050565b815181526020918201519181019190915260400190565b61ffff91909116815260200190565b61ffff9290921682526001600160a01b0316602082015260400190565b61ffff9490941684526001600160a01b039290921660208401526040830152606082015260800190565b61ffff929092168252602082015260400190565b600061ffff84168252604060208301526136da6040830184614227565b600061ffff8816825260c06020830152614db360c0830188614227565b6001600160a01b038716604084015267ffffffffffffffff8616606084015284608084015282810360a0840152614dea8185614227565b9998505050505050505050565b61ffff92831681529116602082015260400190565b600061ffff80891683528088166020840152506001600160a01b038616604083015284606083015260a06080830152614e4960a0830184866141df565b98975050505050505050565b600061ffff80881683528087166020840152506001600160a01b038516604083015283606083015260a0608083015261385060a0830184614227565b600061ffff8087168352808616602084015250606060408301526143536060830184866141df565b600061ffff808616835280851660208401525060606040830152614ee06060830184614227565b95945050505050565b61ffff938416815291909216602082015267ffffffffffffffff909116604082015260600190565b61ffff9788168152958716602087015267ffffffffffffffff9490941660408601526001600160a01b039283166060860152908516608085015290931660a083015290911660c082015260e00190565b61ffff968716815267ffffffffffffffff95861660208201526001600160a01b03948516604082015292909516606083015290921660808301529190911660a082015260c00190565b600061ffff808816835267ffffffffffffffff87166020840152808616604084015250608060608301526138506080830184866141df565b918252602082015260400190565b67ffffffffffffffff91909116815260200190565b60ff91909116815260200190565b60ff9590951685526001600160a01b03938416602086015291831660408501529091166060830152608082015260a00190565b60405181810167ffffffffffffffff8111828210171561506257fe5b604052919050565b60005b8381101561508557818101518382015260200161506d565b8381111561358f5750506000910152565b6001600160a01b03811681146150ab57600080fd5b50565b61ffff811681146150ab57600080fd5b67ffffffffffffffff811681146150ab57600080fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220e17d259a389652c35621600dfb3202de3541da2766e0ab74bef94fe8b06a386b64736f6c63430007060033",
1504
+ "solcInputHash": "12c423ed555aea5404eb3b1e98eff6eb",
1505
+ "metadata": "{\"compiler\":{\"version\":\"0.7.6+commit.7338295f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_endpoint\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"chainId\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"lib\",\"type\":\"address\"}],\"name\":\"AddInboundProofLibraryForChain\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"userApplication\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"configType\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"newConfig\",\"type\":\"bytes\"}],\"name\":\"AppConfigUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"chainId\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"proofType\",\"type\":\"uint16\"}],\"name\":\"EnableSupportedOutboundProof\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"srcChainId\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oracle\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"confirmations\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"blockhash\",\"type\":\"bytes32\"}],\"name\":\"HashReceived\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"chainId\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"payload\",\"type\":\"bytes\"}],\"name\":\"Packet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"chainId\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"nonce\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"outboundProofType\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"adapterParams\",\"type\":\"bytes\"}],\"name\":\"RelayerParams\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"chainId\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"size\",\"type\":\"uint256\"}],\"name\":\"SetChainAddressSize\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"chainId\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"proofType\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"adapterParams\",\"type\":\"bytes\"}],\"name\":\"SetDefaultAdapterParamsForChainId\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"chainId\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"inboundProofLib\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"inboundBlockConfirm\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"relayer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"outboundProofType\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"outboundBlockConfirm\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"oracle\",\"type\":\"address\"}],\"name\":\"SetDefaultConfigForChainId\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"}],\"name\":\"SetLayerZeroToken\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"relayerFeeContract\",\"type\":\"address\"}],\"name\":\"SetRelayerFeeContract\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"chainId\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"uln\",\"type\":\"bytes32\"}],\"name\":\"SetRemoteUln\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"treasuryAddress\",\"type\":\"address\"}],\"name\":\"SetTreasury\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"_type\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_msgSender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"WithdrawNative\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_msgSender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"WithdrawZRO\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"BP_DENOMINATOR\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"CONFIG_TYPE_INBOUND_BLOCK_CONFIRMATIONS\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"CONFIG_TYPE_INBOUND_PROOF_LIBRARY_VERSION\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"CONFIG_TYPE_ORACLE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"CONFIG_TYPE_OUTBOUND_BLOCK_CONFIRMATIONS\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"CONFIG_TYPE_OUTBOUND_PROOF_TYPE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"CONFIG_TYPE_RELAYER\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"WITHDRAW_TYPE_ORACLE_QUOTED_FEES\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"WITHDRAW_TYPE_RELAYER_QUOTED_FEES\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"WITHDRAW_TYPE_TREASURY_PROTOCOL_FEES\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_chainId\",\"type\":\"uint16\"},{\"internalType\":\"address\",\"name\":\"_library\",\"type\":\"address\"}],\"name\":\"addInboundProofLibraryForChain\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"name\":\"appConfig\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"inboundProofLibraryVersion\",\"type\":\"uint16\"},{\"internalType\":\"uint64\",\"name\":\"inboundBlockConfirmations\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"relayer\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"outboundProofType\",\"type\":\"uint16\"},{\"internalType\":\"uint64\",\"name\":\"outboundBlockConfirmations\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"oracle\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"name\":\"chainAddressSizeMap\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"name\":\"defaultAdapterParams\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"name\":\"defaultAppConfig\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"inboundProofLibraryVersion\",\"type\":\"uint16\"},{\"internalType\":\"uint64\",\"name\":\"inboundBlockConfirmations\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"relayer\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"outboundProofType\",\"type\":\"uint16\"},{\"internalType\":\"uint64\",\"name\":\"outboundBlockConfirmations\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"oracle\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_chainId\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"_proofType\",\"type\":\"uint16\"}],\"name\":\"enableSupportedOutboundProof\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"endpoint\",\"outputs\":[{\"internalType\":\"contract ILayerZeroEndpoint\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_chainId\",\"type\":\"uint16\"},{\"internalType\":\"address\",\"name\":\"_ua\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_payload\",\"type\":\"bytes\"},{\"internalType\":\"bool\",\"name\":\"_payInZRO\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"_adapterParams\",\"type\":\"bytes\"}],\"name\":\"estimateFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"nativeFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"zroFee\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_chainId\",\"type\":\"uint16\"},{\"internalType\":\"address\",\"name\":\"userApplicationAddress\",\"type\":\"address\"}],\"name\":\"getAppConfig\",\"outputs\":[{\"components\":[{\"internalType\":\"uint16\",\"name\":\"inboundProofLibraryVersion\",\"type\":\"uint16\"},{\"internalType\":\"uint64\",\"name\":\"inboundBlockConfirmations\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"relayer\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"outboundProofType\",\"type\":\"uint16\"},{\"internalType\":\"uint64\",\"name\":\"outboundBlockConfirmations\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"oracle\",\"type\":\"address\"}],\"internalType\":\"struct UltraLightNode.ApplicationConfiguration\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_oracle\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"_remoteChainId\",\"type\":\"uint16\"},{\"internalType\":\"bytes32\",\"name\":\"_lookupHash\",\"type\":\"bytes32\"}],\"name\":\"getBlockHeaderData\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"confirmations\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"data\",\"type\":\"bytes32\"}],\"internalType\":\"struct UltraLightNode.BlockData\",\"name\":\"blockData\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_chainId\",\"type\":\"uint16\"},{\"internalType\":\"address\",\"name\":\"userApplicationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_configType\",\"type\":\"uint256\"}],\"name\":\"getConfig\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"},{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"hashLookup\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"confirmations\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"data\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"name\":\"inboundProofLibrary\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"layerZeroToken\",\"outputs\":[{\"internalType\":\"contract IERC20\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"name\":\"maxInboundProofLibrary\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_oracle\",\"type\":\"address\"}],\"name\":\"oracleQuotedAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"oracleQuotedFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_relayer\",\"type\":\"address\"}],\"name\":\"relayerQuotedAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"relayerQuotedFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_ua\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"_nonce\",\"type\":\"uint64\"},{\"internalType\":\"uint16\",\"name\":\"_chainId\",\"type\":\"uint16\"},{\"internalType\":\"bytes\",\"name\":\"_destination\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"_payload\",\"type\":\"bytes\"},{\"internalType\":\"address payable\",\"name\":\"_refundAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_zroPaymentAddress\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_adapterParams\",\"type\":\"bytes\"}],\"name\":\"send\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_chainId\",\"type\":\"uint16\"},{\"internalType\":\"uint256\",\"name\":\"_size\",\"type\":\"uint256\"}],\"name\":\"setChainAddressSize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"chainId\",\"type\":\"uint16\"},{\"internalType\":\"address\",\"name\":\"_ua\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_configType\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_config\",\"type\":\"bytes\"}],\"name\":\"setConfig\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_chainId\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"_proofType\",\"type\":\"uint16\"},{\"internalType\":\"bytes\",\"name\":\"_adapterParams\",\"type\":\"bytes\"}],\"name\":\"setDefaultAdapterParamsForChainId\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_chainId\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"_inboundProofLibraryVersion\",\"type\":\"uint16\"},{\"internalType\":\"uint64\",\"name\":\"_inboundBlockConfirmations\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"_relayer\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"_outboundProofType\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"_outboundBlockConfirmations\",\"type\":\"uint16\"},{\"internalType\":\"address\",\"name\":\"_oracle\",\"type\":\"address\"}],\"name\":\"setDefaultConfigForChainId\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_layerZeroToken\",\"type\":\"address\"}],\"name\":\"setLayerZeroToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_remoteChainId\",\"type\":\"uint16\"},{\"internalType\":\"bytes32\",\"name\":\"_remoteUln\",\"type\":\"bytes32\"}],\"name\":\"setRemoteUln\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_treasury\",\"type\":\"address\"}],\"name\":\"setTreasury\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"name\":\"supportedOutboundProof\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"treasuryContract\",\"outputs\":[{\"internalType\":\"contract ILayerZeroTreasury\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"treasuryNativeFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"treasuryZROFees\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"name\":\"ulnLookup\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_srcChainId\",\"type\":\"uint16\"},{\"internalType\":\"bytes32\",\"name\":\"_lookupHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"_confirmations\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"_data\",\"type\":\"bytes32\"}],\"name\":\"updateHash\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"_srcChainId\",\"type\":\"uint16\"},{\"internalType\":\"address\",\"name\":\"_dstAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_gasLimit\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"_lookupHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"_transactionProof\",\"type\":\"bytes\"}],\"name\":\"validateTransactionProof\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"_type\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"},{\"internalType\":\"address payable\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"withdrawNative\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"withdrawZRO\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"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 anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing 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/UltraLightNode.sol\":\"UltraLightNode\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":30000},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.7.0;\\n\\nimport \\\"../utils/Context.sol\\\";\\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 address msgSender = _msgSender();\\n _owner = msgSender;\\n emit OwnershipTransferred(address(0), msgSender);\\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 called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n _;\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions anymore. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby removing any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n emit OwnershipTransferred(_owner, address(0));\\n _owner = 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 emit OwnershipTransferred(_owner, newOwner);\\n _owner = newOwner;\\n }\\n}\\n\",\"keccak256\":\"0x549c5343ad9f7e3f38aa4c4761854403502574bbc15b822db2ce892ff9b79da7\",\"license\":\"MIT\"},\"@openzeppelin/contracts/math/SafeMath.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.7.0;\\n\\n/**\\n * @dev Wrappers over Solidity's arithmetic operations with added overflow\\n * checks.\\n *\\n * Arithmetic operations in Solidity wrap on overflow. This can easily result\\n * in bugs, because programmers usually assume that an overflow raises an\\n * error, which is the standard behavior in high level programming languages.\\n * `SafeMath` restores this intuition by reverting the transaction when an\\n * operation overflows.\\n *\\n * Using this library instead of the unchecked operations eliminates an entire\\n * class of bugs, so it's recommended to use it always.\\n */\\nlibrary SafeMath {\\n /**\\n * @dev Returns the addition of two unsigned integers, with an overflow flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n uint256 c = a + b;\\n if (c < a) return (false, 0);\\n return (true, c);\\n }\\n\\n /**\\n * @dev Returns the substraction of two unsigned integers, with an overflow flag.\\n *\\n * _Available since v3.4._\\n */\\n function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n if (b > a) return (false, 0);\\n return (true, a - b);\\n }\\n\\n /**\\n * @dev Returns the multiplication of two unsigned integers, with an overflow flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\\n // benefit is lost if 'b' is also tested.\\n // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522\\n if (a == 0) return (true, 0);\\n uint256 c = a * b;\\n if (c / a != b) return (false, 0);\\n return (true, c);\\n }\\n\\n /**\\n * @dev Returns the division of two unsigned integers, with a division by zero flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n if (b == 0) return (false, 0);\\n return (true, a / b);\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.\\n *\\n * _Available since v3.4._\\n */\\n function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {\\n if (b == 0) return (false, 0);\\n return (true, a % b);\\n }\\n\\n /**\\n * @dev Returns the addition of two unsigned integers, reverting on\\n * overflow.\\n *\\n * Counterpart to Solidity's `+` operator.\\n *\\n * Requirements:\\n *\\n * - Addition cannot overflow.\\n */\\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\\n uint256 c = a + b;\\n require(c >= a, \\\"SafeMath: addition overflow\\\");\\n return c;\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, reverting on\\n * overflow (when the result is negative).\\n *\\n * Counterpart to Solidity's `-` operator.\\n *\\n * Requirements:\\n *\\n * - Subtraction cannot overflow.\\n */\\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\\n require(b <= a, \\\"SafeMath: subtraction overflow\\\");\\n return a - b;\\n }\\n\\n /**\\n * @dev Returns the multiplication of two unsigned integers, reverting on\\n * overflow.\\n *\\n * Counterpart to Solidity's `*` operator.\\n *\\n * Requirements:\\n *\\n * - Multiplication cannot overflow.\\n */\\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\\n if (a == 0) return 0;\\n uint256 c = a * b;\\n require(c / a == b, \\\"SafeMath: multiplication overflow\\\");\\n return c;\\n }\\n\\n /**\\n * @dev Returns the integer division of two unsigned integers, reverting on\\n * division by zero. The result is rounded towards zero.\\n *\\n * Counterpart to Solidity's `/` operator. Note: this function uses a\\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\\n * uses an invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function div(uint256 a, uint256 b) internal pure returns (uint256) {\\n require(b > 0, \\\"SafeMath: division by zero\\\");\\n return a / b;\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\\n * reverting when dividing by zero.\\n *\\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\\n * opcode (which leaves remaining gas untouched) while Solidity uses an\\n * invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function mod(uint256 a, uint256 b) internal pure returns (uint256) {\\n require(b > 0, \\\"SafeMath: modulo by zero\\\");\\n return a % b;\\n }\\n\\n /**\\n * @dev Returns the subtraction of two unsigned integers, reverting with custom message on\\n * overflow (when the result is negative).\\n *\\n * CAUTION: This function is deprecated because it requires allocating memory for the error\\n * message unnecessarily. For custom revert reasons use {trySub}.\\n *\\n * Counterpart to Solidity's `-` operator.\\n *\\n * Requirements:\\n *\\n * - Subtraction cannot overflow.\\n */\\n function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\\n require(b <= a, errorMessage);\\n return a - b;\\n }\\n\\n /**\\n * @dev Returns the integer division of two unsigned integers, reverting with custom message on\\n * division by zero. The result is rounded towards zero.\\n *\\n * CAUTION: This function is deprecated because it requires allocating memory for the error\\n * message unnecessarily. For custom revert reasons use {tryDiv}.\\n *\\n * Counterpart to Solidity's `/` operator. Note: this function uses a\\n * `revert` opcode (which leaves remaining gas untouched) while Solidity\\n * uses an invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\\n require(b > 0, errorMessage);\\n return a / b;\\n }\\n\\n /**\\n * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),\\n * reverting with custom message when dividing by zero.\\n *\\n * CAUTION: This function is deprecated because it requires allocating memory for the error\\n * message unnecessarily. For custom revert reasons use {tryMod}.\\n *\\n * Counterpart to Solidity's `%` operator. This function uses a `revert`\\n * opcode (which leaves remaining gas untouched) while Solidity uses an\\n * invalid opcode to revert (consuming all remaining gas).\\n *\\n * Requirements:\\n *\\n * - The divisor cannot be zero.\\n */\\n function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {\\n require(b > 0, errorMessage);\\n return a % b;\\n }\\n}\\n\",\"keccak256\":\"0xe22a1fc7400ae196eba2ad1562d0386462b00a6363b742d55a2fd2021a58586f\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.7.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20 {\\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 `recipient`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, uint256 amount) external returns (bool);\\n\\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\",\"keccak256\":\"0xbd74f587ab9b9711801baf667db1426e4a03fd2d7f15af33e0e0d0394e7cef76\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/SafeERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.7.0;\\n\\nimport \\\"./IERC20.sol\\\";\\nimport \\\"../../math/SafeMath.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 SafeMath for uint256;\\n using Address for address;\\n\\n function safeTransfer(IERC20 token, address to, uint256 value) internal {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));\\n }\\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 // solhint-disable-next-line max-line-length\\n require((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 function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\\n uint256 newAllowance = token.allowance(address(this), spender).add(value);\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\\n }\\n\\n function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {\\n uint256 newAllowance = token.allowance(address(this), spender).sub(value, \\\"SafeERC20: decreased allowance below zero\\\");\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));\\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 if (returndata.length > 0) { // Return data is optional\\n // solhint-disable-next-line max-line-length\\n require(abi.decode(returndata, (bool)), \\\"SafeERC20: ERC20 operation did not succeed\\\");\\n }\\n }\\n}\\n\",\"keccak256\":\"0xc77dd6233a82c7c6e3dc49da8f3456baa00ecd3ea4dfa9222002a9aebf155dcd\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.7.0;\\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 */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize, which returns 0 for contracts in\\n // construction, since the code is only stored at the end of the\\n // constructor execution.\\n\\n uint256 size;\\n // solhint-disable-next-line no-inline-assembly\\n assembly { size := extcodesize(account) }\\n return size > 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://diligence.consensys.net/posts/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.5.11/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 // solhint-disable-next-line avoid-low-level-calls, avoid-call-value\\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 functionCall(target, data, \\\"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(address target, bytes memory data, string memory errorMessage) 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(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, bytes memory returndata) = target.call{ value: value }(data);\\n return _verifyCallResult(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(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {\\n require(isContract(target), \\\"Address: static call to non-contract\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return _verifyCallResult(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(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {\\n require(isContract(target), \\\"Address: delegate call to non-contract\\\");\\n\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return _verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\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\\n // solhint-disable-next-line no-inline-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}\\n\",\"keccak256\":\"0xf89f005a3d98f7768cdee2583707db0ac725cf567d455751af32ee68132f3db3\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity >=0.6.0 <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 GSN 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 payable) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes memory) {\\n this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0x8d3cb350f04ff49cfb10aef08d87f19dcbaecc8027b0bed12f3275cd12f38cf0\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/ReentrancyGuard.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.7.0;\\n\\n/**\\n * @dev Contract module that helps prevent reentrant calls to a function.\\n *\\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\\n * available, which can be applied to functions to make sure there are no nested\\n * (reentrant) calls to them.\\n *\\n * Note that because there is a single `nonReentrant` guard, functions marked as\\n * `nonReentrant` may not call one another. This can be worked around by making\\n * those functions `private`, and then adding `external` `nonReentrant` entry\\n * points to them.\\n *\\n * TIP: If you would like to learn more about reentrancy and alternative ways\\n * to protect against it, check out our blog post\\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\\n */\\nabstract contract ReentrancyGuard {\\n // Booleans are more expensive than uint256 or any type that takes up a full\\n // word because each write operation emits an extra SLOAD to first read the\\n // slot's contents, replace the bits taken up by the boolean, and then write\\n // back. This is the compiler's defense against contract upgrades and\\n // pointer aliasing, and it cannot be disabled.\\n\\n // The values being non-zero value makes deployment a bit more expensive,\\n // but in exchange the refund on every call to nonReentrant will be lower in\\n // amount. Since refunds are capped to a percentage of the total\\n // transaction's gas, it is best to keep them low in cases like this one, to\\n // increase the likelihood of the full refund coming into effect.\\n uint256 private constant _NOT_ENTERED = 1;\\n uint256 private constant _ENTERED = 2;\\n\\n uint256 private _status;\\n\\n constructor () {\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev Prevents a contract from calling itself, directly or indirectly.\\n * Calling a `nonReentrant` function from another `nonReentrant`\\n * function is not supported. It is possible to prevent this from happening\\n * by making the `nonReentrant` function external, and make it call a\\n * `private` function that does the actual work.\\n */\\n modifier nonReentrant() {\\n // On the first call to nonReentrant, _notEntered will be true\\n require(_status != _ENTERED, \\\"ReentrancyGuard: reentrant call\\\");\\n\\n // Any calls to nonReentrant after this point will fail\\n _status = _ENTERED;\\n\\n _;\\n\\n // By storing the original value once again, a refund is triggered (see\\n // https://eips.ethereum.org/EIPS/eip-2200)\\n _status = _NOT_ENTERED;\\n }\\n}\\n\",\"keccak256\":\"0x1153f6dd334c01566417b8c551122450542a2b75a2bbb379d59a8c320ed6da28\",\"license\":\"MIT\"},\"contracts/UltraLightNode.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\n\\npragma solidity 0.7.6;\\npragma abicoder v2;\\n\\nimport \\\"@openzeppelin/contracts/access/Ownable.sol\\\";\\nimport \\\"@openzeppelin/contracts/math/SafeMath.sol\\\";\\nimport \\\"@openzeppelin/contracts/utils/ReentrancyGuard.sol\\\";\\nimport \\\"@openzeppelin/contracts/token/ERC20/IERC20.sol\\\";\\nimport \\\"@openzeppelin/contracts/token/ERC20/SafeERC20.sol\\\";\\n\\nimport \\\"./interfaces/ILayerZeroValidationLibrary.sol\\\";\\nimport \\\"./interfaces/ILayerZeroMessagingLibrary.sol\\\";\\nimport \\\"./interfaces/ILayerZeroReceiver.sol\\\";\\nimport \\\"./interfaces/ILayerZeroRelayer.sol\\\";\\nimport \\\"./interfaces/ILayerZeroTreasury.sol\\\";\\nimport \\\"./interfaces/ILayerZeroOracle.sol\\\";\\nimport \\\"./interfaces/ILayerZeroUltraLightNodeV1.sol\\\";\\nimport \\\"./interfaces/ILayerZeroEndpoint.sol\\\";\\n\\ncontract UltraLightNode is ILayerZeroMessagingLibrary, ILayerZeroUltraLightNodeV1, ReentrancyGuard, Ownable {\\n using SafeERC20 for IERC20;\\n using SafeMath for uint;\\n\\n struct BlockData {\\n uint confirmations;\\n bytes32 data;\\n }\\n\\n // Application config\\n uint public constant CONFIG_TYPE_INBOUND_PROOF_LIBRARY_VERSION = 1;\\n uint public constant CONFIG_TYPE_INBOUND_BLOCK_CONFIRMATIONS = 2;\\n uint public constant CONFIG_TYPE_RELAYER = 3;\\n uint public constant CONFIG_TYPE_OUTBOUND_PROOF_TYPE = 4;\\n uint public constant CONFIG_TYPE_OUTBOUND_BLOCK_CONFIRMATIONS = 5;\\n uint public constant CONFIG_TYPE_ORACLE = 6;\\n\\n struct ApplicationConfiguration {\\n uint16 inboundProofLibraryVersion;\\n uint64 inboundBlockConfirmations;\\n address relayer;\\n uint16 outboundProofType;\\n uint64 outboundBlockConfirmations;\\n address oracle;\\n }\\n\\n // Token and Contracts\\n IERC20 public layerZeroToken;\\n ILayerZeroTreasury public treasuryContract;\\n\\n // Fee management\\n uint public constant BP_DENOMINATOR = 10000;\\n // treasury and relayer share the protocol fee, either in native token or ZRO\\n uint8 public constant WITHDRAW_TYPE_TREASURY_PROTOCOL_FEES = 0;\\n uint8 public constant WITHDRAW_TYPE_ORACLE_QUOTED_FEES = 1; // quoted fee refers to the fee in block relaying\\n uint8 public constant WITHDRAW_TYPE_RELAYER_QUOTED_FEES = 2; //quoted fee refers the fee in msg relaying\\n\\n mapping(address => uint) public oracleQuotedFees;\\n mapping(address => uint) public relayerQuotedFees;\\n uint public treasuryNativeFees;\\n uint public treasuryZROFees;\\n\\n // User Application\\n mapping(address => mapping(uint16 => ApplicationConfiguration)) public appConfig; // app address => chainId => config\\n mapping(uint16 => ApplicationConfiguration) public defaultAppConfig; // default UA settings if no version specified\\n mapping(uint16 => mapping(uint16 => bytes)) public defaultAdapterParams;\\n\\n // Validation\\n mapping(uint16 => mapping(uint16 => address)) public inboundProofLibrary; // chainId => library Id => inboundProofLibrary contract\\n mapping(uint16 => uint16) public maxInboundProofLibrary; // chainId => inboundProofLibrary\\n mapping(uint16 => mapping(uint16 => bool)) public supportedOutboundProof; // chainId => outboundProofType => enabled\\n mapping(uint16 => uint) public chainAddressSizeMap;\\n mapping(address => mapping(uint16 => mapping(bytes32 => BlockData))) public hashLookup;\\n mapping(uint16 => bytes32) public ulnLookup; // remote ulns\\n\\n ILayerZeroEndpoint public immutable endpoint;\\n\\n // Events\\n event AppConfigUpdated(address userApplication, uint configType, bytes newConfig);\\n event AddInboundProofLibraryForChain(uint16 chainId, address lib);\\n event EnableSupportedOutboundProof(uint16 chainId, uint16 proofType);\\n event HashReceived(uint16 srcChainId, address oracle, uint confirmations, bytes32 blockhash);\\n event Packet(uint16 chainId, bytes payload);\\n event RelayerParams(uint16 chainId, uint64 nonce, uint16 outboundProofType, bytes adapterParams);\\n event SetChainAddressSize(uint16 chainId, uint size);\\n event SetDefaultConfigForChainId(\\n uint16 chainId,\\n uint16 inboundProofLib,\\n uint64 inboundBlockConfirm,\\n address relayer,\\n uint16 outboundProofType,\\n uint16 outboundBlockConfirm,\\n address oracle\\n );\\n event SetDefaultAdapterParamsForChainId(uint16 chainId, uint16 proofType, bytes adapterParams);\\n event SetLayerZeroToken(address tokenAddress);\\n event SetRelayerFeeContract(address relayerFeeContract);\\n event SetRemoteUln(uint16 chainId, bytes32 uln);\\n event SetTreasury(address treasuryAddress);\\n event WithdrawZRO(address _msgSender, address _to, uint _amount);\\n event WithdrawNative(uint8 _type, address _owner, address _msgSender, address _to, uint _amount);\\n\\n constructor(address _endpoint) {\\n require(_endpoint != address(0x0), \\\"LayerZero: endpoint cannot be zero address\\\");\\n endpoint = ILayerZeroEndpoint(_endpoint);\\n }\\n\\n // only the endpoint can call SEND() and setConfig()\\n modifier onlyEndpoint() {\\n require(address(endpoint) == msg.sender, \\\"LayerZero: only endpoint\\\");\\n _;\\n }\\n\\n //----------------------------------------------------------------------------------\\n // PROTOCOL\\n\\n // This function completes delivery of a LayerZero message.\\n //\\n // In order to deliver the message, this function:\\n // (a) takes the _transactionProof submitted by UA's relayer, and\\n // (b) retrieve UA's validation library\\n // (c) takes the _blockData submitted by the UA's oracle given the their configuration (and blockConfirmations),\\n // (d) decodes using UA's validation library using (a) and (c)\\n // then, this functions asserts that\\n // (e) the payload originated from the known Ultra Light Node from source chain, and\\n // (f) the _dstAddress the specified destination contract\\n function validateTransactionProof(\\n uint16 _srcChainId,\\n address _dstAddress,\\n uint _gasLimit,\\n bytes32 _lookupHash,\\n bytes calldata _transactionProof\\n ) external override {\\n // retrieve UA's configuration using the _dstAddress from arguments.\\n ApplicationConfiguration memory uaConfig = getAppConfig(_srcChainId, _dstAddress);\\n\\n // (a) assert that the caller == UA's relayer\\n require(uaConfig.relayer == msg.sender, \\\"LayerZero: invalid relayer\\\");\\n\\n LayerZeroPacket.Packet memory _packet;\\n {\\n // (b) retrieve UA's validation library\\n address inboundProofLib = inboundProofLibrary[_srcChainId][uaConfig.inboundProofLibraryVersion];\\n\\n // (c) assert that the data submitted by UA's oracle have no fewer confirmations than UA's configuration\\n BlockData storage blockData = hashLookup[uaConfig.oracle][_srcChainId][_lookupHash];\\n require(\\n blockData.confirmations >= uaConfig.inboundBlockConfirmations,\\n \\\"LayerZero: not enough block confirmations\\\"\\n );\\n\\n // (d) decode\\n uint remoteAddressSize = chainAddressSizeMap[_srcChainId];\\n _packet = ILayerZeroValidationLibrary(inboundProofLib).validateProof(\\n blockData.data,\\n _transactionProof,\\n remoteAddressSize\\n );\\n }\\n\\n // (e) assert that the packet was emitted by the source ultra light node\\n require(ulnLookup[_srcChainId] == _packet.ulnAddress, \\\"LayerZero: _packet.ulnAddress is invalid\\\");\\n\\n // (f) assert that the _packet._dstAddress == the _dstAddress specified by the UAs message\\n require(_packet.dstAddress == _dstAddress, \\\"LayerZero: invalid dst address\\\");\\n\\n // publish the payload and _gasLimit to the endpoint for calling lzReceive at _dstAddress\\n endpoint.receivePayload(\\n _packet.srcChainId,\\n _packet.srcAddress,\\n _packet.dstAddress,\\n _packet.nonce,\\n _gasLimit,\\n _packet.payload\\n );\\n }\\n\\n // Called (by the Endpoint) with the information required to send a LayerZero message for a User Application.\\n // This function:\\n // (a) pays the protocol (native token or ZRO), oracle (native token) and relayer (native token) for their roles in sending the message.\\n // (b) generates the message payload and emits events of the message and adapterParams\\n // (c) notifies the oracle\\n function send(\\n address _ua,\\n uint64 _nonce,\\n uint16 _chainId,\\n bytes calldata _destination,\\n bytes calldata _payload,\\n address payable _refundAddress,\\n address _zroPaymentAddress,\\n bytes calldata _adapterParams\\n ) external payable override onlyEndpoint {\\n ApplicationConfiguration memory uaConfig = getAppConfig(_chainId, _ua);\\n address ua = _ua;\\n uint64 nonce = _nonce;\\n uint16 chainId = _chainId;\\n require(ulnLookup[chainId] != bytes32(0), \\\"LayerZero: chainId does not exist\\\");\\n\\n uint totalNativeFee;\\n {\\n uint oracleFee;\\n // (a - 1), pay the oracle\\n {\\n oracleFee = ILayerZeroOracle(uaConfig.oracle).getPrice(chainId, uaConfig.outboundProofType);\\n oracleQuotedFees[uaConfig.oracle] = oracleQuotedFees[uaConfig.oracle].add(oracleFee);\\n }\\n\\n // (a - 2), pay the relayer\\n {\\n uint payloadSize = _payload.length;\\n ILayerZeroRelayer relayer = ILayerZeroRelayer(uaConfig.relayer);\\n if (_adapterParams.length == 0) {\\n bytes memory defaultAdaptorParam = defaultAdapterParams[chainId][uaConfig.outboundProofType];\\n totalNativeFee = relayer.getPrice(\\n chainId,\\n uaConfig.outboundProofType,\\n ua,\\n payloadSize,\\n defaultAdaptorParam\\n );\\n relayer.notifyRelayer(chainId, uaConfig.outboundProofType, defaultAdaptorParam);\\n } else {\\n totalNativeFee = relayer.getPrice(\\n chainId,\\n uaConfig.outboundProofType,\\n ua,\\n payloadSize,\\n _adapterParams\\n );\\n relayer.notifyRelayer(chainId, uaConfig.outboundProofType, _adapterParams);\\n }\\n relayerQuotedFees[uaConfig.relayer] = relayerQuotedFees[uaConfig.relayer].add(totalNativeFee); // totalNativeFee == relayerFee here\\n\\n // emit the param events\\n emit RelayerParams(chainId, nonce, uaConfig.outboundProofType, _adapterParams);\\n }\\n\\n // (a - 3), pay the protocol\\n {\\n // if no ZRO token or not specifying a payment address, pay in native token\\n bool payInNative = _zroPaymentAddress == address(0x0) || address(layerZeroToken) == address(0x0);\\n uint protocolFee = treasuryContract.getFees(!payInNative, totalNativeFee, oracleFee); // totalNativeFee == relayerFee here\\n\\n if (protocolFee > 0) {\\n if (payInNative) {\\n treasuryNativeFees = treasuryNativeFees.add(protocolFee);\\n totalNativeFee = totalNativeFee.add(protocolFee);\\n } else {\\n // zro payment address must equal the _ua or the tx.origin otherwise the transaction reverts\\n require(\\n _zroPaymentAddress == ua || _zroPaymentAddress == tx.origin,\\n \\\"LayerZero: must be paid by sender or origin\\\"\\n );\\n\\n // transfer the LayerZero token to this contract from the payee\\n layerZeroToken.safeTransferFrom(_zroPaymentAddress, address(this), protocolFee);\\n\\n treasuryZROFees = treasuryZROFees.add(protocolFee);\\n }\\n }\\n }\\n\\n totalNativeFee = totalNativeFee.add(oracleFee);\\n }\\n\\n // (b) emit payload and the adapterParams if any\\n {\\n bytes memory encodedPayload = abi.encodePacked(nonce, ua, _destination, _payload);\\n emit Packet(chainId, encodedPayload);\\n // (c) notify the oracle\\n ILayerZeroOracle(uaConfig.oracle).notifyOracle(\\n chainId,\\n uaConfig.outboundProofType,\\n uaConfig.outboundBlockConfirmations\\n );\\n }\\n\\n require(totalNativeFee <= msg.value, \\\"LayerZero: not enough native for fees\\\");\\n // refund if they send too much\\n uint amount = msg.value.sub(totalNativeFee);\\n if (amount > 0) {\\n (bool success, ) = _refundAddress.call{value: amount}(\\\"\\\");\\n require(success, \\\"LayerZero: failed to refund\\\");\\n }\\n }\\n\\n // Can be called by any address to update a block header\\n // can only upload new block data or the same block data with more confirmations\\n function updateHash(uint16 _srcChainId, bytes32 _lookupHash, uint _confirmations, bytes32 _data) external override {\\n // this function may revert with a default message if the oracle address is not an ILayerZeroOracle\\n BlockData storage bd = hashLookup[msg.sender][_srcChainId][_lookupHash];\\n // if it has a record, requires a larger confirmation.\\n require(\\n bd.confirmations < _confirmations,\\n \\\"LayerZero: oracle data can only update if it has more confirmations\\\"\\n );\\n\\n // set the new information into storage\\n bd.confirmations = _confirmations;\\n bd.data = _data;\\n\\n emit HashReceived(_srcChainId, msg.sender, _confirmations, _lookupHash);\\n }\\n\\n //----------------------------------------------------------------------------------\\n // Other Library Interfaces\\n\\n // default to DEFAULT setting if ZERO value\\n function getAppConfig(\\n uint16 _chainId,\\n address userApplicationAddress\\n ) public view returns (ApplicationConfiguration memory) {\\n ApplicationConfiguration memory config = appConfig[userApplicationAddress][_chainId];\\n ApplicationConfiguration storage defaultConfig = defaultAppConfig[_chainId];\\n\\n if (config.inboundProofLibraryVersion == 0) {\\n config.inboundProofLibraryVersion = defaultConfig.inboundProofLibraryVersion;\\n }\\n\\n if (config.inboundBlockConfirmations == 0) {\\n config.inboundBlockConfirmations = defaultConfig.inboundBlockConfirmations;\\n }\\n\\n if (config.relayer == address(0x0)) {\\n config.relayer = defaultConfig.relayer;\\n }\\n\\n if (config.outboundProofType == 0) {\\n config.outboundProofType = defaultConfig.outboundProofType;\\n }\\n\\n if (config.outboundBlockConfirmations == 0) {\\n config.outboundBlockConfirmations = defaultConfig.outboundBlockConfirmations;\\n }\\n\\n if (config.oracle == address(0x0)) {\\n config.oracle = defaultConfig.oracle;\\n }\\n\\n return config;\\n }\\n\\n function setConfig(\\n uint16 chainId,\\n address _ua,\\n uint _configType,\\n bytes calldata _config\\n ) external override onlyEndpoint {\\n ApplicationConfiguration storage uaConfig = appConfig[_ua][chainId];\\n if (_configType == CONFIG_TYPE_INBOUND_PROOF_LIBRARY_VERSION) {\\n uint16 inboundProofLibraryVersion = abi.decode(_config, (uint16));\\n require(\\n inboundProofLibraryVersion <= maxInboundProofLibrary[chainId],\\n \\\"LayerZero: invalid inbound proof library version\\\"\\n );\\n uaConfig.inboundProofLibraryVersion = inboundProofLibraryVersion;\\n } else if (_configType == CONFIG_TYPE_INBOUND_BLOCK_CONFIRMATIONS) {\\n uint64 blockConfirmations = abi.decode(_config, (uint64));\\n uaConfig.inboundBlockConfirmations = blockConfirmations;\\n } else if (_configType == CONFIG_TYPE_RELAYER) {\\n address relayer = abi.decode(_config, (address));\\n uaConfig.relayer = relayer;\\n } else if (_configType == CONFIG_TYPE_OUTBOUND_PROOF_TYPE) {\\n uint16 outboundProofType = abi.decode(_config, (uint16));\\n require(\\n supportedOutboundProof[chainId][outboundProofType] || outboundProofType == 0,\\n \\\"LayerZero: invalid outbound proof type\\\"\\n );\\n uaConfig.outboundProofType = outboundProofType;\\n } else if (_configType == CONFIG_TYPE_OUTBOUND_BLOCK_CONFIRMATIONS) {\\n uint64 blockConfirmations = abi.decode(_config, (uint64));\\n uaConfig.outboundBlockConfirmations = blockConfirmations;\\n } else if (_configType == CONFIG_TYPE_ORACLE) {\\n address oracle = abi.decode(_config, (address));\\n uaConfig.oracle = oracle;\\n } else {\\n revert(\\\"LayerZero: Invalid config type\\\");\\n }\\n\\n emit AppConfigUpdated(_ua, _configType, _config);\\n }\\n\\n function getConfig(\\n uint16 _chainId,\\n address userApplicationAddress,\\n uint _configType\\n ) external view override returns (bytes memory) {\\n ApplicationConfiguration storage uaConfig = appConfig[userApplicationAddress][_chainId];\\n\\n if (_configType == CONFIG_TYPE_INBOUND_PROOF_LIBRARY_VERSION) {\\n if (uaConfig.inboundProofLibraryVersion == 0) {\\n return abi.encode(defaultAppConfig[_chainId].inboundProofLibraryVersion);\\n }\\n return abi.encode(uaConfig.inboundProofLibraryVersion);\\n } else if (_configType == CONFIG_TYPE_INBOUND_BLOCK_CONFIRMATIONS) {\\n if (uaConfig.inboundBlockConfirmations == 0) {\\n return abi.encode(defaultAppConfig[_chainId].inboundBlockConfirmations);\\n }\\n return abi.encode(uaConfig.inboundBlockConfirmations);\\n } else if (_configType == CONFIG_TYPE_RELAYER) {\\n if (uaConfig.relayer == address(0x0)) {\\n return abi.encode(defaultAppConfig[_chainId].relayer);\\n }\\n return abi.encode(uaConfig.relayer);\\n } else if (_configType == CONFIG_TYPE_OUTBOUND_PROOF_TYPE) {\\n if (uaConfig.outboundProofType == 0) {\\n return abi.encode(defaultAppConfig[_chainId].outboundProofType);\\n }\\n return abi.encode(uaConfig.outboundProofType);\\n } else if (_configType == CONFIG_TYPE_OUTBOUND_BLOCK_CONFIRMATIONS) {\\n if (uaConfig.outboundBlockConfirmations == 0) {\\n return abi.encode(defaultAppConfig[_chainId].outboundBlockConfirmations);\\n }\\n return abi.encode(uaConfig.outboundBlockConfirmations);\\n } else if (_configType == CONFIG_TYPE_ORACLE) {\\n if (uaConfig.oracle == address(0x0)) {\\n return abi.encode(defaultAppConfig[_chainId].oracle);\\n }\\n return abi.encode(uaConfig.oracle);\\n } else {\\n revert(\\\"LayerZero: Invalid config type\\\");\\n }\\n }\\n\\n // returns the native fee the UA pays to cover fees\\n function estimateFees(\\n uint16 _chainId,\\n address _ua,\\n bytes calldata _payload,\\n bool _payInZRO,\\n bytes calldata _adapterParams\\n ) external view override returns (uint nativeFee, uint zroFee) {\\n uint16 chainId = _chainId;\\n address ua = _ua;\\n uint payloadSize = _payload.length;\\n bytes memory adapterParam = _adapterParams;\\n\\n ApplicationConfiguration memory uaConfig = getAppConfig(chainId, ua);\\n\\n // Relayer Fee\\n uint relayerFee;\\n {\\n if (adapterParam.length == 0) {\\n bytes memory defaultAdaptorParam = defaultAdapterParams[chainId][uaConfig.outboundProofType];\\n relayerFee = ILayerZeroRelayer(uaConfig.relayer).getPrice(\\n chainId,\\n uaConfig.outboundProofType,\\n ua,\\n payloadSize,\\n defaultAdaptorParam\\n );\\n } else {\\n relayerFee = ILayerZeroRelayer(uaConfig.relayer).getPrice(\\n chainId,\\n uaConfig.outboundProofType,\\n ua,\\n payloadSize,\\n adapterParam\\n );\\n }\\n }\\n\\n // Oracle Fee\\n uint oracleFee = ILayerZeroOracle(uaConfig.oracle).getPrice(chainId, uaConfig.outboundProofType);\\n\\n // LayerZero Fee\\n {\\n uint protocolFee = treasuryContract.getFees(_payInZRO, relayerFee, oracleFee);\\n _payInZRO ? zroFee = protocolFee : nativeFee = protocolFee;\\n }\\n\\n // return the sum of fees\\n nativeFee = nativeFee.add(relayerFee).add(oracleFee);\\n }\\n\\n //---------------------------------------------------------------------------\\n // Claim Fees\\n\\n // universal withdraw ZRO token function\\n function withdrawZRO(address _to, uint _amount) external override nonReentrant {\\n require(msg.sender == address(treasuryContract), \\\"LayerZero: only treasury\\\");\\n treasuryZROFees = treasuryZROFees.sub(_amount);\\n layerZeroToken.safeTransfer(_to, _amount);\\n emit WithdrawZRO(msg.sender, _to, _amount);\\n }\\n\\n // universal withdraw native token function.\\n // the source contract should perform all the authentication control\\n // safemath overflow if the amount is not enough\\n function withdrawNative(\\n uint8 _type,\\n address _owner,\\n address payable _to,\\n uint _amount\\n ) external override nonReentrant {\\n if (_type == WITHDRAW_TYPE_TREASURY_PROTOCOL_FEES) {\\n require(msg.sender == address(treasuryContract), \\\"LayerZero:only treasury\\\");\\n treasuryNativeFees = treasuryNativeFees.sub(_amount);\\n } else if (_type == WITHDRAW_TYPE_ORACLE_QUOTED_FEES) {\\n oracleQuotedFees[msg.sender] = oracleQuotedFees[msg.sender].sub(_amount);\\n } else if (_type == WITHDRAW_TYPE_RELAYER_QUOTED_FEES) {\\n relayerQuotedFees[msg.sender] = relayerQuotedFees[msg.sender].sub(_amount);\\n } else {\\n revert(\\\"LayerZero: unsupported withdraw type\\\");\\n }\\n\\n (bool success, ) = _to.call{value: _amount}(\\\"\\\");\\n require(success, \\\"LayerZero: withdraw failed\\\");\\n emit WithdrawNative(_type, _owner, msg.sender, _to, _amount);\\n }\\n\\n //---------------------------------------------------------------------------\\n // Owner calls, configuration only.\\n function setLayerZeroToken(address _layerZeroToken) external onlyOwner {\\n require(_layerZeroToken != address(0x0), \\\"LayerZero: _layerZeroToken cannot be zero address\\\");\\n layerZeroToken = IERC20(_layerZeroToken);\\n emit SetLayerZeroToken(_layerZeroToken);\\n }\\n\\n function setTreasury(address _treasury) external onlyOwner {\\n require(_treasury != address(0x0), \\\"LayerZero: treasury cannot be zero address\\\");\\n treasuryContract = ILayerZeroTreasury(_treasury);\\n emit SetTreasury(_treasury);\\n }\\n\\n function addInboundProofLibraryForChain(uint16 _chainId, address _library) external onlyOwner {\\n require(_library != address(0x0), \\\"LayerZero: library cannot be zero address\\\");\\n require(maxInboundProofLibrary[_chainId] < 65535, \\\"LayerZero: can not add new library\\\");\\n maxInboundProofLibrary[_chainId]++;\\n inboundProofLibrary[_chainId][maxInboundProofLibrary[_chainId]] = _library;\\n emit AddInboundProofLibraryForChain(_chainId, _library);\\n }\\n\\n function enableSupportedOutboundProof(uint16 _chainId, uint16 _proofType) external onlyOwner {\\n supportedOutboundProof[_chainId][_proofType] = true;\\n emit EnableSupportedOutboundProof(_chainId, _proofType);\\n }\\n\\n function setDefaultConfigForChainId(\\n uint16 _chainId,\\n uint16 _inboundProofLibraryVersion,\\n uint64 _inboundBlockConfirmations,\\n address _relayer,\\n uint16 _outboundProofType,\\n uint16 _outboundBlockConfirmations,\\n address _oracle\\n ) external onlyOwner {\\n require(\\n _inboundProofLibraryVersion <= maxInboundProofLibrary[_chainId] && _inboundProofLibraryVersion > 0,\\n \\\"LayerZero: invalid inbound proof library version\\\"\\n );\\n require(_inboundBlockConfirmations > 0, \\\"LayerZero: invalid inbound block confirmation\\\");\\n require(_relayer != address(0x0), \\\"LayerZero: invalid relayer address\\\");\\n require(supportedOutboundProof[_chainId][_outboundProofType], \\\"LayerZero: invalid outbound proof type\\\");\\n require(_outboundBlockConfirmations > 0, \\\"LayerZero: invalid outbound block confirmation\\\");\\n require(_oracle != address(0x0), \\\"LayerZero: invalid oracle address\\\");\\n defaultAppConfig[_chainId] = ApplicationConfiguration(\\n _inboundProofLibraryVersion,\\n _inboundBlockConfirmations,\\n _relayer,\\n _outboundProofType,\\n _outboundBlockConfirmations,\\n _oracle\\n );\\n emit SetDefaultConfigForChainId(\\n _chainId,\\n _inboundProofLibraryVersion,\\n _inboundBlockConfirmations,\\n _relayer,\\n _outboundProofType,\\n _outboundBlockConfirmations,\\n _oracle\\n );\\n }\\n\\n function setDefaultAdapterParamsForChainId(\\n uint16 _chainId,\\n uint16 _proofType,\\n bytes calldata _adapterParams\\n ) external onlyOwner {\\n defaultAdapterParams[_chainId][_proofType] = _adapterParams;\\n emit SetDefaultAdapterParamsForChainId(_chainId, _proofType, _adapterParams);\\n }\\n\\n function setRemoteUln(uint16 _remoteChainId, bytes32 _remoteUln) external onlyOwner {\\n require(ulnLookup[_remoteChainId] == bytes32(0), \\\"LayerZero: remote uln already set\\\");\\n ulnLookup[_remoteChainId] = _remoteUln;\\n emit SetRemoteUln(_remoteChainId, _remoteUln);\\n }\\n\\n function setChainAddressSize(uint16 _chainId, uint _size) external onlyOwner {\\n require(chainAddressSizeMap[_chainId] == 0, \\\"LayerZero: remote chain address size already set\\\");\\n chainAddressSizeMap[_chainId] = _size;\\n emit SetChainAddressSize(_chainId, _size);\\n }\\n\\n //----------------------------------------------------------------------------------\\n // view functions\\n function getBlockHeaderData(\\n address _oracle,\\n uint16 _remoteChainId,\\n bytes32 _lookupHash\\n ) external view returns (BlockData memory blockData) {\\n return hashLookup[_oracle][_remoteChainId][_lookupHash];\\n }\\n\\n function oracleQuotedAmount(address _oracle) external view override returns (uint) {\\n return oracleQuotedFees[_oracle];\\n }\\n\\n function relayerQuotedAmount(address _relayer) external view override returns (uint) {\\n return relayerQuotedFees[_relayer];\\n }\\n}\\n\",\"keccak256\":\"0x56cc605f63c6e3b045e30a9251d3646d45ed119ae16eb9a05c99af500e3fb1a3\",\"license\":\"BUSL-1.1\"},\"contracts/interfaces/ILayerZeroEndpoint.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\n\\npragma solidity >=0.5.0;\\n\\nimport \\\"./ILayerZeroUserApplicationConfig.sol\\\";\\n\\ninterface ILayerZeroEndpoint is ILayerZeroUserApplicationConfig {\\n // @notice send a LayerZero message to the specified address at a LayerZero endpoint.\\n // @param _dstChainId - the destination chain identifier\\n // @param _destination - the address on destination chain (in bytes). address length/format may vary by chains\\n // @param _payload - a custom bytes payload to send to the destination contract\\n // @param _refundAddress - if the source transaction is cheaper than the amount of value passed, refund the additional amount to this address\\n // @param _zroPaymentAddress - the address of the ZRO token holder who would pay for the transaction\\n // @param _adapterParams - parameters for custom functionality. e.g. receive airdropped native gas from the relayer on destination\\n function send(\\n uint16 _dstChainId,\\n bytes calldata _destination,\\n bytes calldata _payload,\\n address payable _refundAddress,\\n address _zroPaymentAddress,\\n bytes calldata _adapterParams\\n ) external payable;\\n\\n // @notice used by the messaging library to publish verified payload\\n // @param _srcChainId - the source chain identifier\\n // @param _srcAddress - the source contract (as bytes) at the source chain\\n // @param _dstAddress - the address on destination chain\\n // @param _nonce - the unbound message ordering nonce\\n // @param _gasLimit - the gas limit for external contract execution\\n // @param _payload - verified payload to send to the destination contract\\n function receivePayload(\\n uint16 _srcChainId,\\n bytes calldata _srcAddress,\\n address _dstAddress,\\n uint64 _nonce,\\n uint _gasLimit,\\n bytes calldata _payload\\n ) external;\\n\\n // @notice get the inboundNonce of a receiver from a source chain which could be EVM or non-EVM chain\\n // @param _srcChainId - the source chain identifier\\n // @param _srcAddress - the source chain contract address\\n function getInboundNonce(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (uint64);\\n\\n // @notice get the outboundNonce from this source chain which, consequently, is always an EVM\\n // @param _srcAddress - the source chain contract address\\n function getOutboundNonce(uint16 _dstChainId, address _srcAddress) external view returns (uint64);\\n\\n // @notice gets a quote in source native gas, for the amount that send() requires to pay for message delivery\\n // @param _dstChainId - the destination chain identifier\\n // @param _userApplication - the user app address on this EVM chain\\n // @param _payload - the custom message to send over LayerZero\\n // @param _payInZRO - if false, user app pays the protocol fee in native token\\n // @param _adapterParam - parameters for the adapter service, e.g. send some dust native token to dstChain\\n function estimateFees(\\n uint16 _dstChainId,\\n address _userApplication,\\n bytes calldata _payload,\\n bool _payInZRO,\\n bytes calldata _adapterParam\\n ) external view returns (uint nativeFee, uint zroFee);\\n\\n // @notice get this Endpoint's immutable source identifier\\n function getChainId() external view returns (uint16);\\n\\n // @notice the interface to retry failed message on this Endpoint destination\\n // @param _srcChainId - the source chain identifier\\n // @param _srcAddress - the source chain contract address\\n // @param _payload - the payload to be retried\\n function retryPayload(uint16 _srcChainId, bytes calldata _srcAddress, bytes calldata _payload) external;\\n\\n // @notice query if any STORED payload (message blocking) at the endpoint.\\n // @param _srcChainId - the source chain identifier\\n // @param _srcAddress - the source chain contract address\\n function hasStoredPayload(uint16 _srcChainId, bytes calldata _srcAddress) external view returns (bool);\\n\\n // @notice query if the _libraryAddress is valid for sending msgs.\\n // @param _userApplication - the user app address on this EVM chain\\n function getSendLibraryAddress(address _userApplication) external view returns (address);\\n\\n // @notice query if the _libraryAddress is valid for receiving msgs.\\n // @param _userApplication - the user app address on this EVM chain\\n function getReceiveLibraryAddress(address _userApplication) external view returns (address);\\n\\n // @notice query if the non-reentrancy guard for send() is on\\n // @return true if the guard is on. false otherwise\\n function isSendingPayload() external view returns (bool);\\n\\n // @notice query if the non-reentrancy guard for receive() is on\\n // @return true if the guard is on. false otherwise\\n function isReceivingPayload() external view returns (bool);\\n\\n // @notice get the configuration of the LayerZero messaging library of the specified version\\n // @param _version - messaging library version\\n // @param _chainId - the chainId for the pending config change\\n // @param _userApplication - the contract address of the user application\\n // @param _configType - type of configuration. every messaging library has its own convention.\\n function getConfig(\\n uint16 _version,\\n uint16 _chainId,\\n address _userApplication,\\n uint _configType\\n ) external view returns (bytes memory);\\n\\n // @notice get the send() LayerZero messaging library version\\n // @param _userApplication - the contract address of the user application\\n function getSendVersion(address _userApplication) external view returns (uint16);\\n\\n // @notice get the lzReceive() LayerZero messaging library version\\n // @param _userApplication - the contract address of the user application\\n function getReceiveVersion(address _userApplication) external view returns (uint16);\\n}\\n\",\"keccak256\":\"0xb6a446c0b622566f8c2e2ae4c32208bcc3f815c5f5657a27fa48d583e31f7b7d\",\"license\":\"BUSL-1.1\"},\"contracts/interfaces/ILayerZeroMessagingLibrary.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\n\\npragma solidity >=0.7.0;\\n\\nimport \\\"./ILayerZeroUserApplicationConfig.sol\\\";\\n\\ninterface ILayerZeroMessagingLibrary {\\n // send(), messages will be inflight.\\n function send(\\n address _userApplication,\\n uint64 _lastNonce,\\n uint16 _chainId,\\n bytes calldata _destination,\\n bytes calldata _payload,\\n address payable refundAddress,\\n address _zroPaymentAddress,\\n bytes calldata _adapterParams\\n ) external payable;\\n\\n // estimate native fee at the send side\\n function estimateFees(\\n uint16 _chainId,\\n address _userApplication,\\n bytes calldata _payload,\\n bool _payInZRO,\\n bytes calldata _adapterParam\\n ) external view returns (uint nativeFee, uint zroFee);\\n\\n //---------------------------------------------------------------------------\\n // setConfig / getConfig are User Application (UA) functions to specify Oracle, Relayer, blockConfirmations, libraryVersion\\n function setConfig(uint16 _chainId, address _userApplication, uint _configType, bytes calldata _config) external;\\n\\n function getConfig(\\n uint16 _chainId,\\n address _userApplication,\\n uint _configType\\n ) external view returns (bytes memory);\\n}\\n\",\"keccak256\":\"0x7fb6d715e58bdad860e194c7b34cc3539fa27df54dbb18d1b41e4da08c064418\",\"license\":\"BUSL-1.1\"},\"contracts/interfaces/ILayerZeroOracle.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\n\\npragma solidity >=0.7.0;\\n\\ninterface ILayerZeroOracle {\\n // @notice query the oracle price for relaying block information to the destination chain\\n // @param _dstChainId the destination endpoint identifier\\n // @param _outboundProofType the proof type identifier to specify the data to be relayed\\n function getPrice(uint16 _dstChainId, uint16 _outboundProofType) external view returns (uint price);\\n\\n // @notice Ultra-Light Node notifies the Oracle of a new block information relaying request\\n // @param _dstChainId the destination endpoint identifier\\n // @param _outboundProofType the proof type identifier to specify the data to be relayed\\n // @param _outboundBlockConfirmations the number of source chain block confirmation needed\\n function notifyOracle(uint16 _dstChainId, uint16 _outboundProofType, uint64 _outboundBlockConfirmations) external;\\n\\n // @notice query if the address is an approved actor for privileges like data submission and fee withdrawal etc.\\n // @param _address the address to be checked\\n function isApproved(address _address) external view returns (bool approved);\\n}\\n\",\"keccak256\":\"0x441295e1bc5d3c4bb021458b45f5e98d7f5a7c79ed53ba72932a261f857c4709\",\"license\":\"BUSL-1.1\"},\"contracts/interfaces/ILayerZeroReceiver.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\n\\npragma solidity >=0.5.0;\\n\\ninterface ILayerZeroReceiver {\\n // @notice LayerZero endpoint will invoke this function to deliver the message on the destination\\n // @param _srcChainId - the source endpoint identifier\\n // @param _srcAddress - the source sending contract address from the source chain\\n // @param _nonce - the ordered message nonce\\n // @param _payload - the signed payload is the UA bytes has encoded to be sent\\n function lzReceive(uint16 _srcChainId, bytes calldata _srcAddress, uint64 _nonce, bytes calldata _payload) external;\\n}\\n\",\"keccak256\":\"0xd1617e455d90d41556bba636bc440627d301ec481de16ff04fbd520333c3c6f3\",\"license\":\"BUSL-1.1\"},\"contracts/interfaces/ILayerZeroRelayer.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\n\\npragma solidity >=0.7.0;\\n\\ninterface ILayerZeroRelayer {\\n // @notice query the relayer price for relaying the payload and its proof to the destination chain\\n // @param _dstChainId - the destination endpoint identifier\\n // @param _outboundProofType - the proof type identifier to specify proof to be relayed\\n // @param _userApplication - the source sending contract address. relayers may apply price discrimination to user apps\\n // @param _payloadSize - the length of the payload. it is an indicator of gas usage for relaying cross-chain messages\\n // @param _adapterParams - optional parameters for extra service plugins, e.g. sending dust tokens at the destination chain\\n function getPrice(\\n uint16 _dstChainId,\\n uint16 _outboundProofType,\\n address _userApplication,\\n uint _payloadSize,\\n bytes calldata _adapterParams\\n ) external view returns (uint price);\\n\\n // @notice Ultra-Light Node notifies the Oracle of a new block information relaying request\\n // @param _dstChainId - the destination endpoint identifier\\n // @param _outboundProofType - the proof type identifier to specify the data to be relayed\\n // @param _adapterParams - optional parameters for extra service plugins, e.g. sending dust tokens at the destination chain\\n function notifyRelayer(uint16 _dstChainId, uint16 _outboundProofType, bytes calldata _adapterParams) external;\\n\\n // @notice query if the address is an approved actor for privileges like data submission and fee withdrawal etc.\\n // @param _address - the address to be checked\\n function isApproved(address _address) external view returns (bool approved);\\n}\\n\",\"keccak256\":\"0x5c7d60823c57e8d7e276689cf1d421b9328b785bcce88718c6222193905e94f5\",\"license\":\"BUSL-1.1\"},\"contracts/interfaces/ILayerZeroTreasury.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\n\\npragma solidity >=0.5.0;\\n\\ninterface ILayerZeroTreasury {\\n function getFees(bool payInZro, uint relayerFee, uint oracleFee) external view returns (uint);\\n}\\n\",\"keccak256\":\"0xf30814340363b85498937030f671adb282435ca16d350ce2210d28b75901a1e4\",\"license\":\"BUSL-1.1\"},\"contracts/interfaces/ILayerZeroUltraLightNodeV1.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\n\\npragma solidity >=0.7.0;\\n\\ninterface ILayerZeroUltraLightNodeV1 {\\n // a Relayer can execute the validateTransactionProof()\\n function validateTransactionProof(\\n uint16 _srcChainId,\\n address _dstAddress,\\n uint _gasLimit,\\n bytes32 _lookupHash,\\n bytes calldata _transactionProof\\n ) external;\\n\\n // an Oracle delivers the block data using updateHash()\\n function updateHash(uint16 _remoteChainId, bytes32 _lookupHash, uint _confirmations, bytes32 _data) external;\\n\\n // can only withdraw the receivable of the msg.sender\\n function withdrawNative(uint8 _type, address _owner, address payable _to, uint _amount) external;\\n\\n function withdrawZRO(address _to, uint _amount) external;\\n\\n // view functions\\n function oracleQuotedAmount(address _oracle) external view returns (uint);\\n\\n function relayerQuotedAmount(address _relayer) external view returns (uint);\\n}\\n\",\"keccak256\":\"0x4675df4f71a0e3b2afb612e00016c7b344c1f138dd51735512b286d728bab446\",\"license\":\"BUSL-1.1\"},\"contracts/interfaces/ILayerZeroUserApplicationConfig.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\n\\npragma solidity >=0.5.0;\\n\\ninterface ILayerZeroUserApplicationConfig {\\n // @notice set the configuration of the LayerZero messaging library of the specified version\\n // @param _version - messaging library version\\n // @param _chainId - the chainId for the pending config change\\n // @param _configType - type of configuration. every messaging library has its own convention.\\n // @param _config - configuration in the bytes. can encode arbitrary content.\\n function setConfig(uint16 _version, uint16 _chainId, uint _configType, bytes calldata _config) external;\\n\\n // @notice set the send() LayerZero messaging library version to _version\\n // @param _version - new messaging library version\\n function setSendVersion(uint16 _version) external;\\n\\n // @notice set the lzReceive() LayerZero messaging library version to _version\\n // @param _version - new messaging library version\\n function setReceiveVersion(uint16 _version) external;\\n\\n // @notice Only when the UA needs to resume the message flow in blocking mode and clear the stored payload\\n // @param _srcChainId - the chainId of the source chain\\n // @param _srcAddress - the contract address of the source contract at the source chain\\n function forceResumeReceive(uint16 _srcChainId, bytes calldata _srcAddress) external;\\n}\\n\",\"keccak256\":\"0xdc7e072cf3064081a8edf4a286ca43ddecc24330f2923d96f416f9d3f6538447\",\"license\":\"BUSL-1.1\"},\"contracts/interfaces/ILayerZeroValidationLibrary.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\n\\npragma solidity >=0.7.0;\\npragma abicoder v2;\\n\\nimport \\\"../proof/utility/LayerZeroPacket.sol\\\";\\n\\ninterface ILayerZeroValidationLibrary {\\n function validateProof(\\n bytes32 blockData,\\n bytes calldata _data,\\n uint _remoteAddressSize\\n ) external returns (LayerZeroPacket.Packet memory packet);\\n}\\n\",\"keccak256\":\"0x0621a318689774296b47c95d8738d0c4e1bc63efe62e524cb3ea36ef1a9da487\",\"license\":\"BUSL-1.1\"},\"contracts/proof/utility/Buffer.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\n\\n// https://github.com/ensdomains/buffer\\n\\npragma solidity ^0.7.0;\\n\\n/**\\n * @dev A library for working with mutable byte buffers in Solidity.\\n *\\n * Byte buffers are mutable and expandable, and provide a variety of primitives\\n * for writing to them. At any time you can fetch a bytes object containing the\\n * current contents of the buffer. The bytes object should not be stored between\\n * operations, as it may change due to resizing of the buffer.\\n */\\nlibrary Buffer {\\n /**\\n * @dev Represents a mutable buffer. Buffers have a current value (buf) and\\n * a capacity. The capacity may be longer than the current value, in\\n * which case it can be extended without the need to allocate more memory.\\n */\\n struct buffer {\\n bytes buf;\\n uint capacity;\\n }\\n\\n /**\\n * @dev Initializes a buffer with an initial capacity.a co\\n * @param buf The buffer to initialize.\\n * @param capacity The number of bytes of space to allocate the buffer.\\n * @return The buffer, for chaining.\\n */\\n function init(buffer memory buf, uint capacity) internal pure returns (buffer memory) {\\n if (capacity % 32 != 0) {\\n capacity += 32 - (capacity % 32);\\n }\\n // Allocate space for the buffer data\\n buf.capacity = capacity;\\n assembly {\\n let ptr := mload(0x40)\\n mstore(buf, ptr)\\n mstore(ptr, 0)\\n mstore(0x40, add(32, add(ptr, capacity)))\\n }\\n return buf;\\n }\\n\\n /**\\n * @dev Writes a byte string to a buffer. Resizes if doing so would exceed\\n * the capacity of the buffer.\\n * @param buf The buffer to append to.\\n * @param off The start offset to write to.\\n * @param rawData The data to append.\\n * @param len The number of bytes to copy.\\n * @return The original buffer, for chaining.\\n */\\n function writeRawBytes(\\n buffer memory buf,\\n uint off,\\n bytes memory rawData,\\n uint offData,\\n uint len\\n ) internal pure returns (buffer memory) {\\n if (off + len > buf.capacity) {\\n resize(buf, max(buf.capacity, len + off) * 2);\\n }\\n\\n uint dest;\\n uint src;\\n assembly {\\n // Memory address of the buffer data\\n let bufptr := mload(buf)\\n // Length of existing buffer data\\n let buflen := mload(bufptr)\\n // Start address = buffer address + offset + sizeof(buffer length)\\n dest := add(add(bufptr, 32), off)\\n // Update buffer length if we're extending it\\n if gt(add(len, off), buflen) {\\n mstore(bufptr, add(len, off))\\n }\\n src := add(rawData, offData)\\n }\\n\\n // Copy word-length chunks while possible\\n for (; len >= 32; len -= 32) {\\n assembly {\\n mstore(dest, mload(src))\\n }\\n dest += 32;\\n src += 32;\\n }\\n\\n // Copy remaining bytes\\n uint mask = 256 ** (32 - len) - 1;\\n assembly {\\n let srcpart := and(mload(src), not(mask))\\n let destpart := and(mload(dest), mask)\\n mstore(dest, or(destpart, srcpart))\\n }\\n\\n return buf;\\n }\\n\\n /**\\n * @dev Writes a byte string to a buffer. Resizes if doing so would exceed\\n * the capacity of the buffer.\\n * @param buf The buffer to append to.\\n * @param off The start offset to write to.\\n * @param data The data to append.\\n * @param len The number of bytes to copy.\\n * @return The original buffer, for chaining.\\n */\\n function write(buffer memory buf, uint off, bytes memory data, uint len) internal pure returns (buffer memory) {\\n require(len <= data.length);\\n\\n if (off + len > buf.capacity) {\\n resize(buf, max(buf.capacity, len + off) * 2);\\n }\\n\\n uint dest;\\n uint src;\\n assembly {\\n // Memory address of the buffer data\\n let bufptr := mload(buf)\\n // Length of existing buffer data\\n let buflen := mload(bufptr)\\n // Start address = buffer address + offset + sizeof(buffer length)\\n dest := add(add(bufptr, 32), off)\\n // Update buffer length if we're extending it\\n if gt(add(len, off), buflen) {\\n mstore(bufptr, add(len, off))\\n }\\n src := add(data, 32)\\n }\\n\\n // Copy word-length chunks while possible\\n for (; len >= 32; len -= 32) {\\n assembly {\\n mstore(dest, mload(src))\\n }\\n dest += 32;\\n src += 32;\\n }\\n\\n // Copy remaining bytes\\n uint mask = 256 ** (32 - len) - 1;\\n assembly {\\n let srcpart := and(mload(src), not(mask))\\n let destpart := and(mload(dest), mask)\\n mstore(dest, or(destpart, srcpart))\\n }\\n\\n return buf;\\n }\\n\\n function append(buffer memory buf, bytes memory data) internal pure returns (buffer memory) {\\n return write(buf, buf.buf.length, data, data.length);\\n }\\n\\n function resize(buffer memory buf, uint capacity) private pure {\\n bytes memory oldbuf = buf.buf;\\n init(buf, capacity);\\n append(buf, oldbuf);\\n }\\n\\n function max(uint a, uint b) private pure returns (uint) {\\n if (a > b) {\\n return a;\\n }\\n return b;\\n }\\n}\\n\",\"keccak256\":\"0x6fb6ba1e85708e05e0f2181136650463faca122318dd16aa6cbaa4f88e48d908\",\"license\":\"BUSL-1.1\"},\"contracts/proof/utility/LayerZeroPacket.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\n\\npragma solidity 0.7.6;\\n\\nimport \\\"./Buffer.sol\\\";\\nimport \\\"@openzeppelin/contracts/math/SafeMath.sol\\\";\\n\\nlibrary LayerZeroPacket {\\n using Buffer for Buffer.buffer;\\n using SafeMath for uint;\\n\\n struct Packet {\\n uint16 srcChainId;\\n uint16 dstChainId;\\n uint64 nonce;\\n address dstAddress;\\n bytes srcAddress;\\n bytes32 ulnAddress;\\n bytes payload;\\n }\\n\\n function getPacket(\\n bytes memory data,\\n uint16 srcChain,\\n uint sizeOfSrcAddress,\\n bytes32 ulnAddress\\n ) internal pure returns (LayerZeroPacket.Packet memory) {\\n uint16 dstChainId;\\n address dstAddress;\\n uint size;\\n uint64 nonce;\\n\\n // The log consists of the destination chain id and then a bytes payload\\n // 0--------------------------------------------31\\n // 0 | total bytes size\\n // 32 | destination chain id\\n // 64 | bytes offset\\n // 96 | bytes array size\\n // 128 | payload\\n assembly {\\n dstChainId := mload(add(data, 32))\\n size := mload(add(data, 96)) /// size of the byte array\\n nonce := mload(add(data, 104)) // offset to convert to uint64 128 is index -24\\n dstAddress := mload(add(data, sub(add(128, sizeOfSrcAddress), 4))) // offset to convert to address 12 -8\\n }\\n\\n Buffer.buffer memory srcAddressBuffer;\\n srcAddressBuffer.init(sizeOfSrcAddress);\\n srcAddressBuffer.writeRawBytes(0, data, 136, sizeOfSrcAddress); // 128 + 8\\n\\n uint payloadSize = size.sub(28).sub(sizeOfSrcAddress);\\n Buffer.buffer memory payloadBuffer;\\n payloadBuffer.init(payloadSize);\\n payloadBuffer.writeRawBytes(0, data, sizeOfSrcAddress.add(156), payloadSize); // 148 + 8\\n return\\n LayerZeroPacket.Packet(\\n srcChain,\\n dstChainId,\\n nonce,\\n dstAddress,\\n srcAddressBuffer.buf,\\n ulnAddress,\\n payloadBuffer.buf\\n );\\n }\\n\\n function getPacketV2(\\n bytes memory data,\\n uint sizeOfSrcAddress,\\n bytes32 ulnAddress\\n ) internal pure returns (LayerZeroPacket.Packet memory) {\\n // packet def: abi.encodePacked(nonce, srcChain, srcAddress, dstChain, dstAddress, payload);\\n // data def: abi.encode(packet) = offset(32) + length(32) + packet\\n // if from EVM\\n // 0 - 31 0 - 31 | total bytes size\\n // 32 - 63 32 - 63 | location\\n // 64 - 95 64 - 95 | size of the packet\\n // 96 - 103 96 - 103 | nonce\\n // 104 - 105 104 - 105 | srcChainId\\n // 106 - P 106 - 125 | srcAddress, where P = 106 + sizeOfSrcAddress - 1,\\n // P+1 - P+2 126 - 127 | dstChainId\\n // P+3 - P+22 128 - 147 | dstAddress\\n // P+23 - END 148 - END | payload\\n\\n // decode the packet\\n uint256 realSize;\\n uint64 nonce;\\n uint16 srcChain;\\n uint16 dstChain;\\n address dstAddress;\\n assembly {\\n realSize := mload(add(data, 64))\\n nonce := mload(add(data, 72)) // 104 - 32\\n srcChain := mload(add(data, 74)) // 106 - 32\\n dstChain := mload(add(data, add(76, sizeOfSrcAddress))) // P + 3 - 32 = 105 + size + 3 - 32 = 76 + size\\n dstAddress := mload(add(data, add(96, sizeOfSrcAddress))) // P + 23 - 32 = 105 + size + 23 - 32 = 96 + size\\n }\\n\\n require(srcChain != 0, \\\"LayerZeroPacket: invalid packet\\\");\\n\\n Buffer.buffer memory srcAddressBuffer;\\n srcAddressBuffer.init(sizeOfSrcAddress);\\n srcAddressBuffer.writeRawBytes(0, data, 106, sizeOfSrcAddress);\\n\\n uint nonPayloadSize = sizeOfSrcAddress.add(32); // 2 + 2 + 8 + 20, 32 + 20 = 52 if sizeOfSrcAddress == 20\\n uint payloadSize = realSize.sub(nonPayloadSize);\\n Buffer.buffer memory payloadBuffer;\\n payloadBuffer.init(payloadSize);\\n payloadBuffer.writeRawBytes(0, data, nonPayloadSize.add(96), payloadSize);\\n\\n return\\n LayerZeroPacket.Packet(\\n srcChain,\\n dstChain,\\n nonce,\\n dstAddress,\\n srcAddressBuffer.buf,\\n ulnAddress,\\n payloadBuffer.buf\\n );\\n }\\n\\n function getPacketV3(\\n bytes memory data,\\n uint sizeOfSrcAddress,\\n bytes32 ulnAddress\\n ) internal pure returns (LayerZeroPacket.Packet memory) {\\n // data def: abi.encodePacked(nonce, srcChain, srcAddress, dstChain, dstAddress, payload);\\n // if from EVM\\n // 0 - 31 0 - 31 | total bytes size\\n // 32 - 39 32 - 39 | nonce\\n // 40 - 41 40 - 41 | srcChainId\\n // 42 - P 42 - 61 | srcAddress, where P = 41 + sizeOfSrcAddress,\\n // P+1 - P+2 62 - 63 | dstChainId\\n // P+3 - P+22 64 - 83 | dstAddress\\n // P+23 - END 84 - END | payload\\n\\n // decode the packet\\n uint256 realSize = data.length;\\n uint nonPayloadSize = sizeOfSrcAddress.add(32); // 2 + 2 + 8 + 20, 32 + 20 = 52 if sizeOfSrcAddress == 20\\n require(realSize >= nonPayloadSize, \\\"LayerZeroPacket: invalid packet\\\");\\n uint payloadSize = realSize - nonPayloadSize;\\n\\n uint64 nonce;\\n uint16 srcChain;\\n uint16 dstChain;\\n address dstAddress;\\n assembly {\\n nonce := mload(add(data, 8)) // 40 - 32\\n srcChain := mload(add(data, 10)) // 42 - 32\\n dstChain := mload(add(data, add(12, sizeOfSrcAddress))) // P + 3 - 32 = 41 + size + 3 - 32 = 12 + size\\n dstAddress := mload(add(data, add(32, sizeOfSrcAddress))) // P + 23 - 32 = 41 + size + 23 - 32 = 32 + size\\n }\\n\\n require(srcChain != 0, \\\"LayerZeroPacket: invalid packet\\\");\\n\\n Buffer.buffer memory srcAddressBuffer;\\n srcAddressBuffer.init(sizeOfSrcAddress);\\n srcAddressBuffer.writeRawBytes(0, data, 42, sizeOfSrcAddress);\\n\\n Buffer.buffer memory payloadBuffer;\\n if (payloadSize > 0) {\\n payloadBuffer.init(payloadSize);\\n payloadBuffer.writeRawBytes(0, data, nonPayloadSize.add(32), payloadSize);\\n }\\n\\n return\\n LayerZeroPacket.Packet(\\n srcChain,\\n dstChain,\\n nonce,\\n dstAddress,\\n srcAddressBuffer.buf,\\n ulnAddress,\\n payloadBuffer.buf\\n );\\n }\\n}\\n\",\"keccak256\":\"0xf96248293a8bb6e9a3908ac7eb78dfb794bb197a5743d377905fe771911d2192\",\"license\":\"BUSL-1.1\"}},\"version\":1}",
1506
+ "bytecode": "0x60a06040523480156200001157600080fd5b50604051620058d0380380620058d08339810160408190526200003491620000df565b6001600090815562000045620000db565b600180546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160a01b038116620000c55760405162461bcd60e51b8152600401620000bc906200010f565b60405180910390fd5b60601b6001600160601b03191660805262000159565b3390565b600060208284031215620000f1578081fd5b81516001600160a01b038116811462000108578182fd5b9392505050565b6020808252602a908201527f4c617965725a65726f3a20656e64706f696e742063616e6e6f74206265207a65604082015269726f206164647265737360b01b606082015260800190565b60805160601c61574a62000186600039806114cc5280612591528061260b52806135a7525061574a6000f3fe60806040526004361061031e5760003560e01c80638317814a116101a5578063d56bc64b116100ec578063ebfa08e911610095578063f2fde38b1161006f578063f2fde38b146108a4578063f47a5feb146108c4578063f8e1734c146108d9578063f9dd8e0f146108f95761031e565b8063ebfa08e914610837578063ed28580a14610864578063f0f44260146108845761031e565b8063e6108a82116100c6578063e6108a82146107d7578063ea216c21146107f7578063eb0d4c31146108175761031e565b8063d56bc64b14610777578063db00719b14610797578063ddfdef5a146107b75761031e565b8063a183608c1161014e578063b77d22ad11610128578063b77d22ad14610708578063b8e7e3e01461071d578063d543c7741461074a5761031e565b8063a183608c146106a6578063a4662222146106c6578063abe685cd146106f35761031e565b80638da5cb5b1161017f5780638da5cb5b1461065c578063904d3b8d14610671578063959f5943146106865761031e565b80638317814a146105fc5780638525b7111461061c57806387078f9f1461063c5761031e565b80634d0ca1b4116102695780635e280f1111610212578063715018a6116101ec578063715018a6146105b25780638140666e146105c75780638207f79d146105dc5761031e565b80635e280f111461055d57806361aa19da14610572578063704316e5146105925761031e565b806352d3b5001161024357806352d3b500146105085780635b5a2678146105285780635c0115311461053d5761031e565b80634d0ca1b4146104c05780634d3a0f7c146104d557806352d2871f146104e85761031e565b80632cfacb06116102cb57806331bd2430116102a557806331bd24301461046857806340a7bb101461047d57806349148c37146104ab5761031e565b80632cfacb06146103ff5780632e9959ec146104145780632f813464146104365761031e565b806318da0011116102fc57806318da00111461039d57806322c10776146103b25780632a819bbf146103d25761031e565b806302e72c631461032357806307b9ca7c14610359578063096607f81461037b575b600080fd5b34801561032f57600080fd5b5061034361033e366004614072565b61090e565b60405161035091906148c8565b60405180910390f35b34801561036557600080fd5b5061036e610920565b6040516103509190614813565b34801561038757600080fd5b5061039b6103963660046145e2565b61093c565b005b3480156103a957600080fd5b5061036e610d24565b3480156103be57600080fd5b5061039b6103cd3660046146ab565b610d40565b3480156103de57600080fd5b506103f26103ed366004614562565b610f53565b60405161035091906148fc565b34801561040b57600080fd5b50610343611015565b34801561042057600080fd5b5061042961101a565b60405161035091906155b5565b34801561044257600080fd5b506104566104513660046142fd565b61101f565b60405161035096959493929190615504565b34801561047457600080fd5b506103436110b0565b34801561048957600080fd5b5061049d610498366004614346565b6110b5565b604051610350929190615592565b3480156104b757600080fd5b506103436114c0565b3480156104cc57600080fd5b506104296114c5565b61039b6104e3366004614131565b6114ca565b3480156104f457600080fd5b506103f26105033660046143f1565b611de2565b34801561051457600080fd5b5061039b610523366004614072565b6121a5565b34801561053457600080fd5b506103436122e1565b34801561054957600080fd5b5061039b610558366004614420565b6122e7565b34801561056957600080fd5b5061036e612609565b34801561057e57600080fd5b5061034361058d366004614072565b61262d565b34801561059e57600080fd5b5061039b6105ad366004614528565b612659565b3480156105be57600080fd5b5061039b6126ee565b3480156105d357600080fd5b506103436127eb565b3480156105e857600080fd5b5061039b6105f7366004614319565b6127f0565b34801561060857600080fd5b5061039b61061736600461457f565b6129bc565b34801561062857600080fd5b5061039b610637366004614106565b612ab9565b34801561064857600080fd5b5061039b61065736600461450b565b612bc5565b34801561066857600080fd5b5061036e612ccc565b34801561067d57600080fd5b50610343612ce8565b34801561069257600080fd5b506103436106a13660046142fd565b612ced565b3480156106b257600080fd5b506103436106c1366004614072565b612cff565b3480156106d257600080fd5b506106e66106e1366004614319565b612d11565b60405161035091906151d4565b3480156106ff57600080fd5b50610343612f20565b34801561071457600080fd5b5061034361101a565b34801561072957600080fd5b5061073d6107383660046142fd565b612f26565b6040516103509190615264565b34801561075657600080fd5b5061076a610765366004614562565b612f3c565b60405161035091906148a5565b34801561078357600080fd5b5061049d6107923660046140c6565b612f5c565b3480156107a357600080fd5b5061036e6107b2366004614562565b612f86565b3480156107c357600080fd5b506104566107d236600461408e565b612fb9565b3480156107e357600080fd5b506103436107f2366004614072565b613055565b34801561080357600080fd5b506103436108123660046142fd565b61307d565b34801561082357600080fd5b5061039b610832366004614562565b61308f565b34801561084357600080fd5b506108576108523660046140c6565b613198565b604051610350919061524d565b34801561087057600080fd5b5061039b61087f36600461450b565b6131f9565b34801561089057600080fd5b5061039b61089f366004614072565b613300565b3480156108b057600080fd5b5061039b6108bf366004614072565b613431565b3480156108d057600080fd5b5061034361359f565b3480156108e557600080fd5b5061039b6108f436600461449a565b6135a5565b34801561090557600080fd5b506104296114c0565b60056020526000908152604090205481565b60025473ffffffffffffffffffffffffffffffffffffffff1681565b610944613939565b73ffffffffffffffffffffffffffffffffffffffff16610962612ccc565b73ffffffffffffffffffffffffffffffffffffffff16146109ca576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61ffff8088166000908152600c60205260409020548116908716118015906109f6575060008661ffff16115b610a1b5760405162461bcd60e51b8152600401610a1290614dfb565b60405180910390fd5b60008567ffffffffffffffff1611610a455760405162461bcd60e51b8152600401610a129061511a565b73ffffffffffffffffffffffffffffffffffffffff8416610a785760405162461bcd60e51b8152600401610a1290614acb565b61ffff8088166000908152600d602090815260408083209387168352929052205460ff16610ab85760405162461bcd60e51b8152600401610a129061490f565b60008261ffff1611610adc5760405162461bcd60e51b8152600401610a1290614fa6565b73ffffffffffffffffffffffffffffffffffffffff8116610b0f5760405162461bcd60e51b8152600401610a1290614c19565b6040518060c001604052808761ffff1681526020018667ffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1681526020018461ffff1681526020018361ffff1667ffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff16815250600960008961ffff1661ffff16815260200190815260200160002060008201518160000160006101000a81548161ffff021916908361ffff16021790555060208201518160000160026101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550604082015181600001600a6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550606082015181600001601e6101000a81548161ffff021916908361ffff16021790555060808201518160010160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060a08201518160010160086101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509050507f45bb8a2b6b05457ff80b84be5bf06f2d05069fa8099fcb9d8e34149654b4d5c287878787878787604051610d1397969594939291906154a7565b60405180910390a150505050505050565b60035473ffffffffffffffffffffffffffffffffffffffff1681565b60026000541415610d98576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260005560ff8416610df15760035473ffffffffffffffffffffffffffffffffffffffff163314610ddc5760405162461bcd60e51b8152600401610a1290614dc4565b600654610de9908261393d565b600655610e7f565b60ff841660011415610e2c5733600090815260046020526040902054610e17908261393d565b33600090815260046020526040902055610e7f565b60ff841660021415610e675733600090815260056020526040902054610e52908261393d565b33600090815260056020526040902055610e7f565b60405162461bcd60e51b8152600401610a1290615003565b60008273ffffffffffffffffffffffffffffffffffffffff1682604051610ea590614792565b60006040518083038185875af1925050503d8060008114610ee2576040519150601f19603f3d011682016040523d82523d6000602084013e610ee7565b606091505b5050905080610f085760405162461bcd60e51b8152600401610a12906149da565b7f163adce0473e267e1db8ecb524c0fcdceda62c3e6f231966bbb252e0104325378585338686604051610f3f9594939291906155c3565b60405180910390a150506001600055505050565b600a6020908152600092835260408084208252918352918190208054825160026001831615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190921691909104601f81018590048502820185019093528281529290919083018282801561100d5780601f10610fe25761010080835404028352916020019161100d565b820191906000526020600020905b815481529060010190602001808311610ff057829003601f168201915b505050505081565b600381565b600181565b6009602052600090815260409020805460019091015461ffff8083169267ffffffffffffffff62010000820481169373ffffffffffffffffffffffffffffffffffffffff6a010000000000000000000084048116947e010000000000000000000000000000000000000000000000000000000000009094049093169291811691680100000000000000009091041686565b600681565b604080516020601f840181900481028201810190925282815260009182918a918a918991859190899089908190840183828082843760009201829052509394506111059250879150869050612d11565b905060008251600014156112825761ffff8681166000908152600a60209081526040808320606087015190941683529281528282208054845160026001831615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190921691909104601f8101849004840282018401909552848152929390918301828280156111da5780601f106111af576101008083540402835291602001916111da565b820191906000526020600020905b8154815290600101906020018083116111bd57829003601f168201915b50505050509050826040015173ffffffffffffffffffffffffffffffffffffffff1663e54a22158885606001518989866040518663ffffffff1660e01b815260040161122a9594939291906153de565b60206040518083038186803b15801561124257600080fd5b505afa158015611256573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061127a9190614677565b91505061131e565b816040015173ffffffffffffffffffffffffffffffffffffffff1663e54a22158784606001518888886040518663ffffffff1660e01b81526004016112cb9594939291906153de565b60206040518083038186803b1580156112e357600080fd5b505afa1580156112f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061131b9190614677565b90505b60a082015160608301516040517f0b4d510700000000000000000000000000000000000000000000000000000000815260009273ffffffffffffffffffffffffffffffffffffffff1691630b4d51079161137c918b91600401615373565b60206040518083038186803b15801561139457600080fd5b505afa1580156113a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113cc9190614677565b90506000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635cbbbd758e85856040518463ffffffff1660e01b815260040161142f939291906148b0565b60206040518083038186803b15801561144757600080fd5b505afa15801561145b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061147f9190614677565b90508c61148f5780995089611494565b809850885b506114ab9050816114a58b8561399a565b9061399a565b98505050505050505097509795505050505050565b600281565b600081565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16331461151f5760405162461bcd60e51b8152600401610a1290614f6f565b600061152b8a8d612d11565b61ffff8b166000908152601060205260409020549091508c908c908c906115645760405162461bcd60e51b8152600401610a1290614bbc565b6000808560a0015173ffffffffffffffffffffffffffffffffffffffff16630b4d51078488606001516040518363ffffffff1660e01b81526004016115aa929190615373565b60206040518083038186803b1580156115c257600080fd5b505afa1580156115d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115fa9190614677565b60a087015173ffffffffffffffffffffffffffffffffffffffff16600090815260046020526040902054909150611631908261399a565b60a087015173ffffffffffffffffffffffffffffffffffffffff1660009081526004602052604090819020919091558601518b908861187b5761ffff8581166000908152600a6020908152604080832060608d015190941683529281528282208054845160026001831615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190921691909104601f8101849004840282018401909552848152929390918301828280156117315780601f1061170657610100808354040283529160200191611731565b820191906000526020600020905b81548152906001019060200180831161171457829003601f168201915b5050505060608b01516040517fe54a221500000000000000000000000000000000000000000000000000000000815292935073ffffffffffffffffffffffffffffffffffffffff85169263e54a22159250611796918a918d90899088906004016153de565b60206040518083038186803b1580156117ae57600080fd5b505afa1580156117c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117e69190614677565b60608a01516040517f3a5fb82a00000000000000000000000000000000000000000000000000000000815291965073ffffffffffffffffffffffffffffffffffffffff841691633a5fb82a91611843918a9190869060040161544f565b600060405180830381600087803b15801561185d57600080fd5b505af1158015611871573d6000803e3d6000fd5b50505050506119a4565b8073ffffffffffffffffffffffffffffffffffffffff1663e54a2215868a606001518a868f8f6040518763ffffffff1660e01b81526004016118c296959493929190615388565b60206040518083038186803b1580156118da57600080fd5b505afa1580156118ee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119129190614677565b60608901516040517f3a5fb82a00000000000000000000000000000000000000000000000000000000815291955073ffffffffffffffffffffffffffffffffffffffff831691633a5fb82a91611971918991908f908f90600401615427565b600060405180830381600087803b15801561198b57600080fd5b505af115801561199f573d6000803e3d6000fd5b505050505b60408089015173ffffffffffffffffffffffffffffffffffffffff166000908152600560205220546119d6908561399a565b6040808a015173ffffffffffffffffffffffffffffffffffffffff166000908152600560205281902091909155606089015190517fb8a7262132db1f61626604a31c3de81dc1a5bb0f1511dfa70d626ab1b88b52c291611a3d9188918a918f908f9061555a565b60405180910390a1506000905073ffffffffffffffffffffffffffffffffffffffff8a161580611a83575060025473ffffffffffffffffffffffffffffffffffffffff16155b6003546040517f5cbbbd7500000000000000000000000000000000000000000000000000000000815291925060009173ffffffffffffffffffffffffffffffffffffffff90911690635cbbbd7590611ae490851590889088906004016148b0565b60206040518083038186803b158015611afc57600080fd5b505afa158015611b10573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b349190614677565b90508015611c04578115611b6357600654611b4f908261399a565b600655611b5c848261399a565b9350611c04565b8673ffffffffffffffffffffffffffffffffffffffff168b73ffffffffffffffffffffffffffffffffffffffff161480611bb2575073ffffffffffffffffffffffffffffffffffffffff8b1632145b611bce5760405162461bcd60e51b8152600401610a1290614b5f565b600254611bf39073ffffffffffffffffffffffffffffffffffffffff168c30846139f4565b600754611c00908261399a565b6007555b50611c119050828261399a565b915050600083858f8f8f8f604051602001611c3196959493929190614795565b60405160208183030381529060405290507fe8d23d927749ec8e512eb885679c2977d57068839d8cca1a85685dbbea0648f68382604051611c739291906152e8565b60405180910390a160a0860151606087015160808801516040517f6653057900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90931692636653057992611cdd92889260040161547f565b600060405180830381600087803b158015611cf757600080fd5b505af1158015611d0b573d6000803e3d6000fd5b505050505034811115611d305760405162461bcd60e51b8152600401610a1290614a11565b6000611d3c348361393d565b90508015611dcf5760008a73ffffffffffffffffffffffffffffffffffffffff1682604051611d6a90614792565b60006040518083038185875af1925050503d8060008114611da7576040519150601f19603f3d011682016040523d82523d6000602084013e611dac565b606091505b5050905080611dcd5760405162461bcd60e51b8152600401610a1290614b28565b505b5050505050505050505050505050505050565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260086020908152604080832061ffff8716845290915290206060906001831415611e8357805461ffff16611e6d5761ffff808616600090815260096020908152604091829020549151611e5693929092169101615264565b60405160208183030381529060405291505061219e565b8054604051611e569161ffff1690602001615264565b6002831415611ef957805462010000900467ffffffffffffffff16611ed75761ffff8516600090815260096020908152604091829020549151611e569262010000900467ffffffffffffffff1691016155a0565b8054604051611e569162010000900467ffffffffffffffff16906020016155a0565b6003831415611fab5780546a0100000000000000000000900473ffffffffffffffffffffffffffffffffffffffff16611f755761ffff8516600090815260096020908152604091829020549151611e56926a0100000000000000000000900473ffffffffffffffffffffffffffffffffffffffff169101614813565b8054604051611e56916a0100000000000000000000900473ffffffffffffffffffffffffffffffffffffffff1690602001614813565b60048314156120645780547e01000000000000000000000000000000000000000000000000000000000000900461ffff1661202c5761ffff808616600090815260096020908152604091829020549151611e56937e010000000000000000000000000000000000000000000000000000000000009093049092169101615264565b8054604051611e56917e01000000000000000000000000000000000000000000000000000000000000900461ffff1690602001615264565b60058314156120d157600181015467ffffffffffffffff166120b25761ffff8516600090815260096020908152604091829020600101549151611e569267ffffffffffffffff1691016155a0565b6001810154604051611e569167ffffffffffffffff16906020016155a0565b600683141561218657600181015468010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1661214f5761ffff8516600090815260096020908152604091829020600101549151611e569268010000000000000000900473ffffffffffffffffffffffffffffffffffffffff169101614813565b6001810154604051611e569168010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1690602001614813565b60405162461bcd60e51b8152600401610a12906149a3565b9392505050565b6121ad613939565b73ffffffffffffffffffffffffffffffffffffffff166121cb612ccc565b73ffffffffffffffffffffffffffffffffffffffff1614612233576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff81166122665760405162461bcd60e51b8152600401610a1290614a6e565b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83161790556040517f33d644987381deff4408951d55afa136f124e22a7810b163b2aaa3ebef770f64906122d6908390614813565b60405180910390a150565b60065481565b60006122f38787612d11565b604081015190915073ffffffffffffffffffffffffffffffffffffffff16331461232f5760405162461bcd60e51b8152600401610a1290614cad565b612337613e26565b61ffff8089166000818152600b60209081526040808320875190951683529381528382205460a087015173ffffffffffffffffffffffffffffffffffffffff9081168452600f83528584209484529382528483208a84528252939091209085015181549290931692909167ffffffffffffffff90911611156123cb5760405162461bcd60e51b8152600401610a1290615177565b61ffff8a166000908152600e60205260409081902054600183015491517fb71e0f71000000000000000000000000000000000000000000000000000000008152909173ffffffffffffffffffffffffffffffffffffffff85169163b71e0f719161243d918b908b9087906004016148d1565b600060405180830381600087803b15801561245757600080fd5b505af115801561246b573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526124b19190810190614221565b60a081015161ffff8d166000908152601060205260409020549195501492506124ef9150505760405162461bcd60e51b8152600401610a1290615060565b8673ffffffffffffffffffffffffffffffffffffffff16816060015173ffffffffffffffffffffffffffffffffffffffff161461253e5760405162461bcd60e51b8152600401610a1290614c76565b80516080820151606083015160408085015160c086015191517fc2fa481300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169563c2fa4813956125cd959194909391928e9190600401615305565b600060405180830381600087803b1580156125e757600080fd5b505af11580156125fb573d6000803e3d6000fd5b505050505050505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600460205260409020545b919050565b336000908152600f6020908152604080832061ffff88168452825280832086845290915290208054831161269f5760405162461bcd60e51b8152600401610a1290614d41565b828155600181018290556040517fc5e97f049604c4d8626704341240f021a22cee0d8b66ec306a45344be67733a0906126df90879033908790899061529d565b60405180910390a15050505050565b6126f6613939565b73ffffffffffffffffffffffffffffffffffffffff16612714612ccc565b73ffffffffffffffffffffffffffffffffffffffff161461277c576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60015460405160009173ffffffffffffffffffffffffffffffffffffffff16907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b600481565b6127f8613939565b73ffffffffffffffffffffffffffffffffffffffff16612816612ccc565b73ffffffffffffffffffffffffffffffffffffffff161461287e576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff81166128b15760405162461bcd60e51b8152600401610a1290614ce4565b61ffff8281166000908152600c60205260409020548116106128e55760405162461bcd60e51b8152600401610a1290614f12565b61ffff8083166000908152600c60209081526040808320805480861660010186167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00009091161790819055600b835281842094168352929052819020805473ffffffffffffffffffffffffffffffffffffffff84167fffffffffffffffffffffffff0000000000000000000000000000000000000000909116179055517f802d55279d51813cb7a9a98e8fd2d7bec5346cb830901c11b85d1650cb857e9a906129b09084908490615273565b60405180910390a15050565b6129c4613939565b73ffffffffffffffffffffffffffffffffffffffff166129e2612ccc565b73ffffffffffffffffffffffffffffffffffffffff1614612a4a576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61ffff8085166000908152600a60209081526040808320938716835292905220612a75908383613e64565b507f4a5695eee2a74d548d5f5c485a3de99ace99e3b664c8e30a90f49be6ebb5493284848484604051612aab9493929190615427565b60405180910390a150505050565b60026000541415612b11576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260005560035473ffffffffffffffffffffffffffffffffffffffff163314612b4d5760405162461bcd60e51b8152600401610a129061496c565b600754612b5a908261393d565b600755600254612b819073ffffffffffffffffffffffffffffffffffffffff168383613a8f565b7f3a20c8c3cd1848485ae8261a52398bb9b26f195b717306b3cf7f058e62c095d5338383604051612bb493929190614834565b60405180910390a150506001600055565b612bcd613939565b73ffffffffffffffffffffffffffffffffffffffff16612beb612ccc565b73ffffffffffffffffffffffffffffffffffffffff1614612c53576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61ffff82166000908152600e602052604090205415612c845760405162461bcd60e51b8152600401610a12906150bd565b61ffff82166000908152600e602052604090819020829055517f0611bb2107e385b79ec826fff8ecc1c1248a7aae3c875c96668f8cfbf1734220906129b090849084906152d4565b60015473ffffffffffffffffffffffffffffffffffffffff1690565b600581565b600e6020526000908152604090205481565b60046020526000908152604090205481565b612d19613f0e565b73ffffffffffffffffffffffffffffffffffffffff808316600090815260086020908152604080832061ffff808916808652918452828520835160c0810185528154808416825267ffffffffffffffff6201000082048116838901526a010000000000000000000082048a16838801527e010000000000000000000000000000000000000000000000000000000000009091048416606083015260019092015491821660808201526801000000000000000090910490961660a087015290845260099092529091208251909116612df357805461ffff1682525b602082015167ffffffffffffffff16612e1e57805462010000900467ffffffffffffffff1660208301525b604082015173ffffffffffffffffffffffffffffffffffffffff16612e695780546a0100000000000000000000900473ffffffffffffffffffffffffffffffffffffffff1660408301525b606082015161ffff16612ea45780547e01000000000000000000000000000000000000000000000000000000000000900461ffff1660608301525b608082015167ffffffffffffffff16612ecc57600181015467ffffffffffffffff1660808301525b60a082015173ffffffffffffffffffffffffffffffffffffffff16612f1857600181015468010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1660a08301525b509392505050565b61271081565b600c6020526000908152604090205461ffff1681565b600d60209081526000928352604080842090915290825290205460ff1681565b600f6020908152600093845260408085208252928452828420905282529020805460019091015482565b600b60209081526000928352604080842090915290825290205473ffffffffffffffffffffffffffffffffffffffff1681565b60086020908152600092835260408084209091529082529020805460019091015461ffff8083169267ffffffffffffffff62010000820481169373ffffffffffffffffffffffffffffffffffffffff6a010000000000000000000084048116947e010000000000000000000000000000000000000000000000000000000000009094049093169291811691680100000000000000009091041686565b73ffffffffffffffffffffffffffffffffffffffff1660009081526005602052604090205490565b60106020526000908152604090205481565b613097613939565b73ffffffffffffffffffffffffffffffffffffffff166130b5612ccc565b73ffffffffffffffffffffffffffffffffffffffff161461311d576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61ffff8083166000908152600d60209081526040808320938516835292905281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055517fec23bee6f88cfecebb09d6aaaed66f0ce110debc1f61117c8270a7116597df9a906129b09084908490615373565b6131a0613f43565b5073ffffffffffffffffffffffffffffffffffffffff83166000908152600f6020908152604080832061ffff86168452825280832084845282529182902082518084019093528054835260010154908201529392505050565b613201613939565b73ffffffffffffffffffffffffffffffffffffffff1661321f612ccc565b73ffffffffffffffffffffffffffffffffffffffff1614613287576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61ffff8216600090815260106020526040902054156132b85760405162461bcd60e51b8152600401610a1290614eb5565b61ffff821660009081526010602052604090819020829055517f0dad975e1d2fbe771c95cdcc7be9a1e61181de7173abe0a32b8f8f83140873e5906129b090849084906152d4565b613308613939565b73ffffffffffffffffffffffffffffffffffffffff16613326612ccc565b73ffffffffffffffffffffffffffffffffffffffff161461338e576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff81166133c15760405162461bcd60e51b8152600401610a1290614e58565b600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83161790556040517fcb7ef3e545f5cdb893f5c568ba710fe08f336375a2d9fd66e161033f8fc09ef3906122d6908390614813565b613439613939565b73ffffffffffffffffffffffffffffffffffffffff16613457612ccc565b73ffffffffffffffffffffffffffffffffffffffff16146134bf576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff81166135115760405162461bcd60e51b815260040180806020018281038252602681526020018061569f6026913960400191505060405180910390fd5b60015460405173ffffffffffffffffffffffffffffffffffffffff8084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60075481565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1633146135fa5760405162461bcd60e51b8152600401610a1290614f6f565b73ffffffffffffffffffffffffffffffffffffffff8416600090815260086020908152604080832061ffff89168452909152902060018414156136b4576000613645838501856142fd565b61ffff8089166000908152600c602052604090205491925090811690821611156136815760405162461bcd60e51b8152600401610a1290614dfb565b81547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001661ffff919091161781556138f4565b600284141561370b5760006136cb8385018561468f565b825467ffffffffffffffff90911662010000027fffffffffffffffffffffffffffffffffffffffffffff0000000000000000ffff909116178255506138f4565b600384141561377657600061372283850185614072565b825473ffffffffffffffffffffffffffffffffffffffff9091166a0100000000000000000000027fffff0000000000000000000000000000000000000000ffffffffffffffffffff909116178255506138f4565b600484141561383057600061378d838501856142fd565b61ffff8089166000908152600d602090815260408083209385168352929052205490915060ff16806137c1575061ffff8116155b6137dd5760405162461bcd60e51b8152600401610a129061490f565b815461ffff9091167e01000000000000000000000000000000000000000000000000000000000000027dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9091161781556138f4565b60058414156138885760006138478385018561468f565b6001830180547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff92909216919091179055506138f4565b600684141561218657600061389f83850185614072565b60018301805473ffffffffffffffffffffffffffffffffffffffff90921668010000000000000000027fffffffff0000000000000000000000000000000000000000ffffffffffffffff909216919091179055505b7ffc01bf86212a14151d51d1be5c2ac64d67d5ec823dfc6f53298d7ce3f3d3d252858585856040516139299493929190614865565b60405180910390a1505050505050565b3390565b600082821115613994576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60008282018381101561219e576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6040805173ffffffffffffffffffffffffffffffffffffffff80861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052613a89908590613b21565b50505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052613b1c908490613b21565b505050565b6000613b83826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16613bdf9092919063ffffffff16565b805190915015613b1c57808060200190516020811015613ba257600080fd5b5051613b1c5760405162461bcd60e51b815260040180806020018281038252602a8152602001806156eb602a913960400191505060405180910390fd5b6060613bee8484600085613bf6565b949350505050565b606082471015613c375760405162461bcd60e51b81526004018080602001828103825260268152602001806156c56026913960400191505060405180910390fd5b613c4085613d7c565b613c91576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b60208310613cfa57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101613cbd565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114613d5c576040519150601f19603f3d011682016040523d82523d6000602084013e613d61565b606091505b5091509150613d71828286613d82565b979650505050505050565b3b151590565b60608315613d9157508161219e565b825115613da15782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613deb578181015183820152602001613dd3565b50505050905090810190601f168015613e185780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6040805160e08101825260008082526020820181905291810182905260608082018390526080820181905260a082019290925260c081019190915290565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282613e9a5760008555613efe565b82601f10613ed1578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00823516178555613efe565b82800160010185558215613efe579182015b82811115613efe578235825591602001919060010190613ee3565b50613f0a929150613f5a565b5090565b6040805160c081018252600080825260208201819052918101829052606081018290526080810182905260a081019190915290565b604080518082019091526000808252602082015290565b5b80821115613f0a5760008155600101613f5b565b803561265481615653565b805161265481615653565b60008083601f840112613f96578182fd5b50813567ffffffffffffffff811115613fad578182fd5b602083019150836020828501011115613fc557600080fd5b9250929050565b600082601f830112613fdc578081fd5b815167ffffffffffffffff811115613ff057fe5b61402160207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601615603565b818152846020838601011115614035578283fd5b613bee826020830160208701615627565b803561265481615678565b805161265481615678565b803561265481615688565b805161265481615688565b600060208284031215614083578081fd5b813561219e81615653565b600080604083850312156140a0578081fd5b82356140ab81615653565b915060208301356140bb81615678565b809150509250929050565b6000806000606084860312156140da578081fd5b83356140e581615653565b925060208401356140f581615678565b929592945050506040919091013590565b60008060408385031215614118578182fd5b823561412381615653565b946020939093013593505050565b60008060008060008060008060008060006101008c8e031215614152578687fd5b61415b8c613f6f565b9a5061416960208d0161405c565b995061417760408d01614046565b985067ffffffffffffffff8060608e01351115614192578788fd5b6141a28e60608f01358f01613f85565b909950975060808d01358110156141b7578687fd5b6141c78e60808f01358f01613f85565b90975095506141d860a08e01613f6f565b94506141e660c08e01613f6f565b93508060e08e013511156141f8578283fd5b506142098d60e08e01358e01613f85565b81935080925050509295989b509295989b9093969950565b600060208284031215614232578081fd5b815167ffffffffffffffff80821115614249578283fd5b9083019060e0828603121561425c578283fd5b61426660e0615603565b61426f83614051565b815261427d60208401614051565b602082015261428e60408401614067565b604082015261429f60608401613f7a565b60608201526080830151828111156142b5578485fd5b6142c187828601613fcc565b60808301525060a083015160a082015260c0830151828111156142e2578485fd5b6142ee87828601613fcc565b60c08301525095945050505050565b60006020828403121561430e578081fd5b813561219e81615678565b6000806040838503121561432b578182fd5b823561433681615678565b915060208301356140bb81615653565b600080600080600080600060a0888a031215614360578081fd5b873561436b81615678565b9650602088013561437b81615653565b9550604088013567ffffffffffffffff80821115614397578283fd5b6143a38b838c01613f85565b909750955060608a0135915081151582146143bc578283fd5b909350608089013590808211156143d1578283fd5b506143de8a828b01613f85565b989b979a50959850939692959293505050565b600080600060608486031215614405578081fd5b833561441081615678565b925060208401356140f581615653565b60008060008060008060a08789031215614438578384fd5b863561444381615678565b9550602087013561445381615653565b94506040870135935060608701359250608087013567ffffffffffffffff81111561447c578283fd5b61448889828a01613f85565b979a9699509497509295939492505050565b6000806000806000608086880312156144b1578283fd5b85356144bc81615678565b945060208601356144cc81615653565b935060408601359250606086013567ffffffffffffffff8111156144ee578182fd5b6144fa88828901613f85565b969995985093965092949392505050565b6000806040838503121561451d578182fd5b823561412381615678565b6000806000806080858703121561453d578182fd5b843561454881615678565b966020860135965060408601359560600135945092505050565b60008060408385031215614574578182fd5b82356140ab81615678565b60008060008060608587031215614594578182fd5b843561459f81615678565b935060208501356145af81615678565b9250604085013567ffffffffffffffff8111156145ca578283fd5b6145d687828801613f85565b95989497509550505050565b600080600080600080600060e0888a0312156145fc578081fd5b873561460781615678565b9650602088013561461781615678565b9550604088013561462781615688565b9450606088013561463781615653565b9350608088013561464781615678565b925060a088013561465781615678565b915060c088013561466781615653565b8091505092959891949750929550565b600060208284031215614688578081fd5b5051919050565b6000602082840312156146a0578081fd5b813561219e81615688565b600080600080608085870312156146c0578182fd5b843560ff811681146146d0578283fd5b935060208501356146e081615653565b925060408501356146f081615653565b9396929550929360600135925050565b600082845282826020860137806020848601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f85011685010190509392505050565b60008151808452614760816020860160208601615627565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b90565b60007fffffffffffffffff0000000000000000000000000000000000000000000000008860c01b1682527fffffffffffffffffffffffffffffffffffffffff0000000000000000000000008760601b1660088301528486601c840137848201601c81018281528486823750909201601c019182525095945050505050565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff9384168152919092166020820152604081019190915260600190565b600073ffffffffffffffffffffffffffffffffffffffff861682528460208301526060604083015261489b606083018486614700565b9695505050505050565b901515815260200190565b92151583526020830191909152604082015260600190565b90815260200190565b6000858252606060208301526148eb606083018587614700565b905082604083015295945050505050565b60006020825261219e6020830184614748565b60208082526026908201527f4c617965725a65726f3a20696e76616c6964206f7574626f756e642070726f6f60408201527f6620747970650000000000000000000000000000000000000000000000000000606082015260800190565b60208082526018908201527f4c617965725a65726f3a206f6e6c792074726561737572790000000000000000604082015260600190565b6020808252601e908201527f4c617965725a65726f3a20496e76616c696420636f6e66696720747970650000604082015260600190565b6020808252601a908201527f4c617965725a65726f3a207769746864726177206661696c6564000000000000604082015260600190565b60208082526025908201527f4c617965725a65726f3a206e6f7420656e6f756768206e617469766520666f7260408201527f2066656573000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526031908201527f4c617965725a65726f3a205f6c617965725a65726f546f6b656e2063616e6e6f60408201527f74206265207a65726f2061646472657373000000000000000000000000000000606082015260800190565b60208082526022908201527f4c617965725a65726f3a20696e76616c69642072656c6179657220616464726560408201527f7373000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601b908201527f4c617965725a65726f3a206661696c656420746f20726566756e640000000000604082015260600190565b6020808252602b908201527f4c617965725a65726f3a206d75737420626520706169642062792073656e646560408201527f72206f72206f726967696e000000000000000000000000000000000000000000606082015260800190565b60208082526021908201527f4c617965725a65726f3a20636861696e496420646f6573206e6f74206578697360408201527f7400000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526021908201527f4c617965725a65726f3a20696e76616c6964206f7261636c652061646472657360408201527f7300000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601e908201527f4c617965725a65726f3a20696e76616c69642064737420616464726573730000604082015260600190565b6020808252601a908201527f4c617965725a65726f3a20696e76616c69642072656c61796572000000000000604082015260600190565b60208082526029908201527f4c617965725a65726f3a206c6962726172792063616e6e6f74206265207a657260408201527f6f20616464726573730000000000000000000000000000000000000000000000606082015260800190565b60208082526043908201527f4c617965725a65726f3a206f7261636c6520646174612063616e206f6e6c792060408201527f75706461746520696620697420686173206d6f726520636f6e6669726d61746960608201527f6f6e730000000000000000000000000000000000000000000000000000000000608082015260a00190565b60208082526017908201527f4c617965725a65726f3a6f6e6c79207472656173757279000000000000000000604082015260600190565b60208082526030908201527f4c617965725a65726f3a20696e76616c696420696e626f756e642070726f6f6660408201527f206c6962726172792076657273696f6e00000000000000000000000000000000606082015260800190565b6020808252602a908201527f4c617965725a65726f3a2074726561737572792063616e6e6f74206265207a6560408201527f726f206164647265737300000000000000000000000000000000000000000000606082015260800190565b60208082526021908201527f4c617965725a65726f3a2072656d6f746520756c6e20616c726561647920736560408201527f7400000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526022908201527f4c617965725a65726f3a2063616e206e6f7420616464206e6577206c6962726160408201527f7279000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526018908201527f4c617965725a65726f3a206f6e6c7920656e64706f696e740000000000000000604082015260600190565b6020808252602e908201527f4c617965725a65726f3a20696e76616c6964206f7574626f756e6420626c6f6360408201527f6b20636f6e6669726d6174696f6e000000000000000000000000000000000000606082015260800190565b60208082526024908201527f4c617965725a65726f3a20756e737570706f727465642077697468647261772060408201527f7479706500000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526028908201527f4c617965725a65726f3a205f7061636b65742e756c6e4164647265737320697360408201527f20696e76616c6964000000000000000000000000000000000000000000000000606082015260800190565b60208082526030908201527f4c617965725a65726f3a2072656d6f746520636861696e20616464726573732060408201527f73697a6520616c72656164792073657400000000000000000000000000000000606082015260800190565b6020808252602d908201527f4c617965725a65726f3a20696e76616c696420696e626f756e6420626c6f636b60408201527f20636f6e6669726d6174696f6e00000000000000000000000000000000000000606082015260800190565b60208082526029908201527f4c617965725a65726f3a206e6f7420656e6f75676820626c6f636b20636f6e6660408201527f69726d6174696f6e730000000000000000000000000000000000000000000000606082015260800190565b600060c08201905061ffff808451168352602084015167ffffffffffffffff80821660208601526040860151915073ffffffffffffffffffffffffffffffffffffffff80831660408701528360608801511660608701528160808801511660808701528060a08801511660a08701525050505092915050565b815181526020918201519181019190915260400190565b61ffff91909116815260200190565b61ffff92909216825273ffffffffffffffffffffffffffffffffffffffff16602082015260400190565b61ffff94909416845273ffffffffffffffffffffffffffffffffffffffff9290921660208401526040830152606082015260800190565b61ffff929092168252602082015260400190565b600061ffff8416825260406020830152613bee6040830184614748565b600061ffff8816825260c0602083015261532260c0830188614748565b73ffffffffffffffffffffffffffffffffffffffff8716604084015267ffffffffffffffff8616606084015284608084015282810360a08401526153668185614748565b9998505050505050505050565b61ffff92831681529116602082015260400190565b600061ffff808916835280881660208401525073ffffffffffffffffffffffffffffffffffffffff8616604083015284606083015260a060808301526153d260a083018486614700565b98975050505050505050565b600061ffff808816835280871660208401525073ffffffffffffffffffffffffffffffffffffffff8516604083015283606083015260a06080830152613d7160a0830184614748565b600061ffff80871683528086166020840152506060604083015261489b606083018486614700565b600061ffff8086168352808516602084015250606060408301526154766060830184614748565b95945050505050565b61ffff938416815291909216602082015267ffffffffffffffff909116604082015260600190565b61ffff9788168152958716602087015267ffffffffffffffff94909416604086015273ffffffffffffffffffffffffffffffffffffffff9283166060860152908516608085015290931660a083015290911660c082015260e00190565b61ffff968716815267ffffffffffffffff958616602082015273ffffffffffffffffffffffffffffffffffffffff948516604082015292909516606083015290921660808301529190911660a082015260c00190565b600061ffff808816835267ffffffffffffffff8716602084015280861660408401525060806060830152613d71608083018486614700565b918252602082015260400190565b67ffffffffffffffff91909116815260200190565b60ff91909116815260200190565b60ff95909516855273ffffffffffffffffffffffffffffffffffffffff938416602086015291831660408501529091166060830152608082015260a00190565b60405181810167ffffffffffffffff8111828210171561561f57fe5b604052919050565b60005b8381101561564257818101518382015260200161562a565b83811115613a895750506000910152565b73ffffffffffffffffffffffffffffffffffffffff8116811461567557600080fd5b50565b61ffff8116811461567557600080fd5b67ffffffffffffffff8116811461567557600080fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a264697066735822122031baf7877904c35ac6d2a37a446a3f6a27e25dd40872d7c61f331994e03f36b064736f6c63430007060033",
1507
+ "deployedBytecode": "0x60806040526004361061031e5760003560e01c80638317814a116101a5578063d56bc64b116100ec578063ebfa08e911610095578063f2fde38b1161006f578063f2fde38b146108a4578063f47a5feb146108c4578063f8e1734c146108d9578063f9dd8e0f146108f95761031e565b8063ebfa08e914610837578063ed28580a14610864578063f0f44260146108845761031e565b8063e6108a82116100c6578063e6108a82146107d7578063ea216c21146107f7578063eb0d4c31146108175761031e565b8063d56bc64b14610777578063db00719b14610797578063ddfdef5a146107b75761031e565b8063a183608c1161014e578063b77d22ad11610128578063b77d22ad14610708578063b8e7e3e01461071d578063d543c7741461074a5761031e565b8063a183608c146106a6578063a4662222146106c6578063abe685cd146106f35761031e565b80638da5cb5b1161017f5780638da5cb5b1461065c578063904d3b8d14610671578063959f5943146106865761031e565b80638317814a146105fc5780638525b7111461061c57806387078f9f1461063c5761031e565b80634d0ca1b4116102695780635e280f1111610212578063715018a6116101ec578063715018a6146105b25780638140666e146105c75780638207f79d146105dc5761031e565b80635e280f111461055d57806361aa19da14610572578063704316e5146105925761031e565b806352d3b5001161024357806352d3b500146105085780635b5a2678146105285780635c0115311461053d5761031e565b80634d0ca1b4146104c05780634d3a0f7c146104d557806352d2871f146104e85761031e565b80632cfacb06116102cb57806331bd2430116102a557806331bd24301461046857806340a7bb101461047d57806349148c37146104ab5761031e565b80632cfacb06146103ff5780632e9959ec146104145780632f813464146104365761031e565b806318da0011116102fc57806318da00111461039d57806322c10776146103b25780632a819bbf146103d25761031e565b806302e72c631461032357806307b9ca7c14610359578063096607f81461037b575b600080fd5b34801561032f57600080fd5b5061034361033e366004614072565b61090e565b60405161035091906148c8565b60405180910390f35b34801561036557600080fd5b5061036e610920565b6040516103509190614813565b34801561038757600080fd5b5061039b6103963660046145e2565b61093c565b005b3480156103a957600080fd5b5061036e610d24565b3480156103be57600080fd5b5061039b6103cd3660046146ab565b610d40565b3480156103de57600080fd5b506103f26103ed366004614562565b610f53565b60405161035091906148fc565b34801561040b57600080fd5b50610343611015565b34801561042057600080fd5b5061042961101a565b60405161035091906155b5565b34801561044257600080fd5b506104566104513660046142fd565b61101f565b60405161035096959493929190615504565b34801561047457600080fd5b506103436110b0565b34801561048957600080fd5b5061049d610498366004614346565b6110b5565b604051610350929190615592565b3480156104b757600080fd5b506103436114c0565b3480156104cc57600080fd5b506104296114c5565b61039b6104e3366004614131565b6114ca565b3480156104f457600080fd5b506103f26105033660046143f1565b611de2565b34801561051457600080fd5b5061039b610523366004614072565b6121a5565b34801561053457600080fd5b506103436122e1565b34801561054957600080fd5b5061039b610558366004614420565b6122e7565b34801561056957600080fd5b5061036e612609565b34801561057e57600080fd5b5061034361058d366004614072565b61262d565b34801561059e57600080fd5b5061039b6105ad366004614528565b612659565b3480156105be57600080fd5b5061039b6126ee565b3480156105d357600080fd5b506103436127eb565b3480156105e857600080fd5b5061039b6105f7366004614319565b6127f0565b34801561060857600080fd5b5061039b61061736600461457f565b6129bc565b34801561062857600080fd5b5061039b610637366004614106565b612ab9565b34801561064857600080fd5b5061039b61065736600461450b565b612bc5565b34801561066857600080fd5b5061036e612ccc565b34801561067d57600080fd5b50610343612ce8565b34801561069257600080fd5b506103436106a13660046142fd565b612ced565b3480156106b257600080fd5b506103436106c1366004614072565b612cff565b3480156106d257600080fd5b506106e66106e1366004614319565b612d11565b60405161035091906151d4565b3480156106ff57600080fd5b50610343612f20565b34801561071457600080fd5b5061034361101a565b34801561072957600080fd5b5061073d6107383660046142fd565b612f26565b6040516103509190615264565b34801561075657600080fd5b5061076a610765366004614562565b612f3c565b60405161035091906148a5565b34801561078357600080fd5b5061049d6107923660046140c6565b612f5c565b3480156107a357600080fd5b5061036e6107b2366004614562565b612f86565b3480156107c357600080fd5b506104566107d236600461408e565b612fb9565b3480156107e357600080fd5b506103436107f2366004614072565b613055565b34801561080357600080fd5b506103436108123660046142fd565b61307d565b34801561082357600080fd5b5061039b610832366004614562565b61308f565b34801561084357600080fd5b506108576108523660046140c6565b613198565b604051610350919061524d565b34801561087057600080fd5b5061039b61087f36600461450b565b6131f9565b34801561089057600080fd5b5061039b61089f366004614072565b613300565b3480156108b057600080fd5b5061039b6108bf366004614072565b613431565b3480156108d057600080fd5b5061034361359f565b3480156108e557600080fd5b5061039b6108f436600461449a565b6135a5565b34801561090557600080fd5b506104296114c0565b60056020526000908152604090205481565b60025473ffffffffffffffffffffffffffffffffffffffff1681565b610944613939565b73ffffffffffffffffffffffffffffffffffffffff16610962612ccc565b73ffffffffffffffffffffffffffffffffffffffff16146109ca576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61ffff8088166000908152600c60205260409020548116908716118015906109f6575060008661ffff16115b610a1b5760405162461bcd60e51b8152600401610a1290614dfb565b60405180910390fd5b60008567ffffffffffffffff1611610a455760405162461bcd60e51b8152600401610a129061511a565b73ffffffffffffffffffffffffffffffffffffffff8416610a785760405162461bcd60e51b8152600401610a1290614acb565b61ffff8088166000908152600d602090815260408083209387168352929052205460ff16610ab85760405162461bcd60e51b8152600401610a129061490f565b60008261ffff1611610adc5760405162461bcd60e51b8152600401610a1290614fa6565b73ffffffffffffffffffffffffffffffffffffffff8116610b0f5760405162461bcd60e51b8152600401610a1290614c19565b6040518060c001604052808761ffff1681526020018667ffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1681526020018461ffff1681526020018361ffff1667ffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff16815250600960008961ffff1661ffff16815260200190815260200160002060008201518160000160006101000a81548161ffff021916908361ffff16021790555060208201518160000160026101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550604082015181600001600a6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550606082015181600001601e6101000a81548161ffff021916908361ffff16021790555060808201518160010160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060a08201518160010160086101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509050507f45bb8a2b6b05457ff80b84be5bf06f2d05069fa8099fcb9d8e34149654b4d5c287878787878787604051610d1397969594939291906154a7565b60405180910390a150505050505050565b60035473ffffffffffffffffffffffffffffffffffffffff1681565b60026000541415610d98576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260005560ff8416610df15760035473ffffffffffffffffffffffffffffffffffffffff163314610ddc5760405162461bcd60e51b8152600401610a1290614dc4565b600654610de9908261393d565b600655610e7f565b60ff841660011415610e2c5733600090815260046020526040902054610e17908261393d565b33600090815260046020526040902055610e7f565b60ff841660021415610e675733600090815260056020526040902054610e52908261393d565b33600090815260056020526040902055610e7f565b60405162461bcd60e51b8152600401610a1290615003565b60008273ffffffffffffffffffffffffffffffffffffffff1682604051610ea590614792565b60006040518083038185875af1925050503d8060008114610ee2576040519150601f19603f3d011682016040523d82523d6000602084013e610ee7565b606091505b5050905080610f085760405162461bcd60e51b8152600401610a12906149da565b7f163adce0473e267e1db8ecb524c0fcdceda62c3e6f231966bbb252e0104325378585338686604051610f3f9594939291906155c3565b60405180910390a150506001600055505050565b600a6020908152600092835260408084208252918352918190208054825160026001831615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190921691909104601f81018590048502820185019093528281529290919083018282801561100d5780601f10610fe25761010080835404028352916020019161100d565b820191906000526020600020905b815481529060010190602001808311610ff057829003601f168201915b505050505081565b600381565b600181565b6009602052600090815260409020805460019091015461ffff8083169267ffffffffffffffff62010000820481169373ffffffffffffffffffffffffffffffffffffffff6a010000000000000000000084048116947e010000000000000000000000000000000000000000000000000000000000009094049093169291811691680100000000000000009091041686565b600681565b604080516020601f840181900481028201810190925282815260009182918a918a918991859190899089908190840183828082843760009201829052509394506111059250879150869050612d11565b905060008251600014156112825761ffff8681166000908152600a60209081526040808320606087015190941683529281528282208054845160026001831615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190921691909104601f8101849004840282018401909552848152929390918301828280156111da5780601f106111af576101008083540402835291602001916111da565b820191906000526020600020905b8154815290600101906020018083116111bd57829003601f168201915b50505050509050826040015173ffffffffffffffffffffffffffffffffffffffff1663e54a22158885606001518989866040518663ffffffff1660e01b815260040161122a9594939291906153de565b60206040518083038186803b15801561124257600080fd5b505afa158015611256573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061127a9190614677565b91505061131e565b816040015173ffffffffffffffffffffffffffffffffffffffff1663e54a22158784606001518888886040518663ffffffff1660e01b81526004016112cb9594939291906153de565b60206040518083038186803b1580156112e357600080fd5b505afa1580156112f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061131b9190614677565b90505b60a082015160608301516040517f0b4d510700000000000000000000000000000000000000000000000000000000815260009273ffffffffffffffffffffffffffffffffffffffff1691630b4d51079161137c918b91600401615373565b60206040518083038186803b15801561139457600080fd5b505afa1580156113a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113cc9190614677565b90506000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635cbbbd758e85856040518463ffffffff1660e01b815260040161142f939291906148b0565b60206040518083038186803b15801561144757600080fd5b505afa15801561145b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061147f9190614677565b90508c61148f5780995089611494565b809850885b506114ab9050816114a58b8561399a565b9061399a565b98505050505050505097509795505050505050565b600281565b600081565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16331461151f5760405162461bcd60e51b8152600401610a1290614f6f565b600061152b8a8d612d11565b61ffff8b166000908152601060205260409020549091508c908c908c906115645760405162461bcd60e51b8152600401610a1290614bbc565b6000808560a0015173ffffffffffffffffffffffffffffffffffffffff16630b4d51078488606001516040518363ffffffff1660e01b81526004016115aa929190615373565b60206040518083038186803b1580156115c257600080fd5b505afa1580156115d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115fa9190614677565b60a087015173ffffffffffffffffffffffffffffffffffffffff16600090815260046020526040902054909150611631908261399a565b60a087015173ffffffffffffffffffffffffffffffffffffffff1660009081526004602052604090819020919091558601518b908861187b5761ffff8581166000908152600a6020908152604080832060608d015190941683529281528282208054845160026001831615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190921691909104601f8101849004840282018401909552848152929390918301828280156117315780601f1061170657610100808354040283529160200191611731565b820191906000526020600020905b81548152906001019060200180831161171457829003601f168201915b5050505060608b01516040517fe54a221500000000000000000000000000000000000000000000000000000000815292935073ffffffffffffffffffffffffffffffffffffffff85169263e54a22159250611796918a918d90899088906004016153de565b60206040518083038186803b1580156117ae57600080fd5b505afa1580156117c2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117e69190614677565b60608a01516040517f3a5fb82a00000000000000000000000000000000000000000000000000000000815291965073ffffffffffffffffffffffffffffffffffffffff841691633a5fb82a91611843918a9190869060040161544f565b600060405180830381600087803b15801561185d57600080fd5b505af1158015611871573d6000803e3d6000fd5b50505050506119a4565b8073ffffffffffffffffffffffffffffffffffffffff1663e54a2215868a606001518a868f8f6040518763ffffffff1660e01b81526004016118c296959493929190615388565b60206040518083038186803b1580156118da57600080fd5b505afa1580156118ee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119129190614677565b60608901516040517f3a5fb82a00000000000000000000000000000000000000000000000000000000815291955073ffffffffffffffffffffffffffffffffffffffff831691633a5fb82a91611971918991908f908f90600401615427565b600060405180830381600087803b15801561198b57600080fd5b505af115801561199f573d6000803e3d6000fd5b505050505b60408089015173ffffffffffffffffffffffffffffffffffffffff166000908152600560205220546119d6908561399a565b6040808a015173ffffffffffffffffffffffffffffffffffffffff166000908152600560205281902091909155606089015190517fb8a7262132db1f61626604a31c3de81dc1a5bb0f1511dfa70d626ab1b88b52c291611a3d9188918a918f908f9061555a565b60405180910390a1506000905073ffffffffffffffffffffffffffffffffffffffff8a161580611a83575060025473ffffffffffffffffffffffffffffffffffffffff16155b6003546040517f5cbbbd7500000000000000000000000000000000000000000000000000000000815291925060009173ffffffffffffffffffffffffffffffffffffffff90911690635cbbbd7590611ae490851590889088906004016148b0565b60206040518083038186803b158015611afc57600080fd5b505afa158015611b10573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b349190614677565b90508015611c04578115611b6357600654611b4f908261399a565b600655611b5c848261399a565b9350611c04565b8673ffffffffffffffffffffffffffffffffffffffff168b73ffffffffffffffffffffffffffffffffffffffff161480611bb2575073ffffffffffffffffffffffffffffffffffffffff8b1632145b611bce5760405162461bcd60e51b8152600401610a1290614b5f565b600254611bf39073ffffffffffffffffffffffffffffffffffffffff168c30846139f4565b600754611c00908261399a565b6007555b50611c119050828261399a565b915050600083858f8f8f8f604051602001611c3196959493929190614795565b60405160208183030381529060405290507fe8d23d927749ec8e512eb885679c2977d57068839d8cca1a85685dbbea0648f68382604051611c739291906152e8565b60405180910390a160a0860151606087015160808801516040517f6653057900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90931692636653057992611cdd92889260040161547f565b600060405180830381600087803b158015611cf757600080fd5b505af1158015611d0b573d6000803e3d6000fd5b505050505034811115611d305760405162461bcd60e51b8152600401610a1290614a11565b6000611d3c348361393d565b90508015611dcf5760008a73ffffffffffffffffffffffffffffffffffffffff1682604051611d6a90614792565b60006040518083038185875af1925050503d8060008114611da7576040519150601f19603f3d011682016040523d82523d6000602084013e611dac565b606091505b5050905080611dcd5760405162461bcd60e51b8152600401610a1290614b28565b505b5050505050505050505050505050505050565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260086020908152604080832061ffff8716845290915290206060906001831415611e8357805461ffff16611e6d5761ffff808616600090815260096020908152604091829020549151611e5693929092169101615264565b60405160208183030381529060405291505061219e565b8054604051611e569161ffff1690602001615264565b6002831415611ef957805462010000900467ffffffffffffffff16611ed75761ffff8516600090815260096020908152604091829020549151611e569262010000900467ffffffffffffffff1691016155a0565b8054604051611e569162010000900467ffffffffffffffff16906020016155a0565b6003831415611fab5780546a0100000000000000000000900473ffffffffffffffffffffffffffffffffffffffff16611f755761ffff8516600090815260096020908152604091829020549151611e56926a0100000000000000000000900473ffffffffffffffffffffffffffffffffffffffff169101614813565b8054604051611e56916a0100000000000000000000900473ffffffffffffffffffffffffffffffffffffffff1690602001614813565b60048314156120645780547e01000000000000000000000000000000000000000000000000000000000000900461ffff1661202c5761ffff808616600090815260096020908152604091829020549151611e56937e010000000000000000000000000000000000000000000000000000000000009093049092169101615264565b8054604051611e56917e01000000000000000000000000000000000000000000000000000000000000900461ffff1690602001615264565b60058314156120d157600181015467ffffffffffffffff166120b25761ffff8516600090815260096020908152604091829020600101549151611e569267ffffffffffffffff1691016155a0565b6001810154604051611e569167ffffffffffffffff16906020016155a0565b600683141561218657600181015468010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1661214f5761ffff8516600090815260096020908152604091829020600101549151611e569268010000000000000000900473ffffffffffffffffffffffffffffffffffffffff169101614813565b6001810154604051611e569168010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1690602001614813565b60405162461bcd60e51b8152600401610a12906149a3565b9392505050565b6121ad613939565b73ffffffffffffffffffffffffffffffffffffffff166121cb612ccc565b73ffffffffffffffffffffffffffffffffffffffff1614612233576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff81166122665760405162461bcd60e51b8152600401610a1290614a6e565b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83161790556040517f33d644987381deff4408951d55afa136f124e22a7810b163b2aaa3ebef770f64906122d6908390614813565b60405180910390a150565b60065481565b60006122f38787612d11565b604081015190915073ffffffffffffffffffffffffffffffffffffffff16331461232f5760405162461bcd60e51b8152600401610a1290614cad565b612337613e26565b61ffff8089166000818152600b60209081526040808320875190951683529381528382205460a087015173ffffffffffffffffffffffffffffffffffffffff9081168452600f83528584209484529382528483208a84528252939091209085015181549290931692909167ffffffffffffffff90911611156123cb5760405162461bcd60e51b8152600401610a1290615177565b61ffff8a166000908152600e60205260409081902054600183015491517fb71e0f71000000000000000000000000000000000000000000000000000000008152909173ffffffffffffffffffffffffffffffffffffffff85169163b71e0f719161243d918b908b9087906004016148d1565b600060405180830381600087803b15801561245757600080fd5b505af115801561246b573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526124b19190810190614221565b60a081015161ffff8d166000908152601060205260409020549195501492506124ef9150505760405162461bcd60e51b8152600401610a1290615060565b8673ffffffffffffffffffffffffffffffffffffffff16816060015173ffffffffffffffffffffffffffffffffffffffff161461253e5760405162461bcd60e51b8152600401610a1290614c76565b80516080820151606083015160408085015160c086015191517fc2fa481300000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169563c2fa4813956125cd959194909391928e9190600401615305565b600060405180830381600087803b1580156125e757600080fd5b505af11580156125fb573d6000803e3d6000fd5b505050505050505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600460205260409020545b919050565b336000908152600f6020908152604080832061ffff88168452825280832086845290915290208054831161269f5760405162461bcd60e51b8152600401610a1290614d41565b828155600181018290556040517fc5e97f049604c4d8626704341240f021a22cee0d8b66ec306a45344be67733a0906126df90879033908790899061529d565b60405180910390a15050505050565b6126f6613939565b73ffffffffffffffffffffffffffffffffffffffff16612714612ccc565b73ffffffffffffffffffffffffffffffffffffffff161461277c576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60015460405160009173ffffffffffffffffffffffffffffffffffffffff16907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b600481565b6127f8613939565b73ffffffffffffffffffffffffffffffffffffffff16612816612ccc565b73ffffffffffffffffffffffffffffffffffffffff161461287e576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff81166128b15760405162461bcd60e51b8152600401610a1290614ce4565b61ffff8281166000908152600c60205260409020548116106128e55760405162461bcd60e51b8152600401610a1290614f12565b61ffff8083166000908152600c60209081526040808320805480861660010186167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00009091161790819055600b835281842094168352929052819020805473ffffffffffffffffffffffffffffffffffffffff84167fffffffffffffffffffffffff0000000000000000000000000000000000000000909116179055517f802d55279d51813cb7a9a98e8fd2d7bec5346cb830901c11b85d1650cb857e9a906129b09084908490615273565b60405180910390a15050565b6129c4613939565b73ffffffffffffffffffffffffffffffffffffffff166129e2612ccc565b73ffffffffffffffffffffffffffffffffffffffff1614612a4a576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61ffff8085166000908152600a60209081526040808320938716835292905220612a75908383613e64565b507f4a5695eee2a74d548d5f5c485a3de99ace99e3b664c8e30a90f49be6ebb5493284848484604051612aab9493929190615427565b60405180910390a150505050565b60026000541415612b11576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260005560035473ffffffffffffffffffffffffffffffffffffffff163314612b4d5760405162461bcd60e51b8152600401610a129061496c565b600754612b5a908261393d565b600755600254612b819073ffffffffffffffffffffffffffffffffffffffff168383613a8f565b7f3a20c8c3cd1848485ae8261a52398bb9b26f195b717306b3cf7f058e62c095d5338383604051612bb493929190614834565b60405180910390a150506001600055565b612bcd613939565b73ffffffffffffffffffffffffffffffffffffffff16612beb612ccc565b73ffffffffffffffffffffffffffffffffffffffff1614612c53576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61ffff82166000908152600e602052604090205415612c845760405162461bcd60e51b8152600401610a12906150bd565b61ffff82166000908152600e602052604090819020829055517f0611bb2107e385b79ec826fff8ecc1c1248a7aae3c875c96668f8cfbf1734220906129b090849084906152d4565b60015473ffffffffffffffffffffffffffffffffffffffff1690565b600581565b600e6020526000908152604090205481565b60046020526000908152604090205481565b612d19613f0e565b73ffffffffffffffffffffffffffffffffffffffff808316600090815260086020908152604080832061ffff808916808652918452828520835160c0810185528154808416825267ffffffffffffffff6201000082048116838901526a010000000000000000000082048a16838801527e010000000000000000000000000000000000000000000000000000000000009091048416606083015260019092015491821660808201526801000000000000000090910490961660a087015290845260099092529091208251909116612df357805461ffff1682525b602082015167ffffffffffffffff16612e1e57805462010000900467ffffffffffffffff1660208301525b604082015173ffffffffffffffffffffffffffffffffffffffff16612e695780546a0100000000000000000000900473ffffffffffffffffffffffffffffffffffffffff1660408301525b606082015161ffff16612ea45780547e01000000000000000000000000000000000000000000000000000000000000900461ffff1660608301525b608082015167ffffffffffffffff16612ecc57600181015467ffffffffffffffff1660808301525b60a082015173ffffffffffffffffffffffffffffffffffffffff16612f1857600181015468010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1660a08301525b509392505050565b61271081565b600c6020526000908152604090205461ffff1681565b600d60209081526000928352604080842090915290825290205460ff1681565b600f6020908152600093845260408085208252928452828420905282529020805460019091015482565b600b60209081526000928352604080842090915290825290205473ffffffffffffffffffffffffffffffffffffffff1681565b60086020908152600092835260408084209091529082529020805460019091015461ffff8083169267ffffffffffffffff62010000820481169373ffffffffffffffffffffffffffffffffffffffff6a010000000000000000000084048116947e010000000000000000000000000000000000000000000000000000000000009094049093169291811691680100000000000000009091041686565b73ffffffffffffffffffffffffffffffffffffffff1660009081526005602052604090205490565b60106020526000908152604090205481565b613097613939565b73ffffffffffffffffffffffffffffffffffffffff166130b5612ccc565b73ffffffffffffffffffffffffffffffffffffffff161461311d576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61ffff8083166000908152600d60209081526040808320938516835292905281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055517fec23bee6f88cfecebb09d6aaaed66f0ce110debc1f61117c8270a7116597df9a906129b09084908490615373565b6131a0613f43565b5073ffffffffffffffffffffffffffffffffffffffff83166000908152600f6020908152604080832061ffff86168452825280832084845282529182902082518084019093528054835260010154908201529392505050565b613201613939565b73ffffffffffffffffffffffffffffffffffffffff1661321f612ccc565b73ffffffffffffffffffffffffffffffffffffffff1614613287576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61ffff8216600090815260106020526040902054156132b85760405162461bcd60e51b8152600401610a1290614eb5565b61ffff821660009081526010602052604090819020829055517f0dad975e1d2fbe771c95cdcc7be9a1e61181de7173abe0a32b8f8f83140873e5906129b090849084906152d4565b613308613939565b73ffffffffffffffffffffffffffffffffffffffff16613326612ccc565b73ffffffffffffffffffffffffffffffffffffffff161461338e576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff81166133c15760405162461bcd60e51b8152600401610a1290614e58565b600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83161790556040517fcb7ef3e545f5cdb893f5c568ba710fe08f336375a2d9fd66e161033f8fc09ef3906122d6908390614813565b613439613939565b73ffffffffffffffffffffffffffffffffffffffff16613457612ccc565b73ffffffffffffffffffffffffffffffffffffffff16146134bf576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff81166135115760405162461bcd60e51b815260040180806020018281038252602681526020018061569f6026913960400191505060405180910390fd5b60015460405173ffffffffffffffffffffffffffffffffffffffff8084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60075481565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1633146135fa5760405162461bcd60e51b8152600401610a1290614f6f565b73ffffffffffffffffffffffffffffffffffffffff8416600090815260086020908152604080832061ffff89168452909152902060018414156136b4576000613645838501856142fd565b61ffff8089166000908152600c602052604090205491925090811690821611156136815760405162461bcd60e51b8152600401610a1290614dfb565b81547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001661ffff919091161781556138f4565b600284141561370b5760006136cb8385018561468f565b825467ffffffffffffffff90911662010000027fffffffffffffffffffffffffffffffffffffffffffff0000000000000000ffff909116178255506138f4565b600384141561377657600061372283850185614072565b825473ffffffffffffffffffffffffffffffffffffffff9091166a0100000000000000000000027fffff0000000000000000000000000000000000000000ffffffffffffffffffff909116178255506138f4565b600484141561383057600061378d838501856142fd565b61ffff8089166000908152600d602090815260408083209385168352929052205490915060ff16806137c1575061ffff8116155b6137dd5760405162461bcd60e51b8152600401610a129061490f565b815461ffff9091167e01000000000000000000000000000000000000000000000000000000000000027dffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9091161781556138f4565b60058414156138885760006138478385018561468f565b6001830180547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff92909216919091179055506138f4565b600684141561218657600061389f83850185614072565b60018301805473ffffffffffffffffffffffffffffffffffffffff90921668010000000000000000027fffffffff0000000000000000000000000000000000000000ffffffffffffffff909216919091179055505b7ffc01bf86212a14151d51d1be5c2ac64d67d5ec823dfc6f53298d7ce3f3d3d252858585856040516139299493929190614865565b60405180910390a1505050505050565b3390565b600082821115613994576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60008282018381101561219e576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6040805173ffffffffffffffffffffffffffffffffffffffff80861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052613a89908590613b21565b50505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052613b1c908490613b21565b505050565b6000613b83826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16613bdf9092919063ffffffff16565b805190915015613b1c57808060200190516020811015613ba257600080fd5b5051613b1c5760405162461bcd60e51b815260040180806020018281038252602a8152602001806156eb602a913960400191505060405180910390fd5b6060613bee8484600085613bf6565b949350505050565b606082471015613c375760405162461bcd60e51b81526004018080602001828103825260268152602001806156c56026913960400191505060405180910390fd5b613c4085613d7c565b613c91576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b60208310613cfa57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101613cbd565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114613d5c576040519150601f19603f3d011682016040523d82523d6000602084013e613d61565b606091505b5091509150613d71828286613d82565b979650505050505050565b3b151590565b60608315613d9157508161219e565b825115613da15782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613deb578181015183820152602001613dd3565b50505050905090810190601f168015613e185780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6040805160e08101825260008082526020820181905291810182905260608082018390526080820181905260a082019290925260c081019190915290565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282613e9a5760008555613efe565b82601f10613ed1578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00823516178555613efe565b82800160010185558215613efe579182015b82811115613efe578235825591602001919060010190613ee3565b50613f0a929150613f5a565b5090565b6040805160c081018252600080825260208201819052918101829052606081018290526080810182905260a081019190915290565b604080518082019091526000808252602082015290565b5b80821115613f0a5760008155600101613f5b565b803561265481615653565b805161265481615653565b60008083601f840112613f96578182fd5b50813567ffffffffffffffff811115613fad578182fd5b602083019150836020828501011115613fc557600080fd5b9250929050565b600082601f830112613fdc578081fd5b815167ffffffffffffffff811115613ff057fe5b61402160207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601615603565b818152846020838601011115614035578283fd5b613bee826020830160208701615627565b803561265481615678565b805161265481615678565b803561265481615688565b805161265481615688565b600060208284031215614083578081fd5b813561219e81615653565b600080604083850312156140a0578081fd5b82356140ab81615653565b915060208301356140bb81615678565b809150509250929050565b6000806000606084860312156140da578081fd5b83356140e581615653565b925060208401356140f581615678565b929592945050506040919091013590565b60008060408385031215614118578182fd5b823561412381615653565b946020939093013593505050565b60008060008060008060008060008060006101008c8e031215614152578687fd5b61415b8c613f6f565b9a5061416960208d0161405c565b995061417760408d01614046565b985067ffffffffffffffff8060608e01351115614192578788fd5b6141a28e60608f01358f01613f85565b909950975060808d01358110156141b7578687fd5b6141c78e60808f01358f01613f85565b90975095506141d860a08e01613f6f565b94506141e660c08e01613f6f565b93508060e08e013511156141f8578283fd5b506142098d60e08e01358e01613f85565b81935080925050509295989b509295989b9093969950565b600060208284031215614232578081fd5b815167ffffffffffffffff80821115614249578283fd5b9083019060e0828603121561425c578283fd5b61426660e0615603565b61426f83614051565b815261427d60208401614051565b602082015261428e60408401614067565b604082015261429f60608401613f7a565b60608201526080830151828111156142b5578485fd5b6142c187828601613fcc565b60808301525060a083015160a082015260c0830151828111156142e2578485fd5b6142ee87828601613fcc565b60c08301525095945050505050565b60006020828403121561430e578081fd5b813561219e81615678565b6000806040838503121561432b578182fd5b823561433681615678565b915060208301356140bb81615653565b600080600080600080600060a0888a031215614360578081fd5b873561436b81615678565b9650602088013561437b81615653565b9550604088013567ffffffffffffffff80821115614397578283fd5b6143a38b838c01613f85565b909750955060608a0135915081151582146143bc578283fd5b909350608089013590808211156143d1578283fd5b506143de8a828b01613f85565b989b979a50959850939692959293505050565b600080600060608486031215614405578081fd5b833561441081615678565b925060208401356140f581615653565b60008060008060008060a08789031215614438578384fd5b863561444381615678565b9550602087013561445381615653565b94506040870135935060608701359250608087013567ffffffffffffffff81111561447c578283fd5b61448889828a01613f85565b979a9699509497509295939492505050565b6000806000806000608086880312156144b1578283fd5b85356144bc81615678565b945060208601356144cc81615653565b935060408601359250606086013567ffffffffffffffff8111156144ee578182fd5b6144fa88828901613f85565b969995985093965092949392505050565b6000806040838503121561451d578182fd5b823561412381615678565b6000806000806080858703121561453d578182fd5b843561454881615678565b966020860135965060408601359560600135945092505050565b60008060408385031215614574578182fd5b82356140ab81615678565b60008060008060608587031215614594578182fd5b843561459f81615678565b935060208501356145af81615678565b9250604085013567ffffffffffffffff8111156145ca578283fd5b6145d687828801613f85565b95989497509550505050565b600080600080600080600060e0888a0312156145fc578081fd5b873561460781615678565b9650602088013561461781615678565b9550604088013561462781615688565b9450606088013561463781615653565b9350608088013561464781615678565b925060a088013561465781615678565b915060c088013561466781615653565b8091505092959891949750929550565b600060208284031215614688578081fd5b5051919050565b6000602082840312156146a0578081fd5b813561219e81615688565b600080600080608085870312156146c0578182fd5b843560ff811681146146d0578283fd5b935060208501356146e081615653565b925060408501356146f081615653565b9396929550929360600135925050565b600082845282826020860137806020848601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f85011685010190509392505050565b60008151808452614760816020860160208601615627565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b90565b60007fffffffffffffffff0000000000000000000000000000000000000000000000008860c01b1682527fffffffffffffffffffffffffffffffffffffffff0000000000000000000000008760601b1660088301528486601c840137848201601c81018281528486823750909201601c019182525095945050505050565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff9384168152919092166020820152604081019190915260600190565b600073ffffffffffffffffffffffffffffffffffffffff861682528460208301526060604083015261489b606083018486614700565b9695505050505050565b901515815260200190565b92151583526020830191909152604082015260600190565b90815260200190565b6000858252606060208301526148eb606083018587614700565b905082604083015295945050505050565b60006020825261219e6020830184614748565b60208082526026908201527f4c617965725a65726f3a20696e76616c6964206f7574626f756e642070726f6f60408201527f6620747970650000000000000000000000000000000000000000000000000000606082015260800190565b60208082526018908201527f4c617965725a65726f3a206f6e6c792074726561737572790000000000000000604082015260600190565b6020808252601e908201527f4c617965725a65726f3a20496e76616c696420636f6e66696720747970650000604082015260600190565b6020808252601a908201527f4c617965725a65726f3a207769746864726177206661696c6564000000000000604082015260600190565b60208082526025908201527f4c617965725a65726f3a206e6f7420656e6f756768206e617469766520666f7260408201527f2066656573000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526031908201527f4c617965725a65726f3a205f6c617965725a65726f546f6b656e2063616e6e6f60408201527f74206265207a65726f2061646472657373000000000000000000000000000000606082015260800190565b60208082526022908201527f4c617965725a65726f3a20696e76616c69642072656c6179657220616464726560408201527f7373000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601b908201527f4c617965725a65726f3a206661696c656420746f20726566756e640000000000604082015260600190565b6020808252602b908201527f4c617965725a65726f3a206d75737420626520706169642062792073656e646560408201527f72206f72206f726967696e000000000000000000000000000000000000000000606082015260800190565b60208082526021908201527f4c617965725a65726f3a20636861696e496420646f6573206e6f74206578697360408201527f7400000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526021908201527f4c617965725a65726f3a20696e76616c6964206f7261636c652061646472657360408201527f7300000000000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601e908201527f4c617965725a65726f3a20696e76616c69642064737420616464726573730000604082015260600190565b6020808252601a908201527f4c617965725a65726f3a20696e76616c69642072656c61796572000000000000604082015260600190565b60208082526029908201527f4c617965725a65726f3a206c6962726172792063616e6e6f74206265207a657260408201527f6f20616464726573730000000000000000000000000000000000000000000000606082015260800190565b60208082526043908201527f4c617965725a65726f3a206f7261636c6520646174612063616e206f6e6c792060408201527f75706461746520696620697420686173206d6f726520636f6e6669726d61746960608201527f6f6e730000000000000000000000000000000000000000000000000000000000608082015260a00190565b60208082526017908201527f4c617965725a65726f3a6f6e6c79207472656173757279000000000000000000604082015260600190565b60208082526030908201527f4c617965725a65726f3a20696e76616c696420696e626f756e642070726f6f6660408201527f206c6962726172792076657273696f6e00000000000000000000000000000000606082015260800190565b6020808252602a908201527f4c617965725a65726f3a2074726561737572792063616e6e6f74206265207a6560408201527f726f206164647265737300000000000000000000000000000000000000000000606082015260800190565b60208082526021908201527f4c617965725a65726f3a2072656d6f746520756c6e20616c726561647920736560408201527f7400000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526022908201527f4c617965725a65726f3a2063616e206e6f7420616464206e6577206c6962726160408201527f7279000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526018908201527f4c617965725a65726f3a206f6e6c7920656e64706f696e740000000000000000604082015260600190565b6020808252602e908201527f4c617965725a65726f3a20696e76616c6964206f7574626f756e6420626c6f6360408201527f6b20636f6e6669726d6174696f6e000000000000000000000000000000000000606082015260800190565b60208082526024908201527f4c617965725a65726f3a20756e737570706f727465642077697468647261772060408201527f7479706500000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526028908201527f4c617965725a65726f3a205f7061636b65742e756c6e4164647265737320697360408201527f20696e76616c6964000000000000000000000000000000000000000000000000606082015260800190565b60208082526030908201527f4c617965725a65726f3a2072656d6f746520636861696e20616464726573732060408201527f73697a6520616c72656164792073657400000000000000000000000000000000606082015260800190565b6020808252602d908201527f4c617965725a65726f3a20696e76616c696420696e626f756e6420626c6f636b60408201527f20636f6e6669726d6174696f6e00000000000000000000000000000000000000606082015260800190565b60208082526029908201527f4c617965725a65726f3a206e6f7420656e6f75676820626c6f636b20636f6e6660408201527f69726d6174696f6e730000000000000000000000000000000000000000000000606082015260800190565b600060c08201905061ffff808451168352602084015167ffffffffffffffff80821660208601526040860151915073ffffffffffffffffffffffffffffffffffffffff80831660408701528360608801511660608701528160808801511660808701528060a08801511660a08701525050505092915050565b815181526020918201519181019190915260400190565b61ffff91909116815260200190565b61ffff92909216825273ffffffffffffffffffffffffffffffffffffffff16602082015260400190565b61ffff94909416845273ffffffffffffffffffffffffffffffffffffffff9290921660208401526040830152606082015260800190565b61ffff929092168252602082015260400190565b600061ffff8416825260406020830152613bee6040830184614748565b600061ffff8816825260c0602083015261532260c0830188614748565b73ffffffffffffffffffffffffffffffffffffffff8716604084015267ffffffffffffffff8616606084015284608084015282810360a08401526153668185614748565b9998505050505050505050565b61ffff92831681529116602082015260400190565b600061ffff808916835280881660208401525073ffffffffffffffffffffffffffffffffffffffff8616604083015284606083015260a060808301526153d260a083018486614700565b98975050505050505050565b600061ffff808816835280871660208401525073ffffffffffffffffffffffffffffffffffffffff8516604083015283606083015260a06080830152613d7160a0830184614748565b600061ffff80871683528086166020840152506060604083015261489b606083018486614700565b600061ffff8086168352808516602084015250606060408301526154766060830184614748565b95945050505050565b61ffff938416815291909216602082015267ffffffffffffffff909116604082015260600190565b61ffff9788168152958716602087015267ffffffffffffffff94909416604086015273ffffffffffffffffffffffffffffffffffffffff9283166060860152908516608085015290931660a083015290911660c082015260e00190565b61ffff968716815267ffffffffffffffff958616602082015273ffffffffffffffffffffffffffffffffffffffff948516604082015292909516606083015290921660808301529190911660a082015260c00190565b600061ffff808816835267ffffffffffffffff8716602084015280861660408401525060806060830152613d71608083018486614700565b918252602082015260400190565b67ffffffffffffffff91909116815260200190565b60ff91909116815260200190565b60ff95909516855273ffffffffffffffffffffffffffffffffffffffff938416602086015291831660408501529091166060830152608082015260a00190565b60405181810167ffffffffffffffff8111828210171561561f57fe5b604052919050565b60005b8381101561564257818101518382015260200161562a565b83811115613a895750506000910152565b73ffffffffffffffffffffffffffffffffffffffff8116811461567557600080fd5b50565b61ffff8116811461567557600080fd5b67ffffffffffffffff8116811461567557600080fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a264697066735822122031baf7877904c35ac6d2a37a446a3f6a27e25dd40872d7c61f331994e03f36b064736f6c63430007060033",
1508
1508
  "devdoc": {
1509
1509
  "kind": "dev",
1510
1510
  "methods": {
@@ -1544,7 +1544,7 @@
1544
1544
  "type": "t_address"
1545
1545
  },
1546
1546
  {
1547
- "astId": 8543,
1547
+ "astId": 8598,
1548
1548
  "contract": "contracts/UltraLightNode.sol:UltraLightNode",
1549
1549
  "label": "layerZeroToken",
1550
1550
  "offset": 0,
@@ -1552,15 +1552,15 @@
1552
1552
  "type": "t_contract(IERC20)1690"
1553
1553
  },
1554
1554
  {
1555
- "astId": 8545,
1555
+ "astId": 8600,
1556
1556
  "contract": "contracts/UltraLightNode.sol:UltraLightNode",
1557
1557
  "label": "treasuryContract",
1558
1558
  "offset": 0,
1559
1559
  "slot": "3",
1560
- "type": "t_contract(ILayerZeroTreasury)17021"
1560
+ "type": "t_contract(ILayerZeroTreasury)17076"
1561
1561
  },
1562
1562
  {
1563
- "astId": 8561,
1563
+ "astId": 8616,
1564
1564
  "contract": "contracts/UltraLightNode.sol:UltraLightNode",
1565
1565
  "label": "oracleQuotedFees",
1566
1566
  "offset": 0,
@@ -1568,7 +1568,7 @@
1568
1568
  "type": "t_mapping(t_address,t_uint256)"
1569
1569
  },
1570
1570
  {
1571
- "astId": 8565,
1571
+ "astId": 8620,
1572
1572
  "contract": "contracts/UltraLightNode.sol:UltraLightNode",
1573
1573
  "label": "relayerQuotedFees",
1574
1574
  "offset": 0,
@@ -1576,7 +1576,7 @@
1576
1576
  "type": "t_mapping(t_address,t_uint256)"
1577
1577
  },
1578
1578
  {
1579
- "astId": 8567,
1579
+ "astId": 8622,
1580
1580
  "contract": "contracts/UltraLightNode.sol:UltraLightNode",
1581
1581
  "label": "treasuryNativeFees",
1582
1582
  "offset": 0,
@@ -1584,7 +1584,7 @@
1584
1584
  "type": "t_uint256"
1585
1585
  },
1586
1586
  {
1587
- "astId": 8569,
1587
+ "astId": 8624,
1588
1588
  "contract": "contracts/UltraLightNode.sol:UltraLightNode",
1589
1589
  "label": "treasuryZROFees",
1590
1590
  "offset": 0,
@@ -1592,23 +1592,23 @@
1592
1592
  "type": "t_uint256"
1593
1593
  },
1594
1594
  {
1595
- "astId": 8575,
1595
+ "astId": 8630,
1596
1596
  "contract": "contracts/UltraLightNode.sol:UltraLightNode",
1597
1597
  "label": "appConfig",
1598
1598
  "offset": 0,
1599
1599
  "slot": "8",
1600
- "type": "t_mapping(t_address,t_mapping(t_uint16,t_struct(ApplicationConfiguration)8541_storage))"
1600
+ "type": "t_mapping(t_address,t_mapping(t_uint16,t_struct(ApplicationConfiguration)8596_storage))"
1601
1601
  },
1602
1602
  {
1603
- "astId": 8579,
1603
+ "astId": 8634,
1604
1604
  "contract": "contracts/UltraLightNode.sol:UltraLightNode",
1605
1605
  "label": "defaultAppConfig",
1606
1606
  "offset": 0,
1607
1607
  "slot": "9",
1608
- "type": "t_mapping(t_uint16,t_struct(ApplicationConfiguration)8541_storage)"
1608
+ "type": "t_mapping(t_uint16,t_struct(ApplicationConfiguration)8596_storage)"
1609
1609
  },
1610
1610
  {
1611
- "astId": 8585,
1611
+ "astId": 8640,
1612
1612
  "contract": "contracts/UltraLightNode.sol:UltraLightNode",
1613
1613
  "label": "defaultAdapterParams",
1614
1614
  "offset": 0,
@@ -1616,7 +1616,7 @@
1616
1616
  "type": "t_mapping(t_uint16,t_mapping(t_uint16,t_bytes_storage))"
1617
1617
  },
1618
1618
  {
1619
- "astId": 8591,
1619
+ "astId": 8646,
1620
1620
  "contract": "contracts/UltraLightNode.sol:UltraLightNode",
1621
1621
  "label": "inboundProofLibrary",
1622
1622
  "offset": 0,
@@ -1624,7 +1624,7 @@
1624
1624
  "type": "t_mapping(t_uint16,t_mapping(t_uint16,t_address))"
1625
1625
  },
1626
1626
  {
1627
- "astId": 8595,
1627
+ "astId": 8650,
1628
1628
  "contract": "contracts/UltraLightNode.sol:UltraLightNode",
1629
1629
  "label": "maxInboundProofLibrary",
1630
1630
  "offset": 0,
@@ -1632,7 +1632,7 @@
1632
1632
  "type": "t_mapping(t_uint16,t_uint16)"
1633
1633
  },
1634
1634
  {
1635
- "astId": 8601,
1635
+ "astId": 8656,
1636
1636
  "contract": "contracts/UltraLightNode.sol:UltraLightNode",
1637
1637
  "label": "supportedOutboundProof",
1638
1638
  "offset": 0,
@@ -1640,7 +1640,7 @@
1640
1640
  "type": "t_mapping(t_uint16,t_mapping(t_uint16,t_bool))"
1641
1641
  },
1642
1642
  {
1643
- "astId": 8605,
1643
+ "astId": 8660,
1644
1644
  "contract": "contracts/UltraLightNode.sol:UltraLightNode",
1645
1645
  "label": "chainAddressSizeMap",
1646
1646
  "offset": 0,
@@ -1648,15 +1648,15 @@
1648
1648
  "type": "t_mapping(t_uint16,t_uint256)"
1649
1649
  },
1650
1650
  {
1651
- "astId": 8613,
1651
+ "astId": 8668,
1652
1652
  "contract": "contracts/UltraLightNode.sol:UltraLightNode",
1653
1653
  "label": "hashLookup",
1654
1654
  "offset": 0,
1655
1655
  "slot": "15",
1656
- "type": "t_mapping(t_address,t_mapping(t_uint16,t_mapping(t_bytes32,t_struct(BlockData)8510_storage)))"
1656
+ "type": "t_mapping(t_address,t_mapping(t_uint16,t_mapping(t_bytes32,t_struct(BlockData)8565_storage)))"
1657
1657
  },
1658
1658
  {
1659
- "astId": 8617,
1659
+ "astId": 8672,
1660
1660
  "contract": "contracts/UltraLightNode.sol:UltraLightNode",
1661
1661
  "label": "ulnLookup",
1662
1662
  "offset": 0,
@@ -1690,24 +1690,24 @@
1690
1690
  "label": "contract IERC20",
1691
1691
  "numberOfBytes": "20"
1692
1692
  },
1693
- "t_contract(ILayerZeroTreasury)17021": {
1693
+ "t_contract(ILayerZeroTreasury)17076": {
1694
1694
  "encoding": "inplace",
1695
1695
  "label": "contract ILayerZeroTreasury",
1696
1696
  "numberOfBytes": "20"
1697
1697
  },
1698
- "t_mapping(t_address,t_mapping(t_uint16,t_mapping(t_bytes32,t_struct(BlockData)8510_storage)))": {
1698
+ "t_mapping(t_address,t_mapping(t_uint16,t_mapping(t_bytes32,t_struct(BlockData)8565_storage)))": {
1699
1699
  "encoding": "mapping",
1700
1700
  "key": "t_address",
1701
1701
  "label": "mapping(address => mapping(uint16 => mapping(bytes32 => struct UltraLightNode.BlockData)))",
1702
1702
  "numberOfBytes": "32",
1703
- "value": "t_mapping(t_uint16,t_mapping(t_bytes32,t_struct(BlockData)8510_storage))"
1703
+ "value": "t_mapping(t_uint16,t_mapping(t_bytes32,t_struct(BlockData)8565_storage))"
1704
1704
  },
1705
- "t_mapping(t_address,t_mapping(t_uint16,t_struct(ApplicationConfiguration)8541_storage))": {
1705
+ "t_mapping(t_address,t_mapping(t_uint16,t_struct(ApplicationConfiguration)8596_storage))": {
1706
1706
  "encoding": "mapping",
1707
1707
  "key": "t_address",
1708
1708
  "label": "mapping(address => mapping(uint16 => struct UltraLightNode.ApplicationConfiguration))",
1709
1709
  "numberOfBytes": "32",
1710
- "value": "t_mapping(t_uint16,t_struct(ApplicationConfiguration)8541_storage)"
1710
+ "value": "t_mapping(t_uint16,t_struct(ApplicationConfiguration)8596_storage)"
1711
1711
  },
1712
1712
  "t_mapping(t_address,t_uint256)": {
1713
1713
  "encoding": "mapping",
@@ -1716,12 +1716,12 @@
1716
1716
  "numberOfBytes": "32",
1717
1717
  "value": "t_uint256"
1718
1718
  },
1719
- "t_mapping(t_bytes32,t_struct(BlockData)8510_storage)": {
1719
+ "t_mapping(t_bytes32,t_struct(BlockData)8565_storage)": {
1720
1720
  "encoding": "mapping",
1721
1721
  "key": "t_bytes32",
1722
1722
  "label": "mapping(bytes32 => struct UltraLightNode.BlockData)",
1723
1723
  "numberOfBytes": "32",
1724
- "value": "t_struct(BlockData)8510_storage"
1724
+ "value": "t_struct(BlockData)8565_storage"
1725
1725
  },
1726
1726
  "t_mapping(t_uint16,t_address)": {
1727
1727
  "encoding": "mapping",
@@ -1751,12 +1751,12 @@
1751
1751
  "numberOfBytes": "32",
1752
1752
  "value": "t_bytes_storage"
1753
1753
  },
1754
- "t_mapping(t_uint16,t_mapping(t_bytes32,t_struct(BlockData)8510_storage))": {
1754
+ "t_mapping(t_uint16,t_mapping(t_bytes32,t_struct(BlockData)8565_storage))": {
1755
1755
  "encoding": "mapping",
1756
1756
  "key": "t_uint16",
1757
1757
  "label": "mapping(uint16 => mapping(bytes32 => struct UltraLightNode.BlockData))",
1758
1758
  "numberOfBytes": "32",
1759
- "value": "t_mapping(t_bytes32,t_struct(BlockData)8510_storage)"
1759
+ "value": "t_mapping(t_bytes32,t_struct(BlockData)8565_storage)"
1760
1760
  },
1761
1761
  "t_mapping(t_uint16,t_mapping(t_uint16,t_address))": {
1762
1762
  "encoding": "mapping",
@@ -1779,12 +1779,12 @@
1779
1779
  "numberOfBytes": "32",
1780
1780
  "value": "t_mapping(t_uint16,t_bytes_storage)"
1781
1781
  },
1782
- "t_mapping(t_uint16,t_struct(ApplicationConfiguration)8541_storage)": {
1782
+ "t_mapping(t_uint16,t_struct(ApplicationConfiguration)8596_storage)": {
1783
1783
  "encoding": "mapping",
1784
1784
  "key": "t_uint16",
1785
1785
  "label": "mapping(uint16 => struct UltraLightNode.ApplicationConfiguration)",
1786
1786
  "numberOfBytes": "32",
1787
- "value": "t_struct(ApplicationConfiguration)8541_storage"
1787
+ "value": "t_struct(ApplicationConfiguration)8596_storage"
1788
1788
  },
1789
1789
  "t_mapping(t_uint16,t_uint16)": {
1790
1790
  "encoding": "mapping",
@@ -1800,12 +1800,12 @@
1800
1800
  "numberOfBytes": "32",
1801
1801
  "value": "t_uint256"
1802
1802
  },
1803
- "t_struct(ApplicationConfiguration)8541_storage": {
1803
+ "t_struct(ApplicationConfiguration)8596_storage": {
1804
1804
  "encoding": "inplace",
1805
1805
  "label": "struct UltraLightNode.ApplicationConfiguration",
1806
1806
  "members": [
1807
1807
  {
1808
- "astId": 8530,
1808
+ "astId": 8585,
1809
1809
  "contract": "contracts/UltraLightNode.sol:UltraLightNode",
1810
1810
  "label": "inboundProofLibraryVersion",
1811
1811
  "offset": 0,
@@ -1813,7 +1813,7 @@
1813
1813
  "type": "t_uint16"
1814
1814
  },
1815
1815
  {
1816
- "astId": 8532,
1816
+ "astId": 8587,
1817
1817
  "contract": "contracts/UltraLightNode.sol:UltraLightNode",
1818
1818
  "label": "inboundBlockConfirmations",
1819
1819
  "offset": 2,
@@ -1821,7 +1821,7 @@
1821
1821
  "type": "t_uint64"
1822
1822
  },
1823
1823
  {
1824
- "astId": 8534,
1824
+ "astId": 8589,
1825
1825
  "contract": "contracts/UltraLightNode.sol:UltraLightNode",
1826
1826
  "label": "relayer",
1827
1827
  "offset": 10,
@@ -1829,7 +1829,7 @@
1829
1829
  "type": "t_address"
1830
1830
  },
1831
1831
  {
1832
- "astId": 8536,
1832
+ "astId": 8591,
1833
1833
  "contract": "contracts/UltraLightNode.sol:UltraLightNode",
1834
1834
  "label": "outboundProofType",
1835
1835
  "offset": 30,
@@ -1837,7 +1837,7 @@
1837
1837
  "type": "t_uint16"
1838
1838
  },
1839
1839
  {
1840
- "astId": 8538,
1840
+ "astId": 8593,
1841
1841
  "contract": "contracts/UltraLightNode.sol:UltraLightNode",
1842
1842
  "label": "outboundBlockConfirmations",
1843
1843
  "offset": 0,
@@ -1845,7 +1845,7 @@
1845
1845
  "type": "t_uint64"
1846
1846
  },
1847
1847
  {
1848
- "astId": 8540,
1848
+ "astId": 8595,
1849
1849
  "contract": "contracts/UltraLightNode.sol:UltraLightNode",
1850
1850
  "label": "oracle",
1851
1851
  "offset": 8,
@@ -1855,12 +1855,12 @@
1855
1855
  ],
1856
1856
  "numberOfBytes": "64"
1857
1857
  },
1858
- "t_struct(BlockData)8510_storage": {
1858
+ "t_struct(BlockData)8565_storage": {
1859
1859
  "encoding": "inplace",
1860
1860
  "label": "struct UltraLightNode.BlockData",
1861
1861
  "members": [
1862
1862
  {
1863
- "astId": 8507,
1863
+ "astId": 8562,
1864
1864
  "contract": "contracts/UltraLightNode.sol:UltraLightNode",
1865
1865
  "label": "confirmations",
1866
1866
  "offset": 0,
@@ -1868,7 +1868,7 @@
1868
1868
  "type": "t_uint256"
1869
1869
  },
1870
1870
  {
1871
- "astId": 8509,
1871
+ "astId": 8564,
1872
1872
  "contract": "contracts/UltraLightNode.sol:UltraLightNode",
1873
1873
  "label": "data",
1874
1874
  "offset": 0,