Skip to content

Commit

Permalink
docs(website): add hackathon docs and update contract docs (#13593)
Browse files Browse the repository at this point in the history
  • Loading branch information
dionysuzx authored Apr 13, 2023
1 parent 0927c89 commit c86f2cd
Show file tree
Hide file tree
Showing 24 changed files with 126 additions and 6 deletions.
4 changes: 4 additions & 0 deletions packages/protocol/solidity-docgen/templates/contract.hbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: {{name}}
---

{{>common}}

{{#each items}}
Expand Down
8 changes: 5 additions & 3 deletions packages/website/pages/docs/guides/receive-tokens.mdx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { Steps } from "nextra-theme-docs";
import { Callout, Steps } from "nextra-theme-docs";

This guide will help you receive testnet tokens from the faucet(s).
<Callout type="info" emoji="ℹ️">
The HORSE token and BLL token are both dummy test tokens that are used for testing the bridge and swap.
</Callout>

> The HORSE token and BLL token are both dummy test tokens that are used for testing the bridge and swap.
This guide will help you receive testnet tokens from the faucet(s).

## Prerequisites

Expand Down
8 changes: 5 additions & 3 deletions packages/website/pages/docs/guides/swap-tokens.mdx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { Steps } from "nextra-theme-docs";
import { Callout, Steps } from "nextra-theme-docs";

This guide will help you interact with Swap, which is a fork of Uniswap v2 which Taiko has deployed only for testing purposes.
<Callout type="info" emoji="ℹ️">
The HORSE token and BLL token are both dummy test tokens that are used for testing the bridge and swap.
</Callout>

> The HORSE token and BLL token are both dummy test tokens that are used for testing the bridge and swap.
This guide will help you interact with Swap, which is a fork of Uniswap v2 which Taiko has deployed only for testing purposes.

## Prerequisites

Expand Down
3 changes: 3 additions & 0 deletions packages/website/pages/docs/reference/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@
},
"rpc-configuration": {
"title": "RPC configuration"
},
"ethglobal-tokyo-reference": {
"title": "ETHGlobal Tokyo reference"
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: IProofVerifier
---

## IProofVerifier

### verifyZKP
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: TaikoCustomErrors
---

## TaikoCustomErrors

### L1_0_FEE_BASE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: TaikoData
---

## TaikoData

### Config
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: TaikoEvents
---

## TaikoEvents

### BlockVerified
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: TaikoL1
---

## TaikoL1

### state
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: TaikoToken
---

## TaikoToken

_This is Taiko's governance and fee token._
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: TaikoL2
---

## TaikoL2

### latestSyncedL1Height
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: Bridge
---

## Bridge

Bridge contract which is deployed on both L1 and L2. Mostly a thin wrapper
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: BridgeErrors
---

## BridgeErrors

### B_CANNOT_RECEIVE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: BridgedERC20
---

## BridgedERC20

### srcToken
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: EtherVault
---

## EtherVault

EtherVault is a special vault contract that:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: IBridge
---

## IBridge

Bridge interface.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: TokenVault
---

## TokenVault

This vault holds all ERC20 tokens (but not Ether) that users have deposited.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: AddressResolver
---

## AddressResolver

This abstract contract provides a name-to-address lookup. Under the hood,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: IAddressManager
---

## IAddressManager

Interface to set and get an address for a name.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: IHeaderSync
---

## IHeaderSync

Interface implemented by both the TaikoL1 and TaikoL2 contracts. It exposes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: IMintableERC20
---

## IMintableERC20

### mint
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: ISignalService
---

## ISignalService

### sendSignal
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
title: SignalService
---

## SignalService

### SignalProof
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
This is the ETHGlobal Tokyo hackathon testnet reference page.

## Network configuration

| Network | Chain ID | RPC URL | WS URL | Symbol | Block Explorer URL |
| ------- | -------- | --------------------------------- | -------------------------------- | ------ | -------------------------------------- |
| Sepolia | 11155111 | https://rpc.sepolia.org | N/A (can try Alchemy or Infura) | ETH | https://sepolia.etherscan.io/ |
| Taiko | 167002 | https://l2rpc.hackathon.taiko.xyz | https://l2ws.hackathon.taiko.xyz | ETH | https://l2explorer.hackathon.taiko.xyz |

## Faucets

| Network | Faucet URL |
| ------- | ---------------------------------------------------------------- |
| Sepolia | https://taiko.xyz/docs/guides/receive-tokens#receive-sepolia-eth |
| Taiko | https://l2faucet.hackathon.taiko.xyz |

## Contract addresses

> **NOTE:** If there is a missing contract address you are looking for or are interested in, please reach out to the Taiko team on the ETH Global Tokyo Discord.
### Sepolia L1

| Contract name | Address |
| ------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| SignalService | [0x11013a48Ad87a528D23CdA25D2C34D7dbDA6b46b](https://sepolia.etherscan.io/address/0x11013a48Ad87a528D23CdA25D2C34D7dbDA6b46b) |
| TaikoL1 | [0x1Dd84563dAD23791f35111EefB3e28f709451526](https://sepolia.etherscan.io/address/0x1Dd84563dAD23791f35111EefB3e28f709451526) |

### Taiko L2

| Contract name | Address |
| ------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| SignalService | [0x0000777700000000000000000000000000000007](https://l2explorer.hackathon.taiko.xyz/address/0x0000777700000000000000000000000000000007) |
| TaikoL2 | [0x0000777700000000000000000000000000000001](https://l2explorer.hackathon.taiko.xyz/address/0x0000777700000000000000000000000000000001) |

0 comments on commit c86f2cd

Please sign in to comment.