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