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

Update twitter to x #1353

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion apps/base-docs/docs/tools/oracles.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,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
4 changes: 2 additions & 2 deletions apps/base-docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,11 +298,11 @@ const config = {
eventContext: 'navbar',
},
{
label: 'Twitter',
label: 'X',
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"
}
}
6 changes: 3 additions & 3 deletions apps/base-docs/tutorials/docs/01_basename_social_dropdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ This tutorial uses Coinbase's [OnchainKit]. Familiarity with its basic concepts

### Basename

A basename with a few text records (Github, Twitter, website) is required for this tutorial. If you don't have a Basename. Get one [here](https://www.base.org/names).
A basename with a few text records (Github, X, website) is required for this tutorial. If you don't have a Basename. Get one [here](https://www.base.org/names).

---

## Set a Text Record

![image-basename](../../assets/images/basenames-tutorial/basename-profile-home.png)

To set a text record for your basename, start by visiting `https://www.base.org/name/<YOUR-BASE-NAME>`. Connect your wallet to manage your profile, then click the `Manage profile` button. Add one or more text records, such as your X (formerly Twitter) URL. Once you've added the desired records, click the `Save` button at the bottom of the page. Finally, confirm and sign the transaction to make the changes onchain.
To set a text record for your basename, start by visiting `https://www.base.org/name/<YOUR-BASE-NAME>`. Connect your wallet to manage your profile, then click the `Manage profile` button. Add one or more text records, such as your X (formerly X) URL. Once you've added the desired records, click the `Save` button at the bottom of the page. Finally, confirm and sign the transaction to make the changes onchain.

![image-basename](../../assets/images/basenames-tutorial/confirm-textrecord-update.png)

Expand Down Expand Up @@ -115,7 +115,7 @@ import { publicClient } from '../client';
// Component code will go here
```

`IdentityWrapper` will fetch and display social media and profile information for a given Base address using OnchainKit and the Ethereum Name Service (ENS). It will query for the ENS name associated with the address and retrieve relevant text records (Twitter, GitHub, and website URL) using the specified resolver, storing this data in both component state and local storage for optimized performance. The component will be designed to present this information in a user-friendly, expandable format.
`IdentityWrapper` will fetch and display social media and profile information for a given Base address using OnchainKit and the Ethereum Name Service (ENS). It will query for the ENS name associated with the address and retrieve relevant text records (X, GitHub, and website URL) using the specified resolver, storing this data in both component state and local storage for optimized performance. The component will be designed to present this information in a user-friendly, expandable format.

## Implementing the Component Logic

Expand Down
2 changes: 1 addition & 1 deletion apps/base-docs/tutorials/docs/0_deploy-with-tenderly.md
Original file line number Diff line number Diff line change
Expand Up @@ -417,4 +417,4 @@ For more information on the Tenderly full-stack infrastructure, check out the fo

- [Documentation](https://docs.tenderly.co/)
- [Blog](https://blog.tenderly.co/)
- [Twitter](https://twitter.com/TenderlyApp)
- [X](https://x.com/TenderlyApp)
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ Upon calling `connect`, a user will be brought through the social login process,

`connect` takes the following parameters:

- `socialType`, the specific social login mechanism you'd like users to go through. If left as an empty string, a generalized social login modal will be shown. Otherwise, use strings such as 'google', 'twitter', 'email', etc.
- `socialType`, the specific social login mechanism you'd like users to go through. If left as an empty string, a generalized social login modal will be shown. Otherwise, use strings such as 'google', 'x', 'email', etc.
- `chain`, an object (imported from `@particle-network/chains`) corresponding with the chain you'd like to use. In this example, it'll be `BaseSepolia`.

Ideally, some logic should be set in place to ensure `connect` isn't called if a user has already logged in. This can be done by only calling `connect` on the condition that `userInfo` (from `useAuthCore`) is undefined, indicating that the user isn't logged in.
Expand Down Expand Up @@ -476,7 +476,7 @@ You've now initiated social login (through `handleLogin`), assigned a smart acco

To present all of this to the user and allow them to interact with these functions for themselves, you'll need to map `handleLogin` and `executeUserOp` to the JSX of your `App` component. This will format the frontend that a user interacts with to test this application.

Essentially, this displays either "Sign in with Google" or "Sign in with Twitter" through custom buttons that are only shown if the user hasn't logged in (determined through the state of `userInfo`). Upon logging in, the user can either call `executeUserOp` or `disconnect` (which was defined from `useConnect`).
Essentially, this displays either "Sign in with Google" or "Sign in with X" through custom buttons that are only shown if the user hasn't logged in (determined through the state of `userInfo`). Upon logging in, the user can either call `executeUserOp` or `disconnect` (which was defined from `useConnect`).

Below is an example of what your `App.jsx/tsx` file may look at this point. At the bottom of this snippet you'll find the JSX:

Expand Down Expand Up @@ -552,7 +552,7 @@ const App = () => {
Sign in with Google
</button>
<button className="sign-button" onClick={() => handleLogin('twitter')}>
Sign in with Twitter
Sign in with X
</button>
</div>
) : (
Expand All @@ -579,7 +579,7 @@ With everything complete, you're ready to run your application to test it. To do

1. Navigate to the root of your project.
2. Run either `npm run start` or `yarn start`.
3. Once running, log in with either your Google or Twitter.
3. Once running, log in with either your Google or X.
4. Fund the address displayed on the wallet modal in the bottom right.
5. Click "Execute User Operation".

Expand Down
4 changes: 2 additions & 2 deletions apps/bridge/.env.goerli.example
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ L2_CCTP_DOMAIN=6
MARKETING_URL=https://base.org
DOCS_URL=https://docs.base.org
BLOG_URL=https://base.mirror.xyz
TWITTER_URL=https://twitter.com/base
TWITTER_URL=https://x.com/base
GITHUB_URL=https://github.com/base-org
MAINNET_LAUNCH_BLOG_POST_URL=https://base.mirror.xyz
MAINNET_LAUNCH_FLAG=false
Expand All @@ -32,4 +32,4 @@ MAINNET_GA_LAUNCH_FLAG=true
WALLET_CONNECT_PROJECT_ID=
BRIDGE_API_URL=https://bridge-api.base.org
CCTP_ATTESTATIONS_API_URL=https://iris-api-sandbox.circle.com
CCTP_ENABLED=true
CCTP_ENABLED=true
2 changes: 1 addition & 1 deletion apps/bridge/.env.sepolia.example
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ L2_CCTP_DOMAIN=6
MARKETING_URL=https://base.org
DOCS_URL=https://docs.base.org
BLOG_URL=https://base.mirror.xyz
TWITTER_URL=https://twitter.com/base
TWITTER_URL=https://x.com/base
GITHUB_URL=https://github.com/base-org
MAINNET_LAUNCH_BLOG_POST_URL=https://base.mirror.xyz
MAINNET_LAUNCH_FLAG=false
Expand Down
6 changes: 3 additions & 3 deletions apps/bridge/src/components/Nav/DesktopNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,11 @@ function DesktopNav({ color }: DesktopNavProps) {
title="Join us on Discord"
/>
<IconLink
href="https://twitter.com/base"
href="https://x.com/base"
icon="twitter"
label="Twitter"
label="X"
color={color}
title="Join us on Twitter"
title="Join us on X"
/>
<IconLink
href="https://github.com/base-org"
Expand Down
6 changes: 3 additions & 3 deletions apps/bridge/src/components/Nav/MobileMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,9 @@ function MobileMenu({ color }: MobileMenuProps) {
<Icon name="discord" />
</a>
<a
href="https://twitter.com/base"
title="Join us on Twitter"
aria-label="Join us on Twitter"
href="https://x.com/base"
title="Join us on X"
aria-label="Join us on X"
>
<Icon name="twitter" />
</a>
Expand Down
4 changes: 2 additions & 2 deletions apps/web/.env.local.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ BRIDGE_URL=https://bridge.base.org
ALCHEMY_API_KEY=
ALCHEMY_HTTPS=
BLOG_URL=https://base.mirror.xyz
TWITTER_URL=https://twitter.com/base
TWITTER_URL=https://x.com/base
GITHUB_URL=https://github.com/base-org
MAINNET_LAUNCH_BLOG_POST_URL=https://base.mirror.xyz
MAINNET_LAUNCH_FLAG=false
Expand Down Expand Up @@ -31,4 +31,4 @@ TALENT_PROTOCOL_API_KEY=

NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME=
CLOUDINARY_API_KEY=
CLOUDINARY_API_SECRET=
CLOUDINARY_API_SECRET=
Loading
Loading