From 23135d3810268e4b7a9a8a907de952d9f72856e4 Mon Sep 17 00:00:00 2001 From: Antonio Antonino Date: Mon, 2 Dec 2024 13:37:36 +0100 Subject: [PATCH 1/6] Replace --- docs/develop/09_polarpath/02_switch_pallet.md | 12 ++++++------ docusaurus.config.js | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/develop/09_polarpath/02_switch_pallet.md b/docs/develop/09_polarpath/02_switch_pallet.md index 78693d165..084319043 100644 --- a/docs/develop/09_polarpath/02_switch_pallet.md +++ b/docs/develop/09_polarpath/02_switch_pallet.md @@ -141,13 +141,13 @@ Because the switch functionality relies on XCM, the pallet provides a few XCM co The pallet itself implements the [OnResponse trait][on-response-trait], that must be added to runtimes that deploy this pallet to allow for the error-recovery process to take place. The trait implementation validates the received query response message based on the state of the switch pair, and then performs the required action on the pending transfer info accordingly. -[asset-switch-runtime-api]: https://github.com/KILTprotocol/kilt-node/tree/develop/runtime-api/asset-switch -[xcm-convert]: https://raw.githubusercontent.com/KILTprotocol/kilt-node/develop/pallets/pallet-asset-switch/src/xcm/convert/mod.rs -[xcm-match]: https://raw.githubusercontent.com/KILTprotocol/kilt-node/develop/pallets/pallet-asset-switch/src/xcm/match/mod.rs +[asset-switch-runtime-api]: https://github.com/KILTprotocol/kilt-node/tree/master/runtime-api/asset-switch +[xcm-convert]: https://raw.githubusercontent.com/KILTprotocol/kilt-node/master/pallets/pallet-asset-switch/src/xcm/convert/mod.rs +[xcm-match]: https://raw.githubusercontent.com/KILTprotocol/kilt-node/master/pallets/pallet-asset-switch/src/xcm/match/mod.rs [XcmExecutorError::AssetNotHandled]: https://github.com/paritytech/polkadot-sdk/blob/33324fe01c5b1f341687cef2aa6e767f6acf40f3/polkadot/xcm/xcm-executor/src/traits/token_matching.rs#L54 [XcmExecutor::Config]: https://github.com/paritytech/polkadot-sdk/blob/33324fe01c5b1f341687cef2aa6e767f6acf40f3/polkadot/xcm/xcm-executor/src/config.rs#L31 -[xcm-trade]: https://raw.githubusercontent.com/KILTprotocol/kilt-node/develop/pallets/pallet-asset-switch/src/xcm/trade/mod.rs +[xcm-trade]: https://raw.githubusercontent.com/KILTprotocol/kilt-node/master/pallets/pallet-asset-switch/src/xcm/trade/mod.rs [Error::AssetNotFound]: https://github.com/paritytech/polkadot-sdk/blob/e5791a56dcc35e308a80985cc3b6b7f2ed1eb6ec/polkadot/xcm/src/v3/traits.rs#L68 -[xcm-transact]: https://raw.githubusercontent.com/KILTprotocol/kilt-node/develop/pallets/pallet-asset-switch/src/xcm/transact/mod.rs -[xcm-transfer]: https://raw.githubusercontent.com/KILTprotocol/kilt-node/develop/pallets/pallet-asset-switch/src/xcm/transfer/mod.rs +[xcm-transact]: https://raw.githubusercontent.com/KILTprotocol/kilt-node/master/pallets/pallet-asset-switch/src/xcm/transact/mod.rs +[xcm-transfer]: https://raw.githubusercontent.com/KILTprotocol/kilt-node/master/pallets/pallet-asset-switch/src/xcm/transfer/mod.rs [on-response-trait]: https://github.com/paritytech/polkadot-sdk/blob/33324fe01c5b1f341687cef2aa6e767f6acf40f3/polkadot/xcm/xcm-executor/src/traits/on_response.rs#L29 diff --git a/docusaurus.config.js b/docusaurus.config.js index c18d33462..994671a6e 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -293,7 +293,7 @@ module.exports = { // Pulls external files and adds them as files in the Docusaurus folder, rewriting the title and the file name name: 'switch-pallet', sourceBaseUrl: - 'https://raw.githubusercontent.com/KILTprotocol/kilt-node/develop/pallets/pallet-asset-switch/', + 'https://raw.githubusercontent.com/KILTprotocol/kilt-node/master/pallets/pallet-asset-switch/', outDir: 'docs/develop/09_polarpath', documents: ['README.md'], modifyContent(filename, content) { @@ -301,11 +301,11 @@ module.exports = { const regex = /\.\/[^\/]+\/[^\/]+\/([^\/]+\/mod\.rs)/g var trimContent = content.replaceAll( regex, - 'https://raw.githubusercontent.com/KILTprotocol/kilt-node/develop/pallets/pallet-asset-switch/src/xcm/$1' + 'https://raw.githubusercontent.com/KILTprotocol/kilt-node/master/pallets/pallet-asset-switch/src/xcm/$1' ) var trimContent2 = trimContent.replace( '../../runtime-api/asset-switch/', - 'https://github.com/KILTprotocol/kilt-node/tree/develop/runtime-api/asset-switch' + 'https://github.com/KILTprotocol/kilt-node/tree/master/runtime-api/asset-switch' ) return { filename: '02_switch_pallet.md', From f19e1f8b5c1550042062976abf5dda2cd3f47f5d Mon Sep 17 00:00:00 2001 From: Antonio Antonino Date: Mon, 2 Dec 2024 13:45:29 +0100 Subject: [PATCH 2/6] Fix transfer tx --- code_examples/sdk_examples/src/getFunds.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code_examples/sdk_examples/src/getFunds.ts b/code_examples/sdk_examples/src/getFunds.ts index ef3e49cc9..f295af472 100644 --- a/code_examples/sdk_examples/src/getFunds.ts +++ b/code_examples/sdk_examples/src/getFunds.ts @@ -28,7 +28,7 @@ export async function getFunds( kiltAmount: number ) { const api = Kilt.ConfigService.get('api') - const tx = api.tx.balances.transfer( + const tx = api.tx.balances.transferKeepAlive( recipient, Kilt.BalanceUtils.convertToTxUnit(new BN(kiltAmount), 0) ) @@ -44,7 +44,7 @@ export async function endowAccounts( const api = Kilt.ConfigService.get('api') const transferBatch = destinationAccounts.map((acc) => - api.tx.balances.transfer( + api.tx.balances.transferKeepAlive( acc, Kilt.BalanceUtils.convertToTxUnit( Kilt.BalanceUtils.KILT_COIN.mul(amount), From 30c3eea590971f2736bcf4db7f144a378974cde0 Mon Sep 17 00:00:00 2001 From: Antonio Antonino Date: Mon, 2 Dec 2024 13:54:09 +0100 Subject: [PATCH 3/6] Fix broken links --- docs/develop/01_sdk/03_chain_setup/02_peregrine_setup.md | 3 +-- docs/develop/02_chain/03_deployments.md | 4 ++-- docs/participate/01_staking/06_troubleshooting.md | 6 +++--- docs/participate/01_staking/_disclaimer_staking_tx.md | 1 - 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/docs/develop/01_sdk/03_chain_setup/02_peregrine_setup.md b/docs/develop/01_sdk/03_chain_setup/02_peregrine_setup.md index 175032ba8..9d23c2544 100644 --- a/docs/develop/01_sdk/03_chain_setup/02_peregrine_setup.md +++ b/docs/develop/01_sdk/03_chain_setup/02_peregrine_setup.md @@ -18,5 +18,4 @@ Since the native token of Peregrine, the _PILT_, does not have any economic valu Replace the WebSocket address of [your script](./index.md#set-up-your-project) or application with `wss://peregrine.kilt.io`. You can either use your own frontend or the [Polkadot JS Apps](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fperegrine.kilt.io%2Fparachain-public-ws#/explorer) to interact with the chain. -Moreover, you can use [Subscan](https://kilt-testnet.subscan.io/) as a chain explorer. -For a full list of deployments and services, take a look [here](../../02_chain/03_deployments.md). \ No newline at end of file +For a full list of deployments and services, take a look [here](../../02_chain/03_deployments.md). diff --git a/docs/develop/02_chain/03_deployments.md b/docs/develop/02_chain/03_deployments.md index 37d93ea14..e1ae294c1 100644 --- a/docs/develop/02_chain/03_deployments.md +++ b/docs/develop/02_chain/03_deployments.md @@ -11,13 +11,13 @@ To learn more about how to set up a node for either environment, please check ou **Peregrine** is the public testnet, which can be used to build and test products that use the KILT blockchain, before switching to Spiritnet. | Service | Spiritnet | Peregrine | -|:----------------:|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:------------------------------------------------------------------------------------------------------------:| +| :--------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------: | | Faucet | - | [Peregrine Faucet][pere-faucet] | | Public Endpoints | [BOTLabs: wss://spiritnet.kilt.io][spirit-wss-kilt]
[OnFinality: wss://spiritnet.api.onfinality.io/public-ws][spirit-wss-onfinality]
[Dwellir: wss://kilt-rpc.dwellir.com][spirit-wss-dwellir] | [BOTLabs: wss://peregrine.kilt.io][pere-wss-kilt] | | Wallet | [Sporran](https://www.sporran.org/) | [GitHub](https://github.com/BTE-Trusted-Entity/sporran-extension/releases) (manual loading into the browser) | | Staking UI | Collators' performance (view only): [Stakekilt](https://stakekilt.com/)
Delegation staking platform: [Stakeboard](https://stakeboard.kilt.io) | - | | Governance UI | [Polkassembly][spirit-polkassembly] | - | -| Chain Explorer | [Subscan](https://spiritnet.subscan.io) | [Subscan](https://kilt-testnet.subscan.io) | +| Chain Explorer | [Subscan](https://spiritnet.subscan.io) | - | | w3n Service | [w3n.id](https://w3n.id) | [test.w3n.id](https://test.w3n.id/) | | Link Accounts | [linking.trusted-entity.io](https://linking.trusted-entity.io/) | [test.linking.trusted-entity.io](https://test.linking.trusted-entity.io/) | | DIDsign | [didsign.io](https://didsign.io/) | [test.didsign.io](https://test.didsign.io/) | diff --git a/docs/participate/01_staking/06_troubleshooting.md b/docs/participate/01_staking/06_troubleshooting.md index a228188e9..c117c4356 100644 --- a/docs/participate/01_staking/06_troubleshooting.md +++ b/docs/participate/01_staking/06_troubleshooting.md @@ -27,10 +27,10 @@ In this case, it is better to rule out other options before thinking about upgra There should be a 32 Byte long public key stored in `session > nextKeys(your AccountId)`. 2. Check that the node has the corresponding private key for the public session key. Connect to the node and query `author > hasKey(, aura)` to see if it returns `true`. -3. Check that the node is fully synced with the Relay Chain & parachain (best and finalized block number is equal to the one shown in the PolkadotJS Apps ([wss://spiritnet.kilt.io](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fkilt-rpc.dwellir.com#/explorer), [wss://peregrine.kilt.io](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fperegrine-stg.kilt.io#/explorer)) and on Subscan ([Spiritnet](https://spiritnet.subscan.io/), [Peregrine](https://kilt-testnet.subscan.io/)). -4. Check that the collator is among the selected candidates. +1. Check that the node is fully synced with the Relay Chain & parachain (best and finalized block number is equal to the one shown in the PolkadotJS Apps ([wss://spiritnet.kilt.io](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fkilt-rpc.dwellir.com#/explorer), [wss://peregrine.kilt.io](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fperegrine-stg.kilt.io#/explorer)) and on Subscan (only for [Spiritnet](https://spiritnet.subscan.io/)). +2. Check that the collator is among the selected candidates. Its address should included in the list returned by querying `parachainStaking > topCandidates()`. -5. Check that the `parachainStaking` pallet has registered the collator's address among the authorized authors in the `session`. +1. Check that the `parachainStaking` pallet has registered the collator's address among the authorized authors in the `session`. Its address should be listed when querying `session > validators()`. ## Collator Rewards Have Stopped diff --git a/docs/participate/01_staking/_disclaimer_staking_tx.md b/docs/participate/01_staking/_disclaimer_staking_tx.md index 524d9fef3..c8cc3a9ef 100644 --- a/docs/participate/01_staking/_disclaimer_staking_tx.md +++ b/docs/participate/01_staking/_disclaimer_staking_tx.md @@ -1,7 +1,6 @@ :::info You can either execute this transaction in Polkadot JS Apps or the [**KILT Stakeboard**](../../develop/05_builtonkilt.md#web-apps), which serves as an in-house developed Frontend for all KILT staking activity. Below, we outline the steps for Polkadot JS Apps. -The process for KILT Stakeboard is described in detail in the [**BOTLabs Trusted Entity support hub**](https://support.kilt.io/support/solutions/80000442174). ::: In the Polkadot JS Apps ([wss://spiritnet.kilt.io](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fkilt-rpc.dwellir.com#/explorer), or [wss://peregrine.kilt.io](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fperegrine-stg.kilt.io#/explorer)) go to `Developer -> Extrinsics -> Submission`. From b1806d9d4bdce50259b6daf36ab9c8028c2dae3b Mon Sep 17 00:00:00 2001 From: Antonio Antonino Date: Mon, 2 Dec 2024 14:12:02 +0100 Subject: [PATCH 4/6] Fix dynamic links --- docusaurus.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 994671a6e..00769dac7 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -293,7 +293,7 @@ module.exports = { // Pulls external files and adds them as files in the Docusaurus folder, rewriting the title and the file name name: 'switch-pallet', sourceBaseUrl: - 'https://raw.githubusercontent.com/KILTprotocol/kilt-node/master/pallets/pallet-asset-switch/', + 'https://raw.githubusercontent.com/KILTprotocol/kilt-node/refs/heads/master/pallets/pallet-asset-switch/', outDir: 'docs/develop/09_polarpath', documents: ['README.md'], modifyContent(filename, content) { @@ -301,7 +301,7 @@ module.exports = { const regex = /\.\/[^\/]+\/[^\/]+\/([^\/]+\/mod\.rs)/g var trimContent = content.replaceAll( regex, - 'https://raw.githubusercontent.com/KILTprotocol/kilt-node/master/pallets/pallet-asset-switch/src/xcm/$1' + 'https://raw.githubusercontent.com/KILTprotocol/kilt-node/refs/heads/master/pallets/pallet-asset-switch/xcm/$1' ) var trimContent2 = trimContent.replace( '../../runtime-api/asset-switch/', From 629752eb7bee6769b15c2ccd09824289a31c9f35 Mon Sep 17 00:00:00 2001 From: Antonio Antonino Date: Mon, 2 Dec 2024 14:19:37 +0100 Subject: [PATCH 5/6] Try again --- docusaurus.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 00769dac7..ca1b7b1df 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -301,7 +301,7 @@ module.exports = { const regex = /\.\/[^\/]+\/[^\/]+\/([^\/]+\/mod\.rs)/g var trimContent = content.replaceAll( regex, - 'https://raw.githubusercontent.com/KILTprotocol/kilt-node/refs/heads/master/pallets/pallet-asset-switch/xcm/$1' + 'https://raw.githubusercontent.com/KILTprotocol/kilt-node/refs/heads/master/pallets/pallet-asset-switch/src/xcm/$1' ) var trimContent2 = trimContent.replace( '../../runtime-api/asset-switch/', From abef04e23104a22fffd8bc5ec27b2a5b180a2ca8 Mon Sep 17 00:00:00 2001 From: Antonio Antonino Date: Mon, 2 Dec 2024 14:25:13 +0100 Subject: [PATCH 6/6] Fix list order --- docs/participate/01_staking/06_troubleshooting.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/participate/01_staking/06_troubleshooting.md b/docs/participate/01_staking/06_troubleshooting.md index c117c4356..02bcd8da6 100644 --- a/docs/participate/01_staking/06_troubleshooting.md +++ b/docs/participate/01_staking/06_troubleshooting.md @@ -27,10 +27,10 @@ In this case, it is better to rule out other options before thinking about upgra There should be a 32 Byte long public key stored in `session > nextKeys(your AccountId)`. 2. Check that the node has the corresponding private key for the public session key. Connect to the node and query `author > hasKey(, aura)` to see if it returns `true`. -1. Check that the node is fully synced with the Relay Chain & parachain (best and finalized block number is equal to the one shown in the PolkadotJS Apps ([wss://spiritnet.kilt.io](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fkilt-rpc.dwellir.com#/explorer), [wss://peregrine.kilt.io](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fperegrine-stg.kilt.io#/explorer)) and on Subscan (only for [Spiritnet](https://spiritnet.subscan.io/)). -2. Check that the collator is among the selected candidates. +3. Check that the node is fully synced with the Relay Chain & parachain (best and finalized block number is equal to the one shown in the PolkadotJS Apps ([wss://spiritnet.kilt.io](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fkilt-rpc.dwellir.com#/explorer), [wss://peregrine.kilt.io](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fperegrine-stg.kilt.io#/explorer)) and on Subscan (only for [Spiritnet](https://spiritnet.subscan.io/)). +4. Check that the collator is among the selected candidates. Its address should included in the list returned by querying `parachainStaking > topCandidates()`. -1. Check that the `parachainStaking` pallet has registered the collator's address among the authorized authors in the `session`. +5. Check that the `parachainStaking` pallet has registered the collator's address among the authorized authors in the `session`. Its address should be listed when querying `session > validators()`. ## Collator Rewards Have Stopped