thirdweb 5.105.19-nightly-756295241a7168d4c62bdc146ffb3352859e58cf-20250723000422 → 5.105.19
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/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/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/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 +3 -3
- 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
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.19
|
|
4
|
+
exports.version = "5.105.19";
|
|
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,UAAU,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"}
|
package/dist/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = "5.105.19
|
|
1
|
+
export const version = "5.105.19";
|
|
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,UAAU,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"}
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "5.105.19
|
|
1
|
+
export declare const version = "5.105.19";
|
|
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,aAAa,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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,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,GACD;IACE,IAAI,EAAE,KAAK,CAAC;CACb,CAAC;AAEN,MAAM,MAAM,0BAA0B,GAClC;IACE,IAAI,CAAC,EAAE;QACL;;WAEG;QACH,OAAO,EAAE,eAAe,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
|
+
{"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,EAA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AC,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
|
@@ -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/insight": "1.1.0",
|
|
42
|
+
"@thirdweb-dev/engine": "3.2.1"
|
|
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.19
|
|
378
|
+
"version": "5.105.19",
|
|
379
379
|
"scripts": {
|
|
380
380
|
"bench": "vitest -c ./test/vitest.config.ts bench",
|
|
381
381
|
"bench:compare": "bun run ./benchmarks/run.ts",
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = "5.105.19
|
|
1
|
+
export const version = "5.105.19";
|
|
@@ -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
|
});
|