@layerzerolabs/oft-evm-contracts 0.2.74

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 (143) hide show
  1. package/.turbo/turbo-build.log +68 -0
  2. package/.turbo/turbo-lint.log +185 -0
  3. package/.turbo/turbo-test.log +144 -0
  4. package/LICENSE +23 -0
  5. package/artifacts/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroEndpointV2.sol/ILayerZeroEndpointV2.dbg.json +4 -0
  6. package/artifacts/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroEndpointV2.sol/ILayerZeroEndpointV2.json +1899 -0
  7. package/artifacts/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.dbg.json +4 -0
  8. package/artifacts/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.json +121 -0
  9. package/artifacts/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessageLibManager.sol/IMessageLibManager.dbg.json +4 -0
  10. package/artifacts/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessageLibManager.sol/IMessageLibManager.json +646 -0
  11. package/artifacts/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingChannel.sol/IMessagingChannel.dbg.json +4 -0
  12. package/artifacts/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingChannel.sol/IMessagingChannel.json +373 -0
  13. package/artifacts/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingComposer.sol/IMessagingComposer.dbg.json +4 -0
  14. package/artifacts/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingComposer.sol/IMessagingComposer.json +246 -0
  15. package/artifacts/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingContext.sol/IMessagingContext.dbg.json +4 -0
  16. package/artifacts/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingContext.sol/IMessagingContext.json +42 -0
  17. package/artifacts/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppCore.sol/IOAppCore.dbg.json +4 -0
  18. package/artifacts/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppCore.sol/IOAppCore.json +148 -0
  19. package/artifacts/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppExtended.sol/IOAppExtended.dbg.json +4 -0
  20. package/artifacts/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppExtended.sol/IOAppExtended.json +467 -0
  21. package/artifacts/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppMsgInspection.sol/IOAppMsgInspection.dbg.json +4 -0
  22. package/artifacts/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppMsgInspection.sol/IOAppMsgInspection.json +50 -0
  23. package/artifacts/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppOptionsType3.sol/IOAppOptionsType3.dbg.json +4 -0
  24. package/artifacts/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppOptionsType3.sol/IOAppOptionsType3.json +135 -0
  25. package/artifacts/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppReceiver.sol/IOAppReceiver.dbg.json +4 -0
  26. package/artifacts/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppReceiver.sol/IOAppReceiver.json +167 -0
  27. package/artifacts/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IFeeConfig.sol/IFeeConfig.dbg.json +4 -0
  28. package/artifacts/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IFeeConfig.sol/IFeeConfig.json +188 -0
  29. package/artifacts/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IFeeHandler.sol/IFeeHandler.dbg.json +4 -0
  30. package/artifacts/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IFeeHandler.sol/IFeeHandler.json +55 -0
  31. package/artifacts/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IPauseByID.sol/IPauseByID.dbg.json +4 -0
  32. package/artifacts/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IPauseByID.sol/IPauseByID.json +177 -0
  33. package/artifacts/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IRateLimiter.sol/IRateLimiter.dbg.json +4 -0
  34. package/artifacts/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IRateLimiter.sol/IRateLimiter.json +532 -0
  35. package/artifacts/build-info/eba77569fb49f02e67cb445bb3ee5d37.json +1 -0
  36. package/artifacts/contracts/interfaces/IOFT.sol/IOFT.dbg.json +4 -0
  37. package/artifacts/contracts/interfaces/IOFT.sol/IOFT.json +467 -0
  38. package/artifacts/contracts/interfaces/IOFTDecimalUtils.sol/IOFTDecimalUtils.dbg.json +4 -0
  39. package/artifacts/contracts/interfaces/IOFTDecimalUtils.sol/IOFTDecimalUtils.json +66 -0
  40. package/artifacts/contracts/interfaces/IOFTExtended.sol/IOFTExtended.dbg.json +4 -0
  41. package/artifacts/contracts/interfaces/IOFTExtended.sol/IOFTExtended.json +1831 -0
  42. package/artifacts/contracts/libs/OFTComposeMsgCodec.sol/OFTComposeMsgCodec.dbg.json +4 -0
  43. package/artifacts/contracts/libs/OFTComposeMsgCodec.sol/OFTComposeMsgCodec.json +10 -0
  44. package/artifacts/contracts/libs/OFTMsgCodec.sol/OFTMsgCodec.dbg.json +4 -0
  45. package/artifacts/contracts/libs/OFTMsgCodec.sol/OFTMsgCodec.json +10 -0
  46. package/artifacts/contracts/utils/OFTDecimalUtils.sol/OFTDecimalUtils.dbg.json +4 -0
  47. package/artifacts/contracts/utils/OFTDecimalUtils.sol/OFTDecimalUtils.json +66 -0
  48. package/artifacts-tron/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroEndpointV2.sol/ILayerZeroEndpointV2.dbg.json +4 -0
  49. package/artifacts-tron/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroEndpointV2.sol/ILayerZeroEndpointV2.json +1899 -0
  50. package/artifacts-tron/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.dbg.json +4 -0
  51. package/artifacts-tron/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.json +121 -0
  52. package/artifacts-tron/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessageLibManager.sol/IMessageLibManager.dbg.json +4 -0
  53. package/artifacts-tron/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessageLibManager.sol/IMessageLibManager.json +646 -0
  54. package/artifacts-tron/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingChannel.sol/IMessagingChannel.dbg.json +4 -0
  55. package/artifacts-tron/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingChannel.sol/IMessagingChannel.json +373 -0
  56. package/artifacts-tron/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingComposer.sol/IMessagingComposer.dbg.json +4 -0
  57. package/artifacts-tron/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingComposer.sol/IMessagingComposer.json +246 -0
  58. package/artifacts-tron/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingContext.sol/IMessagingContext.dbg.json +4 -0
  59. package/artifacts-tron/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingContext.sol/IMessagingContext.json +42 -0
  60. package/artifacts-tron/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppCore.sol/IOAppCore.dbg.json +4 -0
  61. package/artifacts-tron/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppCore.sol/IOAppCore.json +148 -0
  62. package/artifacts-tron/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppExtended.sol/IOAppExtended.dbg.json +4 -0
  63. package/artifacts-tron/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppExtended.sol/IOAppExtended.json +467 -0
  64. package/artifacts-tron/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppMsgInspection.sol/IOAppMsgInspection.dbg.json +4 -0
  65. package/artifacts-tron/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppMsgInspection.sol/IOAppMsgInspection.json +50 -0
  66. package/artifacts-tron/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppOptionsType3.sol/IOAppOptionsType3.dbg.json +4 -0
  67. package/artifacts-tron/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppOptionsType3.sol/IOAppOptionsType3.json +135 -0
  68. package/artifacts-tron/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppReceiver.sol/IOAppReceiver.dbg.json +4 -0
  69. package/artifacts-tron/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppReceiver.sol/IOAppReceiver.json +167 -0
  70. package/artifacts-tron/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IFeeConfig.sol/IFeeConfig.dbg.json +4 -0
  71. package/artifacts-tron/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IFeeConfig.sol/IFeeConfig.json +188 -0
  72. package/artifacts-tron/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IFeeHandler.sol/IFeeHandler.dbg.json +4 -0
  73. package/artifacts-tron/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IFeeHandler.sol/IFeeHandler.json +55 -0
  74. package/artifacts-tron/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IPauseByID.sol/IPauseByID.dbg.json +4 -0
  75. package/artifacts-tron/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IPauseByID.sol/IPauseByID.json +177 -0
  76. package/artifacts-tron/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IRateLimiter.sol/IRateLimiter.dbg.json +4 -0
  77. package/artifacts-tron/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IRateLimiter.sol/IRateLimiter.json +532 -0
  78. package/artifacts-tron/build-info/8846688aca1ca86abc2af4e130f3effa.json +1 -0
  79. package/artifacts-tron/contracts/interfaces/IOFT.sol/IOFT.dbg.json +4 -0
  80. package/artifacts-tron/contracts/interfaces/IOFT.sol/IOFT.json +467 -0
  81. package/artifacts-tron/contracts/interfaces/IOFTDecimalUtils.sol/IOFTDecimalUtils.dbg.json +4 -0
  82. package/artifacts-tron/contracts/interfaces/IOFTDecimalUtils.sol/IOFTDecimalUtils.json +66 -0
  83. package/artifacts-tron/contracts/interfaces/IOFTExtended.sol/IOFTExtended.dbg.json +4 -0
  84. package/artifacts-tron/contracts/interfaces/IOFTExtended.sol/IOFTExtended.json +1831 -0
  85. package/artifacts-tron/contracts/libs/OFTComposeMsgCodec.sol/OFTComposeMsgCodec.dbg.json +4 -0
  86. package/artifacts-tron/contracts/libs/OFTComposeMsgCodec.sol/OFTComposeMsgCodec.json +10 -0
  87. package/artifacts-tron/contracts/libs/OFTMsgCodec.sol/OFTMsgCodec.dbg.json +4 -0
  88. package/artifacts-tron/contracts/libs/OFTMsgCodec.sol/OFTMsgCodec.json +10 -0
  89. package/artifacts-tron/contracts/utils/OFTDecimalUtils.sol/OFTDecimalUtils.dbg.json +4 -0
  90. package/artifacts-tron/contracts/utils/OFTDecimalUtils.sol/OFTDecimalUtils.json +66 -0
  91. package/artifacts-zk/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroEndpointV2.sol/ILayerZeroEndpointV2.dbg.json +4 -0
  92. package/artifacts-zk/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroEndpointV2.sol/ILayerZeroEndpointV2.json +1900 -0
  93. package/artifacts-zk/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.dbg.json +4 -0
  94. package/artifacts-zk/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.json +122 -0
  95. package/artifacts-zk/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessageLibManager.sol/IMessageLibManager.dbg.json +4 -0
  96. package/artifacts-zk/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessageLibManager.sol/IMessageLibManager.json +647 -0
  97. package/artifacts-zk/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingChannel.sol/IMessagingChannel.dbg.json +4 -0
  98. package/artifacts-zk/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingChannel.sol/IMessagingChannel.json +374 -0
  99. package/artifacts-zk/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingComposer.sol/IMessagingComposer.dbg.json +4 -0
  100. package/artifacts-zk/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingComposer.sol/IMessagingComposer.json +247 -0
  101. package/artifacts-zk/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingContext.sol/IMessagingContext.dbg.json +4 -0
  102. package/artifacts-zk/@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessagingContext.sol/IMessagingContext.json +43 -0
  103. package/artifacts-zk/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppCore.sol/IOAppCore.dbg.json +4 -0
  104. package/artifacts-zk/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppCore.sol/IOAppCore.json +149 -0
  105. package/artifacts-zk/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppExtended.sol/IOAppExtended.dbg.json +4 -0
  106. package/artifacts-zk/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppExtended.sol/IOAppExtended.json +468 -0
  107. package/artifacts-zk/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppMsgInspection.sol/IOAppMsgInspection.dbg.json +4 -0
  108. package/artifacts-zk/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppMsgInspection.sol/IOAppMsgInspection.json +51 -0
  109. package/artifacts-zk/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppOptionsType3.sol/IOAppOptionsType3.dbg.json +4 -0
  110. package/artifacts-zk/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppOptionsType3.sol/IOAppOptionsType3.json +136 -0
  111. package/artifacts-zk/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppReceiver.sol/IOAppReceiver.dbg.json +4 -0
  112. package/artifacts-zk/@layerzerolabs/oapp-evm-contracts/contracts/interfaces/IOAppReceiver.sol/IOAppReceiver.json +168 -0
  113. package/artifacts-zk/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IFeeConfig.sol/IFeeConfig.dbg.json +4 -0
  114. package/artifacts-zk/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IFeeConfig.sol/IFeeConfig.json +189 -0
  115. package/artifacts-zk/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IFeeHandler.sol/IFeeHandler.dbg.json +4 -0
  116. package/artifacts-zk/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IFeeHandler.sol/IFeeHandler.json +56 -0
  117. package/artifacts-zk/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IPauseByID.sol/IPauseByID.dbg.json +4 -0
  118. package/artifacts-zk/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IPauseByID.sol/IPauseByID.json +178 -0
  119. package/artifacts-zk/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IRateLimiter.sol/IRateLimiter.dbg.json +4 -0
  120. package/artifacts-zk/@layerzerolabs/utils-evm-contracts/contracts/interfaces/IRateLimiter.sol/IRateLimiter.json +533 -0
  121. package/artifacts-zk/build-info/be85166c48418856c8b56dff21efc105.json +1 -0
  122. package/artifacts-zk/contracts/interfaces/IOFT.sol/IOFT.dbg.json +4 -0
  123. package/artifacts-zk/contracts/interfaces/IOFT.sol/IOFT.json +468 -0
  124. package/artifacts-zk/contracts/interfaces/IOFTDecimalUtils.sol/IOFTDecimalUtils.dbg.json +4 -0
  125. package/artifacts-zk/contracts/interfaces/IOFTDecimalUtils.sol/IOFTDecimalUtils.json +67 -0
  126. package/artifacts-zk/contracts/interfaces/IOFTExtended.sol/IOFTExtended.dbg.json +4 -0
  127. package/artifacts-zk/contracts/interfaces/IOFTExtended.sol/IOFTExtended.json +1832 -0
  128. package/artifacts-zk/contracts/libs/OFTComposeMsgCodec.sol/OFTComposeMsgCodec.dbg.json +4 -0
  129. package/artifacts-zk/contracts/libs/OFTComposeMsgCodec.sol/OFTComposeMsgCodec.json +11 -0
  130. package/artifacts-zk/contracts/libs/OFTMsgCodec.sol/OFTMsgCodec.dbg.json +4 -0
  131. package/artifacts-zk/contracts/libs/OFTMsgCodec.sol/OFTMsgCodec.json +11 -0
  132. package/artifacts-zk/contracts/utils/OFTDecimalUtils.sol/OFTDecimalUtils.dbg.json +4 -0
  133. package/artifacts-zk/contracts/utils/OFTDecimalUtils.sol/OFTDecimalUtils.json +67 -0
  134. package/contracts/interfaces/IOFT.sol +158 -0
  135. package/contracts/interfaces/IOFTDecimalUtils.sol +39 -0
  136. package/contracts/interfaces/IOFTExtended.sol +17 -0
  137. package/contracts/libs/OFTComposeMsgCodec.sol +90 -0
  138. package/contracts/libs/OFTMsgCodec.sol +82 -0
  139. package/contracts/utils/OFTDecimalUtils.sol +88 -0
  140. package/foundry.toml +21 -0
  141. package/package.json +44 -0
  142. package/solhint.config.js +3 -0
  143. package/test/OFTDecimalUtils.t.sol +354 -0
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../build-info/eba77569fb49f02e67cb445bb3ee5d37.json"
4
+ }
@@ -0,0 +1,467 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IOFT",
4
+ "sourceName": "contracts/interfaces/IOFT.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "uint256",
10
+ "name": "amountSD",
11
+ "type": "uint256"
12
+ }
13
+ ],
14
+ "name": "AmountSDOverflowed",
15
+ "type": "error"
16
+ },
17
+ {
18
+ "inputs": [],
19
+ "name": "InvalidLocalDecimals",
20
+ "type": "error"
21
+ },
22
+ {
23
+ "inputs": [
24
+ {
25
+ "internalType": "uint256",
26
+ "name": "amountLD",
27
+ "type": "uint256"
28
+ },
29
+ {
30
+ "internalType": "uint256",
31
+ "name": "minAmountLD",
32
+ "type": "uint256"
33
+ }
34
+ ],
35
+ "name": "SlippageExceeded",
36
+ "type": "error"
37
+ },
38
+ {
39
+ "anonymous": false,
40
+ "inputs": [
41
+ {
42
+ "indexed": true,
43
+ "internalType": "bytes32",
44
+ "name": "guid",
45
+ "type": "bytes32"
46
+ },
47
+ {
48
+ "indexed": false,
49
+ "internalType": "uint32",
50
+ "name": "srcEid",
51
+ "type": "uint32"
52
+ },
53
+ {
54
+ "indexed": true,
55
+ "internalType": "address",
56
+ "name": "toAddress",
57
+ "type": "address"
58
+ },
59
+ {
60
+ "indexed": false,
61
+ "internalType": "uint256",
62
+ "name": "amountReceivedLD",
63
+ "type": "uint256"
64
+ }
65
+ ],
66
+ "name": "OFTReceived",
67
+ "type": "event"
68
+ },
69
+ {
70
+ "anonymous": false,
71
+ "inputs": [
72
+ {
73
+ "indexed": true,
74
+ "internalType": "bytes32",
75
+ "name": "guid",
76
+ "type": "bytes32"
77
+ },
78
+ {
79
+ "indexed": false,
80
+ "internalType": "uint32",
81
+ "name": "dstEid",
82
+ "type": "uint32"
83
+ },
84
+ {
85
+ "indexed": true,
86
+ "internalType": "address",
87
+ "name": "fromAddress",
88
+ "type": "address"
89
+ },
90
+ {
91
+ "indexed": false,
92
+ "internalType": "uint256",
93
+ "name": "amountSentLD",
94
+ "type": "uint256"
95
+ },
96
+ {
97
+ "indexed": false,
98
+ "internalType": "uint256",
99
+ "name": "amountReceivedLD",
100
+ "type": "uint256"
101
+ }
102
+ ],
103
+ "name": "OFTSent",
104
+ "type": "event"
105
+ },
106
+ {
107
+ "inputs": [],
108
+ "name": "approvalRequired",
109
+ "outputs": [
110
+ {
111
+ "internalType": "bool",
112
+ "name": "requiresApproval",
113
+ "type": "bool"
114
+ }
115
+ ],
116
+ "stateMutability": "view",
117
+ "type": "function"
118
+ },
119
+ {
120
+ "inputs": [],
121
+ "name": "oftVersion",
122
+ "outputs": [
123
+ {
124
+ "internalType": "bytes4",
125
+ "name": "interfaceId",
126
+ "type": "bytes4"
127
+ },
128
+ {
129
+ "internalType": "uint64",
130
+ "name": "version",
131
+ "type": "uint64"
132
+ }
133
+ ],
134
+ "stateMutability": "view",
135
+ "type": "function"
136
+ },
137
+ {
138
+ "inputs": [
139
+ {
140
+ "components": [
141
+ {
142
+ "internalType": "uint32",
143
+ "name": "dstEid",
144
+ "type": "uint32"
145
+ },
146
+ {
147
+ "internalType": "bytes32",
148
+ "name": "to",
149
+ "type": "bytes32"
150
+ },
151
+ {
152
+ "internalType": "uint256",
153
+ "name": "amountLD",
154
+ "type": "uint256"
155
+ },
156
+ {
157
+ "internalType": "uint256",
158
+ "name": "minAmountLD",
159
+ "type": "uint256"
160
+ },
161
+ {
162
+ "internalType": "bytes",
163
+ "name": "extraOptions",
164
+ "type": "bytes"
165
+ },
166
+ {
167
+ "internalType": "bytes",
168
+ "name": "composeMsg",
169
+ "type": "bytes"
170
+ },
171
+ {
172
+ "internalType": "bytes",
173
+ "name": "oftCmd",
174
+ "type": "bytes"
175
+ }
176
+ ],
177
+ "internalType": "struct SendParam",
178
+ "name": "_sendParam",
179
+ "type": "tuple"
180
+ }
181
+ ],
182
+ "name": "quoteOFT",
183
+ "outputs": [
184
+ {
185
+ "components": [
186
+ {
187
+ "internalType": "uint256",
188
+ "name": "minAmountLD",
189
+ "type": "uint256"
190
+ },
191
+ {
192
+ "internalType": "uint256",
193
+ "name": "maxAmountLD",
194
+ "type": "uint256"
195
+ }
196
+ ],
197
+ "internalType": "struct OFTLimit",
198
+ "name": "oftLimit",
199
+ "type": "tuple"
200
+ },
201
+ {
202
+ "components": [
203
+ {
204
+ "internalType": "int256",
205
+ "name": "feeAmountLD",
206
+ "type": "int256"
207
+ },
208
+ {
209
+ "internalType": "string",
210
+ "name": "description",
211
+ "type": "string"
212
+ }
213
+ ],
214
+ "internalType": "struct OFTFeeDetail[]",
215
+ "name": "oftFeeDetails",
216
+ "type": "tuple[]"
217
+ },
218
+ {
219
+ "components": [
220
+ {
221
+ "internalType": "uint256",
222
+ "name": "amountSentLD",
223
+ "type": "uint256"
224
+ },
225
+ {
226
+ "internalType": "uint256",
227
+ "name": "amountReceivedLD",
228
+ "type": "uint256"
229
+ }
230
+ ],
231
+ "internalType": "struct OFTReceipt",
232
+ "name": "oftReceipt",
233
+ "type": "tuple"
234
+ }
235
+ ],
236
+ "stateMutability": "view",
237
+ "type": "function"
238
+ },
239
+ {
240
+ "inputs": [
241
+ {
242
+ "components": [
243
+ {
244
+ "internalType": "uint32",
245
+ "name": "dstEid",
246
+ "type": "uint32"
247
+ },
248
+ {
249
+ "internalType": "bytes32",
250
+ "name": "to",
251
+ "type": "bytes32"
252
+ },
253
+ {
254
+ "internalType": "uint256",
255
+ "name": "amountLD",
256
+ "type": "uint256"
257
+ },
258
+ {
259
+ "internalType": "uint256",
260
+ "name": "minAmountLD",
261
+ "type": "uint256"
262
+ },
263
+ {
264
+ "internalType": "bytes",
265
+ "name": "extraOptions",
266
+ "type": "bytes"
267
+ },
268
+ {
269
+ "internalType": "bytes",
270
+ "name": "composeMsg",
271
+ "type": "bytes"
272
+ },
273
+ {
274
+ "internalType": "bytes",
275
+ "name": "oftCmd",
276
+ "type": "bytes"
277
+ }
278
+ ],
279
+ "internalType": "struct SendParam",
280
+ "name": "_sendParam",
281
+ "type": "tuple"
282
+ },
283
+ {
284
+ "internalType": "bool",
285
+ "name": "_payInLzToken",
286
+ "type": "bool"
287
+ }
288
+ ],
289
+ "name": "quoteSend",
290
+ "outputs": [
291
+ {
292
+ "components": [
293
+ {
294
+ "internalType": "uint256",
295
+ "name": "nativeFee",
296
+ "type": "uint256"
297
+ },
298
+ {
299
+ "internalType": "uint256",
300
+ "name": "lzTokenFee",
301
+ "type": "uint256"
302
+ }
303
+ ],
304
+ "internalType": "struct MessagingFee",
305
+ "name": "msgFee",
306
+ "type": "tuple"
307
+ }
308
+ ],
309
+ "stateMutability": "view",
310
+ "type": "function"
311
+ },
312
+ {
313
+ "inputs": [
314
+ {
315
+ "components": [
316
+ {
317
+ "internalType": "uint32",
318
+ "name": "dstEid",
319
+ "type": "uint32"
320
+ },
321
+ {
322
+ "internalType": "bytes32",
323
+ "name": "to",
324
+ "type": "bytes32"
325
+ },
326
+ {
327
+ "internalType": "uint256",
328
+ "name": "amountLD",
329
+ "type": "uint256"
330
+ },
331
+ {
332
+ "internalType": "uint256",
333
+ "name": "minAmountLD",
334
+ "type": "uint256"
335
+ },
336
+ {
337
+ "internalType": "bytes",
338
+ "name": "extraOptions",
339
+ "type": "bytes"
340
+ },
341
+ {
342
+ "internalType": "bytes",
343
+ "name": "composeMsg",
344
+ "type": "bytes"
345
+ },
346
+ {
347
+ "internalType": "bytes",
348
+ "name": "oftCmd",
349
+ "type": "bytes"
350
+ }
351
+ ],
352
+ "internalType": "struct SendParam",
353
+ "name": "_sendParam",
354
+ "type": "tuple"
355
+ },
356
+ {
357
+ "components": [
358
+ {
359
+ "internalType": "uint256",
360
+ "name": "nativeFee",
361
+ "type": "uint256"
362
+ },
363
+ {
364
+ "internalType": "uint256",
365
+ "name": "lzTokenFee",
366
+ "type": "uint256"
367
+ }
368
+ ],
369
+ "internalType": "struct MessagingFee",
370
+ "name": "_fee",
371
+ "type": "tuple"
372
+ },
373
+ {
374
+ "internalType": "address",
375
+ "name": "_refundAddress",
376
+ "type": "address"
377
+ }
378
+ ],
379
+ "name": "send",
380
+ "outputs": [
381
+ {
382
+ "components": [
383
+ {
384
+ "internalType": "bytes32",
385
+ "name": "guid",
386
+ "type": "bytes32"
387
+ },
388
+ {
389
+ "internalType": "uint64",
390
+ "name": "nonce",
391
+ "type": "uint64"
392
+ },
393
+ {
394
+ "components": [
395
+ {
396
+ "internalType": "uint256",
397
+ "name": "nativeFee",
398
+ "type": "uint256"
399
+ },
400
+ {
401
+ "internalType": "uint256",
402
+ "name": "lzTokenFee",
403
+ "type": "uint256"
404
+ }
405
+ ],
406
+ "internalType": "struct MessagingFee",
407
+ "name": "fee",
408
+ "type": "tuple"
409
+ }
410
+ ],
411
+ "internalType": "struct MessagingReceipt",
412
+ "name": "msgReceipt",
413
+ "type": "tuple"
414
+ },
415
+ {
416
+ "components": [
417
+ {
418
+ "internalType": "uint256",
419
+ "name": "amountSentLD",
420
+ "type": "uint256"
421
+ },
422
+ {
423
+ "internalType": "uint256",
424
+ "name": "amountReceivedLD",
425
+ "type": "uint256"
426
+ }
427
+ ],
428
+ "internalType": "struct OFTReceipt",
429
+ "name": "oftReceipt",
430
+ "type": "tuple"
431
+ }
432
+ ],
433
+ "stateMutability": "payable",
434
+ "type": "function"
435
+ },
436
+ {
437
+ "inputs": [],
438
+ "name": "sharedDecimals",
439
+ "outputs": [
440
+ {
441
+ "internalType": "uint8",
442
+ "name": "sd",
443
+ "type": "uint8"
444
+ }
445
+ ],
446
+ "stateMutability": "view",
447
+ "type": "function"
448
+ },
449
+ {
450
+ "inputs": [],
451
+ "name": "token",
452
+ "outputs": [
453
+ {
454
+ "internalType": "address",
455
+ "name": "tokenAddress",
456
+ "type": "address"
457
+ }
458
+ ],
459
+ "stateMutability": "view",
460
+ "type": "function"
461
+ }
462
+ ],
463
+ "bytecode": "0x",
464
+ "deployedBytecode": "0x",
465
+ "linkReferences": {},
466
+ "deployedLinkReferences": {}
467
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../build-info/eba77569fb49f02e67cb445bb3ee5d37.json"
4
+ }
@@ -0,0 +1,66 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IOFTDecimalUtils",
4
+ "sourceName": "contracts/interfaces/IOFTDecimalUtils.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "uint256",
10
+ "name": "amountSD",
11
+ "type": "uint256"
12
+ }
13
+ ],
14
+ "name": "AmountSDOverflowed",
15
+ "type": "error"
16
+ },
17
+ {
18
+ "inputs": [],
19
+ "name": "InvalidLocalDecimals",
20
+ "type": "error"
21
+ },
22
+ {
23
+ "inputs": [],
24
+ "name": "decimalConversionRate",
25
+ "outputs": [
26
+ {
27
+ "internalType": "uint256",
28
+ "name": "rate",
29
+ "type": "uint256"
30
+ }
31
+ ],
32
+ "stateMutability": "view",
33
+ "type": "function"
34
+ },
35
+ {
36
+ "inputs": [],
37
+ "name": "localDecimals",
38
+ "outputs": [
39
+ {
40
+ "internalType": "uint8",
41
+ "name": "ld",
42
+ "type": "uint8"
43
+ }
44
+ ],
45
+ "stateMutability": "view",
46
+ "type": "function"
47
+ },
48
+ {
49
+ "inputs": [],
50
+ "name": "sharedDecimals",
51
+ "outputs": [
52
+ {
53
+ "internalType": "uint8",
54
+ "name": "sd",
55
+ "type": "uint8"
56
+ }
57
+ ],
58
+ "stateMutability": "view",
59
+ "type": "function"
60
+ }
61
+ ],
62
+ "bytecode": "0x",
63
+ "deployedBytecode": "0x",
64
+ "linkReferences": {},
65
+ "deployedLinkReferences": {}
66
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../build-info/eba77569fb49f02e67cb445bb3ee5d37.json"
4
+ }