diff --git a/.changeset/tasty-worms-mate.md b/.changeset/tasty-worms-mate.md new file mode 100644 index 00000000000..6bedaaf5bdd --- /dev/null +++ b/.changeset/tasty-worms-mate.md @@ -0,0 +1,5 @@ +--- +"thirdweb": patch +--- + +Add soneiumMinato chain definition diff --git a/apps/playground-web/src/components/in-app-wallet/profile-sections.tsx b/apps/playground-web/src/components/in-app-wallet/profile-sections.tsx index 640c56b1c2e..a21f0732328 100644 --- a/apps/playground-web/src/components/in-app-wallet/profile-sections.tsx +++ b/apps/playground-web/src/components/in-app-wallet/profile-sections.tsx @@ -55,19 +55,34 @@ export function Profiles() { function App() { const { mutate: linkProfile, isPending, error } = useLinkProfile(); + + const linkMetamask = () => { + // link any external wallet + linkProfile({ + client: THIRDWEB_CLIENT, + strategy: "wallet", + wallet: createWallet("io.metamask"), // or any other wallet + chain: baseSepolia, + }); + }; + + const linkPasskey = () => { + // link any web2 identity provider + linkProfile({ + client: THIRDWEB_CLIENT, + strategy: "passkey", // or "email", "phone", etc. + type: "sign-up", + }); + }; return (
- + +
); };`} diff --git a/packages/thirdweb/src/chains/chain-definitions/soneium-minato.ts b/packages/thirdweb/src/chains/chain-definitions/soneium-minato.ts new file mode 100644 index 00000000000..f3d9106d4c3 --- /dev/null +++ b/packages/thirdweb/src/chains/chain-definitions/soneium-minato.ts @@ -0,0 +1,17 @@ +import { defineChain } from "../utils.js"; + +/** + * @chain + */ +export const soneiumMinato = /* @__PURE__ */ defineChain({ + id: 1946, + name: "Soneium Minato", + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + blockExplorers: [ + { + name: "Minato Explorer", + url: "https://explorer-testnet.soneium.org/", + }, + ], + testnet: true, +}); diff --git a/packages/thirdweb/src/exports/chains.ts b/packages/thirdweb/src/exports/chains.ts index a39bdab7f93..b3a3f3b9e68 100644 --- a/packages/thirdweb/src/exports/chains.ts +++ b/packages/thirdweb/src/exports/chains.ts @@ -77,3 +77,4 @@ export { celoAlfajoresTestnet } from "../chains/chain-definitions/celo-alfajores export { fraxtalTestnet } from "../chains/chain-definitions/fraxtal-testnet.js"; export { metalL2Testnet } from "../chains/chain-definitions/metal-l2-testnet.js"; export { modeTestnet } from "../chains/chain-definitions/mode-testnet.js"; +export { soneiumMinato } from "../chains/chain-definitions/soneium-minato.js";