@layerzerolabs/protocol-v2-oapp-evm-contracts 1.2.95 → 1.2.97
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.
- package/README.md +1 -1
- package/artifacts/contracts/oapp/OApp.sol/OApp.json +383 -0
- package/artifacts/contracts/oapp/OAppCore.sol/OAppCore.json +200 -0
- package/artifacts/contracts/oapp/OAppRead.sol/OAppRead.json +401 -0
- package/artifacts/contracts/oapp/OAppReceiver.sol/OAppReceiver.json +367 -0
- package/artifacts/contracts/oapp/OAppSender.sol/OAppSender.json +216 -0
- package/artifacts/contracts/oapp/examples/CmdCodecV1Mock.sol/CmdCodecV1Mock.json +278 -0
- package/artifacts/contracts/oapp/examples/LzReadCounter.sol/LzReadCounter.json +843 -0
- package/artifacts/contracts/oapp/examples/OmniCounter.sol/OmniCounter.json +925 -0
- package/artifacts/contracts/oapp/examples/OmniCounterAbstract.sol/MsgCodec.json +10 -0
- package/artifacts/contracts/oapp/examples/OmniCounterAbstract.sol/OmniCounterAbstract.json +909 -0
- package/artifacts/contracts/oapp/examples/OmniCounterAlt.sol/OmniCounterAlt.json +948 -0
- package/artifacts/contracts/oapp/examples/OmniCounterPreCrime.sol/OmniCounterPreCrime.json +368 -0
- package/artifacts/contracts/oapp/interfaces/IOAppComposer.sol/IOAppComposer.json +44 -0
- package/artifacts/contracts/oapp/interfaces/IOAppComputer.sol/IOAppComputer.json +59 -0
- package/artifacts/contracts/oapp/interfaces/IOAppComputerMap.sol/IOAppComputerMap.json +35 -0
- package/artifacts/contracts/oapp/interfaces/IOAppComputerReduce.sol/IOAppComputerReduce.json +35 -0
- package/artifacts/contracts/oapp/interfaces/IOAppCore.sol/IOAppCore.json +148 -0
- package/artifacts/contracts/oapp/interfaces/IOAppMsgInspector.sol/IOAppMsgInspector.json +51 -0
- package/artifacts/contracts/oapp/interfaces/IOAppOptionsType3.sol/IOAppOptionsType3.json +111 -0
- package/artifacts/contracts/oapp/interfaces/IOAppReceiver.sol/IOAppReceiver.json +167 -0
- package/artifacts/contracts/oapp/libs/OAppOptionsType3.sol/OAppOptionsType3.json +187 -0
- package/artifacts/contracts/oapp/libs/OptionsBuilder.sol/OptionsBuilder.json +38 -0
- package/artifacts/contracts/oapp/libs/ReadCmdCodecV1.sol/ReadCmdCodecV1.json +21 -0
- package/artifacts/contracts/oapp/utils/RateLimiter.sol/RateLimiter.json +104 -0
- package/artifacts/contracts/oft/OFT.sol/OFT.json +1514 -0
- package/artifacts/contracts/oft/OFTAdapter.sol/OFTAdapter.json +1244 -0
- package/artifacts/contracts/oft/OFTCore.sol/OFTCore.json +1244 -0
- package/artifacts/contracts/oft/interfaces/IOFT.sol/IOFT.json +456 -0
- package/artifacts/contracts/oft/libs/OFTComposeMsgCodec.sol/OFTComposeMsgCodec.json +10 -0
- package/artifacts/contracts/oft/libs/OFTMsgCodec.sol/OFTMsgCodec.json +10 -0
- package/artifacts/contracts/precrime/OAppPreCrimeSimulator.sol/OAppPreCrimeSimulator.json +277 -0
- package/artifacts/contracts/precrime/PreCrime.sol/PreCrime.json +352 -0
- package/artifacts/contracts/precrime/extensions/PreCrimeE1.sol/PreCrimeE1.json +352 -0
- package/artifacts/contracts/precrime/interfaces/IOAppPreCrimeSimulator.sol/IOAppPreCrimeSimulator.json +175 -0
- package/artifacts/contracts/precrime/interfaces/IPreCrime.sol/IPreCrime.json +188 -0
- package/artifacts/contracts/precrime/libs/Packet.sol/PacketDecoder.json +10 -0
- package/artifacts-tron/contracts/oapp/OApp.sol/OApp.json +383 -0
- package/artifacts-tron/contracts/oapp/OAppCore.sol/OAppCore.json +200 -0
- package/artifacts-tron/contracts/oapp/OAppRead.sol/OAppRead.json +401 -0
- package/artifacts-tron/contracts/oapp/OAppReceiver.sol/OAppReceiver.json +367 -0
- package/artifacts-tron/contracts/oapp/OAppSender.sol/OAppSender.json +216 -0
- package/artifacts-tron/contracts/oapp/examples/CmdCodecV1Mock.sol/CmdCodecV1Mock.json +278 -0
- package/artifacts-tron/contracts/oapp/examples/LzReadCounter.sol/LzReadCounter.json +843 -0
- package/artifacts-tron/contracts/oapp/examples/OmniCounter.sol/OmniCounter.json +925 -0
- package/artifacts-tron/contracts/oapp/examples/OmniCounterAbstract.sol/MsgCodec.json +10 -0
- package/artifacts-tron/contracts/oapp/examples/OmniCounterAbstract.sol/OmniCounterAbstract.json +909 -0
- package/artifacts-tron/contracts/oapp/examples/OmniCounterAlt.sol/OmniCounterAlt.json +948 -0
- package/artifacts-tron/contracts/oapp/examples/OmniCounterPreCrime.sol/OmniCounterPreCrime.json +368 -0
- package/artifacts-tron/contracts/oapp/interfaces/IOAppComposer.sol/IOAppComposer.json +44 -0
- package/artifacts-tron/contracts/oapp/interfaces/IOAppComputer.sol/IOAppComputer.json +59 -0
- package/artifacts-tron/contracts/oapp/interfaces/IOAppComputerMap.sol/IOAppComputerMap.json +35 -0
- package/artifacts-tron/contracts/oapp/interfaces/IOAppComputerReduce.sol/IOAppComputerReduce.json +35 -0
- package/artifacts-tron/contracts/oapp/interfaces/IOAppCore.sol/IOAppCore.json +148 -0
- package/artifacts-tron/contracts/oapp/interfaces/IOAppMsgInspector.sol/IOAppMsgInspector.json +51 -0
- package/artifacts-tron/contracts/oapp/interfaces/IOAppOptionsType3.sol/IOAppOptionsType3.json +111 -0
- package/artifacts-tron/contracts/oapp/interfaces/IOAppReceiver.sol/IOAppReceiver.json +167 -0
- package/artifacts-tron/contracts/oapp/libs/OAppOptionsType3.sol/OAppOptionsType3.json +187 -0
- package/artifacts-tron/contracts/oapp/libs/OptionsBuilder.sol/OptionsBuilder.json +38 -0
- package/artifacts-tron/contracts/oapp/libs/ReadCmdCodecV1.sol/ReadCmdCodecV1.json +21 -0
- package/artifacts-tron/contracts/oapp/utils/RateLimiter.sol/RateLimiter.json +104 -0
- package/artifacts-tron/contracts/oft/OFT.sol/OFT.json +1514 -0
- package/artifacts-tron/contracts/oft/OFTAdapter.sol/OFTAdapter.json +1244 -0
- package/artifacts-tron/contracts/oft/OFTCore.sol/OFTCore.json +1244 -0
- package/artifacts-tron/contracts/oft/interfaces/IOFT.sol/IOFT.json +456 -0
- package/artifacts-tron/contracts/oft/libs/OFTComposeMsgCodec.sol/OFTComposeMsgCodec.json +10 -0
- package/artifacts-tron/contracts/oft/libs/OFTMsgCodec.sol/OFTMsgCodec.json +10 -0
- package/artifacts-tron/contracts/precrime/OAppPreCrimeSimulator.sol/OAppPreCrimeSimulator.json +277 -0
- package/artifacts-tron/contracts/precrime/PreCrime.sol/PreCrime.json +352 -0
- package/artifacts-tron/contracts/precrime/extensions/PreCrimeE1.sol/PreCrimeE1.json +352 -0
- package/artifacts-tron/contracts/precrime/interfaces/IOAppPreCrimeSimulator.sol/IOAppPreCrimeSimulator.json +175 -0
- package/artifacts-tron/contracts/precrime/interfaces/IPreCrime.sol/IPreCrime.json +188 -0
- package/artifacts-tron/contracts/precrime/libs/Packet.sol/PacketDecoder.json +10 -0
- package/artifacts-zk/contracts/oapp/OApp.sol/OApp.json +384 -0
- package/artifacts-zk/contracts/oapp/OAppCore.sol/OAppCore.json +201 -0
- package/artifacts-zk/contracts/oapp/OAppRead.sol/OAppRead.json +402 -0
- package/artifacts-zk/contracts/oapp/OAppReceiver.sol/OAppReceiver.json +368 -0
- package/artifacts-zk/contracts/oapp/OAppSender.sol/OAppSender.json +217 -0
- package/artifacts-zk/contracts/oapp/examples/CmdCodecV1Mock.sol/CmdCodecV1Mock.json +279 -0
- package/artifacts-zk/contracts/oapp/examples/LzReadCounter.sol/LzReadCounter.json +844 -0
- package/artifacts-zk/contracts/oapp/examples/OmniCounter.sol/OmniCounter.json +926 -0
- package/artifacts-zk/contracts/oapp/examples/OmniCounterAbstract.sol/MsgCodec.json +11 -0
- package/artifacts-zk/contracts/oapp/examples/OmniCounterAbstract.sol/OmniCounterAbstract.json +910 -0
- package/artifacts-zk/contracts/oapp/examples/OmniCounterAlt.sol/OmniCounterAlt.json +949 -0
- package/artifacts-zk/contracts/oapp/examples/OmniCounterPreCrime.sol/OmniCounterPreCrime.json +369 -0
- package/artifacts-zk/contracts/oapp/interfaces/IOAppComposer.sol/IOAppComposer.json +45 -0
- package/artifacts-zk/contracts/oapp/interfaces/IOAppComputer.sol/IOAppComputer.json +60 -0
- package/artifacts-zk/contracts/oapp/interfaces/IOAppComputerMap.sol/IOAppComputerMap.json +36 -0
- package/artifacts-zk/contracts/oapp/interfaces/IOAppComputerReduce.sol/IOAppComputerReduce.json +36 -0
- package/artifacts-zk/contracts/oapp/interfaces/IOAppCore.sol/IOAppCore.json +149 -0
- package/artifacts-zk/contracts/oapp/interfaces/IOAppMsgInspector.sol/IOAppMsgInspector.json +52 -0
- package/artifacts-zk/contracts/oapp/interfaces/IOAppOptionsType3.sol/IOAppOptionsType3.json +112 -0
- package/artifacts-zk/contracts/oapp/interfaces/IOAppReceiver.sol/IOAppReceiver.json +168 -0
- package/artifacts-zk/contracts/oapp/libs/OAppOptionsType3.sol/OAppOptionsType3.json +188 -0
- package/artifacts-zk/contracts/oapp/libs/OptionsBuilder.sol/OptionsBuilder.json +39 -0
- package/artifacts-zk/contracts/oapp/libs/ReadCmdCodecV1.sol/ReadCmdCodecV1.json +22 -0
- package/artifacts-zk/contracts/oapp/utils/RateLimiter.sol/RateLimiter.json +105 -0
- package/artifacts-zk/contracts/oft/OFT.sol/OFT.json +1515 -0
- package/artifacts-zk/contracts/oft/OFTAdapter.sol/OFTAdapter.json +1245 -0
- package/artifacts-zk/contracts/oft/OFTCore.sol/OFTCore.json +1245 -0
- package/artifacts-zk/contracts/oft/interfaces/IOFT.sol/IOFT.json +457 -0
- package/artifacts-zk/contracts/oft/libs/OFTComposeMsgCodec.sol/OFTComposeMsgCodec.json +11 -0
- package/artifacts-zk/contracts/oft/libs/OFTMsgCodec.sol/OFTMsgCodec.json +11 -0
- package/artifacts-zk/contracts/precrime/OAppPreCrimeSimulator.sol/OAppPreCrimeSimulator.json +278 -0
- package/artifacts-zk/contracts/precrime/PreCrime.sol/PreCrime.json +353 -0
- package/artifacts-zk/contracts/precrime/extensions/PreCrimeE1.sol/PreCrimeE1.json +353 -0
- package/artifacts-zk/contracts/precrime/interfaces/IOAppPreCrimeSimulator.sol/IOAppPreCrimeSimulator.json +176 -0
- package/artifacts-zk/contracts/precrime/interfaces/IPreCrime.sol/IPreCrime.json +189 -0
- package/artifacts-zk/contracts/precrime/libs/Packet.sol/PacketDecoder.json +11 -0
- package/package.json +7 -7
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-zksolc-artifact-1",
|
|
3
|
+
"contractName": "OAppOptionsType3",
|
|
4
|
+
"sourceName": "contracts/oapp/libs/OAppOptionsType3.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "bytes",
|
|
10
|
+
"name": "options",
|
|
11
|
+
"type": "bytes"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"name": "InvalidOptions",
|
|
15
|
+
"type": "error"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"anonymous": false,
|
|
19
|
+
"inputs": [
|
|
20
|
+
{
|
|
21
|
+
"components": [
|
|
22
|
+
{
|
|
23
|
+
"internalType": "uint32",
|
|
24
|
+
"name": "eid",
|
|
25
|
+
"type": "uint32"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"internalType": "uint16",
|
|
29
|
+
"name": "msgType",
|
|
30
|
+
"type": "uint16"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"internalType": "bytes",
|
|
34
|
+
"name": "options",
|
|
35
|
+
"type": "bytes"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"indexed": false,
|
|
39
|
+
"internalType": "struct EnforcedOptionParam[]",
|
|
40
|
+
"name": "_enforcedOptions",
|
|
41
|
+
"type": "tuple[]"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"name": "EnforcedOptionSet",
|
|
45
|
+
"type": "event"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"anonymous": false,
|
|
49
|
+
"inputs": [
|
|
50
|
+
{
|
|
51
|
+
"indexed": true,
|
|
52
|
+
"internalType": "address",
|
|
53
|
+
"name": "previousOwner",
|
|
54
|
+
"type": "address"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"indexed": true,
|
|
58
|
+
"internalType": "address",
|
|
59
|
+
"name": "newOwner",
|
|
60
|
+
"type": "address"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"name": "OwnershipTransferred",
|
|
64
|
+
"type": "event"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"inputs": [
|
|
68
|
+
{
|
|
69
|
+
"internalType": "uint32",
|
|
70
|
+
"name": "_eid",
|
|
71
|
+
"type": "uint32"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"internalType": "uint16",
|
|
75
|
+
"name": "_msgType",
|
|
76
|
+
"type": "uint16"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"internalType": "bytes",
|
|
80
|
+
"name": "_extraOptions",
|
|
81
|
+
"type": "bytes"
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"name": "combineOptions",
|
|
85
|
+
"outputs": [
|
|
86
|
+
{
|
|
87
|
+
"internalType": "bytes",
|
|
88
|
+
"name": "",
|
|
89
|
+
"type": "bytes"
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
"stateMutability": "view",
|
|
93
|
+
"type": "function"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"inputs": [
|
|
97
|
+
{
|
|
98
|
+
"internalType": "uint32",
|
|
99
|
+
"name": "eid",
|
|
100
|
+
"type": "uint32"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"internalType": "uint16",
|
|
104
|
+
"name": "msgType",
|
|
105
|
+
"type": "uint16"
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
"name": "enforcedOptions",
|
|
109
|
+
"outputs": [
|
|
110
|
+
{
|
|
111
|
+
"internalType": "bytes",
|
|
112
|
+
"name": "enforcedOption",
|
|
113
|
+
"type": "bytes"
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
"stateMutability": "view",
|
|
117
|
+
"type": "function"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"inputs": [],
|
|
121
|
+
"name": "owner",
|
|
122
|
+
"outputs": [
|
|
123
|
+
{
|
|
124
|
+
"internalType": "address",
|
|
125
|
+
"name": "",
|
|
126
|
+
"type": "address"
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
"stateMutability": "view",
|
|
130
|
+
"type": "function"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"inputs": [],
|
|
134
|
+
"name": "renounceOwnership",
|
|
135
|
+
"outputs": [],
|
|
136
|
+
"stateMutability": "nonpayable",
|
|
137
|
+
"type": "function"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"inputs": [
|
|
141
|
+
{
|
|
142
|
+
"components": [
|
|
143
|
+
{
|
|
144
|
+
"internalType": "uint32",
|
|
145
|
+
"name": "eid",
|
|
146
|
+
"type": "uint32"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"internalType": "uint16",
|
|
150
|
+
"name": "msgType",
|
|
151
|
+
"type": "uint16"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"internalType": "bytes",
|
|
155
|
+
"name": "options",
|
|
156
|
+
"type": "bytes"
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
"internalType": "struct EnforcedOptionParam[]",
|
|
160
|
+
"name": "_enforcedOptions",
|
|
161
|
+
"type": "tuple[]"
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
"name": "setEnforcedOptions",
|
|
165
|
+
"outputs": [],
|
|
166
|
+
"stateMutability": "nonpayable",
|
|
167
|
+
"type": "function"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"inputs": [
|
|
171
|
+
{
|
|
172
|
+
"internalType": "address",
|
|
173
|
+
"name": "newOwner",
|
|
174
|
+
"type": "address"
|
|
175
|
+
}
|
|
176
|
+
],
|
|
177
|
+
"name": "transferOwnership",
|
|
178
|
+
"outputs": [],
|
|
179
|
+
"stateMutability": "nonpayable",
|
|
180
|
+
"type": "function"
|
|
181
|
+
}
|
|
182
|
+
],
|
|
183
|
+
"bytecode": "0x",
|
|
184
|
+
"deployedBytecode": "0x",
|
|
185
|
+
"linkReferences": {},
|
|
186
|
+
"deployedLinkReferences": {},
|
|
187
|
+
"factoryDeps": {}
|
|
188
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-zksolc-artifact-1",
|
|
3
|
+
"contractName": "OptionsBuilder",
|
|
4
|
+
"sourceName": "contracts/oapp/libs/OptionsBuilder.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "uint16",
|
|
10
|
+
"name": "optionType",
|
|
11
|
+
"type": "uint16"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"name": "InvalidOptionType",
|
|
15
|
+
"type": "error"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"inputs": [
|
|
19
|
+
{
|
|
20
|
+
"internalType": "uint256",
|
|
21
|
+
"name": "max",
|
|
22
|
+
"type": "uint256"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"internalType": "uint256",
|
|
26
|
+
"name": "actual",
|
|
27
|
+
"type": "uint256"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"name": "InvalidSize",
|
|
31
|
+
"type": "error"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"bytecode": "0x00000001012001900000000c0000613d0000008001000039000000400010043f0000000001000416000000000101004b0000000c0000c13d00000020010000390000010000100443000001200000044300000005010000410000000f0001042e000000000100001900000010000104300000000e000004320000000f0001042e00000010000104300000000000000000000000000000000000000000000000000000000200000000000000000000000000000040000001000000000000000000e4c11e455014cff4da3dbe056ea067894c7e388f14857a13bed3bf6228204129",
|
|
35
|
+
"deployedBytecode": "0x00000001012001900000000c0000613d0000008001000039000000400010043f0000000001000416000000000101004b0000000c0000c13d00000020010000390000010000100443000001200000044300000005010000410000000f0001042e000000000100001900000010000104300000000e000004320000000f0001042e00000010000104300000000000000000000000000000000000000000000000000000000200000000000000000000000000000040000001000000000000000000e4c11e455014cff4da3dbe056ea067894c7e388f14857a13bed3bf6228204129",
|
|
36
|
+
"linkReferences": {},
|
|
37
|
+
"deployedLinkReferences": {},
|
|
38
|
+
"factoryDeps": {}
|
|
39
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-zksolc-artifact-1",
|
|
3
|
+
"contractName": "ReadCmdCodecV1",
|
|
4
|
+
"sourceName": "contracts/oapp/libs/ReadCmdCodecV1.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [],
|
|
8
|
+
"name": "InvalidType",
|
|
9
|
+
"type": "error"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"inputs": [],
|
|
13
|
+
"name": "InvalidVersion",
|
|
14
|
+
"type": "error"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"bytecode": "0x00000001012001900000000c0000613d0000008001000039000000400010043f0000000001000416000000000101004b0000000c0000c13d00000020010000390000010000100443000001200000044300000005010000410000000f0001042e000000000100001900000010000104300000000e000004320000000f0001042e00000010000104300000000000000000000000000000000000000000000000000000000200000000000000000000000000000040000001000000000000000000eda00fa087edfe891d90d22f46f4d6551ff5c0e2a891d7627916ef1458f8ae00",
|
|
18
|
+
"deployedBytecode": "0x00000001012001900000000c0000613d0000008001000039000000400010043f0000000001000416000000000101004b0000000c0000c13d00000020010000390000010000100443000001200000044300000005010000410000000f0001042e000000000100001900000010000104300000000e000004320000000f0001042e00000010000104300000000000000000000000000000000000000000000000000000000200000000000000000000000000000040000001000000000000000000eda00fa087edfe891d90d22f46f4d6551ff5c0e2a891d7627916ef1458f8ae00",
|
|
19
|
+
"linkReferences": {},
|
|
20
|
+
"deployedLinkReferences": {},
|
|
21
|
+
"factoryDeps": {}
|
|
22
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-zksolc-artifact-1",
|
|
3
|
+
"contractName": "RateLimiter",
|
|
4
|
+
"sourceName": "contracts/oapp/utils/RateLimiter.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [],
|
|
8
|
+
"name": "RateLimitExceeded",
|
|
9
|
+
"type": "error"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"anonymous": false,
|
|
13
|
+
"inputs": [
|
|
14
|
+
{
|
|
15
|
+
"components": [
|
|
16
|
+
{
|
|
17
|
+
"internalType": "uint32",
|
|
18
|
+
"name": "dstEid",
|
|
19
|
+
"type": "uint32"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"internalType": "uint256",
|
|
23
|
+
"name": "limit",
|
|
24
|
+
"type": "uint256"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"internalType": "uint256",
|
|
28
|
+
"name": "window",
|
|
29
|
+
"type": "uint256"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"indexed": false,
|
|
33
|
+
"internalType": "struct RateLimiter.RateLimitConfig[]",
|
|
34
|
+
"name": "rateLimitConfigs",
|
|
35
|
+
"type": "tuple[]"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"name": "RateLimitsChanged",
|
|
39
|
+
"type": "event"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"inputs": [
|
|
43
|
+
{
|
|
44
|
+
"internalType": "uint32",
|
|
45
|
+
"name": "_dstEid",
|
|
46
|
+
"type": "uint32"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"name": "getAmountCanBeSent",
|
|
50
|
+
"outputs": [
|
|
51
|
+
{
|
|
52
|
+
"internalType": "uint256",
|
|
53
|
+
"name": "currentAmountInFlight",
|
|
54
|
+
"type": "uint256"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"internalType": "uint256",
|
|
58
|
+
"name": "amountCanBeSent",
|
|
59
|
+
"type": "uint256"
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"stateMutability": "view",
|
|
63
|
+
"type": "function"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"inputs": [
|
|
67
|
+
{
|
|
68
|
+
"internalType": "uint32",
|
|
69
|
+
"name": "dstEid",
|
|
70
|
+
"type": "uint32"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"name": "rateLimits",
|
|
74
|
+
"outputs": [
|
|
75
|
+
{
|
|
76
|
+
"internalType": "uint256",
|
|
77
|
+
"name": "amountInFlight",
|
|
78
|
+
"type": "uint256"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"internalType": "uint256",
|
|
82
|
+
"name": "lastUpdated",
|
|
83
|
+
"type": "uint256"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"internalType": "uint256",
|
|
87
|
+
"name": "limit",
|
|
88
|
+
"type": "uint256"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"internalType": "uint256",
|
|
92
|
+
"name": "window",
|
|
93
|
+
"type": "uint256"
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
"stateMutability": "view",
|
|
97
|
+
"type": "function"
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"bytecode": "0x",
|
|
101
|
+
"deployedBytecode": "0x",
|
|
102
|
+
"linkReferences": {},
|
|
103
|
+
"deployedLinkReferences": {},
|
|
104
|
+
"factoryDeps": {}
|
|
105
|
+
}
|