Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update all references of 'Twitter' to 'X.com' #1315

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

<!-- Badge row 3 - detailed status -->

Expand Down
54 changes: 19 additions & 35 deletions apps/base-docs/docs/tools/basenames-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 (
<WagmiProvider config={config}>
<QueryClientProvider client={queryClient}>{children}</QueryClientProvider>
Expand All @@ -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.

:::

Expand Down Expand Up @@ -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,
Expand All @@ -195,41 +184,36 @@ export default async function Home() {

return (
<EthereumProviders>
<main className='flex min-h-screen flex-col gap-12 p-24'>
<div className='mb-12'>
<h1 className='text-xl mb-4'>Server-side rendered:</h1>
<ul className='flex flex-col gap-4'>
<li className='flex flex-col gap-2'>
<main className="flex min-h-screen flex-col gap-12 p-24">
<div className="mb-12">
<h1 className="mb-4 text-xl">Server-side rendered:</h1>
<ul className="flex flex-col gap-4">
<li className="flex flex-col gap-2">
<span>Address</span>
<strong>{address}</strong>
</li>
<li className='flex flex-col gap-2'>
<li className="flex flex-col gap-2">
<span>Basename</span>
<strong>{data.basename}</strong>
</li>
<li className='flex flex-col gap-2'>
<li className="flex flex-col gap-2">
<span>Avatar</span>
<strong>
<img
src={data.avatar}
alt={data.basename}
width={100}
height={100}
/>
<img src={data.avatar} alt={data.basename} width={100} height={100} />
</strong>
</li>
<li className='flex flex-col gap-2'>
<li className="flex flex-col gap-2">
<span>Description</span>
<strong>{data.description}</strong>
</li>
<li className='flex flex-col gap-2'>
<span>Twitter</span>
<li className="flex flex-col gap-2">
<span>X</span>
<strong>{data.twitter}</strong>
</li>
</ul>
</div>
<div>
<h1 className='text-xl mb-4'>Client-side rendered:</h1>
<h1 className="mb-4 text-xl">Client-side rendered:</h1>
<BasenameDetails address={address} />
</div>
</main>
Expand All @@ -238,7 +222,7 @@ export default async function Home() {
}
```

In this example, the Home component fetches Basename data and displays it in both server-side and client-side rendered sections. This allows your app to provide a seamless user experience, showing Basename details like the avatar, description, and associated Twitter handle.
In this example, the Home component fetches Basename data and displays it in both server-side and client-side rendered sections. This allows your app to provide a seamless user experience, showing Basename details like the avatar, description, and associated X handle.

## Conclusion

Expand Down
11 changes: 6 additions & 5 deletions apps/base-docs/docs/tools/oracles.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,19 +137,20 @@ The [Pyth Network](https://pyth.network/) is one of the largest first-party Orac
- [Available on all major chains](https://docs.pyth.network/price-feeds/contract-addresses)

#### Supported Networks for Base (Pyth Price Feeds):
- Base Mainnet: [`0x8250f4aF4B972684F7b336503E2D6dFeDeB1487a`](https://basescan.org/address/0x8250f4aF4B972684F7b336503E2D6dFeDeB1487a)
- Base Sepolia: [`0xA2aa501b19aff244D90cc15a4Cf739D2725B5729`](https://base-sepolia.blockscout.com/address/0xA2aa501b19aff244D90cc15a4Cf739D2725B5729)

- Base Mainnet: [`0x8250f4aF4B972684F7b336503E2D6dFeDeB1487a`](https://basescan.org/address/0x8250f4aF4B972684F7b336503E2D6dFeDeB1487a)
- Base Sepolia: [`0xA2aa501b19aff244D90cc15a4Cf739D2725B5729`](https://base-sepolia.blockscout.com/address/0xA2aa501b19aff244D90cc15a4Cf739D2725B5729)

### Pyth Entropy

Pyth Entropy allows developers to quickly and easily generate secure **random numbers** onchain.

Check [how to generate random numbers in EVM contracts](https://docs.pyth.network/entropy/generate-random-numbers/evm) for a detailed walkthrough.

#### Supported Networks for Base (Pyth Entropy):
- Base Mainnet: [`0x6E7D74FA7d5c90FEF9F0512987605a6d546181Bb`](https://basescan.org/address/0x6E7D74FA7d5c90FEF9F0512987605a6d546181Bb)
- Base Sepolia: [`0x41c9e39574F40Ad34c79f1C99B66A45eFB830d4c`](https://base-sepolia.blockscout.com/address/0x41c9e39574F40Ad34c79f1C99B66A45eFB830d4c)

- Base Mainnet: [`0x6E7D74FA7d5c90FEF9F0512987605a6d546181Bb`](https://basescan.org/address/0x6E7D74FA7d5c90FEF9F0512987605a6d546181Bb)
- Base Sepolia: [`0x41c9e39574F40Ad34c79f1C99B66A45eFB830d4c`](https://base-sepolia.blockscout.com/address/0x41c9e39574F40Ad34c79f1C99B66A45eFB830d4c)

Check out the following links to get started with Pyth.

Expand All @@ -158,7 +159,7 @@ Check out the following links to get started with Pyth.
- [Pyth Price Feed API Reference](https://api-reference.pyth.network/price-feeds/evm/getPrice)
- [Pyth Examples](https://github.com/pyth-network/pyth-examples)
- [Website](https://pyth.network/)
- [Twitter](https://x.com/PythNetwork)
- [X](https://x.com/PythNetwork)

---

Expand Down
2 changes: 1 addition & 1 deletion apps/base-docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ const config = {
icon: 'twitter',
type: 'custom-dropdownLink',
target: '_blank',
to: 'https://www.twitter.com/base',
to: 'https://www.x.com/base',
eventLabel: 'socials_twitter',
eventContext: 'navbar',
},
Expand Down
2 changes: 1 addition & 1 deletion apps/base-docs/src/components/CafeSocialShare/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function CafeSocialShare({ name }) {
</Button>
</a>
<a
href={`https://twitter.com/intent/tweet?text=${shareText}`}
href={`https://x.com/intent/tweet?text=${shareText}`}
className={styles.socialShareLink}
target="_blank"
rel="noreferrer"
Expand Down
2 changes: 1 addition & 1 deletion apps/base-docs/static/json/authors.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
},
"lukecd": {
"name": "Luke Cassady-Dorion",
"link": "https://twitter.com/spaceagente"
"link": "https://x.com/spaceagente"
}
}
Loading