mirror of
https://github.com/Instadapp/trustwallet-assets.git
synced 2024-07-29 22:37:31 +00:00
15 lines
427 B
TypeScript
15 lines
427 B
TypeScript
|
import { stakingChains } from "../common/blockchains";
|
||
|
import { getChainValidatorsListPath } from "../common/repo-structure";
|
||
|
import { formatSortJsonFile } from "../common/json";
|
||
|
|
||
|
function formatValidators() {
|
||
|
stakingChains.forEach(chain => {
|
||
|
const validatorsPath = getChainValidatorsListPath(chain);
|
||
|
formatSortJsonFile(validatorsPath);
|
||
|
})
|
||
|
}
|
||
|
|
||
|
export async function fix() {
|
||
|
formatValidators();
|
||
|
}
|