Sophon 백서

Sophon

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 10쪽 중 9쪽

l @sophon-labs/account-eip6963 wagmi viem connectkit @tanstack/react-query ``` </CodeGroup> ### Live demo <div> <iframe /> </div> ### Sample configuration <Warning> Make sure to get your project ID from [Reown](https://cloud.reown.com) and set it in your environment variables. </Warning> ```typescript {7, 16-32} theme={null} "use client"; import React, { ReactNode } from "react"; import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; import { createConfig, http, State, WagmiProvider } from "wagmi"; import "@sophon-labs/account-eip6963/testnet"; import { ConnectKitProvider, getDefaultConfig } from "connectkit"; import { sophonTestnet } from "viem/chains"; // Get your project ID from https://cloud.reown.com export const projectId = process.env.NEXT_PUBLIC_PROJECT_ID; const queryClient = new QueryClient(); if (!projectId) throw new Error("Project ID is not defined"); const config = createConfig( getDefaultConfig({ chains: [sophonTestnet], transports: { [sophonTestnet.id]: http(), }, walletConnectProjectId: process.env.NEXT_PUBLIC_PROJECT_ID || "", appName: "Sophon Account", appDescription: "Sophon Account", appUrl: "https://sophon.xyz", appIcon: "https://family.co/logo.png", }) ); export default function Web3ModalProvider({ children, initialState, }: { children: ReactNode; initialState?: State; }) { return ( <WagmiProvider config={config} initialState={initialState}> <QueryClientProvider client={queryClient}> <ConnectKitProvider>{children}</ConnectKitProvider> </QueryClientProvider> </WagmiProvider> ); } ``` # Overview Source: https://docs.sophon.xyz/sophon-account/examples/intro The Sophon account is provided via SDKs so you can integrate on your project. ## Sophon account as unique login *Coming soon* ## Already using a wallet kit/SDK? Integrate the Sophon Account into your existing application using our SDKs and integration guides. We support popular libraries and frameworks to ensure a smooth integration process. In most cases, you may already be using one of the following wallet kits: * [Reown AppKit](https://docs.reown.com/appkit/overview) * [RainbowKit](https://rainbow.me/) * [ConnectKit](https://docs.family.co/connectkit) * [Thirdweb Wallet](https://portal.thirdweb.com/) To integrate the Sophon Account, follow our [examples repo](https://github.com/sophon-org/sophon-account/tree/main/examples). <Note> By simply declaring the **EIP-6963** emitter, you can use the Sophon Account as a connection option in your wallet kit. To learn more about **EIP-6963**, check out the [EIP-6963 documentation](https://eips.ethereum.org/EIPS/eip-6963). </Note> ```typescript theme={null} import "@sophon-labs/account-eip6963/mainnet"; // or import "@sophon-labs/account-eip6963/testnet"; // Then, inside your wallet kit configuration: ... enableEIP6963: true, ``` ## Live Demos <CardGroup> <Card title="EIP-6963" icon="code" href="https://github.com/sophon-org/sophon-account-sso/tree/main/examples/web/eip6963" /> </CardGroup> # RainbowKit Source: https://docs.sophon.xyz/sophon-account/examples/rainbowkit Integrate the Sophon Account with RainbowKit ## RainbowKit RainbowKit is a popular wallet connector for React that allows users to connect to a wallet and sign transactions. <CardGroup> <Card title="Sophon Account + RainbowKit example repository" icon="code" href="https://github.com/sophon-org/sophon-account/tree/main/examples/eip-6963-rainbowkit-wagmi"> RainbowKit Example </Card> </CardGroup> ### Installation <CodeGroup> ```npm yarn pnpm bun theme={null} npm install @sophon-labs/account-eip6963 wagmi viem @rainbow-me/rainbowkit @tanstack/react-query ``` </CodeGroup> ### Live demo <div> <iframe /> </div> ### Sample configuration <Warning> Make sure to get your project ID from [Reown](https://cloud.reown.com) and set it in your environment variables. </Warning> ```typescript {6, 11-20} theme={null} "use client"; import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; import { WagmiProvider } from "wagmi"; import { RainbowKitProvider } from "@rainbow-me/rainbowkit"; import "@sophon-labs/account-eip6963/testnet"; import { getDefaultConfig } from "@rainbow-me/rainbowkit"; import { sophonTestnet } from "wagmi/chains"; import { http } from "wagmi"; const config = getDefaultConfig({ appName: "RainbowKit App", // Get your project ID from https://cloud.reown.com projectId: process.env.NEXT_PUBLIC_PROJECT_ID || "", transports: { [sophonTestnet.id]: http(), }, chains: [sophonTestnet], ssr: true, }); export default function AppProviders({ children }: { children: React.ReactNode }) { const client = new QueryClient(); return ( <WagmiProvider config={config}> <QueryClientProvider client={client}> <RainbowKitProvider appInfo={{ appName: "RainbowKit Demo", learnMoreUrl: "https://rainbow.me/", }} > {children} </RainbowKitProvider> </QueryClientProvider> </WagmiProvider> ); } ``` # Thirdweb Wallet Source: https://docs.sophon.xyz/sophon-account/examples/thirdweb Integrate the Sophon Account with Thirdweb Wallet ## Thirdweb Wallet Thirdweb Wallet is a comprehensive wallet solution for React, enabling seamless wallet connection and transaction signing. <CardGroup> <Card title="Sophon Account + Thirdweb Wallet example repository" icon="code" href="https://github.com/sophon-org/sophon-account/tree/main/examples/eip-6963-thirdweb"> Thirdweb Wallet Example </Card> </CardGroup> ### Installation <CodeGroup> ```npm yarn pnpm bun theme={null} npm install @sophon-labs/account-eip6963 wagmi viem thirdweb @thirdweb-dev/wagmi-adapter @tanstack/react-query ``` </CodeGroup> ### Live demo <div> <iframe /> </div> ### Sample configuration ```typescript {15, 24-35} theme={null} "use client"; import React, { ReactNode } from "react"; import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; import { State, WagmiProvider } from "wagmi"; import { ThirdwebProvider } from "thirdweb/react"; import { inAppWalletConnector } from "@thirdweb-dev/wagmi-adapter"; import { createThirdwebClient, defineChain } from "thirdweb"; import { http } from "viem"; import { sophonTestnet } from "viem/chains"; import { createConfig, injected } from "wagmi"; import "@sophon-labs/account-eip6963/testnet"; // Get your project ID from https://thirdweb.com export const projectId = process.env.NEXT_PUBLIC_THIRDWEB_PROJECT_ID; if (!projectId) throw new Error("Project ID is not defined"); export const client = createThirdwebClient({ clientId: projectId, }); export const config = createConfig({ chains: [sophonTestnet], multiInjectedProviderDiscovery: false, ssr: true, transports: { [sophonTestnet.id]: http(), }, connectors: [injected()], }); declare module "wagmi" { interface Register { config: typeof config; } } const queryClient = new QueryClient(); export default function Web3ModalProvider({ children, initialState, }: { children: ReactNode; initialState?: State; }) { return ( <ThirdwebProvider> <WagmiProvider config={config} initialState={initialState}> <QueryClientProvider client={queryClient}>{children}</QueryClientProvider> </WagmiProvider> </ThirdwebProvider> ); } ``` # FAQ Source: https://docs.sophon.xyz/sophon-account/faq Frequently asked questions about the Sophon Account. ## What login options are supported? For now, we support the following login options: * Email * Twitter * Gmail * Discord * Telegram For wallets, we are currently working on integrating more providers, for now the following are supported: * Metamask * Rabby * Safe * Zerion * OKX * SubWallet New social providers and wallets could be added in the future, if you need something else let us know. ## Can I choose which login providers are available? No. Sophon Account is designed to be a universal login provider, so we don't allow you to choose which login providers are available. ## How do I integrate Sophon Account into my application? We have an entire guide on how to integrate Sophon Account into your application [here](./getting-started). ## Where can I find the deployed SSO contract addresses? You can find the deployed and verified Contracts on our chains, you can use our explorers to get more information and interact with them. Our explorers can be found at: * Mainnet: [https://explorer.sophon.xyz](https://explorer.sophon.xyz) * Testnet: [https://explorer.testnet.sophon.xyz](https://explorer.testnet.sophon.xyz) You can also use our Sophscan to get more information about the contracts: * Mainnet: [https://sophscan.xyz](https://sophscan.xyz) * Testnet: [https://testnet.sophscan.xyz](https://testnet.sophscan.xyz) ## What environments and platforms are supported? At the moment, we support the following environments and platforms: * Common Web Platforms (React, Next.js, Vite, etc...) * React Native # Getting started Source: https://docs.sophon.xyz/sophon-account/getting-started First steps integrating Sophon Account in your project. <Warning>This documentation only valid for version >=2.0.0. Versions below 2.0.0 are deprecated and not functional anymore.</Warning> ## Getting Started with Sophon Account You can use Sophon Account in a few different ways, depending on your needs: * You can use our [EIP-6963 SDK](./authentication/eip6963) package to add **Sophon Account** as a connection option to any wallet kit available in the market. * You can add our [React SDK](./authentication/react) to your web project to use the **Sophon** as your login provider. * You can also use our [React Native SDK](./authentication/react-native) to add **Sophon** as a connection option to your mobile application. ## Main Packages To integrate the Sophon Account into your project, we've created a few packages to help you get started, these are the main ones: * [@sophon-labs/account-connector](https://www.npmjs.com/package/@sophon-labs/account-provider): Our EIP-1193 provider for the Sophon Account, to be used with any library that supports EIP-1193, like Viem. * [@sophon-labs/account-connector](https://www.npmjs.com/package/@sophon-labs/account-connector): A generic Wagmi connector for the Sophon Account, to be used with any wallet kit that supports Wagmi. * [@sophon-labs/account-eip6963](https://www.npmjs.com/package/@sophon-labs/account-eip6963): Allow web applications to use the Sophon Account by using the [EIP-6963 standard](https://eips.ethereum.org/EIPS/eip-6963). * [@sophon-labs/account-react-native](https://www.npmjs.com/package/@sophon-labs/account-react-native): Library to help you integrate the Sophon Account into your React Native projects, requires a partnerId to start up. * [@sophon-labs/account-react](https://www.npmjs.com/package/@sophon-labs/account-react): Web library to unleash the full power of Sophon Account, requires a partnerId to start up. * [@sophon-labs/account-api-sdk](https://www.npmjs.com/package/@sophon-labs/account-api-sdk): Utility package to wrap API calls, jwt decoding etc... # Overview Source: https://docs.sophon.xyz/sophon-account/intro Learn what makes the Sophon Account unique. <img alt="Sophon Account V2" /> ## What is Sophon Account? The **Sophon Account** is a cross-application smart contract account designed to enhance the user experience across the [Sophon ecosystem](/build/partners/overview). Built on Sophon's native **Account Abstraction**, it allows users to interact seamlessly with decentralized applications (dApps) using familiar login methods such as email, social accounts, or existing EOA wallets without needing to re-authenticate on each supported application. By leveraging Sophon's infrastructure, the wallet ensures a secure and smooth onboarding, making it easy even for non crypto native users to engage with the decentralized world. <Warning>This documentation only valid for version >=2.0.0. Versions below 2.0.0 are deprecated and not functional anymore.</Warning> ## Features and Goals These are our main features and goals: * 🧩 Modular smart accounts based on [ERC-7579](https://eips.ethereum.org/EIPS/eip-7579#modules) * 🔑 Passkey authentication (no seed phrases) * ⏰ Sessions w/ easy configuration and management * 💰 Integrated paymaster support * ❤️‍🩹 Account recovery * Setup EOA or other SSO Guardian accounts to create new passkey * Use Google Auth (OIDC) recovery flow to create new passkey * 💻 Simple SDKs : * Node.js * React Native * 🤝 Open-source authentication server & api * 🎓 Examples to get started quickly ## Source Code All the code for our Sophon Account is open-source and available on [GitHub](https://github.com/sophon-org/sophon-account-sso) under the MIT License. Feel free to contribute, report issues, or suggest new features to help us improve the tool for everyone. The contracts used for the Account Abstraction are a fork of [ZKsync SSO Smart Contracts](https://github.com/matter-labs/zksync-sso-clave-contracts), open-source and available on [GitHub](https://github.com/sophon-org/zksync-sso-clave-contracts) under the GNU License. # Sophon v1 (Legacy) Source: https://docs.sophon.xyz/sophon-v1 The original Sophon Chain thesis <Warning> This page describes **Sophon v1**, the legacy chain thesis. Sophon is winding down the chain and focusing on applications built on Base. See the [Sophon Chain migration guide](/migration) for current actions and dates. </Warning> ## The original chain thesis Sophon v1 launched as a general-purpose blockchain built with the ZK Stack and positioned toward entertainment and consumer applications. It aimed to make crypto useful inside those applications without requiring users to understand wallets, seed phrases, gas, or blockchain infrastructure. The legacy Sophon OS combined Sophon Home, Sophon Account, Sophon+, a Social Oracle, and the ZK Stack-powered chain into a consumer-facing system. Its central thesis was that crypto adoption improves when the technical layer disappears and the benefits become clear to the user. ## Data as a consumer primitive The v1 data thesis centered on protocol-level zkTLS: users could verify selected parts of their Web2 activity without exposing the underlying sensitive data. Applications could then use verified reputation, achievements, spending, creator audiences, and other social signals as inputs. The intended application areas included gaming, social products, betting, ticketing, AI, and other entertainment experiences. [Read the original Sophon v1 overview](https://sophon.com/content/sophon-v1) # Gas Utility (Legacy) Source: https://docs.sophon.xyz/tokenomics/gas SOPH gas utility during the Sophon Chain wind-down <Warning> SOPH's gas utility is being phased out with the Sophon Chain. This page describes the remaining chain-era behavior, not Sophon's future token model. </Warning> While the legacy chain remains operational, transactions use SOPH for gas. ZKsync paymasters can sponsor or customize transaction fees so an application can pay on behalf of its users. New deposits into Sophon have been disabled since June 25, 2026. Use [claim.sophon.com](https://claim.sophon.com) to review available withdrawal routes, and do not bridge new assets into Sophon. After the chain is decommissioned, SOPH will no longer be used for Sophon Chain gas. Its replacement utility is a [product-funded buyback-and-burn model](/tokenomics/soph). # SOPH Source: https://docs.sophon.xyz/tokenomics/soph SOPH utility, chain transition, and official contract addresses SOPH is an ERC-20 token native to Ethereum. It launched with an original supply of **10 billion SOPH** and was used as the Sophon Chain's gas token and for staking. <Warning> The Sophon Chain is being wound down. Gas and staking—the two chain-era SOPH utilities—will be phased out with the chain. If you hold SOPH on Sophon, follow the [migration guide](/migration) to withdraw it. </Warning> SOPH itself does **not** need to be migrated or swapped. SOPH on the Sophon Chain is a bridged representation of the Ethereum-native token. ## Product-funded buybacks and burns SOPH's new model links token burns to revenue from products built by Sophon. A portion of profits will be used to buy SOPH on the open market on an ongoing basis, and the purchased tokens will be permanently burned. They will not be redistributed to token holders. The first announced burn covers more than **46.5 million SOPH** from the unutilized staking-reward pool and node buybacks. Subsequent purchases are intended to be funded by product revenue. Pyre's announced revenue sources are: * interchange fees from card transactions; * performance fees from vault usage; * reserve yield from PYRUSD, Pyre's custom stablecoin and settlement currency. As tokens are burned, circulating supply contracts. Percentages in the historical allocation schedule are calculated against the original 10 billion issuance. ## Chain-era utility transition ### Staking Staking remains available while the Sophon Chain is operational and will be discontinued when the chain is decommissioned. Staked SOPH positions are transitioned to Ethereum automatically. SOPH that is unstaked is claimable on Ethereum through [claim.sophon.com](https://claim.sophon.com). ### Guardian rewards The Guardian programme continues on its original schedule: Guardian NFT holders receive a pro-rata share of **20% of the original SOPH supply over three years**. Current reward streams continue vesting on Sophon through **September 29, 2026 at 00:00 GMT**. New rewards then accrue on Ethereum. Guardian NFT holders do not need to migrate their NFTs manually. ## Token details * Ticker: **SOPH** * Token standard: **ERC-20** * Original supply: **10 billion** (10,000,000,000) * Original community allocation: **57%** ## Official contract addresses | Chain | Address | | - | - | | Ethereum | `0x6B7774CB12ed7573a7586E7D0e62a2A563dDd3f0` ([Etherscan](https://etherscan.io/token/0x6B7774CB12ed7573a7586E7D0e62a2A563dDd3f0)) | | Sophon | `0x000000000000000000000000000000000000800A` ([Sophon Explorer](https://explorer.sophon.xyz/address/0x000000000000000000000000000000000000800A)) | | Base | `0x31DbA3c96481FDe3CD81C2aaF51F2D8bf618C742` ([Basescan](https://basescan.org/token/0x31DbA3c96481FDe3CD81C2aaF51F2D8bf618C742)) | | BSC | `0x31DbA3c96481FDe3CD81C2aaF51F2D8bf618C742` ([BscScan](https://bscscan.com/token/0x31DbA3c96481FDe3CD81C2aaF51F2D8bf618C742)) | | Arbitrum | `0x31DbA3c96481FDe3CD81C2aaF51F2D8bf618C742` ([Arbiscan](https://arbiscan.io/token/0x31DbA3c96481FDe3CD81C2aaF51F2D8bf618C742)) | | Polygon | `0xEb971Fd26783f32694dbB392dD7289de23109148` ([PolygonScan](https://polygonscan.com/token/0xEb971Fd26783f32694dbB392dD7289de23109148)) | | Beam | `0x31DbA3c96481FDe3CD81C2aaF51F2D8bf618C742` ([Beam Explorer](https://subnets.avax.network/beam/address/0x31DbA3c96481FDe3CD81C2aaF51F2D8bf618C742)) | <CardGroup> <Card title="Chain Migration" icon="arrow-right-arrow-left" href="/migration"> Claim rewards and move assets off the Sophon Chain. </Card> <Card title="SOPH Bridging" icon="bridge" href="/build/tokens/soph-bridging"> Review the current canonical and LayerZero routes. </Card> <Card title="Staking Transition" icon="coins" href="/tokenomics/staking"> Learn how staking is handled during the wind-down. </Card> <Card title="Original Allocation" icon="chart-pie" href="/tokenomics/token-allocation"> Review the original token allocation and vesting schedule. </Card> </CardGroup> [Read the official SOPH announcement](https://sophon.com/content/soph-token) # Staking Transition Source: https://docs.sophon.xyz/tokenomics/staking What happens to SOPH staking as the Sophon Chain winds down <Warning> SOPH staking will be discontinued when the Sophon Chain is decommissioned. Staked positions are transitioned to Ethereum automatically; do not attempt a manual migration. </Warning> ## What stakers need to do 1. Open [claim.sophon.com](https://claim.sophon.com). 2. Check for unlocked SOPH and outstanding s
프로젝트로 돌아가기