-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use ITxRequest instead of any (#218)
- Loading branch information
1 parent
765562a
commit c8e2d78
Showing
14 changed files
with
234 additions
and
179 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 |
---|---|---|
@@ -1,9 +1,43 @@ | ||
import { BigNumber } from 'bignumber.js'; | ||
|
||
// TODO this is only temporary | ||
export interface ITxRequest { | ||
export interface ITxRequest extends ITxRequestPending { | ||
claimedBy: string; | ||
requiredDeposit: BigNumber; | ||
claimData: string; | ||
executeData: string; | ||
bounty: BigNumber; | ||
callGas: BigNumber; | ||
isCancelled: boolean; | ||
isClaimed: boolean; | ||
wasCalled: boolean; | ||
executionWindowEnd: BigNumber; | ||
temporalUnit: number; | ||
claimWindowStart: BigNumber; | ||
windowStart: BigNumber; | ||
windowSize: BigNumber; | ||
freezePeriod: BigNumber; | ||
reservedWindowSize: BigNumber; | ||
claimWindowEnd: BigNumber; | ||
freezePeriodEnd: BigNumber; | ||
reservedWindowEnd: BigNumber; | ||
|
||
refreshData(): Promise<any>; | ||
claimPaymentModifier(): Promise<BigNumber>; //TODO: refactor as BigNumber not required here | ||
inReservedWindow(): Promise<boolean>; | ||
beforeClaimWindow(): Promise<boolean>; | ||
inClaimWindow(): Promise<boolean>; | ||
inFreezePeriod(): Promise<boolean>; | ||
inExecutionWindow(): Promise<boolean>; | ||
now(): Promise<BigNumber>; | ||
isClaimedBy(address: string): boolean; | ||
} | ||
|
||
export interface ITxRequestPending { | ||
address: string; | ||
gasPrice: BigNumber; | ||
} | ||
|
||
refreshData(): Promise<any>; | ||
export interface ITxRequestRaw { | ||
address: string; | ||
params: BigNumber[]; | ||
} |
Oops, something went wrong.