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

fix(website): make more clear ttko deposit step #14228

Merged
merged 2 commits into from
Jul 21, 2023
Merged
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
15 changes: 15 additions & 0 deletions packages/website/components/StyledLink.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import Link from "next/link";

export function StyledLink(props) {
const { href, text } = props;
return (
<Link
href={href}
className="nx-text-primary-600 nx-underline nx-decoration-from-font [text-underline-position:from-font]"
target="_blank"
rel="noopener noreferrer"
>
{text}
</Link>
);
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import { Callout, Steps } from "nextra-theme-docs";
import { contractAddressToLink } from "../../../../utils/contractAddressToLink";
import { SEPOLIA_CONFIG, GRIMSVOTN_CONFIG } from "../../../../domain/chain";
import { StyledLink } from "/components/StyledLink";

{console.log(contractAddressToLink(SEPOLIA_CONFIG.blockExplorer.url, SEPOLIA_CONFIG.basedContracts.taikoL1.address.proxy))}

# Enable a proposer

Expand All @@ -21,19 +26,24 @@ This guide will help you enable your Taiko node as a proposer.
<Steps>
### Visit the TaikoL1 contract on block explorer

Navigate to the TaikoL1 contract on the block explorer (see contract addresses [here](/docs/reference/contract-addresses)).
First, you need to visit the `TaikoL1` **proxy contract**:

- If you are depositing **TTKO**, you can visit it <StyledLink href={contractAddressToLink(SEPOLIA_CONFIG.blockExplorer.url, SEPOLIA_CONFIG.basedContracts.taikoL1.address.proxy)} text="here" />.
- If you are depositing **TTKOe**, you can visit it <StyledLink href={contractAddressToLink(GRIMSVOTN_CONFIG.blockExplorer.url, GRIMSVOTN_CONFIG.basedContracts.taikoL1.address.proxy)} text="here" />.

### Click the write proxy tab

Then, visit the "read contract" tab.
Then, visit the "Write proxy" (Blockscout) or "Write as proxy" (Etherscan) tab.

Click the wallet connect button on the explorer.

### Enter deposit amount

Click `depositTaikoToken` and enter the amount of TTKO/TTKOe you would like to deposit followed by 8 zeroes.
Click the text field for `depositTaikoToken` and enter the amount of TTKO or TTKOe you would like to deposit followed by 8 zeroes.

<Callout type="warning">
Make sure to click the plus sign and add `10^8` decimals, or add 8 zeroes
manually.
Make sure to click the plus sign and click `10^8` decimals to add 8 zeroes, or
add 8 zeroes manually.
</Callout>

For example if you want to deposit `69` TTKO/TTKOe, you would enter `6900000000`.
Expand Down