Skip to content

Commit

Permalink
chore(deps-dev): bumped tslint version (#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
bee344 authored Jan 2, 2025
1 parent bea3045 commit efc7eef
Show file tree
Hide file tree
Showing 8 changed files with 72 additions and 202 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@polkadot/util-crypto": "^13.1.1",
"@substrate/dev": "^0.9.0",
"@types/node-fetch": "^2.6.3",
"@typescript-eslint/eslint-plugin": "^8.13.0",
"@typescript-eslint/eslint-plugin": "8.18.2",
"@typescript-eslint/parser": "^8.13.0",
"lerna": "8.1.2",
"ts-jest": "^29.1.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ async function main(): Promise<void> {
console.log(
`\nDecoded Transaction\n To: ${
(decodedUnsigned.method.args.dest as { id: string })?.id
}\n` + ` Amount: ${decodedUnsigned.method.args.value}`,
}\n` + ` Amount: ${JSON.stringify(decodedUnsigned.method.args.value)}`,
);

// Construct the signing payload from an unsigned transaction.
Expand All @@ -154,8 +154,8 @@ async function main(): Promise<void> {
`\nDecoded Transaction\n To: ${
(payloadInfo.method.args.dest as { id: string })?.id
}\n` +
` Amount: ${payloadInfo.method.args.value}\n` +
` AssetId: ${payloadInfo.assetId}`,
` Amount: ${JSON.stringify(payloadInfo.method.args.value)}\n` +
` AssetId: ${JSON.stringify(payloadInfo.assetId)}`,
);

// Sign a payload. This operation should be performed on an offline device.
Expand Down Expand Up @@ -191,7 +191,7 @@ async function main(): Promise<void> {
console.log(
`\nDecoded Transaction\n To: ${
(txInfo.method.args.dest as { id: string })?.id
}\n` + ` Amount: ${txInfo.method.args.value}\n`,
}\n` + ` Amount: ${JSON.stringify(txInfo.method.args.value)}\n`,
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ async function main(): Promise<void> {
console.log(
`\nDecoded Transaction\n To: ${
(decodedUnsigned.method.args.dest as { id: string })?.id
}\n` + ` Amount: ${decodedUnsigned.method.args.value}`,
}\n` + ` Amount: ${JSON.stringify(decodedUnsigned.method.args.value)}`,
);

// Construct the signing payload from an unsigned transaction.
Expand All @@ -155,8 +155,8 @@ async function main(): Promise<void> {
`\nDecoded Transaction\n To: ${
(payloadInfo.method.args.dest as { id: string })?.id
}\n` +
` Amount: ${payloadInfo.method.args.value}\n` +
` AssetId: ${payloadInfo.assetId}`,
` Amount: ${JSON.stringify(payloadInfo.method.args.value)}\n` +
` AssetId: ${JSON.stringify(payloadInfo.assetId)}`,
);

// Sign a payload. This operation should be performed on an offline device.
Expand Down Expand Up @@ -192,7 +192,7 @@ async function main(): Promise<void> {
console.log(
`\nDecoded Transaction\n To: ${
(txInfo.method.args.dest as { id: string })?.id
}\n` + ` Amount: ${txInfo.method.args.value}\n`,
}\n` + ` Amount: ${JSON.stringify(txInfo.method.args.value)}\n`,
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ async function main(): Promise<void> {
console.log(
`\nDecoded Transaction\n To: ${
(decodedUnsigned.method.args.target as { id: string })?.id
}\n` + ` Amount: ${decodedUnsigned.method.args.amount}`,
}\n` + ` Amount: ${JSON.stringify(decodedUnsigned.method.args.amount)}`,
);

// Construct the signing payload from an unsigned transaction.
Expand All @@ -136,7 +136,7 @@ async function main(): Promise<void> {
console.log(
`\nDecoded Transaction\n To: ${
(payloadInfo.method.args.target as { id: string })?.id
}\n` + ` Amount: ${payloadInfo.method.args.amount}\n`,
}\n` + ` Amount: ${JSON.stringify(payloadInfo.method.args.amount)}\n`,
);

// Sign a payload. This operation should be performed on an offline device.
Expand Down Expand Up @@ -166,7 +166,7 @@ async function main(): Promise<void> {
console.log(
`\nDecoded Transaction\n To: ${
(txInfo.method.args.target as { id: string })?.id
}\n` + ` Amount: ${txInfo.method.args.amount}\n`,
}\n` + ` Amount: ${JSON.stringify(txInfo.method.args.amount)}\n`,
);
}

Expand Down
14 changes: 7 additions & 7 deletions packages/txwrapper-examples/multisig/src/multisig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ async function main(): Promise<void> {
console.log(
`\nDecoded Transaction\n To\t: ${
(decodedUnsigned.method.args.dest as { id: string })?.id
}\n` + ` Amount: ${decodedUnsigned.method.args.value}`,
}\n` + ` Amount: ${JSON.stringify(decodedUnsigned.method.args.value)}`,
);

// Construct the signing payload from an unsigned transaction.
Expand Down Expand Up @@ -306,7 +306,7 @@ async function main(): Promise<void> {
`\nDecoded Transaction\n To\t: ${
(decodedUnsignedTXMulti.method.args.dest as { id: string })?.id
}\n` +
` Amount: ${decodedUnsignedTXMulti.method.args.value}` +
` Amount: ${JSON.stringify(decodedUnsignedTXMulti.method.args.value)}` +
`\n` +
` From\t: ${decodedUnsignedTXMulti.address}`,
);
Expand Down Expand Up @@ -368,7 +368,7 @@ async function main(): Promise<void> {
});
console.log(
`\nDecoded Transaction\n` +
` Threshold: ${decodedUnsignedApproveAsMulti.method.args.threshold}` +
` Threshold: ${JSON.stringify(decodedUnsignedApproveAsMulti.method.args.threshold)}` +
`\n` +
` Approve From: ${decodedUnsignedApproveAsMulti.address}`,
);
Expand Down Expand Up @@ -429,8 +429,8 @@ async function main(): Promise<void> {
});
console.log(
`\nDecoded Transaction of \`approveAsMulti\`\n` +
` Call Hash of unsignedTXMulti: ${txInfoApproveAsMulti.method.args.callHash}\n` +
` Threshold of unsignedTXMulti: ${txInfoApproveAsMulti.method.args.threshold}`,
` Call Hash of unsignedTXMulti: ${JSON.stringify(txInfoApproveAsMulti.method.args.callHash)}\n` +
` Threshold of unsignedTXMulti: ${JSON.stringify(txInfoApproveAsMulti.method.args.threshold)}`,
);

// Create Signatories Sorted excluding the sender (Bob)
Expand Down Expand Up @@ -573,8 +573,8 @@ async function main(): Promise<void> {
});
console.log(
`\nDecoded Transaction of \`asMulti\`\n` +
` Call of unsignedTXMulti: ${txInfoAsMulti.method.args.call}\n` +
` Threshold of unsignedTXMulti: ${txInfoAsMulti.method.args.threshold}\n`,
` Call of unsignedTXMulti: ${JSON.stringify(txInfoAsMulti.method.args.call)}\n` +
` Threshold of unsignedTXMulti: ${JSON.stringify(txInfoAsMulti.method.args.threshold)}\n`,
);
}

Expand Down
6 changes: 3 additions & 3 deletions packages/txwrapper-examples/polkadot/src/polkadot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ async function main(): Promise<void> {
console.log(
`\nDecoded Transaction\n To: ${
(decodedUnsigned.method.args.dest as { id: string })?.id
}\n` + ` Amount: ${decodedUnsigned.method.args.value}`,
}\n` + ` Amount: ${JSON.stringify(decodedUnsigned.method.args.value)}`,
);

// Construct the signing payload from an unsigned transaction.
Expand All @@ -134,7 +134,7 @@ async function main(): Promise<void> {
console.log(
`\nDecoded Transaction\n To: ${
(payloadInfo.method.args.dest as { id: string })?.id
}\n` + ` Amount: ${payloadInfo.method.args.value}`,
}\n` + ` Amount: ${JSON.stringify(payloadInfo.method.args.value)}`,
);

// Sign a payload. This operation should be performed on an offline device.
Expand Down Expand Up @@ -169,7 +169,7 @@ async function main(): Promise<void> {
console.log(
`\nDecoded Transaction\n To: ${
(txInfo.method.args.dest as { id: string })?.id
}\n` + ` Amount: ${txInfo.method.args.value}\n`,
}\n` + ` Amount: ${JSON.stringify(txInfo.method.args.value)}\n`,
);
}

Expand Down
12 changes: 6 additions & 6 deletions packages/txwrapper-template/examples/template-example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ async function main(): Promise<void> {
});
console.log(
// TODO all the log messages need to be updated to be relevant to the method used
`\nDecoded Transaction\n To: ${decodedUnsigned.method.args.dest}\n` +
` Amount: ${decodedUnsigned.method.args.value}`,
`\nDecoded Transaction\n To: ${JSON.stringify(decodedUnsigned.method.args.dest)}\n` +
` Amount: ${JSON.stringify(decodedUnsigned.method.args.value)}`,
);

// Construct the signing payload from an unsigned transaction.
Expand All @@ -97,8 +97,8 @@ async function main(): Promise<void> {
});
console.log(
// TODO all the log messages need to be updated to be relevant to the method used
`\nDecoded Transaction\n To: ${payloadInfo.method.args.dest}\n` +
` Amount: ${payloadInfo.method.args.value}`,
`\nDecoded Transaction\n To: ${JSON.stringify(payloadInfo.method.args.dest)}\n` +
` Amount: ${JSON.stringify(payloadInfo.method.args.value)}`,
);

// Sign a payload. This operation should be performed on an offline device.
Expand Down Expand Up @@ -132,8 +132,8 @@ async function main(): Promise<void> {
});
console.log(
// TODO all the log messages need to be updated to be relevant to the method used
`\nDecoded Transaction\n To: ${txInfo.method.args.dest}\n` +
` Amount: ${txInfo.method.args.value}\n`,
`\nDecoded Transaction\n To: ${JSON.stringify(txInfo.method.args.dest)}\n` +
` Amount: ${JSON.stringify(txInfo.method.args.value)}\n`,
);
}

Expand Down
Loading

0 comments on commit efc7eef

Please sign in to comment.