@haven_ai/sdk 0.0.0-dev.202609282003.b645eff → 0.0.0-dev.202609282315.dd06d7c
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 +3 -1
- package/dist/{base64-Br8mJPgm.d.cts → base64-YC49ypsN.d.cts} +21 -2
- package/dist/{base64-Br8mJPgm.d.ts → base64-YC49ypsN.d.ts} +21 -2
- package/dist/{chunk-Y2Q4DZVU.js → chunk-FVLF2A66.js} +19 -4
- package/dist/chunk-FVLF2A66.js.map +1 -0
- package/dist/{chunk-PZLGXWSP.cjs → chunk-TKJDIRAY.cjs} +29 -29
- package/dist/{chunk-PZLGXWSP.cjs.map → chunk-TKJDIRAY.cjs.map} +1 -1
- package/dist/{chunk-FXPB3NEJ.cjs → chunk-WQ4UYTPE.cjs} +19 -4
- package/dist/chunk-WQ4UYTPE.cjs.map +1 -0
- package/dist/{chunk-AFJ7XDDI.js → chunk-XDJAPMS2.js} +4 -4
- package/dist/{chunk-AFJ7XDDI.js.map → chunk-XDJAPMS2.js.map} +1 -1
- package/dist/edge.cjs +65 -65
- package/dist/edge.d.cts +1 -1
- package/dist/edge.d.ts +1 -1
- package/dist/edge.js +3 -3
- package/dist/index.cjs +385 -311
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +61 -19
- package/dist/index.d.ts +61 -19
- package/dist/index.js +98 -24
- package/dist/index.js.map +1 -1
- package/dist/test-support.cjs +18 -18
- package/dist/test-support.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-FXPB3NEJ.cjs.map +0 -1
- package/dist/chunk-Y2Q4DZVU.js.map +0 -1
package/dist/edge.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkTKJDIRAY_cjs = require('./chunk-TKJDIRAY.cjs');
|
|
4
|
+
var chunkWQ4UYTPE_cjs = require('./chunk-WQ4UYTPE.cjs');
|
|
5
5
|
var secp256k1 = require('@noble/curves/secp256k1');
|
|
6
6
|
var accounts = require('viem/accounts');
|
|
7
7
|
var viem = require('viem');
|
|
@@ -17,7 +17,7 @@ function addressFromKey(privateKey) {
|
|
|
17
17
|
try {
|
|
18
18
|
return accounts.privateKeyToAddress(`0x${hexBytes(privateKey, 32, "private key")}`);
|
|
19
19
|
} catch (err) {
|
|
20
|
-
throw new
|
|
20
|
+
throw new chunkWQ4UYTPE_cjs.HavenSigningError(
|
|
21
21
|
`Invalid private key: ${err instanceof Error ? err.message : String(err)}`
|
|
22
22
|
);
|
|
23
23
|
}
|
|
@@ -31,7 +31,7 @@ function signHash(privateKey, hash) {
|
|
|
31
31
|
yParity: recovery
|
|
32
32
|
});
|
|
33
33
|
} catch (err) {
|
|
34
|
-
throw new
|
|
34
|
+
throw new chunkWQ4UYTPE_cjs.HavenSigningError(
|
|
35
35
|
`Failed to sign hash: ${err instanceof Error ? err.message : String(err)}`
|
|
36
36
|
);
|
|
37
37
|
}
|
|
@@ -54,247 +54,247 @@ function verifySignature(hash, signature, expectedAddress) {
|
|
|
54
54
|
|
|
55
55
|
Object.defineProperty(exports, "CAVEAT_TYPEHASH", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkTKJDIRAY_cjs.CAVEAT_TYPEHASH; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "DELEGATION_TYPEHASH", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkTKJDIRAY_cjs.DELEGATION_TYPEHASH; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "DIRECT_PAYMENT_CHAIN_IDS", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkTKJDIRAY_cjs.DIRECT_PAYMENT_CHAIN_IDS; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "EXECUTE_ABI", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkTKJDIRAY_cjs.EXECUTE_ABI; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "HAVEN_CLIENT_HEADER", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkTKJDIRAY_cjs.HAVEN_CLIENT_HEADER; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "HAVEN_MINIMUM_NODE_VERSION", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkTKJDIRAY_cjs.HAVEN_MINIMUM_NODE_VERSION; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "HavenTypedDataRefusedError", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkTKJDIRAY_cjs.HavenTypedDataRefusedError; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "MAX_TASK_BUDGET_TTL_SECONDS", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkTKJDIRAY_cjs.MAX_TASK_BUDGET_TTL_SECONDS; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "TYPED_DATA_NOT_ALLOWED", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkTKJDIRAY_cjs.TYPED_DATA_NOT_ALLOWED; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "assertBoundDirectPaymentUserOp", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkTKJDIRAY_cjs.assertBoundDirectPaymentUserOp; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "assertFundingLegPaysDelegate", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkTKJDIRAY_cjs.assertFundingLegPaysDelegate; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "assertOwnSettlementChild", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkTKJDIRAY_cjs.assertOwnSettlementChild; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "assertOwnTaskBudgetCloseUserOp", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkTKJDIRAY_cjs.assertOwnTaskBudgetCloseUserOp; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "assertOwnTaskChild", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkTKJDIRAY_cjs.assertOwnTaskChild; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "buildSweepAuthorizationMessage", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkTKJDIRAY_cjs.buildSweepAuthorizationMessage; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "buildSweepTypedData", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkTKJDIRAY_cjs.buildSweepTypedData; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "buildX402ExpectedMessage", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkTKJDIRAY_cjs.buildX402ExpectedMessage; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "createNextStepBuilder", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkTKJDIRAY_cjs.createNextStepBuilder; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "decodeBase64Json", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkTKJDIRAY_cjs.decodeBase64Json; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "encodeBase64Json", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkTKJDIRAY_cjs.encodeBase64Json; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "hashDelegation", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkTKJDIRAY_cjs.hashDelegation; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "havenClientIdentity", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkTKJDIRAY_cjs.havenClientIdentity; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "isSupportedNodeVersion", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkTKJDIRAY_cjs.isSupportedNodeVersion; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "isTaskChildTypedData", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkTKJDIRAY_cjs.isTaskChildTypedData; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "readClientUpdate", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkTKJDIRAY_cjs.readClientUpdate; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "selectStandardPaymentOption", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkTKJDIRAY_cjs.selectStandardPaymentOption; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "toStandardPaymentRequirements", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkTKJDIRAY_cjs.toStandardPaymentRequirements; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "unsupportedNodeVersionMessage", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkTKJDIRAY_cjs.unsupportedNodeVersionMessage; }
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "x402AuthorizationAmount", {
|
|
168
168
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkTKJDIRAY_cjs.x402AuthorizationAmount; }
|
|
170
170
|
});
|
|
171
171
|
Object.defineProperty(exports, "x402V2PaymentEnvelope", {
|
|
172
172
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkTKJDIRAY_cjs.x402V2PaymentEnvelope; }
|
|
174
174
|
});
|
|
175
175
|
Object.defineProperty(exports, "AgentPaymentFailureCode", {
|
|
176
176
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkWQ4UYTPE_cjs.AgentPaymentFailureCode; }
|
|
178
178
|
});
|
|
179
179
|
Object.defineProperty(exports, "AgentPaymentNextAction", {
|
|
180
180
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkWQ4UYTPE_cjs.AgentPaymentNextAction; }
|
|
182
182
|
});
|
|
183
183
|
Object.defineProperty(exports, "CAVEAT_ENFORCERS", {
|
|
184
184
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunkWQ4UYTPE_cjs.CAVEAT_ENFORCERS; }
|
|
186
186
|
});
|
|
187
187
|
Object.defineProperty(exports, "DELEGATION_MANAGER", {
|
|
188
188
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunkWQ4UYTPE_cjs.DELEGATION_MANAGER; }
|
|
190
190
|
});
|
|
191
191
|
Object.defineProperty(exports, "DELEGATION_TUPLE_COMPONENTS", {
|
|
192
192
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkWQ4UYTPE_cjs.DELEGATION_TUPLE_COMPONENTS; }
|
|
194
194
|
});
|
|
195
195
|
Object.defineProperty(exports, "DIRECT_SIGN_CONTEXT_VERSION", {
|
|
196
196
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunkWQ4UYTPE_cjs.DIRECT_SIGN_CONTEXT_VERSION; }
|
|
198
198
|
});
|
|
199
199
|
Object.defineProperty(exports, "ENTRY_POINT_V07", {
|
|
200
200
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunkWQ4UYTPE_cjs.ENTRY_POINT_V07; }
|
|
202
202
|
});
|
|
203
203
|
Object.defineProperty(exports, "HAVEN_CONNECTOR_CHANNEL", {
|
|
204
204
|
enumerable: true,
|
|
205
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunkWQ4UYTPE_cjs.HAVEN_CONNECTOR_CHANNEL; }
|
|
206
206
|
});
|
|
207
207
|
Object.defineProperty(exports, "HYBRID_DELEGATOR_IMPLEMENTATION", {
|
|
208
208
|
enumerable: true,
|
|
209
|
-
get: function () { return
|
|
209
|
+
get: function () { return chunkWQ4UYTPE_cjs.HYBRID_DELEGATOR_IMPLEMENTATION; }
|
|
210
210
|
});
|
|
211
211
|
Object.defineProperty(exports, "HavenApiError", {
|
|
212
212
|
enumerable: true,
|
|
213
|
-
get: function () { return
|
|
213
|
+
get: function () { return chunkWQ4UYTPE_cjs.HavenApiError; }
|
|
214
214
|
});
|
|
215
215
|
Object.defineProperty(exports, "HavenError", {
|
|
216
216
|
enumerable: true,
|
|
217
|
-
get: function () { return
|
|
217
|
+
get: function () { return chunkWQ4UYTPE_cjs.HavenError; }
|
|
218
218
|
});
|
|
219
219
|
Object.defineProperty(exports, "HavenSigningError", {
|
|
220
220
|
enumerable: true,
|
|
221
|
-
get: function () { return
|
|
221
|
+
get: function () { return chunkWQ4UYTPE_cjs.HavenSigningError; }
|
|
222
222
|
});
|
|
223
223
|
Object.defineProperty(exports, "HavenUnsupportedSignerVersionError", {
|
|
224
224
|
enumerable: true,
|
|
225
|
-
get: function () { return
|
|
225
|
+
get: function () { return chunkWQ4UYTPE_cjs.HavenUnsupportedSignerVersionError; }
|
|
226
226
|
});
|
|
227
227
|
Object.defineProperty(exports, "HavenUserOpBindingError", {
|
|
228
228
|
enumerable: true,
|
|
229
|
-
get: function () { return
|
|
229
|
+
get: function () { return chunkWQ4UYTPE_cjs.HavenUserOpBindingError; }
|
|
230
230
|
});
|
|
231
231
|
Object.defineProperty(exports, "MAX_SETTLEMENT_WINDOW_SECONDS", {
|
|
232
232
|
enumerable: true,
|
|
233
|
-
get: function () { return
|
|
233
|
+
get: function () { return chunkWQ4UYTPE_cjs.MAX_SETTLEMENT_WINDOW_SECONDS; }
|
|
234
234
|
});
|
|
235
235
|
Object.defineProperty(exports, "REDEEM_DELEGATIONS_ABI", {
|
|
236
236
|
enumerable: true,
|
|
237
|
-
get: function () { return
|
|
237
|
+
get: function () { return chunkWQ4UYTPE_cjs.REDEEM_DELEGATIONS_ABI; }
|
|
238
238
|
});
|
|
239
239
|
Object.defineProperty(exports, "ROOT_AUTHORITY", {
|
|
240
240
|
enumerable: true,
|
|
241
|
-
get: function () { return
|
|
241
|
+
get: function () { return chunkWQ4UYTPE_cjs.ROOT_AUTHORITY; }
|
|
242
242
|
});
|
|
243
243
|
Object.defineProperty(exports, "SIGNER_UPDATE_FALLBACK", {
|
|
244
244
|
enumerable: true,
|
|
245
|
-
get: function () { return
|
|
245
|
+
get: function () { return chunkWQ4UYTPE_cjs.SIGNER_UPDATE_FALLBACK; }
|
|
246
246
|
});
|
|
247
247
|
Object.defineProperty(exports, "SIMPLE_FACTORY_ADDRESS", {
|
|
248
248
|
enumerable: true,
|
|
249
|
-
get: function () { return
|
|
249
|
+
get: function () { return chunkWQ4UYTPE_cjs.SIMPLE_FACTORY_ADDRESS; }
|
|
250
250
|
});
|
|
251
251
|
Object.defineProperty(exports, "SINGLE_DEFAULT_MODE", {
|
|
252
252
|
enumerable: true,
|
|
253
|
-
get: function () { return
|
|
253
|
+
get: function () { return chunkWQ4UYTPE_cjs.SINGLE_DEFAULT_MODE; }
|
|
254
254
|
});
|
|
255
255
|
Object.defineProperty(exports, "SignerRefusalCode", {
|
|
256
256
|
enumerable: true,
|
|
257
|
-
get: function () { return
|
|
257
|
+
get: function () { return chunkWQ4UYTPE_cjs.SignerRefusalCode; }
|
|
258
258
|
});
|
|
259
259
|
Object.defineProperty(exports, "assertRedeemsOwnBudgetDelegation", {
|
|
260
260
|
enumerable: true,
|
|
261
|
-
get: function () { return
|
|
261
|
+
get: function () { return chunkWQ4UYTPE_cjs.assertRedeemsOwnBudgetDelegation; }
|
|
262
262
|
});
|
|
263
263
|
Object.defineProperty(exports, "assertUserOpTypedDataBinding", {
|
|
264
264
|
enumerable: true,
|
|
265
|
-
get: function () { return
|
|
265
|
+
get: function () { return chunkWQ4UYTPE_cjs.assertUserOpTypedDataBinding; }
|
|
266
266
|
});
|
|
267
267
|
Object.defineProperty(exports, "chainIdForNetwork", {
|
|
268
268
|
enumerable: true,
|
|
269
|
-
get: function () { return
|
|
269
|
+
get: function () { return chunkWQ4UYTPE_cjs.chainIdForNetwork; }
|
|
270
270
|
});
|
|
271
271
|
Object.defineProperty(exports, "connectorRerunCommand", {
|
|
272
272
|
enumerable: true,
|
|
273
|
-
get: function () { return
|
|
273
|
+
get: function () { return chunkWQ4UYTPE_cjs.connectorRerunCommand; }
|
|
274
274
|
});
|
|
275
275
|
Object.defineProperty(exports, "connectorUpgradeCommand", {
|
|
276
276
|
enumerable: true,
|
|
277
|
-
get: function () { return
|
|
277
|
+
get: function () { return chunkWQ4UYTPE_cjs.connectorUpgradeCommand; }
|
|
278
278
|
});
|
|
279
279
|
Object.defineProperty(exports, "deriveDelegateAccountAddress", {
|
|
280
280
|
enumerable: true,
|
|
281
|
-
get: function () { return
|
|
281
|
+
get: function () { return chunkWQ4UYTPE_cjs.deriveDelegateAccountAddress; }
|
|
282
282
|
});
|
|
283
283
|
Object.defineProperty(exports, "isPackedUserOperationTypedData", {
|
|
284
284
|
enumerable: true,
|
|
285
|
-
get: function () { return
|
|
285
|
+
get: function () { return chunkWQ4UYTPE_cjs.isPackedUserOperationTypedData; }
|
|
286
286
|
});
|
|
287
287
|
Object.defineProperty(exports, "isSettlementChildTypedData", {
|
|
288
288
|
enumerable: true,
|
|
289
|
-
get: function () { return
|
|
289
|
+
get: function () { return chunkWQ4UYTPE_cjs.isSettlementChildTypedData; }
|
|
290
290
|
});
|
|
291
291
|
Object.defineProperty(exports, "packedUserOperationHash", {
|
|
292
292
|
enumerable: true,
|
|
293
|
-
get: function () { return
|
|
293
|
+
get: function () { return chunkWQ4UYTPE_cjs.packedUserOperationHash; }
|
|
294
294
|
});
|
|
295
295
|
Object.defineProperty(exports, "verifySettlementChild", {
|
|
296
296
|
enumerable: true,
|
|
297
|
-
get: function () { return
|
|
297
|
+
get: function () { return chunkWQ4UYTPE_cjs.verifySettlementChild; }
|
|
298
298
|
});
|
|
299
299
|
exports.addressFromKey = addressFromKey;
|
|
300
300
|
exports.signHash = signHash;
|
package/dist/edge.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { U as AgentPaymentFailureCode, Y as AgentPaymentNextAction, cf as CAVEAT_ENFORCERS, cg as CAVEAT_TYPEHASH, ch as DELEGATION_MANAGER, ci as DELEGATION_TYPEHASH, cj as DIRECT_PAYMENT_CHAIN_IDS, ac as DIRECT_SIGN_CONTEXT_VERSION, ck as DelegationForHashing, ad as ENTRY_POINT_V07, cl as EXECUTE_ABI, af as HAVEN_CLIENT_HEADER, ag as HAVEN_CONNECTOR_CHANNEL, ah as HAVEN_MINIMUM_NODE_VERSION, cm as HYBRID_DELEGATOR_IMPLEMENTATION, an as HavenApiError, a as HavenClientUpdate, I as HavenError, ar as HavenSigningError, at as HavenTypedDataRefusedError, au as HavenUnsupportedSignerVersionError, av as HavenUserOpBindingError, cn as MAX_SETTLEMENT_WINDOW_SECONDS, ax as MAX_TASK_BUDGET_TTL_SECONDS, aC as NextStep, aE as NextStepHandoff, aG as NextStepTarget, aO as ROOT_AUTHORITY, aR as SIGNER_UPDATE_FALLBACK, co as SIMPLE_FACTORY_ADDRESS, aW as SettlementChildExpectation, cp as SettlementChildTypedData, aX as SignerRefusalCode, j as SweepAuthorization, a$ as SweepExpectedAuth, b4 as TYPED_DATA_NOT_ALLOWED, b5 as TaskBudgetCloseExpectation, b6 as TaskChildExpectation, b7 as TaskChildTypedData, bb as X402ExpectedAuth, bf as X402PaymentOption, X as X402PaymentRequired, br as assertBoundDirectPaymentUserOp, cq as assertFundingLegPaysDelegate, cr as assertOwnSettlementChild, bs as assertOwnTaskBudgetCloseUserOp, bt as assertOwnTaskChild, bu as assertUserOpTypedDataBinding, bv as buildSweepAuthorizationMessage, bw as buildSweepTypedData, bx as buildX402ExpectedMessage, cs as chainIdForNetwork, bz as connectorRerunCommand, bB as connectorUpgradeCommand, bC as createNextStepBuilder, bD as decodeBase64Json, bG as deriveDelegateAccountAddress, bH as encodeBase64Json, bK as hashDelegation, bL as havenClientIdentity, bO as isPackedUserOperationTypedData, ct as isSettlementChildTypedData, bP as isSupportedNodeVersion, bR as isTaskChildTypedData, bT as packedUserOperationHash, bX as readClientUpdate, c2 as selectStandardPaymentOption, c7 as toStandardPaymentRequirements, c8 as unsupportedNodeVersionMessage, ca as verifySettlementChild, cc as x402AuthorizationAmount, ce as x402V2PaymentEnvelope } from './base64-
|
|
1
|
+
export { U as AgentPaymentFailureCode, Y as AgentPaymentNextAction, cf as CAVEAT_ENFORCERS, cg as CAVEAT_TYPEHASH, ch as DELEGATION_MANAGER, ci as DELEGATION_TYPEHASH, cj as DIRECT_PAYMENT_CHAIN_IDS, ac as DIRECT_SIGN_CONTEXT_VERSION, ck as DelegationForHashing, ad as ENTRY_POINT_V07, cl as EXECUTE_ABI, af as HAVEN_CLIENT_HEADER, ag as HAVEN_CONNECTOR_CHANNEL, ah as HAVEN_MINIMUM_NODE_VERSION, cm as HYBRID_DELEGATOR_IMPLEMENTATION, an as HavenApiError, a as HavenClientUpdate, I as HavenError, ar as HavenSigningError, at as HavenTypedDataRefusedError, au as HavenUnsupportedSignerVersionError, av as HavenUserOpBindingError, cn as MAX_SETTLEMENT_WINDOW_SECONDS, ax as MAX_TASK_BUDGET_TTL_SECONDS, aC as NextStep, aE as NextStepHandoff, aG as NextStepTarget, aO as ROOT_AUTHORITY, aR as SIGNER_UPDATE_FALLBACK, co as SIMPLE_FACTORY_ADDRESS, aW as SettlementChildExpectation, cp as SettlementChildTypedData, aX as SignerRefusalCode, j as SweepAuthorization, a$ as SweepExpectedAuth, b4 as TYPED_DATA_NOT_ALLOWED, b5 as TaskBudgetCloseExpectation, b6 as TaskChildExpectation, b7 as TaskChildTypedData, bb as X402ExpectedAuth, bf as X402PaymentOption, X as X402PaymentRequired, br as assertBoundDirectPaymentUserOp, cq as assertFundingLegPaysDelegate, cr as assertOwnSettlementChild, bs as assertOwnTaskBudgetCloseUserOp, bt as assertOwnTaskChild, bu as assertUserOpTypedDataBinding, bv as buildSweepAuthorizationMessage, bw as buildSweepTypedData, bx as buildX402ExpectedMessage, cs as chainIdForNetwork, bz as connectorRerunCommand, bB as connectorUpgradeCommand, bC as createNextStepBuilder, bD as decodeBase64Json, bG as deriveDelegateAccountAddress, bH as encodeBase64Json, bK as hashDelegation, bL as havenClientIdentity, bO as isPackedUserOperationTypedData, ct as isSettlementChildTypedData, bP as isSupportedNodeVersion, bR as isTaskChildTypedData, bT as packedUserOperationHash, bX as readClientUpdate, c2 as selectStandardPaymentOption, c7 as toStandardPaymentRequirements, c8 as unsupportedNodeVersionMessage, ca as verifySettlementChild, cc as x402AuthorizationAmount, ce as x402V2PaymentEnvelope } from './base64-YC49ypsN.cjs';
|
|
2
2
|
import { Hex, Address } from 'viem';
|
|
3
3
|
import 'x402/types';
|
|
4
4
|
|
package/dist/edge.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { U as AgentPaymentFailureCode, Y as AgentPaymentNextAction, cf as CAVEAT_ENFORCERS, cg as CAVEAT_TYPEHASH, ch as DELEGATION_MANAGER, ci as DELEGATION_TYPEHASH, cj as DIRECT_PAYMENT_CHAIN_IDS, ac as DIRECT_SIGN_CONTEXT_VERSION, ck as DelegationForHashing, ad as ENTRY_POINT_V07, cl as EXECUTE_ABI, af as HAVEN_CLIENT_HEADER, ag as HAVEN_CONNECTOR_CHANNEL, ah as HAVEN_MINIMUM_NODE_VERSION, cm as HYBRID_DELEGATOR_IMPLEMENTATION, an as HavenApiError, a as HavenClientUpdate, I as HavenError, ar as HavenSigningError, at as HavenTypedDataRefusedError, au as HavenUnsupportedSignerVersionError, av as HavenUserOpBindingError, cn as MAX_SETTLEMENT_WINDOW_SECONDS, ax as MAX_TASK_BUDGET_TTL_SECONDS, aC as NextStep, aE as NextStepHandoff, aG as NextStepTarget, aO as ROOT_AUTHORITY, aR as SIGNER_UPDATE_FALLBACK, co as SIMPLE_FACTORY_ADDRESS, aW as SettlementChildExpectation, cp as SettlementChildTypedData, aX as SignerRefusalCode, j as SweepAuthorization, a$ as SweepExpectedAuth, b4 as TYPED_DATA_NOT_ALLOWED, b5 as TaskBudgetCloseExpectation, b6 as TaskChildExpectation, b7 as TaskChildTypedData, bb as X402ExpectedAuth, bf as X402PaymentOption, X as X402PaymentRequired, br as assertBoundDirectPaymentUserOp, cq as assertFundingLegPaysDelegate, cr as assertOwnSettlementChild, bs as assertOwnTaskBudgetCloseUserOp, bt as assertOwnTaskChild, bu as assertUserOpTypedDataBinding, bv as buildSweepAuthorizationMessage, bw as buildSweepTypedData, bx as buildX402ExpectedMessage, cs as chainIdForNetwork, bz as connectorRerunCommand, bB as connectorUpgradeCommand, bC as createNextStepBuilder, bD as decodeBase64Json, bG as deriveDelegateAccountAddress, bH as encodeBase64Json, bK as hashDelegation, bL as havenClientIdentity, bO as isPackedUserOperationTypedData, ct as isSettlementChildTypedData, bP as isSupportedNodeVersion, bR as isTaskChildTypedData, bT as packedUserOperationHash, bX as readClientUpdate, c2 as selectStandardPaymentOption, c7 as toStandardPaymentRequirements, c8 as unsupportedNodeVersionMessage, ca as verifySettlementChild, cc as x402AuthorizationAmount, ce as x402V2PaymentEnvelope } from './base64-
|
|
1
|
+
export { U as AgentPaymentFailureCode, Y as AgentPaymentNextAction, cf as CAVEAT_ENFORCERS, cg as CAVEAT_TYPEHASH, ch as DELEGATION_MANAGER, ci as DELEGATION_TYPEHASH, cj as DIRECT_PAYMENT_CHAIN_IDS, ac as DIRECT_SIGN_CONTEXT_VERSION, ck as DelegationForHashing, ad as ENTRY_POINT_V07, cl as EXECUTE_ABI, af as HAVEN_CLIENT_HEADER, ag as HAVEN_CONNECTOR_CHANNEL, ah as HAVEN_MINIMUM_NODE_VERSION, cm as HYBRID_DELEGATOR_IMPLEMENTATION, an as HavenApiError, a as HavenClientUpdate, I as HavenError, ar as HavenSigningError, at as HavenTypedDataRefusedError, au as HavenUnsupportedSignerVersionError, av as HavenUserOpBindingError, cn as MAX_SETTLEMENT_WINDOW_SECONDS, ax as MAX_TASK_BUDGET_TTL_SECONDS, aC as NextStep, aE as NextStepHandoff, aG as NextStepTarget, aO as ROOT_AUTHORITY, aR as SIGNER_UPDATE_FALLBACK, co as SIMPLE_FACTORY_ADDRESS, aW as SettlementChildExpectation, cp as SettlementChildTypedData, aX as SignerRefusalCode, j as SweepAuthorization, a$ as SweepExpectedAuth, b4 as TYPED_DATA_NOT_ALLOWED, b5 as TaskBudgetCloseExpectation, b6 as TaskChildExpectation, b7 as TaskChildTypedData, bb as X402ExpectedAuth, bf as X402PaymentOption, X as X402PaymentRequired, br as assertBoundDirectPaymentUserOp, cq as assertFundingLegPaysDelegate, cr as assertOwnSettlementChild, bs as assertOwnTaskBudgetCloseUserOp, bt as assertOwnTaskChild, bu as assertUserOpTypedDataBinding, bv as buildSweepAuthorizationMessage, bw as buildSweepTypedData, bx as buildX402ExpectedMessage, cs as chainIdForNetwork, bz as connectorRerunCommand, bB as connectorUpgradeCommand, bC as createNextStepBuilder, bD as decodeBase64Json, bG as deriveDelegateAccountAddress, bH as encodeBase64Json, bK as hashDelegation, bL as havenClientIdentity, bO as isPackedUserOperationTypedData, ct as isSettlementChildTypedData, bP as isSupportedNodeVersion, bR as isTaskChildTypedData, bT as packedUserOperationHash, bX as readClientUpdate, c2 as selectStandardPaymentOption, c7 as toStandardPaymentRequirements, c8 as unsupportedNodeVersionMessage, ca as verifySettlementChild, cc as x402AuthorizationAmount, ce as x402V2PaymentEnvelope } from './base64-YC49ypsN.js';
|
|
2
2
|
import { Hex, Address } from 'viem';
|
|
3
3
|
import 'x402/types';
|
|
4
4
|
|
package/dist/edge.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { CAVEAT_TYPEHASH, DELEGATION_TYPEHASH, DIRECT_PAYMENT_CHAIN_IDS, EXECUTE_ABI, HAVEN_CLIENT_HEADER, HAVEN_MINIMUM_NODE_VERSION, HavenTypedDataRefusedError, MAX_TASK_BUDGET_TTL_SECONDS, TYPED_DATA_NOT_ALLOWED, assertBoundDirectPaymentUserOp, assertFundingLegPaysDelegate, assertOwnSettlementChild, assertOwnTaskBudgetCloseUserOp, assertOwnTaskChild, buildSweepAuthorizationMessage, buildSweepTypedData, buildX402ExpectedMessage, createNextStepBuilder, decodeBase64Json, encodeBase64Json, hashDelegation, havenClientIdentity, isSupportedNodeVersion, isTaskChildTypedData, readClientUpdate, selectStandardPaymentOption, toStandardPaymentRequirements, unsupportedNodeVersionMessage, x402AuthorizationAmount, x402V2PaymentEnvelope } from './chunk-
|
|
2
|
-
import { HavenSigningError } from './chunk-
|
|
3
|
-
export { AgentPaymentFailureCode, AgentPaymentNextAction, CAVEAT_ENFORCERS, DELEGATION_MANAGER, DELEGATION_TUPLE_COMPONENTS, DIRECT_SIGN_CONTEXT_VERSION, ENTRY_POINT_V07, HAVEN_CONNECTOR_CHANNEL, HYBRID_DELEGATOR_IMPLEMENTATION, HavenApiError, HavenError, HavenSigningError, HavenUnsupportedSignerVersionError, HavenUserOpBindingError, MAX_SETTLEMENT_WINDOW_SECONDS, REDEEM_DELEGATIONS_ABI, ROOT_AUTHORITY, SIGNER_UPDATE_FALLBACK, SIMPLE_FACTORY_ADDRESS, SINGLE_DEFAULT_MODE, SignerRefusalCode, assertRedeemsOwnBudgetDelegation, assertUserOpTypedDataBinding, chainIdForNetwork, connectorRerunCommand, connectorUpgradeCommand, deriveDelegateAccountAddress, isPackedUserOperationTypedData, isSettlementChildTypedData, packedUserOperationHash, verifySettlementChild } from './chunk-
|
|
1
|
+
export { CAVEAT_TYPEHASH, DELEGATION_TYPEHASH, DIRECT_PAYMENT_CHAIN_IDS, EXECUTE_ABI, HAVEN_CLIENT_HEADER, HAVEN_MINIMUM_NODE_VERSION, HavenTypedDataRefusedError, MAX_TASK_BUDGET_TTL_SECONDS, TYPED_DATA_NOT_ALLOWED, assertBoundDirectPaymentUserOp, assertFundingLegPaysDelegate, assertOwnSettlementChild, assertOwnTaskBudgetCloseUserOp, assertOwnTaskChild, buildSweepAuthorizationMessage, buildSweepTypedData, buildX402ExpectedMessage, createNextStepBuilder, decodeBase64Json, encodeBase64Json, hashDelegation, havenClientIdentity, isSupportedNodeVersion, isTaskChildTypedData, readClientUpdate, selectStandardPaymentOption, toStandardPaymentRequirements, unsupportedNodeVersionMessage, x402AuthorizationAmount, x402V2PaymentEnvelope } from './chunk-XDJAPMS2.js';
|
|
2
|
+
import { HavenSigningError } from './chunk-FVLF2A66.js';
|
|
3
|
+
export { AgentPaymentFailureCode, AgentPaymentNextAction, CAVEAT_ENFORCERS, DELEGATION_MANAGER, DELEGATION_TUPLE_COMPONENTS, DIRECT_SIGN_CONTEXT_VERSION, ENTRY_POINT_V07, HAVEN_CONNECTOR_CHANNEL, HYBRID_DELEGATOR_IMPLEMENTATION, HavenApiError, HavenError, HavenSigningError, HavenUnsupportedSignerVersionError, HavenUserOpBindingError, MAX_SETTLEMENT_WINDOW_SECONDS, REDEEM_DELEGATIONS_ABI, ROOT_AUTHORITY, SIGNER_UPDATE_FALLBACK, SIMPLE_FACTORY_ADDRESS, SINGLE_DEFAULT_MODE, SignerRefusalCode, assertRedeemsOwnBudgetDelegation, assertUserOpTypedDataBinding, chainIdForNetwork, connectorRerunCommand, connectorUpgradeCommand, deriveDelegateAccountAddress, isPackedUserOperationTypedData, isSettlementChildTypedData, packedUserOperationHash, verifySettlementChild } from './chunk-FVLF2A66.js';
|
|
4
4
|
import { secp256k1 } from '@noble/curves/secp256k1';
|
|
5
5
|
import { privateKeyToAddress, publicKeyToAddress } from 'viem/accounts';
|
|
6
6
|
import { serializeSignature } from 'viem';
|