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 2 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
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
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/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/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