thirdweb 5.105.18 → 5.105.19-nightly-8260af3a9258595b53f021a64a1e015791d33949-20250724000414
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/cjs/wallets/in-app/native/ecosystem.js.map +1 -1
- package/dist/cjs/wallets/in-app/native/in-app.js.map +1 -1
- package/dist/cjs/wallets/in-app/web/ecosystem.js.map +1 -1
- package/dist/cjs/wallets/in-app/web/in-app.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/esm/wallets/in-app/native/ecosystem.js.map +1 -1
- package/dist/esm/wallets/in-app/native/in-app.js.map +1 -1
- package/dist/esm/wallets/in-app/web/ecosystem.js.map +1 -1
- package/dist/esm/wallets/in-app/web/in-app.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/dist/types/wallets/in-app/core/wallet/types.d.ts +7 -0
- package/dist/types/wallets/in-app/core/wallet/types.d.ts.map +1 -1
- package/dist/types/wallets/in-app/native/ecosystem.d.ts +2 -2
- package/dist/types/wallets/in-app/native/ecosystem.d.ts.map +1 -1
- package/dist/types/wallets/in-app/native/in-app.d.ts +2 -3
- package/dist/types/wallets/in-app/native/in-app.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/ecosystem.d.ts +2 -2
- package/dist/types/wallets/in-app/web/ecosystem.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/in-app.d.ts +2 -3
- package/dist/types/wallets/in-app/web/in-app.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/bridge/Status.ts +9 -1
- package/src/bridge/Webhook.ts +1 -1
- package/src/version.ts +1 -1
- package/src/wallets/in-app/core/wallet/types.ts +9 -0
- package/src/wallets/in-app/native/ecosystem.ts +3 -3
- package/src/wallets/in-app/native/in-app.ts +6 -4
- package/src/wallets/in-app/web/ecosystem.ts +3 -3
- package/src/wallets/in-app/web/in-app.ts +6 -4
- package/src/wallets/in-app/web/lib/in-app-gateway.test.ts +5 -5
|
@@ -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,aAAa,EAAE,CAAC;QAClB,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC;IACvD,CAAC;IAED,MAAM,QAAQ,GAAG,MAAM,WAAW,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;IACnD,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACjB,MAAM,SAAS,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,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E,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-8260af3a9258595b53f021a64a1e015791d33949-20250724000414";
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecosystem.js","sourceRoot":"","sources":["../../../../../src/wallets/in-app/native/ecosystem.ts"],"names":[],"mappings":";;AA+DA,0CA2BC;
|
|
1
|
+
{"version":3,"file":"ecosystem.js","sourceRoot":"","sources":["../../../../../src/wallets/in-app/native/ecosystem.ts"],"names":[],"mappings":";;AA+DA,0CA2BC;AArFD,kEAAkE;AAGlE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,SAAgB,eAAe,CAC7B,GAAG,IAAyC;IAE5C,MAAM,CAAC,WAAW,EAAE,aAAa,CAAC,GAAG,IAAI,CAAC;IAC1C,MAAM,SAAS,GAAG;QAChB,EAAE,EAAE,WAAW;QACf,SAAS,EAAE,aAAa,EAAE,SAAS;KACpC,CAAC;IACF,OAAO,IAAA,kCAAiB,EAAC;QACvB,gBAAgB,EAAE,KAAK,EAAE,MAAsB,EAAE,EAAE;YACjD,MAAM,EAAE,oBAAoB,EAAE,GAAG,2CAAa,uBAAuB,EAAC,CAAC;YACvE,OAAO,IAAI,oBAAoB,CAAC;gBAC9B,MAAM;gBACN,SAAS;gBACT,OAAO,EAAE,aAAa,EAAE,OAAO;gBAC/B,sDAAsD;aACvD,CAAC,CAAC;QACL,CAAC;QACD,aAAa,EAAE;YACb,IAAI,EAAE;gBACJ,GAAG,aAAa,EAAE,IAAI;gBACtB,OAAO,EAAE,EAAE,EAAE,0BAA0B;aACxC;YACD,SAAS,EAAE,aAAa,EAAE,SAAS;SACpC;QACD,SAAS;KACV,CAAoB,CAAC;AACxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"in-app.js","sourceRoot":"","sources":["../../../../../src/wallets/in-app/native/in-app.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"in-app.js","sourceRoot":"","sources":["../../../../../src/wallets/in-app/native/in-app.ts"],"names":[],"mappings":";;AA2DA,kCAcC;AAxED,kEAAkE;AAMlE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,SAAgB,WAAW,CACzB,aAA0C;IAE1C,OAAO,IAAA,kCAAiB,EAAC;QACvB,gBAAgB,EAAE,KAAK,EAAE,MAAsB,EAAE,EAAE;YACjD,MAAM,EAAE,oBAAoB,EAAE,GAAG,2CAAa,uBAAuB,EAAC,CAAC;YACvE,OAAO,IAAI,oBAAoB,CAAC;gBAC9B,MAAM;gBACN,aAAa,EAAE,aAAa,EAAE,IAAI,EAAE,aAAa;gBACjD,OAAO,EAAE,aAAa,EAAE,OAAO;aAChC,CAAC,CAAC;QACL,CAAC;QACD,aAAa;KACd,CAAgB,CAAC;AACpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecosystem.js","sourceRoot":"","sources":["../../../../../src/wallets/in-app/web/ecosystem.ts"],"names":[],"mappings":";;AAqDA,0CA0BC;
|
|
1
|
+
{"version":3,"file":"ecosystem.js","sourceRoot":"","sources":["../../../../../src/wallets/in-app/web/ecosystem.ts"],"names":[],"mappings":";;AAqDA,0CA0BC;AA1ED,kEAAkE;AAGlE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,SAAgB,eAAe,CAC7B,GAAG,IAAyC;IAE5C,MAAM,CAAC,WAAW,EAAE,aAAa,CAAC,GAAG,IAAI,CAAC;IAC1C,MAAM,SAAS,GAAG;QAChB,EAAE,EAAE,WAAW;QACf,SAAS,EAAE,aAAa,EAAE,SAAS;KACpC,CAAC;IACF,OAAO,IAAA,kCAAiB,EAAC;QACvB,gBAAgB,EAAE,KAAK,EAAE,MAAsB,EAAE,EAAE;YACjD,MAAM,EAAE,iBAAiB,EAAE,GAAG,2CAAa,wBAAwB,EAAC,CAAC;YACrE,OAAO,IAAI,iBAAiB,CAAC;gBAC3B,MAAM;gBACN,SAAS;gBACT,OAAO,EAAE,aAAa,EAAE,OAAO;aAChC,CAAC,CAAC;QACL,CAAC;QACD,aAAa,EAAE;YACb,IAAI,EAAE;gBACJ,GAAG,aAAa,EAAE,IAAI;gBACtB,OAAO,EAAE,EAAE,EAAE,0BAA0B;aACxC;YACD,SAAS,EAAE,SAAS,CAAC,SAAS;SAC/B;QACD,SAAS;KACV,CAAoB,CAAC;AACxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"in-app.js","sourceRoot":"","sources":["../../../../../src/wallets/in-app/web/in-app.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"in-app.js","sourceRoot":"","sources":["../../../../../src/wallets/in-app/web/in-app.ts"],"names":[],"mappings":";;AAgTA,kCAcC;AA7TD,kEAAkE;AAMlE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwSG;AACH,SAAgB,WAAW,CACzB,aAA0C;IAE1C,OAAO,IAAA,kCAAiB,EAAC;QACvB,gBAAgB,EAAE,KAAK,EAAE,MAAsB,EAAE,EAAE;YACjD,MAAM,EAAE,iBAAiB,EAAE,GAAG,2CAAa,wBAAwB,EAAC,CAAC;YACrE,OAAO,IAAI,iBAAiB,CAAC;gBAC3B,MAAM;gBACN,aAAa,EAAE,aAAa,EAAE,IAAI,EAAE,aAAa;gBACjD,OAAO,EAAE,aAAa,EAAE,OAAO;aAChC,CAAC,CAAC;QACL,CAAC;QACD,aAAa;KACd,CAAgB,CAAC;AACpB,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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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-8260af3a9258595b53f021a64a1e015791d33949-20250724000414";
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecosystem.js","sourceRoot":"","sources":["../../../../../src/wallets/in-app/native/ecosystem.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ecosystem.js","sourceRoot":"","sources":["../../../../../src/wallets/in-app/native/ecosystem.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAGlE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,MAAM,UAAU,eAAe,CAC7B,GAAG,IAAyC;IAE5C,MAAM,CAAC,WAAW,EAAE,aAAa,CAAC,GAAG,IAAI,CAAC;IAC1C,MAAM,SAAS,GAAG;QAChB,EAAE,EAAE,WAAW;QACf,SAAS,EAAE,aAAa,EAAE,SAAS;KACpC,CAAC;IACF,OAAO,iBAAiB,CAAC;QACvB,gBAAgB,EAAE,KAAK,EAAE,MAAsB,EAAE,EAAE;YACjD,MAAM,EAAE,oBAAoB,EAAE,GAAG,MAAM,MAAM,CAAC,uBAAuB,CAAC,CAAC;YACvE,OAAO,IAAI,oBAAoB,CAAC;gBAC9B,MAAM;gBACN,SAAS;gBACT,OAAO,EAAE,aAAa,EAAE,OAAO;gBAC/B,sDAAsD;aACvD,CAAC,CAAC;QACL,CAAC;QACD,aAAa,EAAE;YACb,IAAI,EAAE;gBACJ,GAAG,aAAa,EAAE,IAAI;gBACtB,OAAO,EAAE,EAAE,EAAE,0BAA0B;aACxC;YACD,SAAS,EAAE,aAAa,EAAE,SAAS;SACpC;QACD,SAAS;KACV,CAAoB,CAAC;AACxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"in-app.js","sourceRoot":"","sources":["../../../../../src/wallets/in-app/native/in-app.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"in-app.js","sourceRoot":"","sources":["../../../../../src/wallets/in-app/native/in-app.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAMlE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,MAAM,UAAU,WAAW,CACzB,aAA0C;IAE1C,OAAO,iBAAiB,CAAC;QACvB,gBAAgB,EAAE,KAAK,EAAE,MAAsB,EAAE,EAAE;YACjD,MAAM,EAAE,oBAAoB,EAAE,GAAG,MAAM,MAAM,CAAC,uBAAuB,CAAC,CAAC;YACvE,OAAO,IAAI,oBAAoB,CAAC;gBAC9B,MAAM;gBACN,aAAa,EAAE,aAAa,EAAE,IAAI,EAAE,aAAa;gBACjD,OAAO,EAAE,aAAa,EAAE,OAAO;aAChC,CAAC,CAAC;QACL,CAAC;QACD,aAAa;KACd,CAAgB,CAAC;AACpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecosystem.js","sourceRoot":"","sources":["../../../../../src/wallets/in-app/web/ecosystem.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ecosystem.js","sourceRoot":"","sources":["../../../../../src/wallets/in-app/web/ecosystem.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAGlE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,MAAM,UAAU,eAAe,CAC7B,GAAG,IAAyC;IAE5C,MAAM,CAAC,WAAW,EAAE,aAAa,CAAC,GAAG,IAAI,CAAC;IAC1C,MAAM,SAAS,GAAG;QAChB,EAAE,EAAE,WAAW;QACf,SAAS,EAAE,aAAa,EAAE,SAAS;KACpC,CAAC;IACF,OAAO,iBAAiB,CAAC;QACvB,gBAAgB,EAAE,KAAK,EAAE,MAAsB,EAAE,EAAE;YACjD,MAAM,EAAE,iBAAiB,EAAE,GAAG,MAAM,MAAM,CAAC,wBAAwB,CAAC,CAAC;YACrE,OAAO,IAAI,iBAAiB,CAAC;gBAC3B,MAAM;gBACN,SAAS;gBACT,OAAO,EAAE,aAAa,EAAE,OAAO;aAChC,CAAC,CAAC;QACL,CAAC;QACD,aAAa,EAAE;YACb,IAAI,EAAE;gBACJ,GAAG,aAAa,EAAE,IAAI;gBACtB,OAAO,EAAE,EAAE,EAAE,0BAA0B;aACxC;YACD,SAAS,EAAE,SAAS,CAAC,SAAS;SAC/B;QACD,SAAS;KACV,CAAoB,CAAC;AACxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"in-app.js","sourceRoot":"","sources":["../../../../../src/wallets/in-app/web/in-app.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"in-app.js","sourceRoot":"","sources":["../../../../../src/wallets/in-app/web/in-app.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAMlE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwSG;AACH,MAAM,UAAU,WAAW,CACzB,aAA0C;IAE1C,OAAO,iBAAiB,CAAC;QACvB,gBAAgB,EAAE,KAAK,EAAE,MAAsB,EAAE,EAAE;YACjD,MAAM,EAAE,iBAAiB,EAAE,GAAG,MAAM,MAAM,CAAC,wBAAwB,CAAC,CAAC;YACrE,OAAO,IAAI,iBAAiB,CAAC;gBAC3B,MAAM;gBACN,aAAa,EAAE,aAAa,EAAE,IAAI,EAAE,aAAa;gBACjD,OAAO,EAAE,aAAa,EAAE,OAAO;aAChC,CAAC,CAAC;QACL,CAAC;QACD,aAAa;KACd,CAAgB,CAAC;AACpB,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,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E,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-8260af3a9258595b53f021a64a1e015791d33949-20250724000414";
|
|
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"}
|
|
@@ -3,11 +3,18 @@ import type { ThirdwebClient } from "../../../../client/client.js";
|
|
|
3
3
|
import type { SupportedSmsCountry } from "../../../../react/web/wallets/in-app/supported-sms-countries.js";
|
|
4
4
|
import type { AsyncStorage } from "../../../../utils/storage/AsyncStorage.js";
|
|
5
5
|
import type { Prettify } from "../../../../utils/type-utils.js";
|
|
6
|
+
import type { Wallet } from "../../../interfaces/wallet.js";
|
|
6
7
|
import type { SmartWalletOptions } from "../../../smart/types.js";
|
|
7
8
|
import type { AuthOption, OAuthOption, SocialAuthOption } from "../../../types.js";
|
|
8
9
|
import type { EcosystemWalletId } from "../../../wallet-types.js";
|
|
9
10
|
import type { AuthStoredTokenWithCookieReturnType, MultiStepAuthArgsType, SingleStepAuthArgsType } from "../authentication/types.js";
|
|
10
11
|
import type { UserStatus } from "./enclave-wallet.js";
|
|
12
|
+
export type InAppWallet = Wallet<"inApp"> & {
|
|
13
|
+
getAuthToken: () => string | null;
|
|
14
|
+
};
|
|
15
|
+
export type EcosystemWallet = Wallet<EcosystemWalletId> & {
|
|
16
|
+
getAuthToken: () => string | null;
|
|
17
|
+
};
|
|
11
18
|
export type Ecosystem = {
|
|
12
19
|
id: EcosystemWalletId;
|
|
13
20
|
partnerId?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/core/wallet/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iEAAiE,CAAC;AAC3G,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EACX,gBAAgB,EACjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,EACV,mCAAmC,EACnC,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,MAAM,MAAM,SAAS,GAAG;IACtB,EAAE,EAAE,iBAAiB,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB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AAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE;YACN,GAAG,EAAE,MAAM,CAAC;YACZ,KAAK,CAAC,EAAE,MAAM,CAAC;YACf,MAAM,CAAC,EAAE,MAAM,CAAC;YAChB,GAAG,CAAC,EAAE,MAAM,CAAC;SACd,CAAC;KACH,CAAC;IACF;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;QAGI;IACJ,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;OAEG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC;IAEvB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,oBAAoB,CAAC;CACtC,GACD,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/wallets/in-app/core/wallet/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iEAAiE,CAAC;AAC3G,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EACX,gBAAgB,EACjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,EACV,mCAAmC,EACnC,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAA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AAe,EAAE,CAAC;QAC3B;;WAEG;QACH,IAAI,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAC;QACvC;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB;;WAEG;QACH,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB;;WAEG;QACH,qBAAqB,CAAC,EAAE,mBAAmB,CAAC;QAE5C;;WAEG;QACH,sBAAsB,CAAC,EAAE,mBAAmB,EAAE,CAAC;KAChD,CAAC;IACF;;OAEG;IACH,QAAQ,CAAC,EAAE;QACT,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE;YACN,GAAG,EAAE,MAAM,CAAC;YACZ,KAAK,CAAC,EAAE,MAAM,CAAC;YACf,MAAM,CAAC,EAAE,MAAM,CAAC;YAChB,GAAG,CAAC,EAAE,MAAM,CAAC;SACd,CAAC;KACH,CAAC;IACF;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;QAGI;IACJ,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;OAEG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC;IAEvB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,oBAAoB,CAAC;CACtC,GACD,SAAS,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Wallet } from "../../interfaces/wallet.js";
|
|
2
1
|
import type { CreateWalletArgs, EcosystemWalletId } from "../../wallet-types.js";
|
|
2
|
+
import type { EcosystemWallet } from "../core/wallet/types.js";
|
|
3
3
|
/**
|
|
4
4
|
* Creates an [Ecosystem Wallet](https://portal.thirdweb.com/connect/ecosystems/overview) based on various authentication methods.
|
|
5
5
|
*
|
|
@@ -55,5 +55,5 @@ import type { CreateWalletArgs, EcosystemWalletId } from "../../wallet-types.js"
|
|
|
55
55
|
*
|
|
56
56
|
* @wallet
|
|
57
57
|
*/
|
|
58
|
-
export declare function ecosystemWallet(...args: CreateWalletArgs<EcosystemWalletId>):
|
|
58
|
+
export declare function ecosystemWallet(...args: CreateWalletArgs<EcosystemWalletId>): EcosystemWallet;
|
|
59
59
|
//# sourceMappingURL=ecosystem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecosystem.d.ts","sourceRoot":"","sources":["../../../../../src/wallets/in-app/native/ecosystem.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"ecosystem.d.ts","sourceRoot":"","sources":["../../../../../src/wallets/in-app/native/ecosystem.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,wBAAgB,eAAe,CAC7B,GAAG,IAAI,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,GAC3C,eAAe,CAyBjB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { InAppWalletCreationOptions } from "../core/wallet/types.js";
|
|
1
|
+
import type { InAppWallet, InAppWalletCreationOptions } from "../core/wallet/types.js";
|
|
3
2
|
/**
|
|
4
3
|
* Creates an in-app wallet.
|
|
5
4
|
* @param createOptions - configuration options
|
|
@@ -52,5 +51,5 @@ import type { InAppWalletCreationOptions } from "../core/wallet/types.js";
|
|
|
52
51
|
* ```
|
|
53
52
|
* @wallet
|
|
54
53
|
*/
|
|
55
|
-
export declare function inAppWallet(createOptions?: InAppWalletCreationOptions):
|
|
54
|
+
export declare function inAppWallet(createOptions?: InAppWalletCreationOptions): InAppWallet;
|
|
56
55
|
//# sourceMappingURL=in-app.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"in-app.d.ts","sourceRoot":"","sources":["../../../../../src/wallets/in-app/native/in-app.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"in-app.d.ts","sourceRoot":"","sources":["../../../../../src/wallets/in-app/native/in-app.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,WAAW,EACX,0BAA0B,EAC3B,MAAM,yBAAyB,CAAC;AAEjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,wBAAgB,WAAW,CACzB,aAAa,CAAC,EAAE,0BAA0B,GACzC,WAAW,CAYb"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Wallet } from "../../interfaces/wallet.js";
|
|
2
1
|
import type { CreateWalletArgs, EcosystemWalletId } from "../../wallet-types.js";
|
|
2
|
+
import type { EcosystemWallet } from "../core/wallet/types.js";
|
|
3
3
|
/**
|
|
4
4
|
* Creates an [Ecosystem Wallet](https://portal.thirdweb.com/connect/wallet/overview) based on various authentication methods. Full list of available authentication methods [here](/connect/wallet/sign-in-methods/configure).
|
|
5
5
|
*
|
|
@@ -45,5 +45,5 @@ import type { CreateWalletArgs, EcosystemWalletId } from "../../wallet-types.js"
|
|
|
45
45
|
*
|
|
46
46
|
* @wallet
|
|
47
47
|
*/
|
|
48
|
-
export declare function ecosystemWallet(...args: CreateWalletArgs<EcosystemWalletId>):
|
|
48
|
+
export declare function ecosystemWallet(...args: CreateWalletArgs<EcosystemWalletId>): EcosystemWallet;
|
|
49
49
|
//# sourceMappingURL=ecosystem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ecosystem.d.ts","sourceRoot":"","sources":["../../../../../src/wallets/in-app/web/ecosystem.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"ecosystem.d.ts","sourceRoot":"","sources":["../../../../../src/wallets/in-app/web/ecosystem.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,wBAAgB,eAAe,CAC7B,GAAG,IAAI,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,GAC3C,eAAe,CAwBjB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { InAppWalletCreationOptions } from "../core/wallet/types.js";
|
|
1
|
+
import type { InAppWallet, InAppWalletCreationOptions } from "../core/wallet/types.js";
|
|
3
2
|
/**
|
|
4
3
|
* Creates an app scoped wallet for users based on various authentication methods. Full list of available authentication methods [here](https://portal.thirdweb.com/connect/wallet/sign-in-methods/configure).
|
|
5
4
|
*
|
|
@@ -297,5 +296,5 @@ import type { InAppWalletCreationOptions } from "../core/wallet/types.js";
|
|
|
297
296
|
* @returns The created in-app wallet.
|
|
298
297
|
* @wallet
|
|
299
298
|
*/
|
|
300
|
-
export declare function inAppWallet(createOptions?: InAppWalletCreationOptions):
|
|
299
|
+
export declare function inAppWallet(createOptions?: InAppWalletCreationOptions): InAppWallet;
|
|
301
300
|
//# sourceMappingURL=in-app.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"in-app.d.ts","sourceRoot":"","sources":["../../../../../src/wallets/in-app/web/in-app.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"in-app.d.ts","sourceRoot":"","sources":["../../../../../src/wallets/in-app/web/in-app.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,WAAW,EACX,0BAA0B,EAC3B,MAAM,yBAAyB,CAAC;AAEjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwSG;AACH,wBAAgB,WAAW,CACzB,aAAa,CAAC,EAAE,0BAA0B,GACzC,WAAW,CAYb"}
|
package/package.json
CHANGED
|
@@ -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-8260af3a9258595b53f021a64a1e015791d33949-20250724000414",
|
|
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-8260af3a9258595b53f021a64a1e015791d33949-20250724000414";
|
|
@@ -3,6 +3,7 @@ import type { ThirdwebClient } from "../../../../client/client.js";
|
|
|
3
3
|
import type { SupportedSmsCountry } from "../../../../react/web/wallets/in-app/supported-sms-countries.js";
|
|
4
4
|
import type { AsyncStorage } from "../../../../utils/storage/AsyncStorage.js";
|
|
5
5
|
import type { Prettify } from "../../../../utils/type-utils.js";
|
|
6
|
+
import type { Wallet } from "../../../interfaces/wallet.js";
|
|
6
7
|
import type { SmartWalletOptions } from "../../../smart/types.js";
|
|
7
8
|
import type {
|
|
8
9
|
AuthOption,
|
|
@@ -17,6 +18,14 @@ import type {
|
|
|
17
18
|
} from "../authentication/types.js";
|
|
18
19
|
import type { UserStatus } from "./enclave-wallet.js";
|
|
19
20
|
|
|
21
|
+
export type InAppWallet = Wallet<"inApp"> & {
|
|
22
|
+
getAuthToken: () => string | null;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export type EcosystemWallet = Wallet<EcosystemWalletId> & {
|
|
26
|
+
getAuthToken: () => string | null;
|
|
27
|
+
};
|
|
28
|
+
|
|
20
29
|
export type Ecosystem = {
|
|
21
30
|
id: EcosystemWalletId;
|
|
22
31
|
partnerId?: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { ThirdwebClient } from "../../../client/client.js";
|
|
2
|
-
import type { Wallet } from "../../interfaces/wallet.js";
|
|
3
2
|
import type {
|
|
4
3
|
CreateWalletArgs,
|
|
5
4
|
EcosystemWalletId,
|
|
6
5
|
} from "../../wallet-types.js";
|
|
7
6
|
import { createInAppWallet } from "../core/wallet/in-app-core.js";
|
|
7
|
+
import type { EcosystemWallet } from "../core/wallet/types.js";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Creates an [Ecosystem Wallet](https://portal.thirdweb.com/connect/ecosystems/overview) based on various authentication methods.
|
|
@@ -63,7 +63,7 @@ import { createInAppWallet } from "../core/wallet/in-app-core.js";
|
|
|
63
63
|
*/
|
|
64
64
|
export function ecosystemWallet(
|
|
65
65
|
...args: CreateWalletArgs<EcosystemWalletId>
|
|
66
|
-
):
|
|
66
|
+
): EcosystemWallet {
|
|
67
67
|
const [ecosystemId, createOptions] = args;
|
|
68
68
|
const ecosystem = {
|
|
69
69
|
id: ecosystemId,
|
|
@@ -87,5 +87,5 @@ export function ecosystemWallet(
|
|
|
87
87
|
partnerId: createOptions?.partnerId,
|
|
88
88
|
},
|
|
89
89
|
ecosystem,
|
|
90
|
-
}) as
|
|
90
|
+
}) as EcosystemWallet;
|
|
91
91
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { ThirdwebClient } from "../../../client/client.js";
|
|
2
|
-
import type { Wallet } from "../../interfaces/wallet.js";
|
|
3
2
|
import { createInAppWallet } from "../core/wallet/in-app-core.js";
|
|
4
|
-
import type {
|
|
3
|
+
import type {
|
|
4
|
+
InAppWallet,
|
|
5
|
+
InAppWalletCreationOptions,
|
|
6
|
+
} from "../core/wallet/types.js";
|
|
5
7
|
|
|
6
8
|
/**
|
|
7
9
|
* Creates an in-app wallet.
|
|
@@ -57,7 +59,7 @@ import type { InAppWalletCreationOptions } from "../core/wallet/types.js";
|
|
|
57
59
|
*/
|
|
58
60
|
export function inAppWallet(
|
|
59
61
|
createOptions?: InAppWalletCreationOptions,
|
|
60
|
-
):
|
|
62
|
+
): InAppWallet {
|
|
61
63
|
return createInAppWallet({
|
|
62
64
|
connectorFactory: async (client: ThirdwebClient) => {
|
|
63
65
|
const { InAppNativeConnector } = await import("./native-connector.js");
|
|
@@ -68,5 +70,5 @@ export function inAppWallet(
|
|
|
68
70
|
});
|
|
69
71
|
},
|
|
70
72
|
createOptions,
|
|
71
|
-
}) as
|
|
73
|
+
}) as InAppWallet;
|
|
72
74
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { ThirdwebClient } from "../../../client/client.js";
|
|
2
|
-
import type { Wallet } from "../../interfaces/wallet.js";
|
|
3
2
|
import type {
|
|
4
3
|
CreateWalletArgs,
|
|
5
4
|
EcosystemWalletId,
|
|
6
5
|
} from "../../wallet-types.js";
|
|
7
6
|
import { createInAppWallet } from "../core/wallet/in-app-core.js";
|
|
7
|
+
import type { EcosystemWallet } from "../core/wallet/types.js";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Creates an [Ecosystem Wallet](https://portal.thirdweb.com/connect/wallet/overview) based on various authentication methods. Full list of available authentication methods [here](/connect/wallet/sign-in-methods/configure).
|
|
@@ -53,7 +53,7 @@ import { createInAppWallet } from "../core/wallet/in-app-core.js";
|
|
|
53
53
|
*/
|
|
54
54
|
export function ecosystemWallet(
|
|
55
55
|
...args: CreateWalletArgs<EcosystemWalletId>
|
|
56
|
-
):
|
|
56
|
+
): EcosystemWallet {
|
|
57
57
|
const [ecosystemId, createOptions] = args;
|
|
58
58
|
const ecosystem = {
|
|
59
59
|
id: ecosystemId,
|
|
@@ -76,5 +76,5 @@ export function ecosystemWallet(
|
|
|
76
76
|
partnerId: ecosystem.partnerId,
|
|
77
77
|
},
|
|
78
78
|
ecosystem,
|
|
79
|
-
}) as
|
|
79
|
+
}) as EcosystemWallet;
|
|
80
80
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { ThirdwebClient } from "../../../client/client.js";
|
|
2
|
-
import type { Wallet } from "../../interfaces/wallet.js";
|
|
3
2
|
import { createInAppWallet } from "../core/wallet/in-app-core.js";
|
|
4
|
-
import type {
|
|
3
|
+
import type {
|
|
4
|
+
InAppWallet,
|
|
5
|
+
InAppWalletCreationOptions,
|
|
6
|
+
} from "../core/wallet/types.js";
|
|
5
7
|
|
|
6
8
|
/**
|
|
7
9
|
* Creates an app scoped wallet for users based on various authentication methods. Full list of available authentication methods [here](https://portal.thirdweb.com/connect/wallet/sign-in-methods/configure).
|
|
@@ -302,7 +304,7 @@ import type { InAppWalletCreationOptions } from "../core/wallet/types.js";
|
|
|
302
304
|
*/
|
|
303
305
|
export function inAppWallet(
|
|
304
306
|
createOptions?: InAppWalletCreationOptions,
|
|
305
|
-
):
|
|
307
|
+
): InAppWallet {
|
|
306
308
|
return createInAppWallet({
|
|
307
309
|
connectorFactory: async (client: ThirdwebClient) => {
|
|
308
310
|
const { InAppWebConnector } = await import("./lib/web-connector.js");
|
|
@@ -313,5 +315,5 @@ export function inAppWallet(
|
|
|
313
315
|
});
|
|
314
316
|
},
|
|
315
317
|
createOptions,
|
|
316
|
-
}) as
|
|
318
|
+
}) as InAppWallet;
|
|
317
319
|
}
|
|
@@ -38,7 +38,7 @@ describe
|
|
|
38
38
|
strategy: "backend",
|
|
39
39
|
walletSecret: "test-secret",
|
|
40
40
|
});
|
|
41
|
-
authToken = wallet.getAuthToken
|
|
41
|
+
authToken = wallet.getAuthToken();
|
|
42
42
|
expect(authToken).toBeDefined();
|
|
43
43
|
});
|
|
44
44
|
|
|
@@ -59,7 +59,7 @@ describe
|
|
|
59
59
|
],
|
|
60
60
|
signingOptions: {
|
|
61
61
|
from: account.address,
|
|
62
|
-
type: "
|
|
62
|
+
type: "EOA",
|
|
63
63
|
},
|
|
64
64
|
},
|
|
65
65
|
bodySerializer: stringify,
|
|
@@ -69,7 +69,7 @@ describe
|
|
|
69
69
|
},
|
|
70
70
|
});
|
|
71
71
|
|
|
72
|
-
const signatureResult = signResult.data?.result
|
|
72
|
+
const signatureResult = signResult.data?.result[0];
|
|
73
73
|
if (signatureResult && "result" in signatureResult) {
|
|
74
74
|
expect(signatureResult.result.signature).toEqual(rawSignature);
|
|
75
75
|
} else {
|
|
@@ -79,7 +79,7 @@ describe
|
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
81
|
|
|
82
|
-
it("should queue a
|
|
82
|
+
it("should queue a 7702 transaction", async () => {
|
|
83
83
|
const body = {
|
|
84
84
|
executionOptions: {
|
|
85
85
|
chainId: sepolia.id,
|
|
@@ -120,7 +120,7 @@ describe
|
|
|
120
120
|
transactionId: txId,
|
|
121
121
|
});
|
|
122
122
|
|
|
123
|
-
console.log(tx);
|
|
123
|
+
console.log(tx.transactionHash);
|
|
124
124
|
expect(tx.transactionHash).toBeDefined();
|
|
125
125
|
});
|
|
126
126
|
});
|