Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
Pass 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian-dev28 committed Sep 21, 2023
1 parent 7cf22da commit 8287d73
Show file tree
Hide file tree
Showing 18 changed files with 106 additions and 107 deletions.
2 changes: 1 addition & 1 deletion api/methods/getLedgerEntries.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -390,4 +390,4 @@ And the response we get contains (even more) `LedgerEntryData` that we can decod
```

[`increment` example contract]: /docs/getting-started/storing-data
["View XDR" page of the Stellar Laboratory]: <https://laboratory.stellar.org/#xdr-viewer?type=LedgerEntryData&network=futurenet>
["View XDR" page of the Stellar Laboratory]: <https://laboratory.stellar.org/#xdr-viewer?type=LedgerEntryData&network=testnet>
4 changes: 2 additions & 2 deletions api/methods/getNetwork.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ General info about the currently configured network.
"jsonrpc": "2.0",
"id": 8675309,
"result": {
"friendbotUrl": "https://friendbot-futurenet.stellar.org/",
"passphrase": "Test SDF Future Network ; October 2022",
"friendbotUrl": "https://friendbot.stellar.org/",
"passphrase": "Test SDF Network ; September 2015",
"protocolVersion": "20"
}
}
Expand Down
4 changes: 2 additions & 2 deletions dapps/dapp-challenges/challenge-0-crowdfund.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ You can now visit the preview link to see your deployed dapp! 🎉

<img src={deployedDApp} width="90%" />

You will need to add some Testnet network lumens to your Freighter wallet to interact with the deployed dapp. Visit [https://laboratory.stellar.org/#account-creator?network=futurenet](https://laboratory.stellar.org/#account-creator?network=futurenet), and follow the instructions to create your Freighter account on Testnet.
You will need to add some Testnet network lumens to your Freighter wallet to interact with the deployed dapp. Visit [https://laboratory.stellar.org/#account-creator?network=testnet](https://laboratory.stellar.org/#account-creator?network=testnet), and follow the instructions to create your Freighter account on Testnet.

## Checkpoint 7: 💪 Pass the Challenge!

Expand Down Expand Up @@ -297,7 +297,7 @@ You should see something like this:
]
```

[Stellar Laboratory]: https://laboratory.stellar.org/#explorer?network=futurenet
[Stellar Laboratory]: https://laboratory.stellar.org/#explorer?network=testnet

## 📚 User Workflows Checklist

Expand Down
16 changes: 8 additions & 8 deletions dapps/dapp-challenges/challenge-1-payment.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ Next, you will need to deploy the smart contracts to Testnet. To do this, open a
soroban contract deploy \
--wasm target/wasm32-unknown-unknown/release/soroban_token_contract.wasm \
--source <ADMIN_ACCOUNT_SECRET_KEY> \
--rpc-url https://rpc-futurenet.stellar.org:443 \
--network-passphrase 'Test SDF Future Network ; October 2022'
--rpc-url https://soroban-testnet.stellar.org:443 \
--network-passphrase 'Test SDF Network ; September 2015'
```

This will return a contract id that we will need to use in the next step.
Expand All @@ -76,8 +76,8 @@ This will return a contract id that we will need to use in the next step.
soroban contract invoke \
--id <TOKEN_CONTRACT_ID> \
--source-account <ADMIN_ACCOUNT_SECRET_KEY> \
--rpc-url https://rpc-futurenet.stellar.org:443 \
--network-passphrase 'Test SDF Future Network ; October 2022' \
--rpc-url https://soroban-testnet.stellar.org:443 \
--network-passphrase 'Test SDF Network ; September 2015' \
-- initialize \
--admin <ADMIN_PUBLIC_KEY> \
--decimal 7 \
Expand All @@ -101,8 +101,8 @@ Next we will need to mint some tokens to your sender's account. To do this, run
soroban contract invoke \
--id <TOKEN_CONTRACT_ID> \
--source-account <ADMIN_ACCOUNT_SECRET_KEY> \
--rpc-url https://rpc-futurenet.stellar.org:443 \
--network-passphrase 'Test SDF Future Network ; October 2022' \
--rpc-url https://soroban-testnet.stellar.org:443 \
--network-passphrase 'Test SDF Network ; September 2015' \
-- mint \
--to <USER_PUBLIC_KEY> \
--amount 1000000000
Expand Down Expand Up @@ -201,8 +201,8 @@ You can also check the balance of an account with the soroban-cli by running the
soroban contract invoke \
--id <TOKEN_CONTRACT_ID> \
--source-account <ANY_SECRET_KEY> \
--rpc-url https://rpc-futurenet.stellar.org:443 \
--network-passphrase 'Test SDF Future Network ; October 2022' \
--rpc-url https://soroban-testnet.stellar.org:443 \
--network-passphrase 'Test SDF Network ; September 2015' \
-- balance \
--id <RECIPIENT_PUBLIC_KEY>
```
Expand Down
8 changes: 4 additions & 4 deletions dapps/dapp-challenges/challenge-2-liquidity-pool.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ For this step, you must change the existing contract configuration to suit a loc
First, navigate to `frontend/src/contracts.ts` and change `const rpcUrl`:

```diff
-const rpcUrl = 'https://rpc-futurenet.stellar.org'
-const rpcUrl = 'https://soroban-testnet.stellar.org'
+const rpcUrl = 'http://localhost:8000/soroban/rpc'
```

Expand Down Expand Up @@ -235,7 +235,7 @@ Navigate to `frontend/src/contracts.ts` and change `const rpcUrl`:

```diff
-const rpcUrl = 'http://localhost:8000/soroban/rpc'
+const rpcUrl = 'https://rpc-futurenet.stellar.org'
+const rpcUrl = 'https://soroban-testnet.stellar.org'
```

Then, change each contract network to Testnet:
Expand All @@ -261,7 +261,7 @@ make start_dev

Now, open your browser and visit [http://localhost:5173](http://localhost:5173/).

Ensure that Freighter is connected to Futurenet, and you should be able to see the frontend of your dapp!
Ensure that Freighter is connected to Testnet, and you should be able to see the frontend of your dapp!

Next, you will remove the target directory, as it is not used by Vercel to deploy your site. To do this, run the following:

Expand Down Expand Up @@ -351,7 +351,7 @@ You can now visit the preview link to see your deployed dapp! 🎉

<img src={futurenetDeployment} width="90%" />

You must add Testnet network lumens to your Freighter wallet to interact with the deployed example dapp. Visit https://laboratory.stellar.org/#account-creator?network=futurenet, and follow the instructions to create your Freighter account on Futurenet.
You must add Testnet network lumens to your Freighter wallet to interact with the deployed example dapp. Visit https://laboratory.stellar.org/#account-creator?network=futurenet, and follow the instructions to create your Freighter account on Testnet.

## Checkpoint 9: ✅ Complete the Challenge!

Expand Down
18 changes: 9 additions & 9 deletions dapps/guides/initialization.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ After building, you're ready to deploy the smart contracts to Testnet. To do thi
soroban contract deploy \
--wasm target/wasm32-unknown-unknown/release/soroban_token_contract.wasm \
--source <ADMIN_ACCOUNT_SECRET_KEY> \
--rpc-url https://rpc-futurenet.stellar.org:443 \
--network-passphrase 'Test SDF Future Network ; October 2022'
--rpc-url https://soroban-testnet.stellar.org:443 \
--network-passphrase 'Test SDF Network ; September 2015'
```

This command deploys the smart contracts to Testnet using the `soroban contract deploy` function.
Expand All @@ -52,8 +52,8 @@ With the contracts deployed, it's time to initialize the token contract:
soroban contract invoke \
--id <TOKEN_CONTRACT_ID> \
--source-account <ADMIN_ACCOUNT_SECRET_KEY> \
--rpc-url https://rpc-futurenet.stellar.org:443 \
--network-passphrase 'Test SDF Future Network ; October 2022' \
--rpc-url https://soroban-testnet.stellar.org:443 \
--network-passphrase 'Test SDF Network ; September 2015' \
-- initialize \
--admin <ADMIN_PUBLIC_KEY> \
--decimal 7 \
Expand All @@ -79,8 +79,8 @@ Lastly, you need to mint some tokens to the sender's account:
soroban contract invoke \
--id <TOKEN_CONTRACT_ID> \
--source-account <ADMIN_ACCOUNT_SECRET_KEY> \
--rpc-url https://rpc-futurenet.stellar.org:443 \
--network-passphrase 'Test SDF Future Network ; October 2022' \
--rpc-url https://soroban-testnet.stellar.org:443 \
--network-passphrase 'Test SDF Network ; September 2015' \
-- mint \
--to <USER_PUBLIC_KEY> \
--amount 1000000000
Expand Down Expand Up @@ -115,7 +115,7 @@ else
SOROBAN_RPC_HOST="http://localhost:8000"
fi

SOROBAN_RPC_URL="https://rpc-futurenet.stellar.org"
SOROBAN_RPC_URL="https://soroban-testnet.stellar.org"

case "$1" in
standalone)
Expand All @@ -125,8 +125,8 @@ standalone)
;;
futurenet)
echo "Using Testnet network"
SOROBAN_NETWORK_PASSPHRASE="Test SDF Future Network ; October 2022"
FRIENDBOT_URL="https://friendbot-futurenet.stellar.org/"
SOROBAN_NETWORK_PASSPHRASE="Test SDF Network ; September 2015"
FRIENDBOT_URL="https://friendbot.stellar.org/"
;;
*)
echo "Usage: $0 standalone|futurenet"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ test test::test ... ok

Now that we have a working vault contract, we can deploy it to a network and interact with it.

This section requires you to have a funded Keypair to use with Stellar's Futurenet. You can create and fund one using the [Stellar Laboratory](https://laboratory.stellar.org/#account-creator?network=futurenet).
This section requires you to have a funded Keypair to use with Stellar's Testnet. You can create and fund one using the [Stellar Laboratory](https://laboratory.stellar.org/#account-creator?network=futurenet).

Below you will find a series of commands that will help you build, deploy and interact with the vault and token contracts. You can use them to follow along as we walk through the process of building, deploying, and interacting with the contracts. It may behoove you to keep these commands in a `scripts` directory in your project. This way, you can easily run them from your terminal.

Expand All @@ -942,8 +942,8 @@ soroban contract build
soroban contract deploy \
--wasm soroban_token_contract.wasm \
--source <SECRET_KEY> \
--rpc-url https://rpc-futurenet.stellar.org:443 \
--network-passphrase 'Test SDF Future Network ; October 2022'
--rpc-url https://soroban-testnet.stellar.org:443 \
--network-passphrase 'Test SDF Network ; September 2015'
```

</TabItem>
Expand All @@ -955,8 +955,8 @@ soroban contract invoke \
--wasm soroban_token_contract.wasm \
--id <TOKEN_CONTRACT_ID> \
--source <SECRET_KEY> \
--rpc-url https://rpc-futurenet.stellar.org:443 \
--network-passphrase 'Test SDF Future Network ; October 2022' \
--rpc-url https://soroban-testnet.stellar.org:443 \
--network-passphrase 'Test SDF Network ; September 2015' \
-- \
initialize \
--admin <USER_ADDRESS> \
Expand All @@ -974,8 +974,8 @@ soroban contract invoke \
--wasm soroban_token_contract.wasm \
--id <TOKEN_CONTRACT_ID> \
--source <SECRET_KEY> \
--rpc-url https://rpc-futurenet.stellar.org:443 \
--network-passphrase 'Test SDF Future Network ; October 2022' \
--rpc-url https://soroban-testnet.stellar.org:443 \
--network-passphrase 'Test SDF Network ; September 2015' \
-- \
mint \
--to <USER_OR_VAULT_ADDRESS> \
Expand All @@ -991,8 +991,8 @@ soroban contract invoke \
--wasm soroban_token_contract.wasm \
--id <TOKEN_CONTRACT_ID> \
--source <SECRET_KEY> \
--rpc-url https://rpc-futurenet.stellar.org:443 \
--network-passphrase 'Test SDF Future Network ; October 2022' \
--rpc-url https://soroban-testnet.stellar.org:443 \
--network-passphrase 'Test SDF Network ; September 2015' \
-- \
balance \
--id <USER_OR_VAULT_ADDRESS>
Expand All @@ -1014,8 +1014,8 @@ soroban contract install --wasm soroban_token_contract.wasm
soroban contract deploy \
--wasm target/wasm32-unknown-unknown/release/vault.wasm \
--source <SECRET_KEY> \
--rpc-url https://rpc-futurenet.stellar.org:443 \
--network-passphrase 'Test SDF Future Network ; October 2022'
--rpc-url https://soroban-testnet.stellar.org:443 \
--network-passphrase 'Test SDF Network ; September 2015'
```

</TabItem>
Expand All @@ -1027,8 +1027,8 @@ soroban contract invoke \
--wasm target/wasm32-unknown-unknown/release/vault.wasm \
--id <VAULT_CONTRACT_ID> \
--source <SECRET_KEY> \
--rpc-url https://rpc-futurenet.stellar.org:443 \
--network-passphrase 'Test SDF Future Network ; October 2022' \
--rpc-url https://soroban-testnet.stellar.org:443 \
--network-passphrase 'Test SDF Network ; September 2015' \
-- \
initialize \
--token_wasm_hash 73593275ee3bcacc2aef8d641a1d5108618064bdfff84a826576b8caff395add \
Expand All @@ -1044,8 +1044,8 @@ soroban contract invoke \
--wasm target/wasm32-unknown-unknown/release/vault.wasm \
--id <VAULT_CONTRACT_ID> \
--source <SECRET_KEY> \
--rpc-url https://rpc-futurenet.stellar.org:443 \
--network-passphrase 'Test SDF Future Network ; October 2022' \
--rpc-url https://soroban-testnet.stellar.org:443 \
--network-passphrase 'Test SDF Network ; September 2015' \
-- \
share_id
```
Expand All @@ -1059,8 +1059,8 @@ soroban contract invoke \
--wasm target/wasm32-unknown-unknown/release/vault.wasm \
--id <VAULT_CONTRACT_ID> \
--source <SECRET_KEY> \
--rpc-url https://rpc-futurenet.stellar.org:443 \
--network-passphrase 'Test SDF Future Network ; October 2022' \
--rpc-url https://soroban-testnet.stellar.org:443 \
--network-passphrase 'Test SDF Network ; September 2015' \
-- \
deposit \
--from <USER_ADDRESS> \
Expand All @@ -1076,8 +1076,8 @@ soroban contract invoke \
--wasm target/wasm32-unknown-unknown/release/vault.wasm \
--id <VAULT_CONTRACT_ID> \
--source <SECRET_KEY> \
--rpc-url https://rpc-futurenet.stellar.org:443 \
--network-passphrase 'Test SDF Future Network ; October 2022' \
--rpc-url https://soroban-testnet.stellar.org:443 \
--network-passphrase 'Test SDF Network ; September 2015' \
-- \
get_rsrvs
```
Expand All @@ -1091,8 +1091,8 @@ soroban contract invoke \
--wasm target/wasm32-unknown-unknown/release/vault.wasm \
--id <VAULT_CONTRACT_ID> \
--source <SECRET_KEY> \
--rpc-url https://rpc-futurenet.stellar.org:443 \
--network-passphrase 'Test SDF Future Network ; October 2022' \
--rpc-url https://soroban-testnet.stellar.org:443 \
--network-passphrase 'Test SDF Network ; September 2015' \
-- \
withdraw \
--to <USER_ADDRESS> \
Expand All @@ -1116,8 +1116,8 @@ Next, we need to deploy the token contract. We can do this by running the `deplo
soroban contract deploy \
--wasm soroban_token_contract.wasm \
--source <SECRET_KEY> \
--rpc-url https://rpc-futurenet.stellar.org:443 \
--network-passphrase 'Test SDF Future Network ; October 2022'
--rpc-url https://soroban-testnet.stellar.org:443 \
--network-passphrase 'Test SDF Network ; September 2015'
```

We should receive an output with the token contract ID. We will need this ID for the next step.
Expand All @@ -1141,8 +1141,8 @@ soroban contract invoke \
--wasm soroban_token_contract.wasm \
--id <TOKEN_CONTRACT_ID> \
--source <SECRET_KEY> \
--rpc-url https://rpc-futurenet.stellar.org:443 \
--network-passphrase 'Test SDF Future Network ; October 2022' \
--rpc-url https://soroban-testnet.stellar.org:443 \
--network-passphrase 'Test SDF Network ; September 2015' \
-- \
initialize \
--admin <USER_ADDRESS> \
Expand All @@ -1157,8 +1157,8 @@ Next, we need to deploy the vault contract. We can do this by running the `deplo
soroban contract deploy \
--wasm target/wasm32-unknown-unknown/release/vault.wasm \
--source <SECRET_KEY> \
--rpc-url https://rpc-futurenet.stellar.org:443 \
--network-passphrase 'Test SDF Future Network ; October 2022'
--rpc-url https://soroban-testnet.stellar.org:443 \
--network-passphrase 'Test SDF Network ; September 2015'
```

We should receive an output with the vault contract ID. We will need this ID for the next step.
Expand Down Expand Up @@ -1212,8 +1212,8 @@ soroban contract invoke \
--wasm target/wasm32-unknown-unknown/release/vault.wasm \
--id <VAULT_CONTRACT_ID> \
--source <SECRET_KEY> \
--rpc-url https://rpc-futurenet.stellar.org:443 \
--network-passphrase 'Test SDF Future Network ; October 2022' \
--rpc-url https://soroban-testnet.stellar.org:443 \
--network-passphrase 'Test SDF Network ; September 2015' \
-- \
initialize \
--token_wasm_hash 73593275ee3bcacc2aef8d641a1d5108618064bdfff84a826576b8caff395add \
Expand Down Expand Up @@ -1245,8 +1245,8 @@ soroban contract invoke \
--wasm soroban_token_contract.wasm \
--id <TOKEN_CONTRACT_ID> \
--source <SECRET_KEY> \
--rpc-url https://rpc-futurenet.stellar.org:443 \
--network-passphrase 'Test SDF Future Network ; October 2022' \
--rpc-url https://soroban-testnet.stellar.org:443 \
--network-passphrase 'Test SDF Network ; September 2015' \
-- \
mint \
--to <USER_OR_VAULT_ADDRESS> \
Expand All @@ -1260,8 +1260,8 @@ soroban contract invoke \
--wasm soroban_token_contract.wasm \
--id <TOKEN_CONTRACT_ID> \
--source <SECRET_KEY> \
--rpc-url https://rpc-futurenet.stellar.org:443 \
--network-passphrase 'Test SDF Future Network ; October 2022' \
--rpc-url https://soroban-testnet.stellar.org:443 \
--network-passphrase 'Test SDF Network ; September 2015' \
-- \
balance \
--id <USER_ADDRESS>
Expand All @@ -1280,8 +1280,8 @@ soroban contract invoke \
--wasm target/wasm32-unknown-unknown/release/vault.wasm \
--id <VAULT_CONTRACT_ID> \
--source <ACCOUNT_SECRET_KEY> \
--rpc-url https://rpc-futurenet.stellar.org:443 \
--network-passphrase 'Test SDF Future Network ; October 2022' \
--rpc-url https://soroban-testnet.stellar.org:443 \
--network-passphrase 'Test SDF Network ; September 2015' \
-- \
deposit \
--from <USER_ADDRESS> \
Expand All @@ -1295,8 +1295,8 @@ soroban contract invoke \
--wasm target/wasm32-unknown-unknown/release/vault.wasm \
--id <VAULT_CONTRACT_ID> \
--source <SECRET_KEY> \
--rpc-url https://rpc-futurenet.stellar.org:443 \
--network-passphrase 'Test SDF Future Network ; October 2022' \
--rpc-url https://soroban-testnet.stellar.org:443 \
--network-passphrase 'Test SDF Network ; September 2015' \
-- \
get_rsrvs
```
Expand All @@ -1316,8 +1316,8 @@ soroban contract invoke \
--wasm target/wasm32-unknown-unknown/release/vault.wasm \
--id <VAULT_CONTRACT_ID> \
--source <SECRET_KEY> \
--rpc-url https://rpc-futurenet.stellar.org:443 \
--network-passphrase 'Test SDF Future Network ; October 2022' \
--rpc-url https://soroban-testnet.stellar.org:443 \
--network-passphrase 'Test SDF Network ; September 2015' \
-- \
withdraw \
--to <USER_ADDRESS> \
Expand Down
2 changes: 1 addition & 1 deletion docs/fundamentals-and-concepts/state-expiration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ import {
FeeBumpTransaction,
} from "soroban-client";

const RPC_SERVER = "https://rpc-futurenet.stellar.org/";
const RPC_SERVER = "https://soroban-testnet.stellar.org/";
const server = new Server(RPC_SERVER);

// Submits a tx and then polls for its status until a timeout is reached.
Expand Down
Loading

0 comments on commit 8287d73

Please sign in to comment.