diff --git a/src/components/Header.tsx b/src/components/Header.tsx index f2f28bff..36800f64 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -99,8 +99,8 @@ export const Header: ForwardRefExoticComponent<{ className?: string }> = forward
- +
diff --git a/src/components/Navigation.tsx b/src/components/Navigation.tsx index 019bc158..98a39f8d 100644 --- a/src/components/Navigation.tsx +++ b/src/components/Navigation.tsx @@ -186,6 +186,7 @@ export const worldIdNavigation = [ title: 'Incognito Actions', links: [ { title: 'Cloud Verification', href: '/world-id/id/cloud' }, + { title: 'Libraries', href: '/world-id/id/libraries' }, { title: 'On-Chain Verification', href: '/world-id/id/on-chain' }, { title: 'Common Pitfalls', href: '/world-id/id/pitfalls' }, ], @@ -241,6 +242,7 @@ export const miniAppsNavigation = [ { title: 'Verify', href: '/mini-apps/commands/verify' }, { title: 'Pay', href: '/mini-apps/commands/pay' }, { title: 'Wallet Auth', href: '/mini-apps/commands/wallet-auth' }, + { title: 'Connect Wallet', href: '/mini-apps/commands/connect-wallet' }, { title: 'Send Transaction', href: '/mini-apps/commands/send-transaction' }, { title: 'Sign Message', href: '/mini-apps/commands/sign-message' }, { title: 'Sign Typed Data', href: '/mini-apps/commands/sign-typed-data' }, @@ -363,10 +365,10 @@ export const Navigation: FC<{ const router = useRouter() const getNavigationGroups = () => { - if (router.pathname.includes('world-id')) { - return worldIdNavigation - } else if (router.pathname.includes('mini-apps')) { + if (router.pathname.includes('mini-apps')) { return miniAppsNavigation + } else if (router.pathname.includes('world-id')) { + return worldIdNavigation } else if (router.pathname.includes('world-chain')) { return worldChainNavigation } diff --git a/src/pages/index.mdx b/src/pages/index.mdx index 0fdcd74f..78d42e35 100644 --- a/src/pages/index.mdx +++ b/src/pages/index.mdx @@ -7,9 +7,7 @@ import {Card} from "@/components/Card" - - - + \ No newline at end of file diff --git a/src/pages/mini-apps/commands/connect-wallet.mdx b/src/pages/mini-apps/commands/connect-wallet.mdx new file mode 100644 index 00000000..a3df0c92 --- /dev/null +++ b/src/pages/mini-apps/commands/connect-wallet.mdx @@ -0,0 +1,8 @@ +import { Link } from '@/components/Link' + +# Connect Wallet + +Wallet auth returns a wallet address upon completion. If you don't want to use SIWE and just want the wallet address, +just use the `walletAuth` command and skip the verification of the payload. + +Go to Wallet Auth Section diff --git a/src/pages/mini-apps/commands/send-transaction.mdx b/src/pages/mini-apps/commands/send-transaction.mdx index dd2c1a3e..f89ebedd 100644 --- a/src/pages/mini-apps/commands/send-transaction.mdx +++ b/src/pages/mini-apps/commands/send-transaction.mdx @@ -52,7 +52,11 @@ the index of the permit2 object in the transaction array. Additionally if you introduce a new ERC20 token we will automatically approve the permit2 contract to spend the tokens. If you need `setApprovalForAll` or are working with NFTs please reach out. - + + Tips: + 1. Send transaction has a max payload size. Try to only include the abi for the function you're calling otherwise your transaction will fail. + 2. Wrap all your arguments in strings to avoid overflow errors when passing to the SDK. We will auto parse your arguments to match the types in the ABI. + ``` tsx {{ title: 'app/page.tsx' }} import { MiniKit } from '@worldcoin/minikit-js' import DEXABI from "../../abi/DEX.json"; diff --git a/src/pages/world-id/id/libraries.mdx b/src/pages/world-id/id/libraries.mdx new file mode 100644 index 00000000..ed1ea1d4 --- /dev/null +++ b/src/pages/world-id/id/libraries.mdx @@ -0,0 +1,34 @@ +import { Link } from '@/components/Link' + +# Supported Libraries +World ID is available on a variety of platforms. Below is a list of native libraries we currently support. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
LibraryDescription
ReactOur most popular library. Integrate easily into any React app
JSStandalone version for vanilla javascript.
SwiftNative Swift library for IOS apps.
RustRust library. Use this to compile other native binaries, eg. Kotlin.
KotlinNative Kotlin library for Android apps
\ No newline at end of file