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

docs: update BOB Sepolia (Testnet) references in documentation #260

Merged
merged 2 commits into from
Jun 11, 2024
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Proof length is the number of headers needed before and after a retarget to upda

| Network | Name | Address |
|-------------|----------------|-------------------------------------------------------------------------------------------------------------------------------------|
| BOB Sepolia | TestLightRelay | [0x4c51bc419ead57da0d825afae3090f2f76e5892d](https://testnet-explorer.gobob.xyz/address/0x4c51bc419ead57da0d825afae3090f2f76e5892d) |
| BOB Sepolia (Testnet) | TestLightRelay | [0x4c51bc419ead57da0d825afae3090f2f76e5892d](https://testnet-explorer.gobob.xyz/address/0x4c51bc419ead57da0d825afae3090f2f76e5892d) |
| BOB Mainnet | LightRelay | [0x9fe7ef727da3d79e0308ff43f31ea1d077ee9f41](https://explorer.gobob.xyz/address/0x9fe7ef727da3d79e0308ff43f31ea1d077ee9f41) |

## Security
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Gas Fee Payment in wBTC using Account Abstraction (ERC-4337)

In this example, we will show how wBTC can be used for gas fee payment using the [ERC-4337 account abstraction standard](https://eips.ethereum.org/EIPS/eip-4337) on the BOB testnet. This enables users to use smart contract wallets and transact without the need to own ETH.
In this example, we will show how wBTC can be used for gas fee payment using the [ERC-4337 account abstraction standard](https://eips.ethereum.org/EIPS/eip-4337) on BOB Sepolia (Testnet). This enables users to use smart contract wallets and transact without the need to own ETH.

:::tip Live Demo

Expand Down Expand Up @@ -36,7 +36,7 @@ Before the first user operation can be made, the paymaster smart contract has to

1. Go to [demo-acccount-abstraction.gobob.xyz](https://demo-account-abstraction.gobob.xyz/)
2. Fund your account with Sepolia ETH from the [Sepolia testnet faucet](https://faucetlink.to/sepolia).
3. Transfer Sepolia ETH to BOB using [our Bridge](https://app.gobob.xyz/).
3. Transfer Sepolia ETH to BOB Sepolia (Testnet) using [our Bridge](https://app.gobob.xyz/).
4. Connect with your MetaMask account and get wBTC by clicking on the 'Get Tokens' button in the application header. (You will receive 30,000 wBTC that you can spend.)
5. Add wBTC to your MetaMask, wBTC address is `0x2868d708e442A6a940670d26100036d426F1e16b`
6. Transfer wBTC to the smart contract account via MetaMask (displayed above the amount field in the form).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Gas Fee Payment in wBTC using Meta Transactions (OpenGSN & ERC-2771)

In this example, we will show how wBTC can be used for gas fee payments using the OpenGSN and [ERC-2771 standard](https://eips.ethereum.org/EIPS/eip-2771) on the BOB testnet. This enables users to transact without the necessity to own ETH.
In this example, we will show how wBTC can be used for gas fee payments using the OpenGSN and [ERC-2771 standard](https://eips.ethereum.org/EIPS/eip-2771) on BOB Sepolia (Testnet). This enables users to transact without the necessity to own ETH.

:::tip Live Demo

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/build/contracts/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Contracts

## BOB Testnet (Sepolia)
## BOB Sepolia (Testnet)

- WETH9: [`0x4200000000000000000000000000000000000006`](https://testnet-explorer.gobob.xyz/address/0x4200000000000000000000000000000000000006)
- L2CrossDomainMessenger: [`0x4200000000000000000000000000000000000007`](https://testnet-explorer.gobob.xyz/address/0x4200000000000000000000000000000000000007)
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/build/examples/zkvm-taproot/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# zkVM Taproot Address Ownership Proofs

This demo uses [zkVM](https://dev.risczero.com/zkvm/) to prove ownership of a Bitcoin taproot address. A user submits a Bitcoin private key to zkVM, which will derive the public key and submit it to the BOB testnet. Because of the zero-knowledge (zk) part of zkVM, no information regarding the private key gets published. The proof is generated by [Bonsai](https://dev.risczero.com/bonsai/) and verified on-chain.
This demo uses [zkVM](https://dev.risczero.com/zkvm/) to prove ownership of a Bitcoin taproot address. A user submits a Bitcoin private key to zkVM, which will derive the public key and submit it to BOB Sepolia (Testnet). Because of the zero-knowledge (zk) part of zkVM, no information regarding the private key gets published. The proof is generated by [Bonsai](https://dev.risczero.com/bonsai/) and verified on-chain.

:::info Example Code

Expand Down Expand Up @@ -99,7 +99,7 @@ Now finally, initiate the proving of an address:
cargo run --bin taproot-prover -- --address 0000000000000000000000000000000000000001 --taproot-address $TAPROOT_ADDRESS_FROM_PREVIOUS_STEP --bonsai-api-key=$API_KEY
```

The command above, if it runs successfully, will initiate the generation of a zk-proof on the Bonsai server, and after completion (which can take a couple of minutes), it will submit it to the BOB testnet for verification. After waiting a couple of minutes, you will be able to see the result in the explorer. Go to [the explorer](https://explorerl2-fluffy-bob-7mjgi9pmtg.t.conduit.xyz/) and search for the previously logged `$TAPROOT_REGISTER` address. Go to the "Internal Transactions", click the latest transaction, and click "Logs". You should see an `OwnershipProven` event, showing your Ethereum and taproot address.
The command above, if it runs successfully, will initiate the generation of a zk-proof on the Bonsai server, and after completion (which can take a couple of minutes), it will submit it to BOB Sepolia (Testnet) for verification. After waiting a couple of minutes, you will be able to see the result in the explorer. Go to [the explorer](https://explorerl2-fluffy-bob-7mjgi9pmtg.t.conduit.xyz/) and search for the previously logged `$TAPROOT_REGISTER` address. Go to the "Internal Transactions", click the latest transaction, and click "Logs". You should see an `OwnershipProven` event, showing your Ethereum and taproot address.

## Diving into the Code

Expand Down
14 changes: 7 additions & 7 deletions docs/docs/build/getting-started/helloworld.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
sidebar_position: 2
---

import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";

# Hello Bitcoin

Expand Down Expand Up @@ -32,15 +32,15 @@ Solidity and a toolchain are sufficient to get you started deploying contracts o
### Overview of the contract

- The contract allows swapping between BTC->USDT and Ordinal->USDT using the BTC relay on testnet without requiring the BTC or ordinals to be bridged to BOB.
- The contract integrates the [BTC relay](/docs/contracts/src/src/relay/LightRelay.sol/contract.LightRelay) to enable trustless communication between the Bitcoin blockchain and the BOB testnet.
- The contract integrates the [BTC relay](/docs/contracts/src/src/relay/LightRelay.sol/contract.LightRelay) to enable trustless communication between the Bitcoin blockchain and BOB Sepolia (Testnet).

### Objectives

- **Set up a development environment**: Learn how to set up a development environment for your BOB smart contract development.
- **Create a Smart Contract for BOB**: We will use [HelloBitcoin smart contract](https://github.com/bob-collective/StarterKit/blob/main/src/HelloBitcoin.sol) present in the developer kit.
- **Compile a Smart Contract for BOB**: Compile your HelloBitcoin smart contract using the development environment.
- **Deploy a Smart Contract to BOB**: Deploy your compiled smart contract to the BOB testnet.
- **Interact with a Smart Contract Deployed on BOB**: Learn how to interact with the smart contract you've deployed on the BOB testnet.
- **Deploy a Smart Contract to BOB**: Deploy your compiled smart contract to BOB Sepolia (Testnet).
- **Interact with a Smart Contract Deployed on BOB**: Learn how to interact with the smart contract you've deployed on BOB Sepolia (Testnet).

### Prerequisites

Expand Down Expand Up @@ -613,7 +613,7 @@ Add the `_RELAY` ie `TestLightRelay` address copied above.
Add the `_USDTCONTRACTADDRESS` address as `0xF58de5056b7057D74f957e75bFfe865F571c3fB6`.

:::tip
If you want, you can also modify the contract at a later stage and use [other ERC20 contracts already deployed on BOB testnet](/docs/build/contracts/).
If you want, you can also modify the contract at a later stage and use [other ERC20 contracts already deployed on BOB Sepolia (Testnet)](/docs/build/contracts/).
:::

Click `Deploy` and sign the transaction pop up message.
Expand Down Expand Up @@ -716,4 +716,4 @@ We recommend taking a look at our [Trustless P2P Swap](https://docs.gobob.xyz/do
- [HelloBitcoin contract code](https://github.com/bob-collective/StarterKit/blob/main/src/HelloBitcoin.sol)
- [Remix](https://remix.ethereum.org/)
- [Foundry](https://book.getfoundry.sh/)
- [BOB testnet](networks)
- [BOB Sepolia (Testnet)](networks)
4 changes: 2 additions & 2 deletions docs/docs/build/getting-started/networks.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ If you are having issues with your RPC connection, try [BlastAPI's public endpoi

# Testnet Information

## BOB Testnet (Sepolia)
## BOB Sepolia (Testnet)

- Chain ID: 111
- Gas Token: ETH
- RPC URL: https://testnet.rpc.gobob.xyz/
- Explorer: https://testnet-explorer.gobob.xyz/
- Bridge (BOB Testnet - Sepolia): https://testnet.gobob.xyz/
- Bridge: https://testnet.gobob.xyz/

## Ethereum Sepolia

Expand Down
4 changes: 2 additions & 2 deletions docs/docs/build/tools/oracles.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ DIA has [oracle integration samples](https://docs.diadata.org/products/token-pri
**Supported Networks**

- BOB Mainnet: [0x4d24e7c1cf0ed63bc8c6cb5a795af31fd8127c6b](https://explorer.gobob.xyz/address/0x4d24E7c1cF0ed63bc8c6cB5a795af31FD8127C6B)
- BOB Testnet: [0xe5c6f823a73c7839f0d4cbc9cf2a6a220953bbe4](https://testnet-explorer.gobob.xyz/address/0xE5c6f823A73c7839F0D4CBc9Cf2A6A220953bBE4)
- BOB Sepolia (Testnet): [0xe5c6f823a73c7839f0d4cbc9cf2a6a220953bbe4](https://testnet-explorer.gobob.xyz/address/0xE5c6f823A73c7839F0D4CBc9Cf2A6A220953bBE4)

## Tellor

Expand All @@ -72,4 +72,4 @@ To use Tellor data see their [integration guide](https://docs.tellor.io/tellor/g
**Supported Networks**

- BOB Mainnet: [0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc](https://explorer.gobob.xyz/address/0x896419Ed2E0dC848a1f7d2814F4e5Df4b9B9bFcc)
- BOB Testnet: [0xC866DB9021fe81856fF6c5B3E3514BF9D1593D81](https://testnet-explorer.gobob.xyz/address/0xC866DB9021fe81856fF6c5B3E3514BF9D1593D81)
- BOB Sepolia (Testnet): [0xC866DB9021fe81856fF6c5B3E3514BF9D1593D81](https://testnet-explorer.gobob.xyz/address/0xC866DB9021fe81856fF6c5B3E3514BF9D1593D81)
10 changes: 5 additions & 5 deletions docs/docs/learn/guides/use-bob.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ The P2P swap demo shows how BOB enables swaps between BTC, ordinals, and ERC20 a
- [P2P Swap Demo](https://testnet.gobob.xyz/)
- [User Guide](/docs/build/examples/btc-swap/)

## BOB Testnet
## BOB Sepolia (Testnet)

If you want to use the testnet to interact with other apps deployed on BOB or deploy your own contracts, please follow the following steps:

1. Install an EVM wallet such as [Metamask](https://metamask.io/).
2. Add the BOB testnet to MetaMask or other wallet:
2. Add the BOB Sepolia (Testnet) network to MetaMask or other wallet:
1. Open the MetaMask browser extension.
2. Open the network selection dropdown menu by clicking the dropdown button at the top of the extension.
3. Click the Add network button.
4. Click Add a network manually.
5. In the Add a network manually dialog that appears, enter the following information:
- Network Name: BOB Testnet
- Network Name: BOB Sepolia (Testnet)
- New RPC URL: https://testnet.rpc.gobob.xyz
- Chain ID: 111
- Currency Symbol (optional): ETH
Expand All @@ -33,9 +33,9 @@ If you want to use the testnet to interact with other apps deployed on BOB or de
![MetaMask](add-to-wallet.png)

3. Get Sepolia ETH from one the faucets: https://faucetlink.to/sepolia
4. Connect your wallet to the Sepolia BOB bridge and bridge your ETH to the BOB testnet:
4. Connect your wallet to the Sepolia BOB bridge and bridge your ETH to the BOB Sepolia (Testnet):
- [BOB Bridge](https://app.gobob.xyz/)
5. You are now ready to use the BOB testnet
5. You are now ready to use the BOB Sepolia (Testnet)

![BOB Bridge](bridge.png)

Expand Down
Loading