Skip to content

Commit 28af2ea

Browse files
committed
Audit and update learn section for Tokenomics 3.0, brand alignment, and accuracy
1 parent 0344a2c commit 28af2ea

41 files changed

Lines changed: 312 additions & 168 deletions

Some content is hidden

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

docs/build/integrations/indexers/subsquid.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ There are two primary ways to index EVM contracts deployed to [Astar networks](/
3232

3333
Subsquid supports the following Astar networks for native EVM indexing:
3434
* `astar`
35-
* `astar-zkatana`
36-
* `astar-zkevm`
3735
* `shiden`
3836
* `shibuya`
3937

docs/build/introduction/astar_family.md

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,26 +26,17 @@ The Shibuya native token symbol is SBY.
2626

2727
To obtain test tokens from the faucet, please visit the Astar Portal and connect to Shibuya. If for any reason the faucet is empty, please contact the Astar team on Discord.
2828

29-
### zKyoto (Sepolia) (Deprecated)
30-
31-
zKyoto was connected to the Ethereum Sepolia testnet and Polygon AggLayer. Testing ground for dApps deployed on the Astar zkEVM. This testnet has now been transitioned to [Soneium Minato](https://docs.soneium.org/).
32-
3329
## Mainnets
3430

35-
Astar Collective, with the ASTR token, supports three mainnets:
31+
Astar Collective, with the ASTR token, supports two mainnets:
3632

37-
1. Astar Network (Parachain)
38-
2. Astar zkEVM (soon to be deprecated)
39-
3. Soneium
33+
1. Astar Network (Parachain)
34+
2. Soneium
4035

4136
### Astar Network (Parachain)
4237

4338
Astar parachain is connected to Polkadot Relay chain supporting WASM & EVM smart contract deployments.
4439
The Astar native token symbol is ASTR.
4540

46-
### Astar zkEVM (Deprecated)
47-
48-
Astar zkEVM was an Ethereum Layer 2 network, powered by Polygon CDK. Technically referred to as Validium, combining zk rollup technology with modular data availability. Next phase for Astar zkEVM is the transition to [Soneium](https://docs.soneium.org/).
49-
5041
### Soneium
51-
Soneium is a next-generation blockchain ecosystem designed to invoke emotion and empower creativity. It was founded by Sony Group Corporation, a global technology leader, and Startale, a Web3 innovator. Soneium stands as a versatile, general-purpose blockchain ready to serve diverse needs across all verticals and support users globally. Astar and it's token ASTR will play a crucial role in the ecosystem as driven asset.
42+
Soneium is a general-purpose Layer 2 blockchain co-founded by Sony Group Corporation and Startale. ASTR serves as a key asset within the Soneium ecosystem.

docs/build/nodes/evm-tracing-node.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ cp astar-runtime-52-substitute-tracing.wasm /var/lib/astar/wasm
5050
chown -hR astar /var/lib/astar/wasm
5151
```
5252

53-
When wasm blob located correctly the node launch string should be addicted by `--wasm-runtime-overrides=/var/lib/astar/wasm` flag. Then service should be restarted, if all go well then node will catch up tracing runtime and substitute on-chain version by it.
53+
When wasm blob located correctly the node launch string should be addicted by `--wasm-runtime-overrides=/var/lib/astar/wasm` flag. Then service should be restarted, if all go well then node will catch up tracing runtime and substitute onchain version by it.
5454

5555
:::important
5656

docs/build/wasm/contract_environment/explorers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Block explorers are the Google for searching data on a blockchain. They give dev
2828
</TabItem>
2929
<TabItem value="shibuya" label="Shibuya Network">
3030
<p>Subscan is the most used explorer in the Polkadot ecosystem. With Subscan you can search the complete Astar Network. Subscan support Substrate and Ethereum API. BlockScout is the best explorer for developers who are building on Astar EVM, as it has all the features of EtherScan.</p>
31-
<p>Sirato is a contract explorer for ink! smart contracts. Sirato provides a contract verification service enabling users to decode information about contract code and instances that have been deployed using the Contracts Pallet. The service allows users to upload source code and metadata to the service which will verify it matches the on-chain. For instructions on how to use the service you can refer <a href="https://medium.com/sirato/how-to-verify-ink-smart-contracts-83fec5de81aa">here</a>.</p>
31+
<p>Sirato is a contract explorer for ink! smart contracts. Sirato provides a contract verification service enabling users to decode information about contract code and instances that have been deployed using the Contracts Pallet. The service allows users to upload source code and metadata to the service which will verify it matches the onchain. For instructions on how to use the service you can refer <a href="https://medium.com/sirato/how-to-verify-ink-smart-contracts-83fec5de81aa">here</a>.</p>
3232
<p>Under certain circumstances, the Polkadot.js apps portal may also be used to explore blocks.</p>
3333
<p><b>Subscan:</b> <a href="https://shibuya.subscan.io">https://shibuya.subscan.io</a></p>
3434
<p><b>Sirato:</b> <a href="https://shibuya.sirato.xyz/">https://shibuya.sirato.xyz/</a></p>

docs/build/wasm/interact/astarjs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ main();
5656

5757
### Initialise ContractPromise Class
5858

59-
The `ContractPromise` interface allows us to interact with a deployed contract. In the previous Blueprint example this instance was created via `createContract`. In general use, we can also create an instance via `new`, i.e. when we are attaching to an existing contract on-chain:
59+
The `ContractPromise` interface allows us to interact with a deployed contract. In the previous Blueprint example this instance was created via `createContract`. In general use, we can also create an instance via `new`, i.e. when we are attaching to an existing contract onchain:
6060

6161
```js
6262
import { Abi, ContractPromise } from "@polkadot/api-contract";

docs/build/wasm/smart-contract-wasm.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,25 @@ Astar & Shiden runtimes are based on Substrate, and both networks incorporate `p
1010

1111
To avoid unnecessary complexity, and writing boilerplate code, the most appropriate method of building will involve the use of an eDSL specifically targeting `pallet-contracts`, such as [ink!] (based on Rust), or [ask!] (based on AssemblyScript), or possibly others as the ecosystem grows.
1212

13-
After compilation, a Wasm blob can then be deployed and stored on-chain.
13+
After compilation, a Wasm blob can then be deployed and stored onchain.
1414

1515
### Execution Engine
1616

1717
Pallet-contracts uses [wasmi](https://github.com/paritytech/wasmi) as a Wasm interpreter to execute Wasm smart contract blobs. Although there is a faster JIT interpreter such as [wasmtime](https://github.com/bytecodealliance/wasmtime) available in the native runtime, smart contracts are an untrusted environment which require a higher degree of correctness of interpretation, which makes wasmi a more suitable option.
1818

1919
### Two-step Deployment of Contracts
2020

21-
The contract code (Wasm blob), and contract address and storage are decoupled from one another other, so require two steps to deploy a new contract on-chain:
21+
The contract code (Wasm blob), and contract address and storage are decoupled from one another other, so require two steps to deploy a new contract onchain:
2222

23-
1. First, upload the Wasm contract on-chain (every contract Wasm code has a `code_hash` as an identifier).
23+
1. First, upload the Wasm contract onchain (every contract Wasm code has a `code_hash` as an identifier).
2424
2. Second, instantiate the contract - it will create an address and storage for that contract.
2525
3. Anyone can instantiate a contract based on its `code_hash`.
2626

2727
There are several benefits of decoupling the contract code from the address/storage:
2828

29-
- To save space on-chain. Since a contract can have several constructors and instantiations, a redeployment will create a new instance based on the same underlying code. Think about standardized tokens, like [PSP22][PSP22] & [PSP34][PSP34], that will have one `code_hash` & `blob` living on-chain, and as many instantiations as are needed, rather than having to upload code with each new instantiation (for example, on Ethereum).
29+
- To save space onchain. Since a contract can have several constructors and instantiations, a redeployment will create a new instance based on the same underlying code. Think about standardized tokens, like [PSP22][PSP22] & [PSP34][PSP34], that will have one `code_hash` & `blob` living onchain, and as many instantiations as are needed, rather than having to upload code with each new instantiation (for example, on Ethereum).
3030
- To instantiate a new contract using code within an existing smart contract (see the delegator example), `code_hash` is all that is needed.
31-
- Some standard contracts such as ([PSP22][PSP22] and [PSP34][PSP34]) will only be uploaded on-chain once, preventing users from having to pay gas costs for uploading new code.
31+
- Some standard contracts such as ([PSP22][PSP22] and [PSP34][PSP34]) will only be uploaded onchain once, preventing users from having to pay gas costs for uploading new code.
3232
- Update contract code for an address: replace the contract code at the specified address with new code (see [set_code_hash][set_code_hash]). Storage and balances will be preserved.
3333

3434
### For More Information About `pallet-contracts`

docs/build/wasm/swanky-suite/node.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ To print errors and contract debug output to the console log, supply `-lerror,ru
9595
./target/release/swanky-node -lerror,runtime::contracts=debug
9696
```
9797

98-
Important: Debug output is only printed for RPC calls or off-chain tests ‒ not for transactions.
98+
Important: Debug output is only printed for RPC calls or offchain tests ‒ not for transactions.
9999

100100
See the ink! [FAQ](https://ink.substrate.io/faq/#how-do-i-print-something-to-the-console-from-the-runtime) for more details: How do I print something to the console from the runtime?.
101101

docs/build/wasm/transaction-fees.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ Gas = Weight = (refTime, proofSize)
1818

1919
## Storage Rent
2020

21-
Storage rent, also called as *Automatic Deposit Collection* is a **mechanism** that ensure security of the chain by preventing on-chain storage spamming.
22-
It prevents malicious actors from spamming the network with low-value transactions and to ensure that callers have a financial stake when storing data on-chain.
21+
Storage rent, also called as *Automatic Deposit Collection* is a **mechanism** that ensure security of the chain by preventing onchain storage spamming.
22+
It prevents malicious actors from spamming the network with low-value transactions and to ensure that callers have a financial stake when storing data onchain.
2323

24-
Users will be charged for every byte stored on-chain and the call will transfer this fee from the free balance of the user to the reserved balance of the contract. Note that the contract itself is unable to spend this reserved balance (but it can expose a function that remove on-chain storage and the caller will get the funds) .
25-
It also incentives users to remove unused data from the chain by getting rent fees back. Any user can get back the rent fees if they remove on-chain data (not specifically the user that was first charged for). It's up to the contract developers and users to understand how and if they can get their storage deposit back.
24+
Users will be charged for every byte stored onchain and the call will transfer this fee from the free balance of the user to the reserved balance of the contract. Note that the contract itself is unable to spend this reserved balance (but it can expose a function that remove onchain storage and the caller will get the funds) .
25+
It also incentives users to remove unused data from the chain by getting rent fees back. Any user can get back the rent fees if they remove onchain data (not specifically the user that was first charged for). It's up to the contract developers and users to understand how and if they can get their storage deposit back.
2626

2727
### Storage Rent Calculation
2828

@@ -47,12 +47,12 @@ This is because the first call will create a lot of new entries for the user (mo
4747

4848
If the consecutive calls only modify the existing database entry, the caller is only charged for the extra bytes they add to the entry. In the case they reduce the size of the DB entry, they will get storage rent back. What this means in practice is that user can increase their free balance after interacting with a smart contract!
4949

50-
If a user want to get it back, it should remove on-chain data. It is only possible if the smart-contract expose a function that remove data from chain (like `remove_mapping_entry` in the example below).
50+
If a user want to get it back, it should remove onchain data. It is only possible if the smart-contract expose a function that remove data from chain (like `remove_mapping_entry` in the example below).
5151

5252
#### For smart-contracts developers
5353

54-
As the only way for users to get back their reserved balance is to remove on-chain data, it is important to make sure that the smart-contract expose functions that allow users to do so.
55-
If the contracts don't expose such functions, there will be no way to remove on-chain data used by the contract and the
54+
As the only way for users to get back their reserved balance is to remove onchain data, it is important to make sure that the smart-contract expose functions that allow users to do so.
55+
If the contracts don't expose such functions, there will be no way to remove onchain data used by the contract and the
5656
users will not be able to get back their reserved balance back (as it will be reserved balance on the contract account).
5757

5858
### StorageDepositLimit
@@ -147,6 +147,6 @@ The caller will get balance repatriated (and not the user that was first charged
147147

148148
#### `flip_bool` & `update_32`
149149

150-
It will not have rent fees because it will not store new data on-chain (only updating value).
150+
It will not have rent fees because it will not store new data onchain (only updating value).
151151

152152
[weight]: https://docs.substrate.io/reference/how-to-guides/weights/

docs/learn/Proxies.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ The proxy pallet provides the following extrinsics (functions):
6565

6666
**Why Proxy Deposits ?**
6767
---
68-
To create proxies within the network, it is necessary to provide deposits in the native currency (like ASTR or SDN). The deposit is required because adding a proxy requires some storage space on-chain, which must be replicated across every peer in the network. Due to the costly nature of this, these functions could open up the network to a Denial-of-Service attack.
68+
To create proxies within the network, it is necessary to provide deposits in the native currency (like ASTR or SDN). The deposit is required because adding a proxy requires some storage space onchain, which must be replicated across every peer in the network. Due to the costly nature of this, these functions could open up the network to a Denial-of-Service attack.
6969

7070
When creating a proxy, a bond is deducted from your free balance and transferred to your reserved balance. This mechanism helps maintain the integrity and stability of the proxy system while providing assurance that the bond can be returned when the proxy is deactivated or removed.
7171

docs/learn/architecture/astar-parachain.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ sidebar_position: 1
66
# Overview
77
If you are already building on Polkadot you will not need to go over the sections covering Substrate and how to create a Runtime, but it will be helpful for you to understand the environment, terminology and how to leverage Polkadot's highly interoperable environment.
88

9-
Polkadot is a multi-chain environment which enables specialized blockchains (called Parachains) to communicate with each other in a secure, trustless environment.
9+
Polkadot is a multi-chain environment which enables specialized blockchains (called Parachains) to communicate with each other in a secure, permissionless environment.
1010

11-
Astar is a parachain connected to the Polkadot Relay chain, specialized for:
11+
Astar Network is a parachain connected to the Polkadot Relay chain, specialized for:
1212
* Executing all types of smart contracts.
1313
* Providing a hybrid EVM + Wasm environment with interoperability.
1414
* Incentivizing ecosystem innovation and providing basic income for dApp developers.
@@ -52,7 +52,7 @@ Parachains construct and propose blocks to validators on the Relay Chain, where
5252
Based on Polkadot's design, as long as a chain's logic can compile to Wasm and adheres to the Relay Chain API, then it can connect to the Polkadot network as a parachain.
5353
However, the majority of parachains today are built using [Substrate](https://substrate.io/) because Substrate-based chains are easy to integrate into Polkadot or Kusama to become a parachain. Essentially, Substrate is the SDK which can be used to build parachains and Polkadot is the means of securing the chains and allowing them to communicate with each other.
5454

55-
Astar Network is built with Substrate and inherints many Substrate features, such as Accounts.
55+
Astar Network is built with Substrate and inherits many Substrate features, such as Accounts.
5656

5757
At a high level, a Substrate node provides a layered environment with two main elements:
5858
1. An outer node that handles network activity such as peer discovery, managing transaction requests, reaching consensus with peers, and responding to RPC calls.

0 commit comments

Comments
 (0)