@layerzerolabs/lz-evm-sdk-v1 2.3.8 → 2.3.10

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 (146) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/artifacts-tron/contracts/Endpoint.sol/Endpoint.json +958 -0
  3. package/artifacts-tron/contracts/NonceContract.sol/NonceContract.json +88 -0
  4. package/artifacts-tron/contracts/PriceFeed.sol/PriceFeed.json +531 -0
  5. package/artifacts-tron/contracts/RelayerV2.sol/RelayerV2.json +1170 -0
  6. package/artifacts-tron/contracts/UltraLightNode.sol/UltraLightNode.json +1475 -0
  7. package/artifacts-tron/contracts/UltraLightNodeV2.sol/UltraLightNodeV2.json +1423 -0
  8. package/artifacts-tron/contracts/interfaces/IContractOne.sol/IContractOne.json +24 -0
  9. package/artifacts-tron/contracts/interfaces/ILayerZeroEndpoint.sol/ILayerZeroEndpoint.json +447 -0
  10. package/artifacts-tron/contracts/interfaces/ILayerZeroMessagingLibrary.sol/ILayerZeroMessagingLibrary.json +160 -0
  11. package/artifacts-tron/contracts/interfaces/ILayerZeroMessagingLibraryV2.sol/ILayerZeroMessagingLibraryV2.json +184 -0
  12. package/artifacts-tron/contracts/interfaces/ILayerZeroOracle.sol/ILayerZeroOracle.json +77 -0
  13. package/artifacts-tron/contracts/interfaces/ILayerZeroOracleV2.sol/ILayerZeroOracleV2.json +97 -0
  14. package/artifacts-tron/contracts/interfaces/ILayerZeroPriceFeed.sol/ILayerZeroPriceFeed.json +107 -0
  15. package/artifacts-tron/contracts/interfaces/ILayerZeroPriceFeedV2.sol/ILayerZeroPriceFeedV2.json +104 -0
  16. package/artifacts-tron/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.json +39 -0
  17. package/artifacts-tron/contracts/interfaces/ILayerZeroRelayer.sol/ILayerZeroRelayer.json +92 -0
  18. package/artifacts-tron/contracts/interfaces/ILayerZeroRelayerV2.sol/ILayerZeroRelayerV2.json +107 -0
  19. package/artifacts-tron/contracts/interfaces/ILayerZeroRelayerV2PriceData.sol/ILayerZeroRelayerV2PriceData.json +83 -0
  20. package/artifacts-tron/contracts/interfaces/ILayerZeroTreasury.sol/ILayerZeroTreasury.json +40 -0
  21. package/artifacts-tron/contracts/interfaces/ILayerZeroUltraLightNodeV1.sol/ILayerZeroUltraLightNodeV1.json +156 -0
  22. package/artifacts-tron/contracts/interfaces/ILayerZeroUltraLightNodeV2.sol/ILayerZeroUltraLightNodeV2.json +582 -0
  23. package/artifacts-tron/contracts/interfaces/ILayerZeroUserApplicationConfig.sol/ILayerZeroUserApplicationConfig.json +83 -0
  24. package/artifacts-tron/contracts/interfaces/ILayerZeroValidationLibrary.sol/ILayerZeroValidationLibrary.json +77 -0
  25. package/artifacts-tron/contracts/interfaces/IValidationLibraryHelper.sol/IValidationLibraryHelper.json +146 -0
  26. package/artifacts-tron/contracts/interfaces/IValidationLibraryHelperV2.sol/IValidationLibraryHelperV2.json +154 -0
  27. package/artifacts-tron/contracts/precrime/PreCrime.sol/PreCrime.json +353 -0
  28. package/artifacts-tron/contracts/precrime/PreCrimeBase.sol/PreCrimeBase.json +259 -0
  29. package/artifacts-tron/contracts/precrime/PreCrimeView.sol/PreCrimeView.json +318 -0
  30. package/artifacts-tron/contracts/precrime/interfaces/IPreCrime.sol/IPreCrime.json +162 -0
  31. package/artifacts-tron/contracts/precrime/interfaces/IPreCrimeBase.sol/IPreCrimeBase.json +116 -0
  32. package/artifacts-tron/contracts/precrime/interfaces/IPreCrimeView.sol/IPreCrimeView.json +162 -0
  33. package/artifacts-tron/contracts/proof/FPValidator.sol/FPValidator.json +326 -0
  34. package/artifacts-tron/contracts/proof/FPValidator.sol/IStargate.json +10 -0
  35. package/artifacts-tron/contracts/proof/MPTValidator.sol/MPTValidator.json +146 -0
  36. package/artifacts-tron/contracts/proof/MPTValidator01.sol/IStargate.json +10 -0
  37. package/artifacts-tron/contracts/proof/MPTValidator01.sol/MPTValidator01.json +339 -0
  38. package/artifacts-tron/contracts/proof/MPTValidatorStgV3.sol/MPTValidatorStgV3.json +310 -0
  39. package/artifacts-tron/contracts/proof/MPTValidatorV2.sol/MPTValidatorV2.json +212 -0
  40. package/artifacts-tron/contracts/proof/MPTValidatorV4.sol/IStargate.json +10 -0
  41. package/artifacts-tron/contracts/proof/MPTValidatorV4.sol/IUltraLightNode.json +108 -0
  42. package/artifacts-tron/contracts/proof/MPTValidatorV4.sol/MPTValidatorV4.json +414 -0
  43. package/artifacts-tron/contracts/proof/MPTValidatorV5.sol/IStargate.json +10 -0
  44. package/artifacts-tron/contracts/proof/MPTValidatorV5.sol/IUltraLightNode.json +108 -0
  45. package/artifacts-tron/contracts/proof/MPTValidatorV5.sol/MPTValidatorV5.json +432 -0
  46. package/artifacts-tron/contracts/proof/utility/Buffer.sol/Buffer.json +10 -0
  47. package/artifacts-tron/contracts/proof/utility/LayerZeroPacket.sol/LayerZeroPacket.json +10 -0
  48. package/artifacts-tron/contracts/proof/utility/RLPDecode.sol/RLPDecode.json +10 -0
  49. package/artifacts-tron/contracts/proof/utility/UltraLightNodeEVMDecoder.sol/UltraLightNodeEVMDecoder.json +10 -0
  50. package/artifacts-zk/contracts/Endpoint.sol/Endpoint.json +959 -0
  51. package/artifacts-zk/contracts/NonceContract.sol/NonceContract.json +89 -0
  52. package/artifacts-zk/contracts/PriceFeed.sol/PriceFeed.json +545 -0
  53. package/artifacts-zk/contracts/RelayerV2.sol/RelayerV2.json +1020 -0
  54. package/artifacts-zk/contracts/TreasuryV2.sol/TreasuryV2.json +309 -0
  55. package/artifacts-zk/contracts/UltraLightNodeV2.sol/UltraLightNodeV2.json +1424 -0
  56. package/artifacts-zk/contracts/interfaces/IContractOne.sol/IContractOne.json +25 -0
  57. package/artifacts-zk/contracts/interfaces/ILayerZeroEndpoint.sol/ILayerZeroEndpoint.json +448 -0
  58. package/artifacts-zk/contracts/interfaces/ILayerZeroMessagingLibrary.sol/ILayerZeroMessagingLibrary.json +161 -0
  59. package/artifacts-zk/contracts/interfaces/ILayerZeroMessagingLibraryV2.sol/ILayerZeroMessagingLibraryV2.json +185 -0
  60. package/artifacts-zk/contracts/interfaces/ILayerZeroOracleV2.sol/ILayerZeroOracleV2.json +98 -0
  61. package/artifacts-zk/contracts/interfaces/ILayerZeroPriceFeed.sol/ILayerZeroPriceFeed.json +108 -0
  62. package/artifacts-zk/contracts/interfaces/ILayerZeroPriceFeedV2.sol/ILayerZeroPriceFeedV2.json +105 -0
  63. package/artifacts-zk/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.json +40 -0
  64. package/artifacts-zk/contracts/interfaces/ILayerZeroRelayerV2.sol/ILayerZeroRelayerV2.json +108 -0
  65. package/artifacts-zk/contracts/interfaces/ILayerZeroTreasury.sol/ILayerZeroTreasury.json +41 -0
  66. package/artifacts-zk/contracts/interfaces/ILayerZeroUltraLightNodeV2.sol/ILayerZeroUltraLightNodeV2.json +583 -0
  67. package/artifacts-zk/contracts/interfaces/ILayerZeroUserApplicationConfig.sol/ILayerZeroUserApplicationConfig.json +84 -0
  68. package/artifacts-zk/contracts/interfaces/ILayerZeroValidationLibrary.sol/ILayerZeroValidationLibrary.json +78 -0
  69. package/artifacts-zk/contracts/interfaces/IValidationLibraryHelper.sol/IValidationLibraryHelper.json +147 -0
  70. package/artifacts-zk/contracts/interfaces/IValidationLibraryHelperV2.sol/IValidationLibraryHelperV2.json +155 -0
  71. package/artifacts-zk/contracts/oracle/OracleV2.sol/OracleV2.json +1527 -0
  72. package/artifacts-zk/contracts/precrime/PreCrime.sol/PreCrime.json +354 -0
  73. package/artifacts-zk/contracts/precrime/PreCrimeBase.sol/PreCrimeBase.json +260 -0
  74. package/artifacts-zk/contracts/precrime/PreCrimeView.sol/PreCrimeView.json +319 -0
  75. package/artifacts-zk/contracts/precrime/example/inherit/CounterI.sol/CounterI.json +624 -0
  76. package/artifacts-zk/contracts/precrime/example/inherit/CounterPrecrime.sol/CounterPrecrime.json +458 -0
  77. package/artifacts-zk/contracts/precrime/example/view/CounterPrecrimeView.sol/CounterPrecrimeView.json +417 -0
  78. package/artifacts-zk/contracts/precrime/example/view/CounterV.sol/CounterV.json +178 -0
  79. package/artifacts-zk/contracts/precrime/example/view/CounterView.sol/CounterView.json +166 -0
  80. package/artifacts-zk/contracts/precrime/interfaces/IPreCrime.sol/IPreCrime.json +163 -0
  81. package/artifacts-zk/contracts/precrime/interfaces/IPreCrimeBase.sol/IPreCrimeBase.json +117 -0
  82. package/artifacts-zk/contracts/precrime/interfaces/IPreCrimeView.sol/IPreCrimeView.json +163 -0
  83. package/artifacts-zk/contracts/proof/FPValidator.sol/FPValidator.json +327 -0
  84. package/artifacts-zk/contracts/proof/FPValidator.sol/IStargate.json +11 -0
  85. package/artifacts-zk/contracts/proof/utility/Buffer.sol/Buffer.json +11 -0
  86. package/artifacts-zk/contracts/proof/utility/LayerZeroPacket.sol/LayerZeroPacket.json +11 -0
  87. package/artifacts-zk/contracts/proof/utility/RLPDecode.sol/RLPDecode.json +11 -0
  88. package/artifacts-zk/contracts/proof/utility/UltraLightNodeEVMDecoder.sol/UltraLightNodeEVMDecoder.json +11 -0
  89. package/artifacts-zk/contracts/proxy/ProxyAdmin.sol/ProxyAdmin.json +172 -0
  90. package/artifacts-zk/contracts/proxy/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.json +156 -0
  91. package/deployments/arbitrum-sandbox-local/DefaultProxyAdmin.json +10 -10
  92. package/deployments/arbitrum-sandbox-local/Endpoint.json +7 -7
  93. package/deployments/arbitrum-sandbox-local/FPValidator.json +4 -4
  94. package/deployments/arbitrum-sandbox-local/MPTValidator01.json +4 -4
  95. package/deployments/arbitrum-sandbox-local/NonceContract.json +4 -4
  96. package/deployments/arbitrum-sandbox-local/RelayerV2.json +16 -16
  97. package/deployments/arbitrum-sandbox-local/RelayerV2_Implementation.json +4 -4
  98. package/deployments/arbitrum-sandbox-local/RelayerV2_Proxy.json +16 -16
  99. package/deployments/arbitrum-sandbox-local/TreasuryV2.json +7 -7
  100. package/deployments/arbitrum-sandbox-local/UltraLightNode.json +7 -7
  101. package/deployments/arbitrum-sandbox-local/UltraLightNodeV2.json +7 -7
  102. package/deployments/bsc-sandbox-local/DefaultProxyAdmin.json +10 -10
  103. package/deployments/bsc-sandbox-local/Endpoint.json +7 -7
  104. package/deployments/bsc-sandbox-local/FPValidator.json +4 -4
  105. package/deployments/bsc-sandbox-local/MPTValidator01.json +4 -4
  106. package/deployments/bsc-sandbox-local/NonceContract.json +4 -4
  107. package/deployments/bsc-sandbox-local/RelayerV2.json +16 -16
  108. package/deployments/bsc-sandbox-local/RelayerV2_Implementation.json +4 -4
  109. package/deployments/bsc-sandbox-local/RelayerV2_Proxy.json +16 -16
  110. package/deployments/bsc-sandbox-local/TreasuryV2.json +7 -7
  111. package/deployments/bsc-sandbox-local/UltraLightNode.json +7 -7
  112. package/deployments/bsc-sandbox-local/UltraLightNodeV2.json +7 -7
  113. package/deployments/ethereum-sandbox-local/DefaultProxyAdmin.json +10 -10
  114. package/deployments/ethereum-sandbox-local/Endpoint.json +7 -7
  115. package/deployments/ethereum-sandbox-local/FPValidator.json +4 -4
  116. package/deployments/ethereum-sandbox-local/MPTValidator01.json +4 -4
  117. package/deployments/ethereum-sandbox-local/NonceContract.json +4 -4
  118. package/deployments/ethereum-sandbox-local/RelayerV2.json +16 -16
  119. package/deployments/ethereum-sandbox-local/RelayerV2_Implementation.json +4 -4
  120. package/deployments/ethereum-sandbox-local/RelayerV2_Proxy.json +16 -16
  121. package/deployments/ethereum-sandbox-local/TreasuryV2.json +7 -7
  122. package/deployments/ethereum-sandbox-local/UltraLightNode.json +7 -7
  123. package/deployments/ethereum-sandbox-local/UltraLightNodeV2.json +7 -7
  124. package/deployments/polygon-sandbox-local/DefaultProxyAdmin.json +10 -10
  125. package/deployments/polygon-sandbox-local/Endpoint.json +7 -7
  126. package/deployments/polygon-sandbox-local/FPValidator.json +4 -4
  127. package/deployments/polygon-sandbox-local/MPTValidator01.json +4 -4
  128. package/deployments/polygon-sandbox-local/NonceContract.json +4 -4
  129. package/deployments/polygon-sandbox-local/RelayerV2.json +16 -16
  130. package/deployments/polygon-sandbox-local/RelayerV2_Implementation.json +4 -4
  131. package/deployments/polygon-sandbox-local/RelayerV2_Proxy.json +16 -16
  132. package/deployments/polygon-sandbox-local/TreasuryV2.json +7 -7
  133. package/deployments/polygon-sandbox-local/UltraLightNode.json +7 -7
  134. package/deployments/polygon-sandbox-local/UltraLightNodeV2.json +7 -7
  135. package/deployments/tron-sandbox-local/DefaultProxyAdmin.json +14 -14
  136. package/deployments/tron-sandbox-local/Endpoint.json +10 -10
  137. package/deployments/tron-sandbox-local/FPValidator.json +6 -6
  138. package/deployments/tron-sandbox-local/MPTValidator01.json +6 -6
  139. package/deployments/tron-sandbox-local/NonceContract.json +7 -7
  140. package/deployments/tron-sandbox-local/RelayerV2.json +31 -31
  141. package/deployments/tron-sandbox-local/RelayerV2_Implementation.json +6 -6
  142. package/deployments/tron-sandbox-local/RelayerV2_Proxy.json +28 -28
  143. package/deployments/tron-sandbox-local/TreasuryV2.json +11 -11
  144. package/deployments/tron-sandbox-local/UltraLightNode.json +11 -11
  145. package/deployments/tron-sandbox-local/UltraLightNodeV2.json +12 -12
  146. package/package.json +23 -7
@@ -0,0 +1,184 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "ILayerZeroMessagingLibraryV2",
4
+ "sourceName": "contracts/interfaces/ILayerZeroMessagingLibraryV2.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "uint16",
10
+ "name": "_chainId",
11
+ "type": "uint16"
12
+ },
13
+ {
14
+ "internalType": "address",
15
+ "name": "_userApplication",
16
+ "type": "address"
17
+ },
18
+ {
19
+ "internalType": "bytes",
20
+ "name": "_payload",
21
+ "type": "bytes"
22
+ },
23
+ {
24
+ "internalType": "bool",
25
+ "name": "_payInZRO",
26
+ "type": "bool"
27
+ },
28
+ {
29
+ "internalType": "bytes",
30
+ "name": "_adapterParam",
31
+ "type": "bytes"
32
+ }
33
+ ],
34
+ "name": "estimateFees",
35
+ "outputs": [
36
+ {
37
+ "internalType": "uint256",
38
+ "name": "nativeFee",
39
+ "type": "uint256"
40
+ },
41
+ {
42
+ "internalType": "uint256",
43
+ "name": "zroFee",
44
+ "type": "uint256"
45
+ }
46
+ ],
47
+ "stateMutability": "view",
48
+ "type": "function"
49
+ },
50
+ {
51
+ "inputs": [
52
+ {
53
+ "internalType": "uint16",
54
+ "name": "_chainId",
55
+ "type": "uint16"
56
+ },
57
+ {
58
+ "internalType": "address",
59
+ "name": "_userApplication",
60
+ "type": "address"
61
+ },
62
+ {
63
+ "internalType": "uint256",
64
+ "name": "_configType",
65
+ "type": "uint256"
66
+ }
67
+ ],
68
+ "name": "getConfig",
69
+ "outputs": [
70
+ {
71
+ "internalType": "bytes",
72
+ "name": "",
73
+ "type": "bytes"
74
+ }
75
+ ],
76
+ "stateMutability": "view",
77
+ "type": "function"
78
+ },
79
+ {
80
+ "inputs": [
81
+ {
82
+ "internalType": "uint16",
83
+ "name": "_chainId",
84
+ "type": "uint16"
85
+ },
86
+ {
87
+ "internalType": "bytes",
88
+ "name": "_path",
89
+ "type": "bytes"
90
+ }
91
+ ],
92
+ "name": "getOutboundNonce",
93
+ "outputs": [
94
+ {
95
+ "internalType": "uint64",
96
+ "name": "",
97
+ "type": "uint64"
98
+ }
99
+ ],
100
+ "stateMutability": "view",
101
+ "type": "function"
102
+ },
103
+ {
104
+ "inputs": [
105
+ {
106
+ "internalType": "address",
107
+ "name": "_userApplication",
108
+ "type": "address"
109
+ },
110
+ {
111
+ "internalType": "uint64",
112
+ "name": "_lastNonce",
113
+ "type": "uint64"
114
+ },
115
+ {
116
+ "internalType": "uint16",
117
+ "name": "_chainId",
118
+ "type": "uint16"
119
+ },
120
+ {
121
+ "internalType": "bytes",
122
+ "name": "_destination",
123
+ "type": "bytes"
124
+ },
125
+ {
126
+ "internalType": "bytes",
127
+ "name": "_payload",
128
+ "type": "bytes"
129
+ },
130
+ {
131
+ "internalType": "address payable",
132
+ "name": "refundAddress",
133
+ "type": "address"
134
+ },
135
+ {
136
+ "internalType": "address",
137
+ "name": "_zroPaymentAddress",
138
+ "type": "address"
139
+ },
140
+ {
141
+ "internalType": "bytes",
142
+ "name": "_adapterParams",
143
+ "type": "bytes"
144
+ }
145
+ ],
146
+ "name": "send",
147
+ "outputs": [],
148
+ "stateMutability": "payable",
149
+ "type": "function"
150
+ },
151
+ {
152
+ "inputs": [
153
+ {
154
+ "internalType": "uint16",
155
+ "name": "_chainId",
156
+ "type": "uint16"
157
+ },
158
+ {
159
+ "internalType": "address",
160
+ "name": "_userApplication",
161
+ "type": "address"
162
+ },
163
+ {
164
+ "internalType": "uint256",
165
+ "name": "_configType",
166
+ "type": "uint256"
167
+ },
168
+ {
169
+ "internalType": "bytes",
170
+ "name": "_config",
171
+ "type": "bytes"
172
+ }
173
+ ],
174
+ "name": "setConfig",
175
+ "outputs": [],
176
+ "stateMutability": "nonpayable",
177
+ "type": "function"
178
+ }
179
+ ],
180
+ "bytecode": "0x",
181
+ "deployedBytecode": "0x",
182
+ "linkReferences": {},
183
+ "deployedLinkReferences": {}
184
+ }
@@ -0,0 +1,77 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "ILayerZeroOracle",
4
+ "sourceName": "contracts/interfaces/ILayerZeroOracle.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "uint16",
10
+ "name": "_dstChainId",
11
+ "type": "uint16"
12
+ },
13
+ {
14
+ "internalType": "uint16",
15
+ "name": "_outboundProofType",
16
+ "type": "uint16"
17
+ }
18
+ ],
19
+ "name": "getPrice",
20
+ "outputs": [
21
+ {
22
+ "internalType": "uint256",
23
+ "name": "price",
24
+ "type": "uint256"
25
+ }
26
+ ],
27
+ "stateMutability": "view",
28
+ "type": "function"
29
+ },
30
+ {
31
+ "inputs": [
32
+ {
33
+ "internalType": "address",
34
+ "name": "_address",
35
+ "type": "address"
36
+ }
37
+ ],
38
+ "name": "isApproved",
39
+ "outputs": [
40
+ {
41
+ "internalType": "bool",
42
+ "name": "approved",
43
+ "type": "bool"
44
+ }
45
+ ],
46
+ "stateMutability": "view",
47
+ "type": "function"
48
+ },
49
+ {
50
+ "inputs": [
51
+ {
52
+ "internalType": "uint16",
53
+ "name": "_dstChainId",
54
+ "type": "uint16"
55
+ },
56
+ {
57
+ "internalType": "uint16",
58
+ "name": "_outboundProofType",
59
+ "type": "uint16"
60
+ },
61
+ {
62
+ "internalType": "uint64",
63
+ "name": "_outboundBlockConfirmations",
64
+ "type": "uint64"
65
+ }
66
+ ],
67
+ "name": "notifyOracle",
68
+ "outputs": [],
69
+ "stateMutability": "nonpayable",
70
+ "type": "function"
71
+ }
72
+ ],
73
+ "bytecode": "0x",
74
+ "deployedBytecode": "0x",
75
+ "linkReferences": {},
76
+ "deployedLinkReferences": {}
77
+ }
@@ -0,0 +1,97 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "ILayerZeroOracleV2",
4
+ "sourceName": "contracts/interfaces/ILayerZeroOracleV2.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "uint16",
10
+ "name": "_dstChainId",
11
+ "type": "uint16"
12
+ },
13
+ {
14
+ "internalType": "uint16",
15
+ "name": "_outboundProofType",
16
+ "type": "uint16"
17
+ },
18
+ {
19
+ "internalType": "uint64",
20
+ "name": "_outboundBlockConfirmation",
21
+ "type": "uint64"
22
+ },
23
+ {
24
+ "internalType": "address",
25
+ "name": "_userApplication",
26
+ "type": "address"
27
+ }
28
+ ],
29
+ "name": "assignJob",
30
+ "outputs": [
31
+ {
32
+ "internalType": "uint256",
33
+ "name": "price",
34
+ "type": "uint256"
35
+ }
36
+ ],
37
+ "stateMutability": "nonpayable",
38
+ "type": "function"
39
+ },
40
+ {
41
+ "inputs": [
42
+ {
43
+ "internalType": "uint16",
44
+ "name": "_dstChainId",
45
+ "type": "uint16"
46
+ },
47
+ {
48
+ "internalType": "uint16",
49
+ "name": "_outboundProofType",
50
+ "type": "uint16"
51
+ },
52
+ {
53
+ "internalType": "uint64",
54
+ "name": "_outboundBlockConfirmation",
55
+ "type": "uint64"
56
+ },
57
+ {
58
+ "internalType": "address",
59
+ "name": "_userApplication",
60
+ "type": "address"
61
+ }
62
+ ],
63
+ "name": "getFee",
64
+ "outputs": [
65
+ {
66
+ "internalType": "uint256",
67
+ "name": "price",
68
+ "type": "uint256"
69
+ }
70
+ ],
71
+ "stateMutability": "view",
72
+ "type": "function"
73
+ },
74
+ {
75
+ "inputs": [
76
+ {
77
+ "internalType": "address payable",
78
+ "name": "_to",
79
+ "type": "address"
80
+ },
81
+ {
82
+ "internalType": "uint256",
83
+ "name": "_amount",
84
+ "type": "uint256"
85
+ }
86
+ ],
87
+ "name": "withdrawFee",
88
+ "outputs": [],
89
+ "stateMutability": "nonpayable",
90
+ "type": "function"
91
+ }
92
+ ],
93
+ "bytecode": "0x",
94
+ "deployedBytecode": "0x",
95
+ "linkReferences": {},
96
+ "deployedLinkReferences": {}
97
+ }
@@ -0,0 +1,107 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "ILayerZeroPriceFeed",
4
+ "sourceName": "contracts/interfaces/ILayerZeroPriceFeed.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "uint16",
10
+ "name": "_dstChainId",
11
+ "type": "uint16"
12
+ },
13
+ {
14
+ "internalType": "uint256",
15
+ "name": "_callDataSize",
16
+ "type": "uint256"
17
+ },
18
+ {
19
+ "internalType": "uint256",
20
+ "name": "_gas",
21
+ "type": "uint256"
22
+ }
23
+ ],
24
+ "name": "estimateFeeByChain",
25
+ "outputs": [
26
+ {
27
+ "internalType": "uint256",
28
+ "name": "fee",
29
+ "type": "uint256"
30
+ },
31
+ {
32
+ "internalType": "uint128",
33
+ "name": "priceRatio",
34
+ "type": "uint128"
35
+ }
36
+ ],
37
+ "stateMutability": "view",
38
+ "type": "function"
39
+ },
40
+ {
41
+ "inputs": [
42
+ {
43
+ "internalType": "uint16",
44
+ "name": "_dstChainId",
45
+ "type": "uint16"
46
+ }
47
+ ],
48
+ "name": "getPrice",
49
+ "outputs": [
50
+ {
51
+ "components": [
52
+ {
53
+ "internalType": "uint128",
54
+ "name": "priceRatio",
55
+ "type": "uint128"
56
+ },
57
+ {
58
+ "internalType": "uint64",
59
+ "name": "gasPriceInUnit",
60
+ "type": "uint64"
61
+ },
62
+ {
63
+ "internalType": "uint32",
64
+ "name": "gasPerByte",
65
+ "type": "uint32"
66
+ }
67
+ ],
68
+ "internalType": "struct ILayerZeroPriceFeed.Price",
69
+ "name": "",
70
+ "type": "tuple"
71
+ }
72
+ ],
73
+ "stateMutability": "view",
74
+ "type": "function"
75
+ },
76
+ {
77
+ "inputs": [],
78
+ "name": "getPriceRatioDenominator",
79
+ "outputs": [
80
+ {
81
+ "internalType": "uint128",
82
+ "name": "",
83
+ "type": "uint128"
84
+ }
85
+ ],
86
+ "stateMutability": "view",
87
+ "type": "function"
88
+ },
89
+ {
90
+ "inputs": [],
91
+ "name": "nativeTokenPriceUSD",
92
+ "outputs": [
93
+ {
94
+ "internalType": "uint128",
95
+ "name": "",
96
+ "type": "uint128"
97
+ }
98
+ ],
99
+ "stateMutability": "view",
100
+ "type": "function"
101
+ }
102
+ ],
103
+ "bytecode": "0x",
104
+ "deployedBytecode": "0x",
105
+ "linkReferences": {},
106
+ "deployedLinkReferences": {}
107
+ }
@@ -0,0 +1,104 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "ILayerZeroPriceFeedV2",
4
+ "sourceName": "contracts/interfaces/ILayerZeroPriceFeedV2.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "uint32",
10
+ "name": "_dstEid",
11
+ "type": "uint32"
12
+ },
13
+ {
14
+ "internalType": "uint256",
15
+ "name": "_callDataSize",
16
+ "type": "uint256"
17
+ },
18
+ {
19
+ "internalType": "uint256",
20
+ "name": "_gas",
21
+ "type": "uint256"
22
+ }
23
+ ],
24
+ "name": "estimateFeeByEid",
25
+ "outputs": [
26
+ {
27
+ "internalType": "uint256",
28
+ "name": "fee",
29
+ "type": "uint256"
30
+ },
31
+ {
32
+ "internalType": "uint128",
33
+ "name": "priceRatio",
34
+ "type": "uint128"
35
+ },
36
+ {
37
+ "internalType": "uint128",
38
+ "name": "priceRatioDenominator",
39
+ "type": "uint128"
40
+ },
41
+ {
42
+ "internalType": "uint128",
43
+ "name": "nativePriceUSD",
44
+ "type": "uint128"
45
+ }
46
+ ],
47
+ "stateMutability": "view",
48
+ "type": "function"
49
+ },
50
+ {
51
+ "inputs": [
52
+ {
53
+ "internalType": "uint32",
54
+ "name": "_dstEid",
55
+ "type": "uint32"
56
+ }
57
+ ],
58
+ "name": "getPrice",
59
+ "outputs": [
60
+ {
61
+ "components": [
62
+ {
63
+ "internalType": "uint128",
64
+ "name": "priceRatio",
65
+ "type": "uint128"
66
+ },
67
+ {
68
+ "internalType": "uint64",
69
+ "name": "gasPriceInUnit",
70
+ "type": "uint64"
71
+ },
72
+ {
73
+ "internalType": "uint32",
74
+ "name": "gasPerByte",
75
+ "type": "uint32"
76
+ }
77
+ ],
78
+ "internalType": "struct ILayerZeroPriceFeedV2.Price",
79
+ "name": "",
80
+ "type": "tuple"
81
+ }
82
+ ],
83
+ "stateMutability": "view",
84
+ "type": "function"
85
+ },
86
+ {
87
+ "inputs": [],
88
+ "name": "getPriceRatioDenominator",
89
+ "outputs": [
90
+ {
91
+ "internalType": "uint128",
92
+ "name": "",
93
+ "type": "uint128"
94
+ }
95
+ ],
96
+ "stateMutability": "view",
97
+ "type": "function"
98
+ }
99
+ ],
100
+ "bytecode": "0x",
101
+ "deployedBytecode": "0x",
102
+ "linkReferences": {},
103
+ "deployedLinkReferences": {}
104
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "ILayerZeroReceiver",
4
+ "sourceName": "contracts/interfaces/ILayerZeroReceiver.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "uint16",
10
+ "name": "_srcChainId",
11
+ "type": "uint16"
12
+ },
13
+ {
14
+ "internalType": "bytes",
15
+ "name": "_srcAddress",
16
+ "type": "bytes"
17
+ },
18
+ {
19
+ "internalType": "uint64",
20
+ "name": "_nonce",
21
+ "type": "uint64"
22
+ },
23
+ {
24
+ "internalType": "bytes",
25
+ "name": "_payload",
26
+ "type": "bytes"
27
+ }
28
+ ],
29
+ "name": "lzReceive",
30
+ "outputs": [],
31
+ "stateMutability": "nonpayable",
32
+ "type": "function"
33
+ }
34
+ ],
35
+ "bytecode": "0x",
36
+ "deployedBytecode": "0x",
37
+ "linkReferences": {},
38
+ "deployedLinkReferences": {}
39
+ }
@@ -0,0 +1,92 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "ILayerZeroRelayer",
4
+ "sourceName": "contracts/interfaces/ILayerZeroRelayer.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "uint16",
10
+ "name": "_dstChainId",
11
+ "type": "uint16"
12
+ },
13
+ {
14
+ "internalType": "uint16",
15
+ "name": "_outboundProofType",
16
+ "type": "uint16"
17
+ },
18
+ {
19
+ "internalType": "address",
20
+ "name": "_userApplication",
21
+ "type": "address"
22
+ },
23
+ {
24
+ "internalType": "uint256",
25
+ "name": "_payloadSize",
26
+ "type": "uint256"
27
+ },
28
+ {
29
+ "internalType": "bytes",
30
+ "name": "_adapterParams",
31
+ "type": "bytes"
32
+ }
33
+ ],
34
+ "name": "getPrice",
35
+ "outputs": [
36
+ {
37
+ "internalType": "uint256",
38
+ "name": "price",
39
+ "type": "uint256"
40
+ }
41
+ ],
42
+ "stateMutability": "view",
43
+ "type": "function"
44
+ },
45
+ {
46
+ "inputs": [
47
+ {
48
+ "internalType": "address",
49
+ "name": "_address",
50
+ "type": "address"
51
+ }
52
+ ],
53
+ "name": "isApproved",
54
+ "outputs": [
55
+ {
56
+ "internalType": "bool",
57
+ "name": "approved",
58
+ "type": "bool"
59
+ }
60
+ ],
61
+ "stateMutability": "view",
62
+ "type": "function"
63
+ },
64
+ {
65
+ "inputs": [
66
+ {
67
+ "internalType": "uint16",
68
+ "name": "_dstChainId",
69
+ "type": "uint16"
70
+ },
71
+ {
72
+ "internalType": "uint16",
73
+ "name": "_outboundProofType",
74
+ "type": "uint16"
75
+ },
76
+ {
77
+ "internalType": "bytes",
78
+ "name": "_adapterParams",
79
+ "type": "bytes"
80
+ }
81
+ ],
82
+ "name": "notifyRelayer",
83
+ "outputs": [],
84
+ "stateMutability": "nonpayable",
85
+ "type": "function"
86
+ }
87
+ ],
88
+ "bytecode": "0x",
89
+ "deployedBytecode": "0x",
90
+ "linkReferences": {},
91
+ "deployedLinkReferences": {}
92
+ }