Skip to content

Commit 47cd4c2

Browse files
authored
Merge pull request 0xPolygon#634 from 0xPolygon/dev-tools-pos-update
Dev tools + PoS update
2 parents d184d31 + 3b9228c commit 47cd4c2

File tree

16 files changed

+41
-39
lines changed

16 files changed

+41
-39
lines changed

docs/pos/concepts/transactions/meta-transactions.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ For any action that requires blockchain interaction,
9595
Steps:
9696

9797
1. Let's register our contracts to Biconomy dashboard
98-
1. Visit [Biconomy's offical docs](https://docs.biconomy.io/dashboard)
99-
2. Navigate and login to the Dashboard
100-
3. Select `Polygon Mumbai` when registering your dapp
101-
2. Copy the`API key` to use for you dapp's frontend
102-
3. And Add function `executeMetaTransaction` in Manage-Api and make sure to enable meta-tx. (Check 'native-metatx' option)
98+
1. Visit [Biconomy's offical docs](https://docs.biconomy.io/dashboard).
99+
2. Navigate and login to the Dashboard.
100+
3. Select **Polygon Amoy Testnet** when registering your dApp.
101+
2. Copy the API key to use for you dApp's frontend.
102+
3. And add function `executeMetaTransaction` in **Manage-Api** and make sure to enable meta-tx (Check **native-metatx** option).
103103

104104
- If you'd like to use your own custom API that sends signed transactions on the blockchain, you can refer to the server code here: [https://github.com/angelagilhotra/ETHOnline-Workshop/tree/master/2-network-agnostic-transfer](https://github.com/angelagilhotra/ETHOnline-Workshop/tree/master/2-network-agnostic-transfer)
105105

docs/pos/how-to/bridging/ethereum-polygon/ethereum-to-matic.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ let receiver = new matic.eth.Contract(JSON.parse(receiverABI), receiverAddress)
151151
152152
We're using `@maticnetwork/meta` package for the RPCs, the package isn't a requirement to run the script.
153153
154-
`matic` and `main` objects refer to the web3 object initialized with Polygon's and Ropsten's RPC respectively.
154+
`matic` and `main` objects refer to the web3 object initialized with Polygon Amoy and Sepolia network's respective RPC URLs.
155155
156156
`sender` and `receiver` objects refer to the contract objects of `Sender.sol` and `Receiver.sol` that we deployed in Step 1 and 2.
157157

docs/pos/how-to/troubleshoot/technical-faqs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ and start Heimdall services again. You can refer to this [guide](../validator/pr
176176

177177
### 5. From where do I create the API key?
178178

179-
You can access this link: [https://infura.io/register](https://infura.io/register) . Make sure that once you have setup your account and project, you copy the API key for Ropsten and not Mainnet.
179+
You can access this link: [https://infura.io/register](https://infura.io/register) . Make sure that once you have setup your account and project, you copy the API key for Sepolia and not mainnet.
180180

181181
Mainnet is selected by default.
182182

docs/tools/dApp-development/launchpad/commands.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The `dev` command starts
3737

3838
| Option | Description |
3939
|--------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
40-
| -n, --fork-network-name [NAME] | Name of the network to fork; optional. By default, it starts a new chain from genesis block. (choices: "ethereum", "goerli", "polygonPos", "polygonMumbai", "polygonZkevm", "polygonZkevmTestnet") |
40+
| -n, --fork-network-name [NAME] | Name of the network to fork; optional. By default, it starts a new chain from genesis block. (choices: "ethereum", "goerli", "polygonPos", "polygonAmoy", "polygonZkevm", "polygonZkevmTestnet") |
4141
| -b, --fork-block-num [number] | Block number to fork at. By default, it's the latest block. |
4242
| -r, --reset-on-change | Resets the entire local blockchain when any code is changed; for forked mode, it resets back to forked block number; NOT DEFAULT. |
4343
| --only-smart-contracts | Deploys only smart contracts (having started local test chain) and updates Smart contract configs for frontend; does not start frontend dev environment. |
@@ -66,7 +66,7 @@ dapp-launchpad deploy -n CHAIN_NAME
6666

6767
| Option | Description |
6868
|:----------------------:|:-------------------------------------------------------|
69-
| -n, --network-name | Name of the network to deploy smart contracts to. (choices: "ethereum", "goerli", "polygonPos", "polygonMumbai", "polygonZkevm", "polygonZkevmTestnet") |
69+
| -n, --network-name | Name of the network to deploy smart contracts to. (choices: "ethereum", "goerli", "polygonPos", "polygonAmoy", "polygonZkevm", "polygonZkevmTestnet") |
7070
| --only-smart-contracts | Deploys only smart contracts and updates Smart contracts config for frontend. |
7171
| --only-frontend | Deploys only frontend; smart contracts data is read from Smart contracts config which must pre-exist. To generate these manually, use generate smart-contracts-config |
7272
| -h, --help | Display help for command |
@@ -114,5 +114,5 @@ dapp-launchpad generate smart-contracts-config
114114
| Option | Description |
115115
|:-----------------------:|:-----------------------------------------|
116116
| -e, --environment <ENV> | Environment where this config would be used (choices: "development", "production", default: "development") |
117-
| -n, --network-name | Name of the network to generate config for. (choices: "ethereum", "goerli", "polygonPos", "polygonMumbai", "polygonZkevm", "polygonZkevmTestnet") |
117+
| -n, --network-name | Name of the network to generate config for. (choices: "ethereum", "goerli", "polygonPos", "polygonAmoy", "polygonZkevm", "polygonZkevmTestnet") |
118118
| -h, --help | Display help for command |

docs/tools/dApp-development/launchpad/common-pitfalls.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,22 @@
22
comments: true
33
---
44

5-
## MetaMask transactions fail with a nonce error in dev environment
5+
### MetaMask transactions fail with a nonce error in dev environment
66

77
Every time the dev environment starts, a new local test chain is started. Metamask maintains a cache of "latest block number" and "account transaction nonce". Since every run of `dev` creates a new chain, it never matches with this cache.
88

99
To clear the cache, follow the [MetaMask documentation](https://support.metamask.io/hc/en-us/articles/360015488891-How-to-clear-your-account-activity-reset-account).
1010

11-
## MetaMask transactions fail with a nonce error when using the **reset on change** option in dev environment
11+
### MetaMask transactions fail with a nonce error when using the **reset on change** option in dev environment
1212

1313
The reset on change option resets the blockchain on every code change.
1414

1515
MetaMask maintains a cache of *latest block number* and *account transaction nonce*. After resetting the chain, the latest block number and account transaction nonce should go back to the initial state as well, but MetaMask does not update this cache on its own.
1616

1717
To clear the cache, follow the [MetaMask documentation](https://support.metamask.io/hc/en-us/articles/360015488891-How-to-clear-your-account-activity-reset-account).
18+
19+
### Error: `could not coalesce error (error={ "code": -32603, "message": "Internal JSON-RPC error." })`
20+
21+
Clear your wallet cache and try again.
22+
23+
To clear the cache, follow the [MetaMask documentation](https://support.metamask.io/hc/en-us/articles/360015488891-How-to-clear-your-account-activity-reset-account).

docs/tools/dApp-development/launchpad/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ The chain name options are in this section of the help output:
107107
-n, --fork-network-name [NAME] Name of the network to fork; optional.
108108
By default, it starts a new
109109
chain from genesis block. (choices: "ethereum", "goerli",
110-
"polygonPos", "polygonMumbai", "polygonZkevm", "polygonZkevmTestnet")
110+
"polygonPos", "polygonAmoy", "polygonZkevm", "polygonZkevmTestnet")
111111
```
112112

113113
To fork Polygon zkEVM, for example, run the following command:

docs/tools/data/covalent.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,21 @@
99

1010
## Supported endpoints
1111

12-
All [__Class A__](https://www.covalenthq.com/docs/api/#tag--Class-A) endpoints are supported for the Matic mainnet and the Mumbai testnet. You can query either network via the unified API by changing the `chainId`.
12+
All [__Class A__](https://www.covalenthq.com/docs/api/#tag--Class-A) endpoints are supported for the Matic mainnet and the Amoy testnet. You can query either network via the unified API by changing the `chainName`.
1313

1414
!!! info "Endpoints"
1515

1616
A full list of all the requests you are able to do on the Polygon network using Covalent are available on the [Covalent API documentation](https://www.covalenthq.com/docs/api/).
1717

1818
## Appendix
1919

20-
### Matic gas token
20+
### MATIC gas token
2121

22-
To interact with the Matic network, MATIC tokens are required to pay as gas fees. Covalent's
23-
responses automatically returns `gas_*` fields in the MATIC units.
22+
To interact with Polygon network, MATIC tokens are required to pay gas fees. Covalent's responses automatically return `gas_*` fields in MATIC units.
2423

2524
### Token mapping
2625

27-
Covalent maintains an on-chain real-time mapping of token addresses between the Ethereum mainnet and the Matic chain. These addresses are used to reverse-lookup prices on Matic and also to return the right token logo URLs.
26+
Covalent maintains an on-chain real-time mapping of token addresses between the Ethereum mainnet and Polygon. These addresses are used to reverse-lookup prices on MATIC and also to return the right token logo URLs.
2827

2928
Some example of mapped tokens:
3029

docs/tools/data/subquery.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
## Intro
66

7-
SubQuery is a leading blockchain data indexer that provides developers with fast, flexible, universal, open source and decentralised APIs for web3 projects. SubQuery SDK allows developers to get rich indexed data and build intuitive and immersive decentralised applications in a faster and more efficient way. SubQuery supports 100+ ecosystems including Polygon, Polygon zkEVM, Polygon Mumbai, Ethereum, Polkadot, Algorand, NEAR, and Avalanche.
7+
SubQuery is a leading blockchain data indexer that provides developers with fast, flexible, universal, open source and decentralised APIs for web3 projects. SubQuery SDK allows developers to get rich indexed data and build intuitive and immersive decentralised applications in a faster and more efficient way. SubQuery supports 100+ ecosystems including Polygon, Polygon zkEVM, Polygon Amoy, Ethereum, Polkadot, Algorand, NEAR, and Avalanche.
88

99
Another one of SubQuery's competitive advantages is the ability to aggregate data not only within a chain but across multiple blockchains all within a single project. This allows the creation of feature-rich dashboard analytics and multi-chain block scanners.
1010

11-
Other advantages include superior performance with multiple RPC endpoint configurations, multi-worker capabilities and a configurable caching architecture. To find out more, visit our [documentation](https://academy.subquery/).
11+
Other advantages include superior performance with multiple RPC endpoint configurations, multi-worker capabilities and a configurable caching architecture. To find out more, visit our [documentation](https://academy.subquery.network/).
1212

1313
**Useful resources**:
1414

docs/tools/matic-js/advanced/abi-manager.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The network name, contract name, bridge name etc can be taken from our [official
3434
import { ABIManager } from '@maticnetwork/maticjs'
3535

3636

37-
const manager = new ABIManager('testnet','mumbai');
37+
const manager = new ABIManager('testnet','amoy');
3838
await manager.init();
3939

4040
// set abi

docs/tools/matic-js/advanced/exit-util.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const client = new Web3SideChainClient<any>();
2121
await client.init({
2222
// log: true,
2323
network: 'testnet',
24-
version: 'mumbai',
24+
version: 'amoy',
2525
parent: {
2626
provider: new HDWalletProvider(privateKey, RPC.parent),
2727
defaultConfig: {
@@ -66,7 +66,7 @@ use(Web3ClientPlugin);
6666
const posClient = new POSClient();
6767
await posClient.init({
6868
network: 'testnet',
69-
version: 'mumbai',
69+
version: 'amoy',
7070
parent: {
7171
provider: new HDWalletProvider(privateKey, mainRPC),
7272
defaultConfig: {

0 commit comments

Comments
 (0)