Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
TarikGul committed Nov 29, 2023
1 parent c9a0323 commit 10fdf17
Show file tree
Hide file tree
Showing 105 changed files with 541 additions and 494 deletions.
6 changes: 4 additions & 2 deletions examples/localLpToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const main = async () => {
format: 'call',
keepAlive: true,
transferLiquidToken: true,
}
},
);

console.log(`${PURPLE}The following call data that is returned:\n${GREEN}${JSON.stringify(callInfo, null, 4)}`);
Expand All @@ -38,4 +38,6 @@ const main = async () => {
console.log(`\n${PURPLE}The following decoded tx:\n${GREEN} ${JSON.stringify(JSON.parse(decoded), null, 4)}${RESET}`);
};

main().finally(() => process.exit());
main()
.catch((err) => console.error(err))
.finally(() => process.exit());
6 changes: 4 additions & 2 deletions examples/paraToParaParachainPrimaryNativeReserveTransfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const main = async () => {
format: 'call',
isLimited: false,
xcmVersion: 3,
}
},
);

console.log(`${PURPLE}The following call data that is returned:\n${GREEN}${JSON.stringify(callInfo, null, 4)}`);
Expand All @@ -41,4 +41,6 @@ const main = async () => {
console.log(`\n${PURPLE}The following decoded tx:\n${GREEN} ${JSON.stringify(JSON.parse(decoded), null, 4)}${RESET}`);
};

main().finally(() => process.exit());
main()
.catch((err) => console.error(err))
.finally(() => process.exit());
6 changes: 4 additions & 2 deletions examples/paraToParaTransferMultiAsset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const main = async () => {
format: 'call',
isLimited: false,
xcmVersion: 2,
}
},
);

console.log(`${PURPLE}The following call data that is returned:\n${GREEN}${JSON.stringify(callInfo, null, 4)}`);
Expand All @@ -41,4 +41,6 @@ const main = async () => {
console.log(`\n${PURPLE}The following decoded tx:\n${GREEN} ${JSON.stringify(JSON.parse(decoded), null, 4)}${RESET}`);
};

main().finally(() => process.exit());
main()
.catch((err) => console.error(err))
.finally(() => process.exit());
6 changes: 4 additions & 2 deletions examples/paraToParaTransferMultiAssetWithFee.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const main = async () => {
// NOTE: for `xTokens` pallet `transferMultiassetWithFee` txs, `paysWithFeeDest` is the multiLocation of the asset that is intended to be used to pay for fees in the dest chain
paysWithFeeDest:
'{"parents": "1", "interior": {"X3": [{"Parachain": "1000"}, {"PalletInstance": "50"}, {"GeneralIndex": "1984"}]}}',
}
},
);

console.log(`${PURPLE}The following call data that is returned:\n${GREEN}${JSON.stringify(callInfo, null, 4)}`);
Expand All @@ -48,4 +48,6 @@ const main = async () => {
console.log(`\n${PURPLE}The following decoded tx:\n${GREEN} ${JSON.stringify(JSON.parse(decoded), null, 4)}${RESET}`);
};

main().finally(() => process.exit());
main()
.catch((err) => console.error(err))
.finally(() => process.exit());
6 changes: 4 additions & 2 deletions examples/paraToParaTransferMultiAssets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const main = async () => {
format: 'call',
isLimited: false,
xcmVersion: 2,
}
},
);

console.log(`${PURPLE}The following call data that is returned:\n${GREEN}${JSON.stringify(callInfo, null, 4)}`);
Expand All @@ -41,4 +41,6 @@ const main = async () => {
console.log(`\n${PURPLE}The following decoded tx:\n${GREEN} ${JSON.stringify(JSON.parse(decoded), null, 4)}${RESET}`);
};

main().finally(() => process.exit());
main()
.catch((err) => console.error(err))
.finally(() => process.exit());
6 changes: 4 additions & 2 deletions examples/paraToRelayTransferMultiAsset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const main = async () => {
format: 'call',
isLimited: false,
xcmVersion: 3,
}
},
);

console.log(`${PURPLE}The following call data that is returned:\n${GREEN}${JSON.stringify(callInfo, null, 4)}`);
Expand All @@ -41,4 +41,6 @@ const main = async () => {
console.log(`\n${PURPLE}The following decoded tx:\n${GREEN} ${JSON.stringify(JSON.parse(decoded), null, 4)}${RESET}`);
};

main().finally(() => process.exit());
main()
.catch((err) => console.error(err))
.finally(() => process.exit());
6 changes: 4 additions & 2 deletions examples/paraToSystemParachainPrimaryNative.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const main = async () => {
format: 'call',
isLimited: false,
xcmVersion: 3,
}
},
);

console.log(`${PURPLE}The following call data that is returned:\n${GREEN}${JSON.stringify(callInfo, null, 4)}`);
Expand All @@ -41,4 +41,6 @@ const main = async () => {
console.log(`\n${PURPLE}The following decoded tx:\n${GREEN} ${JSON.stringify(JSON.parse(decoded), null, 4)}${RESET}`);
};

main().finally(() => process.exit());
main()
.catch((err) => console.error(err))
.finally(() => process.exit());
6 changes: 4 additions & 2 deletions examples/paraToSystemTransferMultiAsset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const main = async () => {
format: 'call',
isLimited: false,
xcmVersion: 2,
}
},
);

console.log(`${PURPLE}The following call data that is returned:\n${GREEN}${JSON.stringify(callInfo, null, 4)}`);
Expand All @@ -41,4 +41,6 @@ const main = async () => {
console.log(`\n${PURPLE}The following decoded tx:\n${GREEN} ${JSON.stringify(JSON.parse(decoded), null, 4)}${RESET}`);
};

main().finally(() => process.exit());
main()
.catch((err) => console.error(err))
.finally(() => process.exit());
6 changes: 4 additions & 2 deletions examples/paraToSystemTransferMultiAssetWithFee.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const main = async () => {
// NOTE: for xTokens `transferMultiassetWithFee` txs, paysWithFeeDest is the multiLocation of the asset that is intended to be used to pay for fees in the dest chain
paysWithFeeDest:
'{"parents": "1", "interior": {"X3": [{"Parachain": "1000"}, {"PalletInstance": "50"}, {"GeneralIndex": "1984"}]}}',
}
},
);

console.log(`${PURPLE}The following call data that is returned:\n${GREEN}${JSON.stringify(callInfo, null, 4)}`);
Expand All @@ -48,4 +48,6 @@ const main = async () => {
console.log(`\n${PURPLE}The following decoded tx:\n${GREEN} ${JSON.stringify(JSON.parse(decoded), null, 4)}${RESET}`);
};

main().finally(() => process.exit());
main()
.catch((err) => console.error(err))
.finally(() => process.exit());
6 changes: 4 additions & 2 deletions examples/paraToSystemTransferMultiAssets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const main = async () => {
format: 'call',
isLimited: false,
xcmVersion: 3,
}
},
);

console.log(`${PURPLE}The following call data that is returned:\n${GREEN}${JSON.stringify(callInfo, null, 4)}`);
Expand All @@ -41,4 +41,6 @@ const main = async () => {
console.log(`\n${PURPLE}The following decoded tx:\n${GREEN} ${JSON.stringify(JSON.parse(decoded), null, 4)}${RESET}`);
};

main().finally(() => process.exit());
main()
.catch((err) => console.error(err))
.finally(() => process.exit());
6 changes: 4 additions & 2 deletions examples/relayToPara.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const main = async () => {
format: 'call',
isLimited: true,
xcmVersion: 2,
}
},
);

console.log(`${PURPLE}The following call data that is returned:\n${GREEN}${JSON.stringify(callInfo, null, 4)}`);
Expand All @@ -41,4 +41,6 @@ const main = async () => {
console.log(`\n${PURPLE}The following decoded tx:\n${GREEN} ${JSON.stringify(JSON.parse(decoded), null, 4)}${RESET}`);
};

main().finally(() => process.exit());
main()
.catch((err) => console.error(err))
.finally(() => process.exit());
6 changes: 4 additions & 2 deletions examples/relayToSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const main = async () => {
format: 'call',
isLimited: true,
xcmVersion: 2,
}
},
);

console.log(`${PURPLE}The following call data that is returned:\n${GREEN}${JSON.stringify(callInfo, null, 4)}`);
Expand All @@ -41,4 +41,6 @@ const main = async () => {
console.log(`\n${PURPLE}The following decoded tx:\n${GREEN} ${JSON.stringify(JSON.parse(decoded), null, 4)}${RESET}`);
};

main().finally(() => process.exit());
main()
.catch((err) => console.error(err))
.finally(() => process.exit());
6 changes: 4 additions & 2 deletions examples/rococoAssetHubToRelay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const main = async () => {
format: 'call',
isLimited: true,
xcmVersion: 2,
}
},
);

console.log(callInfo);
Expand All @@ -47,4 +47,6 @@ const main = async () => {
console.log(`\n${PURPLE}The following decoded tx:\n${GREEN} ${JSON.stringify(JSON.parse(decoded), null, 4)}${RESET}`);
};

main().finally(() => process.exit());
main()
.catch((err) => console.error(err))
.finally(() => process.exit());
8 changes: 5 additions & 3 deletions examples/submittable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ const main = async () => {
format: 'submittable',
isLimited: true,
xcmVersion: 2,
}
},
);

console.log(
`${PURPLE}The following call data that is returned:\n${GREEN}${JSON.stringify(callInfo, null, 4)}${RESET}`
`${PURPLE}The following call data that is returned:\n${GREEN}${JSON.stringify(callInfo, null, 4)}${RESET}`,
);
} catch (e) {
console.error(e);
Expand All @@ -51,4 +51,6 @@ const main = async () => {
await callInfo.tx.signAndSend(alice);
};

main().finally(() => process.exit());
main()
.catch((err) => console.error(err))
.finally(() => process.exit());
6 changes: 4 additions & 2 deletions examples/systemToPara.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const main = async () => {
format: 'call',
isLimited: true,
xcmVersion: 2,
}
},
);

console.log(`${PURPLE}The following call data that is returned:\n${GREEN}${JSON.stringify(callInfo, null, 4)}`);
Expand All @@ -42,4 +42,6 @@ const main = async () => {
console.log(`\n${PURPLE}The following decoded tx:\n${GREEN} ${JSON.stringify(JSON.parse(decoded), null, 4)}${RESET}`);
};

main().finally(() => process.exit());
main()
.catch((err) => console.error(err))
.finally(() => process.exit());
6 changes: 4 additions & 2 deletions examples/systemToParaLpToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const main = async () => {
isLimited: true,
xcmVersion: 2,
transferLiquidToken: true,
}
},
);

console.log(`${PURPLE}The following call data that is returned:\n${GREEN}${JSON.stringify(callInfo, null, 4)}`);
Expand All @@ -56,4 +56,6 @@ const main = async () => {
console.log(`\n${PURPLE}The following decoded tx:\n${GREEN} ${JSON.stringify(JSON.parse(decoded), null, 4)}${RESET}`);
};

main().finally(() => process.exit());
main()
.catch((err) => console.error(err))
.finally(() => process.exit());
6 changes: 4 additions & 2 deletions examples/systemToParaPaysWithFeeOrigin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const main = async () => {
isLimited: false,
xcmVersion: 3,
paysWithFeeOrigin: '1984',
}
},
);

console.log(callInfo);
Expand All @@ -45,4 +45,6 @@ const main = async () => {
console.log(`\n${PURPLE}The following decoded tx:\n${GREEN} ${JSON.stringify(JSON.parse(decoded), null, 4)}${RESET}`);
};

main().finally(() => process.exit());
main()
.catch((err) => console.error(err))
.finally(() => process.exit());
6 changes: 4 additions & 2 deletions examples/systemToParaReserveTransferForeignAssets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const main = async () => {
format: 'call',
isLimited: true,
xcmVersion: 3,
}
},
);

console.log(callInfo);
Expand All @@ -43,4 +43,6 @@ const main = async () => {
console.log(`\n${PURPLE}The following decoded tx:\n${GREEN} ${JSON.stringify(JSON.parse(decoded), null, 4)}${RESET}`);
};

main().finally(() => process.exit());
main()
.catch((err) => console.error(err))
.finally(() => process.exit());
6 changes: 4 additions & 2 deletions examples/systemToParaTeleportForeignAssets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const main = async () => {
format: 'call',
isLimited: true,
xcmVersion: 3,
}
},
);

console.log(callInfo);
Expand All @@ -43,4 +43,6 @@ const main = async () => {
console.log(`\n${PURPLE}The following decoded tx:\n${GREEN} ${JSON.stringify(JSON.parse(decoded), null, 4)}${RESET}`);
};

main().finally(() => process.exit());
main()
.catch((err) => console.error(err))
.finally(() => process.exit());
6 changes: 4 additions & 2 deletions examples/systemToRelay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const main = async () => {
format: 'call',
isLimited: true,
xcmVersion: 2,
}
},
);

console.log(callInfo);
Expand All @@ -42,4 +42,6 @@ const main = async () => {
console.log(`\n${PURPLE}The following decoded tx:\n${GREEN} ${JSON.stringify(JSON.parse(decoded), null, 4)}${RESET}`);
};

main().finally(() => process.exit());
main()
.catch((err) => console.error(err))
.finally(() => process.exit());
6 changes: 4 additions & 2 deletions examples/systemToSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const main = async () => {
format: 'call',
isLimited: true,
xcmVersion: 2,
}
},
);

console.log(callInfo);
Expand All @@ -42,4 +42,6 @@ const main = async () => {
console.log(`\n${PURPLE}The following decoded tx:\n${GREEN} ${JSON.stringify(JSON.parse(decoded), null, 4)}${RESET}`);
};

main().finally(() => process.exit());
main()
.catch((err) => console.error(err))
.finally(() => process.exit());
6 changes: 4 additions & 2 deletions examples/systemToSystemLocalForeignAssets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const main = async () => {
format: 'call',
isLimited: true,
xcmVersion: 2,
}
},
);

console.log(callInfo);
Expand All @@ -43,4 +43,6 @@ const main = async () => {
console.log(`\n${PURPLE}The following decoded tx:\n${GREEN} ${JSON.stringify(JSON.parse(decoded), null, 4)}${RESET}`);
};

main().finally(() => process.exit());
main()
.catch((err) => console.error(err))
.finally(() => process.exit());
1 change: 1 addition & 0 deletions examples/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"suppressImplicitAnyIndexErrors": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"ignoreDeprecations": "5.0",
},
"typeRoots": [
"../node_modules/@types"
Expand Down
2 changes: 1 addition & 1 deletion scripts/testNetworkForeignAssets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const fAssetCreateCall = (assetHubApi: ApiPromise): `0x${string}` => {
const createTx = assetHubApi.tx.foreignAssets.create(
trappistMultiLocation,
'5Eg2fnsjAAr8RGZfa8Sy5mYFPabA9ZLNGYECCKXPD6xnK6D2', // Sibling 1836 -> ParaId
'100000000000'
'100000000000',
);

const hexCall = assetHubApi.registry
Expand Down
Loading

0 comments on commit 10fdf17

Please sign in to comment.