-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
72 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { loadingBar } from "../utils"; | ||
import { parseDebugData } from "../utils/debug"; | ||
|
||
(async () => { | ||
const loader = await loadingBar(); | ||
|
||
await parseDebugData(); | ||
|
||
clearInterval(loader); | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { genKeySet } from "../utils"; | ||
|
||
(async () => { | ||
const keySet = await genKeySet(); | ||
|
||
console.log("Key\tRepository"); | ||
console.log("===\t=========="); | ||
for (const key of keySet) { | ||
console.log(`${key.key}\t${key.name}`); | ||
} | ||
})(); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { processRepo } from "../tally/tally"; | ||
import { genKeySet, loadingBar } from "../utils"; | ||
|
||
(async (key: string) => { | ||
const keySet = await genKeySet(); | ||
|
||
const filtered = keySet.filter((k) => k.key === key || k.name === key); | ||
const loader = await loadingBar(); | ||
|
||
for (const key of filtered) { | ||
await processRepo("Ubiquity", key.repo, false); | ||
} | ||
|
||
clearInterval(loader); | ||
})(process.argv[2]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { invoke } from "./tally"; | ||
|
||
(async () => { | ||
await invoke(); | ||
})(); |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { Erc20Permit, processAllUnclaimedPermits } from "./index"; | ||
import fs from "fs"; | ||
import { loadingBar, writeToFile } from "../utils"; | ||
|
||
(async () => { | ||
const loader = await loadingBar(); | ||
|
||
let permits: Erc20Permit[]; | ||
|
||
try { | ||
const temp = fs.readFileSync("./debug/repos/decoded-permits.json", "utf8"); | ||
permits = JSON.parse(temp); | ||
} catch (err) { | ||
console.log(err); | ||
throw new Error("ERROR: Have you run the 'cli:tally' command?"); | ||
} | ||
|
||
const unspentPermits = await processAllUnclaimedPermits(permits); | ||
|
||
await writeToFile("./src/unspent/unspentPermits.json", JSON.stringify(unspentPermits, null, 2)); | ||
|
||
clearInterval(loader); | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters