thirdweb 5.69.0-nightly-e0eea33d0680b0cca8ef6fefd339638537e2752d-20241119000355 → 5.69.1-nightly-f368793375d099eec53569330af7a083e558e483-20241120000334
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/extensions/modules/MintableERC1155/mintWithRole.js +5 -2
- package/dist/cjs/extensions/modules/MintableERC1155/mintWithRole.js.map +1 -1
- package/dist/cjs/extensions/modules/MintableERC721/mintWithRole.js +5 -2
- package/dist/cjs/extensions/modules/MintableERC721/mintWithRole.js.map +1 -1
- package/dist/cjs/extensions/pack/createNewPack.js +2 -1
- package/dist/cjs/extensions/pack/createNewPack.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js +9 -0
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/TransactionModeScreen.js +15 -2
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/TransactionModeScreen.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/main/useBuyTxStates.js +2 -2
- package/dist/cjs/react/web/ui/ConnectWallet/screens/Buy/main/useBuyTxStates.js.map +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/wallets/in-app/web/ecosystem.js +7 -17
- package/dist/cjs/wallets/in-app/web/ecosystem.js.map +1 -1
- package/dist/cjs/wallets/in-app/web/in-app.js +2 -17
- package/dist/cjs/wallets/in-app/web/in-app.js.map +1 -1
- package/dist/cjs/wallets/in-app/web/lib/auth/index.js +1 -0
- package/dist/cjs/wallets/in-app/web/lib/auth/index.js.map +1 -1
- package/dist/cjs/wallets/in-app/web/lib/auth/passkeys.js +17 -16
- package/dist/cjs/wallets/in-app/web/lib/auth/passkeys.js.map +1 -1
- package/dist/esm/extensions/modules/MintableERC1155/mintWithRole.js +5 -2
- package/dist/esm/extensions/modules/MintableERC1155/mintWithRole.js.map +1 -1
- package/dist/esm/extensions/modules/MintableERC721/mintWithRole.js +5 -2
- package/dist/esm/extensions/modules/MintableERC721/mintWithRole.js.map +1 -1
- package/dist/esm/extensions/pack/createNewPack.js +2 -1
- package/dist/esm/extensions/pack/createNewPack.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js +9 -0
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/TransactionModeScreen.js +15 -2
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/TransactionModeScreen.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/main/useBuyTxStates.js +2 -2
- package/dist/esm/react/web/ui/ConnectWallet/screens/Buy/main/useBuyTxStates.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/wallets/in-app/web/ecosystem.js +7 -17
- package/dist/esm/wallets/in-app/web/ecosystem.js.map +1 -1
- package/dist/esm/wallets/in-app/web/in-app.js +2 -17
- package/dist/esm/wallets/in-app/web/in-app.js.map +1 -1
- package/dist/esm/wallets/in-app/web/lib/auth/index.js +1 -0
- package/dist/esm/wallets/in-app/web/lib/auth/index.js.map +1 -1
- package/dist/esm/wallets/in-app/web/lib/auth/passkeys.js +18 -17
- package/dist/esm/wallets/in-app/web/lib/auth/passkeys.js.map +1 -1
- package/dist/types/extensions/modules/MintableERC1155/mintWithRole.d.ts.map +1 -1
- package/dist/types/extensions/modules/MintableERC721/mintWithRole.d.ts.map +1 -1
- package/dist/types/extensions/pack/createNewPack.d.ts +2 -2
- package/dist/types/extensions/pack/createNewPack.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/Buy/TransactionModeScreen.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/Buy/main/useBuyTxStates.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/dist/types/wallets/in-app/web/ecosystem.d.ts +7 -17
- 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 -17
- package/dist/types/wallets/in-app/web/in-app.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/lib/auth/index.d.ts +1 -0
- package/dist/types/wallets/in-app/web/lib/auth/index.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/lib/auth/passkeys.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/extensions/modules/MintableERC1155/mintWithRole.ts +8 -5
- package/src/extensions/modules/MintableERC721/mintWithRole.ts +8 -5
- package/src/extensions/pack/createNewPack.ts +8 -3
- package/src/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.tsx +23 -0
- package/src/react/web/ui/ConnectWallet/screens/Buy/TransactionModeScreen.tsx +43 -2
- package/src/react/web/ui/ConnectWallet/screens/Buy/main/useBuyTxStates.ts +2 -3
- package/src/version.ts +1 -1
- package/src/wallets/in-app/web/ecosystem.ts +7 -17
- package/src/wallets/in-app/web/in-app.ts +2 -17
- package/src/wallets/in-app/web/lib/auth/index.ts +1 -0
- package/src/wallets/in-app/web/lib/auth/passkeys.ts +24 -23
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"passkeys.js","sourceRoot":"","sources":["../../../../../../../src/wallets/in-app/web/lib/auth/passkeys.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;
|
1
|
+
{"version":3,"file":"passkeys.js","sourceRoot":"","sources":["../../../../../../../src/wallets/in-app/web/lib/auth/passkeys.ts"],"names":[],"mappings":"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"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mintWithRole.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/modules/MintableERC1155/mintWithRole.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAM5E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAG/D,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,QAAQ,GAAG,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,YAAY,CAC1B,OAAO,EAAE,sBAAsB,CAAC,iBAAiB,CAAC,+
|
1
|
+
{"version":3,"file":"mintWithRole.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/modules/MintableERC1155/mintWithRole.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAM5E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAG/D,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,QAAQ,GAAG,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,YAAY,CAC1B,OAAO,EAAE,sBAAsB,CAAC,iBAAiB,CAAC,+LAwBnD"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mintWithRole.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/modules/MintableERC721/mintWithRole.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAM5E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAG/D,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,QAAQ,GAAG,MAAM,CAAC,EAAE,CAAC;CAC7B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,sBAAsB,CAAC,aAAa,CAAC,
|
1
|
+
{"version":3,"file":"mintWithRole.d.ts","sourceRoot":"","sources":["../../../../../src/extensions/modules/MintableERC721/mintWithRole.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAM5E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAG/D,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,QAAQ,GAAG,MAAM,CAAC,EAAE,CAAC;CAC7B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,sBAAsB,CAAC,aAAa,CAAC,kMAqB1E"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { ThirdwebClient } from "../../client/client.js";
|
2
2
|
import { type ThirdwebContract } from "../../contract/contract.js";
|
3
|
-
import type { BaseTransactionOptions } from "../../transaction/types.js";
|
3
|
+
import type { BaseTransactionOptions, WithOverrides } from "../../transaction/types.js";
|
4
4
|
import type { NFTInput } from "../../utils/nft/parseNft.js";
|
5
5
|
export declare enum PACK_TOKEN_TYPE {
|
6
6
|
ERC20 = 0,
|
@@ -100,5 +100,5 @@ export type CreateNewPackParams = {
|
|
100
100
|
* });
|
101
101
|
* ```
|
102
102
|
*/
|
103
|
-
export declare function createNewPack(options: BaseTransactionOptions<CreateNewPackParams
|
103
|
+
export declare function createNewPack(options: WithOverrides<BaseTransactionOptions<CreateNewPackParams>>): import("../../transaction/prepare-transaction.js").PreparedTransaction<any, import("abitype").AbiFunction, import("../../transaction/prepare-transaction.js").PrepareTransactionOptions>;
|
104
104
|
//# sourceMappingURL=createNewPack.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"createNewPack.d.ts","sourceRoot":"","sources":["../../../../src/extensions/pack/createNewPack.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,KAAK,gBAAgB,EAAe,MAAM,4BAA4B,CAAC;AAEhF,OAAO,KAAK,
|
1
|
+
{"version":3,"file":"createNewPack.d.ts","sourceRoot":"","sources":["../../../../src/extensions/pack/createNewPack.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,KAAK,gBAAgB,EAAe,MAAM,4BAA4B,CAAC;AAEhF,OAAO,KAAK,EACV,sBAAsB,EACtB,aAAa,EACd,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAQ5D,oBAAY,eAAe;IACzB,KAAK,IAAI;IACT,MAAM,IAAI;IACV,OAAO,IAAI;CACZ;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,GAAG,MAAM,CAAC;IACnC,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,EAAE,MAAM,GAAG,MAAM,CAAC;IACnC,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;CAC/B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,MAAM,EAAE,cAAc,CAAC;IACvB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,YAAY,EAAE,QAAQ,GAAG,MAAM,CAAC;IAChC,wBAAwB,EAAE,MAAM,CAAC;IACjC;;OAEG;IACH,kBAAkB,EAAE,IAAI,CAAC;IACzB;;OAEG;IACH,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;IAC7B;;OAEG;IACH,aAAa,CAAC,EAAE,YAAY,EAAE,CAAC;IAC/B;;OAEG;IACH,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;CAClC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,wBAAgB,aAAa,CAC3B,OAAO,EAAE,aAAa,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,CAAC,4LAMpE"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"BuyScreen.d.ts","sourceRoot":"","sources":["../../../../../../../../src/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAQzE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,EACL,KAAK,KAAK,EAEX,MAAM,4CAA4C,CAAC;AACpD,OAAO,KAAK,EAEV,YAAY,EACb,MAAM,4DAA4D,CAAC;AAMpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;
|
1
|
+
{"version":3,"file":"BuyScreen.d.ts","sourceRoot":"","sources":["../../../../../../../../src/react/web/ui/ConnectWallet/screens/Buy/BuyScreen.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAQzE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,EACL,KAAK,KAAK,EAEX,MAAM,4CAA4C,CAAC;AACpD,OAAO,KAAK,EAEV,YAAY,EACb,MAAM,4DAA4D,CAAC;AAMpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAGlF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAgBnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAsC3D,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;IACjC,eAAe,EAAE,eAAe,GAAG,SAAS,CAAC;IAC7C,MAAM,EAAE,cAAc,CAAC;IACvB,aAAa,EAAE,aAAa,CAAC;IAC7B,UAAU,EAAE,YAAY,CAAC;IACzB,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,KAAK,CAAC;IAChC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,cAAc,EAAE,sBAAsB,GAAG,SAAS,CAAC;IACnD,aAAa,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC3B,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAK,EAAE,cAAc,8CAqCtD"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TransactionModeScreen.d.ts","sourceRoot":"","sources":["../../../../../../../../src/react/web/ui/ConnectWallet/screens/Buy/TransactionModeScreen.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAIzE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AAG9E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4DAA4D,CAAC;
|
1
|
+
{"version":3,"file":"TransactionModeScreen.d.ts","sourceRoot":"","sources":["../../../../../../../../src/react/web/ui/ConnectWallet/screens/Buy/TransactionModeScreen.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAIzE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AAG9E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4DAA4D,CAAC;AAQ/F,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAYnE,OAAO,EACL,KAAK,kBAAkB,EAGxB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAEhF,wBAAgB,qBAAqB,CAAC,KAAK,EAAE;IAC3C,MAAM,EAAE,cAAc,CAAC;IACvB,YAAY,EAAE,OAAO,CAAC,YAAY,EAAE;QAAE,IAAI,EAAE,aAAa,CAAA;KAAE,CAAC,CAAC;IAC7D,qBAAqB,EAAE,uBAAuB,CAAC;IAC/C,YAAY,EAAE,OAAO,GAAG,SAAS,CAAC;IAClC,cAAc,EAAE,sBAAsB,GAAG,SAAS,CAAC;IACnD,UAAU,EAAE,CACV,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,KAAK,EACd,OAAO,EAAE,kBAAkB,KACxB,IAAI,CAAC;CACX,8CA0RA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useBuyTxStates.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/react/web/ui/ConnectWallet/screens/Buy/main/useBuyTxStates.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yDAAyD,CAAC;AAGnG,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mDAAmD,CAAC;AAEjF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAGjF,wBAAgB,yBAAyB,CAAC,IAAI,EAAE;IAC9C,WAAW,EAAE,mBAAmB,CAAC;IACjC,OAAO,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,qBAAqB,EAAE,uBAAuB,CAAC;CAChD;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"useBuyTxStates.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/react/web/ui/ConnectWallet/screens/Buy/main/useBuyTxStates.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yDAAyD,CAAC;AAGnG,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mDAAmD,CAAC;AAEjF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAGjF,wBAAgB,yBAAyB,CAAC,IAAI,EAAE;IAC9C,WAAW,EAAE,mBAAmB,CAAC;IACjC,OAAO,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,qBAAqB,EAAE,uBAAuB,CAAC;CAChD;;;;;;;;;;;UAsHA"}
|
package/dist/types/version.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const version = "5.69.
|
1
|
+
export declare const version = "5.69.1-nightly-f368793375d099eec53569330af7a083e558e483-20241120000334";
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
@@ -1,30 +1,21 @@
|
|
1
1
|
import type { Wallet } from "../../interfaces/wallet.js";
|
2
2
|
import type { CreateWalletArgs, EcosystemWalletId } from "../../wallet-types.js";
|
3
3
|
/**
|
4
|
-
* Creates an [Ecosystem Wallet](https://portal.thirdweb.com/connect/ecosystems/overview) based on various authentication methods.
|
5
|
-
*
|
6
|
-
* Available authentication methods:
|
7
|
-
* - Email
|
8
|
-
* - Phone
|
9
|
-
* - Passkey
|
10
|
-
* - Google
|
11
|
-
* - Apple
|
12
|
-
* - Facebook
|
13
|
-
* - Discord
|
14
|
-
* - LINE
|
15
|
-
* - X
|
16
|
-
* - Farcaster
|
4
|
+
* Creates an [Ecosystem Wallet](https://portal.thirdweb.com/connect/ecosystems/overview) based on various authentication methods. Full list of available authentication methods [here](/connect/wallet/sign-in-methods/overview).
|
17
5
|
*
|
18
6
|
* Can also be configured to use Account Abstraction to directly connect to a ERC4337 smart account based on those authentication methods.
|
19
7
|
*
|
20
|
-
* Refer to [inAppWallet](
|
8
|
+
* Refer to [inAppWallet](/typescript/v5/inAppWallet) for detailed usage examples.
|
21
9
|
*
|
22
10
|
* @param createOptions - configuration options
|
23
11
|
* Refer to [EcosystemWalletCreationOptions](https://portal.thirdweb.com/references/typescript/v5/EcosystemWalletCreationOptions) for more details.
|
24
12
|
* @returns The created ecosystem wallet.
|
13
|
+
*
|
14
|
+
*
|
25
15
|
* @example
|
16
|
+
* ### Logging into an ecosystem wallet
|
26
17
|
*
|
27
|
-
*
|
18
|
+
* Below is the general code snippet needed to connect via a given auth strategy to an ecosystem wallet. For more variants on the various auth strategies, refer to [inAppWallet](/typescript/v5/inAppWallet).
|
28
19
|
*
|
29
20
|
* ```ts
|
30
21
|
* import { ecosystemWallet } from "thirdweb/wallets";
|
@@ -38,7 +29,7 @@ import type { CreateWalletArgs, EcosystemWalletId } from "../../wallet-types.js"
|
|
38
29
|
* });
|
39
30
|
* ```
|
40
31
|
*
|
41
|
-
* [View all connection options](https://portal.thirdweb.com/references/typescript/v5/EcosystemWalletConnectionOptions)
|
32
|
+
* [View all connection options](https://portal.thirdweb.com/references/typescript/v5/EcosystemWalletConnectionOptions).
|
42
33
|
*
|
43
34
|
* ### Connect to a restricted ecosystem wallet with your designated partner ID
|
44
35
|
*
|
@@ -51,7 +42,6 @@ import type { CreateWalletArgs, EcosystemWalletId } from "../../wallet-types.js"
|
|
51
42
|
* });
|
52
43
|
* ```
|
53
44
|
*
|
54
|
-
* Refer to [inAppWallet](https://portal.thirdweb.com/references/typescript/v5/inAppWallet) for more usage examples.
|
55
45
|
*
|
56
46
|
* @wallet
|
57
47
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ecosystem.d.ts","sourceRoot":"","sources":["../../../../../src/wallets/in-app/web/ecosystem.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,EACV,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAG/B
|
1
|
+
{"version":3,"file":"ecosystem.d.ts","sourceRoot":"","sources":["../../../../../src/wallets/in-app/web/ecosystem.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,EACV,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAG/B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,wBAAgB,eAAe,CAC7B,GAAG,IAAI,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,GAC3C,MAAM,CAAC,iBAAiB,CAAC,CAuB3B"}
|
@@ -1,22 +1,7 @@
|
|
1
1
|
import type { Wallet } from "../../interfaces/wallet.js";
|
2
2
|
import type { CreateWalletArgs } from "../../wallet-types.js";
|
3
3
|
/**
|
4
|
-
* Creates an app scoped wallet for users based on various authentication methods.
|
5
|
-
*
|
6
|
-
* Available authentication methods:
|
7
|
-
* - Email
|
8
|
-
* - Phone
|
9
|
-
* - Passkey
|
10
|
-
* - Guest
|
11
|
-
* - Google
|
12
|
-
* - Apple
|
13
|
-
* - Facebook
|
14
|
-
* - Discord
|
15
|
-
* - Coinbase
|
16
|
-
* - Telegram
|
17
|
-
* - LINE
|
18
|
-
* - X
|
19
|
-
* - Farcaster
|
4
|
+
* 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/overview).
|
20
5
|
*
|
21
6
|
* Can also be configured to use Account Abstraction to directly connect to a ERC4337 smart account based on those authentication methods.
|
22
7
|
*
|
@@ -39,7 +24,7 @@ import type { CreateWalletArgs } from "../../wallet-types.js";
|
|
39
24
|
* });
|
40
25
|
* ```
|
41
26
|
*
|
42
|
-
* [View all available social auth methods](https://portal.thirdweb.com/
|
27
|
+
* [View all available social auth methods](https://portal.thirdweb.com/connect/wallet/sign-in-methods/overview)
|
43
28
|
*
|
44
29
|
* ### Login with email
|
45
30
|
*
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"in-app.d.ts","sourceRoot":"","sources":["../../../../../src/wallets/in-app/web/in-app.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAG9D
|
1
|
+
{"version":3,"file":"in-app.d.ts","sourceRoot":"","sources":["../../../../../src/wallets/in-app/web/in-app.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAG9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+KG;AACH,wBAAgB,WAAW,CACzB,aAAa,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GAC3C,MAAM,CAAC,OAAO,CAAC,CAWjB"}
|
@@ -102,6 +102,7 @@ export declare function authenticateWithRedirect(args: SocialAuthArgsType & {
|
|
102
102
|
* ```ts
|
103
103
|
* import { linkProfile } from "thirdweb/wallets";
|
104
104
|
*
|
105
|
+
* // optionally specify the ecosystem if you're linking an ecosystem wallet
|
105
106
|
* await linkProfile({ client, strategy: "discord" });
|
106
107
|
* ```
|
107
108
|
* @wallet
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/wallets/in-app/web/lib/auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAEtE,OAAO,KAAK,EACV,YAAY,EACZ,0BAA0B,EAC1B,eAAe,EACf,kBAAkB,EACnB,MAAM,uCAAuC,CAAC;AAE/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAoD/D;;;;;;;;;;;;GAYG;AACH,wBAAsB,YAAY,CAAC,OAAO,EAAE,0BAA0B,+BAMrE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,0BAA0B,+BAM3E;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,eAAe,CAAC,IAAI,EAAE,eAAe,iBAG1D;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,YAAY,CAAC,IAAI,EAAE,YAAY,gGAGpD;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,wBAAwB,CAC5C,IAAI,EAAE,kBAAkB,GAAG;IAAE,MAAM,EAAE,cAAc,CAAC;IAAC,SAAS,CAAC,EAAE,SAAS,CAAA;CAAE,iBAa7E;AAED
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/wallets/in-app/web/lib/auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAEtE,OAAO,KAAK,EACV,YAAY,EACZ,0BAA0B,EAC1B,eAAe,EACf,kBAAkB,EACnB,MAAM,uCAAuC,CAAC;AAE/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAoD/D;;;;;;;;;;;;GAYG;AACH,wBAAsB,YAAY,CAAC,OAAO,EAAE,0BAA0B,+BAMrE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,0BAA0B,+BAM3E;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,eAAe,CAAC,IAAI,EAAE,eAAe,iBAG1D;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,YAAY,CAAC,IAAI,EAAE,YAAY,gGAGpD;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,wBAAwB,CAC5C,IAAI,EAAE,kBAAkB,GAAG;IAAE,MAAM,EAAE,cAAc,CAAC;IAAC,SAAS,CAAC,EAAE,SAAS,CAAA;CAAE,iBAa7E;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,WAAW,CAAC,IAAI,EAAE,YAAY,sEAGnD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAsB,WAAW,CAAC,IAAI,EAAE,0BAA0B,sEAGjE"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"passkeys.d.ts","sourceRoot":"","sources":["../../../../../../../src/wallets/in-app/web/lib/auth/passkeys.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAMtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAErE,OAAO,KAAK,EACV,kBAAkB,EAClB,aAAa,EACb,cAAc,EACd,MAAM,EACP,MAAM,0CAA0C,CAAC;AAElD,qBAAa,gBAAiB,YAAW,aAAa;IACpD,WAAW,IAAI,OAAO;IAIhB,QAAQ,CAAC,IAAI,EAAE;QACnB,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;QAClB,EAAE,EAAE,MAAM,CAAC;KACZ,GAAG,OAAO,CAAC,cAAc,CAAC;
|
1
|
+
{"version":3,"file":"passkeys.d.ts","sourceRoot":"","sources":["../../../../../../../src/wallets/in-app/web/lib/auth/passkeys.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAMtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAErE,OAAO,KAAK,EACV,kBAAkB,EAClB,aAAa,EACb,cAAc,EACd,MAAM,EACP,MAAM,0CAA0C,CAAC;AAElD,qBAAa,gBAAiB,YAAW,aAAa;IACpD,WAAW,IAAI,OAAO;IAIhB,QAAQ,CAAC,IAAI,EAAE;QACnB,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;QAClB,EAAE,EAAE,MAAM,CAAC;KACZ,GAAG,OAAO,CAAC,cAAc,CAAC;IA2BrB,YAAY,CAAC,IAAI,EAAE;QACvB,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;QACjC,SAAS,EAAE,MAAM,CAAC;QAClB,EAAE,EAAE,MAAM,CAAC;KACZ,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAkBhC;AAED;;;;;GAKG;AACH,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,cAAc,EACtB,WAAW,CAAC,EAAE,iBAAiB,oBAShC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "thirdweb",
|
3
|
-
"version": "5.69.
|
3
|
+
"version": "5.69.1-nightly-f368793375d099eec53569330af7a083e558e483-20241120000334",
|
4
4
|
"repository": {
|
5
5
|
"type": "git",
|
6
6
|
"url": "git+https://github.com/thirdweb-dev/js.git#main"
|
@@ -205,7 +205,7 @@
|
|
205
205
|
"@google/model-viewer": "2.1.1",
|
206
206
|
"@noble/curves": "1.6.0",
|
207
207
|
"@noble/hashes": "1.5.0",
|
208
|
-
"@passwordless-id/webauthn": "^1.
|
208
|
+
"@passwordless-id/webauthn": "^2.1.2",
|
209
209
|
"@radix-ui/react-dialog": "1.1.2",
|
210
210
|
"@radix-ui/react-focus-scope": "1.1.0",
|
211
211
|
"@radix-ui/react-icons": "1.3.2",
|
@@ -45,11 +45,14 @@ export function mintWithRole(
|
|
45
45
|
return generatedMint({
|
46
46
|
contract: options.contract,
|
47
47
|
asyncParams: async () => {
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
48
|
+
let baseURI = "";
|
49
|
+
if (options.nft) {
|
50
|
+
const batchOfUris = await uploadOrExtractURIs(
|
51
|
+
[options.nft],
|
52
|
+
options.contract.client,
|
53
|
+
);
|
54
|
+
baseURI = getBaseUriFromBatch(batchOfUris);
|
55
|
+
}
|
53
56
|
|
54
57
|
const tokenId = options.tokenId ?? maxUint256;
|
55
58
|
return {
|
@@ -41,11 +41,14 @@ export function mintWithRole(options: BaseTransactionOptions<NFTMintParams>) {
|
|
41
41
|
return generatedMint({
|
42
42
|
contract: options.contract,
|
43
43
|
asyncParams: async () => {
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
44
|
+
let baseURI = "";
|
45
|
+
if (options.nfts?.[0] !== "") {
|
46
|
+
const batchOfUris = await uploadOrExtractURIs(
|
47
|
+
options.nfts,
|
48
|
+
options.contract.client,
|
49
|
+
);
|
50
|
+
baseURI = getBaseUriFromBatch(batchOfUris);
|
51
|
+
}
|
49
52
|
|
50
53
|
return {
|
51
54
|
to: getAddress(options.to),
|
@@ -1,7 +1,10 @@
|
|
1
1
|
import type { ThirdwebClient } from "../../client/client.js";
|
2
2
|
import { type ThirdwebContract, getContract } from "../../contract/contract.js";
|
3
3
|
import { upload } from "../../storage/upload.js";
|
4
|
-
import type {
|
4
|
+
import type {
|
5
|
+
BaseTransactionOptions,
|
6
|
+
WithOverrides,
|
7
|
+
} from "../../transaction/types.js";
|
5
8
|
import type { NFTInput } from "../../utils/nft/parseNft.js";
|
6
9
|
import { toUnits } from "../../utils/units.js";
|
7
10
|
import type { AddPackContentsParams } from "./__generated__/IPack/write/addPackContents.js";
|
@@ -114,7 +117,7 @@ export type CreateNewPackParams = {
|
|
114
117
|
* ```
|
115
118
|
*/
|
116
119
|
export function createNewPack(
|
117
|
-
options: BaseTransactionOptions<CreateNewPackParams
|
120
|
+
options: WithOverrides<BaseTransactionOptions<CreateNewPackParams>>,
|
118
121
|
) {
|
119
122
|
return createPack({
|
120
123
|
contract: options.contract,
|
@@ -126,7 +129,7 @@ export function createNewPack(
|
|
126
129
|
* @internal
|
127
130
|
*/
|
128
131
|
async function getCreatePackParams(
|
129
|
-
options: BaseTransactionOptions<CreateNewPackParams
|
132
|
+
options: WithOverrides<BaseTransactionOptions<CreateNewPackParams>>,
|
130
133
|
): Promise<CreatePackParams> {
|
131
134
|
const {
|
132
135
|
contract,
|
@@ -138,6 +141,7 @@ async function getCreatePackParams(
|
|
138
141
|
erc721Rewards,
|
139
142
|
erc1155Rewards,
|
140
143
|
tokenOwner,
|
144
|
+
overrides,
|
141
145
|
} = options;
|
142
146
|
const [erc20Content, erc721Content, erc1155Content, packUri] =
|
143
147
|
await Promise.all([
|
@@ -179,6 +183,7 @@ async function getCreatePackParams(
|
|
179
183
|
// openStartTimestamp should be in seconds and not millisecond
|
180
184
|
openStartTimestamp: BigInt(Math.ceil(openStartTimestamp.getTime() / 1000)),
|
181
185
|
amountDistributedPerOpen,
|
186
|
+
overrides,
|
182
187
|
};
|
183
188
|
}
|
184
189
|
|
@@ -24,6 +24,7 @@ import { useBuyWithFiatQuote } from "../../../../../core/hooks/pay/useBuyWithFia
|
|
24
24
|
import { useActiveAccount } from "../../../../../core/hooks/wallets/useActiveAccount.js";
|
25
25
|
import { invalidateWalletBalance } from "../../../../../core/providers/invalidateWalletBalance.js";
|
26
26
|
import type { SupportedTokens } from "../../../../../core/utils/defaultTokens.js";
|
27
|
+
import { ErrorState } from "../../../../wallets/shared/ErrorState.js";
|
27
28
|
import { LoadingScreen } from "../../../../wallets/shared/LoadingScreen.js";
|
28
29
|
import type { PayEmbedConnectOptions } from "../../../PayEmbed.js";
|
29
30
|
import { ChainName } from "../../../components/ChainName.js";
|
@@ -105,6 +106,24 @@ export default function BuyScreen(props: BuyScreenProps) {
|
|
105
106
|
isTestMode,
|
106
107
|
);
|
107
108
|
|
109
|
+
if (supportedDestinationsQuery.isError) {
|
110
|
+
return (
|
111
|
+
<Container
|
112
|
+
style={{
|
113
|
+
minHeight: "350px",
|
114
|
+
}}
|
115
|
+
fullHeight
|
116
|
+
flex="row"
|
117
|
+
center="both"
|
118
|
+
>
|
119
|
+
<ErrorState
|
120
|
+
title="Something went wrong"
|
121
|
+
onTryAgain={supportedDestinationsQuery.refetch}
|
122
|
+
/>
|
123
|
+
</Container>
|
124
|
+
);
|
125
|
+
}
|
126
|
+
|
108
127
|
if (!supportedDestinationsQuery.data) {
|
109
128
|
return <LoadingScreen />;
|
110
129
|
}
|
@@ -137,9 +156,11 @@ type BuyScreenContentProps = {
|
|
137
156
|
*/
|
138
157
|
function BuyScreenContent(props: BuyScreenContentProps) {
|
139
158
|
const { client, supportedDestinations, connectLocale, payOptions } = props;
|
159
|
+
console.log("BuyScreenContent");
|
140
160
|
|
141
161
|
const activeAccount = useActiveAccount();
|
142
162
|
const { payer, setPayer } = usePayerSetup();
|
163
|
+
console.log("payer", payer);
|
143
164
|
|
144
165
|
const [screen, setScreen] = useState<SelectedScreen>({
|
145
166
|
id: "main",
|
@@ -477,6 +498,8 @@ function BuyScreenContent(props: BuyScreenContentProps) {
|
|
477
498
|
);
|
478
499
|
}
|
479
500
|
|
501
|
+
console.log("SCREEN", screen.id);
|
502
|
+
|
480
503
|
return (
|
481
504
|
<Container animate="fadein">
|
482
505
|
<div>
|
@@ -13,6 +13,7 @@ import { useWalletBalance } from "../../../../../core/hooks/others/useWalletBala
|
|
13
13
|
import { useActiveAccount } from "../../../../../core/hooks/wallets/useActiveAccount.js";
|
14
14
|
import { useActiveWallet } from "../../../../../core/hooks/wallets/useActiveWallet.js";
|
15
15
|
import { hasSponsoredTransactionsEnabled } from "../../../../../core/utils/wallet.js";
|
16
|
+
import { ErrorState } from "../../../../wallets/shared/ErrorState.js";
|
16
17
|
import { LoadingScreen } from "../../../../wallets/shared/LoadingScreen.js";
|
17
18
|
import type { PayEmbedConnectOptions } from "../../../PayEmbed.js";
|
18
19
|
import { ChainIcon } from "../../../components/ChainIcon.js";
|
@@ -54,9 +55,19 @@ export function TransactionModeScreen(props: {
|
|
54
55
|
supportedDestinations,
|
55
56
|
onContinue,
|
56
57
|
} = props;
|
57
|
-
const {
|
58
|
+
const {
|
59
|
+
data: chainData,
|
60
|
+
error: chainDataError,
|
61
|
+
isLoading: chainDataLoading,
|
62
|
+
refetch: chainDataRefetch,
|
63
|
+
} = useChainMetadata(payUiOptions.transaction.chain);
|
58
64
|
const metadata = payUiOptions.metadata;
|
59
|
-
const {
|
65
|
+
const {
|
66
|
+
data: transactionCostAndData,
|
67
|
+
error: transactionCostAndDataError,
|
68
|
+
isLoading: transactionCostAndDataLoading,
|
69
|
+
refetch: transactionCostAndDataRefetch,
|
70
|
+
} = useTransactionCostAndData({
|
60
71
|
transaction: payUiOptions.transaction,
|
61
72
|
account: payerAccount,
|
62
73
|
supportedDestinations,
|
@@ -80,6 +91,36 @@ export function TransactionModeScreen(props: {
|
|
80
91
|
},
|
81
92
|
);
|
82
93
|
|
94
|
+
if (transactionCostAndDataLoading || chainDataLoading) {
|
95
|
+
return <LoadingScreen />;
|
96
|
+
}
|
97
|
+
|
98
|
+
if (transactionCostAndDataError || chainDataError) {
|
99
|
+
return (
|
100
|
+
<Container
|
101
|
+
style={{
|
102
|
+
minHeight: "350px",
|
103
|
+
}}
|
104
|
+
fullHeight
|
105
|
+
flex="row"
|
106
|
+
center="both"
|
107
|
+
>
|
108
|
+
<ErrorState
|
109
|
+
title={
|
110
|
+
transactionCostAndDataError?.message ||
|
111
|
+
chainDataError?.message ||
|
112
|
+
"Something went wrong"
|
113
|
+
}
|
114
|
+
onTryAgain={
|
115
|
+
transactionCostAndDataError
|
116
|
+
? transactionCostAndDataRefetch
|
117
|
+
: chainDataRefetch
|
118
|
+
}
|
119
|
+
/>
|
120
|
+
</Container>
|
121
|
+
);
|
122
|
+
}
|
123
|
+
|
83
124
|
if (!transactionCostAndData || !chainData) {
|
84
125
|
return <LoadingScreen />;
|
85
126
|
}
|
@@ -58,7 +58,7 @@ export function useTransactionCostAndData(args: {
|
|
58
58
|
],
|
59
59
|
queryFn: async () => {
|
60
60
|
if (!account) {
|
61
|
-
throw new Error("No account");
|
61
|
+
throw new Error("No payer account found");
|
62
62
|
}
|
63
63
|
|
64
64
|
const erc20Value = await resolvePromisedValue(transaction.erc20Value);
|
@@ -112,7 +112,6 @@ export function useTransactionCostAndData(args: {
|
|
112
112
|
getChainMetadata(transaction.chain),
|
113
113
|
getTransactionGasCost(transaction, account?.address),
|
114
114
|
]);
|
115
|
-
|
116
115
|
const walletBalance = nativeWalletBalance;
|
117
116
|
const transactionValueWei =
|
118
117
|
(await resolvePromisedValue(transaction.value)) || 0n;
|
@@ -129,7 +128,7 @@ export function useTransactionCostAndData(args: {
|
|
129
128
|
transactionValueWei,
|
130
129
|
} satisfies TransactionCostAndData;
|
131
130
|
},
|
132
|
-
enabled: !!transaction && !!
|
131
|
+
enabled: !!transaction && !!txQueryKey,
|
133
132
|
refetchInterval: () => {
|
134
133
|
if (transaction.erc20Value) {
|
135
134
|
// if erc20 value is set, we don't need to poll
|
package/src/version.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export const version = "5.69.
|
1
|
+
export const version = "5.69.1-nightly-f368793375d099eec53569330af7a083e558e483-20241120000334";
|
@@ -7,30 +7,21 @@ import type {
|
|
7
7
|
import { createInAppWallet } from "../core/wallet/in-app-core.js";
|
8
8
|
|
9
9
|
/**
|
10
|
-
* Creates an [Ecosystem Wallet](https://portal.thirdweb.com/connect/ecosystems/overview) based on various authentication methods.
|
11
|
-
*
|
12
|
-
* Available authentication methods:
|
13
|
-
* - Email
|
14
|
-
* - Phone
|
15
|
-
* - Passkey
|
16
|
-
* - Google
|
17
|
-
* - Apple
|
18
|
-
* - Facebook
|
19
|
-
* - Discord
|
20
|
-
* - LINE
|
21
|
-
* - X
|
22
|
-
* - Farcaster
|
10
|
+
* Creates an [Ecosystem Wallet](https://portal.thirdweb.com/connect/ecosystems/overview) based on various authentication methods. Full list of available authentication methods [here](/connect/wallet/sign-in-methods/overview).
|
23
11
|
*
|
24
12
|
* Can also be configured to use Account Abstraction to directly connect to a ERC4337 smart account based on those authentication methods.
|
25
13
|
*
|
26
|
-
* Refer to [inAppWallet](
|
14
|
+
* Refer to [inAppWallet](/typescript/v5/inAppWallet) for detailed usage examples.
|
27
15
|
*
|
28
16
|
* @param createOptions - configuration options
|
29
17
|
* Refer to [EcosystemWalletCreationOptions](https://portal.thirdweb.com/references/typescript/v5/EcosystemWalletCreationOptions) for more details.
|
30
18
|
* @returns The created ecosystem wallet.
|
19
|
+
*
|
20
|
+
*
|
31
21
|
* @example
|
22
|
+
* ### Logging into an ecosystem wallet
|
32
23
|
*
|
33
|
-
*
|
24
|
+
* Below is the general code snippet needed to connect via a given auth strategy to an ecosystem wallet. For more variants on the various auth strategies, refer to [inAppWallet](/typescript/v5/inAppWallet).
|
34
25
|
*
|
35
26
|
* ```ts
|
36
27
|
* import { ecosystemWallet } from "thirdweb/wallets";
|
@@ -44,7 +35,7 @@ import { createInAppWallet } from "../core/wallet/in-app-core.js";
|
|
44
35
|
* });
|
45
36
|
* ```
|
46
37
|
*
|
47
|
-
* [View all connection options](https://portal.thirdweb.com/references/typescript/v5/EcosystemWalletConnectionOptions)
|
38
|
+
* [View all connection options](https://portal.thirdweb.com/references/typescript/v5/EcosystemWalletConnectionOptions).
|
48
39
|
*
|
49
40
|
* ### Connect to a restricted ecosystem wallet with your designated partner ID
|
50
41
|
*
|
@@ -57,7 +48,6 @@ import { createInAppWallet } from "../core/wallet/in-app-core.js";
|
|
57
48
|
* });
|
58
49
|
* ```
|
59
50
|
*
|
60
|
-
* Refer to [inAppWallet](https://portal.thirdweb.com/references/typescript/v5/inAppWallet) for more usage examples.
|
61
51
|
*
|
62
52
|
* @wallet
|
63
53
|
*/
|
@@ -4,22 +4,7 @@ import type { CreateWalletArgs } from "../../wallet-types.js";
|
|
4
4
|
import { createInAppWallet } from "../core/wallet/in-app-core.js";
|
5
5
|
|
6
6
|
/**
|
7
|
-
* Creates an app scoped wallet for users based on various authentication methods.
|
8
|
-
*
|
9
|
-
* Available authentication methods:
|
10
|
-
* - Email
|
11
|
-
* - Phone
|
12
|
-
* - Passkey
|
13
|
-
* - Guest
|
14
|
-
* - Google
|
15
|
-
* - Apple
|
16
|
-
* - Facebook
|
17
|
-
* - Discord
|
18
|
-
* - Coinbase
|
19
|
-
* - Telegram
|
20
|
-
* - LINE
|
21
|
-
* - X
|
22
|
-
* - Farcaster
|
7
|
+
* 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/overview).
|
23
8
|
*
|
24
9
|
* Can also be configured to use Account Abstraction to directly connect to a ERC4337 smart account based on those authentication methods.
|
25
10
|
*
|
@@ -42,7 +27,7 @@ import { createInAppWallet } from "../core/wallet/in-app-core.js";
|
|
42
27
|
* });
|
43
28
|
* ```
|
44
29
|
*
|
45
|
-
* [View all available social auth methods](https://portal.thirdweb.com/
|
30
|
+
* [View all available social auth methods](https://portal.thirdweb.com/connect/wallet/sign-in-methods/overview)
|
46
31
|
*
|
47
32
|
* ### Login with email
|
48
33
|
*
|
@@ -194,6 +194,7 @@ export async function authenticateWithRedirect(
|
|
194
194
|
* ```ts
|
195
195
|
* import { linkProfile } from "thirdweb/wallets";
|
196
196
|
*
|
197
|
+
* // optionally specify the ecosystem if you're linking an ecosystem wallet
|
197
198
|
* await linkProfile({ client, strategy: "discord" });
|
198
199
|
* ```
|
199
200
|
* @wallet
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { client } from "@passwordless-id/webauthn";
|
1
|
+
import { client, parsers } from "@passwordless-id/webauthn";
|
2
2
|
import type { ThirdwebClient } from "../../../../../client/client.js";
|
3
3
|
import { webLocalStorage } from "../../../../../utils/storage/webStorage.js";
|
4
4
|
import {
|
@@ -25,22 +25,26 @@ export class PasskeyWebClient implements PasskeyClient {
|
|
25
25
|
rp: RpInfo;
|
26
26
|
}): Promise<RegisterResult> {
|
27
27
|
const { name, challenge, rp } = args;
|
28
|
-
const registration = await client.register(
|
29
|
-
|
28
|
+
const registration = await client.register({
|
29
|
+
user: name,
|
30
|
+
challenge,
|
30
31
|
userVerification: "required",
|
31
32
|
domain: rp.id,
|
32
33
|
attestation: true,
|
33
|
-
debug: false,
|
34
34
|
});
|
35
|
-
const clientDataB64 = base64UrlToBase64(
|
35
|
+
const clientDataB64 = base64UrlToBase64(
|
36
|
+
registration.response.clientDataJSON,
|
37
|
+
);
|
36
38
|
const clientDataParsed = JSON.parse(base64ToString(clientDataB64));
|
37
39
|
return {
|
38
|
-
authenticatorData: registration.authenticatorData,
|
39
|
-
credentialId: registration.
|
40
|
-
clientData: registration.
|
40
|
+
authenticatorData: registration.response.authenticatorData,
|
41
|
+
credentialId: registration.id,
|
42
|
+
clientData: registration.response.clientDataJSON,
|
41
43
|
credential: {
|
42
|
-
publicKey: registration.
|
43
|
-
algorithm:
|
44
|
+
publicKey: registration.response.publicKey,
|
45
|
+
algorithm: parsers.getAlgoName(
|
46
|
+
registration.response.publicKeyAlgorithm,
|
47
|
+
),
|
44
48
|
},
|
45
49
|
origin: clientDataParsed.origin,
|
46
50
|
};
|
@@ -52,22 +56,19 @@ export class PasskeyWebClient implements PasskeyClient {
|
|
52
56
|
rp: RpInfo;
|
53
57
|
}): Promise<AuthenticateResult> {
|
54
58
|
const { credentialId, challenge, rp } = args;
|
55
|
-
const result = await client.authenticate(
|
56
|
-
credentialId ? [credentialId] : [],
|
59
|
+
const result = await client.authenticate({
|
60
|
+
allowCredentials: credentialId ? [credentialId] : [],
|
57
61
|
challenge,
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
},
|
63
|
-
);
|
64
|
-
const clientDataB64 = base64UrlToBase64(result.clientData);
|
62
|
+
userVerification: "required",
|
63
|
+
domain: rp.id,
|
64
|
+
});
|
65
|
+
const clientDataB64 = base64UrlToBase64(result.response.clientDataJSON);
|
65
66
|
const clientDataParsed = JSON.parse(base64ToString(clientDataB64));
|
66
67
|
return {
|
67
|
-
authenticatorData: result.authenticatorData,
|
68
|
-
credentialId: result.
|
69
|
-
clientData: result.
|
70
|
-
signature: result.signature,
|
68
|
+
authenticatorData: result.response.authenticatorData,
|
69
|
+
credentialId: result.id,
|
70
|
+
clientData: result.response.clientDataJSON,
|
71
|
+
signature: result.response.signature,
|
71
72
|
origin: clientDataParsed.origin,
|
72
73
|
};
|
73
74
|
}
|