@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.
package/README.md ADDED
@@ -0,0 +1,23 @@
1
+ ## OneSig EVM:
2
+
3
+ ### Prerequisites
4
+
5
+ - [forge](https://book.getfoundry.sh/forge/)
6
+
7
+ ### install
8
+
9
+ ```bash
10
+ pnpm install
11
+ ```
12
+
13
+ ### build
14
+
15
+ ```bash
16
+ pnpm build
17
+ ```
18
+
19
+ ### test
20
+
21
+ ```bash
22
+ pnpm test
23
+ ```
@@ -0,0 +1,263 @@
1
+ {
2
+ "_format": "hh-sol-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
+ }