@medialane/sdk 0.208.0 → 0.211.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/{chunk-7QPV7UQU.js → chunk-3SIT2PCD.js} +2 -3
- package/dist/chunk-3SIT2PCD.js.map +1 -0
- package/dist/{chunk-4QPF6AZV.cjs → chunk-3V3L2R5O.cjs} +2 -3
- package/dist/chunk-3V3L2R5O.cjs.map +1 -0
- package/dist/{chunk-7KLSPB7T.cjs → chunk-IE2YYAF5.cjs} +69 -28
- package/dist/chunk-IE2YYAF5.cjs.map +1 -0
- package/dist/{chunk-MK7OLAZD.js → chunk-PVU5AYOO.js} +50 -12
- package/dist/chunk-PVU5AYOO.js.map +1 -0
- package/dist/index.cjs +34 -34
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/{passkey-errors-BIb35H7w.d.ts → passkey-errors-BXclgAtu.d.ts} +1 -17
- package/dist/{passkey-errors-BMpbMEGO.d.cts → passkey-errors-BcJWGxSV.d.cts} +1 -17
- package/dist/{services-DRi5P1K0.d.cts → services-BvLnPxis.d.cts} +1 -2
- package/dist/{services-DkoV6uJe.d.ts → services-CRQUM6bg.d.ts} +1 -2
- package/dist/starknet/index.cjs +100 -88
- package/dist/starknet/index.d.cts +5 -5
- package/dist/starknet/index.d.ts +5 -5
- package/dist/starknet/index.js +3 -3
- package/dist/wallet/index.cjs +74 -62
- package/dist/wallet/index.d.cts +19 -7
- package/dist/wallet/index.d.ts +19 -7
- package/dist/wallet/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-4QPF6AZV.cjs.map +0 -1
- package/dist/chunk-7KLSPB7T.cjs.map +0 -1
- package/dist/chunk-7QPV7UQU.js.map +0 -1
- package/dist/chunk-MK7OLAZD.js.map +0 -1
package/dist/wallet/index.cjs
CHANGED
|
@@ -1,252 +1,264 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkIE2YYAF5_cjs = require('../chunk-IE2YYAF5.cjs');
|
|
4
|
+
var chunk3V3L2R5O_cjs = require('../chunk-3V3L2R5O.cjs');
|
|
5
5
|
require('../chunk-H2NJB3AK.cjs');
|
|
6
6
|
require('../chunk-W76AZ5WC.cjs');
|
|
7
7
|
require('../chunk-Q7SFCCGT.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
+
Object.defineProperty(exports, "GUARDIAN_WALLET_BUSY", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkIE2YYAF5_cjs.GUARDIAN_WALLET_BUSY; }
|
|
14
|
+
});
|
|
11
15
|
Object.defineProperty(exports, "InvalidPairingPayloadError", {
|
|
12
16
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkIE2YYAF5_cjs.InvalidPairingPayloadError; }
|
|
14
18
|
});
|
|
15
19
|
Object.defineProperty(exports, "InvalidRecoveryKeyError", {
|
|
16
20
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkIE2YYAF5_cjs.InvalidRecoveryKeyError; }
|
|
18
22
|
});
|
|
19
23
|
Object.defineProperty(exports, "InvalidStarkPrivateKeyError", {
|
|
20
24
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkIE2YYAF5_cjs.InvalidStarkPrivateKeyError; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "SponsoredDeployError", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunkIE2YYAF5_cjs.SponsoredDeployError; }
|
|
22
30
|
});
|
|
23
31
|
Object.defineProperty(exports, "accountFor", {
|
|
24
32
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkIE2YYAF5_cjs.accountFor; }
|
|
26
34
|
});
|
|
27
35
|
Object.defineProperty(exports, "buildAddOwnerCall", {
|
|
28
36
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkIE2YYAF5_cjs.buildAddOwnerCall; }
|
|
30
38
|
});
|
|
31
39
|
Object.defineProperty(exports, "buildCancelEscapeCall", {
|
|
32
40
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkIE2YYAF5_cjs.buildCancelEscapeCall; }
|
|
34
42
|
});
|
|
35
43
|
Object.defineProperty(exports, "buildCompleteEscapeOwnerCall", {
|
|
36
44
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkIE2YYAF5_cjs.buildCompleteEscapeOwnerCall; }
|
|
38
46
|
});
|
|
39
47
|
Object.defineProperty(exports, "buildDeployAccountParams", {
|
|
40
48
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkIE2YYAF5_cjs.buildDeployAccountParams; }
|
|
42
50
|
});
|
|
43
51
|
Object.defineProperty(exports, "buildRemoveOwnerByGuidCall", {
|
|
44
52
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkIE2YYAF5_cjs.buildRemoveOwnerByGuidCall; }
|
|
46
54
|
});
|
|
47
55
|
Object.defineProperty(exports, "buildRemoveOwnerCall", {
|
|
48
56
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkIE2YYAF5_cjs.buildRemoveOwnerCall; }
|
|
50
58
|
});
|
|
51
59
|
Object.defineProperty(exports, "buildSetFirstGuardianCall", {
|
|
52
60
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkIE2YYAF5_cjs.buildSetFirstGuardianCall; }
|
|
54
62
|
});
|
|
55
63
|
Object.defineProperty(exports, "buildTriggerEscapeOwnerCall", {
|
|
56
64
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkIE2YYAF5_cjs.buildTriggerEscapeOwnerCall; }
|
|
58
66
|
});
|
|
59
67
|
Object.defineProperty(exports, "canRemoveDevice", {
|
|
60
68
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkIE2YYAF5_cjs.canRemoveDevice; }
|
|
62
70
|
});
|
|
63
71
|
Object.defineProperty(exports, "claimSessionWallet", {
|
|
64
72
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkIE2YYAF5_cjs.claimSessionWallet; }
|
|
66
74
|
});
|
|
67
75
|
Object.defineProperty(exports, "completeDeployment", {
|
|
68
76
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkIE2YYAF5_cjs.completeDeployment; }
|
|
70
78
|
});
|
|
71
79
|
Object.defineProperty(exports, "computeAccountAddress", {
|
|
72
80
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkIE2YYAF5_cjs.computeAccountAddress; }
|
|
74
82
|
});
|
|
75
83
|
Object.defineProperty(exports, "computeOwnerGuid", {
|
|
76
84
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkIE2YYAF5_cjs.computeOwnerGuid; }
|
|
78
86
|
});
|
|
79
87
|
Object.defineProperty(exports, "createDeploymentCoordinator", {
|
|
80
88
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkIE2YYAF5_cjs.createDeploymentCoordinator; }
|
|
82
90
|
});
|
|
83
91
|
Object.defineProperty(exports, "createMediaWallet", {
|
|
84
92
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkIE2YYAF5_cjs.createMediaWallet; }
|
|
86
94
|
});
|
|
87
95
|
Object.defineProperty(exports, "createOwnerStore", {
|
|
88
96
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkIE2YYAF5_cjs.createOwnerStore; }
|
|
90
98
|
});
|
|
91
99
|
Object.defineProperty(exports, "createPasskeyOwner", {
|
|
92
100
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkIE2YYAF5_cjs.createPasskeyOwner; }
|
|
94
102
|
});
|
|
95
103
|
Object.defineProperty(exports, "createSelfFundConsent", {
|
|
96
104
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkIE2YYAF5_cjs.createSelfFundConsent; }
|
|
98
106
|
});
|
|
99
107
|
Object.defineProperty(exports, "decodeEscapeAndStatus", {
|
|
100
108
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkIE2YYAF5_cjs.decodeEscapeAndStatus; }
|
|
102
110
|
});
|
|
103
111
|
Object.defineProperty(exports, "decodeGuardiansInfo", {
|
|
104
112
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkIE2YYAF5_cjs.decodeGuardiansInfo; }
|
|
106
114
|
});
|
|
107
115
|
Object.defineProperty(exports, "deploySelfFunded", {
|
|
108
116
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkIE2YYAF5_cjs.deploySelfFunded; }
|
|
110
118
|
});
|
|
111
119
|
Object.defineProperty(exports, "deploySponsored", {
|
|
112
120
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkIE2YYAF5_cjs.deploySponsored; }
|
|
114
122
|
});
|
|
115
123
|
Object.defineProperty(exports, "deriveAesKey", {
|
|
116
124
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkIE2YYAF5_cjs.deriveAesKey; }
|
|
118
126
|
});
|
|
119
127
|
Object.defineProperty(exports, "deriveOwnerKeyPair", {
|
|
120
128
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkIE2YYAF5_cjs.deriveOwnerKeyPair; }
|
|
122
130
|
});
|
|
123
131
|
Object.defineProperty(exports, "describeDevices", {
|
|
124
132
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkIE2YYAF5_cjs.describeDevices; }
|
|
126
134
|
});
|
|
127
135
|
Object.defineProperty(exports, "describeGuardianStatus", {
|
|
128
136
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkIE2YYAF5_cjs.describeGuardianStatus; }
|
|
130
138
|
});
|
|
131
139
|
Object.defineProperty(exports, "describeRecoveryAction", {
|
|
132
140
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkIE2YYAF5_cjs.describeRecoveryAction; }
|
|
134
142
|
});
|
|
135
143
|
Object.defineProperty(exports, "encodePairingPayload", {
|
|
136
144
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkIE2YYAF5_cjs.encodePairingPayload; }
|
|
138
146
|
});
|
|
139
147
|
Object.defineProperty(exports, "encodeRecoveryKey", {
|
|
140
148
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkIE2YYAF5_cjs.encodeRecoveryKey; }
|
|
142
150
|
});
|
|
143
151
|
Object.defineProperty(exports, "estimateSelfFundedFee", {
|
|
144
152
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkIE2YYAF5_cjs.estimateSelfFundedFee; }
|
|
146
154
|
});
|
|
147
155
|
Object.defineProperty(exports, "finishSessionRecovery", {
|
|
148
156
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkIE2YYAF5_cjs.finishSessionRecovery; }
|
|
150
158
|
});
|
|
151
159
|
Object.defineProperty(exports, "generateStarkKeyPair", {
|
|
152
160
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkIE2YYAF5_cjs.generateStarkKeyPair; }
|
|
154
162
|
});
|
|
155
163
|
Object.defineProperty(exports, "getEscape", {
|
|
156
164
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkIE2YYAF5_cjs.getEscape; }
|
|
158
166
|
});
|
|
159
167
|
Object.defineProperty(exports, "getEscapeSecurityPeriod", {
|
|
160
168
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkIE2YYAF5_cjs.getEscapeSecurityPeriod; }
|
|
162
170
|
});
|
|
163
171
|
Object.defineProperty(exports, "getGuardians", {
|
|
164
172
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkIE2YYAF5_cjs.getGuardians; }
|
|
166
174
|
});
|
|
167
175
|
Object.defineProperty(exports, "getOwners", {
|
|
168
176
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkIE2YYAF5_cjs.getOwners; }
|
|
170
178
|
});
|
|
171
179
|
Object.defineProperty(exports, "indexedDbDeviceKeys", {
|
|
172
180
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkIE2YYAF5_cjs.indexedDbDeviceKeys; }
|
|
182
|
+
});
|
|
183
|
+
Object.defineProperty(exports, "isAccountRefusal", {
|
|
184
|
+
enumerable: true,
|
|
185
|
+
get: function () { return chunkIE2YYAF5_cjs.isAccountRefusal; }
|
|
174
186
|
});
|
|
175
187
|
Object.defineProperty(exports, "isDeployed", {
|
|
176
188
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunkIE2YYAF5_cjs.isDeployed; }
|
|
178
190
|
});
|
|
179
191
|
Object.defineProperty(exports, "isValidStarknetAddress", {
|
|
180
192
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkIE2YYAF5_cjs.isValidStarknetAddress; }
|
|
182
194
|
});
|
|
183
195
|
Object.defineProperty(exports, "normalizeWalletAddress", {
|
|
184
196
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunkIE2YYAF5_cjs.normalizeWalletAddress; }
|
|
186
198
|
});
|
|
187
199
|
Object.defineProperty(exports, "ownerConstructorCalldata", {
|
|
188
200
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunkIE2YYAF5_cjs.ownerConstructorCalldata; }
|
|
190
202
|
});
|
|
191
203
|
Object.defineProperty(exports, "parseAccountAddress", {
|
|
192
204
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunkIE2YYAF5_cjs.parseAccountAddress; }
|
|
194
206
|
});
|
|
195
207
|
Object.defineProperty(exports, "parsePairingPayload", {
|
|
196
208
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
209
|
+
get: function () { return chunkIE2YYAF5_cjs.parsePairingPayload; }
|
|
198
210
|
});
|
|
199
211
|
Object.defineProperty(exports, "parseRecoveryKey", {
|
|
200
212
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
213
|
+
get: function () { return chunkIE2YYAF5_cjs.parseRecoveryKey; }
|
|
202
214
|
});
|
|
203
215
|
Object.defineProperty(exports, "sealPrivateKey", {
|
|
204
216
|
enumerable: true,
|
|
205
|
-
get: function () { return
|
|
217
|
+
get: function () { return chunkIE2YYAF5_cjs.sealPrivateKey; }
|
|
206
218
|
});
|
|
207
219
|
Object.defineProperty(exports, "selfFundedExecutor", {
|
|
208
220
|
enumerable: true,
|
|
209
|
-
get: function () { return
|
|
221
|
+
get: function () { return chunkIE2YYAF5_cjs.selfFundedExecutor; }
|
|
210
222
|
});
|
|
211
223
|
Object.defineProperty(exports, "signWithPrivateKey", {
|
|
212
224
|
enumerable: true,
|
|
213
|
-
get: function () { return
|
|
225
|
+
get: function () { return chunkIE2YYAF5_cjs.signWithPrivateKey; }
|
|
214
226
|
});
|
|
215
227
|
Object.defineProperty(exports, "sponsoredExecutor", {
|
|
216
228
|
enumerable: true,
|
|
217
|
-
get: function () { return
|
|
229
|
+
get: function () { return chunkIE2YYAF5_cjs.sponsoredExecutor; }
|
|
218
230
|
});
|
|
219
231
|
Object.defineProperty(exports, "starkKeyPairFromPrivateKey", {
|
|
220
232
|
enumerable: true,
|
|
221
|
-
get: function () { return
|
|
233
|
+
get: function () { return chunkIE2YYAF5_cjs.starkKeyPairFromPrivateKey; }
|
|
222
234
|
});
|
|
223
235
|
Object.defineProperty(exports, "startSessionRecovery", {
|
|
224
236
|
enumerable: true,
|
|
225
|
-
get: function () { return
|
|
237
|
+
get: function () { return chunkIE2YYAF5_cjs.startSessionRecovery; }
|
|
226
238
|
});
|
|
227
239
|
Object.defineProperty(exports, "turnOnRecovery", {
|
|
228
240
|
enumerable: true,
|
|
229
|
-
get: function () { return
|
|
241
|
+
get: function () { return chunkIE2YYAF5_cjs.turnOnRecovery; }
|
|
230
242
|
});
|
|
231
243
|
Object.defineProperty(exports, "unsealPrivateKey", {
|
|
232
244
|
enumerable: true,
|
|
233
|
-
get: function () { return
|
|
245
|
+
get: function () { return chunkIE2YYAF5_cjs.unsealPrivateKey; }
|
|
234
246
|
});
|
|
235
247
|
Object.defineProperty(exports, "waitUntilDeployed", {
|
|
236
248
|
enumerable: true,
|
|
237
|
-
get: function () { return
|
|
249
|
+
get: function () { return chunkIE2YYAF5_cjs.waitUntilDeployed; }
|
|
238
250
|
});
|
|
239
251
|
Object.defineProperty(exports, "DeviceKeyMissingError", {
|
|
240
252
|
enumerable: true,
|
|
241
|
-
get: function () { return
|
|
253
|
+
get: function () { return chunk3V3L2R5O_cjs.DeviceKeyMissingError; }
|
|
242
254
|
});
|
|
243
255
|
Object.defineProperty(exports, "PasskeyCancelledError", {
|
|
244
256
|
enumerable: true,
|
|
245
|
-
get: function () { return
|
|
257
|
+
get: function () { return chunk3V3L2R5O_cjs.PasskeyCancelledError; }
|
|
246
258
|
});
|
|
247
259
|
Object.defineProperty(exports, "PasskeyUnsupportedError", {
|
|
248
260
|
enumerable: true,
|
|
249
|
-
get: function () { return
|
|
261
|
+
get: function () { return chunk3V3L2R5O_cjs.PasskeyUnsupportedError; }
|
|
250
262
|
});
|
|
251
263
|
//# sourceMappingURL=index.cjs.map
|
|
252
264
|
//# sourceMappingURL=index.cjs.map
|
package/dist/wallet/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BigNumberish, Call, DeployAccountContractPayload, ProviderInterface, TypedData, Account } from 'starknet';
|
|
2
2
|
import { F as FetchLike } from '../fetch-Cx9Pr7-B.cjs';
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
3
|
+
import { b9 as CreateWalletManageIntentParams, c as AccountApi, bI as WalletRecovery } from '../passkey-errors-BcJWGxSV.cjs';
|
|
4
|
+
export { ba as DeviceKeyMissingError, bt as PasskeyCancelledError, bu as PasskeyUnsupportedError, bv as PasskeyUnsupportedReason } from '../passkey-errors-BcJWGxSV.cjs';
|
|
5
5
|
import '../chains-CmwjZVU7.cjs';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '../responses-BpnS-Io9.cjs';
|
|
@@ -184,6 +184,7 @@ interface PasskeyOwner {
|
|
|
184
184
|
}
|
|
185
185
|
declare function createPasskeyOwner(config: PasskeyConfig): PasskeyOwner;
|
|
186
186
|
|
|
187
|
+
declare const GUARDIAN_WALLET_BUSY = "This can't go through right now. Please try again in a moment.";
|
|
187
188
|
interface SelfFundedDeps {
|
|
188
189
|
provider: () => ProviderInterface;
|
|
189
190
|
}
|
|
@@ -195,6 +196,7 @@ interface SponsoredDeps extends SelfFundedDeps {
|
|
|
195
196
|
consent: SelfFundConsent;
|
|
196
197
|
fetchImpl?: FetchLike;
|
|
197
198
|
fallback?: WalletExecutor;
|
|
199
|
+
guardians?: (address: string) => Promise<unknown[]>;
|
|
198
200
|
}
|
|
199
201
|
declare function sponsoredExecutor(deps: SponsoredDeps): WalletExecutor;
|
|
200
202
|
|
|
@@ -202,6 +204,12 @@ type DeploymentStep = "creating-passkey" | "deploying";
|
|
|
202
204
|
interface DeploymentResult {
|
|
203
205
|
sealed: SealedOwner;
|
|
204
206
|
}
|
|
207
|
+
declare class SponsoredDeployError extends Error {
|
|
208
|
+
readonly status: number;
|
|
209
|
+
readonly code?: string | undefined;
|
|
210
|
+
constructor(message: string, status: number, code?: string | undefined);
|
|
211
|
+
}
|
|
212
|
+
declare const isAccountRefusal: (err: unknown) => boolean;
|
|
205
213
|
declare function deploySponsored(input: {
|
|
206
214
|
proxyUrl: string;
|
|
207
215
|
provider: ProviderInterface;
|
|
@@ -209,6 +217,7 @@ declare function deploySponsored(input: {
|
|
|
209
217
|
ownerPubKey: string;
|
|
210
218
|
privateKeyHex: string;
|
|
211
219
|
salt?: string;
|
|
220
|
+
replace?: boolean;
|
|
212
221
|
fetchImpl?: FetchLike;
|
|
213
222
|
}): Promise<ExecutedTransaction>;
|
|
214
223
|
declare function deploySelfFunded(input: {
|
|
@@ -222,6 +231,9 @@ interface DeploymentDeps {
|
|
|
222
231
|
store: {
|
|
223
232
|
load(): SealedOwner | null;
|
|
224
233
|
save(sealed: SealedOwner): void;
|
|
234
|
+
loadPending(): SealedOwner | null;
|
|
235
|
+
savePending(sealed: SealedOwner): void;
|
|
236
|
+
clearPending(): void;
|
|
225
237
|
notifyChange(): void;
|
|
226
238
|
};
|
|
227
239
|
passkey: {
|
|
@@ -240,16 +252,16 @@ interface DeploymentDeps {
|
|
|
240
252
|
isDeployedImpl?: typeof isDeployed;
|
|
241
253
|
}
|
|
242
254
|
declare function completeDeployment(deps: DeploymentDeps, onStep: (step: DeploymentStep) => void, options?: {
|
|
243
|
-
|
|
255
|
+
replace?: boolean;
|
|
244
256
|
}): Promise<DeploymentResult>;
|
|
245
257
|
interface DeploymentCoordinator {
|
|
246
258
|
run(onStep: (step: DeploymentStep) => void, options?: {
|
|
247
|
-
|
|
259
|
+
replace?: boolean;
|
|
248
260
|
}): Promise<DeploymentResult>;
|
|
249
261
|
isDeploying(): boolean;
|
|
250
262
|
}
|
|
251
263
|
declare function createDeploymentCoordinator(execute: (onStep: (step: DeploymentStep) => void, options: {
|
|
252
|
-
|
|
264
|
+
replace?: boolean;
|
|
253
265
|
}) => Promise<DeploymentResult>): DeploymentCoordinator;
|
|
254
266
|
|
|
255
267
|
interface DeviceEntry {
|
|
@@ -299,7 +311,7 @@ interface MediaWallet {
|
|
|
299
311
|
addDevice(sealed: SealedOwner, devicePubkey: string): Promise<string>;
|
|
300
312
|
removeDevice(sealed: SealedOwner, ownerGuid: string): Promise<string>;
|
|
301
313
|
completeDeployment(onStep: (step: DeploymentStep) => void, options?: {
|
|
302
|
-
|
|
314
|
+
replace?: boolean;
|
|
303
315
|
}): Promise<DeploymentResult>;
|
|
304
316
|
isDeploying(): boolean;
|
|
305
317
|
}
|
|
@@ -337,4 +349,4 @@ declare function turnOnRecovery(api: {
|
|
|
337
349
|
setFirstGuardian(sealed: SealedOwner, guardianPubkey: string): Promise<unknown>;
|
|
338
350
|
}, sealed: SealedOwner): Promise<void>;
|
|
339
351
|
|
|
340
|
-
export { type CreatedOwner, type DeploymentCoordinator, type DeploymentDeps, type DeploymentResult, type DeploymentStep, type DeviceEntry, type DeviceKeyStore, type EscapeInfo, type EscapeStatusName, type EscapeTypeName, type ExecutedTransaction, type GuardianInfo, type GuardianStatus, InvalidPairingPayloadError, InvalidRecoveryKeyError, InvalidStarkPrivateKeyError, type MediaWallet, type MediaWalletConfig, type OwnerSigner, type OwnerStore, type PairingPayload, type PasskeyConfig, type PasskeyOwner, type ReceiptProviderLike, type RecoveryAction, type RecoveryKey, type SealedOwner, type SelfFundConsent, type SelfFundConsentHandler, type SelfFundFeeEstimate, type SelfFundedDeps, type SessionRecoveryDeps, type SessionWallet, type SessionWalletClaimDeps, type SponsoredDeps, type WalletExecutor, accountFor, buildAddOwnerCall, buildCancelEscapeCall, buildCompleteEscapeOwnerCall, buildDeployAccountParams, buildRemoveOwnerByGuidCall, buildRemoveOwnerCall, buildSetFirstGuardianCall, buildTriggerEscapeOwnerCall, canRemoveDevice, claimSessionWallet, completeDeployment, computeAccountAddress, computeOwnerGuid, createDeploymentCoordinator, createMediaWallet, createOwnerStore, createPasskeyOwner, createSelfFundConsent, decodeEscapeAndStatus, decodeGuardiansInfo, deploySelfFunded, deploySponsored, deriveAesKey, deriveOwnerKeyPair, describeDevices, describeGuardianStatus, describeRecoveryAction, encodePairingPayload, encodeRecoveryKey, estimateSelfFundedFee, finishSessionRecovery, generateStarkKeyPair, getEscape, getEscapeSecurityPeriod, getGuardians, getOwners, indexedDbDeviceKeys, isDeployed, isValidStarknetAddress, normalizeWalletAddress, ownerConstructorCalldata, parseAccountAddress, parsePairingPayload, parseRecoveryKey, sealPrivateKey, selfFundedExecutor, signWithPrivateKey, sponsoredExecutor, starkKeyPairFromPrivateKey, startSessionRecovery, turnOnRecovery, unsealPrivateKey, waitUntilDeployed };
|
|
352
|
+
export { type CreatedOwner, type DeploymentCoordinator, type DeploymentDeps, type DeploymentResult, type DeploymentStep, type DeviceEntry, type DeviceKeyStore, type EscapeInfo, type EscapeStatusName, type EscapeTypeName, type ExecutedTransaction, GUARDIAN_WALLET_BUSY, type GuardianInfo, type GuardianStatus, InvalidPairingPayloadError, InvalidRecoveryKeyError, InvalidStarkPrivateKeyError, type MediaWallet, type MediaWalletConfig, type OwnerSigner, type OwnerStore, type PairingPayload, type PasskeyConfig, type PasskeyOwner, type ReceiptProviderLike, type RecoveryAction, type RecoveryKey, type SealedOwner, type SelfFundConsent, type SelfFundConsentHandler, type SelfFundFeeEstimate, type SelfFundedDeps, type SessionRecoveryDeps, type SessionWallet, type SessionWalletClaimDeps, SponsoredDeployError, type SponsoredDeps, type WalletExecutor, accountFor, buildAddOwnerCall, buildCancelEscapeCall, buildCompleteEscapeOwnerCall, buildDeployAccountParams, buildRemoveOwnerByGuidCall, buildRemoveOwnerCall, buildSetFirstGuardianCall, buildTriggerEscapeOwnerCall, canRemoveDevice, claimSessionWallet, completeDeployment, computeAccountAddress, computeOwnerGuid, createDeploymentCoordinator, createMediaWallet, createOwnerStore, createPasskeyOwner, createSelfFundConsent, decodeEscapeAndStatus, decodeGuardiansInfo, deploySelfFunded, deploySponsored, deriveAesKey, deriveOwnerKeyPair, describeDevices, describeGuardianStatus, describeRecoveryAction, encodePairingPayload, encodeRecoveryKey, estimateSelfFundedFee, finishSessionRecovery, generateStarkKeyPair, getEscape, getEscapeSecurityPeriod, getGuardians, getOwners, indexedDbDeviceKeys, isAccountRefusal, isDeployed, isValidStarknetAddress, normalizeWalletAddress, ownerConstructorCalldata, parseAccountAddress, parsePairingPayload, parseRecoveryKey, sealPrivateKey, selfFundedExecutor, signWithPrivateKey, sponsoredExecutor, starkKeyPairFromPrivateKey, startSessionRecovery, turnOnRecovery, unsealPrivateKey, waitUntilDeployed };
|
package/dist/wallet/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BigNumberish, Call, DeployAccountContractPayload, ProviderInterface, TypedData, Account } from 'starknet';
|
|
2
2
|
import { F as FetchLike } from '../fetch-Cx9Pr7-B.js';
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
3
|
+
import { b9 as CreateWalletManageIntentParams, c as AccountApi, bI as WalletRecovery } from '../passkey-errors-BXclgAtu.js';
|
|
4
|
+
export { ba as DeviceKeyMissingError, bt as PasskeyCancelledError, bu as PasskeyUnsupportedError, bv as PasskeyUnsupportedReason } from '../passkey-errors-BXclgAtu.js';
|
|
5
5
|
import '../chains-CmwjZVU7.js';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '../responses-BpnS-Io9.js';
|
|
@@ -184,6 +184,7 @@ interface PasskeyOwner {
|
|
|
184
184
|
}
|
|
185
185
|
declare function createPasskeyOwner(config: PasskeyConfig): PasskeyOwner;
|
|
186
186
|
|
|
187
|
+
declare const GUARDIAN_WALLET_BUSY = "This can't go through right now. Please try again in a moment.";
|
|
187
188
|
interface SelfFundedDeps {
|
|
188
189
|
provider: () => ProviderInterface;
|
|
189
190
|
}
|
|
@@ -195,6 +196,7 @@ interface SponsoredDeps extends SelfFundedDeps {
|
|
|
195
196
|
consent: SelfFundConsent;
|
|
196
197
|
fetchImpl?: FetchLike;
|
|
197
198
|
fallback?: WalletExecutor;
|
|
199
|
+
guardians?: (address: string) => Promise<unknown[]>;
|
|
198
200
|
}
|
|
199
201
|
declare function sponsoredExecutor(deps: SponsoredDeps): WalletExecutor;
|
|
200
202
|
|
|
@@ -202,6 +204,12 @@ type DeploymentStep = "creating-passkey" | "deploying";
|
|
|
202
204
|
interface DeploymentResult {
|
|
203
205
|
sealed: SealedOwner;
|
|
204
206
|
}
|
|
207
|
+
declare class SponsoredDeployError extends Error {
|
|
208
|
+
readonly status: number;
|
|
209
|
+
readonly code?: string | undefined;
|
|
210
|
+
constructor(message: string, status: number, code?: string | undefined);
|
|
211
|
+
}
|
|
212
|
+
declare const isAccountRefusal: (err: unknown) => boolean;
|
|
205
213
|
declare function deploySponsored(input: {
|
|
206
214
|
proxyUrl: string;
|
|
207
215
|
provider: ProviderInterface;
|
|
@@ -209,6 +217,7 @@ declare function deploySponsored(input: {
|
|
|
209
217
|
ownerPubKey: string;
|
|
210
218
|
privateKeyHex: string;
|
|
211
219
|
salt?: string;
|
|
220
|
+
replace?: boolean;
|
|
212
221
|
fetchImpl?: FetchLike;
|
|
213
222
|
}): Promise<ExecutedTransaction>;
|
|
214
223
|
declare function deploySelfFunded(input: {
|
|
@@ -222,6 +231,9 @@ interface DeploymentDeps {
|
|
|
222
231
|
store: {
|
|
223
232
|
load(): SealedOwner | null;
|
|
224
233
|
save(sealed: SealedOwner): void;
|
|
234
|
+
loadPending(): SealedOwner | null;
|
|
235
|
+
savePending(sealed: SealedOwner): void;
|
|
236
|
+
clearPending(): void;
|
|
225
237
|
notifyChange(): void;
|
|
226
238
|
};
|
|
227
239
|
passkey: {
|
|
@@ -240,16 +252,16 @@ interface DeploymentDeps {
|
|
|
240
252
|
isDeployedImpl?: typeof isDeployed;
|
|
241
253
|
}
|
|
242
254
|
declare function completeDeployment(deps: DeploymentDeps, onStep: (step: DeploymentStep) => void, options?: {
|
|
243
|
-
|
|
255
|
+
replace?: boolean;
|
|
244
256
|
}): Promise<DeploymentResult>;
|
|
245
257
|
interface DeploymentCoordinator {
|
|
246
258
|
run(onStep: (step: DeploymentStep) => void, options?: {
|
|
247
|
-
|
|
259
|
+
replace?: boolean;
|
|
248
260
|
}): Promise<DeploymentResult>;
|
|
249
261
|
isDeploying(): boolean;
|
|
250
262
|
}
|
|
251
263
|
declare function createDeploymentCoordinator(execute: (onStep: (step: DeploymentStep) => void, options: {
|
|
252
|
-
|
|
264
|
+
replace?: boolean;
|
|
253
265
|
}) => Promise<DeploymentResult>): DeploymentCoordinator;
|
|
254
266
|
|
|
255
267
|
interface DeviceEntry {
|
|
@@ -299,7 +311,7 @@ interface MediaWallet {
|
|
|
299
311
|
addDevice(sealed: SealedOwner, devicePubkey: string): Promise<string>;
|
|
300
312
|
removeDevice(sealed: SealedOwner, ownerGuid: string): Promise<string>;
|
|
301
313
|
completeDeployment(onStep: (step: DeploymentStep) => void, options?: {
|
|
302
|
-
|
|
314
|
+
replace?: boolean;
|
|
303
315
|
}): Promise<DeploymentResult>;
|
|
304
316
|
isDeploying(): boolean;
|
|
305
317
|
}
|
|
@@ -337,4 +349,4 @@ declare function turnOnRecovery(api: {
|
|
|
337
349
|
setFirstGuardian(sealed: SealedOwner, guardianPubkey: string): Promise<unknown>;
|
|
338
350
|
}, sealed: SealedOwner): Promise<void>;
|
|
339
351
|
|
|
340
|
-
export { type CreatedOwner, type DeploymentCoordinator, type DeploymentDeps, type DeploymentResult, type DeploymentStep, type DeviceEntry, type DeviceKeyStore, type EscapeInfo, type EscapeStatusName, type EscapeTypeName, type ExecutedTransaction, type GuardianInfo, type GuardianStatus, InvalidPairingPayloadError, InvalidRecoveryKeyError, InvalidStarkPrivateKeyError, type MediaWallet, type MediaWalletConfig, type OwnerSigner, type OwnerStore, type PairingPayload, type PasskeyConfig, type PasskeyOwner, type ReceiptProviderLike, type RecoveryAction, type RecoveryKey, type SealedOwner, type SelfFundConsent, type SelfFundConsentHandler, type SelfFundFeeEstimate, type SelfFundedDeps, type SessionRecoveryDeps, type SessionWallet, type SessionWalletClaimDeps, type SponsoredDeps, type WalletExecutor, accountFor, buildAddOwnerCall, buildCancelEscapeCall, buildCompleteEscapeOwnerCall, buildDeployAccountParams, buildRemoveOwnerByGuidCall, buildRemoveOwnerCall, buildSetFirstGuardianCall, buildTriggerEscapeOwnerCall, canRemoveDevice, claimSessionWallet, completeDeployment, computeAccountAddress, computeOwnerGuid, createDeploymentCoordinator, createMediaWallet, createOwnerStore, createPasskeyOwner, createSelfFundConsent, decodeEscapeAndStatus, decodeGuardiansInfo, deploySelfFunded, deploySponsored, deriveAesKey, deriveOwnerKeyPair, describeDevices, describeGuardianStatus, describeRecoveryAction, encodePairingPayload, encodeRecoveryKey, estimateSelfFundedFee, finishSessionRecovery, generateStarkKeyPair, getEscape, getEscapeSecurityPeriod, getGuardians, getOwners, indexedDbDeviceKeys, isDeployed, isValidStarknetAddress, normalizeWalletAddress, ownerConstructorCalldata, parseAccountAddress, parsePairingPayload, parseRecoveryKey, sealPrivateKey, selfFundedExecutor, signWithPrivateKey, sponsoredExecutor, starkKeyPairFromPrivateKey, startSessionRecovery, turnOnRecovery, unsealPrivateKey, waitUntilDeployed };
|
|
352
|
+
export { type CreatedOwner, type DeploymentCoordinator, type DeploymentDeps, type DeploymentResult, type DeploymentStep, type DeviceEntry, type DeviceKeyStore, type EscapeInfo, type EscapeStatusName, type EscapeTypeName, type ExecutedTransaction, GUARDIAN_WALLET_BUSY, type GuardianInfo, type GuardianStatus, InvalidPairingPayloadError, InvalidRecoveryKeyError, InvalidStarkPrivateKeyError, type MediaWallet, type MediaWalletConfig, type OwnerSigner, type OwnerStore, type PairingPayload, type PasskeyConfig, type PasskeyOwner, type ReceiptProviderLike, type RecoveryAction, type RecoveryKey, type SealedOwner, type SelfFundConsent, type SelfFundConsentHandler, type SelfFundFeeEstimate, type SelfFundedDeps, type SessionRecoveryDeps, type SessionWallet, type SessionWalletClaimDeps, SponsoredDeployError, type SponsoredDeps, type WalletExecutor, accountFor, buildAddOwnerCall, buildCancelEscapeCall, buildCompleteEscapeOwnerCall, buildDeployAccountParams, buildRemoveOwnerByGuidCall, buildRemoveOwnerCall, buildSetFirstGuardianCall, buildTriggerEscapeOwnerCall, canRemoveDevice, claimSessionWallet, completeDeployment, computeAccountAddress, computeOwnerGuid, createDeploymentCoordinator, createMediaWallet, createOwnerStore, createPasskeyOwner, createSelfFundConsent, decodeEscapeAndStatus, decodeGuardiansInfo, deploySelfFunded, deploySponsored, deriveAesKey, deriveOwnerKeyPair, describeDevices, describeGuardianStatus, describeRecoveryAction, encodePairingPayload, encodeRecoveryKey, estimateSelfFundedFee, finishSessionRecovery, generateStarkKeyPair, getEscape, getEscapeSecurityPeriod, getGuardians, getOwners, indexedDbDeviceKeys, isAccountRefusal, isDeployed, isValidStarknetAddress, normalizeWalletAddress, ownerConstructorCalldata, parseAccountAddress, parsePairingPayload, parseRecoveryKey, sealPrivateKey, selfFundedExecutor, signWithPrivateKey, sponsoredExecutor, starkKeyPairFromPrivateKey, startSessionRecovery, turnOnRecovery, unsealPrivateKey, waitUntilDeployed };
|
package/dist/wallet/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { InvalidPairingPayloadError, InvalidRecoveryKeyError, InvalidStarkPrivateKeyError, accountFor, buildAddOwnerCall, buildCancelEscapeCall, buildCompleteEscapeOwnerCall, buildDeployAccountParams, buildRemoveOwnerByGuidCall, buildRemoveOwnerCall, buildSetFirstGuardianCall, buildTriggerEscapeOwnerCall, canRemoveDevice, claimSessionWallet, completeDeployment, computeAccountAddress, computeOwnerGuid, createDeploymentCoordinator, createMediaWallet, createOwnerStore, createPasskeyOwner, createSelfFundConsent, decodeEscapeAndStatus, decodeGuardiansInfo, deploySelfFunded, deploySponsored, deriveAesKey, deriveOwnerKeyPair, describeDevices, describeGuardianStatus, describeRecoveryAction, encodePairingPayload, encodeRecoveryKey, estimateSelfFundedFee, finishSessionRecovery, generateStarkKeyPair, getEscape, getEscapeSecurityPeriod, getGuardians, getOwners, indexedDbDeviceKeys, isDeployed, isValidStarknetAddress, normalizeWalletAddress, ownerConstructorCalldata, parseAccountAddress, parsePairingPayload, parseRecoveryKey, sealPrivateKey, selfFundedExecutor, signWithPrivateKey, sponsoredExecutor, starkKeyPairFromPrivateKey, startSessionRecovery, turnOnRecovery, unsealPrivateKey, waitUntilDeployed } from '../chunk-
|
|
2
|
-
export { DeviceKeyMissingError, PasskeyCancelledError, PasskeyUnsupportedError } from '../chunk-
|
|
1
|
+
export { GUARDIAN_WALLET_BUSY, InvalidPairingPayloadError, InvalidRecoveryKeyError, InvalidStarkPrivateKeyError, SponsoredDeployError, accountFor, buildAddOwnerCall, buildCancelEscapeCall, buildCompleteEscapeOwnerCall, buildDeployAccountParams, buildRemoveOwnerByGuidCall, buildRemoveOwnerCall, buildSetFirstGuardianCall, buildTriggerEscapeOwnerCall, canRemoveDevice, claimSessionWallet, completeDeployment, computeAccountAddress, computeOwnerGuid, createDeploymentCoordinator, createMediaWallet, createOwnerStore, createPasskeyOwner, createSelfFundConsent, decodeEscapeAndStatus, decodeGuardiansInfo, deploySelfFunded, deploySponsored, deriveAesKey, deriveOwnerKeyPair, describeDevices, describeGuardianStatus, describeRecoveryAction, encodePairingPayload, encodeRecoveryKey, estimateSelfFundedFee, finishSessionRecovery, generateStarkKeyPair, getEscape, getEscapeSecurityPeriod, getGuardians, getOwners, indexedDbDeviceKeys, isAccountRefusal, isDeployed, isValidStarknetAddress, normalizeWalletAddress, ownerConstructorCalldata, parseAccountAddress, parsePairingPayload, parseRecoveryKey, sealPrivateKey, selfFundedExecutor, signWithPrivateKey, sponsoredExecutor, starkKeyPairFromPrivateKey, startSessionRecovery, turnOnRecovery, unsealPrivateKey, waitUntilDeployed } from '../chunk-PVU5AYOO.js';
|
|
2
|
+
export { DeviceKeyMissingError, PasskeyCancelledError, PasskeyUnsupportedError } from '../chunk-3SIT2PCD.js';
|
|
3
3
|
import '../chunk-5KY6P434.js';
|
|
4
4
|
import '../chunk-WRBXQPRL.js';
|
|
5
5
|
import '../chunk-PZ5AY32C.js';
|