Skip to content

Commit

Permalink
rename most Subspace mention to Autonomys
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-aurele-besner committed Dec 3, 2024
1 parent 7309dbd commit 9e8f760
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 38 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/discord-bot-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
CONTRACT_ADDRESS: ${{ secrets.CONTRACT_ADDRESS }}
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}

# Subspace EVM-Domain Token Symbol, RPC Endpoint and Blockscout Explorer URL
# Autonomys EVM-Domain Token Symbol, RPC Endpoint and Blockscout Explorer URL
TOKEN_SYMBOL: ${{ secrets.TOKEN_SYMBOL }}
RPC_ENDPOINT: ${{ secrets.RPC_ENDPOINT }}
EXPLORER_URL: ${{ secrets.EXPLORER_URL }}
Expand Down
4 changes: 2 additions & 2 deletions README.MD
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Subspace Testnet Faucet
# Autonomys Testnet Faucet

## Workspace Setup

Expand Down Expand Up @@ -40,7 +40,7 @@ npx hardhat run scripts/deploy.js --network <networkName>

[![Netlify Status](https://api.netlify.com/api/v1/badges/53c4ebc2-182b-4b31-820e-9e4fb006f574/deploy-status)](https://app.netlify.com/sites/subspacefaucet/deploys)

- [Subspace Faucet](https://subspacefaucet.com/)
- [Autonomys Faucet](https://subspacefaucet.com/)

### Move to the web app directory and install dependencies

Expand Down
2 changes: 1 addition & 1 deletion web-app/.env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID=""

GITHUB_CLIENT_ID=""
GITHUB_CLIENT_SECRET=""
GITHUB_ACCOUNT_NAME="subspace"
GITHUB_ACCOUNT_NAME="autonomys"

DISCORD_CLIENT_ID=""
DISCORD_CLIENT_SECRET=""
Expand Down
8 changes: 4 additions & 4 deletions web-app/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "web-app",
"version": "0.0.1",
"description": "Next.js Web App Faucet for Subspace Network",
"description": "Next.js Web App Faucet for Autonomys Network",
"private": true,
"workspaces": [
"src/*"
Expand All @@ -12,11 +12,11 @@
"url": "git+https://github.com/autonomys/faucet.git"
},
"author": {
"name": "Subspace.network",
"url": "https://subspace.network"
"name": "Autonomys Network",
"url": "https://autonomys.xyz"
},
"keywords": [
"subspace",
"autonomys",
"nextjs",
"react",
"typescript",
Expand Down
4 changes: 2 additions & 2 deletions web-app/public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "SubSpace Faucet",
"short_name": "SubSpace Faucet",
"name": "Autonomys Faucet",
"short_name": "Autonomys Faucet",
"icons": [
{
"src": "/logo.png",
Expand Down
2 changes: 1 addition & 1 deletion web-app/src/components/web3Provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const Web3Provider: React.FC<Web3ProviderProps> = ({ children }) => {
const { chains, publicClient } = configureChains(networks, [publicProvider()])

const { connectors } = getDefaultWallets({
appName: 'Subspace Faucet',
appName: 'Autonomys Faucet',
projectId: process.env.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID ?? 'project-id',
chains
})
Expand Down
12 changes: 6 additions & 6 deletions web-app/src/config.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import Head from 'next/head'

const titleDefault = 'Subspace Testnet Faucet'
const url = 'https://faucet.subspace.network'
const titleDefault = 'Autonomys Testnet Faucet'
const url = 'https://subspacefaucet.com'
const description =
'Subspace Testnet Faucet - Get testnet tokens for the Subspace Network. Subspace is a fourth generation blockchain built for the next wave of crypto creators'
const keywords = 'subspace,faucet,testnet'
const author = 'Subspace Network'
const twitter = '@NetworkSubspace'
'Autonomys Testnet Faucet - Get testnet tokens for the Autonomys Network. Autonomys is a fourth generation blockchain built for the next wave of crypto creators'
const keywords = 'autonomys,subspace,faucet,testnet'
const author = 'Autonomys Network'
const twitter = '@AutonomysNet'
const icon = 'logo.png'
const svgIcon = 'logo.svg'
const shareImage = url + '/images/share.png'
Expand Down
2 changes: 1 addition & 1 deletion web-app/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Web3Provider } from '../components/web3Provider'
import Header from '../config'
import theme from '../styles/theme'

const App: React.FC<AppProps> = ({ Component, pageProps = { title: 'Subspace Faucet' } }) => {
const App: React.FC<AppProps> = ({ Component, pageProps = { title: 'Autonomys Faucet' } }) => {
return (
<ChakraProvider theme={theme}>
<ColorModeScript initialColorMode={theme.config.initialColorMode} />
Expand Down
28 changes: 14 additions & 14 deletions web-app/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const RequestTokenButton: React.FC<RequestTokenButtonProps> = ({ contract, addre
return toast({
title: 'Error requesting token',
description:
'Please make sure you are following Subspace GitHub account and connect your GitHub account again.',
'Please make sure you are following Autonomys GitHub account and connect your GitHub account again.',
status: 'error',
duration: 9000,
isClosable: true
Expand Down Expand Up @@ -175,11 +175,11 @@ const RequestTokenButton: React.FC<RequestTokenButtonProps> = ({ contract, addre
We&apos;ve requested {formatUnits(withdrawalAmount, 18)} {chain.nativeCurrency.symbol} for
you.
</Text>
<Link href={`${chain.blockExplorers?.default.url}/tx/${res.txResponse.hash}`} target='_blank'>
{/* <Link href={`${chain.blockExplorers?.default.url}/tx/${res.txResponse.hash}`} target='_blank'>
<Button variant='outline' colorScheme='brand' ml='2' size='sm' color='white'>
View on Subspace Explorer
</Button>
</Link>
</Link> */}
</VStack>
</Center>
</Box>
Expand Down Expand Up @@ -213,7 +213,8 @@ const RequestTokenButton: React.FC<RequestTokenButtonProps> = ({ contract, addre
} else
toast({
title: 'Error requesting token',
description: "We couldn't request token for you. Make sure you are on Subspace network and try again.",
description:
"We couldn't request token for you. Make sure you are on Autonomys Auto-EVM network and try again.",
status: 'error',
duration: 9000,
isClosable: true
Expand Down Expand Up @@ -375,7 +376,7 @@ const Page: React.FC = () => {
{isConnected && !isGitHubFollower && process.env.NEXT_PUBLIC_GITHUB_ACCOUNT_URL && (
<Link href={process.env.NEXT_PUBLIC_GITHUB_ACCOUNT_URL} target='_blank'>
<Button variant='outline' colorScheme='brand' ml='2' size='sm'>
Subspace GitHub
Autonomys GitHub
</Button>
</Link>
)}
Expand Down Expand Up @@ -403,7 +404,7 @@ const Page: React.FC = () => {
</ListItem>
<ListItem>
<Checked isChecked={isConnected && isDiscordGuildMember} />
Join Subspace Discord server
Join Autonomys Discord server
{process.env.NEXT_PUBLIC_DISCORD_INVITE_URL && (
<Link href={process.env.NEXT_PUBLIC_DISCORD_INVITE_URL} target='_blank'>
<Button variant='outline' colorScheme='brand' ml='2' size='sm'>
Expand Down Expand Up @@ -435,7 +436,7 @@ const Page: React.FC = () => {
</TabPanel>
<TabPanel>
<Text size='lg' fontWeight='800' fontSize='1rem' pb='4'>
Terms and Conditions for Subspace Test Token Faucet
Terms and Conditions for Autonomys Test Token Faucet
</Text>
<Text size='lg' fontWeight='800' fontSize='1rem' pb='4'>
By accessing or using the Faucet, you agree to be bound by these terms and conditions.
Expand All @@ -444,11 +445,11 @@ const Page: React.FC = () => {
Last Updated: October 26, 2023
</Text>
<Text size='lg' fontWeight='800' fontSize='1rem' pb='4'>
These Terms and Conditions (&quot;Agreement&quot;) govern your use of the Subspace Faucet
These Terms and Conditions (&quot;Agreement&quot;) govern your use of the Autonomys Faucet
(&quot;Faucet&quot;) provided by
<span> </span>
<Link color='blue' href='https://subspace.network/' target='_blank'>
Subspace Labs (&quot;Provider&quot;)
<Link color='blue' href='https://autonomys.xyz/' target='_blank'>
Autonomys Labs (&quot;Provider&quot;)
</Link>
</Text>
<Text size='lg' fontWeight='800' fontSize='1rem' pb='4'>
Expand Down Expand Up @@ -519,12 +520,11 @@ const Page: React.FC = () => {
<ListItem>8. Contact Information</ListItem>
<ListItem>
8.1. If you have any questions or concerns regarding these terms and conditions, please contact us at
hello@subspace.network
hello@autonomys.xyz
</ListItem>
<ListItem>
By using the Test Token Faucet, you acknowledge that you have read, understood, and agreed to these
terms and conditions and the conditions listed on the page:
https://subspace.network/subspace-terms-of-use.
terms and conditions and the conditions listed on the page: https://www.autonomys.xyz/terms-of-usee.
</ListItem>
</UnorderedList>
</TabPanel>
Expand Down Expand Up @@ -559,7 +559,7 @@ const Page: React.FC = () => {
}

export async function getStaticProps() {
return { props: { title: 'Subspace Faucet' } }
return { props: { title: 'Autonomys Faucet' } }
}

export default Page
10 changes: 4 additions & 6 deletions web-app/src/utils/slack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@ export const buildSlackStatsMessage = (
type: 'section',
text: {
type: 'mrkdwn',
text: `This week total requests: ${requestCount} :subspace-hype:`
text: `This week total requests: ${requestCount} :autonomys:`
}
},
{
type: 'section',
text: {
type: 'mrkdwn',
text: `Unique addresses: ${uniqueAddresses} :subheart-white:`
text: `Unique addresses: ${uniqueAddresses} :auto-heart:`
}
}
)
Expand All @@ -102,16 +102,14 @@ export const buildSlackStatsMessage = (
type: 'section',
text: {
type: 'mrkdwn',
text: `Current total requests: ${requestCount} ${
requestCount > 100 ? ':subspace-hype:' : ':subheart-black:'
}`
text: `Current total requests: ${requestCount} ${requestCount > 100 ? ':autonomys:' : ':auto-heart:'}`
}
},
{
type: 'section',
text: {
type: 'mrkdwn',
text: `Unique addresses: ${uniqueAddresses} :subheart-white:`
text: `Unique addresses: ${uniqueAddresses} :auto-heart:`
}
}
)
Expand Down

0 comments on commit 9e8f760

Please sign in to comment.