-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add arg flags for checking remote status.json or local status.json to…
… see if the winners have already been calculated for a draw, or if the draw is finalized and there is no point to calculating winners
- Loading branch information
1 parent
9340778
commit cb1b040
Showing
3 changed files
with
136 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
export function createOutputPath(outputDir: string, chainId: string, address: string, drawId: string): string { | ||
return `${outputDir}/${chainId}/${address.toLowerCase()}/draw/${drawId}/` | ||
export function createOutputPath( | ||
outputDir: string, | ||
chainId: string, | ||
prizePoolAddress: string, | ||
drawId: string | ||
): string { | ||
return `${outputDir}/${drawPath(chainId, prizePoolAddress, drawId)}`; | ||
} | ||
|
||
export function drawPath(chainId: string, prizePoolAddress: string, drawId: string): string { | ||
return `${chainId}/${prizePoolAddress.toLowerCase()}/draw/${drawId}/`; | ||
} |
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