From e7a0d6f2e5f24452f201fe4a9655969703dd6174 Mon Sep 17 00:00:00 2001 From: Nikolai Kryshnev Date: Thu, 28 Nov 2024 21:18:45 +0300 Subject: [PATCH] chore: Update all references of 'Twitter' to 'X.com' --- README.md | 2 +- .../docs/tools/basenames-tutorial.md | 54 +- apps/base-docs/docs/tools/oracles.md | 11 +- apps/base-docs/docusaurus.config.js | 2 +- .../src/components/CafeSocialShare/index.jsx | 2 +- apps/base-docs/static/json/authors.json | 2 +- apps/base-docs/tutorials/data.json | 1678 ++++++----------- .../docs/01_basename_social_dropdown.md | 10 +- .../tutorials/docs/0_deploy-with-tenderly.md | 2 +- ...count-abstraction-with-particle-network.md | 8 +- apps/bridge/.env.goerli.example | 2 +- apps/bridge/.env.mainnet.example | 2 +- apps/bridge/.env.sepolia.example | 2 +- apps/bridge/src/components/Nav/DesktopNav.tsx | 4 +- apps/bridge/src/components/Nav/MobileMenu.tsx | 6 +- apps/web/.env.local.example | 2 +- apps/web/scripts/partners.csv | 242 +-- .../BuilderNft/MintedSocialShare.tsx | 6 +- .../components/GetConnected/GetConnected.tsx | 2 +- apps/web/src/data/ecosystem.json | 2 +- apps/web/src/utils/socialPlatforms.ts | 4 +- 21 files changed, 724 insertions(+), 1321 deletions(-) diff --git a/README.md b/README.md index b82b6dd746..c8cd9f1693 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Base is a secure, low-cost, developer-friendly Ethereum L2 built to bring the ne [![Blog](https://img.shields.io/badge/blog-up-green)](https://base.mirror.xyz/) [![Docs](https://img.shields.io/badge/docs-up-green)](https://docs.base.org/) [![Discord](https://img.shields.io/discord/1067165013397213286?label=discord)](https://base.org/discord) -[![Twitter Base](https://img.shields.io/twitter/follow/Base?style=social)](https://twitter.com/Base) +[![X Base](https://img.shields.io/twitter/follow/Base?style=social)](https://x.com/Base) diff --git a/apps/base-docs/docs/tools/basenames-tutorial.md b/apps/base-docs/docs/tools/basenames-tutorial.md index 83ac061960..86e4d29357 100644 --- a/apps/base-docs/docs/tools/basenames-tutorial.md +++ b/apps/base-docs/docs/tools/basenames-tutorial.md @@ -3,8 +3,7 @@ title: Basenames + Wagmi Tutorial slug: /basenames-tutorial-using-wagmi description: 'A tutorial that teaches how to integrate Basenames to your wagmi/viem App' author: hughescoin -keywords: - ['build on base', 'viem', 'wagmi', 'frontend', 'onchain app development'] +keywords: ['build on base', 'viem', 'wagmi', 'frontend', 'onchain app development'] tags: ['account abstraction'] difficulty: beginner displayed_sidebar: null @@ -76,11 +75,7 @@ export const config = createConfig({ const queryClient = new QueryClient(); -export default function EthereumProviders({ - children, -}: { - children: ReactNode; -}) { +export default function EthereumProviders({ children }: { children: ReactNode }) { return ( {children} @@ -95,13 +90,13 @@ Next, we'll create a new directory to house the functions that will resolve and In your project folder, create the apis directory and add a basenames.tsx file: -:::note What's happening in the code? +:::note What's happening in the code? `convertReverseNodeToBytes()`: This function is creating the reverse node so we can look up a name given an address. Each address gets its own reverse record in our registry that's created in a deterministic way. You can see the implementation of `convertReverseNodeToBytes()` in the [OnchainKit repo] -`BasenameTextRecordKeys`: Metadata (e.g., github, twitter, etc.) are stored as text records so we can look them up based on the enum key. +`BasenameTextRecordKeys`: Metadata (e.g., github, X, etc.) are stored as text records so we can look them up based on the enum key. ::: @@ -172,15 +167,9 @@ async function fetchData() { const avatar = await getBasenameAvatar(basename); - const description = await getBasenameTextRecord( - basename, - BasenameTextRecordKeys.Description - ); + const description = await getBasenameTextRecord(basename, BasenameTextRecordKeys.Description); - const twitter = await getBasenameTextRecord( - basename, - BasenameTextRecordKeys.Twitter - ); + const twitter = await getBasenameTextRecord(basename, BasenameTextRecordKeys.Twitter); return { basename, @@ -195,41 +184,36 @@ export default async function Home() { return ( -
-
-

Server-side rendered:

-