@stargatefinance/stg-evm-sdk-v2 1.0.0 → 1.0.2

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 (110) hide show
  1. package/deployments/iota-mainnet/CreditMessaging.json +1501 -0
  2. package/deployments/iota-mainnet/FeeLibV1ETH.json +611 -0
  3. package/deployments/iota-mainnet/FeeLibV1USDC.json +611 -0
  4. package/deployments/iota-mainnet/FeeLibV1USDT.json +611 -0
  5. package/deployments/iota-mainnet/OFTTokenETH.json +693 -0
  6. package/deployments/iota-mainnet/StargateOFTETH.json +1968 -0
  7. package/deployments/iota-mainnet/StargateOFTUSDC.json +1957 -0
  8. package/deployments/iota-mainnet/StargateOFTUSDT.json +1968 -0
  9. package/deployments/iota-mainnet/TokenMessaging.json +2470 -0
  10. package/deployments/iota-mainnet/Treasurer.json +450 -0
  11. package/deployments/iota-mainnet/USDCImpl.json +2132 -0
  12. package/deployments/iota-mainnet/USDCProxy.json +205 -0
  13. package/deployments/iota-mainnet/USDCSignatureLib.json +80 -0
  14. package/deployments/iota-mainnet/USDT.json +754 -0
  15. package/deployments/sei-mainnet/CreditMessaging.json +1501 -0
  16. package/deployments/sei-mainnet/FeeLibV1ETH.json +611 -0
  17. package/deployments/sei-mainnet/OFTTokenETH.json +693 -0
  18. package/deployments/sei-mainnet/StargateOFTETH.json +1968 -0
  19. package/deployments/sei-mainnet/TokenMessaging.json +2470 -0
  20. package/deployments/sei-mainnet/Treasurer.json +450 -0
  21. package/deployments/taiko-mainnet/CreditMessaging.json +1501 -0
  22. package/deployments/taiko-mainnet/FeeLibV1USDC.json +611 -0
  23. package/deployments/taiko-mainnet/FeeLibV1USDT.json +611 -0
  24. package/deployments/taiko-mainnet/StargateOFTUSDC.json +1957 -0
  25. package/deployments/taiko-mainnet/StargateOFTUSDT.json +1968 -0
  26. package/deployments/taiko-mainnet/TokenMessaging.json +2470 -0
  27. package/deployments/taiko-mainnet/Treasurer.json +450 -0
  28. package/deployments/taiko-mainnet/USDCImpl.json +2132 -0
  29. package/deployments/taiko-mainnet/USDCProxy.json +205 -0
  30. package/deployments/taiko-mainnet/USDCSignatureLib.json +80 -0
  31. package/deployments/taiko-mainnet/USDT.json +754 -0
  32. package/deployments/xchain-mainnet/CreditMessaging.json +1501 -0
  33. package/deployments/xchain-mainnet/FeeLibV1USDC.json +611 -0
  34. package/deployments/xchain-mainnet/StargateOFTUSDC.json +1957 -0
  35. package/deployments/xchain-mainnet/TokenMessaging.json +2470 -0
  36. package/deployments/xchain-mainnet/Treasurer.json +450 -0
  37. package/deployments/xchain-mainnet/USDCImpl.json +2132 -0
  38. package/deployments/xchain-mainnet/USDCProxy.json +205 -0
  39. package/deployments/xchain-mainnet/USDCSignatureLib.json +80 -0
  40. package/dist/deployed/CreditMessaging.cjs +12 -0
  41. package/dist/deployed/CreditMessaging.cjs.map +1 -1
  42. package/dist/deployed/CreditMessaging.mjs +12 -0
  43. package/dist/deployed/CreditMessaging.mjs.map +1 -1
  44. package/dist/deployed/FeeLibV1ETH.cjs +6 -0
  45. package/dist/deployed/FeeLibV1ETH.cjs.map +1 -1
  46. package/dist/deployed/FeeLibV1ETH.mjs +6 -0
  47. package/dist/deployed/FeeLibV1ETH.mjs.map +1 -1
  48. package/dist/deployed/FeeLibV1USDC.cjs +12 -3
  49. package/dist/deployed/FeeLibV1USDC.cjs.map +1 -1
  50. package/dist/deployed/FeeLibV1USDC.mjs +12 -3
  51. package/dist/deployed/FeeLibV1USDC.mjs.map +1 -1
  52. package/dist/deployed/FeeLibV1USDT.cjs +9 -3
  53. package/dist/deployed/FeeLibV1USDT.cjs.map +1 -1
  54. package/dist/deployed/FeeLibV1USDT.mjs +9 -3
  55. package/dist/deployed/FeeLibV1USDT.mjs.map +1 -1
  56. package/dist/deployed/OFTTokenETH.cjs +9 -3
  57. package/dist/deployed/OFTTokenETH.cjs.map +1 -1
  58. package/dist/deployed/OFTTokenETH.mjs +9 -3
  59. package/dist/deployed/OFTTokenETH.mjs.map +1 -1
  60. package/dist/deployed/StargateOFTETH.cjs +9 -3
  61. package/dist/deployed/StargateOFTETH.cjs.map +1 -1
  62. package/dist/deployed/StargateOFTETH.mjs +9 -3
  63. package/dist/deployed/StargateOFTETH.mjs.map +1 -1
  64. package/dist/deployed/StargateOFTUSDC.cjs +12 -3
  65. package/dist/deployed/StargateOFTUSDC.cjs.map +1 -1
  66. package/dist/deployed/StargateOFTUSDC.mjs +12 -3
  67. package/dist/deployed/StargateOFTUSDC.mjs.map +1 -1
  68. package/dist/deployed/StargateOFTUSDT.cjs +9 -3
  69. package/dist/deployed/StargateOFTUSDT.cjs.map +1 -1
  70. package/dist/deployed/StargateOFTUSDT.mjs +9 -3
  71. package/dist/deployed/StargateOFTUSDT.mjs.map +1 -1
  72. package/dist/deployed/TokenMessaging.cjs +12 -0
  73. package/dist/deployed/TokenMessaging.cjs.map +1 -1
  74. package/dist/deployed/TokenMessaging.mjs +12 -0
  75. package/dist/deployed/TokenMessaging.mjs.map +1 -1
  76. package/dist/deployed/Treasurer.cjs +12 -0
  77. package/dist/deployed/Treasurer.cjs.map +1 -1
  78. package/dist/deployed/Treasurer.mjs +12 -0
  79. package/dist/deployed/Treasurer.mjs.map +1 -1
  80. package/dist/deployed/USDCImpl.cjs +12 -3
  81. package/dist/deployed/USDCImpl.cjs.map +1 -1
  82. package/dist/deployed/USDCImpl.mjs +12 -3
  83. package/dist/deployed/USDCImpl.mjs.map +1 -1
  84. package/dist/deployed/USDCProxy.cjs +12 -3
  85. package/dist/deployed/USDCProxy.cjs.map +1 -1
  86. package/dist/deployed/USDCProxy.mjs +12 -3
  87. package/dist/deployed/USDCProxy.mjs.map +1 -1
  88. package/dist/deployed/USDCSignatureLib.cjs +12 -3
  89. package/dist/deployed/USDCSignatureLib.cjs.map +1 -1
  90. package/dist/deployed/USDCSignatureLib.mjs +12 -3
  91. package/dist/deployed/USDCSignatureLib.mjs.map +1 -1
  92. package/dist/deployed/USDT.cjs +9 -3
  93. package/dist/deployed/USDT.cjs.map +1 -1
  94. package/dist/deployed/USDT.mjs +9 -3
  95. package/dist/deployed/USDT.mjs.map +1 -1
  96. package/dist/deployed/contracts.cjs +147 -30
  97. package/dist/deployed/contracts.cjs.map +1 -1
  98. package/dist/deployed/contracts.mjs +147 -30
  99. package/dist/deployed/contracts.mjs.map +1 -1
  100. package/dist/deployed/index.cjs +147 -30
  101. package/dist/deployed/index.cjs.map +1 -1
  102. package/dist/deployed/index.mjs +147 -30
  103. package/dist/deployed/index.mjs.map +1 -1
  104. package/dist/index.cjs +511 -202
  105. package/dist/index.cjs.map +1 -1
  106. package/dist/index.d.mts +565 -200
  107. package/dist/index.d.ts +565 -200
  108. package/dist/index.mjs +512 -202
  109. package/dist/index.mjs.map +1 -1
  110. package/package.json +4 -6
@@ -0,0 +1,205 @@
1
+ {
2
+ "address": "0xFbDa5F676cB37624f28265A144A48B0d6e87d3b6",
3
+ "abi": [
4
+ {
5
+ "inputs": [
6
+ {
7
+ "internalType": "address",
8
+ "name": "implementationContract",
9
+ "type": "address"
10
+ }
11
+ ],
12
+ "stateMutability": "nonpayable",
13
+ "type": "constructor"
14
+ },
15
+ {
16
+ "anonymous": false,
17
+ "inputs": [
18
+ {
19
+ "indexed": false,
20
+ "internalType": "address",
21
+ "name": "previousAdmin",
22
+ "type": "address"
23
+ },
24
+ {
25
+ "indexed": false,
26
+ "internalType": "address",
27
+ "name": "newAdmin",
28
+ "type": "address"
29
+ }
30
+ ],
31
+ "name": "AdminChanged",
32
+ "type": "event"
33
+ },
34
+ {
35
+ "anonymous": false,
36
+ "inputs": [
37
+ {
38
+ "indexed": false,
39
+ "internalType": "address",
40
+ "name": "implementation",
41
+ "type": "address"
42
+ }
43
+ ],
44
+ "name": "Upgraded",
45
+ "type": "event"
46
+ },
47
+ {
48
+ "stateMutability": "payable",
49
+ "type": "fallback"
50
+ },
51
+ {
52
+ "inputs": [],
53
+ "name": "admin",
54
+ "outputs": [
55
+ {
56
+ "internalType": "address",
57
+ "name": "",
58
+ "type": "address"
59
+ }
60
+ ],
61
+ "stateMutability": "view",
62
+ "type": "function"
63
+ },
64
+ {
65
+ "inputs": [
66
+ {
67
+ "internalType": "address",
68
+ "name": "newAdmin",
69
+ "type": "address"
70
+ }
71
+ ],
72
+ "name": "changeAdmin",
73
+ "outputs": [],
74
+ "stateMutability": "nonpayable",
75
+ "type": "function"
76
+ },
77
+ {
78
+ "inputs": [],
79
+ "name": "implementation",
80
+ "outputs": [
81
+ {
82
+ "internalType": "address",
83
+ "name": "",
84
+ "type": "address"
85
+ }
86
+ ],
87
+ "stateMutability": "view",
88
+ "type": "function"
89
+ },
90
+ {
91
+ "inputs": [
92
+ {
93
+ "internalType": "address",
94
+ "name": "newImplementation",
95
+ "type": "address"
96
+ }
97
+ ],
98
+ "name": "upgradeTo",
99
+ "outputs": [],
100
+ "stateMutability": "nonpayable",
101
+ "type": "function"
102
+ },
103
+ {
104
+ "inputs": [
105
+ {
106
+ "internalType": "address",
107
+ "name": "newImplementation",
108
+ "type": "address"
109
+ },
110
+ {
111
+ "internalType": "bytes",
112
+ "name": "data",
113
+ "type": "bytes"
114
+ }
115
+ ],
116
+ "name": "upgradeToAndCall",
117
+ "outputs": [],
118
+ "stateMutability": "payable",
119
+ "type": "function"
120
+ }
121
+ ],
122
+ "transactionHash": "0x53659f057c73ec69cedd51631418a46414ec1f84693bb7d58f575892c0c4602f",
123
+ "receipt": {
124
+ "to": null,
125
+ "from": "0x2bE56DE991Dd78F8462d223E14a5DDC22913A295",
126
+ "contractAddress": "0xFbDa5F676cB37624f28265A144A48B0d6e87d3b6",
127
+ "transactionIndex": 1,
128
+ "gasUsed": "536258",
129
+ "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
130
+ "blockHash": "0x24cfcbe49cc1c83946c75d84af5415ccb93885efd9e0593f35469ca32dfe714e",
131
+ "transactionHash": "0x53659f057c73ec69cedd51631418a46414ec1f84693bb7d58f575892c0c4602f",
132
+ "logs": [],
133
+ "blockNumber": 5699,
134
+ "cumulativeGasUsed": "536258",
135
+ "status": 1,
136
+ "byzantium": true
137
+ },
138
+ "args": ["0x3AdAE7Ad0449e26ad2e95059e08CC29ECB93E194"],
139
+ "numDeployments": 1,
140
+ "solcInputHash": "7f30a30e9578a142f505c41026c21857",
141
+ "metadata": "{\"compiler\":{\"version\":\"0.8.22+commit.4fc1097e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"implementationContract\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"previousAdmin\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"AdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"stateMutability\":\"payable\",\"type\":\"fallback\"},{\"inputs\":[],\"name\":\"admin\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"changeAdmin\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"implementation\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"upgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"This contract proxies FiatToken calls and enables FiatToken upgrades\",\"events\":{\"AdminChanged(address,address)\":{\"details\":\"Emitted when the administration has been transferred.\",\"params\":{\"newAdmin\":\"Address of the new admin.\",\"previousAdmin\":\"Address of the previous admin.\"}},\"Upgraded(address)\":{\"details\":\"Emitted when the implementation is upgraded.\",\"params\":{\"implementation\":\"Address of the new implementation.\"}}},\"kind\":\"dev\",\"methods\":{\"admin()\":{\"returns\":{\"_0\":\"The address of the proxy admin.\"}},\"changeAdmin(address)\":{\"details\":\"Changes the admin of the proxy. Only the current admin can call this function.\",\"params\":{\"newAdmin\":\"Address to transfer proxy administration to.\"}},\"implementation()\":{\"returns\":{\"_0\":\"The address of the implementation.\"}},\"upgradeTo(address)\":{\"details\":\"Upgrade the backing implementation of the proxy. Only the admin can call this function.\",\"params\":{\"newImplementation\":\"Address of the new implementation.\"}},\"upgradeToAndCall(address,bytes)\":{\"details\":\"Upgrade the backing implementation of the proxy and call a function on the new implementation. This is useful to initialize the proxied contract.\",\"params\":{\"data\":\"Data to send as msg.data in the low level call. It should include the signature and the parameters of the function to be called, as described in https://solidity.readthedocs.io/en/develop/abi-spec.html#function-selector-and-argument-encoding.\",\"newImplementation\":\"Address of the new implementation.\"}}},\"title\":\"FiatTokenProxy\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/usdc/impl/v1/FiatTokenProxy.sol\":\"FiatTokenProxy\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":5000},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n *\\n * Furthermore, `isContract` will also return true if the target contract within\\n * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\\n * which only has an effect at the end of a transaction.\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x006dd67219697fe68d7fbfdea512e7c4cb64a43565ed86171d67e844982da6fa\",\"license\":\"MIT\"},\"src/usdc/impl/upgradeability/AdminUpgradeabilityProxy.sol\":{\"content\":\"// SPDX-License-Identifier: Apache-2.0\\n\\n/**\\n * Copyright 2023 Circle Internet Financial, LTD. All rights reserved.\\n *\\n *\\n * Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\\n * you may not use this file except in compliance with the License.\\n * You may obtain a copy of the License at\\n *\\n * http://www.apache.org/licenses/LICENSE-2.0\\n *\\n * Unless required by applicable law or agreed to in writing, software\\n * distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\\n * See the License for the specific language governing permissions and\\n * limitations under the License.\\n */\\n\\npragma solidity ^0.8.0;\\n\\nimport { UpgradeabilityProxy } from \\\"./UpgradeabilityProxy.sol\\\";\\n\\n/**\\n * @notice This contract combines an upgradeability proxy with an authorization\\n * mechanism for administrative tasks.\\n * @dev Forked from https://github.com/zeppelinos/zos-lib/blob/8a16ef3ad17ec7430e3a9d2b5e3f39b8204f8c8d/contracts/upgradeability/AdminUpgradeabilityProxy.sol\\n * Modifications:\\n * 1. Reformat, conform to Solidity 0.6 syntax, and add error messages (5/13/20)\\n * 2. Remove ifAdmin modifier from admin() and implementation() (5/13/20)\\n */\\ncontract AdminUpgradeabilityProxy is UpgradeabilityProxy {\\n /**\\n * @dev Emitted when the administration has been transferred.\\n * @param previousAdmin Address of the previous admin.\\n * @param newAdmin Address of the new admin.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"org.zeppelinos.proxy.admin\\\", and is\\n * validated in the constructor.\\n */\\n bytes32 private constant ADMIN_SLOT = 0x10d6a54a4754c8869d6886b5f5d7fbfa5b4522237ea5c60d11bc4e7a1ff9390b;\\n\\n /**\\n * @dev Modifier to check whether the `msg.sender` is the admin.\\n * If it is, it will run the function. Otherwise, it will delegate the call\\n * to the implementation.\\n */\\n modifier ifAdmin() {\\n if (msg.sender == _admin()) {\\n _;\\n } else {\\n _fallback();\\n }\\n }\\n\\n /**\\n * @dev Contract constructor.\\n * It sets the `msg.sender` as the proxy administrator.\\n * @param implementationContract address of the initial implementation.\\n */\\n constructor(address implementationContract) UpgradeabilityProxy(implementationContract) {\\n assert(ADMIN_SLOT == keccak256(\\\"org.zeppelinos.proxy.admin\\\"));\\n\\n _setAdmin(msg.sender);\\n }\\n\\n /**\\n * @return The address of the proxy admin.\\n */\\n function admin() external view returns (address) {\\n return _admin();\\n }\\n\\n /**\\n * @return The address of the implementation.\\n */\\n function implementation() external view returns (address) {\\n return _implementation();\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n * Only the current admin can call this function.\\n * @param newAdmin Address to transfer proxy administration to.\\n */\\n function changeAdmin(address newAdmin) external ifAdmin {\\n require(newAdmin != address(0), \\\"Cannot change the admin of a proxy to the zero address\\\");\\n emit AdminChanged(_admin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev Upgrade the backing implementation of the proxy.\\n * Only the admin can call this function.\\n * @param newImplementation Address of the new implementation.\\n */\\n function upgradeTo(address newImplementation) external ifAdmin {\\n _upgradeTo(newImplementation);\\n }\\n\\n /**\\n * @dev Upgrade the backing implementation of the proxy and call a function\\n * on the new implementation.\\n * This is useful to initialize the proxied contract.\\n * @param newImplementation Address of the new implementation.\\n * @param data Data to send as msg.data in the low level call.\\n * It should include the signature and the parameters of the function to be\\n * called, as described in\\n * https://solidity.readthedocs.io/en/develop/abi-spec.html#function-selector-and-argument-encoding.\\n */\\n function upgradeToAndCall(address newImplementation, bytes calldata data) external payable ifAdmin {\\n _upgradeTo(newImplementation);\\n // prettier-ignore\\n // solhint-disable-next-line avoid-low-level-calls\\n (bool success,) = address(this).call{value: msg.value}(data);\\n // solhint-disable-next-line reason-string\\n require(success);\\n }\\n\\n /**\\n * @return adm The admin slot.\\n */\\n function _admin() internal view returns (address adm) {\\n bytes32 slot = ADMIN_SLOT;\\n\\n assembly {\\n adm := sload(slot)\\n }\\n }\\n\\n /**\\n * @dev Sets the address of the proxy admin.\\n * @param newAdmin Address of the new proxy admin.\\n */\\n function _setAdmin(address newAdmin) internal {\\n bytes32 slot = ADMIN_SLOT;\\n\\n assembly {\\n sstore(slot, newAdmin)\\n }\\n }\\n\\n /**\\n * @dev Only fall back when the sender is not the admin.\\n */\\n function _willFallback() internal override {\\n require(msg.sender != _admin(), \\\"Cannot call fallback function from the proxy admin\\\");\\n super._willFallback();\\n }\\n}\\n\",\"keccak256\":\"0x035d42aaeea9062bd8ed985ad52532b53067afc535f6c7ce2690cbefdf379ea1\",\"license\":\"Apache-2.0\"},\"src/usdc/impl/upgradeability/Proxy.sol\":{\"content\":\"// SPDX-License-Identifier: Apache-2.0\\n\\n/**\\n * Copyright 2023 Circle Internet Financial, LTD. All rights reserved.\\n *\\n *\\n * Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\\n * you may not use this file except in compliance with the License.\\n * You may obtain a copy of the License at\\n *\\n * http://www.apache.org/licenses/LICENSE-2.0\\n *\\n * Unless required by applicable law or agreed to in writing, software\\n * distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\\n * See the License for the specific language governing permissions and\\n * limitations under the License.\\n */\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @notice Implements delegation of calls to other contracts, with proper\\n * forwarding of return values and bubbling of failures.\\n * It defines a fallback function that delegates all calls to the address\\n * returned by the abstract _implementation() internal function.\\n * @dev Forked from https://github.com/zeppelinos/zos-lib/blob/8a16ef3ad17ec7430e3a9d2b5e3f39b8204f8c8d/contracts/upgradeability/Proxy.sol\\n * Modifications:\\n * 1. Reformat and conform to Solidity 0.6 syntax (5/13/20)\\n */\\nabstract contract Proxy {\\n /**\\n * @dev Fallback function.\\n * Implemented entirely in `_fallback`.\\n */\\n fallback() external payable {\\n _fallback();\\n }\\n\\n /**\\n * @return The Address of the implementation.\\n */\\n function _implementation() internal view virtual returns (address);\\n\\n /**\\n * @dev Delegates execution to an implementation contract.\\n * This is a low level function that doesn't return to its internal call site.\\n * It will return to the external caller whatever the implementation returns.\\n * @param implementation Address to delegate.\\n */\\n function _delegate(address implementation) internal {\\n assembly {\\n // Copy msg.data. We take full control of memory in this inline assembly\\n // block because it will not return to Solidity code. We overwrite the\\n // Solidity scratch pad at memory position 0.\\n calldatacopy(0, 0, calldatasize())\\n\\n // Call the implementation.\\n // out and outsize are 0 because we don't know the size yet.\\n let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)\\n\\n // Copy the returned data.\\n returndatacopy(0, 0, returndatasize())\\n\\n switch result\\n // delegatecall returns 0 on error.\\n case 0 {\\n revert(0, returndatasize())\\n }\\n default {\\n return(0, returndatasize())\\n }\\n }\\n }\\n\\n /**\\n * @dev Function that is run as the first thing in the fallback function.\\n * Can be redefined in derived contracts to add functionality.\\n * Redefinitions must call super._willFallback().\\n */\\n function _willFallback() internal virtual {}\\n\\n /**\\n * @dev fallback implementation.\\n * Extracted to enable manual triggering.\\n */\\n function _fallback() internal {\\n _willFallback();\\n _delegate(_implementation());\\n }\\n}\\n\",\"keccak256\":\"0x5d264d3321cdb086e0a9564eaa8ec199f43aea7524d5e86fd2c30f46fa97bc90\",\"license\":\"Apache-2.0\"},\"src/usdc/impl/upgradeability/UpgradeabilityProxy.sol\":{\"content\":\"// SPDX-License-Identifier: Apache-2.0\\n\\n/**\\n * Copyright 2023 Circle Internet Financial, LTD. All rights reserved.\\n *\\n *\\n * Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\\n * you may not use this file except in compliance with the License.\\n * You may obtain a copy of the License at\\n *\\n * http://www.apache.org/licenses/LICENSE-2.0\\n *\\n * Unless required by applicable law or agreed to in writing, software\\n * distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\\n * See the License for the specific language governing permissions and\\n * limitations under the License.\\n */\\n\\npragma solidity ^0.8.0;\\n\\nimport { Proxy } from \\\"./Proxy.sol\\\";\\nimport { Address } from \\\"@openzeppelin/contracts/utils/Address.sol\\\";\\n\\n/**\\n * @notice This contract implements a proxy that allows to change the\\n * implementation address to which it will delegate.\\n * Such a change is called an implementation upgrade.\\n * @dev Forked from https://github.com/zeppelinos/zos-lib/blob/8a16ef3ad17ec7430e3a9d2b5e3f39b8204f8c8d/contracts/upgradeability/UpgradeabilityProxy.sol\\n * Modifications:\\n * 1. Reformat, conform to Solidity 0.6 syntax, and add error messages (5/13/20)\\n * 2. Use Address utility library from the latest OpenZeppelin (5/13/20)\\n */\\ncontract UpgradeabilityProxy is Proxy {\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n * @param implementation Address of the new implementation.\\n */\\n event Upgraded(address implementation);\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"org.zeppelinos.proxy.implementation\\\", and is\\n * validated in the constructor.\\n */\\n bytes32 private constant IMPLEMENTATION_SLOT = 0x7050c9e0f4ca769c69bd3a8ef740bc37934f8e2c036e5a723fd8ee048ed3f8c3;\\n\\n /**\\n * @dev Contract constructor.\\n * @param implementationContract Address of the initial implementation.\\n */\\n constructor(address implementationContract) {\\n assert(IMPLEMENTATION_SLOT == keccak256(\\\"org.zeppelinos.proxy.implementation\\\"));\\n\\n _setImplementation(implementationContract);\\n }\\n\\n /**\\n * @dev Returns the current implementation.\\n * @return impl Address of the current implementation\\n */\\n function _implementation() internal view override returns (address impl) {\\n bytes32 slot = IMPLEMENTATION_SLOT;\\n assembly {\\n impl := sload(slot)\\n }\\n }\\n\\n /**\\n * @dev Upgrades the proxy to a new implementation.\\n * @param newImplementation Address of the new implementation.\\n */\\n function _upgradeTo(address newImplementation) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n }\\n\\n /**\\n * @dev Sets the implementation address of the proxy.\\n * @param newImplementation Address of the new implementation.\\n */\\n function _setImplementation(address newImplementation) private {\\n require(Address.isContract(newImplementation), \\\"Cannot set a proxy implementation to a non-contract address\\\");\\n\\n bytes32 slot = IMPLEMENTATION_SLOT;\\n\\n assembly {\\n sstore(slot, newImplementation)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x4c5e5d7242f684d8b802400da5d681b1b2acf0748bc002e4b0a9b9ee2030bf73\",\"license\":\"Apache-2.0\"},\"src/usdc/impl/v1/FiatTokenProxy.sol\":{\"content\":\"// SPDX-License-Identifier: Apache-2.0\\n\\n/**\\n * Copyright 2023 Circle Internet Financial, LTD. All rights reserved.\\n *\\n *\\n * Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\\n * you may not use this file except in compliance with the License.\\n * You may obtain a copy of the License at\\n *\\n * http://www.apache.org/licenses/LICENSE-2.0\\n *\\n * Unless required by applicable law or agreed to in writing, software\\n * distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\\n * See the License for the specific language governing permissions and\\n * limitations under the License.\\n */\\n\\npragma solidity ^0.8.0;\\n\\nimport { AdminUpgradeabilityProxy } from \\\"../upgradeability/AdminUpgradeabilityProxy.sol\\\";\\n\\n/**\\n * @title FiatTokenProxy\\n * @dev This contract proxies FiatToken calls and enables FiatToken upgrades\\n */\\ncontract FiatTokenProxy is AdminUpgradeabilityProxy {\\n constructor(address implementationContract) AdminUpgradeabilityProxy(implementationContract) {}\\n}\\n\",\"keccak256\":\"0xe23c1ba47d3ff5781e87f5357eb664ef7b44cff7d8a274c161e829b1c836938c\",\"license\":\"Apache-2.0\"}},\"version\":1}",
142
+ "bytecode": "0x608060405234801561001057600080fd5b506040516108b23803806108b283398101604081905261002f9161010f565b808061003a8161006a565b50610063337f10d6a54a4754c8869d6886b5f5d7fbfa5b4522237ea5c60d11bc4e7a1ff9390b55565b505061013f565b6001600160a01b0381163b6100eb5760405162461bcd60e51b815260206004820152603b60248201527f43616e6e6f742073657420612070726f787920696d706c656d656e746174696f60448201527f6e20746f2061206e6f6e2d636f6e747261637420616464726573730000000000606482015260840160405180910390fd5b7f7050c9e0f4ca769c69bd3a8ef740bc37934f8e2c036e5a723fd8ee048ed3f8c355565b60006020828403121561012157600080fd5b81516001600160a01b038116811461013857600080fd5b9392505050565b6107648061014e6000396000f3fe60806040526004361061005a5760003560e01c80635c60da1b116100435780635c60da1b146100975780638f283970146100d5578063f851a440146100f55761005a565b80633659cfe6146100645780634f1ef28614610084575b61006261010a565b005b34801561007057600080fd5b5061006261007f366004610679565b610144565b61006261009236600461069b565b610196565b3480156100a357600080fd5b506100ac61026a565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100e157600080fd5b506100626100f0366004610679565b610299565b34801561010157600080fd5b506100ac61041f565b610112610449565b61014261013d7f7050c9e0f4ca769c69bd3a8ef740bc37934f8e2c036e5a723fd8ee048ed3f8c35490565b61050f565b565b7f10d6a54a4754c8869d6886b5f5d7fbfa5b4522237ea5c60d11bc4e7a1ff9390b5473ffffffffffffffffffffffffffffffffffffffff16330361018e5761018b81610533565b50565b61018b61010a565b7f10d6a54a4754c8869d6886b5f5d7fbfa5b4522237ea5c60d11bc4e7a1ff9390b5473ffffffffffffffffffffffffffffffffffffffff16330361025d576101dd83610533565b60003073ffffffffffffffffffffffffffffffffffffffff1634848460405161020792919061071e565b60006040518083038185875af1925050503d8060008114610244576040519150601f19603f3d011682016040523d82523d6000602084013e610249565b606091505b505090508061025757600080fd5b50505050565b61026561010a565b505050565b60006102947f7050c9e0f4ca769c69bd3a8ef740bc37934f8e2c036e5a723fd8ee048ed3f8c35490565b905090565b7f10d6a54a4754c8869d6886b5f5d7fbfa5b4522237ea5c60d11bc4e7a1ff9390b5473ffffffffffffffffffffffffffffffffffffffff16330361018e5773ffffffffffffffffffffffffffffffffffffffff811661037f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603660248201527f43616e6e6f74206368616e6765207468652061646d696e206f6620612070726f60448201527f787920746f20746865207a65726f20616464726573730000000000000000000060648201526084015b60405180910390fd5b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6103c87f10d6a54a4754c8869d6886b5f5d7fbfa5b4522237ea5c60d11bc4e7a1ff9390b5490565b6040805173ffffffffffffffffffffffffffffffffffffffff928316815291841660208301520160405180910390a161018b817f10d6a54a4754c8869d6886b5f5d7fbfa5b4522237ea5c60d11bc4e7a1ff9390b55565b60006102947f10d6a54a4754c8869d6886b5f5d7fbfa5b4522237ea5c60d11bc4e7a1ff9390b5490565b7f10d6a54a4754c8869d6886b5f5d7fbfa5b4522237ea5c60d11bc4e7a1ff9390b5473ffffffffffffffffffffffffffffffffffffffff163303610142576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f43616e6e6f742063616c6c2066616c6c6261636b2066756e6374696f6e20667260448201527f6f6d207468652070726f78792061646d696e00000000000000000000000000006064820152608401610376565b3660008037600080366000845af43d6000803e80801561052e573d6000f35b3d6000fd5b61053c81610588565b60405173ffffffffffffffffffffffffffffffffffffffff821681527fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b9060200160405180910390a150565b73ffffffffffffffffffffffffffffffffffffffff81163b61062c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603b60248201527f43616e6e6f742073657420612070726f787920696d706c656d656e746174696f60448201527f6e20746f2061206e6f6e2d636f6e7472616374206164647265737300000000006064820152608401610376565b7f7050c9e0f4ca769c69bd3a8ef740bc37934f8e2c036e5a723fd8ee048ed3f8c355565b803573ffffffffffffffffffffffffffffffffffffffff8116811461067457600080fd5b919050565b60006020828403121561068b57600080fd5b61069482610650565b9392505050565b6000806000604084860312156106b057600080fd5b6106b984610650565b9250602084013567ffffffffffffffff808211156106d657600080fd5b818601915086601f8301126106ea57600080fd5b8135818111156106f957600080fd5b87602082850101111561070b57600080fd5b6020830194508093505050509250925092565b818382376000910190815291905056fea2646970667358221220c9208272db2b2c6addcebc09de39c66fd16b9752977f1672a2c76536f65a7d2964736f6c63430008160033",
143
+ "deployedBytecode": "0x60806040526004361061005a5760003560e01c80635c60da1b116100435780635c60da1b146100975780638f283970146100d5578063f851a440146100f55761005a565b80633659cfe6146100645780634f1ef28614610084575b61006261010a565b005b34801561007057600080fd5b5061006261007f366004610679565b610144565b61006261009236600461069b565b610196565b3480156100a357600080fd5b506100ac61026a565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b3480156100e157600080fd5b506100626100f0366004610679565b610299565b34801561010157600080fd5b506100ac61041f565b610112610449565b61014261013d7f7050c9e0f4ca769c69bd3a8ef740bc37934f8e2c036e5a723fd8ee048ed3f8c35490565b61050f565b565b7f10d6a54a4754c8869d6886b5f5d7fbfa5b4522237ea5c60d11bc4e7a1ff9390b5473ffffffffffffffffffffffffffffffffffffffff16330361018e5761018b81610533565b50565b61018b61010a565b7f10d6a54a4754c8869d6886b5f5d7fbfa5b4522237ea5c60d11bc4e7a1ff9390b5473ffffffffffffffffffffffffffffffffffffffff16330361025d576101dd83610533565b60003073ffffffffffffffffffffffffffffffffffffffff1634848460405161020792919061071e565b60006040518083038185875af1925050503d8060008114610244576040519150601f19603f3d011682016040523d82523d6000602084013e610249565b606091505b505090508061025757600080fd5b50505050565b61026561010a565b505050565b60006102947f7050c9e0f4ca769c69bd3a8ef740bc37934f8e2c036e5a723fd8ee048ed3f8c35490565b905090565b7f10d6a54a4754c8869d6886b5f5d7fbfa5b4522237ea5c60d11bc4e7a1ff9390b5473ffffffffffffffffffffffffffffffffffffffff16330361018e5773ffffffffffffffffffffffffffffffffffffffff811661037f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603660248201527f43616e6e6f74206368616e6765207468652061646d696e206f6620612070726f60448201527f787920746f20746865207a65726f20616464726573730000000000000000000060648201526084015b60405180910390fd5b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f6103c87f10d6a54a4754c8869d6886b5f5d7fbfa5b4522237ea5c60d11bc4e7a1ff9390b5490565b6040805173ffffffffffffffffffffffffffffffffffffffff928316815291841660208301520160405180910390a161018b817f10d6a54a4754c8869d6886b5f5d7fbfa5b4522237ea5c60d11bc4e7a1ff9390b55565b60006102947f10d6a54a4754c8869d6886b5f5d7fbfa5b4522237ea5c60d11bc4e7a1ff9390b5490565b7f10d6a54a4754c8869d6886b5f5d7fbfa5b4522237ea5c60d11bc4e7a1ff9390b5473ffffffffffffffffffffffffffffffffffffffff163303610142576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f43616e6e6f742063616c6c2066616c6c6261636b2066756e6374696f6e20667260448201527f6f6d207468652070726f78792061646d696e00000000000000000000000000006064820152608401610376565b3660008037600080366000845af43d6000803e80801561052e573d6000f35b3d6000fd5b61053c81610588565b60405173ffffffffffffffffffffffffffffffffffffffff821681527fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b9060200160405180910390a150565b73ffffffffffffffffffffffffffffffffffffffff81163b61062c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603b60248201527f43616e6e6f742073657420612070726f787920696d706c656d656e746174696f60448201527f6e20746f2061206e6f6e2d636f6e7472616374206164647265737300000000006064820152608401610376565b7f7050c9e0f4ca769c69bd3a8ef740bc37934f8e2c036e5a723fd8ee048ed3f8c355565b803573ffffffffffffffffffffffffffffffffffffffff8116811461067457600080fd5b919050565b60006020828403121561068b57600080fd5b61069482610650565b9392505050565b6000806000604084860312156106b057600080fd5b6106b984610650565b9250602084013567ffffffffffffffff808211156106d657600080fd5b818601915086601f8301126106ea57600080fd5b8135818111156106f957600080fd5b87602082850101111561070b57600080fd5b6020830194508093505050509250925092565b818382376000910190815291905056fea2646970667358221220c9208272db2b2c6addcebc09de39c66fd16b9752977f1672a2c76536f65a7d2964736f6c63430008160033",
144
+ "devdoc": {
145
+ "details": "This contract proxies FiatToken calls and enables FiatToken upgrades",
146
+ "events": {
147
+ "AdminChanged(address,address)": {
148
+ "details": "Emitted when the administration has been transferred.",
149
+ "params": {
150
+ "newAdmin": "Address of the new admin.",
151
+ "previousAdmin": "Address of the previous admin."
152
+ }
153
+ },
154
+ "Upgraded(address)": {
155
+ "details": "Emitted when the implementation is upgraded.",
156
+ "params": {
157
+ "implementation": "Address of the new implementation."
158
+ }
159
+ }
160
+ },
161
+ "kind": "dev",
162
+ "methods": {
163
+ "admin()": {
164
+ "returns": {
165
+ "_0": "The address of the proxy admin."
166
+ }
167
+ },
168
+ "changeAdmin(address)": {
169
+ "details": "Changes the admin of the proxy. Only the current admin can call this function.",
170
+ "params": {
171
+ "newAdmin": "Address to transfer proxy administration to."
172
+ }
173
+ },
174
+ "implementation()": {
175
+ "returns": {
176
+ "_0": "The address of the implementation."
177
+ }
178
+ },
179
+ "upgradeTo(address)": {
180
+ "details": "Upgrade the backing implementation of the proxy. Only the admin can call this function.",
181
+ "params": {
182
+ "newImplementation": "Address of the new implementation."
183
+ }
184
+ },
185
+ "upgradeToAndCall(address,bytes)": {
186
+ "details": "Upgrade the backing implementation of the proxy and call a function on the new implementation. This is useful to initialize the proxied contract.",
187
+ "params": {
188
+ "data": "Data to send as msg.data in the low level call. It should include the signature and the parameters of the function to be called, as described in https://solidity.readthedocs.io/en/develop/abi-spec.html#function-selector-and-argument-encoding.",
189
+ "newImplementation": "Address of the new implementation."
190
+ }
191
+ }
192
+ },
193
+ "title": "FiatTokenProxy",
194
+ "version": 1
195
+ },
196
+ "userdoc": {
197
+ "kind": "user",
198
+ "methods": {},
199
+ "version": 1
200
+ },
201
+ "storageLayout": {
202
+ "storage": [],
203
+ "types": null
204
+ }
205
+ }
@@ -0,0 +1,80 @@
1
+ {
2
+ "address": "0x5c386D85b1B82FD9Db681b9176C8a4248bb6345B",
3
+ "abi": [
4
+ {
5
+ "inputs": [
6
+ {
7
+ "internalType": "address",
8
+ "name": "signer",
9
+ "type": "address"
10
+ },
11
+ {
12
+ "internalType": "bytes32",
13
+ "name": "digest",
14
+ "type": "bytes32"
15
+ },
16
+ {
17
+ "internalType": "bytes",
18
+ "name": "signature",
19
+ "type": "bytes"
20
+ }
21
+ ],
22
+ "name": "isValidSignatureNow",
23
+ "outputs": [
24
+ {
25
+ "internalType": "bool",
26
+ "name": "",
27
+ "type": "bool"
28
+ }
29
+ ],
30
+ "stateMutability": "view",
31
+ "type": "function"
32
+ }
33
+ ],
34
+ "transactionHash": "0x7895cbf5cca65b373c2b0b141082b3c0eff87e06c72d27602f7ab5c9b2849b0c",
35
+ "receipt": {
36
+ "to": null,
37
+ "from": "0x4A79AdC4539905376D339C69b6a7092D0598cc24",
38
+ "contractAddress": "0x5c386D85b1B82FD9Db681b9176C8a4248bb6345B",
39
+ "transactionIndex": 1,
40
+ "gasUsed": "448245",
41
+ "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
42
+ "blockHash": "0x564e35ed7ce35b56f398260b6dc2bac327facd29cfdcc93488f7622b3c693b97",
43
+ "transactionHash": "0x7895cbf5cca65b373c2b0b141082b3c0eff87e06c72d27602f7ab5c9b2849b0c",
44
+ "logs": [],
45
+ "blockNumber": 5693,
46
+ "cumulativeGasUsed": "448245",
47
+ "status": 1,
48
+ "byzantium": true
49
+ },
50
+ "args": [],
51
+ "numDeployments": 1,
52
+ "solcInputHash": "7f30a30e9578a142f505c41026c21857",
53
+ "metadata": "{\"compiler\":{\"version\":\"0.8.22+commit.4fc1097e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"digest\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"isValidSignatureNow\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"Signature verification helper that can be used instead of `ECRecover.recover` to seamlessly support both ECDSA signatures from externally owned accounts (EOAs) as well as ERC1271 signatures from smart contract wallets. Adapted from https://github.com/OpenZeppelin/openzeppelin-contracts/blob/21bb89ef5bfc789b9333eb05e3ba2b7b284ac77c/contracts/utils/cryptography/SignatureChecker.sol\",\"kind\":\"dev\",\"methods\":{\"isValidSignatureNow(address,bytes32,bytes)\":{\"details\":\"Checks if a signature is valid for a given signer and data hash. If the signer is a smart contract, the signature is validated against that smart contract using ERC1271, otherwise it's validated using `ECRecover.recover`.\",\"params\":{\"digest\":\"Keccak-256 hash digest of the signed message\",\"signature\":\"Signature byte array associated with hash\",\"signer\":\"Address of the claimed signer\"}}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/usdc/impl/util/SignatureChecker.sol\":\"SignatureChecker\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":5000},\"remappings\":[]},\"sources\":{\"src/usdc/impl/interfaces/IERC1271.sol\":{\"content\":\"// SPDX-License-Identifier: Apache-2.0\\n\\n/**\\n * Copyright 2023 Circle Internet Financial, LTD. All rights reserved.\\n *\\n *\\n * Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\\n * you may not use this file except in compliance with the License.\\n * You may obtain a copy of the License at\\n *\\n * http://www.apache.org/licenses/LICENSE-2.0\\n *\\n * Unless required by applicable law or agreed to in writing, software\\n * distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\\n * See the License for the specific language governing permissions and\\n * limitations under the License.\\n */\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC1271 standard signature validation method for\\n * contracts as defined in https://eips.ethereum.org/EIPS/eip-1271[ERC-1271].\\n */\\ninterface IERC1271 {\\n /**\\n * @dev Should return whether the signature provided is valid for the provided data\\n * @param hash Hash of the data to be signed\\n * @param signature Signature byte array associated with the provided data hash\\n * @return magicValue bytes4 magic value 0x1626ba7e when function passes\\n */\\n function isValidSignature(bytes32 hash, bytes memory signature) external view returns (bytes4 magicValue);\\n}\\n\",\"keccak256\":\"0xbd5ce56510b135ac06b920b14dcdc9d350bb7a22cc867777d0b2d9938fc3854e\",\"license\":\"Apache-2.0\"},\"src/usdc/impl/util/ECRecover.sol\":{\"content\":\"// SPDX-License-Identifier: Apache-2.0\\n\\n/**\\n * Copyright 2023 Circle Internet Financial, LTD. All rights reserved.\\n *\\n *\\n * Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\\n * you may not use this file except in compliance with the License.\\n * You may obtain a copy of the License at\\n *\\n * http://www.apache.org/licenses/LICENSE-2.0\\n *\\n * Unless required by applicable law or agreed to in writing, software\\n * distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\\n * See the License for the specific language governing permissions and\\n * limitations under the License.\\n */\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @title ECRecover\\n * @notice A library that provides a safe ECDSA recovery function\\n */\\nlibrary ECRecover {\\n /**\\n * @notice Recover signer's address from a signed message\\n * @dev Adapted from: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/65e4ffde586ec89af3b7e9140bdc9235d1254853/contracts/cryptography/ECDSA.sol\\n * Modifications: Accept v, r, and s as separate arguments\\n * @param digest Keccak-256 hash digest of the signed message\\n * @param v v of the signature\\n * @param r r of the signature\\n * @param s s of the signature\\n * @return Signer address\\n */\\n function recover(bytes32 digest, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {\\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\\n // the valid range for s in (281): 0 < s < secp256k1n \\u00f7 2 + 1, and for v in (282): v \\u2208 {27, 28}. Most\\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n //\\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n // these malleable signatures as well.\\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\\n revert(\\\"ECRecover: invalid signature 's' value\\\");\\n }\\n\\n if (v != 27 && v != 28) {\\n revert(\\\"ECRecover: invalid signature 'v' value\\\");\\n }\\n\\n // If the signature is valid (and not malleable), return the signer address\\n address signer = ecrecover(digest, v, r, s);\\n require(signer != address(0), \\\"ECRecover: invalid signature\\\");\\n\\n return signer;\\n }\\n\\n /**\\n * @notice Recover signer's address from a signed message\\n * @dev Adapted from: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/0053ee040a7ff1dbc39691c9e67a69f564930a88/contracts/utils/cryptography/ECDSA.sol\\n * @param digest Keccak-256 hash digest of the signed message\\n * @param signature Signature byte array associated with hash\\n * @return Signer address\\n */\\n function recover(bytes32 digest, bytes memory signature) internal pure returns (address) {\\n require(signature.length == 65, \\\"ECRecover: invalid signature length\\\");\\n\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use assembly.\\n /// @solidity memory-safe-assembly\\n assembly {\\n r := mload(add(signature, 0x20))\\n s := mload(add(signature, 0x40))\\n v := byte(0, mload(add(signature, 0x60)))\\n }\\n return recover(digest, v, r, s);\\n }\\n}\\n\",\"keccak256\":\"0xead4630c535f486fc99b6246dad8b915b47ce450b8a2e54323fface15a3d7ef4\",\"license\":\"Apache-2.0\"},\"src/usdc/impl/util/SignatureChecker.sol\":{\"content\":\"// SPDX-License-Identifier: Apache-2.0\\n\\n/**\\n * Copyright 2023 Circle Internet Financial, LTD. All rights reserved.\\n *\\n *\\n * Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\\n * you may not use this file except in compliance with the License.\\n * You may obtain a copy of the License at\\n *\\n * http://www.apache.org/licenses/LICENSE-2.0\\n *\\n * Unless required by applicable law or agreed to in writing, software\\n * distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\\n * See the License for the specific language governing permissions and\\n * limitations under the License.\\n */\\n\\npragma solidity ^0.8.0;\\n\\nimport { ECRecover } from \\\"./ECRecover.sol\\\";\\nimport { IERC1271 } from \\\"../interfaces/IERC1271.sol\\\";\\n\\n/**\\n * @dev Signature verification helper that can be used instead of `ECRecover.recover` to seamlessly support both ECDSA\\n * signatures from externally owned accounts (EOAs) as well as ERC1271 signatures from smart contract wallets.\\n *\\n * Adapted from https://github.com/OpenZeppelin/openzeppelin-contracts/blob/21bb89ef5bfc789b9333eb05e3ba2b7b284ac77c/contracts/utils/cryptography/SignatureChecker.sol\\n */\\nlibrary SignatureChecker {\\n /**\\n * @dev Checks if a signature is valid for a given signer and data hash. If the signer is a smart contract, the\\n * signature is validated against that smart contract using ERC1271, otherwise it's validated using `ECRecover.recover`.\\n * @param signer Address of the claimed signer\\n * @param digest Keccak-256 hash digest of the signed message\\n * @param signature Signature byte array associated with hash\\n */\\n function isValidSignatureNow(address signer, bytes32 digest, bytes memory signature) external view returns (bool) {\\n if (!isContract(signer)) {\\n return ECRecover.recover(digest, signature) == signer;\\n }\\n return isValidERC1271SignatureNow(signer, digest, signature);\\n }\\n\\n /**\\n * @dev Checks if a signature is valid for a given signer and data hash. The signature is validated\\n * against the signer smart contract using ERC1271.\\n * @param signer Address of the claimed signer\\n * @param digest Keccak-256 hash digest of the signed message\\n * @param signature Signature byte array associated with hash\\n *\\n * NOTE: Unlike ECDSA signatures, contract signatures are revocable, and the outcome of this function can thus\\n * change through time. It could return true at block N and false at block N+1 (or the opposite).\\n */\\n function isValidERC1271SignatureNow(\\n address signer,\\n bytes32 digest,\\n bytes memory signature\\n ) internal view returns (bool) {\\n (bool success, bytes memory result) = signer.staticcall(\\n abi.encodeWithSelector(IERC1271.isValidSignature.selector, digest, signature)\\n );\\n return (success &&\\n result.length >= 32 &&\\n abi.decode(result, (bytes32)) == bytes32(IERC1271.isValidSignature.selector));\\n }\\n\\n /**\\n * @dev Checks if the input address is a smart contract.\\n */\\n function isContract(address addr) internal view returns (bool) {\\n uint256 size;\\n assembly {\\n size := extcodesize(addr)\\n }\\n return size > 0;\\n }\\n}\\n\",\"keccak256\":\"0x6f7b341108bbfdea57a0676832d7cbbcaded66128aae4885e971b04a0f466ede\",\"license\":\"Apache-2.0\"}},\"version\":1}",
54
+ "bytecode": "0x6106d861003a600b82828239805160001a60731461002d57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600436106100355760003560e01c80636ccea6521461003a575b600080fd5b61004d610048366004610529565b610061565b604051901515815260200160405180910390f35b6000833b6100a8578373ffffffffffffffffffffffffffffffffffffffff1661008a84846100bd565b73ffffffffffffffffffffffffffffffffffffffff161490506100b6565b6100b384848461017d565b90505b9392505050565b60008151604114610155576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45435265636f7665723a20696e76616c6964207369676e6174757265206c656e60448201527f677468000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b60208201516040830151606084015160001a610173868285856102bc565b9695505050505050565b60008060008573ffffffffffffffffffffffffffffffffffffffff16631626ba7e60e01b86866040516024016101b4929190610633565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090941693909317909252905161021f919061066d565b600060405180830381855afa9150503d806000811461025a576040519150601f19603f3d011682016040523d82523d6000602084013e61025f565b606091505b509150915081801561027357506020815110155b8015610173575080517f1626ba7e00000000000000000000000000000000000000000000000000000000906102b19083016020908101908401610689565b149695505050505050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a082111561036e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45435265636f7665723a20696e76616c6964207369676e61747572652027732760448201527f2076616c75650000000000000000000000000000000000000000000000000000606482015260840161014c565b8360ff16601b1415801561038657508360ff16601c14155b15610413576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45435265636f7665723a20696e76616c6964207369676e61747572652027762760448201527f2076616c75650000000000000000000000000000000000000000000000000000606482015260840161014c565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015610467573d6000803e3d6000fd5b5050604051601f19015191505073ffffffffffffffffffffffffffffffffffffffff81166104f1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f45435265636f7665723a20696e76616c6964207369676e617475726500000000604482015260640161014c565b95945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60008060006060848603121561053e57600080fd5b833573ffffffffffffffffffffffffffffffffffffffff8116811461056257600080fd5b925060208401359150604084013567ffffffffffffffff8082111561058657600080fd5b818601915086601f83011261059a57600080fd5b8135818111156105ac576105ac6104fa565b604051601f8201601f19908116603f011681019083821181831017156105d4576105d46104fa565b816040528281528960208487010111156105ed57600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b60005b8381101561062a578181015183820152602001610612565b50506000910152565b828152604060208201526000825180604084015261065881606085016020870161060f565b601f01601f1916919091016060019392505050565b6000825161067f81846020870161060f565b9190910192915050565b60006020828403121561069b57600080fd5b505191905056fea2646970667358221220838f4edba48371a3bd204749e3da0c29033ea0e239561400e67cd53ebe972f6164736f6c63430008160033",
55
+ "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600436106100355760003560e01c80636ccea6521461003a575b600080fd5b61004d610048366004610529565b610061565b604051901515815260200160405180910390f35b6000833b6100a8578373ffffffffffffffffffffffffffffffffffffffff1661008a84846100bd565b73ffffffffffffffffffffffffffffffffffffffff161490506100b6565b6100b384848461017d565b90505b9392505050565b60008151604114610155576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45435265636f7665723a20696e76616c6964207369676e6174757265206c656e60448201527f677468000000000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b60208201516040830151606084015160001a610173868285856102bc565b9695505050505050565b60008060008573ffffffffffffffffffffffffffffffffffffffff16631626ba7e60e01b86866040516024016101b4929190610633565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090941693909317909252905161021f919061066d565b600060405180830381855afa9150503d806000811461025a576040519150601f19603f3d011682016040523d82523d6000602084013e61025f565b606091505b509150915081801561027357506020815110155b8015610173575080517f1626ba7e00000000000000000000000000000000000000000000000000000000906102b19083016020908101908401610689565b149695505050505050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a082111561036e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45435265636f7665723a20696e76616c6964207369676e61747572652027732760448201527f2076616c75650000000000000000000000000000000000000000000000000000606482015260840161014c565b8360ff16601b1415801561038657508360ff16601c14155b15610413576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45435265636f7665723a20696e76616c6964207369676e61747572652027762760448201527f2076616c75650000000000000000000000000000000000000000000000000000606482015260840161014c565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa158015610467573d6000803e3d6000fd5b5050604051601f19015191505073ffffffffffffffffffffffffffffffffffffffff81166104f1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f45435265636f7665723a20696e76616c6964207369676e617475726500000000604482015260640161014c565b95945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60008060006060848603121561053e57600080fd5b833573ffffffffffffffffffffffffffffffffffffffff8116811461056257600080fd5b925060208401359150604084013567ffffffffffffffff8082111561058657600080fd5b818601915086601f83011261059a57600080fd5b8135818111156105ac576105ac6104fa565b604051601f8201601f19908116603f011681019083821181831017156105d4576105d46104fa565b816040528281528960208487010111156105ed57600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b60005b8381101561062a578181015183820152602001610612565b50506000910152565b828152604060208201526000825180604084015261065881606085016020870161060f565b601f01601f1916919091016060019392505050565b6000825161067f81846020870161060f565b9190910192915050565b60006020828403121561069b57600080fd5b505191905056fea2646970667358221220838f4edba48371a3bd204749e3da0c29033ea0e239561400e67cd53ebe972f6164736f6c63430008160033",
56
+ "devdoc": {
57
+ "details": "Signature verification helper that can be used instead of `ECRecover.recover` to seamlessly support both ECDSA signatures from externally owned accounts (EOAs) as well as ERC1271 signatures from smart contract wallets. Adapted from https://github.com/OpenZeppelin/openzeppelin-contracts/blob/21bb89ef5bfc789b9333eb05e3ba2b7b284ac77c/contracts/utils/cryptography/SignatureChecker.sol",
58
+ "kind": "dev",
59
+ "methods": {
60
+ "isValidSignatureNow(address,bytes32,bytes)": {
61
+ "details": "Checks if a signature is valid for a given signer and data hash. If the signer is a smart contract, the signature is validated against that smart contract using ERC1271, otherwise it's validated using `ECRecover.recover`.",
62
+ "params": {
63
+ "digest": "Keccak-256 hash digest of the signed message",
64
+ "signature": "Signature byte array associated with hash",
65
+ "signer": "Address of the claimed signer"
66
+ }
67
+ }
68
+ },
69
+ "version": 1
70
+ },
71
+ "userdoc": {
72
+ "kind": "user",
73
+ "methods": {},
74
+ "version": 1
75
+ },
76
+ "storageLayout": {
77
+ "storage": [],
78
+ "types": null
79
+ }
80
+ }
@@ -13,6 +13,7 @@ var addresses = {
13
13
  "ebi-mainnet": "0xc6a281b90727FD77165F756690561C214786fbA1",
14
14
  "ethereum-mainnet": "0x6b8aD17795d89B283e6D0362A87A403f3544bb9d",
15
15
  "ethereum-sandbox-local": "0xBcD94c5F9C4102Ba6445F1569B40B9972BAff6a5",
16
+ "iota-mainnet": "0x45d417612e177672958dC0537C45a8f8d754Ac2E",
16
17
  "kava-mainnet": "0x15EFb7850aA5B7a05184579b0AaB501091E7b389",
17
18
  "klaytn-mainnet": "0xb67192699c2832bDbB912b5cbe7B99850AB7e022",
18
19
  "klaytn-testnet": "0xc26eD6ceC052D6A4935C240628841c069d2E7327",
@@ -24,7 +25,10 @@ var addresses = {
24
25
  "polygon-sandbox-local": "0xb8b938c4BFDaCc95ec4d76600c7Ea57bbBB8DA52",
25
26
  "rarible-mainnet": "0x0B38e83B86d491735fEaa0a791F65c2B99535396",
26
27
  "scroll-mainnet": "0x4694900bDbA99Edf07A2E46C4093f88F9106a90D",
28
+ "sei-mainnet": "0x13379B489Fb2e76CEdF96BCEaA2441e5930d75e1",
27
29
  "sepolia-testnet": "0x5E6a88BB6AaD9346eC70d0E28fd822037A26FFDD",
30
+ "taiko-mainnet": "0x0dB9afb4C33be43a0a0e396Fd1383B4ea97aB10a",
31
+ "xchain-mainnet": "0x0B38e83B86d491735fEaa0a791F65c2B99535396",
28
32
  "zkconsensys-mainnet": "0x138EB30f73BC423c6455C53df6D89CB01d9eBc63"
29
33
  };
30
34
  var transactionHashes = {
@@ -39,6 +43,7 @@ var transactionHashes = {
39
43
  "ebi-mainnet": "0xd57073c5689f1cafddef9b98eb562f930608856fac4448acebc1df66df0eb588",
40
44
  "ethereum-mainnet": "0x208ec98a2255be3b19ca6135482f344b0d2ebaad9f76bd237f7a1c4c0aa56666",
41
45
  "ethereum-sandbox-local": "0x09964d13e31d6ed333799cd38619d7494aa7ed031007c1d0b73dfb2c437725af",
46
+ "iota-mainnet": "0x3db89adab57462824ac87835d13cb04cf99ef59334b8f752c54fa3db43519c53",
42
47
  "kava-mainnet": "0x684ff1de0723decf57a379d61670df992e22f443756de9839304a9ab0c7f78b5",
43
48
  "klaytn-mainnet": "0x7089cf3403282fb127fbbd8ec78c1e472fa35c8a1be6d01d750f17fc831920ce",
44
49
  "klaytn-testnet": "0x2a9440d8307f8f83b673613167bb5f4fdef89dc40eb03c62394928b612595795",
@@ -50,7 +55,10 @@ var transactionHashes = {
50
55
  "polygon-sandbox-local": "0x4d2d2063045a1920e9ede5da8337fd24a26862f8e3376348aafcab37953d53e4",
51
56
  "rarible-mainnet": "0x7f84a77610f377a4ab6cfd6917c37eb956b91b3818f36db2a06918f10c778c12",
52
57
  "scroll-mainnet": "0x48168c6d6a0be453718c85a46dcf7e5a6257c6c1759915cb125bc85b5a34bbb2",
58
+ "sei-mainnet": "0x2ea10fcd83be086e337019cc493633c677f56dc2e7ed0be30a9a06a38024030f",
53
59
  "sepolia-testnet": "0x719a7394343399483d9d9c829d66af8364d3603499bc0691344fccebbab8c9d6",
60
+ "taiko-mainnet": "0x6cbe2e4159135d923787224dbc6f1b5386a4cab21e345caefe137f4572cc5d16",
61
+ "xchain-mainnet": "0x6a82602c4cf7f4530e56a7a78bca86d98011c1fd16681cc5c115ca9df6c80e4a",
54
62
  "zkconsensys-mainnet": "0x6742fcfa893d1064e87d0d4e6cf03ee07d8a616d5770752ef49a0cd690f2b66b"
55
63
  };
56
64
  var abi0 = [{ "inputs": [{ "internalType": "address", "name": "_endpoint", "type": "address" }, { "internalType": "address", "name": "_owner", "type": "address" }], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "CreditMsgCodec_InvalidMessage", "type": "error" }, { "inputs": [], "name": "InvalidDelegate", "type": "error" }, { "inputs": [], "name": "InvalidEndpointCall", "type": "error" }, { "inputs": [{ "internalType": "bytes", "name": "options", "type": "bytes" }], "name": "InvalidOptions", "type": "error" }, { "inputs": [], "name": "LzTokenUnavailable", "type": "error" }, { "inputs": [], "name": "MessagingOptions_ZeroGasLimit", "type": "error" }, { "inputs": [], "name": "Messaging_InvalidAssetId", "type": "error" }, { "inputs": [], "name": "Messaging_Unauthorized", "type": "error" }, { "inputs": [], "name": "Messaging_Unavailable", "type": "error" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }], "name": "NoPeer", "type": "error" }, { "inputs": [{ "internalType": "uint256", "name": "msgValue", "type": "uint256" }], "name": "NotEnoughNative", "type": "error" }, { "inputs": [{ "internalType": "address", "name": "addr", "type": "address" }], "name": "OnlyEndpoint", "type": "error" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }, { "internalType": "bytes32", "name": "sender", "type": "bytes32" }], "name": "OnlyPeer", "type": "error" }, { "inputs": [], "name": "OnlySelf", "type": "error" }, { "inputs": [{ "internalType": "bytes", "name": "result", "type": "bytes" }], "name": "SimulationResult", "type": "error" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "stargateImpl", "type": "address" }, { "indexed": false, "internalType": "uint16", "name": "assetId", "type": "uint16" }], "name": "AssetIdSet", "type": "event" }, { "anonymous": false, "inputs": [{ "components": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }, { "internalType": "uint16", "name": "msgType", "type": "uint16" }, { "internalType": "bytes", "name": "options", "type": "bytes" }], "indexed": false, "internalType": "struct EnforcedOptionParam[]", "name": "_enforcedOptions", "type": "tuple[]" }], "name": "EnforcedOptionSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint32", "name": "eid", "type": "uint32" }, { "indexed": false, "internalType": "uint128", "name": "gasLimit", "type": "uint128" }], "name": "GasLimitSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "uint16", "name": "maxAssetId", "type": "uint16" }], "name": "MaxAssetIdSet", "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": "uint32", "name": "eid", "type": "uint32" }, { "indexed": false, "internalType": "bytes32", "name": "peer", "type": "bytes32" }], "name": "PeerSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "planner", "type": "address" }], "name": "PlannerSet", "type": "event" }, { "anonymous": false, "inputs": [{ "indexed": false, "internalType": "address", "name": "preCrimeAddress", "type": "address" }], "name": "PreCrimeSet", "type": "event" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "bytes32", "name": "sender", "type": "bytes32" }, { "internalType": "uint64", "name": "nonce", "type": "uint64" }], "internalType": "struct Origin", "name": "origin", "type": "tuple" }], "name": "allowInitializePath", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "stargateImpl", "type": "address" }], "name": "assetIds", "outputs": [{ "internalType": "uint16", "name": "assetId", "type": "uint16" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_eid", "type": "uint32" }, { "internalType": "uint16", "name": "_msgType", "type": "uint16" }, { "internalType": "bytes", "name": "_extraOptions", "type": "bytes" }], "name": "combineOptions", "outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "endpoint", "outputs": [{ "internalType": "contract ILayerZeroEndpointV2", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }, { "internalType": "uint16", "name": "msgType", "type": "uint16" }], "name": "enforcedOptions", "outputs": [{ "internalType": "bytes", "name": "enforcedOption", "type": "bytes" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }], "name": "gasLimits", "outputs": [{ "internalType": "uint128", "name": "gasLimit", "type": "uint128" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "bytes32", "name": "sender", "type": "bytes32" }, { "internalType": "uint64", "name": "nonce", "type": "uint64" }], "internalType": "struct Origin", "name": "", "type": "tuple" }, { "internalType": "bytes", "name": "", "type": "bytes" }, { "internalType": "address", "name": "_sender", "type": "address" }], "name": "isComposeMsgSender", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_eid", "type": "uint32" }, { "internalType": "bytes32", "name": "_peer", "type": "bytes32" }], "name": "isPeer", "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "bytes32", "name": "sender", "type": "bytes32" }, { "internalType": "uint64", "name": "nonce", "type": "uint64" }], "internalType": "struct Origin", "name": "_origin", "type": "tuple" }, { "internalType": "bytes32", "name": "_guid", "type": "bytes32" }, { "internalType": "bytes", "name": "_message", "type": "bytes" }, { "internalType": "address", "name": "_executor", "type": "address" }, { "internalType": "bytes", "name": "_extraData", "type": "bytes" }], "name": "lzReceive", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "components": [{ "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "bytes32", "name": "sender", "type": "bytes32" }, { "internalType": "uint64", "name": "nonce", "type": "uint64" }], "internalType": "struct Origin", "name": "origin", "type": "tuple" }, { "internalType": "uint32", "name": "dstEid", "type": "uint32" }, { "internalType": "address", "name": "receiver", "type": "address" }, { "internalType": "bytes32", "name": "guid", "type": "bytes32" }, { "internalType": "uint256", "name": "value", "type": "uint256" }, { "internalType": "address", "name": "executor", "type": "address" }, { "internalType": "bytes", "name": "message", "type": "bytes" }, { "internalType": "bytes", "name": "extraData", "type": "bytes" }], "internalType": "struct InboundPacket[]", "name": "_packets", "type": "tuple[]" }], "name": "lzReceiveAndRevert", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "bytes32", "name": "sender", "type": "bytes32" }, { "internalType": "uint64", "name": "nonce", "type": "uint64" }], "internalType": "struct Origin", "name": "_origin", "type": "tuple" }, { "internalType": "bytes32", "name": "_guid", "type": "bytes32" }, { "internalType": "bytes", "name": "_message", "type": "bytes" }, { "internalType": "address", "name": "_executor", "type": "address" }, { "internalType": "bytes", "name": "_extraData", "type": "bytes" }], "name": "lzReceiveSimulate", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "maxAssetId", "outputs": [{ "internalType": "uint16", "name": "", "type": "uint16" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "", "type": "uint32" }, { "internalType": "bytes32", "name": "", "type": "bytes32" }], "name": "nextNonce", "outputs": [{ "internalType": "uint64", "name": "nonce", "type": "uint64" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "oApp", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "oAppVersion", "outputs": [{ "internalType": "uint64", "name": "senderVersion", "type": "uint64" }, { "internalType": "uint64", "name": "receiverVersion", "type": "uint64" }], "stateMutability": "pure", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }], "name": "peers", "outputs": [{ "internalType": "bytes32", "name": "peer", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "planner", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "preCrime", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "components": [{ "internalType": "uint16", "name": "assetId", "type": "uint16" }, { "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "uint64", "name": "amount", "type": "uint64" }, { "internalType": "uint64", "name": "minAmount", "type": "uint64" }], "internalType": "struct TargetCredit[]", "name": "credits", "type": "tuple[]" }], "internalType": "struct TargetCreditBatch[]", "name": "_creditBatches", "type": "tuple[]" }], "name": "quoteSendCredits", "outputs": [{ "components": [{ "internalType": "uint256", "name": "nativeFee", "type": "uint256" }, { "internalType": "uint256", "name": "lzTokenFee", "type": "uint256" }], "internalType": "struct MessagingFee", "name": "fee", "type": "tuple" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_dstEid", "type": "uint32" }, { "components": [{ "internalType": "uint16", "name": "assetId", "type": "uint16" }, { "components": [{ "internalType": "uint32", "name": "srcEid", "type": "uint32" }, { "internalType": "uint64", "name": "amount", "type": "uint64" }, { "internalType": "uint64", "name": "minAmount", "type": "uint64" }], "internalType": "struct TargetCredit[]", "name": "credits", "type": "tuple[]" }], "internalType": "struct TargetCreditBatch[]", "name": "_creditBatches", "type": "tuple[]" }], "name": "sendCredits", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_stargateImpl", "type": "address" }, { "internalType": "uint16", "name": "_assetId", "type": "uint16" }], "name": "setAssetId", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_delegate", "type": "address" }], "name": "setDelegate", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "components": [{ "internalType": "uint32", "name": "eid", "type": "uint32" }, { "internalType": "uint16", "name": "msgType", "type": "uint16" }, { "internalType": "bytes", "name": "options", "type": "bytes" }], "internalType": "struct EnforcedOptionParam[]", "name": "_enforcedOptions", "type": "tuple[]" }], "name": "setEnforcedOptions", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_eid", "type": "uint32" }, { "internalType": "uint128", "name": "_gasLimit", "type": "uint128" }], "name": "setGasLimit", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint16", "name": "_maxAssetId", "type": "uint16" }], "name": "setMaxAssetId", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint32", "name": "_eid", "type": "uint32" }, { "internalType": "bytes32", "name": "_peer", "type": "bytes32" }], "name": "setPeer", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_planner", "type": "address" }], "name": "setPlanner", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "_preCrime", "type": "address" }], "name": "setPreCrime", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [{ "internalType": "uint16", "name": "assetId", "type": "uint16" }], "name": "stargateImpls", "outputs": [{ "internalType": "address", "name": "stargateImpl", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }];
@@ -67,6 +75,7 @@ var abis = {
67
75
  "ebi-mainnet": abi0,
68
76
  "ethereum-mainnet": abi0,
69
77
  "ethereum-sandbox-local": abi0,
78
+ "iota-mainnet": abi0,
70
79
  "kava-mainnet": abi0,
71
80
  "klaytn-mainnet": abi0,
72
81
  "klaytn-testnet": abi1,
@@ -78,7 +87,10 @@ var abis = {
78
87
  "polygon-sandbox-local": abi0,
79
88
  "rarible-mainnet": abi0,
80
89
  "scroll-mainnet": abi0,
90
+ "sei-mainnet": abi0,
81
91
  "sepolia-testnet": abi1,
92
+ "taiko-mainnet": abi0,
93
+ "xchain-mainnet": abi0,
82
94
  "zkconsensys-mainnet": abi0
83
95
  };
84
96