@0xsequence/abi 0.43.33 → 1.0.0
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/dist/0xsequence-abi.cjs.dev.js +176 -14
- package/dist/0xsequence-abi.cjs.prod.js +176 -14
- package/dist/0xsequence-abi.esm.js +176 -14
- package/dist/declarations/src/wallet/erc5719.d.ts +13 -0
- package/dist/declarations/src/wallet/erc6492.d.ts +25 -0
- package/dist/declarations/src/wallet/index.d.ts +4 -0
- package/package.json +1 -1
- package/src/wallet/erc5719.ts +20 -0
- package/src/wallet/erc6492.ts +2 -0
- package/src/wallet/index.ts +4 -0
|
@@ -2,7 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const abi$
|
|
5
|
+
const abi$7 = [{
|
|
6
|
+
"inputs": [{
|
|
7
|
+
"internalType": "bytes32",
|
|
8
|
+
"type": "bytes32"
|
|
9
|
+
}],
|
|
10
|
+
"name": "getAlternativeSignature",
|
|
11
|
+
"outputs": [{
|
|
12
|
+
"internalType": "string",
|
|
13
|
+
"type": "string"
|
|
14
|
+
}],
|
|
15
|
+
"stateMutability": "view",
|
|
16
|
+
"type": "function"
|
|
17
|
+
}];
|
|
18
|
+
|
|
19
|
+
var erc5719 = /*#__PURE__*/Object.freeze({
|
|
20
|
+
__proto__: null,
|
|
21
|
+
abi: abi$7
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
const abi$6 = [{
|
|
6
25
|
type: 'function',
|
|
7
26
|
name: 'isValidSignature',
|
|
8
27
|
constant: true,
|
|
@@ -22,9 +41,150 @@ const returns = {
|
|
|
22
41
|
};
|
|
23
42
|
|
|
24
43
|
var erc1271 = /*#__PURE__*/Object.freeze({
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
44
|
+
__proto__: null,
|
|
45
|
+
abi: abi$6,
|
|
46
|
+
returns: returns
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
const abi$5 = [{
|
|
50
|
+
"inputs": [{
|
|
51
|
+
"internalType": "bytes",
|
|
52
|
+
"name": "error",
|
|
53
|
+
"type": "bytes"
|
|
54
|
+
}],
|
|
55
|
+
"name": "ERC1271Revert",
|
|
56
|
+
"type": "error"
|
|
57
|
+
}, {
|
|
58
|
+
"inputs": [{
|
|
59
|
+
"internalType": "bytes",
|
|
60
|
+
"name": "error",
|
|
61
|
+
"type": "bytes"
|
|
62
|
+
}],
|
|
63
|
+
"name": "ERC6492DeployFailed",
|
|
64
|
+
"type": "error"
|
|
65
|
+
}, {
|
|
66
|
+
"inputs": [{
|
|
67
|
+
"internalType": "address",
|
|
68
|
+
"name": "_signer",
|
|
69
|
+
"type": "address"
|
|
70
|
+
}, {
|
|
71
|
+
"internalType": "bytes32",
|
|
72
|
+
"name": "_hash",
|
|
73
|
+
"type": "bytes32"
|
|
74
|
+
}, {
|
|
75
|
+
"internalType": "bytes",
|
|
76
|
+
"name": "_signature",
|
|
77
|
+
"type": "bytes"
|
|
78
|
+
}],
|
|
79
|
+
"name": "isValidSig",
|
|
80
|
+
"outputs": [{
|
|
81
|
+
"internalType": "bool",
|
|
82
|
+
"name": "",
|
|
83
|
+
"type": "bool"
|
|
84
|
+
}],
|
|
85
|
+
"stateMutability": "nonpayable",
|
|
86
|
+
"type": "function"
|
|
87
|
+
}, {
|
|
88
|
+
"inputs": [{
|
|
89
|
+
"internalType": "address",
|
|
90
|
+
"name": "_signer",
|
|
91
|
+
"type": "address"
|
|
92
|
+
}, {
|
|
93
|
+
"internalType": "bytes32",
|
|
94
|
+
"name": "_hash",
|
|
95
|
+
"type": "bytes32"
|
|
96
|
+
}, {
|
|
97
|
+
"internalType": "bytes",
|
|
98
|
+
"name": "_signature",
|
|
99
|
+
"type": "bytes"
|
|
100
|
+
}, {
|
|
101
|
+
"internalType": "bool",
|
|
102
|
+
"name": "allowSideEffects",
|
|
103
|
+
"type": "bool"
|
|
104
|
+
}, {
|
|
105
|
+
"internalType": "bool",
|
|
106
|
+
"name": "deployAlreadyDeployed",
|
|
107
|
+
"type": "bool"
|
|
108
|
+
}],
|
|
109
|
+
"name": "isValidSigImpl",
|
|
110
|
+
"outputs": [{
|
|
111
|
+
"internalType": "bool",
|
|
112
|
+
"name": "",
|
|
113
|
+
"type": "bool"
|
|
114
|
+
}],
|
|
115
|
+
"stateMutability": "nonpayable",
|
|
116
|
+
"type": "function"
|
|
117
|
+
}, {
|
|
118
|
+
"inputs": [{
|
|
119
|
+
"internalType": "address",
|
|
120
|
+
"name": "_signer",
|
|
121
|
+
"type": "address"
|
|
122
|
+
}, {
|
|
123
|
+
"internalType": "bytes32",
|
|
124
|
+
"name": "_hash",
|
|
125
|
+
"type": "bytes32"
|
|
126
|
+
}, {
|
|
127
|
+
"internalType": "bytes",
|
|
128
|
+
"name": "_signature",
|
|
129
|
+
"type": "bytes"
|
|
130
|
+
}],
|
|
131
|
+
"name": "isValidSigNoThrow",
|
|
132
|
+
"outputs": [{
|
|
133
|
+
"internalType": "bool",
|
|
134
|
+
"name": "",
|
|
135
|
+
"type": "bool"
|
|
136
|
+
}],
|
|
137
|
+
"stateMutability": "nonpayable",
|
|
138
|
+
"type": "function"
|
|
139
|
+
}, {
|
|
140
|
+
"inputs": [{
|
|
141
|
+
"internalType": "address",
|
|
142
|
+
"name": "_signer",
|
|
143
|
+
"type": "address"
|
|
144
|
+
}, {
|
|
145
|
+
"internalType": "bytes32",
|
|
146
|
+
"name": "_hash",
|
|
147
|
+
"type": "bytes32"
|
|
148
|
+
}, {
|
|
149
|
+
"internalType": "bytes",
|
|
150
|
+
"name": "_signature",
|
|
151
|
+
"type": "bytes"
|
|
152
|
+
}],
|
|
153
|
+
"name": "isValidSigWithSideEffects",
|
|
154
|
+
"outputs": [{
|
|
155
|
+
"internalType": "bool",
|
|
156
|
+
"name": "",
|
|
157
|
+
"type": "bool"
|
|
158
|
+
}],
|
|
159
|
+
"stateMutability": "nonpayable",
|
|
160
|
+
"type": "function"
|
|
161
|
+
}, {
|
|
162
|
+
"inputs": [{
|
|
163
|
+
"internalType": "address",
|
|
164
|
+
"name": "_signer",
|
|
165
|
+
"type": "address"
|
|
166
|
+
}, {
|
|
167
|
+
"internalType": "bytes32",
|
|
168
|
+
"name": "_hash",
|
|
169
|
+
"type": "bytes32"
|
|
170
|
+
}, {
|
|
171
|
+
"internalType": "bytes",
|
|
172
|
+
"name": "_signature",
|
|
173
|
+
"type": "bytes"
|
|
174
|
+
}],
|
|
175
|
+
"name": "isValidSigWithSideEffectsNoThrow",
|
|
176
|
+
"outputs": [{
|
|
177
|
+
"internalType": "bool",
|
|
178
|
+
"name": "",
|
|
179
|
+
"type": "bool"
|
|
180
|
+
}],
|
|
181
|
+
"stateMutability": "nonpayable",
|
|
182
|
+
"type": "function"
|
|
183
|
+
}];
|
|
184
|
+
|
|
185
|
+
var erc6492 = /*#__PURE__*/Object.freeze({
|
|
186
|
+
__proto__: null,
|
|
187
|
+
abi: abi$5
|
|
28
188
|
});
|
|
29
189
|
|
|
30
190
|
const abi$4 = [{
|
|
@@ -42,8 +202,8 @@ const abi$4 = [{
|
|
|
42
202
|
}];
|
|
43
203
|
|
|
44
204
|
var factory = /*#__PURE__*/Object.freeze({
|
|
45
|
-
|
|
46
|
-
|
|
205
|
+
__proto__: null,
|
|
206
|
+
abi: abi$4
|
|
47
207
|
});
|
|
48
208
|
|
|
49
209
|
const abi$3 = [{
|
|
@@ -151,8 +311,8 @@ const abi$3 = [{
|
|
|
151
311
|
}];
|
|
152
312
|
|
|
153
313
|
var mainModule = /*#__PURE__*/Object.freeze({
|
|
154
|
-
|
|
155
|
-
|
|
314
|
+
__proto__: null,
|
|
315
|
+
abi: abi$3
|
|
156
316
|
});
|
|
157
317
|
|
|
158
318
|
const abi$2 = [{
|
|
@@ -178,8 +338,8 @@ const abi$2 = [{
|
|
|
178
338
|
}];
|
|
179
339
|
|
|
180
340
|
var mainModuleUpgradable = /*#__PURE__*/Object.freeze({
|
|
181
|
-
|
|
182
|
-
|
|
341
|
+
__proto__: null,
|
|
342
|
+
abi: abi$2
|
|
183
343
|
});
|
|
184
344
|
|
|
185
345
|
const abi$1 = [{
|
|
@@ -577,8 +737,8 @@ const abi$1 = [{
|
|
|
577
737
|
}];
|
|
578
738
|
|
|
579
739
|
var sequenceUtils = /*#__PURE__*/Object.freeze({
|
|
580
|
-
|
|
581
|
-
|
|
740
|
+
__proto__: null,
|
|
741
|
+
abi: abi$1
|
|
582
742
|
});
|
|
583
743
|
|
|
584
744
|
const abi = [{
|
|
@@ -594,11 +754,13 @@ const abi = [{
|
|
|
594
754
|
}];
|
|
595
755
|
|
|
596
756
|
var requireFreshSigner = /*#__PURE__*/Object.freeze({
|
|
597
|
-
|
|
598
|
-
|
|
757
|
+
__proto__: null,
|
|
758
|
+
abi: abi
|
|
599
759
|
});
|
|
600
760
|
|
|
601
761
|
const walletContracts = {
|
|
762
|
+
erc6492,
|
|
763
|
+
erc5719,
|
|
602
764
|
erc1271,
|
|
603
765
|
factory,
|
|
604
766
|
mainModule,
|
|
@@ -2,7 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const abi$
|
|
5
|
+
const abi$7 = [{
|
|
6
|
+
"inputs": [{
|
|
7
|
+
"internalType": "bytes32",
|
|
8
|
+
"type": "bytes32"
|
|
9
|
+
}],
|
|
10
|
+
"name": "getAlternativeSignature",
|
|
11
|
+
"outputs": [{
|
|
12
|
+
"internalType": "string",
|
|
13
|
+
"type": "string"
|
|
14
|
+
}],
|
|
15
|
+
"stateMutability": "view",
|
|
16
|
+
"type": "function"
|
|
17
|
+
}];
|
|
18
|
+
|
|
19
|
+
var erc5719 = /*#__PURE__*/Object.freeze({
|
|
20
|
+
__proto__: null,
|
|
21
|
+
abi: abi$7
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
const abi$6 = [{
|
|
6
25
|
type: 'function',
|
|
7
26
|
name: 'isValidSignature',
|
|
8
27
|
constant: true,
|
|
@@ -22,9 +41,150 @@ const returns = {
|
|
|
22
41
|
};
|
|
23
42
|
|
|
24
43
|
var erc1271 = /*#__PURE__*/Object.freeze({
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
44
|
+
__proto__: null,
|
|
45
|
+
abi: abi$6,
|
|
46
|
+
returns: returns
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
const abi$5 = [{
|
|
50
|
+
"inputs": [{
|
|
51
|
+
"internalType": "bytes",
|
|
52
|
+
"name": "error",
|
|
53
|
+
"type": "bytes"
|
|
54
|
+
}],
|
|
55
|
+
"name": "ERC1271Revert",
|
|
56
|
+
"type": "error"
|
|
57
|
+
}, {
|
|
58
|
+
"inputs": [{
|
|
59
|
+
"internalType": "bytes",
|
|
60
|
+
"name": "error",
|
|
61
|
+
"type": "bytes"
|
|
62
|
+
}],
|
|
63
|
+
"name": "ERC6492DeployFailed",
|
|
64
|
+
"type": "error"
|
|
65
|
+
}, {
|
|
66
|
+
"inputs": [{
|
|
67
|
+
"internalType": "address",
|
|
68
|
+
"name": "_signer",
|
|
69
|
+
"type": "address"
|
|
70
|
+
}, {
|
|
71
|
+
"internalType": "bytes32",
|
|
72
|
+
"name": "_hash",
|
|
73
|
+
"type": "bytes32"
|
|
74
|
+
}, {
|
|
75
|
+
"internalType": "bytes",
|
|
76
|
+
"name": "_signature",
|
|
77
|
+
"type": "bytes"
|
|
78
|
+
}],
|
|
79
|
+
"name": "isValidSig",
|
|
80
|
+
"outputs": [{
|
|
81
|
+
"internalType": "bool",
|
|
82
|
+
"name": "",
|
|
83
|
+
"type": "bool"
|
|
84
|
+
}],
|
|
85
|
+
"stateMutability": "nonpayable",
|
|
86
|
+
"type": "function"
|
|
87
|
+
}, {
|
|
88
|
+
"inputs": [{
|
|
89
|
+
"internalType": "address",
|
|
90
|
+
"name": "_signer",
|
|
91
|
+
"type": "address"
|
|
92
|
+
}, {
|
|
93
|
+
"internalType": "bytes32",
|
|
94
|
+
"name": "_hash",
|
|
95
|
+
"type": "bytes32"
|
|
96
|
+
}, {
|
|
97
|
+
"internalType": "bytes",
|
|
98
|
+
"name": "_signature",
|
|
99
|
+
"type": "bytes"
|
|
100
|
+
}, {
|
|
101
|
+
"internalType": "bool",
|
|
102
|
+
"name": "allowSideEffects",
|
|
103
|
+
"type": "bool"
|
|
104
|
+
}, {
|
|
105
|
+
"internalType": "bool",
|
|
106
|
+
"name": "deployAlreadyDeployed",
|
|
107
|
+
"type": "bool"
|
|
108
|
+
}],
|
|
109
|
+
"name": "isValidSigImpl",
|
|
110
|
+
"outputs": [{
|
|
111
|
+
"internalType": "bool",
|
|
112
|
+
"name": "",
|
|
113
|
+
"type": "bool"
|
|
114
|
+
}],
|
|
115
|
+
"stateMutability": "nonpayable",
|
|
116
|
+
"type": "function"
|
|
117
|
+
}, {
|
|
118
|
+
"inputs": [{
|
|
119
|
+
"internalType": "address",
|
|
120
|
+
"name": "_signer",
|
|
121
|
+
"type": "address"
|
|
122
|
+
}, {
|
|
123
|
+
"internalType": "bytes32",
|
|
124
|
+
"name": "_hash",
|
|
125
|
+
"type": "bytes32"
|
|
126
|
+
}, {
|
|
127
|
+
"internalType": "bytes",
|
|
128
|
+
"name": "_signature",
|
|
129
|
+
"type": "bytes"
|
|
130
|
+
}],
|
|
131
|
+
"name": "isValidSigNoThrow",
|
|
132
|
+
"outputs": [{
|
|
133
|
+
"internalType": "bool",
|
|
134
|
+
"name": "",
|
|
135
|
+
"type": "bool"
|
|
136
|
+
}],
|
|
137
|
+
"stateMutability": "nonpayable",
|
|
138
|
+
"type": "function"
|
|
139
|
+
}, {
|
|
140
|
+
"inputs": [{
|
|
141
|
+
"internalType": "address",
|
|
142
|
+
"name": "_signer",
|
|
143
|
+
"type": "address"
|
|
144
|
+
}, {
|
|
145
|
+
"internalType": "bytes32",
|
|
146
|
+
"name": "_hash",
|
|
147
|
+
"type": "bytes32"
|
|
148
|
+
}, {
|
|
149
|
+
"internalType": "bytes",
|
|
150
|
+
"name": "_signature",
|
|
151
|
+
"type": "bytes"
|
|
152
|
+
}],
|
|
153
|
+
"name": "isValidSigWithSideEffects",
|
|
154
|
+
"outputs": [{
|
|
155
|
+
"internalType": "bool",
|
|
156
|
+
"name": "",
|
|
157
|
+
"type": "bool"
|
|
158
|
+
}],
|
|
159
|
+
"stateMutability": "nonpayable",
|
|
160
|
+
"type": "function"
|
|
161
|
+
}, {
|
|
162
|
+
"inputs": [{
|
|
163
|
+
"internalType": "address",
|
|
164
|
+
"name": "_signer",
|
|
165
|
+
"type": "address"
|
|
166
|
+
}, {
|
|
167
|
+
"internalType": "bytes32",
|
|
168
|
+
"name": "_hash",
|
|
169
|
+
"type": "bytes32"
|
|
170
|
+
}, {
|
|
171
|
+
"internalType": "bytes",
|
|
172
|
+
"name": "_signature",
|
|
173
|
+
"type": "bytes"
|
|
174
|
+
}],
|
|
175
|
+
"name": "isValidSigWithSideEffectsNoThrow",
|
|
176
|
+
"outputs": [{
|
|
177
|
+
"internalType": "bool",
|
|
178
|
+
"name": "",
|
|
179
|
+
"type": "bool"
|
|
180
|
+
}],
|
|
181
|
+
"stateMutability": "nonpayable",
|
|
182
|
+
"type": "function"
|
|
183
|
+
}];
|
|
184
|
+
|
|
185
|
+
var erc6492 = /*#__PURE__*/Object.freeze({
|
|
186
|
+
__proto__: null,
|
|
187
|
+
abi: abi$5
|
|
28
188
|
});
|
|
29
189
|
|
|
30
190
|
const abi$4 = [{
|
|
@@ -42,8 +202,8 @@ const abi$4 = [{
|
|
|
42
202
|
}];
|
|
43
203
|
|
|
44
204
|
var factory = /*#__PURE__*/Object.freeze({
|
|
45
|
-
|
|
46
|
-
|
|
205
|
+
__proto__: null,
|
|
206
|
+
abi: abi$4
|
|
47
207
|
});
|
|
48
208
|
|
|
49
209
|
const abi$3 = [{
|
|
@@ -151,8 +311,8 @@ const abi$3 = [{
|
|
|
151
311
|
}];
|
|
152
312
|
|
|
153
313
|
var mainModule = /*#__PURE__*/Object.freeze({
|
|
154
|
-
|
|
155
|
-
|
|
314
|
+
__proto__: null,
|
|
315
|
+
abi: abi$3
|
|
156
316
|
});
|
|
157
317
|
|
|
158
318
|
const abi$2 = [{
|
|
@@ -178,8 +338,8 @@ const abi$2 = [{
|
|
|
178
338
|
}];
|
|
179
339
|
|
|
180
340
|
var mainModuleUpgradable = /*#__PURE__*/Object.freeze({
|
|
181
|
-
|
|
182
|
-
|
|
341
|
+
__proto__: null,
|
|
342
|
+
abi: abi$2
|
|
183
343
|
});
|
|
184
344
|
|
|
185
345
|
const abi$1 = [{
|
|
@@ -577,8 +737,8 @@ const abi$1 = [{
|
|
|
577
737
|
}];
|
|
578
738
|
|
|
579
739
|
var sequenceUtils = /*#__PURE__*/Object.freeze({
|
|
580
|
-
|
|
581
|
-
|
|
740
|
+
__proto__: null,
|
|
741
|
+
abi: abi$1
|
|
582
742
|
});
|
|
583
743
|
|
|
584
744
|
const abi = [{
|
|
@@ -594,11 +754,13 @@ const abi = [{
|
|
|
594
754
|
}];
|
|
595
755
|
|
|
596
756
|
var requireFreshSigner = /*#__PURE__*/Object.freeze({
|
|
597
|
-
|
|
598
|
-
|
|
757
|
+
__proto__: null,
|
|
758
|
+
abi: abi
|
|
599
759
|
});
|
|
600
760
|
|
|
601
761
|
const walletContracts = {
|
|
762
|
+
erc6492,
|
|
763
|
+
erc5719,
|
|
602
764
|
erc1271,
|
|
603
765
|
factory,
|
|
604
766
|
mainModule,
|
|
@@ -1,4 +1,23 @@
|
|
|
1
|
-
const abi$
|
|
1
|
+
const abi$7 = [{
|
|
2
|
+
"inputs": [{
|
|
3
|
+
"internalType": "bytes32",
|
|
4
|
+
"type": "bytes32"
|
|
5
|
+
}],
|
|
6
|
+
"name": "getAlternativeSignature",
|
|
7
|
+
"outputs": [{
|
|
8
|
+
"internalType": "string",
|
|
9
|
+
"type": "string"
|
|
10
|
+
}],
|
|
11
|
+
"stateMutability": "view",
|
|
12
|
+
"type": "function"
|
|
13
|
+
}];
|
|
14
|
+
|
|
15
|
+
var erc5719 = /*#__PURE__*/Object.freeze({
|
|
16
|
+
__proto__: null,
|
|
17
|
+
abi: abi$7
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
const abi$6 = [{
|
|
2
21
|
type: 'function',
|
|
3
22
|
name: 'isValidSignature',
|
|
4
23
|
constant: true,
|
|
@@ -18,9 +37,150 @@ const returns = {
|
|
|
18
37
|
};
|
|
19
38
|
|
|
20
39
|
var erc1271 = /*#__PURE__*/Object.freeze({
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
40
|
+
__proto__: null,
|
|
41
|
+
abi: abi$6,
|
|
42
|
+
returns: returns
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
const abi$5 = [{
|
|
46
|
+
"inputs": [{
|
|
47
|
+
"internalType": "bytes",
|
|
48
|
+
"name": "error",
|
|
49
|
+
"type": "bytes"
|
|
50
|
+
}],
|
|
51
|
+
"name": "ERC1271Revert",
|
|
52
|
+
"type": "error"
|
|
53
|
+
}, {
|
|
54
|
+
"inputs": [{
|
|
55
|
+
"internalType": "bytes",
|
|
56
|
+
"name": "error",
|
|
57
|
+
"type": "bytes"
|
|
58
|
+
}],
|
|
59
|
+
"name": "ERC6492DeployFailed",
|
|
60
|
+
"type": "error"
|
|
61
|
+
}, {
|
|
62
|
+
"inputs": [{
|
|
63
|
+
"internalType": "address",
|
|
64
|
+
"name": "_signer",
|
|
65
|
+
"type": "address"
|
|
66
|
+
}, {
|
|
67
|
+
"internalType": "bytes32",
|
|
68
|
+
"name": "_hash",
|
|
69
|
+
"type": "bytes32"
|
|
70
|
+
}, {
|
|
71
|
+
"internalType": "bytes",
|
|
72
|
+
"name": "_signature",
|
|
73
|
+
"type": "bytes"
|
|
74
|
+
}],
|
|
75
|
+
"name": "isValidSig",
|
|
76
|
+
"outputs": [{
|
|
77
|
+
"internalType": "bool",
|
|
78
|
+
"name": "",
|
|
79
|
+
"type": "bool"
|
|
80
|
+
}],
|
|
81
|
+
"stateMutability": "nonpayable",
|
|
82
|
+
"type": "function"
|
|
83
|
+
}, {
|
|
84
|
+
"inputs": [{
|
|
85
|
+
"internalType": "address",
|
|
86
|
+
"name": "_signer",
|
|
87
|
+
"type": "address"
|
|
88
|
+
}, {
|
|
89
|
+
"internalType": "bytes32",
|
|
90
|
+
"name": "_hash",
|
|
91
|
+
"type": "bytes32"
|
|
92
|
+
}, {
|
|
93
|
+
"internalType": "bytes",
|
|
94
|
+
"name": "_signature",
|
|
95
|
+
"type": "bytes"
|
|
96
|
+
}, {
|
|
97
|
+
"internalType": "bool",
|
|
98
|
+
"name": "allowSideEffects",
|
|
99
|
+
"type": "bool"
|
|
100
|
+
}, {
|
|
101
|
+
"internalType": "bool",
|
|
102
|
+
"name": "deployAlreadyDeployed",
|
|
103
|
+
"type": "bool"
|
|
104
|
+
}],
|
|
105
|
+
"name": "isValidSigImpl",
|
|
106
|
+
"outputs": [{
|
|
107
|
+
"internalType": "bool",
|
|
108
|
+
"name": "",
|
|
109
|
+
"type": "bool"
|
|
110
|
+
}],
|
|
111
|
+
"stateMutability": "nonpayable",
|
|
112
|
+
"type": "function"
|
|
113
|
+
}, {
|
|
114
|
+
"inputs": [{
|
|
115
|
+
"internalType": "address",
|
|
116
|
+
"name": "_signer",
|
|
117
|
+
"type": "address"
|
|
118
|
+
}, {
|
|
119
|
+
"internalType": "bytes32",
|
|
120
|
+
"name": "_hash",
|
|
121
|
+
"type": "bytes32"
|
|
122
|
+
}, {
|
|
123
|
+
"internalType": "bytes",
|
|
124
|
+
"name": "_signature",
|
|
125
|
+
"type": "bytes"
|
|
126
|
+
}],
|
|
127
|
+
"name": "isValidSigNoThrow",
|
|
128
|
+
"outputs": [{
|
|
129
|
+
"internalType": "bool",
|
|
130
|
+
"name": "",
|
|
131
|
+
"type": "bool"
|
|
132
|
+
}],
|
|
133
|
+
"stateMutability": "nonpayable",
|
|
134
|
+
"type": "function"
|
|
135
|
+
}, {
|
|
136
|
+
"inputs": [{
|
|
137
|
+
"internalType": "address",
|
|
138
|
+
"name": "_signer",
|
|
139
|
+
"type": "address"
|
|
140
|
+
}, {
|
|
141
|
+
"internalType": "bytes32",
|
|
142
|
+
"name": "_hash",
|
|
143
|
+
"type": "bytes32"
|
|
144
|
+
}, {
|
|
145
|
+
"internalType": "bytes",
|
|
146
|
+
"name": "_signature",
|
|
147
|
+
"type": "bytes"
|
|
148
|
+
}],
|
|
149
|
+
"name": "isValidSigWithSideEffects",
|
|
150
|
+
"outputs": [{
|
|
151
|
+
"internalType": "bool",
|
|
152
|
+
"name": "",
|
|
153
|
+
"type": "bool"
|
|
154
|
+
}],
|
|
155
|
+
"stateMutability": "nonpayable",
|
|
156
|
+
"type": "function"
|
|
157
|
+
}, {
|
|
158
|
+
"inputs": [{
|
|
159
|
+
"internalType": "address",
|
|
160
|
+
"name": "_signer",
|
|
161
|
+
"type": "address"
|
|
162
|
+
}, {
|
|
163
|
+
"internalType": "bytes32",
|
|
164
|
+
"name": "_hash",
|
|
165
|
+
"type": "bytes32"
|
|
166
|
+
}, {
|
|
167
|
+
"internalType": "bytes",
|
|
168
|
+
"name": "_signature",
|
|
169
|
+
"type": "bytes"
|
|
170
|
+
}],
|
|
171
|
+
"name": "isValidSigWithSideEffectsNoThrow",
|
|
172
|
+
"outputs": [{
|
|
173
|
+
"internalType": "bool",
|
|
174
|
+
"name": "",
|
|
175
|
+
"type": "bool"
|
|
176
|
+
}],
|
|
177
|
+
"stateMutability": "nonpayable",
|
|
178
|
+
"type": "function"
|
|
179
|
+
}];
|
|
180
|
+
|
|
181
|
+
var erc6492 = /*#__PURE__*/Object.freeze({
|
|
182
|
+
__proto__: null,
|
|
183
|
+
abi: abi$5
|
|
24
184
|
});
|
|
25
185
|
|
|
26
186
|
const abi$4 = [{
|
|
@@ -38,8 +198,8 @@ const abi$4 = [{
|
|
|
38
198
|
}];
|
|
39
199
|
|
|
40
200
|
var factory = /*#__PURE__*/Object.freeze({
|
|
41
|
-
|
|
42
|
-
|
|
201
|
+
__proto__: null,
|
|
202
|
+
abi: abi$4
|
|
43
203
|
});
|
|
44
204
|
|
|
45
205
|
const abi$3 = [{
|
|
@@ -147,8 +307,8 @@ const abi$3 = [{
|
|
|
147
307
|
}];
|
|
148
308
|
|
|
149
309
|
var mainModule = /*#__PURE__*/Object.freeze({
|
|
150
|
-
|
|
151
|
-
|
|
310
|
+
__proto__: null,
|
|
311
|
+
abi: abi$3
|
|
152
312
|
});
|
|
153
313
|
|
|
154
314
|
const abi$2 = [{
|
|
@@ -174,8 +334,8 @@ const abi$2 = [{
|
|
|
174
334
|
}];
|
|
175
335
|
|
|
176
336
|
var mainModuleUpgradable = /*#__PURE__*/Object.freeze({
|
|
177
|
-
|
|
178
|
-
|
|
337
|
+
__proto__: null,
|
|
338
|
+
abi: abi$2
|
|
179
339
|
});
|
|
180
340
|
|
|
181
341
|
const abi$1 = [{
|
|
@@ -573,8 +733,8 @@ const abi$1 = [{
|
|
|
573
733
|
}];
|
|
574
734
|
|
|
575
735
|
var sequenceUtils = /*#__PURE__*/Object.freeze({
|
|
576
|
-
|
|
577
|
-
|
|
736
|
+
__proto__: null,
|
|
737
|
+
abi: abi$1
|
|
578
738
|
});
|
|
579
739
|
|
|
580
740
|
const abi = [{
|
|
@@ -590,11 +750,13 @@ const abi = [{
|
|
|
590
750
|
}];
|
|
591
751
|
|
|
592
752
|
var requireFreshSigner = /*#__PURE__*/Object.freeze({
|
|
593
|
-
|
|
594
|
-
|
|
753
|
+
__proto__: null,
|
|
754
|
+
abi: abi
|
|
595
755
|
});
|
|
596
756
|
|
|
597
757
|
const walletContracts = {
|
|
758
|
+
erc6492,
|
|
759
|
+
erc5719,
|
|
598
760
|
erc1271,
|
|
599
761
|
factory,
|
|
600
762
|
mainModule,
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const abi: ({
|
|
2
|
+
inputs: {
|
|
3
|
+
internalType: string;
|
|
4
|
+
name: string;
|
|
5
|
+
type: string;
|
|
6
|
+
}[];
|
|
7
|
+
name: string;
|
|
8
|
+
type: string;
|
|
9
|
+
outputs?: undefined;
|
|
10
|
+
stateMutability?: undefined;
|
|
11
|
+
} | {
|
|
12
|
+
inputs: {
|
|
13
|
+
internalType: string;
|
|
14
|
+
name: string;
|
|
15
|
+
type: string;
|
|
16
|
+
}[];
|
|
17
|
+
name: string;
|
|
18
|
+
outputs: {
|
|
19
|
+
internalType: string;
|
|
20
|
+
name: string;
|
|
21
|
+
type: string;
|
|
22
|
+
}[];
|
|
23
|
+
stateMutability: string;
|
|
24
|
+
type: string;
|
|
25
|
+
})[];
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
import * as erc5719 from './erc5719';
|
|
1
2
|
import * as erc1271 from './erc1271';
|
|
3
|
+
import * as erc6492 from './erc6492';
|
|
2
4
|
import * as factory from './factory';
|
|
3
5
|
import * as mainModule from './mainModule';
|
|
4
6
|
import * as mainModuleUpgradable from './mainModuleUpgradable';
|
|
5
7
|
import * as sequenceUtils from './sequenceUtils';
|
|
6
8
|
import * as requireFreshSigner from './libs/requireFreshSigners';
|
|
7
9
|
export declare const walletContracts: {
|
|
10
|
+
erc6492: typeof erc6492;
|
|
11
|
+
erc5719: typeof erc5719;
|
|
8
12
|
erc1271: typeof erc1271;
|
|
9
13
|
factory: typeof factory;
|
|
10
14
|
mainModule: typeof mainModule;
|
package/package.json
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
|
|
2
|
+
export const abi = [
|
|
3
|
+
{
|
|
4
|
+
"inputs": [
|
|
5
|
+
{
|
|
6
|
+
"internalType": "bytes32",
|
|
7
|
+
"type": "bytes32"
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"name": "getAlternativeSignature",
|
|
11
|
+
"outputs": [
|
|
12
|
+
{
|
|
13
|
+
"internalType": "string",
|
|
14
|
+
"type": "string"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"stateMutability": "view",
|
|
18
|
+
"type": "function"
|
|
19
|
+
}
|
|
20
|
+
]
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
export const abi = [{"inputs":[{"internalType":"bytes","name":"error","type":"bytes"}],"name":"ERC1271Revert","type":"error"},{"inputs":[{"internalType":"bytes","name":"error","type":"bytes"}],"name":"ERC6492DeployFailed","type":"error"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"},{"internalType":"bytes32","name":"_hash","type":"bytes32"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"isValidSig","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"},{"internalType":"bytes32","name":"_hash","type":"bytes32"},{"internalType":"bytes","name":"_signature","type":"bytes"},{"internalType":"bool","name":"allowSideEffects","type":"bool"},{"internalType":"bool","name":"deployAlreadyDeployed","type":"bool"}],"name":"isValidSigImpl","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"},{"internalType":"bytes32","name":"_hash","type":"bytes32"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"isValidSigNoThrow","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"},{"internalType":"bytes32","name":"_hash","type":"bytes32"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"isValidSigWithSideEffects","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"},{"internalType":"bytes32","name":"_hash","type":"bytes32"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"isValidSigWithSideEffectsNoThrow","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]
|
package/src/wallet/index.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import * as erc5719 from './erc5719'
|
|
1
2
|
import * as erc1271 from './erc1271'
|
|
3
|
+
import * as erc6492 from './erc6492'
|
|
2
4
|
import * as factory from './factory'
|
|
3
5
|
import * as mainModule from './mainModule'
|
|
4
6
|
import * as mainModuleUpgradable from './mainModuleUpgradable'
|
|
@@ -6,6 +8,8 @@ import * as sequenceUtils from './sequenceUtils'
|
|
|
6
8
|
import * as requireFreshSigner from './libs/requireFreshSigners'
|
|
7
9
|
|
|
8
10
|
export const walletContracts = {
|
|
11
|
+
erc6492,
|
|
12
|
+
erc5719,
|
|
9
13
|
erc1271,
|
|
10
14
|
factory,
|
|
11
15
|
mainModule,
|