Skip to content

chore: replace GitHub develop references with master #332

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

Merged
merged 6 commits into from
Dec 2, 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
4 changes: 2 additions & 2 deletions code_examples/sdk_examples/src/getFunds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
Expand All @@ -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),
Expand Down
3 changes: 1 addition & 2 deletions docs/develop/01_sdk/03_chain_setup/02_peregrine_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
For a full list of deployments and services, take a look [here](../../02_chain/03_deployments.md).
4 changes: 2 additions & 2 deletions docs/develop/02_chain/03_deployments.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]<br/>[OnFinality: wss://spiritnet.api.onfinality.io/public-ws][spirit-wss-onfinality]<br/>[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/)<br/>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/) |
Expand Down
12 changes: 6 additions & 6 deletions docs/develop/09_polarpath/02_switch_pallet.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion docs/participate/01_staking/06_troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ 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(<pubKey from 1.>, 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/)).
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()`.
5. Check that the `parachainStaking` pallet has registered the collator's address among the authorized authors in the `session`.
Expand Down
1 change: 0 additions & 1 deletion docs/participate/01_staking/_disclaimer_staking_tx.md
Original file line number Diff line number Diff line change
@@ -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`.
6 changes: 3 additions & 3 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,19 +293,19 @@ 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/refs/heads/master/pallets/pallet-asset-switch/',
outDir: 'docs/develop/09_polarpath',
documents: ['README.md'],
modifyContent(filename, content) {
if (filename.includes('README')) {
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/refs/heads/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',
Expand Down
Loading