Compare commits

...
Author SHA1 Message Date
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>
5781dac184 Version Packages (#2751)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-11 13:50:17 -07:00
db05717803 feat: 1155 extensions (#2744)
Co-authored-by: Jonas Daniels <[email protected]>
2024-04-11 13:15:02 -07:00
Joaquim VergesandGitHub cb2a7e964a [v4] Alias embeddedWallet to inAppWallet (#2745) 2024-04-11 18:51:13 +00:00
07f98a5b92 feat: Update Swap UI in ConnectButton (#2759)
Co-authored-by: Jonas Daniels <[email protected]>
2024-04-11 17:33:00 +00:00
Manan TankandGitHub 007770cd63 feat: add alias for inApp wallet, show ENS in Connect (#2748) 2024-04-11 16:47:39 +00:00
Manan TankandGitHub a92311a53d [v4] Fix window popup blocked for social login in iOS Safari when using useEmbeddedWallet hook (#2758) 2024-04-11 16:25:28 +00:00
Jonas DanielsandGitHub e6b5d9cc5d fix: ens avatar resolution (#2756) 2024-04-11 15:28:34 +00:00
Jonas DanielsandGitHub c4d51e0b80 refactor: Update optional properties input in schema (#2754) 2024-04-10 22:26:23 -07:00
github-actions[bot]GitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
259ff7c07c chore(chains): update chains (#2753)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-10 21:42:22 -07:00
Jonas DanielsandGitHub 39c6fbc552 feat(extensions): add generated is<Ext>Supported and encode<Ext> calls, add concatHex util fn (#2752) 2024-04-10 17:14:16 -07:00
9453f74bbf Custom gas settings for any evm deployments (#2678)
Co-authored-by: Jonas Daniels <[email protected]>
2024-04-10 17:13:21 -07:00
github-actions[bot]GitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
bf6a8e0cab chore(chains): update chains (#2746)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-10 17:12:37 -07:00
Jonas DanielsandGitHub eb919ed49d implement extensions for royalty, platformfee and primarysale (#2749) 2024-04-10 22:04:15 +00:00
Jonas DanielsandGitHub 4d7ecc24b7 add the ability to define async value overrides in contract call (#2747) 2024-04-10 19:44:24 +00:00
Jonas DanielsandGitHub 758cbdde0a Version Packages (#2743) 2024-04-10 08:44:09 -07:00
github-actions[bot]andGitHub d65713a7af chore(chains): update chains (#2740) 2024-04-10 08:32:45 -07:00
ce144ff521 [SDK] Add test cases for sign-transaction types (#2737)
Co-authored-by: Jonas Daniels <[email protected]>
2024-04-09 23:32:50 +00:00
d836889f46 [v4] Add Buy with Crypto APIs and UI in ConnectWallet component (#2579)
Signed-off-by: Jonas Daniels <[email protected]>
Co-authored-by: Jonas Daniels <[email protected]>
Co-authored-by: Manan Tank <[email protected]>
2024-04-09 23:07:32 +00:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>GitHub Action
1f6ee22fb9 Version Packages (#2742)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-04-09 12:28:38 -07:00
Manan TankandGitHub 900e7d0324 fix: Remove duplicated entry for MetaMask in MM browser (#2741) 2024-04-09 19:06:00 +00:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>GitHub Action
031eccbab1 Version Packages (#2713)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-04-09 02:23:28 -07:00
github-actions[bot]GitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
9e8cca2da5 chore(chains): update chains (#2739)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-09 02:03:38 -07:00
FirekeeperandGitHub 8d81b686f2 Unity 4.10.1 (#2733) 2024-04-09 08:57:23 +00:00
Jonas DanielsandGitHub d9cd6f5c2a implement additional extensions (#2735) 2024-04-09 08:51:13 +00:00
github-actions[bot]GitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2a5c7d0ebc chore(chains): update chains (#2734)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-09 01:03:26 -07:00
gregandGitHub 3847617f8e [SDK] fromGwei helper function (#2736) 2024-04-08 23:18:07 -07:00
Jonas DanielsandGitHub 1d4fdd6753 feat: Add chain Metadata type (#2731) 2024-04-08 16:42:03 -07:00
github-actions[bot]GitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
c98112445c chore(chains): update chains (#2732)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-08 16:32:15 -07:00
f6a30c0371 feat: add phone login for embedded wallet (#2366)
Co-authored-by: Jonas Daniels <[email protected]>
Co-authored-by: Manan Tank <[email protected]>
2024-04-08 23:08:43 +00:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
b1013fc302 build(deps-dev): bump knip from 5.8.0 to 5.9.1 (#2720)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-08 15:30:24 -07:00
github-actions[bot]GitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
f2b5d4ba56 chore(chains): update chains (#2730)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-08 15:30:03 -07:00
Joaquim VergesandGitHub 6961e09a4c [SDK] simulate inner transactions before bundling user ops (#2714) 2024-04-08 21:48:44 +00:00
github-actions[bot]GitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
49354c6cc3 chore(chains): update chains (#2727)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-08 14:07:17 -07:00
Jonas DanielsandGitHub 51502596d9 chore: remove unused dependency (#2726) 2024-04-08 20:54:19 +00:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>Jonas Daniels
df5eba9aff build(deps): bump octokit/request-action from 2.2.0 to 2.3.0 (#2715)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jonas Daniels <[email protected]>
2024-04-08 13:25:53 -07:00
Jonas DanielsandGitHub 64c03ab378 chore: Update .gitignore and add VSCode configuration files (#2716) 2024-04-08 13:18:12 -07:00
github-actions[bot]GitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
53e56f4bf8 chore(chains): update chains (#2708)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-08 13:05:45 -07:00
Jonas DanielsandGitHub 02583f857e fix(rpc): Fix issue with block number polling (#2712) 2024-04-08 19:45:47 +00:00
14cecc9c75 feat: expose useSendBatchTransaction for smart accounts (#2711)
Signed-off-by: Jonas Daniels <[email protected]>
Co-authored-by: Jonas Daniels <[email protected]>
2024-04-08 18:54:55 +00:00
Joaquim VergesandGitHub 30e6385dea chore: remove log (#2710) 2024-04-08 17:15:40 +02:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>GitHub Action
37c3224a78 Version Packages (#2705)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-04-07 16:30:37 -07:00
github-actions[bot]GitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
ebdfb571c9 chore(chains): update chains (#2707)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-07 13:58:06 -07:00
github-actions[bot]GitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>Jonas Daniels
48c1d60382 chore(chains): update chains (#2702)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jonas Daniels <[email protected]>
2024-04-07 19:26:20 +00:00
Jonas DanielsandGitHub 584d68e6f6 fix: update test command in package.json files (#2706) 2024-04-07 12:10:06 -07:00
Jonas DanielsandGitHub 703cb6ae3c chore: update dependencies (#2701) 2024-04-07 10:09:20 -07:00
7a9a086cdc Export ERC721 event: TokensLazyMintedEvent (#2704)
Signed-off-by: Jonas Daniels <[email protected]>
Co-authored-by: Kien Ngo <[email protected]>
Co-authored-by: Jonas Daniels <[email protected]>
2024-04-07 16:05:16 +00:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>GitHub Action
90571a0a5c Version Packages (#2680)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-04-06 08:50:49 -07:00
Jonas DanielsandGitHub f709f136a7 feat(extensions/ens): add support for more ens features (#2700) 2024-04-06 02:33:42 +00:00
c2eba49112 refactor: rename embeddedWallet to inAppWallet (#2697)
Co-authored-by: Jonas Daniels <[email protected]>
2024-04-06 02:13:57 +00:00
github-actions[bot]GitHubgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
0ebd2204a6 chore(chains): update chains (#2699)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-05 15:30:26 -07:00
6c64102314 chore(chains): update chains (#2696)
Co-authored-by: GitHub Action <[email protected]>
Co-authored-by: Jonas Daniels <[email protected]>
2024-04-05 11:11:33 -07:00
Jonas DanielsandGitHub b583ebb7df chore(chains): sync from db (#2698) 2024-04-05 11:02:00 -07:00
fda0c1d01b chore(chains): update chains (#2694)
Co-authored-by: GitHub Action <[email protected]>
2024-04-05 04:13:13 -07:00
Jonas DanielsandGitHub 5dd4ff1b38 feat: Update dependencies and size limitThe commit updates dependenci… (#2695) 2024-04-05 04:12:53 -07:00
97556c4d5d chore(chains): update chains (#2692)
Co-authored-by: GitHub Action <[email protected]>
Co-authored-by: Jonas Daniels <[email protected]>
2024-04-05 03:18:14 -07:00
Jonas DanielsandGitHub 5be3c22df6 Update README.md (#2693)
Signed-off-by: Jonas Daniels <[email protected]>
2024-04-05 03:15:48 -07:00
Jonas DanielsandGitHub 740a675a40 feat(extensions): add initial marketplace extensions (#2689) 2024-04-05 03:09:37 -07:00
5f41412027 chore(chains): update chains (#2690)
Co-authored-by: GitHub Action <[email protected]>
2024-04-05 02:30:29 -07:00
87cf5de8e8 chore(chains): update chains (#2688)
Co-authored-by: GitHub Action <[email protected]>
2024-04-04 18:16:37 -07:00
FirekeeperandGitHub 4e19c2f1be Unity 4.10.0 - Phone EWS, Native Only (#2687) 2024-04-05 00:41:56 +00:00
0e479e2082 fix: Added 50k overhead to userOps estimation (#2677)
Co-authored-by: Joaquim Verges <[email protected]>
2024-04-05 00:20:53 +00:00
c38584825f chore(chains): update chains (#2685)
Co-authored-by: GitHub Action <[email protected]>
2024-04-04 13:03:16 -07:00
Manan TankandGitHub b3d01402dd [v4 wallets] Start new session for walletConnect on connect method call (#2683) 2024-04-04 19:18:42 +00:00
Manan TankandGitHub a2423cac70 feat: Add modalSize prop on ConnectEmbed (#2686) 2024-04-04 18:53:45 +00:00
e5e3347c3e chore(chains): update chains (#2682)
Co-authored-by: GitHub Action <[email protected]>
2024-04-04 09:30:46 -07:00
Manan TankandGitHub 4504a8d170 [test] Fix sourcemap warnings in CRA (#2684) 2024-04-04 16:18:26 +00:00
github-actions[bot]andGitHub e9309bfc70 chore(chains): update chains (#2681) 2024-04-03 22:01:14 -07:00
github-actions[bot]andGitHub 83ecf67c4b chore(chains): update chains (#2676) 2024-04-03 21:34:54 -07:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>GitHub Action
57b1f5839d Version Packages (#2669)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-04-04 00:48:19 +02:00
Joaquim VergesandGitHub 97a31f57ce feat: add useSendAndConfirmTransaction hook (#2674) 2024-04-03 19:17:14 +00:00
github-actions[bot]andGitHub 319435a331 chore(chains): update chains (#2673) 2024-04-03 12:19:41 -07:00
69ee97981c chore: add more adapter tests (#2672)
Co-authored-by: Jonas Daniels <[email protected]>
2024-04-03 18:35:36 +00:00
44d96309d5 feat: Add provider and signTypedData to ethers5 signer adapter (#2667)
Co-authored-by: Jonas Daniels <[email protected]>
2024-04-03 18:09:54 +00:00
367576ca00 feat: always use new session when calling connect method for WC (#2637)
Co-authored-by: Jonas Daniels <[email protected]>
2024-04-03 17:51:31 +00:00
Jonas DanielsandGitHub 6fc9afa58f test: Update contract deployment tests (#2671) 2024-04-03 17:40:47 +00:00
b4a71d5d5b chore(chains): update chains (#2670)
Co-authored-by: GitHub Action <[email protected]>
2024-04-03 10:03:33 -07:00
127c476cff Fix getAddresses call for accounts converted to viem (#2666)
Co-authored-by: Jonas Daniels <[email protected]>
2024-04-03 09:14:00 -07:00
b3fca9509f chore(chains): update chains (#2668)
Co-authored-by: GitHub Action <[email protected]>
2024-04-03 09:02:15 -07:00
Jonas DanielsandGitHub 2108af7cf3 Version Packages (#2633) 2024-04-02 22:58:28 -07:00
Jonas DanielsandGitHub e4d243ef34 fix(adapters): sendTransaction within viemAdapter.walletClient.toViem() (#2662) 2024-04-02 19:41:42 -07:00
Jonas DanielsandGitHub 421ffa024c chore: Add job name for build step (#2665) 2024-04-02 19:38:04 -07:00
Jonas DanielsandGitHub 286b9f1e0b build: Add build:packages and build:legacy_packages scripts (#2664) 2024-04-02 19:32:57 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
46e880d9e2 build(deps): bump expo-file-system from 15.9.0 to 16.0.8 (#2658)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-03 02:28:04 +00:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
7116ae0ce6 build(deps): bump @google-cloud/kms from 3.0.1 to 4.2.0 (#2653)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-03 02:27:56 +00:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1042b5538a build(deps-dev): bump @tanstack/eslint-plugin-query from 5.28.6 to 5.28.11 (#2654)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-03 02:13:09 +00:00
Jonas DanielsandGitHub 9d319f462c chore: Update lint script in package.json (#2663) 2024-04-02 18:48:06 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
ed19f73fae build(deps): bump @typescript-eslint/eslint-plugin from 7.4.0 to 7.5.0 (#2650)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-02 18:42:50 -07:00
8718354e69 chore(chains): update chains (#2640)
Co-authored-by: GitHub Action <[email protected]>
Co-authored-by: Jonas Daniels <[email protected]>
2024-04-03 00:23:19 +00:00
Jonas DanielsandGitHub 945ea1d9ad chore(CI/tests): update workflows (#2660) 2024-04-02 17:12:27 -07:00
Jonas DanielsandGitHub 02c8d51b84 chore(CI): Update CI configuration for packages and legacy packages (#2659) 2024-04-02 16:36:41 -07:00
Jonas DanielsandGitHub 47f7b4df39 test: run "Account Permissions" only if TW_SECRET_KEY is defined (#2657) 2024-04-02 16:32:22 -07:00
Jonas DanielsandGitHub 891fde539d chore: Update linting script (#2656) 2024-04-02 16:21:47 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
9666940fed build(deps): bump peter-evans/create-pull-request from 3 to 6 (#2648)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-02 16:18:16 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
b7b5ad2c11 build(deps): bump octokit/request-action from 2.1.0 to 2.2.0 (#2647)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-02 16:14:53 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5de549c5d2 build(deps): bump actions/checkout from 2 to 4 (#2646)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-02 16:14:32 -07:00
Jonas DanielsandGitHub 1de78fb2f3 chore(ci): Add concurrency control to CI workflow (#2644) 2024-04-02 16:13:32 -07:00
Jonas DanielsandGitHub 603ea56c54 chore: Remove legacy e2e tests workflow (#2643) 2024-04-02 15:35:57 -07:00
Jonas DanielsandGitHub 7365634c0a chore: Update CI configuration (#2642) 2024-04-02 15:33:42 -07:00
Jonas DanielsandGitHub b76d89dbb2 chore(workflows): cleanup workflows (#2641) 2024-04-02 15:16:37 -07:00
Jonas DanielsandGitHub de7f7d701c update workflows (#2639) 2024-04-02 14:58:54 -07:00
32fa0c6aa8 chore(chains): update chains (#2638)
Co-authored-by: GitHub Action <[email protected]>
2024-04-02 14:10:32 -07:00
Joaquim VergesandGitHub c508751f38 refactor: optimize encode with async params (#2636) 2024-04-02 20:52:49 +00:00
fbf4556d48 chore(chains): update chains (#2635)
Co-authored-by: GitHub Action <[email protected]>
2024-04-02 13:53:06 -07:00
FirekeeperandGitHub c9f290a1d4 Unity 4.9.1 (#2634) 2024-04-02 17:54:19 +00:00
5fb92c0a98 chore(chains): update chains (#2630)
Co-authored-by: GitHub Action <[email protected]>
2024-04-02 09:56:18 -07:00
9af8561284 [SDK] ZkSync deterministic deployments (#2592)
Signed-off-by: Yash <[email protected]>
Co-authored-by: Jonas Daniels <[email protected]>
2024-04-02 16:45:05 +00:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>GitHub Action
2e12c769f9 Version Packages (#2600)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-04-02 18:18:07 +02:00
Manan TankandGitHub d89f009f14 feat: Wallet connection improvements (#2632) 2024-04-02 16:04:34 +00:00
Joaquim VergesandGitHub 1c29556f14 refactor: get userOp gas prices from bundler (#2631) 2024-04-02 15:15:01 +00:00
15697ae741 chore(chains): update chains (#2629)
Co-authored-by: GitHub Action <[email protected]>
2024-04-02 02:01:58 -07:00
Jonas DanielsandGitHub d2ffb82071 refactor: Update import statement for AutoConnect in ConnectWallet.tsx (#2628) 2024-04-02 00:58:10 -07:00
Jonas DanielsandGitHub e8063936c9 fix(WalletConnectConnection): fix wallet connect uri parsing (#2626) 2024-04-01 22:38:20 -07:00
0394eb22bf feat: add ERC4337 account / factory extensions (#2606)
Co-authored-by: Jonas Daniels <[email protected]>
2024-04-02 01:38:38 +00:00
+2 7234e6bc10 [SDK] Native privateKeyAccount implementation (#2525)
Signed-off-by: Joaquim Verges <[email protected]>
Signed-off-by: jxom  <[email protected]>
Signed-off-by: greg <[email protected]>
Signed-off-by: Jonas Daniels <[email protected]>
Co-authored-by: Jonas Daniels <[email protected]>
Co-authored-by: GitHub Action <[email protected]>
Co-authored-by: Joaquim Verges <[email protected]>
Co-authored-by: Manan Tank <[email protected]>
Co-authored-by: jxom <[email protected]>
Co-authored-by: Nacho Iacovino <[email protected]>
Co-authored-by: Winston Yeo <[email protected]>
Co-authored-by: iketw <[email protected]>
Co-authored-by: Winston Yeo <[email protected]>
Co-authored-by: Isaac Dubuque <[email protected]>
2024-04-01 18:27:35 -07:00
Jonas DanielsandGitHub 26a50b1e05 chore: update depdendencies (#2623) 2024-04-01 15:41:52 -07:00
Joaquim VergesandGitHub 00be583b89 chore(v4): get gas price from bundler for userOps (#2622) 2024-04-01 22:19:38 +00:00
Jonas DanielsandGitHub 8c9def769c feat: add turbo build and update-version commands to release script (#2621) 2024-04-01 13:47:06 -07:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>Jonas Daniels
213f313034 build(deps): bump viem from 2.9.5 to 2.9.6 (#2610)
Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Jonas Daniels <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jonas Daniels <[email protected]>
2024-04-01 13:22:41 -07:00
3aaad1e9bf [SDK] generateWallet utility function (#2602)
Co-authored-by: Jonas Daniels <[email protected]>
2024-04-01 09:59:01 -07:00
55848db4ea chore(chains): update chains (#2605)
Co-authored-by: GitHub Action <[email protected]>
2024-04-01 09:58:37 -07:00
Jonas DanielsandGitHub 0c83897f62 test: add erc20 approve test (#2596) 2024-03-30 18:12:12 -07:00
Jonas DanielsandGitHub b6a6eae3cc chore(tests): skip tests that will fail without secret key set (#2604) 2024-03-30 16:58:28 -07:00
f7b45fa04e chore(chains): update chains (#2601)
Co-authored-by: GitHub Action <[email protected]>
2024-03-30 16:57:35 -07:00
82e5f53bc4 chore(chains): update chains (#2597)
Co-authored-by: GitHub Action <[email protected]>
2024-03-30 06:34:10 -07:00
Joaquim VergesandGitHub 13c3083ac4 Update README.md (#2599)
Signed-off-by: Joaquim Verges <[email protected]>
2024-03-29 21:12:36 -07:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>GitHub Action
755cffe590 Version Packages (#2589)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-03-29 16:17:16 -07:00
Manan TankandGitHub dd1141f9af fix: Do not open wallet uri when connected using official WC modal (#2595) 2024-03-29 23:00:55 +00:00
Joaquim VergesandGitHub 968fdc3ebe chore: add smart wallet exports for user op types (#2594) 2024-03-29 22:29:21 +00:00
2ef20589b7 chore(chains): update chains (#2593)
Co-authored-by: GitHub Action <[email protected]>
2024-03-29 15:07:03 -07:00
Manan TankandGitHub 6d63920c0a feat: add walletConnect, Fix WC connection issues (#2591) 2024-03-29 21:58:03 +00:00
3ef378659e chore(chains): update chains (#2590)
Co-authored-by: GitHub Action <[email protected]>
2024-03-29 14:24:29 -07:00
Joaquim VergesandGitHub eba8f1c198 fix: 721/1155 claimTo with custom currency (#2588) 2024-03-29 19:45:02 +00:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>GitHub Action
52f827e8f2 Version Packages (#2586)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-03-29 11:37:16 -07:00
Jonas DanielsandGitHub 6063f40f87 fix(cli): fix execution on windows and when prettier is not installed (#2587) 2024-03-29 18:16:38 +00:00
YashandGitHub 6bd1b82a58 [CLI] Publish and deploy updates for ZKSync (#2584) 2024-03-29 17:12:50 +00:00
Manan TankandGitHub 052892b396 [v5] Fix WC session request (#2585) 2024-03-29 17:09:06 +00:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>GitHub Action
3b12c5c926 Version Packages (#2574)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-03-29 03:59:31 -07:00
Jonas DanielsandGitHub 02d2377ca5 build: Update dependencies in package.json (#2582) 2024-03-29 03:44:43 -07:00
9545005908 chore(chains): update chains (#2581)
Co-authored-by: GitHub Action <[email protected]>
2024-03-29 03:43:37 -07:00
Jonas DanielsandGitHub d93286bc1f chore: Update devDependencies versions (#2577) 2024-03-29 10:29:33 +00:00
50e7dbaa9d chore(chains): update chains (#2580)
Co-authored-by: GitHub Action <[email protected]>
2024-03-28 21:05:46 -07:00
Joaquim VergesandGitHub 04961f0e9a feat: change getWalletBalance prop from account to address (#2576) 2024-03-28 23:45:15 +00:00
Jonas DanielsandGitHub 37f8433c7c chore: Skip benchmark step for merge groups (#2575) 2024-03-28 22:29:33 +00:00
Jonas DanielsandGitHub c81bb882c5 fix(evm): fix CWE-1333 (#2573) 2024-03-28 22:22:51 +00:00
Jonas DanielsandGitHub 701cd880df chore: point CLI backwards compatibility @latest instead of @beta (#2572) 2024-03-28 22:10:17 +00:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>GitHub Action
3f0a3124f3 Version Packages (#2551)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-03-28 14:51:33 -07:00
949032ee09 Fix jsDoc syntax highlighting for generated functions (#2571)
Co-authored-by: Jonas Daniels <[email protected]>
2024-03-28 20:25:05 +00:00
Jonas DanielsandGitHub 3c58d17aba refactor: Remove unnecessary dependencies and configurations (#2569) 2024-03-28 20:07:06 +00:00
07954bb20b [v5] types/jsdoc cleanup (#2570)
Signed-off-by: Manan Tank <[email protected]>
Co-authored-by: Jonas Daniels <[email protected]>
2024-03-28 19:41:29 +00:00
275af27a81 chore(chains): update chains (#2568)
Co-authored-by: GitHub Action <[email protected]>
2024-03-28 11:50:25 -07:00
YashandGitHub c63d9ea7ac Contract verification status update (#2566) 2024-03-28 17:23:10 +00:00
8518ea18a7 chore(chains): update chains (#2567)
Co-authored-by: GitHub Action <[email protected]>
2024-03-28 10:07:19 -07:00
Jonas DanielsandGitHub 18aaf5a1b8 chore: update references to packages across the repo (#2565) 2024-03-28 16:50:06 +00:00
Jonas DanielsandGitHub 9543a81d76 chore: Remove unnecessary changeset file (#2564) 2024-03-28 16:07:29 +00:00
13f00cf476 fix: fix imToken wallet issue (#2562)
Signed-off-by: Jonas Daniels <[email protected]>
Co-authored-by: Jonas Daniels <[email protected]>
2024-03-28 09:02:27 -07:00
Manan TankandGitHub 9e28754bb1 Add "All wallets" in connect ui (#2560) 2024-03-28 15:39:28 +00:00
github-actions[bot]andGitHub 095d227a13 chore(chains): update chains (#2559) 2024-03-28 08:39:38 -07:00
Manan TankandGitHub 889a1a08f5 smart wallet autoconnect and other fixes (#2558) 2024-03-28 09:48:41 +00:00
FirekeeperandGitHub 6d7eedc213 Unity 4.9.0 (#2556) 2024-03-28 02:59:41 +00:00
Jonas DanielsandGitHub bfdfb2ca38 chore(release): Update Workflows (#2555) 2024-03-28 02:16:28 +00:00
Joaquim VergesandGitHub 17c772e839 ERC721 signature mint (#2554) 2024-03-28 01:51:02 +00:00
Joaquim VergesandGitHub 73b5161a67 Update generate script to expose clean types (#2553) 2024-03-28 01:19:58 +00:00
Jonas DanielsandGitHub 95eb75ac77 chore: move legacy packages to legacy_packages (#2552) 2024-03-28 00:55:03 +00:00
+2 01fd5237f5 Beta (#2356)
Signed-off-by: Joaquim Verges <[email protected]>
Signed-off-by: jxom  <[email protected]>
Signed-off-by: greg <[email protected]>
Signed-off-by: Jonas Daniels <[email protected]>
Co-authored-by: GitHub Action <[email protected]>
Co-authored-by: Manan Tank <[email protected]>
Co-authored-by: Joaquim Verges <[email protected]>
Co-authored-by: jxom <[email protected]>
Co-authored-by: Nacho Iacovino <[email protected]>
Co-authored-by: greg <[email protected]>
Co-authored-by: Winston Yeo <[email protected]>
Co-authored-by: iketw <[email protected]>
Co-authored-by: Winston Yeo <[email protected]>
Co-authored-by: Isaac Dubuque <[email protected]>
2024-03-27 17:13:03 -07:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>GitHub Action
6fd7497c15 Version Packages (#2528)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-03-27 16:36:02 -07:00
25616ca794 chore(chains): update chains (#2549)
Co-authored-by: GitHub Action <[email protected]>
2024-03-27 15:25:49 -07:00
2a345172a3 chore(chains): update chains (#2546)
Co-authored-by: GitHub Action <[email protected]>
2024-03-27 02:59:43 -07:00
8cb002259a chore(chains): update chains (#2529)
Co-authored-by: GitHub Action <[email protected]>
2024-03-27 00:30:38 -07:00
YashandGitHub 436d9baba2 [SDK] Add external links field to publish metadata (#2545) 2024-03-26 20:53:58 +00:00
FirekeeperandGitHub e417f6ac64 move sw tests from mumbai to arb sep (#2537) 2024-03-25 19:34:01 +00:00
FirekeeperandGitHub 65ea87425c Unity 4.8.0 (#2532) 2024-03-22 23:29:51 +00:00
Phillip HoandGitHub 0aea03e418 chore: bump service-utils version (#2531) 2024-03-22 21:27:03 +00:00
Phillip HoandGitHub d8b488bbc9 chore: Simplify HTTP logs (#2530) 2024-03-22 20:27:41 +00:00
cb0ef6a6a2 chore(chains): update chains (#2527)
Co-authored-by: GitHub Action <[email protected]>
2024-03-21 10:22:12 -07:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>GitHub Action
c377290b27 Version Packages (#2524)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-03-20 18:40:57 -07:00
Nacho IacovinoandGitHub 35bddd69c5 Fix function for old js (#2523) 2024-03-21 01:14:26 +00:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>GitHub Action
34be385a5c Version Packages (#2522)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-03-20 12:29:23 -07:00
79c9e130fd [react, wallets] Add imToken Wallet (#2497)
Signed-off-by: Mako Shan <[email protected]>
Signed-off-by: Jonas Daniels <[email protected]>
Co-authored-by: xwartz <[email protected]>
Co-authored-by: Jonas Daniels <[email protected]>
2024-03-20 11:54:18 -07:00
9c884e2f55 [Unity] Expose additional WC QR Options (#2501)
Co-authored-by: Jonas Daniels <[email protected]>
2024-03-20 17:44:10 +00:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>GitHub Action
2e21b52b97 Version Packages (#2495)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-03-19 19:56:45 -07:00
Jonas DanielsandGitHub e3f44905ca chore: update dependencies and add new ABI file (#2517) 2024-03-20 01:40:10 +00:00
Jonas DanielsandGitHub c47927708a refactor(any-evm-constants): Simplify matchError function (#2514) 2024-03-20 00:17:22 +00:00
4c511f0310 chore(chains): update chains (#2507)
Co-authored-by: GitHub Action <[email protected]>
2024-03-19 17:14:05 -07:00
YashandGitHub b2728ec6f2 Update contracts version (#2509) 2024-03-19 21:47:59 +00:00
Jonas DanielsandGitHub 663759975d chore: update test utils with new RPC endpoints (#2503) 2024-03-19 18:12:00 +00:00
f1971ffe36 chore(chains): update chains (#2506)
Co-authored-by: GitHub Action <[email protected]>
2024-03-19 10:01:37 -07:00
8b134bbb55 chore(chains): update chains (#2500)
Co-authored-by: GitHub Action <[email protected]>
2024-03-19 10:00:21 -07:00
8a20aa5825 chore(chains): update chains (#2427)
Co-authored-by: GitHub Action <[email protected]>
2024-03-18 12:54:41 -07:00
FirekeeperandGitHub 112863ecce Unity 4.7.10 (#2498) 2024-03-18 14:48:47 +00:00
Jonas DanielsandGitHub 863049dc0c fix(sdk): dev deployments and bundleId=undefined query params (#2496) 2024-03-16 03:14:21 +00:00
Nacho IacovinoandGitHub 802ba8c5a9 Smart Wallet -> Smart Account (#2493) 2024-03-15 21:38:50 +00:00
FirekeeperandGitHub e36ebe2243 [Unity] Resolve & Reverse Resolve ENS WebGL (#2494) 2024-03-15 21:31:53 +00:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>GitHub Action
c52e3beac1 Version Packages (#2486)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-03-14 23:04:16 -07:00
Joaquim VergesandGitHub f0250a77cd [SDK] Revert min maxPriorityFeePerGas (#2490) 2024-03-15 05:08:55 +00:00
d4be6479db Added Domain Separator as an input for gasless (#2332)
Co-authored-by: Jonas Daniels <[email protected]>
2024-03-15 05:03:17 +00:00
YashandGitHub c67b287764 Contract verification on zksync (#2481) 2024-03-15 02:47:29 +00:00
7ac4e6ba4e Contracts version 3.11.1 (#2459)
Co-authored-by: Joaquim Verges <[email protected]>
2024-03-14 18:57:34 +00:00
Joaquim VergesandGitHub c494db87cb sync chains (#2484) 2024-03-14 08:01:38 +00:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>GitHub Action
1932d601c1 Version Packages (#2474)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-03-14 01:09:17 -07:00
Joaquim VergesandGitHub 846a3503fe [SDK] Enforce minimum for maxPriorityFeePerGas (#2483) 2024-03-14 07:44:14 +00:00
Jonas DanielsandGitHub 3e7f9cb946 feat(sdk): add support for overriding default admin (#2479) 2024-03-14 01:14:21 +00:00
iketwandGitHub 83526c519a Only pass bundleId if defined (#2472) 2024-03-13 20:13:11 +00:00
Joaquim VergesandGitHub 2e01627c99 [Chains] sync chains (#2464) 2024-03-13 19:11:06 +00:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>GitHub Action
7b52c6bba0 Version Packages (#2467)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-03-13 11:56:41 -07:00
Edward SunandGitHub e024d78ed0 Add pay to usageEventSchema (#2465) 2024-03-13 05:02:40 +00:00
Joaquim VergesandGitHub a2002d1637 [SDK] Better return type for getProofsForAllowListEntry (#2469) 2024-03-13 01:20:22 +00:00
FirekeeperandGitHub 607ab7e860 [Unity] Expose SW isDeployed (#2466) 2024-03-12 22:37:02 +00:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>GitHub Action
f27989741a Version Packages (#2461)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-03-12 12:55:05 -07:00
Joaquim VergesandGitHub b2be63ada4 handle l2 estimations when forcing gasLimit (#2457) 2024-03-12 19:37:02 +00:00
Winston YeoandGitHub eee200f8d4 chore: whitelist embedded-wallet.thirdweb.com in service utils (#2453) 2024-03-12 15:45:09 +00:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>
817ab2249f Version Packages (#2446)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-11 17:22:24 -07:00
Joaquim VergesandGitHub 173777ade4 [SDK] update OP SDK to fix pnpm preinstall script issue (#2455) 2024-03-11 23:53:16 +00:00
Manan TankandGitHub 838233075a [react] Fix onConnect called multiple times in EmbeddedWalletSocialLogin (#2447) 2024-03-11 19:03:32 +00:00
FirekeeperandGitHub cabfc29119 [Smart Wallet] Use bundler eth_getUserOperationReceipt instead of rpc eth_getLogs (#2443) 2024-03-11 17:12:35 +00:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>
f02570db88 Version Packages (#2442)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-08 16:56:41 -08:00
Joaquim VergesandGitHub c6b025e844 [SDK] handle estimateGasCost for OP chains (#2441) 2024-03-08 16:49:28 -08:00
Joaquim VergesandGitHub 332a14552b [Wallets] make accountInfo/factoryInfo internal props optional in SmartWalletConfig (#2439) 2024-03-09 00:45:04 +00:00
FirekeeperandGitHub c894270401 [Smart Wallet] try fetch sw abi if deployed (#2440) 2024-03-09 00:02:46 +00:00
Joaquim VergesandGitHub 595815dc3e Update README.md (#2438)
Signed-off-by: Joaquim Verges <[email protected]>
2024-03-08 12:42:35 -08:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>GitHub Action
b959cafccc Version Packages (#2435)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-03-08 09:21:46 -08:00
Edward SunandGitHub 4cf0aede0e Update service-utils change to patch (#2434) 2024-03-08 01:53:20 +00:00
Edward SunandGitHub 6cf298a29a Add pay to Services list (#2431) 2024-03-08 01:15:42 +00:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>GitHub Action
62b2508a6c Version Packages (#2420)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-03-07 13:57:31 -08:00
c3967b798e chore(chains): update chains (#2426)
Co-authored-by: GitHub Action <[email protected]>
2024-03-07 13:21:11 -08:00
588897d1b0 chore(chains): update chains (#2416)
Co-authored-by: GitHub Action <[email protected]>
2024-03-07 11:59:05 -08:00
862905e161 refactor: Move checkContractWalletSignature function to a separate file (#2417)
Co-authored-by: 0xFirekeeper <[email protected]>
2024-03-07 06:09:48 +00:00
saminaandGitHub 5f81e246f2 Update README.md (#2418)
Signed-off-by: samina <[email protected]>
2024-03-07 02:43:38 +00:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>GitHub Action
1b052d63e9 Version Packages (#2409)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-03-06 15:23:29 -08:00
FirekeeperandGitHub a3f6878649 [Unity] Remove unnecessary logs, add getEmail check (#2415) 2024-03-06 22:44:51 +00:00
Jonas DanielsandGitHub 74a92dcb7d feat(wallets): pass clientId and secretKey to verifySignature functions (#2414) 2024-03-06 22:20:10 +00:00
38fc0b796a chore(chains): update chains (#2412)
Co-authored-by: GitHub Action <[email protected]>
2024-03-06 13:07:04 -08:00
YashandGitHub ef76a96c2d [CLI] Option to link external libraries (#2400) 2024-03-06 18:45:04 +00:00
2667706d8d chore(chains): update chains (#2408)
Co-authored-by: GitHub Action <[email protected]>
2024-03-06 00:03:24 -08:00
047fbe2918 chore(chains): update chains (#2406)
Co-authored-by: GitHub Action <[email protected]>
2024-03-05 23:58:43 -08:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>
af01c63b45 Version Packages (#2384)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-05 20:54:31 -08:00
3796204372 chore(chains): update chains (#2402)
Co-authored-by: GitHub Action <[email protected]>
2024-03-05 20:48:29 -08:00
Joaquim VergesandGitHub 9c7fbc1603 [SDK] update NFT drop metadata (#2404) 2024-03-06 04:41:47 +00:00
iketwandGitHub 156950423b [RN] cap expo-app version for automatic installation (#2405) 2024-03-06 04:13:01 +00:00
FirekeeperandGitHub f80f6307a3 [Smart Wallet] ERC20Paymaster Generic Support (#2388) 2024-03-05 21:38:43 +00:00
5f243bba0d chore(chains): update chains (#2378)
Co-authored-by: GitHub Action <[email protected]>
2024-03-05 10:16:45 -08:00
Joaquim VergesandGitHub 7d8697ec3f [React] expose useUpdateNFTMetadata hook (#2382) 2024-03-04 19:41:31 +00:00
FirekeeperandGitHub ab44b8f0ae [Smart Wallet] Do not deploy to sign typed data, allow presigned deploy+session key (#2379) 2024-03-02 15:13:56 +00:00
ad135b67b9 add factory v2 unit test (#2357)
Co-authored-by: Jonas Daniels <[email protected]>
2024-03-01 12:52:31 +00:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>GitHub Action
5a648f7e74 Version Packages (#2377)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-02-29 16:17:22 -08:00
e87292ab60 chore(chains): update chains (#2372)
Co-authored-by: GitHub Action <[email protected]>
2024-02-29 15:09:34 -08:00
Manan TankandGitHub d5d7d542ce [react] Make OTPInput numeric ( EmbeddedWallet UI ) (#2376) 2024-02-29 22:11:51 +00:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>GitHub Action
bc694a1823 Version Packages (#2338)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-02-29 11:30:35 -08:00
Manan TankandGitHub 553f7fda47 [react] Remove unnecessary ConnectModal opening (#2375) 2024-02-29 19:13:01 +00:00
Manan TankandGitHub bc198e215e Use private for private members in classes instead of # (#2374) 2024-02-29 17:49:32 +00:00
73e34c083c [wallet, react] Add Magic Eden wallet (#2347)
Co-authored-by: Manan Tank <[email protected]>
Co-authored-by: Jonas Daniels <[email protected]>
2024-02-29 10:24:00 +00:00
cc22fa84e5 chore(chains): update chains (#2371)
Co-authored-by: GitHub Action <[email protected]>
2024-02-29 02:08:13 -08:00
58b9dbc17d chore(chains): update chains (#2368)
Co-authored-by: GitHub Action <[email protected]>
2024-02-28 21:18:28 -08:00
Joaquim VergesandGitHub 8d2811dd13 [SDK] handle updating metadata for ERC1155Token contracts (#2369) 2024-02-29 03:38:45 +00:00
YashandGitHub 7d74d30b9f [SDK] Resolve EIP7511 minimal proxy (#2362) 2024-02-28 23:25:12 +00:00
f3a0154b5a chore(chains): update chains (#2367)
Co-authored-by: GitHub Action <[email protected]>
2024-02-28 15:08:03 -08:00
Jonas DanielsandGitHub 10b71dd7a0 revert: 4d89dc1efa (#2364)
Signed-off-by: Jonas Daniels <[email protected]>
2024-02-28 20:21:54 +00:00
FirekeeperandGitHub 1ac06b9286 Unity 4.7.1 (#2363) 2024-02-28 19:51:11 +00:00
cff6ef2c97 [react] remove const enums (#2354)
Co-authored-by: Jonas Daniels <[email protected]>
2024-02-28 19:15:39 +00:00
574f180dde chore(chains): update chains (#2358)
Co-authored-by: GitHub Action <[email protected]>
2024-02-28 11:04:22 -08:00
YashandGitHub bac0c9b4a1 [SDK] Fix joinABI filtering (#2359) 2024-02-28 18:57:12 +00:00
a11f27be4e chore(chains): update chains (#2345)
Co-authored-by: GitHub Action <[email protected]>
2024-02-27 09:55:25 -08:00
FirekeeperandGitHub e7528af48f [Smart Wallet] Always force deploy on sign/auth, support 1271 (#2341) 2024-02-26 23:03:51 +00:00
Kien NgoandGitHub a50d3b04f6 [React] Update code snippet for XDEFI wallet (#2348) 2024-02-26 05:33:13 +00:00
fb5c185319 chore(chains): update chains (#2339)
Co-authored-by: GitHub Action <[email protected]>
2024-02-23 10:36:27 -08:00
Joaquim VergesandGitHub a00917cca4 [SDK] updateMetadata for edition drop contracts (#2343) 2024-02-22 18:18:22 +00:00
Jonas DanielsandGitHub 7bbf3e235e refactor(utils): update RPC URLs and remove unnecessary code (#2337) 2024-02-21 13:11:13 +00:00
abc0a53dc3 chore(chains): update chains (#2336)
Co-authored-by: GitHub Action <[email protected]>
2024-02-21 05:01:20 -08:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>GitHub Action
38ea61c649 Version Packages (#2293)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-02-21 04:36:32 -08:00
652275834e chore(chains): update chains (#2322)
Co-authored-by: GitHub Action <[email protected]>
2024-02-21 03:54:12 -08:00
Joaquim VergesandGitHub 64f05ad040 Doc Grouping (#2262) 2024-02-21 05:24:44 +00:00
Manan TankandGitHub b5337bcfc3 Add hideSendButton and hideReceiveButton props in ConnectWallet (#2331) 2024-02-20 08:56:48 +00:00
YashandGitHub 2348417114 [SDK] Custom gas for Xpla create2 factory deployment (#1529) 2024-02-19 21:15:43 +00:00
Manan TankandGitHub e6a2407ee5 Add ABI in useContract query key (#2311) 2024-02-19 15:50:33 +00:00
b2a493f748 chore(chains): update chains (#2314)
Co-authored-by: GitHub Action <[email protected]>
2024-02-16 15:57:07 -08:00
Jonas DanielsandGitHub 440f5f1b9e fix storage test (#2319) 2024-02-16 15:28:40 -08:00
Gerry SaporitoandGitHub 42d7510daf fix: respect usage limits (#2318) 2024-02-16 22:33:28 +00:00
Manan TankandGitHub 73a374aac2 [wallets] Ignore Rabby in MM injected provider detection (#2316) 2024-02-16 15:58:27 +00:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4bb65cf8be Bump @changesets/changelog-github from 0.4.8 to 0.5.0 (#2263)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-16 02:55:24 -08:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
7bcecc5628 Bump yaml from 2.3.1 to 2.3.4 (#2264)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-16 02:55:12 -08:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
e13b0d8cf3 Bump @types/crypto-js from 4.1.3 to 4.2.2 (#2265)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-16 02:54:55 -08:00
db50b2fcc5 chore(chains): update chains (#2310)
Co-authored-by: GitHub Action <[email protected]>
2024-02-15 23:33:10 -08:00
Manan TankandGitHub 23820b2771 [wallets, react] Update supported networks in Safe (#2309) 2024-02-15 18:22:28 +00:00
a4722053bd chore(chains): update chains (#2306)
Co-authored-by: GitHub Action <[email protected]>
2024-02-15 09:10:31 -08:00
FirekeeperandGitHub b33d13161c Unity 4.6.4 (#2307) 2024-02-14 19:13:47 +00:00
fa637c2e3c chore(chains): update chains (#2305)
Co-authored-by: GitHub Action <[email protected]>
2024-02-13 23:41:05 -08:00
Joaquim VergesandGitHub 3137e45bb8 [SDK] expose rpcBatchingOptions (#2294) 2024-02-14 00:32:02 +00:00
ed4ad8658e chore(chains): update chains (#2295)
Co-authored-by: GitHub Action <[email protected]>
2024-02-13 16:32:36 -08:00
Manan TankandGitHub 9e6b3e5764 ConnectWallet fixes and Improvements (#2303) 2024-02-13 15:46:51 +00:00
YashandGitHub 94a699caae Resolve implementation update (#2300) 2024-02-12 22:46:35 +00:00
Manan TankandGitHub ecd82b4619 [react] Fix usage of dashed props instead of camel case on SVG (#2299) 2024-02-12 14:52:17 +00:00
FirekeeperandGitHub c44d6f2f9d [Unity] Support Wallet.GetSignerAddress (#2298) 2024-02-12 14:07:03 +00:00
ca70cd3882 chore(chains): update chains (#2285)
Co-authored-by: GitHub Action <[email protected]>
2024-02-09 22:56:42 -08:00
Joaquim VergesandGitHub 0f9a7b2571 [SDK] Lower max RPC batch size (#2292) 2024-02-10 05:41:34 +00:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>GitHub Action
d33227ab2b Version Packages (#2282)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-02-09 17:37:26 -08:00
Joaquim VergesandGitHub 53786fc306 [SDK] memoize extensions (#2291) 2024-02-10 01:00:42 +00:00
Manan TankandGitHub f85806c067 Update EmbeddedWallet name in CW (#2290) 2024-02-09 22:40:40 +00:00
Manan TankandGitHub 0155adcea4 Show EmbeddedWallet UI as initial screen in CW (#2289) 2024-02-09 20:57:32 +00:00
Manan TankandGitHub 74d76ff580 Add "Powered By Thirdweb" Branding in CW (#2288) 2024-02-09 16:32:27 +00:00
farhanW3andGitHub 537e5e063d [Usage]: Usage Schema to have new field (#2287) 2024-02-09 00:47:33 +00:00
Isaac DubuqueandGitHub a86478bf24 add sdk support for engine relayer options (#2233) 2024-02-09 00:40:52 +00:00
Joaquim VergesandGitHub 09de55f13c [SDK] Export MerkleTree helper functions (#2286) 2024-02-08 22:43:13 +00:00
23d0e55308 chore(chains): update chains (#2280)
Co-authored-by: GitHub Action <[email protected]>
2024-02-08 09:44:22 -08:00
FirekeeperandGitHub 185093c185 Unity 4.6.2 (#2284) 2024-02-08 14:35:00 +00:00
farhanW3andGitHub 77400fcf21 Added new properties to usage (#2281) 2024-02-08 01:34:19 +00:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>GitHub Action
6a41fe9829 Version Packages (#2274)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-02-07 13:11:26 -08:00
0092e2a317 fix(auth): Next.js App Router handler return type (#2278)
Signed-off-by: Jonas Daniels <[email protected]>
Co-authored-by: Jonas Daniels <[email protected]>
2024-02-07 12:47:09 -08:00
87b9e6d42d chore(chains): update chains (#2279)
Co-authored-by: GitHub Action <[email protected]>
2024-02-07 10:29:29 -08:00
github-actions[bot]andGitHub 336dfd3b37 chore(chains): update chains (#2277) 2024-02-07 08:52:01 -08:00
957c75a36e chore(chains): update chains (#2276)
Co-authored-by: GitHub Action <[email protected]>
2024-02-06 22:27:49 -08:00
357886e31b chore(chains): update chains (#2258)
Co-authored-by: GitHub Action <[email protected]>
2024-02-06 15:46:46 -08:00
DustinandGitHub 330c270f3c Update .env.example (#2272) 2024-02-06 13:52:51 -08:00
Joaquim VergesandGitHub 9096bdc0f1 [ServiceUtils] Add latency prop to CF worker logs (#2273) 2024-02-06 21:44:43 +00:00
saminaandGitHub 62ef83c9e0 Update pull_request_template.md (#2267)
Signed-off-by: samina <[email protected]>
2024-02-06 18:15:54 +00:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>GitHub Action
1e7a7a5f3c Version Packages (#2261)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-02-06 09:36:14 -08:00
Manan TankandGitHub 433d49e3ab [react-core] keep wallet states in sync (#2270) 2024-02-06 17:18:46 +00:00
Joaquim VergesandGitHub 5a3f7fa123 [ServiceUtil] add latency prop to logHttpRequest (#2266) 2024-02-06 05:08:46 +00:00
FirekeeperandGitHub 3857cba8ab Unity v4.6.1 (#2268) 2024-02-06 01:57:02 +00:00
Manan TankandGitHub 6a3cacb622 [react] Enforce compact CW modal size based on available space (#2260) 2024-02-02 17:35:52 +00:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>
bdf60e9890 Version Packages (#2257)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-01 17:26:18 -08:00
1e50caeed1 chore(chains): update chains (#2255)
Co-authored-by: GitHub Action <[email protected]>
2024-02-01 17:21:42 -08:00
Jonas DanielsandGitHub 1decd52a36 fix(gas-price): handle flag-chain overrides (#2256) 2024-02-02 01:10:37 +00:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>GitHub Action
0b7010eccb Version Packages (#2249)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-02-01 15:52:14 -08:00
041c01341b chore(chains): update chains (#2250)
Co-authored-by: GitHub Action <[email protected]>
2024-02-01 15:09:04 -08:00
Manan TankandGitHub 439a377aa7 [react] add detailsModalFooter prop in ConnectWallet (#2252) 2024-02-01 21:53:21 +00:00
Nacho IacovinoandGitHub 4f52c29611 Update error message link (#2248) 2024-02-01 18:39:14 +00:00
374671fd9a chore(chains): update chains (#2247)
Co-authored-by: GitHub Action <[email protected]>
2024-01-31 21:25:01 -08:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>GitHub Action
0a9fc269ff Version Packages (#2246)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-01-31 16:59:43 -08:00
iketwandGitHub 2e3cc7cdd4 Adds support for RN 0.73 and removes magic (#2225) 2024-02-01 00:34:28 +00:00
3ba15366be [Analytics] Unify client analytics (#2224)
Co-authored-by: ikethirdweb <[email protected]>
2024-01-31 23:46:44 +00:00
771bd1e1b2 chore(chains): update chains (#2245)
Co-authored-by: GitHub Action <[email protected]>
2024-01-31 01:05:57 -08:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>GitHub Action
1baa98fba4 Version Packages (#2241)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-01-30 18:57:04 -08:00
39e79282ac chore(chains): update chains (#2243)
Co-authored-by: GitHub Action <[email protected]>
2024-01-30 17:40:17 -08:00
FirekeeperandGitHub 13d5b86ae5 sync-chains add step to create changeset (#2244) 2024-01-31 01:19:55 +00:00
FirekeeperandGitHub 8edb3f1b34 fix sync chains workflow (#2242) 2024-01-31 00:57:52 +00:00
Jonas DanielsandGitHub 69c3eb910f chore(chains): sync (#2240) 2024-01-31 00:17:44 +00:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
c8f881c2b9 Bump fastify from 4.24.2 to 4.25.2 (#2205)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-30 23:57:21 +00:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
71ac41adae Bump @typescript-eslint/parser from 6.2.0 to 6.19.1 (#2206)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-30 23:57:11 +00:00
Jonas DanielsandGitHub ddb2121c67 [docs] remove non-gz documentation json files (2/2) (#2239) 2024-01-30 23:52:17 +00:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>GitHub Action
558dc10a63 Version Packages (#2236)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-01-30 15:22:39 -08:00
Joaquim VergesandGitHub c9f1fd8fc2 update serviceUtils types (#2238) 2024-01-30 15:04:15 -08:00
Jonas DanielsandGitHub e75b48cfe9 [docs] GZIP docs 1 of 2 (#2237) 2024-01-30 22:28:43 +00:00
farhanW3andGitHub 173b3b2ad9 [Service-Utils] Usage Tracker Updates (#2235) 2024-01-30 20:02:23 +00:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>GitHub Action
654aaa2171 Version Packages (#2211)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-01-29 18:12:25 -08:00
Joaquim VergesandGitHub 627d209927 update chains (#2232) 2024-01-30 01:02:21 +00:00
iketwandGitHub 57320957aa [RN] Adds ability to delete the ews active account (#2199) 2024-01-29 21:36:40 +00:00
Joaquim VergesandGitHub 6fdade6c45 [ServiceUtils] Option to include policy checks (#2230) 2024-01-29 20:59:41 +00:00
6d25586d08 [react, wallets] Add XDEFI wallet (#2218)
Co-authored-by: Manan Tank <[email protected]>
2024-01-26 19:21:41 +00:00
Manan TankandGitHub 4d89dc1efa [wallets] Update Safe SDK (#2221) 2024-01-26 17:57:28 +00:00
FirekeeperandGitHub a5653f07f8 [Docs] Document deployOnSign (#2223) 2024-01-26 17:54:54 +00:00
Manan TankandGitHub 7f35caff5d [react, react-native] update defaultTokens used in ConnectWallet (#2217) 2024-01-26 16:47:12 +00:00
FirekeeperandGitHub bf90fa5005 [AA] Option to not deploy SW on sign message (#2222) 2024-01-26 01:06:15 +00:00
FirekeeperandGitHub 3d63a2cb69 [SDK] Add erc1155.transferBatch (#2220) 2024-01-26 00:02:40 +00:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>Manan Tank
466b1e75dc Bump @radix-ui/react-tooltip from 1.0.6 to 1.0.7 (#2204)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Manan Tank <[email protected]>
2024-01-25 22:39:43 +00:00
Manan TankandGitHub 3dfc003902 [react] Allow uppercase email address in ConnectWallet (#2219) 2024-01-25 21:39:30 +00:00
Joaquim VergesandGitHub b34737d27a [SDK] switch to LRU caches (#2215) 2024-01-25 20:24:26 +00:00
1a5d41cc8a feat(auth): Next.js App Router support (#2106)
Signed-off-by: Adam Majmudar <[email protected]>
Co-authored-by: Adam Majmudar <[email protected]>
2024-01-25 00:25:14 +00:00
Tair AsimandGitHub a5541a1c55 service-utils: update api key metadata (#2210) 2024-01-23 19:36:39 +00:00
Tair AsimandGitHub 13e389a63e service-utils: polish usage hit error code (#2200) 2024-01-23 17:06:30 +00:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>GitHub Action
6884815428 Version Packages (#2195)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-01-22 17:19:49 -08:00
Joaquim VergesandGitHub f29f91d7e0 [React] show embedded wallet free tier error msg in connect (#2209) 2024-01-23 00:54:30 +00:00
Manan TankandGitHub 212b2e7bc2 [react, react-native] ConnectWallet Details Modal UI, hide testnet faucet link by default (#2197) 2024-01-22 20:03:03 +00:00
iketwandGitHub 3f2ee85a1a chore: synced chains with db (#2203) 2024-01-22 18:56:10 +00:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
24450ed7ac Bump vite from 3.2.7 to 3.2.8 (#2201)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-22 16:13:32 +00:00
Kien NgoandGitHub ba978f55b0 [react-core] Update code sample for useTokenSupply (#2202) 2024-01-21 05:06:08 +00:00
iketwandGitHub 94e4dc9aab [RN] UI improvements (#2198) 2024-01-18 22:52:26 +00:00
Manan TankandGitHub 67656c7131 Add missing react-native in release-artifacts (#2196) 2024-01-17 23:57:58 +00:00
github-actions[bot]GitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>GitHub Action
dccb9ddd0e Version Packages (#2180)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-01-17 15:20:06 -08:00
Joaquim VergesandGitHub c3b264982d export sig minting classes for docs (#2194) 2024-01-17 23:14:26 +00:00
Manan TankandGitHub 0efd0f9d26 [react] add useSetWalletModalConfig hook (#2193) 2024-01-17 22:49:17 +00:00
Manan TankandGitHub 7af35a0133 only commit generated files in release-artifacts workflow (#2192) 2024-01-17 21:02:34 +00:00
Manan TankandGitHub 9caf201f24 Reorder commands in release-artifacts.yml (#2191) 2024-01-17 19:56:28 +00:00
Manan TankandGitHub ea7da5fb77 Refactor release-artifacts workflow (#2190) 2024-01-17 18:56:57 +00:00
89641e3378 [react] Add switchNetworkBtnTitle prop in ConnectWallet and Web3Button (#1884)
Co-authored-by: Manan Tank <[email protected]>
2024-01-17 16:36:39 +00:00
Manan TankandGitHub dcb6afa148 Fix release-artifacts workflow (#2189) 2024-01-17 15:38:37 +00:00
iketwandGitHub 324330d354 [RN] Exports ConnectEmbed as a standalone component (#2185) 2024-01-17 15:14:19 +00:00
Manan TankandGitHub 056643ad83 Fix error in typedoc and snippets workflows (#2188) 2024-01-17 14:39:43 +00:00
Gerry SaporitoandGitHub e21f7bb171 chore: synced chains with db (#2187) 2024-01-17 03:50:19 +00:00
Manan TankandGitHub 148e6a9166 Add bun setup in release-artifacts workflow to fix setup job (#2184) 2024-01-16 21:53:33 +00:00
YashandGitHub 9a23de2be0 [SDK] ZkSync Sepolia Addresses (#2183) 2024-01-16 21:32:46 +00:00
Manan TankandGitHub c377e868ed Fix Docs and Release workflows (#2179) 2024-01-16 21:21:50 +00:00
iketwandGitHub c4f1309dcd [RN] Reports react-native only (#2182) 2024-01-16 20:34:25 +00:00
Manan TankandGitHub 2e057827e3 [react] Remove unused deps (#2181) 2024-01-16 14:53:44 +00:00
YashandGitHub 9e1455294a Add: Example for useOwnedNFTs hook for queryParams (#2170) 2024-01-16 14:35:30 +00:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>Manan Tank
e11e645c74 Bump fuse.js from 6.6.2 to 7.0.0 (#2177)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Manan Tank <[email protected]>
2024-01-16 14:35:12 +00:00
github-actions[bot]GitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>
d2322fc404 Version Packages (#2166)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-12 13:47:41 -08:00
Manan TankandGitHub e249a56892 [react] Add onConnect prop on ConnectWallet and ConnectEmbed, JSDoc improvements (#2169) 2024-01-12 21:16:42 +00:00
iketwandGitHub 7a74bd9c8a [RN] Upgrade min RN version requirenment to 0.71 and mmkv to 2.11.0 (#2165) 2024-01-12 01:44:22 +00:00
Joaquim VergesandGitHub f6599fdc8b build before snippet generation (#2164) 2024-01-12 00:39:48 +00:00
github-actions[bot]GitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>
ed1a3e06a8 Version Packages (#2142)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-11 15:45:10 -08:00
Joaquim VergesandGitHub 4a822298dd [Docs] update CI job for doc generation (#2163) 2024-01-11 15:36:23 -08:00
iketwandGitHub 90a2f2d435 [RN] Implement signedData for LocalWallet (#2162) 2024-01-11 22:41:15 +00:00
Joaquim VergesandGitHub 43dcc14568 fix tsconfig to compile wallet tests (#2161) 2024-01-11 20:51:34 +00:00
iketwandGitHub a11b1d49bd [RN] Updated WalletConnectUI with new arch (#2160) 2024-01-11 20:17:41 +00:00
Manan TankandGitHub cb103bf935 Fix snippets and typedoc workflows (#2159) 2024-01-11 19:22:04 +00:00
Manan TankandGitHub 4c8716947c Add typedoc and snippets workflows (#2156) 2024-01-11 18:50:03 +00:00
iketwandGitHub abbd255efa [RN] Correctly pass sdkOptions down (#2158) 2024-01-11 18:46:26 +00:00
6047d67daa Enforce react-hooks/exhaustive-deps lint rule (#2138)
Co-authored-by: Jonas Daniels <[email protected]>
2024-01-11 17:37:39 +00:00
Tair AsimandGitHub 749a12f92f service-utils: fix checkout service name (#2157) 2024-01-11 12:05:44 +00:00
Jonas DanielsandGitHub c4edead2db chore: update eslint and prettier versions (#2153) 2024-01-11 11:22:18 +00:00
Jonas DanielsandGitHub f689033bc5 chore(chains): remove unused axios and deepmerge dependencies (#2152) 2024-01-11 10:54:21 +00:00
Jonas DanielsandGitHub 415f2aa83b refactor: Simplify deepMerge function and improve type checking (#2151) 2024-01-11 10:41:28 +00:00
Manan TankandGitHub 6dac95bd48 Fix/Improve changesets (#2150) 2024-01-11 10:17:52 +00:00
517d9a8f94 Turkish Language & Cleaning up the language code (#1962)
Signed-off-by: Jonas Daniels <[email protected]>
Co-authored-by: Muratcan <[email protected]>
Co-authored-by: Jonas Daniels <[email protected]>
2024-01-11 09:50:17 +00:00
5d56700866 Add Filipino language to React and React Native SDK (#1964)
Signed-off-by: Jonas Daniels <[email protected]>
Co-authored-by: Jonas Daniels <[email protected]>
2024-01-11 09:28:04 +00:00
Jonas DanielsandGitHub bc2f7cb927 chore(many): update babel dependencies (#2148) 2024-01-11 09:19:26 +00:00
eb6544ffc8 [SDK] Add pagination to ERC721's getAllOwners method (#1887)
Co-authored-by: Jonas Daniels <[email protected]>
2024-01-11 08:59:23 +00:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
0ca92533a2 Bump @types/js-cookie from 3.0.3 to 3.0.6 (#2128)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-11 08:35:47 +00:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
051b319c34 Bump react-native-get-random-values from 1.9.0 to 1.10.0 (#2127)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-11 08:09:54 +00:00
Kien NgoandGitHub e100168979 [react-core] Add hook for creating direct listings in batch (Marketplace v3 only) (#2089) 2024-01-11 07:53:23 +00:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3cb53c4a2a Bump @babel/runtime from 7.22.6 to 7.23.8 (#2126)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-11 07:48:32 +00:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
ead1e425a9 Bump crypto from 0.0.3 to 1.0.1 (#2129)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-11 07:48:20 +00:00
dependabot[bot]GitHubdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
38b0f55db1 Bump @swc-node/register from 1.6.6 to 1.6.8 (#2130)
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-11 07:48:10 +00:00
Jonas DanielsandGitHub 09ea738981 fix(test): fix condition to run deploy marketplacev3 (#2147) 2024-01-11 05:58:16 +00:00
Joaquim VergesandGitHub 71de335e10 [Wallets] skip integration test if no secret key (#2146) 2024-01-11 05:17:41 +00:00
Jonas DanielsandGitHub d3637a160d feat: update chains (#2145) 2024-01-11 04:57:31 +00:00
Joaquim VergesandGitHub 27c00ef779 [Wallets] fix gas estimations for local and embedded wallets (#2143) 2024-01-10 22:37:38 +00:00
YashandGitHub 756d5cc960 Resolve beacon from beacon-proxy (#2139) 2024-01-10 20:58:20 +00:00
0f9b88ab68 [react, react-native] Fix double connection issue, add ConnectEmbed component (#2055)
Co-authored-by: ikethirdweb <[email protected]>
2024-01-10 20:19:10 +00:00
Manan TankandGitHub 30f16cac6d Fix useUnclaimedNFTs hook return type (#2140) 2024-01-10 20:12:44 +00:00
Manan TankandGitHub ece19ef7d3 Pin bun version in workflows (#2141) 2024-01-10 19:40:37 +00:00
github-actions[bot]GitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>
7d18c3edea Version Packages (#2132)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-09 20:35:38 -08:00
iketwandGitHub 7d07490ed3 [RN] Adds hideDisconnect prop to ConnectWallet comp (#2137) 2024-01-09 23:40:28 +00:00
22571ba0a9 [Wallets] Better userOp estimations (#2098)
Co-authored-by: Aleš Ferlan <[email protected]>
2024-01-09 21:48:22 +00:00
0ff90b8fba feat: add hideDisconnect prop to ConnectWallet (#2122)
Co-authored-by: Manan Tank <[email protected]>
Co-authored-by: Joaquim Verges <[email protected]>
2024-01-08 20:29:55 -08:00
Adam MajmudarandGitHub e66e906650 Add support for signTypedData to AwsKmsWallet (#2125) 2024-01-09 03:56:26 +00:00
Isaac DubuqueandGitHub b3cf65b9db Payments: Minor bug fix package.json import (#2133) 2024-01-09 01:02:10 +00:00
iketwandGitHub f953c72c4e [RN] Fixes custom balance token display in ConnectWallet details button (#2131) 2024-01-08 20:49:58 +00:00
github-actions[bot]andGitHub bbc2e092b8 Version Packages (#2120) 2024-01-06 07:18:21 +13:00
iketwandGitHub 4c3c840d88 [RN] Export WC modal component (#2092) 2024-01-05 16:27:27 +00:00
Manan TankandGitHub cf606665fc Update Docs links (#2119) 2024-01-05 16:07:39 +00:00
github-actions[bot]GitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>
3871068aa6 Version Packages (#2116)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-03 15:59:09 +13:00
Isaac DubuqueandGitHub d00ca7fd2a add patch bump to payments package (#2115) 2024-01-03 02:51:11 +00:00
github-actions[bot]GitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>
9ee3c21eac Version Packages (#2102)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-03 14:34:19 +13:00
ed3afd418c Isaac/react sdk migration (#1913)
Co-authored-by: gerrysaporito <[email protected]>
2024-01-03 00:55:16 +00:00
iketwandGitHub b90fa2cc29 [RN] Adds hideSendButtonand hideReceiveButton to ConnectWallet (#2108) 2024-01-02 20:02:44 +00:00
EimanandGitHub 2ab517aa49 changing Avalanche tether USD address mapping (#2109) 2023-12-28 16:34:34 +00:00
Manan TankandGitHub e46dd0254f [wallets] JSDoc improvements for autogenerated docs (#2103) 2023-12-22 10:06:51 +00:00
Gerry SaporitoandGitHub 1a5627f72d chore: added payments to scope (#2107) 2023-12-20 18:39:51 +00:00
YashandGitHub b808e942fd [SDK] Fix verification (#2105) 2023-12-20 15:02:04 +00:00
iketwandGitHub 7fdb1715e4 [RN] Export types to improve references (#2101) 2023-12-19 17:02:08 +00:00
github-actions[bot]GitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>
ae2fcf7e00 Version Packages (#2088)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-19 13:42:24 +13:00
iketwandGitHub 94a8f7960a [RN] Update coinbase wallet SDK to fix scheme bug (#2099) 2023-12-19 00:22:26 +00:00
Manan TankandGitHub c410a1c18a [react, react-core] - Migrate Docs content to JSDoc comments (#2084) 2023-12-18 21:11:29 +00:00
Winston YeoandGitHub 81c46e2298 [walllets]: don't rely on utils package for base url in embedded wallet (#2093) 2023-12-17 17:07:01 +00:00
YashandGitHub f369bffe5a [SDK] Deployment params: Empty default forwarders (#2090) 2023-12-16 21:57:35 +00:00
Kien NgoandGitHub fed1313a19 [SDK] Fix invalid recipient issue when deploy built-in contracts (#2020) 2023-12-15 03:05:02 +00:00
iketwandGitHub b7d4dee446 [RN] Support expo versions >=47 <50 (#2087) 2023-12-14 23:37:58 +00:00
Kien NgoandGitHub 23db97cca5 [react-core] Add hook: useTransferNativeToken (#2008) 2023-12-14 23:22:45 +00:00
github-actions[bot]GitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>
0f54e99141 Version Packages (#2083)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-15 09:31:22 +13:00
c701c388c6 feat: ethers skipFetchSetup support (#2085)
Co-authored-by: Manan Tank <[email protected]>
2023-12-15 08:37:55 +13:00
iketwandGitHub 328ef5dc9c [RN] Hide back button in WC modal when WC is the only supportedWallet (#2086) 2023-12-14 18:13:55 +00:00
iketwandGitHub 07fbb799be [RN] Adds the ability to login with any arbitrary login payload (#2074) 2023-12-13 20:50:24 +00:00
iketwandGitHub 699f31c20a [RN/React-Core] Improve comments (#2082) 2023-12-13 02:56:39 +00:00
github-actions[bot]GitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>
c97e51b855 Version Packages (#2071)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-13 13:11:43 +13:00
Adam MajmudarandGitHub e10173bf8a [Wallets] Add support for signTransaction for smart wallets (#2080) 2023-12-12 23:57:45 +00:00
Joaquim VergesandGitHub dbfa73d75a [SDK] Export contract verifier (#2081) 2023-12-12 23:34:31 +00:00
Joaquim VergesandGitHub 1b1212d9fb [Wallet] Export getUserOpReceipt() (#2079) 2023-12-12 22:46:52 +00:00
FirekeeperandGitHub 065f85bf71 [Unity] Support revokeSessionKey/getAllActiveSigners (#2078) 2023-12-12 21:30:46 +00:00
Joaquim VergesandGitHub 09bafa9aeb [Wallets] Respect value in smart wallet gas estimations + add getUserOpReceipt utility function (#2077) 2023-12-12 21:13:18 +00:00
Joaquim VergesandGitHub fe30c88cc3 [SDK] Re-export classes, comment cleanup (#2076) 2023-12-12 09:35:51 +00:00
Joaquim VergesandGitHub 3a9538259c [SDK] cleanup (#2075) 2023-12-12 00:12:03 +00:00
FirekeeperandGitHub 0c730e57e0 [Unity] Add JWT/AuthEndpoint login options (#2073) 2023-12-11 23:43:10 +00:00
iketwandGitHub 33c9f6b1ab [Embedded] Enforce encryption key for custom jwt (#2018) 2023-12-11 22:47:41 +00:00
iketwandGitHub 2346396bdf [RN] Adds analytics nonce to ews (#2072) 2023-12-11 22:41:32 +00:00
Manan TankandGitHub de5ebc9093 [wallets] Fix assertWindowEthereum (#2070) 2023-12-11 20:37:32 +00:00
Joaquim VergesandGitHub 42c4c33d30 [SDK] un-export unneeded classes + package reorganization (#2069) 2023-12-11 19:06:32 +00:00
github-actions[bot]GitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>
046603ac54 Version Packages (#2068)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-08 22:29:51 -08:00
YashandGitHub bcfa9463bb Fix deployments (#2067) 2023-12-09 04:37:58 +00:00
github-actions[bot]GitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>
42bda873b4 Version Packages (#2054)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-08 18:04:02 -08:00
Joaquim VergesandGitHub d2001ca464 sync chains (#2066) 2023-12-09 00:14:35 +00:00
Manan TankandGitHub c8ba5cf863 [react] - Add option to only show Official WC Modal, Fix focus trap when CW Modal is hidden (#2063) 2023-12-08 13:14:04 +00:00
Joaquim VergesandGitHub 85842c1596 [SDK] expose BaseFee in getDynamicFeeData() (#2062) 2023-12-07 23:29:17 +00:00
FirekeeperandGitHub 0fb2f1fc5e [Unity] Support for sdk.wallet.GetEmail (#2061) 2023-12-07 22:21:23 +00:00
Jonas DanielsandGitHub 497677f359 fix(sdk): roles.setAll.prepare() correctly sorts role removals (#2059) 2023-12-07 18:48:16 +00:00
Manan TankandGitHub 15ae5e7f95 [react] Add "Open Official WalletConnect Modal" in ConnectWallet (#2058) 2023-12-07 16:57:52 +00:00
FirekeeperandGitHub 5a0283d083 [Unity] Reload local wallet in case of reconnection (sw) (#2056) 2023-12-07 00:32:24 +00:00
Winston YeoandGitHub 9496606964 [wallets]: Winston/custom auth endpoint (#2052) 2023-12-06 23:35:47 +00:00
Manan TankandGitHub b50e4a41b5 [react] Use WalletConnect to connect MM on mobile by default (#2029) 2023-12-06 19:52:46 +00:00
YashandGitHub e595d4d92f [SDK] Update implementation (#2053) 2023-12-06 19:29:10 +00:00
github-actions[bot]GitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>
3e526d46fa Version Packages (#2036)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-05 21:14:32 -08:00
Manan TankandGitHub a36c7e8331 Update typedoc setup, JSDoc improvements (#1842)
Signed-off-by: Manan Tank <[email protected]>
2023-12-05 19:00:11 +00:00
7bb054e45c [wallets] Remove barrel files (#2040)
Co-authored-by: Manan Tank <[email protected]>
2023-12-05 15:22:22 +00:00
cd87be4a24 [react-core] Remove barrel files (#2039)
Co-authored-by: Manan Tank <[email protected]>
2023-12-05 15:17:24 +00:00
Joaquim VergesandGitHub aefc4cda4c [SDK] Add migration role (#2051) 2023-12-05 06:08:30 +00:00
YashandGitHub cfe81b4432 [SDK] Update implementation (#2050) 2023-12-05 05:33:40 +00:00
Jonas DanielsandGitHub 72c0bb10d6 fix(contract-roles): ensure connected wallet address is removed last (#2049) 2023-12-05 01:27:07 +00:00
YashandGitHub ca618ea0c9 [SDK] Metadata role for nft base contracts (#2048) 2023-12-04 23:31:02 +00:00
YashandGitHub d20e789856 [SDK] Update publisher and registry (#2044) 2023-12-04 19:11:29 +00:00
Manan TankandGitHub a135857c7a [react] Fix EmbeddedWalletConfigOptions type (#2045) 2023-12-04 17:44:24 +00:00
Manan TankandGitHub 34546c24c7 improved smart wallet autoconnect (#2043) 2023-12-04 15:58:41 +00:00
Manan TankandGitHub 61c62b3f07 [react, wallets] JSDoc Improvements, Type exports for autogenerated docs (#2042) 2023-12-04 13:57:22 +00:00
Jonas DanielsandGitHub f2390b64e8 testing(merkletree): add additional tests back (#2041) 2023-12-04 03:41:03 +00:00
4ae1cd63bb [wallet, react] Add OneKey wallet (#1938)
Co-authored-by: Manan Tank <[email protected]>
2023-12-03 12:00:32 +00:00
github-actions[bot]GitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>
a4339818a0 Version Packages (#1998)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-01 06:55:35 -08:00
Manan TankandGitHub b3394277c7 [react] JSDoc improvements (#1987) 2023-12-01 13:13:30 +00:00
Manan TankandGitHub fdf19b0a26 [react] Do not swallow error in useEmbeddedWallet() connect (#2031) 2023-12-01 12:42:39 +00:00
FirekeeperandGitHub 9798a31a9a [Unity] Pass down authOptions with smart wallet connections (#2026) 2023-11-30 00:59:22 +00:00
Kien NgoandGitHub f93bd325e1 [Storage] Catch error when converting invalid IPFS URIs (#2021) 2023-11-29 21:35:50 +00:00
iketwandGitHub 97ba1fbd42 [RN] Adds version header to ews calls (#2025) 2023-11-29 20:43:35 +00:00
Kien NgoandGitHub 28fc3736aa [storage] Add Base Sepolia to defaultChains (#2024) 2023-11-29 20:02:58 +00:00
Kien NgoandGitHub 06805217c2 [chains] Add Eth Sepolia to defaultChains (#2023) 2023-11-29 15:24:54 +00:00
Jonas DanielsandGitHub b833250053 chore(chains): add & update chains (#2019) 2023-11-28 22:07:14 +00:00
iketwandGitHub 9455912932 [ReactCore] Share WalletConnecthandler in react core (#2016) 2023-11-28 16:00:48 +00:00
Manan TankandGitHub 4c488aa31f [react-core] Fix auto-connecting a personal wallet for smart/safe wallet (#2015) 2023-11-28 12:17:28 +00:00
Joaquim VergesandGitHub b0ecfd2d8d [SDK] propagate isPartialABI (#2012) 2023-11-27 20:30:32 +00:00
2b4f1c8e55 [wallet, react] Add Crypto.com Defi wallet (#1928)
Co-authored-by: Manan Tank <[email protected]>
2023-11-27 15:16:30 +00:00
e79b293562 [react-core] Add hook: useBalanceForAddress (#2007)
Co-authored-by: Manan Tank <[email protected]>
2023-11-27 14:43:32 +00:00
Joaquim VergesandGitHub 2861dff1f0 [SDK] dont fetch metadata from CDN for local nodes (#2011) 2023-11-27 06:02:33 +00:00
Kien NgoandGitHub 61b6a00214 Fix typo in comment (#2010) 2023-11-27 05:35:30 +00:00
Joaquim VergesandGitHub b02fb91a54 [SDK] Add missing roles from new contracts (#2009) 2023-11-26 04:51:52 +00:00
Joaquim VergesandGitHub 8bf3be88be [SDK] Enable deployments for older AccountFactory contracts (#2005) 2023-11-24 23:02:15 +00:00
Joaquim VergesandGitHub fb5095bff5 [SDK] Handle other possible undefined cases for unknown chains (#2004) 2023-11-23 21:24:05 +00:00
Joaquim VergesandGitHub d28097f508 [SDK] Fix undefined error for unknow chains (#2003) 2023-11-23 17:31:11 +00:00
iketwandGitHub a27b10c5c3 [React] Do not set disconnected if connecting (#2001) 2023-11-23 16:12:39 +00:00
8c2d4e5ea7 [wallet, react] Add Rabby wallet (browser extension) (#1926)
Co-authored-by: Manan Tank <[email protected]>
2023-11-22 18:33:15 +00:00
Manan TankandGitHub 507496627b [react] Fix SmartWallet + MagicLink social login connection, Fix WalletIcon in CW (#1997) 2023-11-22 18:14:30 +00:00
github-actions[bot]GitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>
f5b89987af Version Packages (#1991)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-22 07:31:24 -08:00
Manan TankandGitHub 4bb8f5b15e Revert "add ConnectEmbed + Fix double connection issue" (#1996) 2023-11-22 15:11:43 +00:00
FirekeeperandGitHub 914befda16 [Unity] Add new tx/block processing methods to match static C# counterparts (#1995) 2023-11-22 11:31:25 +00:00
Joaquim VergesandGitHub b5bbe2bd43 [Wallets] Look at last 10 blocks for recently submitted userOp (#1992) 2023-11-22 04:52:24 +00:00
Kien NgoandGitHub 68288436ac [React, React native] Remove overrides prop from Web3Button (#1994) 2023-11-22 01:23:55 +00:00
Jonas DanielsandGitHub d4ce855e5f chore(chains): update chains & deprecate allChains (#1990) 2023-11-22 01:13:04 +00:00
Kien NgoandGitHub 47b0ed5171 [sdk, chains] Add Arb Sepolia to defaultChains (#1967) 2023-11-21 22:05:17 +00:00
github-actions[bot]GitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>
00b9eea9ec Version Packages (#1980)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-21 13:37:37 -08:00
iketwandGitHub bf27b88728 [RN] Improves error messages for embedded wallet (#1989) 2023-11-21 19:41:23 +00:00
Tair AsimandGitHub 17fe41d42b fix: api key caching ttl (#1988) 2023-11-21 17:38:59 +00:00
Tair AsimandGitHub 36600decef chore: add logging to authenticate (#1973) 2023-11-21 17:08:22 +00:00
FirekeeperandGitHub e09221f1e0 [Unity] SW Account Override Support (#1986) 2023-11-21 12:16:28 +00:00
FirekeeperandGitHub 62cc785c4a [Unity] Support Add/Remove Admin and Create Session Key for SW (#1985) 2023-11-21 10:42:57 +00:00
Adam MajmudarandGitHub 7c45941b57 Add support for executeMetaTransaction (#1974) 2023-11-20 19:12:11 +00:00
FirekeeperandGitHub 7a2e0edab4 [Unity] Apple and Facebook logins (#1981) 2023-11-20 18:45:33 +00:00
Manan TankandGitHub fb0cb676b9 add ConnectEmbed + Fix double connection issue with Safe/Smart in ConnectWallet (#1952) 2023-11-20 17:56:55 +00:00
12d85dec10 [React/RN] Move usePersonalWalletAddress hook to core (#1971)
Co-authored-by: Manan Tank <[email protected]>
2023-11-20 17:29:32 +00:00
1094a03a04 [wallet, react] Add Coin98 Wallet (#1921)
Co-authored-by: Manan Tank <[email protected]>
2023-11-20 16:27:00 +00:00
github-actions[bot]GitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>
6cc38b0680 Version Packages (#1970)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-18 14:30:05 -08:00
Joaquim VergesandGitHub 7abb36a7ec [Wallets] Enforce authenticated users when getting EW signers (#1978) 2023-11-18 17:21:15 +00:00
Joaquim VergesandGitHub 6832b19fc5 [Wallets] Fix potential embedded wallet autoconnect race condition (#1977) 2023-11-18 07:18:30 +00:00
nkrishangandGitHub 1c4cbedb6a Override signMessage for SmartWallet class (#1953) 2023-11-18 06:04:02 +00:00
Phillip HoandGitHub 8ff87be631 fix: Reuse response body in service utils helper (#1976) 2023-11-18 01:50:37 +00:00
YashandGitHub e43beec36a [SDK] Resolve diamond pattern facets abi (#1935) 2023-11-17 15:56:29 +00:00
github-actions[bot]GitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>
c5b7fef5ba Version Packages (#1966)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-17 10:40:41 +01:00
Manan TankandGitHub 4c5e40ae4e [react] Fix ConnectWallet text alignment issues in paper/embedded wallet (#1969) 2023-11-17 09:22:45 +00:00
Jonas DanielsandGitHub ab2dfd4f5c Initialize @thirdweb-dev/crypto and @thirdweb-dev/merkletree (#1861)
Signed-off-by: Jonas Daniels <[email protected]>
2023-11-16 22:32:24 +00:00
Manan TankandGitHub 13029e3286 [react] ConnectWallet UI adjustments, expose hook to fetch embeddedWallet email (#1965) 2023-11-16 20:25:25 +00:00
github-actions[bot]GitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>
44c9ccd65d Version Packages (#1963)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-16 10:21:09 -08:00
Manan TankandGitHub 7912c26323 [react] use custom theme context in styled components (#1954) 2023-11-16 17:53:44 +00:00
69d68f5a25 [RN/React] Enables FB and Apple sign in for embedded wallet (#1945)
Co-authored-by: Manan Tank <[email protected]>
2023-11-16 13:31:22 +00:00
github-actions[bot]GitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>
836be52724 Version Packages (#1959)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-15 20:26:55 -08:00
Joaquim VergesandGitHub 9f993dcc1e [EmbeddedWallet] fix switch chains logic (#1958) 2023-11-15 16:56:19 -08:00
github-actions[bot]GitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>
61760a180f Version Packages (#1946)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-15 15:20:43 -08:00
Joaquim VergesandGitHub a3f3e160e0 [SDK] Performance improvements for getContract (#1936) 2023-11-15 23:01:25 +00:00
Joaquim VergesandGitHub b1190914a9 [SmartWallet, React] Smart wallet performance and auto connect fixes (#1950) 2023-11-15 18:37:30 +00:00
Kien NgoandGitHub e79a952061 [React-core] Fix caching issue with useTotalCirculatingSupply (#1951) 2023-11-15 14:34:57 +00:00
iketwandGitHub 480ed721d1 Enforces tsdoc/syntax code comments (#1949) 2023-11-15 04:30:13 +00:00
42c7436827 [React/Wallets] Deprecates PaperWallet in favor of EmbeddedWallet (#1948)
Co-authored-by: ElasticBottle <[email protected]>
2023-11-15 03:33:10 +00:00
Adam MajmudarandGitHub 16e9e8b64d [Wallets] Add EngineWallet & EngineSigner (#1939) 2023-11-15 00:59:58 +00:00
Adam MajmudarandGitHub 23ab897e32 Add support for EIP-2612 to engine relayer (#1947) 2023-11-14 23:20:44 +00:00
iketwandGitHub 6fcdec7c12 [SDK] Fixes all tsdoc warnings (#1944) 2023-11-14 20:04:17 +00:00
github-actions[bot]GitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>
b734f05525 Version Packages (#1919)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-14 11:30:08 -08:00
iketwandGitHub 30ea9c6bf7 [All] Warns tsdoc formatting and fixes React, RN and ReactCore (#1943) 2023-11-14 19:19:46 +00:00
iketwandGitHub 6de3a19b86 [RN] Updated safe-area-context package to 4.7.4 (#1942) 2023-11-14 18:09:58 +00:00
iketwandGitHub 06e59cf916 [React/RN] Move shortenAdress util to react-core (#1929) 2023-11-14 15:48:52 +00:00
Joaquim VergesandGitHub 3f3a484a3a [SmartWallet] remove deprecated fallback (#1937) 2023-11-14 01:39:23 +00:00
05e52114bf [auth] update fastify login route response to match express/next (#1927)
Signed-off-by: Alec Ananian <[email protected]>
Co-authored-by: Joaquim Verges <[email protected]>
2023-11-13 16:42:41 -08:00
iketwandGitHub 1a421d3b5d [RN] Adds Apple sign in option to embedded wallet (#1912) 2023-11-10 21:59:10 +00:00
iketwandGitHub 97fdbc8f64 [RN] Refactor WC receiver for SW and EW (#1925) 2023-11-10 21:26:17 +00:00
ebf4025718 [wallets]: refactor for ease of adding oauth provider (#1923)
Co-authored-by: ikethirdweb <[email protected]>
Co-authored-by: Manan Tank <[email protected]>
2023-11-10 19:13:27 +00:00
a81a5285b7 [wallets, React SDK] Add FB and Apple social login (#1920)
Co-authored-by: ikethirdweb <[email protected]>
Co-authored-by: Manan Tank <[email protected]>
2023-11-10 18:07:25 +00:00
95c9d56ea4 [CLI] fixed url redirect for pre-built deploy command (#1918)
Co-authored-by: ikethirdweb <[email protected]>
2023-11-09 22:20:25 +00:00
18552f3a22 [React Native] Option to hide [Switch to Personal Wallet] button (#1908)
Co-authored-by: ikethirdweb <[email protected]>
2023-11-09 22:09:47 +00:00
github-actions[bot]andGitHub 9187e0f2cf Version Packages (#1894) 2023-11-09 10:42:07 -08:00
20d0f53b46 [wallet, react] Add Core wallet (Avalanche) (#1891)
Co-authored-by: Manan Tank <[email protected]>
2023-11-09 15:22:14 +00:00
iketwandGitHub 0dcb15b7e6 [Chore(chains)] sync chains (#1911) 2023-11-08 20:00:43 +00:00
iketwandGitHub ba49a82463 [RN] UI improvements (#1909) 2023-11-08 16:55:02 +00:00
Phillip HoandGitHub 8d1b8a47e6 chore: Add checkout as a usage type (#1907) 2023-11-07 21:21:00 +00:00
b90d3af5b8 [React] Add option to hide personal wallet switch to React (#1906)
Co-authored-by: Manan Tank <[email protected]>
2023-11-07 16:09:32 +00:00
c34ac468fb [react] Add Localization (#1847)
Signed-off-by: Manan Tank <[email protected]>
Co-authored-by: ikethirdweb <[email protected]>
2023-11-07 15:36:13 +00:00
YashandGitHub fefeaeef18 [SDK] Fix publish (#1809) 2023-11-06 13:46:17 +00:00
Adam MajmudarandGitHub 91c2352b03 [SDK] Add support for engine relayer (#1896) 2023-11-06 00:19:58 +00:00
iketwandGitHub 9f454d1e08 [RN] Improve modal title customization (#1900) 2023-11-04 14:23:31 +00:00
iketwandGitHub 59e5541094 [RN] Removes magic support in favor of embedded wallet (#1892) 2023-11-02 21:14:29 +00:00
iketwandGitHub 8e104b443e [RN] Updates Japanese translations (#1893) 2023-11-02 19:18:01 +00:00
6053 changed files with 319854 additions and 96325 deletions
+8 -1
View File
@@ -15,7 +15,14 @@
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": ["e2e-cra-5", "e2e-next-13", "e2e-vite-3"],
"ignore": [
"bundlers-esbuild",
"bundlers-vite",
"bundlers-webpack",
"bundlers-swc",
"runtimes-node-commonjs",
"runtimes-node-module"
],
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
"updateInternalDependents": "always",
"onlyUpdatePeerDependentsWhenOutOfRange": true
+2 -1
View File
@@ -3,4 +3,5 @@
# used for unit tests that hit real IPFS gateway
# get a secret key from https://thirdweb.com/create-api-key
TW_SECRET_KEY=""
# Learn more about API keys. https://portal.thirdweb.com/account/api-keys
TW_SECRET_KEY=""
+39 -15
View File
@@ -2,28 +2,52 @@
# Platform team owns everything by default
* @thirdweb-dev/platform
- @jnsdls @joaquim-verges @MananTank
# Devrel owns all markdown files (README etc.)
# legacy packages
*.md @thirdweb-dev/devrel
.changeset/
legacy_packages/auth/ @jnsdls
legacy_packages/chains/ @jnsdls
legacy_packages/cli/ @jnsdls
legacy_packages/contracts-js/ @jnsdls
legacy_packages/crypto/ @jnsdls
legacy_packages/generated-abis/ @jnsdls
legacy_packages/merkletree/ @jnsdls
legacy_packages/pay/ @jnsdls
legacy_packages/payments/ @jnsdls
legacy_packages/react/ @MananTank @jnsdls
legacy_packages/react-core/ @MananTank @jnsdls
legacy_packages/react-native/ @jnsdls
legacy_packages/react-native-compat/ @jnsdls
legacy_packages/sdk/ @joaquim-verges @jnsdls
legacy_packages/storage/ @jnsdls
legacy_packages/wallets/ @MananTank @jnsdls
# Shared ownership of the react and react-core packages
# legacy e2e
packages/react/ @thirdweb-dev/product @thirdweb-dev/platform
packages/react-core/ @thirdweb-dev/product @thirdweb-dev/platform
legacy_e2e/ @jnsdls
# Shared ownership of the CLI
# packages
packages/cli/ @thirdweb-dev/product @thirdweb-dev/platform
## specific thirdweb pieces
# Chains is owned specifically by jonas for now
packages/thirdweb/src/react/ @MananTank
packages/thirdweb/src/reactive/ @MananTank
packages/thirdweb/src/gas/ @joaquim-verges
packages/thirdweb/src/pay/ @MananTank @IDubuque
packages/chains/ @jnsdls
packages/typedoc-gen/ @MananTank
# .github folder + .changeset + turbo config is owned by joaquim and jonas for now
# owned by phil for now
.github/ @jnsdls @joaquim-verges
.changeset/config.json @jnsdls @joaquim-verges
turbo.json @joaquim-verges @jnsdls
packages/service-utils/ @arcoraven
packages/eslint-config-thirdweb/ @jnsdls
packages/tw-tsconfig/ @jnsdls
packages/unity-js-bridge/ @joaquim-verges @0xFirekeeper
# .github folder + .changeset + turbo config is owned by jonas for now
scripts/ @jnsdls
.github/ @jnsdls
.changeset/config.json @jnsdls
turbo.json @jnsdls
+9 -2
View File
@@ -4,13 +4,20 @@ description: "Sets up Node.js and runs install"
runs:
using: composite
steps:
- uses: pnpm/action-setup@v2
# we use bun for some test suites
- name: Setup bun
uses: oven-sh/setup-bun@v1
with:
bun-version: 1.0.35
# pnpm for our dependencies
- uses: pnpm/action-setup@v3
with:
version: 8
- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
check-latest: true
registry-url: "https://registry.npmjs.org"
cache: "pnpm"
+7 -7
View File
@@ -22,13 +22,13 @@ We use [Turborepo](https://turborepo.org/docs/getting-started) to manage the mon
You can see a quick outline of each of the projects within this repo below, each living within the [/packages](/packages) directory:
| Package | Description | Latest Version |
| ------------------------------ | -------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [/sdk](./packages/sdk) | Best in class web3 SDK for Browser, Node and Mobile apps | <a href="https://www.npmjs.com/package/@thirdweb-dev/sdk"><img src="https://img.shields.io/npm/v/@thirdweb-dev/sdk?color=red&label=npm&logo=npm" alt="npm version"/></a> |
| [/react](./packages/react) | Ultimate collection of React hooks for your web3 apps | <a href="https://www.npmjs.com/package/@thirdweb-dev/react"><img src="https://img.shields.io/npm/v/@thirdweb-dev/react?color=red&label=npm&logo=npm" alt="npm version"/></a> |
| [/auth](./packages/auth) | Best in class wallet authentication for Node backends | <a href="https://www.npmjs.com/package/@thirdweb-dev/auth"><img src="https://img.shields.io/npm/v/@thirdweb-dev/auth?color=red&label=npm&logo=npm" alt="npm version"/></a> |
| [/storage](./packages/storage) | Best in class decentralized storage SDK for Browser and Node | <a href="https://www.npmjs.com/package/@thirdweb-dev/storage"><img src="https://img.shields.io/npm/v/@thirdweb-dev/storage?color=red&label=npm&logo=npm" alt="npm version"/></a> |
| [/cli](./packages/cli) | Publish and deploy smart contracts without dealing with private keys | <a href="https://www.npmjs.com/package/thirdweb"><img src="https://img.shields.io/npm/v/thirdweb?color=red&label=npm&logo=npm" alt="npm version"/></a> |
| Package | Description | Latest Version |
| ------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [/sdk](./legacy_packages/sdk) | Best in class web3 SDK for Browser, Node and Mobile apps | <a href="https://www.npmjs.com/package/@thirdweb-dev/sdk"><img src="https://img.shields.io/npm/v/@thirdweb-dev/sdk?color=red&label=npm&logo=npm" alt="npm version"/></a> |
| [/react](./legacy_packages/react) | Ultimate collection of React hooks for your web3 apps | <a href="https://www.npmjs.com/package/@thirdweb-dev/react"><img src="https://img.shields.io/npm/v/@thirdweb-dev/react?color=red&label=npm&logo=npm" alt="npm version"/></a> |
| [/auth](./legacy_packages/auth) | Best in class wallet authentication for Node backends | <a href="https://www.npmjs.com/package/@thirdweb-dev/auth"><img src="https://img.shields.io/npm/v/@thirdweb-dev/auth?color=red&label=npm&logo=npm" alt="npm version"/></a> |
| [/storage](./legacy_packages/storage) | Best in class decentralized storage SDK for Browser and Node | <a href="https://www.npmjs.com/package/@thirdweb-dev/storage"><img src="https://img.shields.io/npm/v/@thirdweb-dev/storage?color=red&label=npm&logo=npm" alt="npm version"/></a> |
| [/cli](./legacy_packages/cli) | Publish and deploy smart contracts without dealing with private keys | <a href="https://www.npmjs.com/package/thirdweb"><img src="https://img.shields.io/npm/v/thirdweb?color=red&label=npm&logo=npm" alt="npm version"/></a> |
## How to contribute
+5
View File
@@ -9,3 +9,8 @@ updates:
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every week
interval: "weekly"
+6
View File
@@ -11,3 +11,9 @@ Short description of the bug fixed or feature added
- [ ] Automated tests: link to unit test file
- [ ] Manual tests: step by step instructions on how to test
## Contributor NFT
Paste in your wallet address below and we will airdrop you a special NFT when your pull request is merged.
```Address: ```
+136
View File
@@ -0,0 +1,136 @@
name: CI
on:
push:
branches: ["main"]
paths:
- "packages/**"
- "package.json"
pull_request:
types: [opened, synchronize]
paths:
- "packages/**"
- "package.json"
# trigger on merge group as well (merge queue)
merge_group:
types: [checks_requested]
branches: ["main"]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
# To use Remote Caching, uncomment the next lines and follow the steps below.
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
TW_SECRET_KEY: ${{ secrets.TW_SECRET_KEY }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
jobs:
build:
runs-on: ubuntu-latest-16
name: Build Packages
steps:
- name: Check out the code
uses: actions/checkout@v4
- name: Setup & Install
uses: ./.github/composite-actions/install
- name: Build Packages
run: pnpm build:packages
lint:
timeout-minutes: 15
name: Lint Packages
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v4
- name: Setup & Install
uses: ./.github/composite-actions/install
- name: Setup Biome
uses: biomejs/setup-biome@v2
with:
version: latest
- run: pnpm lint
test:
timeout-minutes: 15
name: Unit Tests
runs-on: ubuntu-latest-16
steps:
- name: Check out the code
uses: actions/checkout@v4
- name: Setup & Install
uses: ./.github/composite-actions/install
- name: Set up foundry
uses: foundry-rs/foundry-toolchain@v1
- run: pnpm test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
directory: packages/
flags: packages
verbose: true
e2e:
timeout-minutes: 15
name: E2E Tests
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v4
- name: Setup & Install
uses: ./.github/composite-actions/install
# TODO actually run e2e tests
benchmark:
# cannot run benchmarks on merge group
if: github.event_name != 'merge_group'
timeout-minutes: 15
name: "Benchmarks"
runs-on: ubuntu-latest-16
steps:
- name: Check out the code
uses: actions/checkout@v4
- name: Setup & Install
uses: ./.github/composite-actions/install
- name: Run benchmarks
uses: CodSpeedHQ/action@v2
with:
token: ${{ secrets.CODSPEED_TOKEN }}
run: "pnpm bench"
size:
# only run on pull requests
if: github.event_name == 'pull_request'
timeout-minutes: 15
name: "Size"
runs-on: ubuntu-latest-16
steps:
- name: Check out the code
uses: actions/checkout@v4
- name: Setup & Install
uses: ./.github/composite-actions/install
- name: Report bundle size
uses: andresz1/size-limit-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
package_manager: pnpm
directory: packages/thirdweb
+98
View File
@@ -0,0 +1,98 @@
name: CI (Legacy Packages)
on:
push:
branches: ["main"]
paths:
- "legacy_packages/**"
- "legacy_e2e/**"
- "package.json"
pull_request:
types: [opened, synchronize]
paths:
- "legacy_packages/**"
- "legacy_e2e/**"
- "package.json"
# trigger on merge group as well (merge queue)
merge_group:
types: [checks_requested]
branches: ["main"]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
# To use Remote Caching, uncomment the next lines and follow the steps below.
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
TW_SECRET_KEY: ${{ secrets.TW_SECRET_KEY }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
jobs:
build:
runs-on: ubuntu-latest-16
name: Build Packages
steps:
- name: Check out the code
uses: actions/checkout@v4
- name: Setup & Install
uses: ./.github/composite-actions/install
- name: Build Packages
run: pnpm build:legacy_packages
lint:
timeout-minutes: 15
name: Lint Packages
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v4
- name: Setup & Install
uses: ./.github/composite-actions/install
- run: pnpm lint:legacy
test:
timeout-minutes: 15
name: Unit Tests
runs-on: ubuntu-latest-16
steps:
- name: Check out the code
uses: actions/checkout@v4
- name: Setup & Install
uses: ./.github/composite-actions/install
- run: pnpm test:legacy
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
directory: legacy_packages/
flags: legacy_packages
verbose: true
e2e:
timeout-minutes: 15
name: E2E Tests
runs-on: ubuntu-latest-16
steps:
- name: Check out the code
uses: actions/checkout@v4
- name: Setup & Install
uses: ./.github/composite-actions/install
- name: Install Playwright
run: npx playwright install --with-deps
- name: Run e2e tests
run: pnpm e2e:legacy
env:
NODE_OPTIONS: "--max_old_space_size=4096"
CLI_E2E_API_KEY: ${{ secrets.CLI_E2E_API_KEY }}
-135
View File
@@ -1,135 +0,0 @@
name: Build, Lint & Test
on:
push:
branches: ["main"]
pull_request:
types: [opened, synchronize]
# trigger on merge group as well (merge queue)
merge_group:
types: [checks_requested]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
# To use Remote Caching, uncomment the next lines and follow the steps below.
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
TW_SECRET_KEY: ${{ secrets.TW_SECRET_KEY }}
jobs:
build:
timeout-minutes: 15
name: Build
runs-on: ubuntu-latest-16
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 25
- name: Install
uses: ./.github/composite-actions/install
- run: pnpm build
# We use week in the turbo cache key to keep the cache from infinitely growing
- id: get-week
run: echo "WEEK=$(date +%U)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
timeout-minutes: 5
id: cache-build
with:
path: ./*
key: ${{ github.sha }}-${{ github.run_number }}
lint:
timeout-minutes: 15
name: Lint Packages
runs-on: ubuntu-latest
needs: build
steps:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 20
check-latest: true
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/cache@v3
timeout-minutes: 5
id: restore-build
with:
path: ./*
key: ${{ github.sha }}-${{ github.run_number }}
- run: pnpm lint
test:
timeout-minutes: 15
name: Unit Tests
runs-on: ubuntu-latest-16
needs: build
steps:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 20
check-latest: true
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/cache@v3
timeout-minutes: 5
id: restore-build
with:
path: ./*
key: ${{ github.sha }}-${{ github.run_number }}
- run: pnpm test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
files: ./packages/sdk/coverage/evm/lcov.info
e2e:
timeout-minutes: 15
name: E2E Tests
runs-on: ubuntu-latest-16
needs: build
steps:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 20
check-latest: true
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/cache@v3
timeout-minutes: 5
id: restore-build
with:
path: ./*
key: ${{ github.sha }}-${{ github.run_number }}
- name: Install Playwright
run: npx playwright install --with-deps
- name: Run e2e tests
run: pnpm e2e
env:
NODE_OPTIONS: "--max_old_space_size=4096"
CLI_E2E_API_KEY: ${{ secrets.CLI_E2E_API_KEY }}
+34 -31
View File
@@ -13,12 +13,16 @@ name: "CodeQL"
on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
branches: ["main"]
schedule:
- cron: '37 9 * * 3'
- cron: "37 9 * * 3"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
analyze:
@@ -32,41 +36,40 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
language: ["javascript"]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Checkout repository
uses: actions/checkout@v4
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality
# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v3
# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh
# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
-17
View File
@@ -1,17 +0,0 @@
name: Dispatch Doc Generation
on:
push:
branches:
- main
jobs:
dispatch:
runs-on: ubuntu-latest
steps:
- name: Repository Dispatch
uses: peter-evans/[email protected]
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
repository: thirdweb-dev/docs
event-type: generate-docs
+75
View File
@@ -0,0 +1,75 @@
# On the Version Packages branch
# Generate and Commit the Typedoc JSON files and the Snippets JSON files
name: Commit Release Artifacts
on:
push:
branches:
- changeset-release/main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
# cancel any previous runs if they were started before this one
cancel-in-progress: true
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
TW_SECRET_KEY: ${{ secrets.TW_SECRET_KEY }}
jobs:
release-artifacts:
timeout-minutes: 15
runs-on: ubuntu-latest-16
steps:
- name: Checkout branch
uses: actions/checkout@v4
# bun setup is required, because pnpm typdoc will run pnpm build and some packages uses bun for build
- name: Setup bun
uses: oven-sh/setup-bun@v1
with:
bun-version: 1.0.35
- name: Install
uses: ./.github/composite-actions/install
- name: Build
run: pnpm build
- name: Typedoc
run: pnpm typedoc
- name: Generate Docs
run: |
cd legacy_packages/sdk
pnpm generate-docs
cd ../react-core
pnpm generate-docs
cd ../react
pnpm generate-docs
cd ../..
- name: Generate Snippets
run: pnpm generate-snippets
- name: Commit changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git status
git add legacy_packages/react/typedoc/documentation.json.gz
git add legacy_packages/react-core/typedoc/documentation.json.gz
git add legacy_packages/react-native/typedoc/documentation.json.gz
git add legacy_packages/sdk/typedoc/documentation.json.gz
git add legacy_packages/storage/typedoc/documentation.json.gz
git add legacy_packages/wallets/typedoc/documentation.json.gz
git add packages/thirdweb/typedoc/documentation.json.gz
git add snippets/feature_snippets_react.json
git add snippets/feature_snippets_sdk.json
git add snippets/snippets.json
git commit -m "Commit Release Artifacts [skip ci]"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-42
View File
@@ -1,42 +0,0 @@
name: Release Next
on:
push:
paths:
- ".changeset/**"
- "packages/**"
branches:
- next
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Release
timeout-minutes: 30
runs-on: ubuntu-latest-16
steps:
- name: Checkout branch
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install
uses: ./.github/composite-actions/install
- name: Build
run: pnpm build
- name: Create @next release
run: |
git checkout next
pnpm version-packages:next
pnpm release:next
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+7 -2
View File
@@ -51,7 +51,7 @@ jobs:
steps:
- name: get pull request ref
id: get_pull_request_ref
uses: octokit/request-action@v2.1.0
uses: octokit/request-action@v2.3.0
with:
route: GET /repos/{owner}/{repository}/pulls/{issue_id}
owner: ${{ github.repository_owner }}
@@ -61,12 +61,17 @@ jobs:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: pull the repo.
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: true
repository: ${{ fromJson(steps.get_pull_request_ref.outputs.data).head.repo.full_name }}
ref: ${{ fromJson(steps.get_pull_request_ref.outputs.data).head.ref }}
- name: Setup bun
uses: oven-sh/setup-bun@v1
with:
bun-version: 1.0.35
- name: Install
uses: ./.github/composite-actions/install
+14 -3
View File
@@ -1,3 +1,6 @@
# Using CUSTOM_GITHUB_TOKEN instead of GITHUB_TOKEN is required to trigger workflows in "Version Packages" PR created by changesets/action
# CUSTOM_GITHUB_TOKEN should be a PAT with write access to the repo and has to be created and set as a secret in the repo manually
name: Release Nightly & Stable
on:
@@ -5,6 +8,7 @@ on:
paths:
- ".changeset/**"
- "packages/**"
- "legacy_packages/**"
branches:
- main
@@ -22,9 +26,16 @@ jobs:
runs-on: ubuntu-latest-16
steps:
- name: Checkout branch
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
# Do not use the GITHUB_TOKEN by default
token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
- name: Setup bun
uses: oven-sh/setup-bun@v1
with:
bun-version: 1.0.35
- name: Install
uses: ./.github/composite-actions/install
@@ -41,7 +52,7 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
- name: Create @nightly release
if: steps.changesets.outputs.published != 'true'
@@ -51,4 +62,4 @@ jobs:
pnpm release:nightly
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
+24 -9
View File
@@ -10,33 +10,48 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Install bun
uses: oven-sh/setup-bun@v1
with:
bun-version: 1.0.35
- name: Run chains sync
run: bun run db:sync
working-directory: ./packages/chains
working-directory: ./legacy_packages/chains
- name: Check for Changes
id: git-check
run: |
git diff --exit-code || echo "step.git-check.outputs.changes=true" >> $GITHUB_ENV
if git diff --quiet; then
echo "CHANGES_FOUND=false" >> $GITHUB_ENV
else
echo "CHANGES_FOUND=true" >> $GITHUB_ENV
fi
- name: Create or Update sync-chains.md
if: env.CHANGES_FOUND == 'true'
run: |
echo '---' > .changeset/sync-chains.md
echo '"@thirdweb-dev/chains": patch' >> .changeset/sync-chains.md
echo '---' >> .changeset/sync-chains.md
echo '' >> .changeset/sync-chains.md
echo 'Synced Chains Package' >> .changeset/sync-chains.md
- name: Commit Changes
if: env.step.git-check.outputs.changes == 'true'
if: env.CHANGES_FOUND == 'true'
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add -A
git commit -m "chore(chains): sync from db"
- name: Create or Update Pull Request
if: env.step.git-check.outputs.changes == 'true'
uses: peter-evans/create-pull-request@v3
if: env.CHANGES_FOUND == 'true'
uses: peter-evans/create-pull-request@v6
with:
title: "chore(chains): update chains"
branch: "sync-chains" # You can specify a different branch name if you wish
branch: "sync-chains"
body: "This PR was automatically created by a GitHub Action. It updates the chains package with the latest changes from the database."
commit-message: "chore(chains): sync from db"
+4 -4
View File
@@ -10,16 +10,16 @@ dist-ssr
.cache
server/dist
public/dist
./packages/contracts-js/abis
./legacy_packages/contracts-js/abis
.idea/
.yalc/
yalc.lock
build/
playwright-report/
.vscode/
.env/
# Artifacts
packages/cli/artifacts/
legacy_packages/cli/artifacts/
typedoc
# codecov binary
codecov
+7
View File
@@ -0,0 +1,7 @@
{
"recommendations": ["biomejs.biome"],
"unwantedRecommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode"
]
}
+12
View File
@@ -0,0 +1,12 @@
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "biomejs.biome",
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit",
"source.organizeImports.biome": "explicit"
},
"typescript.preferences.importModuleSpecifier": "relative",
"[typescriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
}
}
+42 -25
View File
@@ -1,53 +1,70 @@
<p align="center">
<br />
<a href="https://thirdweb.com">
<img src="https://github.com/thirdweb-dev/js/blob/main/packages/sdk/logo.svg?raw=true" width="200" alt=""/></a>
<img src="https://github.com/thirdweb-dev/js/blob/main/legacy_packages/sdk/logo.svg?raw=true" width="200" alt=""/></a>
<br />
</p>
<h1 align="center"><a href='https://thirdweb.com/'>thirdweb</a> JavaScript/TypeScript monorepo</h1>
<h1 align="center"><a href='https://thirdweb.com/'>thirdweb</a> TypeScript SDK</h1>
<p align="center">
<a href="https://github.com/thirdweb-dev/js/actions/workflows/build-test-lint.yml">
<img alt="Build Status" src="https://github.com/thirdweb-dev/js/actions/workflows/build-test-lint.yml/badge.svg"/>
<a href="https://github.com/thirdweb-dev/js/actions/workflows/CI.yml">
<img alt="Build Status" src="https://github.com/thirdweb-dev/js/actions/workflows/CI.yml/badge.svg"/>
</a>
<a href="https://discord.gg/thirdweb">
<img alt="Join our Discord!" src="https://img.shields.io/discord/834227967404146718.svg?color=7289da&label=discord&logo=discord&style=flat"/>
</a>
</p>
<p align="center"><strong>Best in class web3 SDKs for Browser, Node and Mobile apps</strong></p>
<p align="center"><strong>All-in-one web3 SDK for Browser, Node and Mobile apps</strong></p>
## Packages
## Features
| Package | Description | Latest Version |
| ---------------------------------------- | --------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [/sdk](./packages/sdk) | Best in class web3 SDK for Browser, Node and Mobile apps | <a href="https://www.npmjs.com/package/@thirdweb-dev/sdk"><img src="https://img.shields.io/npm/v/@thirdweb-dev/sdk?color=red&label=npm&logo=npm" alt="npm version"/></a> |
| [/wallets](./packages/wallets) | Unified web3 Wallet library to integrate any wallet into your applications. | <a href="https://www.npmjs.com/package/@thirdweb-dev/wallets"><img src="https://img.shields.io/npm/v/@thirdweb-dev/wallets?color=red&label=npm&logo=npm" alt="npm version"/></a> |
| [/react](./packages/react) | Ultimate collection of React hooks for your web3 apps | <a href="https://www.npmjs.com/package/@thirdweb-dev/react"><img src="https://img.shields.io/npm/v/@thirdweb-dev/react?color=red&label=npm&logo=npm" alt="npm version"/></a> |
| [/react-native](./packages/react-native) | Ultimate collection of React hooks for your native mobile web3 apps | <a href="https://www.npmjs.com/package/@thirdweb-dev/react-native"><img src="https://img.shields.io/npm/v/@thirdweb-dev/react-native?color=red&label=npm&logo=npm" alt="npm version"/></a> |
| [/auth](./packages/auth) | Best in class wallet authentication for Node backends | <a href="https://www.npmjs.com/package/@thirdweb-dev/auth"><img src="https://img.shields.io/npm/v/@thirdweb-dev/auth?color=red&label=npm&logo=npm" alt="npm version"/></a> |
| [/storage](./packages/storage) | Best in class decentralized storage SDK for Browser and Node | <a href="https://www.npmjs.com/package/@thirdweb-dev/storage"><img src="https://img.shields.io/npm/v/@thirdweb-dev/storage?color=red&label=npm&logo=npm" alt="npm version"/></a> |
| [/cli](./packages/cli) | Publish and deploy smart contracts without dealing with private keys | <a href="https://www.npmjs.com/package/thirdweb"><img src="https://img.shields.io/npm/v/thirdweb?color=red&label=npm&logo=npm" alt="npm version"/></a> |
| [/chains](./packages/chains) | All EVM chain information as JS objects for easy handling | <a href="https://www.npmjs.com/package/@thirdweb-dev/chains"><img src="https://img.shields.io/npm/v/@thirdweb-dev/chains?color=red&label=npm&logo=npm" alt="npm version"/></a> |
- Support for React & React-Native
- First party support for [Embedded Wallets](https://portal.thirdweb.com/connect/embedded-wallet/overview) (social/email login)
- First party support for [Account Abstraction](https://portal.thirdweb.com/connect/account-abstraction)
- Instant connection to any chain with RPC Edge integration
- Integrated IPFS upload/download
- UI Components for connection, transactions, nft rendering
- High level contract extensions for interacting with common standards
- Automatic ABI resolution
## Documentation
## Library Comparison
Visit [https://portal.thirdweb.com/](https://portal.thirdweb.com/) to view the full documentation.
<br />
| | thirdweb | Wagmi | Viem | Ethers@6 |
| ----------------------------------------- | -------- | ------------------ | ------------------ | -------- |
| Type safe contract API | ✅ | ✅ | ✅ | ✅ |
| Type safe wallet API | ✅ | ✅ | ✅ | ✅ |
| EVM utils | ✅ | ❌ | ✅ | ✅ |
| RPC for any EVM | ✅  | ⚠️ public RPC only | ⚠️ public RPC only | ❌ |
| Automatic ABI Resolution | ✅ | ❌ | ❌ | ❌ |
| IPFS Upload/Download | ✅ | ❌ | ❌ | ❌ |
| Embedded wallet (email/ social login) | ✅ | ⚠️ via 3rd party | ❌ | ❌ |
| Account abstraction (ERC4337) support | ✅ | ⚠️ via 3rd party | ⚠️ via 3rd party | ❌ |
| Web3 wallet connectors | ✅ | ✅ | ❌ | ❌ |
| Local wallet creation | ✅ | ❌ | ✅ | ✅ |
| Auth (SIWE) | ✅ | ⚠️ via 3rd party | ❌ | ❌ |
| Extensions functions for common standards | ✅ | ❌ | ❌ | ❌ |
| React Hooks | ✅ | ✅ | ❌ | ❌ |
| React UI components | ✅ | ❌ | ❌ | ❌ |
| React Native Hooks | ✅ | ❌ | ❌ | ❌ |
| React Native UI Components | ✅ | ❌ | ❌ | ❌ |
## Contributing
We welcome contributions from all developers, regardless of experience level. If you are interested in contributing, please read our [Contributing Guide](.github/contributing.md) where you'll learn how the repo works, how to test your changes, and how to submit a pull request.
We welcome contributions from all developers regardless of experience level. If you are interested in contributing, please read our [Contributing Guide](.github/contributing.md) to learn how the repo works, how to test your changes, and how to submit a pull request.
<br />
See our [open source page](https://thirdweb.com/open-source) for more information on our open-source bounties and program.
## Community
## Additional Resources
The best place to discuss your ideas, ask questions, and troubleshoot issues is our [Discord server](https://discord.gg/thirdweb).
- [Documentation](https://portal.thirdweb.com/typescript/v5)
- [Templates](https://thirdweb.com/templates)
- [YouTube](https://www.youtube.com/c/thirdweb)
<br/>
## Support
For help or feedback, please [visit our support site](https://thirdweb.com/support)
## Security
+25
View File
@@ -0,0 +1,25 @@
{
"$schema": "https://biomejs.dev/schemas/1.6.4/schema.json",
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"formatter": {
"enabled": true,
"indentStyle": "space"
},
"files": {
"ignore": [
"legacy_packages/**",
"packages/thirdweb/src/crypto/aes/lib/md5.ts",
"packages/thirdweb/src/utils/promise/p-limit.ts",
"packages/thirdweb/src/utils/bytecode/cbor-decode.ts",
"packages/thirdweb/src/**/__generated__/**"
]
}
}
+30
View File
@@ -0,0 +1,30 @@
coverage:
status:
project:
default:
target: auto
patch:
packages:
target: auto
flags:
- packages
legacy_packages:
target: auto
flags:
- legacy_packages
github_checks:
annotations: true
flag_management:
default_rules:
carryforward: true
comment:
layout: "newheader, diff, flags, files"
require_changes: false # if true: only post the comment if coverage changes
require_base: false # [yes :: must have a base report to post]
require_head: true # [yes :: must have a head report to post]
show_carryforward_flags: true
hide_comment_details: true #collapse all the "detailed info" for the PR comment
@@ -0,0 +1,3 @@
import { ThirdwebAuth } from "@thirdweb-dev/auth";
new ThirdwebAuth();
@@ -0,0 +1,3 @@
import { Ethereum, getChainBySlug } from "@thirdweb-dev/chains";
getChainBySlug("ethereum");
@@ -0,0 +1,3 @@
import { sha256 } from "@thirdweb-dev/crypto";
sha256("hello world");
@@ -0,0 +1,3 @@
import { MerkleTree } from "@thirdweb-dev/merkletree";
new MerkleTree([]);
@@ -0,0 +1,3 @@
import { ThirdwebSDK } from "@thirdweb-dev/sdk";
new ThirdwebSDK(1);
@@ -0,0 +1,3 @@
import { ThirdwebStorage } from "@thirdweb-dev/storage";
new ThirdwebStorage();
@@ -0,0 +1,3 @@
import { LocalWallet } from "@thirdweb-dev/wallets";
new LocalWallet();
+20
View File
@@ -0,0 +1,20 @@
{
"name": "bundlers-esbuild",
"private": true,
"dependencies": {
"@thirdweb-dev/auth": "workspace:*",
"@thirdweb-dev/chains": "workspace:*",
"@thirdweb-dev/crypto": "workspace:*",
"@thirdweb-dev/merkletree": "workspace:*",
"@thirdweb-dev/sdk": "workspace:*",
"@thirdweb-dev/storage": "workspace:*",
"@thirdweb-dev/wallets": "workspace:*"
},
"scripts": {
"e2e": "bun run.ts"
},
"devDependencies": {
"esbuild": "0.20.2",
"ora": "^6.3.1"
}
}
+27
View File
@@ -0,0 +1,27 @@
import { $ } from "bun";
import fs from "node:fs/promises";
import ora from "ora";
const fixtures = await fs.readdir("./fixtures");
const spinner = ora("Running fixtures: ").start();
for (const fixture of fixtures) {
spinner.suffixText = fixture;
try {
await $`esbuild fixtures/${fixture} --bundle`.text();
} catch (error) {
if (error.exitCode !== 0) {
console.error(error);
spinner.fail("Failed to run fixture: " + fixture);
// await fs.rm("./fixtures/index.html");
process.exit(1);
}
}
}
// await fs.rm("./fixtures/index.html");
spinner.suffixText = "";
spinner.succeed("All fixtures ran successfully");
+3
View File
@@ -0,0 +1,3 @@
import { ThirdwebAuth } from "@thirdweb-dev/auth";
new ThirdwebAuth();
@@ -0,0 +1,3 @@
import { Ethereum, getChainBySlug } from "@thirdweb-dev/chains";
getChainBySlug("ethereum");
@@ -0,0 +1,3 @@
import { sha256 } from "@thirdweb-dev/crypto";
sha256("hello world");
@@ -0,0 +1,3 @@
import { MerkleTree } from "@thirdweb-dev/merkletree";
new MerkleTree([]);
+3
View File
@@ -0,0 +1,3 @@
import { ThirdwebSDK } from "@thirdweb-dev/sdk";
new ThirdwebSDK(1);
@@ -0,0 +1,3 @@
import { ThirdwebStorage } from "@thirdweb-dev/storage";
new ThirdwebStorage();
@@ -0,0 +1,3 @@
import { LocalWallet } from "@thirdweb-dev/wallets";
new LocalWallet();
+21
View File
@@ -0,0 +1,21 @@
{
"name": "bundlers-swc",
"private": true,
"dependencies": {
"@thirdweb-dev/auth": "workspace:*",
"@thirdweb-dev/chains": "workspace:*",
"@thirdweb-dev/crypto": "workspace:*",
"@thirdweb-dev/merkletree": "workspace:*",
"@thirdweb-dev/sdk": "workspace:*",
"@thirdweb-dev/storage": "workspace:*",
"@thirdweb-dev/wallets": "workspace:*"
},
"scripts": {
"e2e": "bun run.ts"
},
"devDependencies": {
"@swc/cli": "0.3.10",
"@swc/core": "^1.4.12",
"ora": "^6.3.1"
}
}
+27
View File
@@ -0,0 +1,27 @@
import { $ } from "bun";
import fs from "node:fs/promises";
import ora from "ora";
const fixtures = await fs.readdir("./fixtures");
const spinner = ora("Running fixtures: ").start();
for (const fixture of fixtures) {
spinner.suffixText = fixture;
try {
await $`bunx swc fixtures/${fixture}`.text();
} catch (error) {
if (error.exitCode !== 0) {
console.error(error);
spinner.fail("Failed to run fixture: " + fixture);
// await fs.rm("./fixtures/index.html");
process.exit(1);
}
}
}
// await fs.rm("./fixtures/index.html");
spinner.suffixText = "";
spinner.succeed("All fixtures ran successfully");
@@ -0,0 +1,3 @@
import { ThirdwebAuth } from "@thirdweb-dev/auth";
new ThirdwebAuth();
@@ -0,0 +1,3 @@
import { Ethereum, getChainBySlug } from "@thirdweb-dev/chains";
getChainBySlug("ethereum");
@@ -0,0 +1,3 @@
import { sha256 } from "@thirdweb-dev/crypto";
sha256("hello world");
@@ -0,0 +1,3 @@
import { MerkleTree } from "@thirdweb-dev/merkletree";
new MerkleTree([]);
+3
View File
@@ -0,0 +1,3 @@
import { ThirdwebSDK } from "@thirdweb-dev/sdk";
new ThirdwebSDK(1);
@@ -0,0 +1,3 @@
import { ThirdwebStorage } from "@thirdweb-dev/storage";
new ThirdwebStorage();
@@ -0,0 +1,3 @@
import { LocalWallet } from "@thirdweb-dev/wallets";
new LocalWallet();
+20
View File
@@ -0,0 +1,20 @@
{
"name": "bundlers-vite",
"private": true,
"dependencies": {
"@thirdweb-dev/auth": "workspace:*",
"@thirdweb-dev/chains": "workspace:*",
"@thirdweb-dev/crypto": "workspace:*",
"@thirdweb-dev/merkletree": "workspace:*",
"@thirdweb-dev/sdk": "workspace:*",
"@thirdweb-dev/storage": "workspace:*",
"@thirdweb-dev/wallets": "workspace:*"
},
"scripts": {
"e2e": "bun run.ts"
},
"devDependencies": {
"ora": "^6.3.1",
"vite": "^5.2.8"
}
}
+39
View File
@@ -0,0 +1,39 @@
import { $ } from "bun";
import fs from "node:fs/promises";
import ora from "ora";
const fixtures = await fs.readdir("./fixtures");
const spinner = ora("Running fixtures: ").start();
for (const fixture of fixtures) {
spinner.suffixText = fixture;
try {
// write a basic template index.html file that includes the fixture
await fs.writeFile(
"./fixtures/index.html",
`<html>
<head>
<script type="module" src="./${fixture}"></script>
</head>
</html>
`,
);
await $`vite build fixtures/`.text();
} catch (error) {
if (error.exitCode !== 0) {
console.error(error);
spinner.fail("Failed to run fixture: " + fixture);
await fs.rm("./fixtures/index.html");
await fs.rmdir("./fixtures/dist", { recursive: true });
process.exit(1);
}
}
}
await fs.rm("./fixtures/index.html");
await fs.rmdir("./fixtures/dist", { recursive: true });
spinner.suffixText = "";
spinner.succeed("All fixtures ran successfully");
@@ -0,0 +1,3 @@
import { ThirdwebAuth } from "@thirdweb-dev/auth";
new ThirdwebAuth();
@@ -0,0 +1,3 @@
import { Ethereum, getChainBySlug } from "@thirdweb-dev/chains";
getChainBySlug("ethereum");
@@ -0,0 +1,3 @@
import { sha256 } from "@thirdweb-dev/crypto";
sha256("hello world");
@@ -0,0 +1,3 @@
import { MerkleTree } from "@thirdweb-dev/merkletree";
new MerkleTree([]);
@@ -0,0 +1,3 @@
import { ThirdwebSDK } from "@thirdweb-dev/sdk";
new ThirdwebSDK(1);
@@ -0,0 +1,3 @@
import { ThirdwebStorage } from "@thirdweb-dev/storage";
new ThirdwebStorage();
@@ -0,0 +1,3 @@
import { LocalWallet } from "@thirdweb-dev/wallets";
new LocalWallet();
+21
View File
@@ -0,0 +1,21 @@
{
"name": "bundlers-webpack",
"private": true,
"dependencies": {
"@thirdweb-dev/auth": "workspace:*",
"@thirdweb-dev/chains": "workspace:*",
"@thirdweb-dev/crypto": "workspace:*",
"@thirdweb-dev/merkletree": "workspace:*",
"@thirdweb-dev/sdk": "workspace:*",
"@thirdweb-dev/storage": "workspace:*",
"@thirdweb-dev/wallets": "workspace:*"
},
"scripts": {
"e2e": "bun run.ts"
},
"devDependencies": {
"ora": "^6.3.1",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4"
}
}
+28
View File
@@ -0,0 +1,28 @@
import { $ } from "bun";
import fs from "node:fs/promises";
import ora from "ora";
const fixtures = await fs.readdir("./fixtures");
const spinner = ora("Running fixtures: ").start();
for (const fixture of fixtures) {
spinner.suffixText = fixture;
try {
await $`webpack build ./fixtures/${fixture} --mode=production`.text();
} catch (error) {
if (error.exitCode !== 0) {
console.error(error);
spinner.fail("Fixture failed:");
await fs.rmdir("./dist", { recursive: true });
process.exit(1);
}
}
}
await fs.rmdir("./dist", { recursive: true });
spinner.suffixText = "";
spinner.succeed("All fixtures ran successfully");
@@ -0,0 +1,3 @@
const { ThirdwebAuth } = require("@thirdweb-dev/auth");
new ThirdwebAuth();
@@ -0,0 +1,3 @@
const { Ethereum, getChainBySlug } = require("@thirdweb-dev/chains");
getChainBySlug("ethereum");
@@ -0,0 +1,3 @@
const { sha256 } = require("@thirdweb-dev/crypto");
sha256("hello world");
@@ -0,0 +1,3 @@
const { MerkleTree } = require("@thirdweb-dev/merkletree");
new MerkleTree([]);
@@ -0,0 +1,3 @@
const { ThirdwebSDK } = require("@thirdweb-dev/sdk");
new ThirdwebSDK(1);
@@ -0,0 +1,3 @@
const { ThirdwebStorage } = require("@thirdweb-dev/storage");
new ThirdwebStorage();
@@ -0,0 +1,3 @@
const { LocalWallet } = require("@thirdweb-dev/wallets");
new LocalWallet();
@@ -0,0 +1,20 @@
{
"name": "runtimes-node-commonjs",
"private": true,
"type": "commonjs",
"dependencies": {
"@thirdweb-dev/auth": "workspace:*",
"@thirdweb-dev/chains": "workspace:*",
"@thirdweb-dev/crypto": "workspace:*",
"@thirdweb-dev/merkletree": "workspace:*",
"@thirdweb-dev/sdk": "workspace:*",
"@thirdweb-dev/storage": "workspace:*",
"@thirdweb-dev/wallets": "workspace:*"
},
"scripts": {
"e2e": "bun run.ts"
},
"devDependencies": {
"ora": "^6.3.1"
}
}
+22
View File
@@ -0,0 +1,22 @@
import { $ } from "bun";
import fs from "node:fs/promises";
import ora from "ora";
const fixtures = await fs.readdir("./fixtures");
const spinner = ora("Running fixtures: ").start();
for (const fixture of fixtures) {
spinner.suffixText = fixture;
try {
await $`node fixtures/${fixture}`.text();
} catch (error) {
if (error.exitCode !== 0) {
console.error(error);
spinner.fail("Failed to run fixture: " + fixture);
process.exit(1);
}
}
}
spinner.succeed("All fixtures ran successfully");
@@ -0,0 +1,3 @@
import { ThirdwebAuth } from "@thirdweb-dev/auth";
new ThirdwebAuth();
@@ -0,0 +1,3 @@
import { Ethereum, getChainBySlug } from "@thirdweb-dev/chains";
getChainBySlug("ethereum");
@@ -0,0 +1,3 @@
import { sha256 } from "@thirdweb-dev/crypto";
sha256("hello world");
@@ -0,0 +1,3 @@
import { MerkleTree } from "@thirdweb-dev/merkletree";
new MerkleTree([]);
@@ -0,0 +1,3 @@
import { ThirdwebSDK } from "@thirdweb-dev/sdk";
new ThirdwebSDK(1);
@@ -0,0 +1,3 @@
import { ThirdwebStorage } from "@thirdweb-dev/storage";
new ThirdwebStorage();
@@ -0,0 +1,3 @@
import { LocalWallet } from "@thirdweb-dev/wallets";
new LocalWallet();
@@ -0,0 +1,20 @@
{
"name": "runtimes-node-module",
"private": true,
"type": "module",
"dependencies": {
"@thirdweb-dev/auth": "workspace:*",
"@thirdweb-dev/chains": "workspace:*",
"@thirdweb-dev/crypto": "workspace:*",
"@thirdweb-dev/merkletree": "workspace:*",
"@thirdweb-dev/sdk": "workspace:*",
"@thirdweb-dev/storage": "workspace:*",
"@thirdweb-dev/wallets": "workspace:*"
},
"scripts": {
"e2e": "bun run.ts"
},
"devDependencies": {
"ora": "^6.3.1"
}
}
+22
View File
@@ -0,0 +1,22 @@
import { $ } from "bun";
import fs from "node:fs/promises";
import ora from "ora";
const fixtures = await fs.readdir("./fixtures");
const spinner = ora("Running fixtures: ").start();
for (const fixture of fixtures) {
spinner.suffixText = fixture;
try {
await $`node fixtures/${fixture}`.text();
} catch (error) {
if (error.exitCode !== 0) {
console.error(error);
spinner.fail("Failed to run fixture: " + fixture);
process.exit(1);
}
}
}
spinner.succeed("All fixtures ran successfully");
File diff suppressed because it is too large Load Diff
+38
View File
@@ -0,0 +1,38 @@
<p align="center">
<br />
<a href="https://thirdweb.com"><img src="https://github.com/thirdweb-dev/js/blob/main/legacy_packages/sdk/logo.svg?raw=true" width="200" alt=""/></a>
<br />
</p>
<h1 align="center">thirdweb Auth</h1>
<p align="center">
<a href="https://www.npmjs.com/package/@thirdweb-dev/auth"><img src="https://img.shields.io/npm/v/@thirdweb-dev/auth?color=red&label=npm&logo=npm" alt="npm version"/></a>
<a href="https://github.com/thirdweb-dev/js/actions/workflows/build-test-lint.yml"><img alt="Build Status" src="https://github.com/thirdweb-dev/js/actions/workflows/build-test-lint.yml/badge.svg"/></a>
<a href="https://discord.gg/thirdweb"><img alt="Join our Discord!" src="https://img.shields.io/discord/834227967404146718.svg?color=7289da&label=discord&logo=discord&style=flat"/></a>
</p>
<p align="center"><strong>Best in class wallet authentication for Node backends</strong></p>
<br />
## Overview
Auth is a developer SDK that lets you integrate passwordless web3-native authentication and authorization into your applications.
It enables users to sign in with their wallets, allowing apps to access rich blockchain-level data and interact with their users on-chain.
With Auth, developers can build applications that have secure, self-custodied, web3-first authentication.
## Installation
Install the latest version of the SDK with either `npm` or `yarn`:
```shell
npm install @thirdweb-dev/auth
```
```shell
yarn add @thirdweb-dev/auth
```
## Resources
- Check out the [Auth Documentation](https://portal.thirdweb.com/auth) for full guides and API references on how to use Auth.
+147
View File
@@ -0,0 +1,147 @@
{
"name": "@thirdweb-dev/auth",
"version": "4.1.60",
"main": "dist/thirdweb-dev-auth.cjs.js",
"module": "dist/thirdweb-dev-auth.esm.js",
"browser": {
"./dist/thirdweb-dev-auth.esm.js": "./dist/thirdweb-dev-auth.browser.esm.js"
},
"exports": {
".": {
"module": {
"browser": "./dist/thirdweb-dev-auth.browser.esm.js",
"default": "./dist/thirdweb-dev-auth.esm.js"
},
"default": "./dist/thirdweb-dev-auth.cjs.js"
},
"./evm": {
"module": {
"browser": "./evm/dist/thirdweb-dev-auth-evm.browser.esm.js",
"default": "./evm/dist/thirdweb-dev-auth-evm.esm.js"
},
"default": "./evm/dist/thirdweb-dev-auth-evm.cjs.js"
},
"./next": {
"module": {
"browser": "./next/dist/thirdweb-dev-auth-next.browser.esm.js",
"default": "./next/dist/thirdweb-dev-auth-next.esm.js"
},
"default": "./next/dist/thirdweb-dev-auth-next.cjs.js"
},
"./express": {
"module": {
"browser": "./express/dist/thirdweb-dev-auth-express.browser.esm.js",
"default": "./express/dist/thirdweb-dev-auth-express.esm.js"
},
"default": "./express/dist/thirdweb-dev-auth-express.cjs.js"
},
"./fastify": {
"module": {
"browser": "./fastify/dist/thirdweb-dev-auth-fastify.browser.esm.js",
"default": "./fastify/dist/thirdweb-dev-auth-fastify.esm.js"
},
"default": "./fastify/dist/thirdweb-dev-auth-fastify.cjs.js"
},
"./next-auth": {
"module": {
"browser": "./next-auth/dist/thirdweb-dev-auth-next-auth.browser.esm.js",
"default": "./next-auth/dist/thirdweb-dev-auth-next-auth.esm.js"
},
"default": "./next-auth/dist/thirdweb-dev-auth-next-auth.cjs.js"
},
"./package.json": "./package.json"
},
"repository": "https://github.com/thirdweb-dev/js/tree/main/legacy_packages/auth",
"author": "thirdweb eng <[email protected]>",
"license": "Apache-2.0",
"sideEffects": false,
"scripts": {
"build": "preconstruct build",
"format": "prettier --write 'src/**/*'",
"lint": "eslint src/",
"fix": "eslint src/ --fix",
"clean": "rm -rf dist/ && rm -rf node_modules/",
"test": "vitest run",
"push": "yalc push"
},
"preconstruct": {
"entrypoints": [
"index.ts",
"express/index.ts",
"next/index.ts",
"next-auth/index.ts",
"fastify/index.ts",
"evm/index.ts"
],
"exports": {
"envConditions": [
"browser"
]
}
},
"devDependencies": {
"@microsoft/api-documenter": "^7.24.1",
"@microsoft/api-extractor": "^7.43.0",
"@microsoft/tsdoc": "^0.14.2",
"@preconstruct/cli": "2.7.0",
"@swc-node/register": "^1.9.0",
"@swc/core": "^1.4.12",
"@thirdweb-dev/tsconfig": "workspace:*",
"@types/cookie": "^0.6.0",
"@types/cookie-parser": "^1.4.7",
"@types/express": "^4.17.21",
"@types/uuid": "^9.0.8",
"cookie-parser": "^1.4.6",
"eslint": "8.57.0",
"eslint-config-thirdweb": "workspace:*",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-inclusive-language": "^2.2.1",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-tsdoc": "^0.2.17",
"ethers": "^5.7.2",
"express": "^4.19.2",
"fastify": "^4.26.2",
"next": "^13.5.6",
"next-auth": "^4.24.7",
"typescript": "5.4.4"
},
"peerDependencies": {
"cookie-parser": "^1.4.6",
"ethers": "^5",
"express": "^4",
"fastify": "^4.25.2",
"next": "^13.4 || ^14",
"next-auth": "^4"
},
"peerDependenciesMeta": {
"cookie-parser": {
"optional": true
},
"ethers": {
"optional": true
},
"express": {
"optional": true
},
"fastify": {
"optional": true
},
"next": {
"optional": true
},
"next-auth": {
"optional": true
}
},
"dependencies": {
"@fastify/cookie": "^9.3.1",
"@thirdweb-dev/wallets": "workspace:*",
"cookie": "^0.6.0",
"fastify-type-provider-zod": "^1.1.9",
"uuid": "^9.0.1",
"zod": "^3.22.4"
},
"engines": {
"node": ">=18"
}
}
+127
View File
@@ -0,0 +1,127 @@
import {
authenticateJWT,
generateJWT,
parseJWT,
refreshJWT,
} from "./functions/jwt";
import {
buildAndSignLoginPayload,
buildLoginPayload,
signLoginPayload,
verifyLoginPayload,
} from "./functions/login";
import type { GenericAuthWallet } from "@thirdweb-dev/wallets";
import { Json, User } from "./schema/common";
import {
LoginOptionsWithOptionalDomain,
LoginPayload,
LoginPayloadData,
} from "./schema/login";
import { VerifyOptionsWithOptionalDomain } from "./schema/verify";
import { GenerateOptionsWithOptionalDomain } from "./schema/generate";
import {
AuthenticateOptionsWithOptionalDomain,
AuthenticationPayload,
} from "./schema/authenticate";
import { ThirdwebAuthOptions } from "./types";
export class ThirdwebAuth {
private domain: string;
private wallet: GenericAuthWallet;
private options: ThirdwebAuthOptions;
constructor(
wallet: GenericAuthWallet,
domain: string,
options: ThirdwebAuthOptions = {},
) {
this.wallet = wallet;
this.domain = domain;
this.options = options;
}
public updateWallet(wallet: GenericAuthWallet) {
this.wallet = wallet;
}
public async payload(
options?: LoginOptionsWithOptionalDomain,
): Promise<LoginPayloadData> {
return buildLoginPayload({
wallet: this.wallet,
options: this.formatOptions(options),
});
}
public async loginWithPayload(
payload: LoginPayloadData,
): Promise<LoginPayload> {
return signLoginPayload({ wallet: this.wallet, payload });
}
public async login(
options?: LoginOptionsWithOptionalDomain,
): Promise<LoginPayload> {
return buildAndSignLoginPayload({
wallet: this.wallet,
options: this.formatOptions(options),
});
}
public async verify(
payload: LoginPayload,
options?: VerifyOptionsWithOptionalDomain,
): Promise<string> {
return verifyLoginPayload({
payload,
options: this.formatOptions(options),
clientOptions: this.options,
});
}
public async generate(
payload: LoginPayload,
options?: GenerateOptionsWithOptionalDomain,
): Promise<string> {
return generateJWT({
wallet: this.wallet,
payload,
options: this.formatOptions(options),
clientOptions: this.options,
});
}
public async refresh(jwt: string, expirationTime?: Date): Promise<string> {
return refreshJWT({
wallet: this.wallet,
jwt,
options: { expirationTime },
});
}
public async authenticate<TSession extends Json = Json>(
jwt: string,
options?: AuthenticateOptionsWithOptionalDomain,
): Promise<User<TSession>> {
return authenticateJWT({
wallet: this.wallet,
jwt,
options: this.formatOptions(options),
clientOptions: this.options,
});
}
public parseToken(jwt: string): AuthenticationPayload {
return parseJWT(jwt);
}
private formatOptions<TOptions extends { domain?: string }>(
options?: TOptions,
): Omit<TOptions, "domain"> & { domain: string } {
return options
? { ...options, domain: options?.domain || this.domain }
: ({ domain: this.domain } as Omit<TOptions, "domain"> & {
domain: string;
});
}
}
@@ -14,6 +14,7 @@ import {
import { GenerateOptionsSchema } from "../schema/generate";
import { RefreshOptionsSchema } from "../schema/refresh";
import { verifyLoginPayload } from "./login";
import { verifySignature } from "./verify-signature";
function isBrowser() {
return typeof window !== "undefined";
@@ -71,15 +72,16 @@ export async function generateJWT({
wallet,
payload,
options,
clientOptions,
}: GenerateJwtParams): Promise<string> {
const parsedOptions = GenerateOptionsSchema.parse(options);
const userAddress = await verifyLoginPayload({
wallet,
payload,
options: {
domain: parsedOptions.domain,
...parsedOptions.verifyOptions,
},
clientOptions,
});
let session: Json | undefined = undefined;
@@ -156,6 +158,7 @@ export async function authenticateJWT<TSession extends Json = Json>({
wallet,
jwt,
options,
clientOptions,
}: AuthenticateJwtParams): Promise<User<TSession>> {
const parsedOptions = AuthenticateOptionsSchema.parse(options);
const { payload, signature } = parseJWT(jwt);
@@ -210,11 +213,13 @@ export async function authenticateJWT<TSession extends Json = Json>({
}
}
const verified = await wallet.verifySignature(
const verified = await verifySignature(
JSON.stringify(payload),
signature,
issuerAddress,
chainId,
clientOptions.clientId,
clientOptions.secretKey,
);
if (!verified) {
throw new Error(
@@ -0,0 +1,222 @@
import {
BuildLoginPayloadParams,
SignLoginPayloadParams,
VerifyLoginPayloadParams,
} from "../schema/functions";
import {
LoginOptionsSchema,
LoginPayload,
LoginPayloadData,
LoginPayloadDataSchema,
} from "../schema/login";
import { VerifyOptionsSchema } from "../schema/verify";
import { verifySignature } from "./verify-signature";
/**
* Create an EIP-4361 & CAIP-122 compliant message to sign based on the login payload
*/
function createLoginMessage(payload: LoginPayloadData): string {
const typeField = "Ethereum";
const header = `${payload.domain} wants you to sign in with your ${typeField} account:`;
let prefix = [header, payload.address].join("\n");
prefix = [prefix, payload.statement].join("\n\n");
if (payload.statement) {
prefix += "\n";
}
const suffixArray = [];
if (payload.uri) {
const uriField = `URI: ${payload.uri}`;
suffixArray.push(uriField);
}
const versionField = `Version: ${payload.version}`;
suffixArray.push(versionField);
if (payload.chain_id) {
const chainField = `Chain ID: ` + payload.chain_id || "1";
suffixArray.push(chainField);
}
const nonceField = `Nonce: ${payload.nonce}`;
suffixArray.push(nonceField);
const issuedAtField = `Issued At: ${payload.issued_at}`;
suffixArray.push(issuedAtField);
const expiryField = `Expiration Time: ${payload.expiration_time}`;
suffixArray.push(expiryField);
if (payload.invalid_before) {
const invalidBeforeField = `Not Before: ${payload.invalid_before}`;
suffixArray.push(invalidBeforeField);
}
if (payload.resources) {
suffixArray.push(
[`Resources:`, ...payload.resources.map((x) => `- ${x}`)].join("\n"),
);
}
const suffix = suffixArray.join("\n");
return [prefix, suffix].join("\n");
}
export async function buildLoginPayload({
wallet,
options,
}: BuildLoginPayloadParams): Promise<LoginPayloadData> {
const parsedOptions = LoginOptionsSchema.parse(options);
let chainId: string | undefined = parsedOptions?.chainId;
if (!chainId && wallet.getChainId) {
try {
chainId = (await wallet.getChainId()).toString();
} catch {
// ignore error
}
}
return LoginPayloadDataSchema.parse({
type: wallet.type,
domain: parsedOptions.domain,
address: parsedOptions?.address || (await wallet.getAddress()),
statement: parsedOptions?.statement,
version: parsedOptions?.version,
uri: parsedOptions?.uri,
chain_id: chainId,
nonce: parsedOptions?.nonce,
expiration_time: parsedOptions.expirationTime,
invalid_before: parsedOptions.invalidBefore,
resources: parsedOptions?.resources,
});
}
export async function signLoginPayload({
wallet,
payload,
}: SignLoginPayloadParams): Promise<LoginPayload> {
const message = createLoginMessage(payload);
const signature = await wallet.signMessage(message);
return {
payload,
signature,
};
}
export async function buildAndSignLoginPayload({
wallet,
options,
}: BuildLoginPayloadParams): Promise<LoginPayload> {
const payload = await buildLoginPayload({ wallet, options });
return signLoginPayload({ wallet, payload });
}
export async function verifyLoginPayload({
payload,
options,
clientOptions,
}: VerifyLoginPayloadParams): Promise<string> {
const parsedOptions = VerifyOptionsSchema.parse(options);
// Check that the intended domain matches the domain of the payload
if (payload.payload.domain !== parsedOptions.domain) {
throw new Error(
`Expected domain '${parsedOptions.domain}' does not match domain on payload '${payload.payload.domain}'`,
);
}
// Check that the payload statement matches the expected statement
if (parsedOptions?.statement) {
if (payload.payload.statement !== parsedOptions.statement) {
throw new Error(
`Expected statement '${parsedOptions.statement}' does not match statement on payload '${payload.payload.statement}'`,
);
}
}
// Check that the intended URI matches the URI of the payload
if (parsedOptions?.uri) {
if (payload.payload.uri !== parsedOptions.uri) {
throw new Error(
`Expected URI '${parsedOptions.uri}' does not match URI on payload '${payload.payload.uri}'`,
);
}
}
// Check that the intended version matches the version of the payload
if (parsedOptions?.version) {
if (payload.payload.version !== parsedOptions.version) {
throw new Error(
`Expected version '${parsedOptions.version}' does not match version on payload '${payload.payload.version}'`,
);
}
}
// Check that the intended chain ID matches the chain ID of the payload
if (parsedOptions?.chainId) {
if (payload.payload.chain_id !== parsedOptions.chainId) {
throw new Error(
`Expected chain ID '${parsedOptions.chainId}' does not match chain ID on payload '${payload.payload.chain_id}'`,
);
}
}
// Check that the payload nonce is valid
if (parsedOptions?.validateNonce !== undefined) {
try {
await parsedOptions.validateNonce(payload.payload.nonce);
} catch (err) {
throw new Error(`Login request nonce is invalid`);
}
}
// Check that it isn't before the invalid before time
const currentTime = new Date();
if (currentTime < new Date(payload.payload.invalid_before)) {
throw new Error(`Login request is not yet valid`);
}
// Check that the payload hasn't expired
if (currentTime > new Date(payload.payload.expiration_time)) {
throw new Error(`Login request has expired`);
}
// Check that the specified resources are present on the payload
if (parsedOptions?.resources) {
const missingResources = parsedOptions.resources.filter(
(resource) => !payload.payload.resources?.includes(resource),
);
if (missingResources.length > 0) {
throw new Error(
`Login request is missing required resources: ${missingResources.join(
", ",
)}`,
);
}
}
// Check that the signing address is the claimed wallet address
const message = createLoginMessage(payload.payload);
const chainId = payload.payload.chain_id
? parseInt(payload.payload.chain_id)
: undefined;
const verified = await verifySignature(
message,
payload.signature,
payload.payload.address,
chainId,
clientOptions?.clientId,
clientOptions?.secretKey,
);
if (!verified) {
throw new Error(
`Signer address does not match payload address '${payload.payload.address.toLowerCase()}'`,
);
}
return payload.payload.address;
}
@@ -0,0 +1,35 @@
import { checkContractWalletSignature } from "@thirdweb-dev/wallets";
import { utils } from "ethers";
export async function verifySignature(
message: string,
signature: string,
address: string,
chainId?: number,
clientId?: string,
secretKey?: string,
): Promise<boolean> {
try {
const messageHash = utils.hashMessage(message);
const messageHashBytes = utils.arrayify(messageHash);
const recoveredAddress = utils.recoverAddress(messageHashBytes, signature);
if (recoveredAddress === address) {
return true;
}
} catch {
// no-op
}
if (!chainId) {
return false;
}
return checkContractWalletSignature(
message,
signature,
address,
chainId,
clientId,
secretKey,
);
}
@@ -7,6 +7,7 @@ import {
} from "./authenticate";
import { RefreshOptions } from "./refresh";
import { GenerateOptions } from "./generate";
import { ThirdwebAuthOptions } from "../types";
export type BuildLoginPayloadParams = {
wallet: GenericAuthWallet;
@@ -19,9 +20,9 @@ export type SignLoginPayloadParams = {
};
export type VerifyLoginPayloadParams = {
wallet: GenericAuthWallet;
payload: LoginPayload;
options: VerifyOptions;
clientOptions: ThirdwebAuthOptions;
};
export type BuildJwtParams = {
@@ -33,6 +34,7 @@ export type GenerateJwtParams = {
wallet: GenericAuthWallet;
payload: LoginPayload;
options: GenerateOptions;
clientOptions: ThirdwebAuthOptions;
};
export type RefreshJwtParams = {
@@ -45,4 +47,5 @@ export type AuthenticateJwtParams = {
wallet: GenericAuthWallet;
jwt: string;
options: AuthenticateOptions;
clientOptions: ThirdwebAuthOptions;
};

Some files were not shown because too many files have changed in this diff Show More