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

Update TESTNET -> DEVNET in the docs #744

Merged
merged 3 commits into from
Dec 17, 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
8 changes: 4 additions & 4 deletions apps/nextra/pages/en/build/guides/exchanges.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ the `0x1::coin::balance<CoinType>(account address)` view function. This will co
```ts filename="example.ts"
import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";

const config = new AptosConfig({ network: Network.TESTNET });
const config = new AptosConfig({ network: Network.DEVNET });
const aptos = new Aptos(config);

const coinType = "0x1::aptos_coin::AptosCoin";
Expand All @@ -146,7 +146,7 @@ A specific ledger version (transaction height) can be provided to get the balanc
```ts filename="example.ts"
import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";

const config = new AptosConfig({ network: Network.TESTNET });
const config = new AptosConfig({ network: Network.DEVNET });
const aptos = new Aptos(config);

const coinType = "0x1::aptos_coin::AptosCoin";
Expand All @@ -173,7 +173,7 @@ Note, that this will not include the balance of coins if it's a migrated coin.
```ts filename="example.ts"
import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";

const config = new AptosConfig({ network: Network.TESTNET });
const config = new AptosConfig({ network: Network.DEVNET });
const aptos = new Aptos(config);

const faMetadataAddress = "0xA";
Expand All @@ -193,7 +193,7 @@ A specific ledger version (transaction height) can be provided to get the balanc
```ts filename="example.ts"
import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";

const config = new AptosConfig({ network: Network.TESTNET });
const config = new AptosConfig({ network: Network.DEVNET });
const aptos = new Aptos(config);

const faMetadataAddress = "0xA";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ the `0x1::coin::balance<CoinType>(account address)` view function. This will co
```ts filename="example.ts"
import { Aptos, AptosConfig, Network } from "@aptos-labs/ts-sdk";

const config = new AptosConfig({ network: Network.TESTNET });
const config = new AptosConfig({ network: Network.DEVNET });
const aptos = new Aptos(config);

const coinType = "0x1::aptos_coin::AptosCoin";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const val SEND_AMOUNT = 1_000_000UL
* fails, an error is thrown.
*/
fun main() = runBlocking {
val aptos = Aptos(AptosConfig(AptosSettings(network = Network.TESTNET)))
val aptos = Aptos(AptosConfig(AptosSettings(network = Network.DEVNET)))

println("Generating Alice and Bob's accounts")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ async function example() {
console.log("This example will create two accounts (Alice and Bob) and send a transaction transfering APT to Bob's account.");

// 0. Setup the client and test accounts
const config = new AptosConfig({ network: Network.TESTNET });
const config = new AptosConfig({ network: Network.DEVNET });
const aptos = new Aptos(config);

let alice = Account.generate();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ async function example() {
console.log("This example will send several transactions in a batch.");

// Setup the client and test accounts
const config = new AptosConfig({ network: Network.TESTNET });
const config = new AptosConfig({ network: Network.DEVNET });
const aptos = new Aptos(config);

let sender = Account.generate();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ async function example() {
console.log("This example will send a sponsored transaction from Alice to Carol.");

// 0. Setup the client and test accounts
const config = new AptosConfig({ network: Network.TESTNET });
const config = new AptosConfig({ network: Network.DEVNET });
const aptos = new Aptos(config);

let alice = Account.generate();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ You can use the `Aptos` client to get on-chain data using a variety of helper fu
Here’s an example showing how to fetch common data you may need in your application:

```ts filename="fetch-data.ts"
const aptosConfig = new AptosConfig({ network: Network.TESTNET });
const aptosConfig = new AptosConfig({ network: Network.DEVNET });
const aptos = new Aptos(aptosConfig);

const fund = await aptos.getAccountInfo({ accountAddress: "0x123" });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const tokens = await aptos.getAccountOwnedTokens({ accountAddress: "0x123" });
To configure your `Aptos` client, you can use an `AptosConfig` object.

```ts filename="v2.ts"
const aptosConfig = new AptosConfig({ network: Network.TESTNET }); // default to devnet
const aptosConfig = new AptosConfig({ network: Network.DEVNET }); // default to devnet
const aptos = new Aptos(config);
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ import { Aptos, AptosConfig, NETWORK } from "@aptos-labs/ts-sdk";
import { ABI } from "./abi";

// First, create an Aptos client, make sure the network is the one that contract lives on
export const aptos = new Aptos(new AptosConfig({ network: NETWORK.TESTNET }));
export const aptos = new Aptos(new AptosConfig({ network: Network.DEVNET }));
// Second, create a SurfClient with the Aptos client and the ABI
export const surfClient = createSurfClient(aptos).useABI(ABI);

Expand Down
Loading