Skip to content

Commit 25ae146

Browse files
committed
[format] Format all files
1 parent 8a2bc73 commit 25ae146

File tree

133 files changed

+2119
-2111
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+2119
-2111
lines changed

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,6 @@
159159
"eslint --fix",
160160
"prettier --write"
161161
],
162-
"src/content/**/*.mdx": [
163-
"remark --output"
164-
]
162+
"src/content/**/*.mdx": []
165163
}
166164
}

src/content/docs/build/ai/aptos-mcp.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ and others that support the Model Context Protocol.
2222

2323
To be able to make Geomi actions like managing API keys, etc., follow these instructions to generate a new Bot API Key to use with the MCP.
2424

25-
- Go to https://geomi.dev/
25+
- Go to [https://geomi.dev/](https://geomi.dev/)
2626
- Click on your name in the bottom left corner
2727
- Click on "Bot Keys"
2828
- Click on the "Create Bot Key" button

src/content/docs/build/apis/data-providers.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ We also have sample analytics queries [using the above resources](https://github
5656

5757
### Dune
5858

59-
We have a dashboard here: https://dune.com/aptos/aptos-chain-metrics-overview
59+
We have a dashboard here: [https://dune.com/aptos/aptos-chain-metrics-overview](https://dune.com/aptos/aptos-chain-metrics-overview)
6060

6161
### Allium
6262

63-
Data source for many downstream vendors such as defillama and rwa.xyz. Raw data is available: https://docs.allium.so/historical-data/supported-blockchains/move-ecosystem/aptos
64-
They also have transfers for stablecoins https://docs.allium.so/historical-data/stablecoins#stablecoin-metrics
63+
Data source for many downstream vendors such as defillama and rwa.xyz. Raw data is available: [https://docs.allium.so/historical-data/supported-blockchains/move-ecosystem/aptos](https://docs.allium.so/historical-data/supported-blockchains/move-ecosystem/aptos)
64+
They also have transfers for stablecoins [https://docs.allium.so/historical-data/stablecoins#stablecoin-metrics](https://docs.allium.so/historical-data/stablecoins#stablecoin-metrics)
6565

6666
### Artemis
6767

src/content/docs/build/apis/faucet-api.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The faucet allows users to get `APT` on devnet. On testnet you can only mint at
99

1010
The endpoints for each faucet are:
1111

12-
- Devnet: https://faucet.devnet.aptoslabs.com
12+
- Devnet: [https://faucet.devnet.aptoslabs.com](https://faucet.devnet.aptoslabs.com)
1313

1414
## Using the faucet
1515

src/content/docs/build/cli/install-cli/install-cli-mac.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ For Mac, the easiest way to install the Aptos CLI is with the package manager `b
1212
# Installation
1313

1414
<Steps>
15-
1. Ensure you have brew installed https://brew.sh/.
15+
1. Ensure you have brew installed [https://brew.sh/](https://brew.sh/).
1616

1717
2. Open a new terminal and enter the following commands.
1818

src/content/docs/build/get-started/ethereum-cheatsheet.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ To learn more about the differences and similarities see [Aptos Learn](https://l
2121
| **Example Code** | [ERC-20](https://github.com/OpenZeppelin/openzeppelin-contracts/tree/master/contracts/token/ERC20) | [Fungible Asset](https://github.com/aptos-labs/aptos-core/blob/main/aptos-move/framework/aptos-framework/sources/fungible_asset.move) |
2222
| **Caller ID** | `msg.sender` | `&signer` reference |
2323
| **Upgradeability** | Proxy patterns | Direct module upgrades |
24-
| **Safety & Security** | Vulnerable to attacks like reentrancy | Mitigates common vulnerabilities |
24+
| **Safety & Security** | Vulnerable to attacks like reentrancy | Mitigates common vulnerabilities |
2525
| **Dispatch Type** | Dynamic dispatch | Static dispatch |
2626
| **FT Standard** | [ERC-20](https://docs.openzeppelin.com/contracts/4.x/erc20) | [Coin](/build/smart-contracts/aptos-coin) (legacy) and [Fungible Asset](/build/smart-contracts/fungible-asset) |
2727
| **NFT Standards** | [ERC-721](https://docs.openzeppelin.com/contracts/4.x/erc721), [ERC-1155](https://docs.openzeppelin.com/contracts/4.x/erc1155) | [Digital Asset](/build/smart-contracts/digital-asset) |
@@ -31,11 +31,11 @@ To learn more about the differences and similarities see [Aptos Learn](https://l
3131

3232
### Comparing Token Standards in Detail
3333

34-
| | Solidity | Move (Aptos) |
35-
| ---------------------- | ---------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
36-
| **Token Structure** | Each token is its own contract. | Every token is a typed `Coin` or `FungibleAsset` using a single, reusable contract. |
37-
| **Token Standard** | Must conform to standards like ERC20; implementations can vary. | Uniform interface and implementation for all tokens. |
38-
| **Balance Storage** | Balances stored in contract using a mapping structure. | **Resource-Oriented Balance**: Balances stored as a resource in the user's account. Resources cannot be arbitrarily created, ensuring integrity of token value. |
34+
| | Solidity | Move (Aptos) |
35+
| ---------------------- | ----------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
36+
| **Token Structure** | Each token is its own contract. | Every token is a typed `Coin` or `FungibleAsset` using a single, reusable contract. |
37+
| **Token Standard** | Must conform to standards like ERC20; implementations can vary. | Uniform interface and implementation for all tokens. |
38+
| **Balance Storage** | Balances stored in contract using a mapping structure. | **Resource-Oriented Balance**: Balances stored as a resource in the user's account. Resources cannot be arbitrarily created, ensuring integrity of token value. |
3939
| **Transfer Mechanism** | Tokens can be transferred without receiver's explicit permission. | Except for specific cases (like AptosCoin), Tokens generally require receiver's `signer` authority for transfer. |
4040

4141
<br />
@@ -49,7 +49,7 @@ To learn more about the differences and similarities see [Aptos Learn](https://l
4949

5050
| | EVM (Ethereum Virtual Machine) | Move VM (Move Virtual Machine) |
5151
| ------------------------------- | ---------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
52-
| **Data Storage** | Data is stored in the smart contract's storage space. | Data is stored across smart contracts, user accounts, and objects. |
52+
| **Data Storage** | Data is stored in the smart contract's storage space. | Data is stored across smart contracts, user accounts, and objects. |
5353
| **Parallelization** | Parallel execution is limited due to shared storage space. | More parallel execution enabled due to flexible split storage design. |
5454
| **VM and Language Integration** | Separate layers for EVM and smart contract languages (e.g., Solidity). | Seamless integration between VM layer and Move language, with native functions written in Rust executable in Move. |
5555
| **Critical Network Operations** | Implementation of network operations can be complex and less direct. | Critical operations like validator set management natively implemented in Move, allowing for direct execution. |

src/content/docs/build/guides/aptos-keyless/integration-guide.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { Aside, Steps } from '@astrojs/starlight/components';
1212

1313
Use of the \*\*_Aptos Keyless Integration Guide_\*\* will allow for the integration of keyless accounts directly into your application. This means that blockchain accounts are scoped to your application's domain (logging in with your Google account on dApp A and logging in with your Google account on dApp B will create separate accounts). Stay tuned for more to come on Aptos’ plan to allow Keyless accounts to be used portably across applications.
1414

15-
To provide feedback, get support, or be a design partner as we enhance Aptos Keyless, join us here: https://t.me/+h5CN-W35yUFiYzkx
15+
To provide feedback, get support, or be a design partner as we enhance Aptos Keyless, join us here: [https://t.me/+h5CN-W35yUFiYzkx](https://t.me/+h5CN-W35yUFiYzkx)
1616
</Aside>
1717

1818
At a high level, there are three steps to follow in order to integrate Keyless Accounts.

src/content/docs/build/guides/aptos-keyless/oidc-support.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ To integrate Aptos Keyless into your dApp, you must register your dApp with at l
5454

5555
3. Choose the application type (e.g., Web application, Desktop app, or Mobile app).
5656

57-
4. Enter the necessary details such as the name of your application and the authorized redirect URIs. For OIDC, the redirect URIs should follow the format https://your-app-domain.com/auth/google/callback.
57+
4. Enter the necessary details such as the name of your application and the authorized redirect URIs. For OIDC, the redirect URIs should follow the format [https://your-app-domain.com/auth/google/callback](https://your-app-domain.com/auth/google/callback).
5858

5959
5. Click "Create."
6060

@@ -67,7 +67,7 @@ To integrate Aptos Keyless into your dApp, you must register your dApp with at l
6767

6868
1. Integrate OIDC authentication into your application using a suitable OIDC library or framework (e.g., Passport.js for Node.js, Spring Security for Java, or Auth0 for various platforms).
6969
2. Use the client ID and client secret obtained from Google to configure OIDC authentication in your application settings.
70-
3. Set up the appropriate callback URL (https://your-app-domain.com/auth/google/callback) for handling authentication responses from Google.
70+
3. Set up the appropriate callback URL ([https://your-app-domain.com/auth/google/callback](https://your-app-domain.com/auth/google/callback)) for handling authentication responses from Google.
7171
</Steps>
7272

7373
## Registering your dApp with Apple
@@ -99,12 +99,12 @@ To integrate Aptos Keyless into your dApp, you must register your dApp with at l
9999

100100
1. Under the "App ID" section, locate your newly created App ID and click on it.
101101
2. Scroll down to the "Sign in with Apple" section and click on "Edit."
102-
3. Add the redirect URIs that your application will use for callback after authentication. The format should be https://your-app-domain.com/auth/apple/callback.
102+
3. Add the redirect URIs that your application will use for callback after authentication. The format should be [https://your-app-domain.com/auth/apple/callback](https://your-app-domain.com/auth/apple/callback).
103103
4. Click "Save" to update the settings.
104104

105105
5. Step 5: Set Up Your OIDC Integration
106106

107107
1. Use an OIDC library or framework compatible with Apple's OIDC service (e.g., Passport.js for Node.js, Spring Security for Java).
108108
2. Configure your application to use the client ID and private key obtained from Apple during the registration process.
109-
3. Set up the appropriate callback URL (https://your-app-domain.com/auth/apple/callback) for handling authentication responses from Apple.
109+
3. Set up the appropriate callback URL ([https://your-app-domain.com/auth/apple/callback](https://your-app-domain.com/auth/apple/callback)) for handling authentication responses from Apple.
110110
</Steps>

src/content/docs/build/guides/aptos-keyless/other.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ sidebar:
1010
- **OpenID Connect (OIDC)**: is the identity authentication protocol used to enable federated identity verification. This protocol is what is used when a user goes through the "Sign in with Google" flow for example.
1111
- **Identity Provider (IdP)**: is the trusted authority who authenticates your identity via OIDC. Supported example includes: Google.
1212
- **JSON Web Token (JWT):** is an open standard used to share security information between two parties — a client and a server. Each JWT contains encoded JSON objects, including a set of claims. JWTs are signed using a cryptographic algorithm to ensure that the claims cannot be altered after the token is issued.
13-
- `iss`, an identifier for the OIDC provider (e.g., https://accounts.google.com)
13+
- `iss`, an identifier for the OIDC provider (e.g., [https://accounts.google.com](https://accounts.google.com))
1414
- `aud`, the OAuth `client_id` of the application that the user is signing in to (e.g., [Notion.so](https://notion.so))
1515
- `sub`, an identifier that the OIDC provider uses to identify the user
1616
- This could be an identifier specific to this `client_id`

src/content/docs/build/guides/exchanges.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ For fungible assets, the balance changes are tracked in the `primary_fungible_st
708708
The primary fungible store address is deterministic, and will always be tracked by
709709
the owner of the store.
710710

711-
An example: https://api.mainnet.aptoslabs.com/v1/transactions/by\_version/1750174030
711+
An example: [https://api.mainnet.aptoslabs.com/v1/transactions/by\\\_version/1750174030](https://api.mainnet.aptoslabs.com/v1/transactions/by\\_version/1750174030)
712712

713713
There are a few steps when tracking fungible assets:
714714

@@ -842,7 +842,7 @@ The Fungible asset metadata address is the hash of the coin type and 0xA
842842
address = sha3_256(0xA | coin_type | 0xFE)
843843
```
844844

845-
Here is an example of a migrated coin with APT: https://api.mainnet.aptoslabs.com/v1/transactions/by\_version/1642580695
845+
Here is an example of a migrated coin with APT: [https://api.mainnet.aptoslabs.com/v1/transactions/by\\\_version/1642580695](https://api.mainnet.aptoslabs.com/v1/transactions/by\\_version/1642580695)
846846

847847
<details>
848848
<summary>Full response</summary>
@@ -1244,7 +1244,7 @@ the balance is 0.001 APT smaller and minus the gas cost associated.
12441244

12451245
#### Check Fungible Asset Transfer
12461246

1247-
To test a transfer, you can fund an account with the fungible asset here https://test-token-faucet.vercel.app/
1247+
To test a transfer, you can fund an account with the fungible asset here [https://test-token-faucet.vercel.app/](https://test-token-faucet.vercel.app/)
12481248
and then transfer the fungible asset to another account. The balance should be updated
12491249
according to the change, and you should be able to track the mint on the website.
12501250

0 commit comments

Comments
 (0)