thirdweb 5.105.18 → 5.105.19-nightly-756295241a7168d4c62bdc146ffb3352859e58cf-20250723000422
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/cjs/bridge/Status.js +5 -1
- package/dist/cjs/bridge/Status.js.map +1 -1
- package/dist/cjs/bridge/Webhook.js +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/version.js.map +1 -1
- package/dist/esm/bridge/Status.js +5 -1
- package/dist/esm/bridge/Status.js.map +1 -1
- package/dist/esm/bridge/Webhook.js +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/types/bridge/Status.d.ts +5 -0
- package/dist/types/bridge/Status.d.ts.map +1 -1
- package/dist/types/bridge/Webhook.d.ts +1 -1
- package/dist/types/version.d.ts +1 -1
- package/dist/types/version.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/bridge/Status.ts +9 -1
- package/src/bridge/Webhook.ts +1 -1
- package/src/version.ts +1 -1
|
@@ -94,6 +94,7 @@ const Errors_js_1 = require("./types/Errors.js");
|
|
|
94
94
|
* @param options - The options for the quote.
|
|
95
95
|
* @param options.transactionHash - The hash of the origin transaction to get the bridge status for.
|
|
96
96
|
* @param options.chainId - The chain ID of the origin token.
|
|
97
|
+
* @param options.transactionId - The transaction ID received from the `prepare` request.
|
|
97
98
|
* @param options.client - Your thirdweb client.
|
|
98
99
|
*
|
|
99
100
|
* @returns A promise that resolves to a status object for the transaction.
|
|
@@ -103,12 +104,15 @@ const Errors_js_1 = require("./types/Errors.js");
|
|
|
103
104
|
* @beta
|
|
104
105
|
*/
|
|
105
106
|
async function status(options) {
|
|
106
|
-
const { transactionHash, client } = options;
|
|
107
|
+
const { transactionHash, client, transactionId } = options;
|
|
107
108
|
const chainId = "chainId" in options ? options.chainId : options.chain.id;
|
|
108
109
|
const clientFetch = (0, fetch_js_1.getClientFetch)(client);
|
|
109
110
|
const url = new URL(`${(0, domains_js_1.getThirdwebBaseUrl)("bridge")}/v1/status`);
|
|
110
111
|
url.searchParams.set("transactionHash", transactionHash);
|
|
111
112
|
url.searchParams.set("chainId", chainId.toString());
|
|
113
|
+
if (transactionId) {
|
|
114
|
+
url.searchParams.set("transactionId", transactionId);
|
|
115
|
+
}
|
|
112
116
|
const response = await clientFetch(url.toString());
|
|
113
117
|
if (!response.ok) {
|
|
114
118
|
const errorJson = await response.json();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Status.js","sourceRoot":"","sources":["../../../src/bridge/Status.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"Status.js","sourceRoot":"","sources":["../../../src/bridge/Status.ts"],"names":[],"mappings":";;AA2GA,wBA0EC;AAlLD,oDAAyD;AACzD,gDAAmD;AACnD,iDAA6C;AAG7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkGG;AACI,KAAK,UAAU,MAAM,CAAC,OAAuB;IAClD,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC;IAC3D,MAAM,OAAO,GAAG,SAAS,IAAI,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;IAE1E,MAAM,WAAW,GAAG,IAAA,yBAAc,EAAC,MAAM,CAAC,CAAC;IAC3C,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,IAAA,+BAAkB,EAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;IACjE,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,iBAAiB,EAAE,eAAe,CAAC,CAAC;IACzD,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;IACpD,IAAI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CAAC,YAAY;YAC/B,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,MAAM,EAAE,SAAS;YACjB,YAAY,EAAE,IAAI,CAAC,YAAY;SAChC,CAAC;IACJ,CAAC;IAED,IAAI,IAAI,CAAC,MAAM,KAAK,WAAW,EAAE,CAAC;QAChC,OAAO;YACL,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,MAAM,EAAE,WAAW;YACnB,YAAY,EAAE,EAAE;SACjB,CAAC;IACJ,CAAC;IAED,OAAO;QACL,iBAAiB,EAAE,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC;QACjD,kBAAkB,EAAE,IAAI,CAAC,kBAAkB;QAC3C,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;QACvC,uBAAuB,EAAE,IAAI,CAAC,uBAAuB;QACrD,YAAY,EAAE,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC;QACvC,aAAa,EAAE,IAAI,CAAC,aAAa;QACjC,WAAW,EAAE,IAAI,CAAC,WAAW;QAC7B,kBAAkB,EAAE,IAAI,CAAC,kBAAkB;QAC3C,SAAS,EAAE,IAAI,CAAC,SAAS;QACzB,YAAY,EAAE,IAAI,CAAC,YAAY;QAC/B,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,MAAM,EAAE,IAAI,CAAC,MAAM;QACnB,MAAM,EAAE,WAAW;QACnB,YAAY,EAAE,IAAI,CAAC,YAAY;KAChC,CAAC;AACJ,CAAC"}
|
|
@@ -87,8 +87,8 @@ const webhookSchema = v4_mini_1.z.discriminatedUnion("type", [
|
|
|
87
87
|
* @param payload - The raw text body received from thirdweb.
|
|
88
88
|
* @param headers - The webhook headers received from thirdweb.
|
|
89
89
|
* @param secret - The webhook secret to verify the payload with.
|
|
90
|
-
* @beta
|
|
91
90
|
* @bridge Webhook
|
|
91
|
+
* @beta
|
|
92
92
|
*/
|
|
93
93
|
async function parse(
|
|
94
94
|
/**
|
package/dist/cjs/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.version = void 0;
|
|
4
|
-
exports.version = "5.105.
|
|
4
|
+
exports.version = "5.105.19-nightly-756295241a7168d4c62bdc146ffb3352859e58cf-20250723000422";
|
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/dist/cjs/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,0EAA0E,CAAC"}
|
|
@@ -91,6 +91,7 @@ import { ApiError } from "./types/Errors.js";
|
|
|
91
91
|
* @param options - The options for the quote.
|
|
92
92
|
* @param options.transactionHash - The hash of the origin transaction to get the bridge status for.
|
|
93
93
|
* @param options.chainId - The chain ID of the origin token.
|
|
94
|
+
* @param options.transactionId - The transaction ID received from the `prepare` request.
|
|
94
95
|
* @param options.client - Your thirdweb client.
|
|
95
96
|
*
|
|
96
97
|
* @returns A promise that resolves to a status object for the transaction.
|
|
@@ -100,12 +101,15 @@ import { ApiError } from "./types/Errors.js";
|
|
|
100
101
|
* @beta
|
|
101
102
|
*/
|
|
102
103
|
export async function status(options) {
|
|
103
|
-
const { transactionHash, client } = options;
|
|
104
|
+
const { transactionHash, client, transactionId } = options;
|
|
104
105
|
const chainId = "chainId" in options ? options.chainId : options.chain.id;
|
|
105
106
|
const clientFetch = getClientFetch(client);
|
|
106
107
|
const url = new URL(`${getThirdwebBaseUrl("bridge")}/v1/status`);
|
|
107
108
|
url.searchParams.set("transactionHash", transactionHash);
|
|
108
109
|
url.searchParams.set("chainId", chainId.toString());
|
|
110
|
+
if (transactionId) {
|
|
111
|
+
url.searchParams.set("transactionId", transactionId);
|
|
112
|
+
}
|
|
109
113
|
const response = await clientFetch(url.toString());
|
|
110
114
|
if (!response.ok) {
|
|
111
115
|
const errorJson = await response.json();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Status.js","sourceRoot":"","sources":["../../../src/bridge/Status.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAG7C
|
|
1
|
+
{"version":3,"file":"Status.js","sourceRoot":"","sources":["../../../src/bridge/Status.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAG7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkGG;AACH,MAAM,CAAC,KAAK,UAAU,MAAM,CAAC,OAAuB;IAClD,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC;IAC3D,MAAM,OAAO,GAAG,SAAS,IAAI,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;IAE1E,MAAM,WAAW,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;IAC3C,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,kBAAkB,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;IACjE,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,iBAAiB,EAAE,eAAe,CAAC,CAAC;IACzD,GAAG,CAAC,Y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IAAI,CAAC,kBAAkB;YAC3C,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,MAAM,EAAE,SAAS;YACjB,YAAY,EAAE,IAAI,CAAC,YAAY;SAChC,CAAC;IACJ,CAAC;IAED,IAAI,IAAI,CAAC,MAAM,KAAK,WAAW,EAAE,CAAC;QAChC,OAAO;YACL,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,MAAM,EAAE,WAAW;YACnB,YAAY,EAAE,EAAE;SACjB,CAAC;IACJ,CAAC;IAED,OAAO;QACL,iBAAiB,EAAE,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC;QACjD,kBAAkB,EAAE,IAAI,CAAC,kBAAkB;QAC3C,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;QACvC,uBAAuB,EAAE,IAAI,CAAC,uBAAuB;QACrD,YAAY,EAAE,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC;QACvC,aAAa,EAAE,IAAI,CAAC,aAAa;QACjC,WAAW,EAAE,IAAI,CAAC,WAAW;QAC7B,kBAAkB,EAAE,IAAI,CAAC,kBAAkB;QAC3C,SAAS,EAAE,IAAI,CAAC,SAAS;QACzB,YAAY,EAAE,IAAI,CAAC,YAAY;QAC/B,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,MAAM,EAAE,IAAI,CAAC,MAAM;QACnB,MAAM,EAAE,WAAW;QACnB,YAAY,EAAE,IAAI,CAAC,YAAY;KAChC,CAAC;AACJ,CAAC"}
|
|
@@ -84,8 +84,8 @@ const webhookSchema = z.discriminatedUnion("type", [
|
|
|
84
84
|
* @param payload - The raw text body received from thirdweb.
|
|
85
85
|
* @param headers - The webhook headers received from thirdweb.
|
|
86
86
|
* @param secret - The webhook secret to verify the payload with.
|
|
87
|
-
* @beta
|
|
88
87
|
* @bridge Webhook
|
|
88
|
+
* @beta
|
|
89
89
|
*/
|
|
90
90
|
export async function parse(
|
|
91
91
|
/**
|
package/dist/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = "5.105.
|
|
1
|
+
export const version = "5.105.19-nightly-756295241a7168d4c62bdc146ffb3352859e58cf-20250723000422";
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/dist/esm/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,0EAA0E,CAAC"}
|
|
@@ -92,6 +92,7 @@ import type { Status } from "./types/Status.js";
|
|
|
92
92
|
* @param options - The options for the quote.
|
|
93
93
|
* @param options.transactionHash - The hash of the origin transaction to get the bridge status for.
|
|
94
94
|
* @param options.chainId - The chain ID of the origin token.
|
|
95
|
+
* @param options.transactionId - The transaction ID received from the `prepare` request.
|
|
95
96
|
* @param options.client - Your thirdweb client.
|
|
96
97
|
*
|
|
97
98
|
* @returns A promise that resolves to a status object for the transaction.
|
|
@@ -118,6 +119,8 @@ export declare namespace status {
|
|
|
118
119
|
transactionHash: ox__Hex.Hex;
|
|
119
120
|
/** The chain ID where the transaction occurred */
|
|
120
121
|
chainId: number;
|
|
122
|
+
/** The transaction ID received from the `prepare` request */
|
|
123
|
+
transactionId?: string;
|
|
121
124
|
/** Your thirdweb client */
|
|
122
125
|
client: ThirdwebClient;
|
|
123
126
|
} | {
|
|
@@ -125,6 +128,8 @@ export declare namespace status {
|
|
|
125
128
|
transactionHash: ox__Hex.Hex;
|
|
126
129
|
/** The chain object where the transaction occurred */
|
|
127
130
|
chain: Chain;
|
|
131
|
+
/** The transaction ID received from the `prepare` request */
|
|
132
|
+
transactionId?: string;
|
|
128
133
|
/** Your thirdweb client */
|
|
129
134
|
client: ThirdwebClient;
|
|
130
135
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Status.d.ts","sourceRoot":"","sources":["../../../src/bridge/Status.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,IAAI,CAAC;AACzC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAI1D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEhD
|
|
1
|
+
{"version":3,"file":"Status.d.ts","sourceRoot":"","sources":["../../../src/bridge/Status.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,IAAI,CAAC;AACzC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAI1D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkGG;AACH,wBAAsB,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CA0E5E;AAED;;;;GAIG;AACH,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B;;;;;OAKG;IACH,KAAK,OAAO,GACR;QACE,+CAA+C;QAC/C,eAAe,EAAE,OAAO,CAAC,GAAG,CAAC;QAC7B,kDAAkD;QAClD,OAAO,EAAE,MAAM,CAAC;QAChB,6DAA6D;QAC7D,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,2BAA2B;QAC3B,MAAM,EAAE,cAAc,CAAC;KACxB,GACD;QACE,+CAA+C;QAC/C,eAAe,EAAE,OAAO,CAAC,GAAG,CAAC;QAC7B,sDAAsD;QACtD,KAAK,EAAE,KAAK,CAAC;QACb,6DAA6D;QAC7D,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,2BAA2B;QAC3B,MAAM,EAAE,cAAc,CAAC;KACxB,CAAC;IAEN;;;;;OAKG;IACH,KAAK,MAAM,GAAG,MAAM,CAAC;CACtB"}
|
|
@@ -94,8 +94,8 @@ export type WebhookPayload = Exclude<z.infer<typeof webhookSchema>, {
|
|
|
94
94
|
* @param payload - The raw text body received from thirdweb.
|
|
95
95
|
* @param headers - The webhook headers received from thirdweb.
|
|
96
96
|
* @param secret - The webhook secret to verify the payload with.
|
|
97
|
-
* @beta
|
|
98
97
|
* @bridge Webhook
|
|
98
|
+
* @beta
|
|
99
99
|
*/
|
|
100
100
|
export declare function parse(
|
|
101
101
|
/**
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "5.105.
|
|
1
|
+
export declare const version = "5.105.19-nightly-756295241a7168d4c62bdc146ffb3352859e58cf-20250723000422";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,6EAA6E,CAAC"}
|
package/package.json
CHANGED
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"uqr": "0.1.2",
|
|
39
39
|
"viem": "2.28.1",
|
|
40
40
|
"zod": "3.25.75",
|
|
41
|
-
"@thirdweb-dev/
|
|
42
|
-
"@thirdweb-dev/
|
|
41
|
+
"@thirdweb-dev/engine": "3.2.1",
|
|
42
|
+
"@thirdweb-dev/insight": "1.1.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@aws-sdk/client-kms": "3.592.0",
|
|
@@ -375,7 +375,7 @@
|
|
|
375
375
|
}
|
|
376
376
|
},
|
|
377
377
|
"typings": "./dist/types/exports/thirdweb.d.ts",
|
|
378
|
-
"version": "5.105.
|
|
378
|
+
"version": "5.105.19-nightly-756295241a7168d4c62bdc146ffb3352859e58cf-20250723000422",
|
|
379
379
|
"scripts": {
|
|
380
380
|
"bench": "vitest -c ./test/vitest.config.ts bench",
|
|
381
381
|
"bench:compare": "bun run ./benchmarks/run.ts",
|
package/src/bridge/Status.ts
CHANGED
|
@@ -96,6 +96,7 @@ import type { Status } from "./types/Status.js";
|
|
|
96
96
|
* @param options - The options for the quote.
|
|
97
97
|
* @param options.transactionHash - The hash of the origin transaction to get the bridge status for.
|
|
98
98
|
* @param options.chainId - The chain ID of the origin token.
|
|
99
|
+
* @param options.transactionId - The transaction ID received from the `prepare` request.
|
|
99
100
|
* @param options.client - Your thirdweb client.
|
|
100
101
|
*
|
|
101
102
|
* @returns A promise that resolves to a status object for the transaction.
|
|
@@ -105,13 +106,16 @@ import type { Status } from "./types/Status.js";
|
|
|
105
106
|
* @beta
|
|
106
107
|
*/
|
|
107
108
|
export async function status(options: status.Options): Promise<status.Result> {
|
|
108
|
-
const { transactionHash, client } = options;
|
|
109
|
+
const { transactionHash, client, transactionId } = options;
|
|
109
110
|
const chainId = "chainId" in options ? options.chainId : options.chain.id;
|
|
110
111
|
|
|
111
112
|
const clientFetch = getClientFetch(client);
|
|
112
113
|
const url = new URL(`${getThirdwebBaseUrl("bridge")}/v1/status`);
|
|
113
114
|
url.searchParams.set("transactionHash", transactionHash);
|
|
114
115
|
url.searchParams.set("chainId", chainId.toString());
|
|
116
|
+
if (transactionId) {
|
|
117
|
+
url.searchParams.set("transactionId", transactionId);
|
|
118
|
+
}
|
|
115
119
|
|
|
116
120
|
const response = await clientFetch(url.toString());
|
|
117
121
|
if (!response.ok) {
|
|
@@ -195,6 +199,8 @@ export declare namespace status {
|
|
|
195
199
|
transactionHash: ox__Hex.Hex;
|
|
196
200
|
/** The chain ID where the transaction occurred */
|
|
197
201
|
chainId: number;
|
|
202
|
+
/** The transaction ID received from the `prepare` request */
|
|
203
|
+
transactionId?: string;
|
|
198
204
|
/** Your thirdweb client */
|
|
199
205
|
client: ThirdwebClient;
|
|
200
206
|
}
|
|
@@ -203,6 +209,8 @@ export declare namespace status {
|
|
|
203
209
|
transactionHash: ox__Hex.Hex;
|
|
204
210
|
/** The chain object where the transaction occurred */
|
|
205
211
|
chain: Chain;
|
|
212
|
+
/** The transaction ID received from the `prepare` request */
|
|
213
|
+
transactionId?: string;
|
|
206
214
|
/** Your thirdweb client */
|
|
207
215
|
client: ThirdwebClient;
|
|
208
216
|
};
|
package/src/bridge/Webhook.ts
CHANGED
|
@@ -95,8 +95,8 @@ export type WebhookPayload = Exclude<
|
|
|
95
95
|
* @param payload - The raw text body received from thirdweb.
|
|
96
96
|
* @param headers - The webhook headers received from thirdweb.
|
|
97
97
|
* @param secret - The webhook secret to verify the payload with.
|
|
98
|
-
* @beta
|
|
99
98
|
* @bridge Webhook
|
|
99
|
+
* @beta
|
|
100
100
|
*/
|
|
101
101
|
export async function parse(
|
|
102
102
|
/**
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = "5.105.
|
|
1
|
+
export const version = "5.105.19-nightly-756295241a7168d4c62bdc146ffb3352859e58cf-20250723000422";
|