-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fetch merkl-v2 data fix: usage of public buckets fixes cleaning fix fix: rmv error
- Loading branch information
Showing
14 changed files
with
170 additions
and
495 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
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,26 @@ | ||
import fs from 'fs'; | ||
|
||
import { DisputeContext } from './bot/context'; | ||
import { validateClaims, validateHolders } from './bot/validity'; | ||
import createDiffTable from './helpers/diffTable'; | ||
import ConsoleLogger from './helpers/logger/ConsoleLogger'; | ||
|
||
export default async function (context: DisputeContext) { | ||
const { onChainProvider } = context; | ||
const logger = new ConsoleLogger(); | ||
|
||
// const startTree = JSON.parse(fs.readFileSync('old_polygon.json', 'utf8')); | ||
// const endTree = JSON.parse(fs.readFileSync('new_polygon.json', 'utf8')); | ||
|
||
// logger.trees(0, startTree, 0, endTree); | ||
|
||
// const endRoot = buildMerklTree(endTree.rewards).getHexRoot(); | ||
// const startRoot = buildMerklTree(startTree.rewards).getHexRoot(); | ||
|
||
// logger.computedRoots(startRoot, endRoot); | ||
|
||
// const holdersReport = await validateClaims(onChainProvider, await validateHolders(onChainProvider, startTree, endTree)); | ||
|
||
// const res = await createDiffTable(holdersReport.details, holdersReport.changePerDistrib, !context.uploadDiffTable); | ||
// context.uploadDiffTable && console.log('output:', res); | ||
} |
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
Oops, something went wrong.