Skip to content

Commit c8e760c

Browse files
oXtxNt9Ugithub-actions[bot]
authored andcommitted
style: resolve style guide violations
1 parent 08aa60c commit c8e760c

6 files changed

Lines changed: 16 additions & 17 deletions

File tree

packages/configuration-generator/source/application-factory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ export const makeApplication = async (configurationPath: string, options: Record
5454
const fs = await import("fs");
5555
app.bind(Identifiers.Services.Filesystem.Service).toConstantValue({
5656
existsSync: () => true,
57-
readJSONSync: (file: string, options?: Record<string, any>) => fsExtra.readJSONSync(file, options),
5857
get: (path: string) => fs.readFileSync(path),
58+
readJSONSync: (file: string, options?: Record<string, any>) => fsExtra.readJSONSync(file, options),
5959
});
6060
setGracefulCleanup();
6161
app.rebind("path.data").toConstantValue(dirSync().name);

packages/evm-contracts/source/abis/ConsensusV1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1884,4 +1884,4 @@
18841884
"version": 1
18851885
},
18861886
"id": 37
1887-
}
1887+
}

packages/snapshot-legacy-exporter/bin/run.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,22 @@ async function run() {
1818

1919
await generator.generate({});
2020

21-
2221
// await generator.generateStatic(
2322
// { hash: "a1b8d3f6e9c2a0b4d7e1f0c8a3b5d6e7f9a0b1c3d4e5f6a7b8c9d0e1f2a3b4c5", number: 0 },
2423
// [
25-
// { arkAddress: "DFF4dzL2ZoFeGdcCbER4gfmuWBEVbEnU5f", publicKey: "034b7f14dd621010d9719a027971dac8e00e00467b3c6d5945e0a5ced797b13b2d", balance: "10000000000",
26-
// attributes: { delegate: { username: "valdiator_1" }}
24+
// { arkAddress: "DFF4dzL2ZoFeGdcCbER4gfmuWBEVbEnU5f", publicKey: "034b7f14dd621010d9719a027971dac8e00e00467b3c6d5945e0a5ced797b13b2d", balance: "10000000000",
25+
// attributes: { delegate: { username: "valdiator_1" }}
2726
// },
28-
// { arkAddress: "DFf62eynQTZDoTLADQdxW7EJEGV4xcGT1f", publicKey: "03b36b275ef33b7527d08fa5cf29c04ff142a427f228f1c4d02161c76a7404bef5", balance: "20000000000",
27+
// { arkAddress: "DFf62eynQTZDoTLADQdxW7EJEGV4xcGT1f", publicKey: "03b36b275ef33b7527d08fa5cf29c04ff142a427f228f1c4d02161c76a7404bef5", balance: "20000000000",
2928
// attributes: { delegate: { username: "valdiator_2" }}
3029
// },
31-
// { arkAddress: "DFFDDbGwiuPMMYvcnzJhLrZdjnuUPwEVRS", publicKey: "020074030f3577eb683bb215340c5994654f4634556a33744bf81f15d92815c99d", balance: "30000000000",
30+
// { arkAddress: "DFFDDbGwiuPMMYvcnzJhLrZdjnuUPwEVRS", publicKey: "020074030f3577eb683bb215340c5994654f4634556a33744bf81f15d92815c99d", balance: "30000000000",
3231
// attributes: { delegate: { username: "valdiator_3" }}
3332
// },
34-
// { arkAddress: "DFfemTprUzXAh6E9f1hzchbnNgk4QBSsRg", publicKey: "0244cb74943034d85e4a18e0b60a58d535ae9f94cf170ec16e94ca283a2c0eb712", balance: "40000000000",
33+
// { arkAddress: "DFfemTprUzXAh6E9f1hzchbnNgk4QBSsRg", publicKey: "0244cb74943034d85e4a18e0b60a58d535ae9f94cf170ec16e94ca283a2c0eb712", balance: "40000000000",
3534
// attributes: { delegate: { username: "valdiator_4" }}
3635
// },
37-
// { arkAddress: "DFfEqb9Caqi7jmdkeg861eURxL8DS3pK8x", publicKey: "0269051b0fe83c5bfc5e343ccb63c40d575666cf9476057bb2b66b1ae3827cb08a", balance: "50000000000",
36+
// { arkAddress: "DFfEqb9Caqi7jmdkeg861eURxL8DS3pK8x", publicKey: "0269051b0fe83c5bfc5e343ccb63c40d575666cf9476057bb2b66b1ae3827cb08a", balance: "50000000000",
3837
// attributes: { delegate: { username: "valdiator_5" }}
3938
// },
4039
// { arkAddress: "DFfFDrrppKzVTK5frHYh6JJP73UeD2MZnC", publicKey: "02a1a95d0445074b2ef84c66ffcb203ef838c398a8b802ef7441d6ffc88b326d1e", balance: "10" },

packages/snapshot-legacy-exporter/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424
"dependencies": {
2525
"@mainsail/container": "workspace:*",
2626
"@mainsail/contracts": "workspace:*",
27-
"@mainsail/kernel": "workspace:*",
28-
"@mainsail/utils": "workspace:*",
2927
"@mainsail/crypto-address-keccak256": "workspace:*",
3028
"@mainsail/crypto-key-pair-ecdsa": "workspace:*",
3129
"@mainsail/crypto-validation": "workspace:*",
30+
"@mainsail/kernel": "workspace:*",
31+
"@mainsail/utils": "workspace:*",
3232
"@mainsail/validation": "workspace:*",
3333
"pg": "8.14.0",
3434
"tmp": "0.2.3",

packages/snapshot-legacy-exporter/source/application-factory.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { Container } from "@mainsail/container";
22
import { Identifiers } from "@mainsail/contracts";
3-
import { Application } from "@mainsail/kernel";
4-
import { ServiceProvider as Validation } from "@mainsail/validation";
53
import { ServiceProvider as CryptoAddressKeccak256 } from "@mainsail/crypto-address-keccak256";
64
import { ServiceProvider as CryptoKeyPairEcdsa } from "@mainsail/crypto-key-pair-ecdsa";
75
import { ServiceProvider as CryptoValidation } from "@mainsail/crypto-validation";
6+
import { Application } from "@mainsail/kernel";
7+
import { ServiceProvider as Validation } from "@mainsail/validation";
88
import { dirSync, setGracefulCleanup } from "tmp";
99

1010
import { Identifiers as InternalIdentifiers } from "./identifiers.js";

packages/snapshot-legacy-importer/source/importer.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,12 @@ export class Importer implements Contracts.Snapshot.LegacyImporter {
153153
let totalSupply = 0n;
154154

155155
const publicKeyLookup: Record<string, Contracts.Snapshot.ImportedLegacyWallet> = snapshot.wallets.reduce(
156-
(acc, curr) => {
157-
if (curr.publicKey) {
158-
acc[curr.publicKey] = curr;
156+
(accumulator, current) => {
157+
if (current.publicKey) {
158+
accumulator[current.publicKey] = current;
159159
}
160160

161-
return acc;
161+
return accumulator;
162162
},
163163
{},
164164
);

0 commit comments

Comments
 (0)