@layerzerolabs/onesig-evm 0.0.1

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.
@@ -0,0 +1,52 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "MockOApp",
4
+ "sourceName": "contracts/mocks/MockOApp.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "uint32",
10
+ "name": "",
11
+ "type": "uint32"
12
+ }
13
+ ],
14
+ "name": "bytesMapping",
15
+ "outputs": [
16
+ {
17
+ "internalType": "bytes",
18
+ "name": "",
19
+ "type": "bytes"
20
+ }
21
+ ],
22
+ "stateMutability": "view",
23
+ "type": "function"
24
+ },
25
+ {
26
+ "inputs": [
27
+ {
28
+ "internalType": "uint32",
29
+ "name": "_dstEid",
30
+ "type": "uint32"
31
+ },
32
+ {
33
+ "internalType": "bytes",
34
+ "name": "_bytes",
35
+ "type": "bytes"
36
+ }
37
+ ],
38
+ "name": "setBytes",
39
+ "outputs": [],
40
+ "stateMutability": "nonpayable",
41
+ "type": "function"
42
+ },
43
+ {
44
+ "stateMutability": "payable",
45
+ "type": "receive"
46
+ }
47
+ ],
48
+ "bytecode": "0x608060405234801561001057600080fd5b50d3801561001d57600080fd5b50d2801561002a57600080fd5b506104d18061003a6000396000f3fe60806040526004361061002d5760003560e01c8063063a540814610039578063404110861461008957600080fd5b3661003457005b600080fd5b34801561004557600080fd5b50d3801561005257600080fd5b50d2801561005f57600080fd5b5061007361006e36600461019e565b6100c5565b60405161008091906101c0565b60405180910390f35b34801561009557600080fd5b50d380156100a257600080fd5b50d280156100af57600080fd5b506100c36100be36600461022c565b61015f565b005b600060208190529081526040902080546100de906102af565b80601f016020809104026020016040519081016040528092919081815260200182805461010a906102af565b80156101575780601f1061012c57610100808354040283529160200191610157565b820191906000526020600020905b81548152906001019060200180831161013a57829003601f168201915b505050505081565b63ffffffff8316600090815260208190526040902061017f828483610380565b50505050565b803563ffffffff8116811461019957600080fd5b919050565b6000602082840312156101b057600080fd5b6101b982610185565b9392505050565b600060208083528351808285015260005b818110156101ed578581018301518582016040015282016101d1565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b60008060006040848603121561024157600080fd5b61024a84610185565b9250602084013567ffffffffffffffff8082111561026757600080fd5b818601915086601f83011261027b57600080fd5b81358181111561028a57600080fd5b87602082850101111561029c57600080fd5b6020830194508093505050509250925092565b600181811c908216806102c357607f821691505b6020821081036102fc577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b601f82111561037b57600081815260208120601f850160051c810160208610156103585750805b601f850160051c820191505b8181101561037757828155600101610364565b5050505b505050565b67ffffffffffffffff83111561039857610398610302565b6103ac836103a683546102af565b83610331565b6000601f8411600181146103fe57600085156103c85750838201355b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600387901b1c1916600186901b178355610494565b6000838152602090207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0861690835b8281101561044d578685013582556020948501946001909201910161042d565b5086821015610488577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60f88860031b161c19848701351681555b505060018560011b0183555b505050505056fea26474726f6e582212206b8b186131afa40901a952cc1dfd0fb19ccab2a7407cfcdc9ed08e85090dd0c764736f6c63430008140033",
49
+ "deployedBytecode": "0x60806040526004361061002d5760003560e01c8063063a540814610039578063404110861461008957600080fd5b3661003457005b600080fd5b34801561004557600080fd5b50d3801561005257600080fd5b50d2801561005f57600080fd5b5061007361006e36600461019e565b6100c5565b60405161008091906101c0565b60405180910390f35b34801561009557600080fd5b50d380156100a257600080fd5b50d280156100af57600080fd5b506100c36100be36600461022c565b61015f565b005b600060208190529081526040902080546100de906102af565b80601f016020809104026020016040519081016040528092919081815260200182805461010a906102af565b80156101575780601f1061012c57610100808354040283529160200191610157565b820191906000526020600020905b81548152906001019060200180831161013a57829003601f168201915b505050505081565b63ffffffff8316600090815260208190526040902061017f828483610380565b50505050565b803563ffffffff8116811461019957600080fd5b919050565b6000602082840312156101b057600080fd5b6101b982610185565b9392505050565b600060208083528351808285015260005b818110156101ed578581018301518582016040015282016101d1565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b60008060006040848603121561024157600080fd5b61024a84610185565b9250602084013567ffffffffffffffff8082111561026757600080fd5b818601915086601f83011261027b57600080fd5b81358181111561028a57600080fd5b87602082850101111561029c57600080fd5b6020830194508093505050509250925092565b600181811c908216806102c357607f821691505b6020821081036102fc577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b601f82111561037b57600081815260208120601f850160051c810160208610156103585750805b601f850160051c820191505b8181101561037757828155600101610364565b5050505b505050565b67ffffffffffffffff83111561039857610398610302565b6103ac836103a683546102af565b83610331565b6000601f8411600181146103fe57600085156103c85750838201355b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600387901b1c1916600186901b178355610494565b6000838152602090207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0861690835b8281101561044d578685013582556020948501946001909201910161042d565b5086821015610488577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff60f88860031b161c19848701351681555b505060018560011b0183555b505050505056fea26474726f6e582212206b8b186131afa40901a952cc1dfd0fb19ccab2a7407cfcdc9ed08e85090dd0c764736f6c63430008140033",
50
+ "linkReferences": {},
51
+ "deployedLinkReferences": {}
52
+ }
@@ -0,0 +1,264 @@
1
+ {
2
+ "_format": "hh-zksolc-artifact-1",
3
+ "contractName": "MultiSig",
4
+ "sourceName": "contracts/MultiSig.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [],
8
+ "name": "ECDSAInvalidSignature",
9
+ "type": "error"
10
+ },
11
+ {
12
+ "inputs": [
13
+ {
14
+ "internalType": "uint256",
15
+ "name": "length",
16
+ "type": "uint256"
17
+ }
18
+ ],
19
+ "name": "ECDSAInvalidSignatureLength",
20
+ "type": "error"
21
+ },
22
+ {
23
+ "inputs": [
24
+ {
25
+ "internalType": "bytes32",
26
+ "name": "s",
27
+ "type": "bytes32"
28
+ }
29
+ ],
30
+ "name": "ECDSAInvalidSignatureS",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [],
35
+ "name": "InvalidSigner",
36
+ "type": "error"
37
+ },
38
+ {
39
+ "inputs": [],
40
+ "name": "OnlyMultiSig",
41
+ "type": "error"
42
+ },
43
+ {
44
+ "inputs": [],
45
+ "name": "SignatureError",
46
+ "type": "error"
47
+ },
48
+ {
49
+ "inputs": [
50
+ {
51
+ "internalType": "address",
52
+ "name": "signer",
53
+ "type": "address"
54
+ }
55
+ ],
56
+ "name": "SignerAlreadyAdded",
57
+ "type": "error"
58
+ },
59
+ {
60
+ "inputs": [
61
+ {
62
+ "internalType": "address",
63
+ "name": "signer",
64
+ "type": "address"
65
+ }
66
+ ],
67
+ "name": "SignerNotFound",
68
+ "type": "error"
69
+ },
70
+ {
71
+ "inputs": [
72
+ {
73
+ "internalType": "uint256",
74
+ "name": "totalSigners",
75
+ "type": "uint256"
76
+ },
77
+ {
78
+ "internalType": "uint256",
79
+ "name": "threshold",
80
+ "type": "uint256"
81
+ }
82
+ ],
83
+ "name": "TotalSignersLessThanThreshold",
84
+ "type": "error"
85
+ },
86
+ {
87
+ "inputs": [],
88
+ "name": "UnsortedSigners",
89
+ "type": "error"
90
+ },
91
+ {
92
+ "inputs": [],
93
+ "name": "ZeroThreshold",
94
+ "type": "error"
95
+ },
96
+ {
97
+ "anonymous": false,
98
+ "inputs": [
99
+ {
100
+ "indexed": false,
101
+ "internalType": "address",
102
+ "name": "signer",
103
+ "type": "address"
104
+ },
105
+ {
106
+ "indexed": false,
107
+ "internalType": "bool",
108
+ "name": "active",
109
+ "type": "bool"
110
+ }
111
+ ],
112
+ "name": "SignerSet",
113
+ "type": "event"
114
+ },
115
+ {
116
+ "anonymous": false,
117
+ "inputs": [
118
+ {
119
+ "indexed": false,
120
+ "internalType": "uint256",
121
+ "name": "threshold",
122
+ "type": "uint256"
123
+ }
124
+ ],
125
+ "name": "ThresholdSet",
126
+ "type": "event"
127
+ },
128
+ {
129
+ "inputs": [],
130
+ "name": "getSigners",
131
+ "outputs": [
132
+ {
133
+ "internalType": "address[]",
134
+ "name": "",
135
+ "type": "address[]"
136
+ }
137
+ ],
138
+ "stateMutability": "view",
139
+ "type": "function"
140
+ },
141
+ {
142
+ "inputs": [
143
+ {
144
+ "internalType": "address",
145
+ "name": "_signer",
146
+ "type": "address"
147
+ }
148
+ ],
149
+ "name": "isSigner",
150
+ "outputs": [
151
+ {
152
+ "internalType": "bool",
153
+ "name": "",
154
+ "type": "bool"
155
+ }
156
+ ],
157
+ "stateMutability": "view",
158
+ "type": "function"
159
+ },
160
+ {
161
+ "inputs": [
162
+ {
163
+ "internalType": "address",
164
+ "name": "_signer",
165
+ "type": "address"
166
+ },
167
+ {
168
+ "internalType": "bool",
169
+ "name": "_active",
170
+ "type": "bool"
171
+ }
172
+ ],
173
+ "name": "setSigner",
174
+ "outputs": [],
175
+ "stateMutability": "nonpayable",
176
+ "type": "function"
177
+ },
178
+ {
179
+ "inputs": [
180
+ {
181
+ "internalType": "uint256",
182
+ "name": "_threshold",
183
+ "type": "uint256"
184
+ }
185
+ ],
186
+ "name": "setThreshold",
187
+ "outputs": [],
188
+ "stateMutability": "nonpayable",
189
+ "type": "function"
190
+ },
191
+ {
192
+ "inputs": [],
193
+ "name": "threshold",
194
+ "outputs": [
195
+ {
196
+ "internalType": "uint256",
197
+ "name": "",
198
+ "type": "uint256"
199
+ }
200
+ ],
201
+ "stateMutability": "view",
202
+ "type": "function"
203
+ },
204
+ {
205
+ "inputs": [],
206
+ "name": "totalSigners",
207
+ "outputs": [
208
+ {
209
+ "internalType": "uint256",
210
+ "name": "",
211
+ "type": "uint256"
212
+ }
213
+ ],
214
+ "stateMutability": "view",
215
+ "type": "function"
216
+ },
217
+ {
218
+ "inputs": [
219
+ {
220
+ "internalType": "bytes32",
221
+ "name": "_digest",
222
+ "type": "bytes32"
223
+ },
224
+ {
225
+ "internalType": "bytes",
226
+ "name": "_signatures",
227
+ "type": "bytes"
228
+ },
229
+ {
230
+ "internalType": "uint256",
231
+ "name": "_threshold",
232
+ "type": "uint256"
233
+ }
234
+ ],
235
+ "name": "verifyNSignatures",
236
+ "outputs": [],
237
+ "stateMutability": "view",
238
+ "type": "function"
239
+ },
240
+ {
241
+ "inputs": [
242
+ {
243
+ "internalType": "bytes32",
244
+ "name": "_digest",
245
+ "type": "bytes32"
246
+ },
247
+ {
248
+ "internalType": "bytes",
249
+ "name": "_signatures",
250
+ "type": "bytes"
251
+ }
252
+ ],
253
+ "name": "verifySignatures",
254
+ "outputs": [],
255
+ "stateMutability": "view",
256
+ "type": "function"
257
+ }
258
+ ],
259
+ "bytecode": "0x",
260
+ "deployedBytecode": "0x",
261
+ "linkReferences": {},
262
+ "deployedLinkReferences": {},
263
+ "factoryDeps": {}
264
+ }