@rhinestone/sdk 1.0.0-beta.41 → 1.0.0-beta.43
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Hex } from 'viem';
|
|
2
2
|
import type { IntentOp, IntentOpElement } from '../orchestrator/types';
|
|
3
|
-
declare const COMPACT_ADDRESS = "
|
|
3
|
+
declare const COMPACT_ADDRESS = "0x00000000000000171ede64904551eeDF3C6C9788";
|
|
4
4
|
declare function getCompactTypedData(intentOp: IntentOp): {
|
|
5
5
|
readonly domain: {
|
|
6
6
|
readonly name: "The Compact";
|
|
@@ -6,7 +6,7 @@ exports.getCompactDigest = getCompactDigest;
|
|
|
6
6
|
exports.getPermit2Digest = getPermit2Digest;
|
|
7
7
|
const viem_1 = require("viem");
|
|
8
8
|
const permit2_1 = require("./permit2");
|
|
9
|
-
const COMPACT_ADDRESS = '
|
|
9
|
+
const COMPACT_ADDRESS = '0x00000000000000171ede64904551eeDF3C6C9788';
|
|
10
10
|
exports.COMPACT_ADDRESS = COMPACT_ADDRESS;
|
|
11
11
|
// Define the typed data structure as const to preserve type safety
|
|
12
12
|
const COMPACT_TYPED_DATA_TYPES = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../orchestrator/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAe,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../orchestrator/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAe,MAAM,MAAM,CAAA;AAwBhD,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EACX,cAAc,EACd,YAAY,EACZ,WAAW,EACX,SAAS,EAET,cAAc,EACf,MAAM,SAAS,CAAA;AAGhB,qBAAa,YAAY;IACvB,OAAO,CAAC,SAAS,CAAQ;IACzB,OAAO,CAAC,MAAM,CAAC,CAAQ;gBAEX,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM;IAKxC,YAAY,CAChB,WAAW,EAAE,OAAO,EACpB,MAAM,CAAC,EAAE;QACP,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;QACnB,MAAM,CAAC,EAAE;YACP,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,EAAE,CAAA;SAC7B,CAAA;KACF,GACA,OAAO,CAAC,SAAS,CAAC;IA+Cf,iBAAiB,CACrB,WAAW,EAAE,OAAO,EACpB,kBAAkB,EAAE,MAAM,EAC1B,uBAAuB,EAAE,OAAO,EAChC,mBAAmB,EAAE,MAAM,EAC3B,SAAS,EAAE,OAAO,GACjB,OAAO,CAAC,MAAM,CAAC;IAqDZ,aAAa,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC;IAQtD,cAAc,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;IAQxD,YAAY,CAChB,yBAAyB,EAAE,cAAc,EACzC,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,YAAY,CAAC;IAgBlB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;IASlE,OAAO,CAAC,UAAU;YAUJ,KAAK;IA4BnB,OAAO,CAAC,UAAU;IA6GlB,OAAO,CAAC,iBAAiB;CAwF1B"}
|
|
@@ -203,15 +203,6 @@ class Orchestrator {
|
|
|
203
203
|
traceId,
|
|
204
204
|
statusCode: status,
|
|
205
205
|
};
|
|
206
|
-
if (status === 422) {
|
|
207
|
-
// zod / json schema validation errors
|
|
208
|
-
const context = { traceId, errors };
|
|
209
|
-
throw new error_1.SchemaValidationError({
|
|
210
|
-
...baseParams,
|
|
211
|
-
context,
|
|
212
|
-
message: message || 'Schema validation error',
|
|
213
|
-
});
|
|
214
|
-
}
|
|
215
206
|
if (status === 429) {
|
|
216
207
|
const retryAfter = headers?.retryAfter;
|
|
217
208
|
const context = { traceId, retryAfter };
|
|
@@ -235,7 +226,11 @@ class Orchestrator {
|
|
|
235
226
|
}
|
|
236
227
|
switch (status) {
|
|
237
228
|
case 400:
|
|
238
|
-
throw new error_1.BadRequestError(
|
|
229
|
+
throw new error_1.BadRequestError({
|
|
230
|
+
...baseParams,
|
|
231
|
+
context: { traceId, errors },
|
|
232
|
+
message: message,
|
|
233
|
+
});
|
|
239
234
|
case 401:
|
|
240
235
|
if (message === 'Authentication is required') {
|
|
241
236
|
throw new error_1.AuthenticationRequiredError(baseParams);
|