-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Store Quote data of the Pegin and Pegout for flyover
- Loading branch information
1 parent
75886fe
commit 21f484d
Showing
4 changed files
with
45 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
export interface BaseQuoteDbModel { | ||
agreementTimestamp: number; | ||
gasFeeOnWei: bigint; | ||
nonce: bigint; | ||
penaltyFeeOnWei: bigint; | ||
btcRefundAddress: string; | ||
lbcAddress: string; | ||
lpBtcAddress: string; | ||
rskRefundAddress: string; | ||
liquidityProviderRskAddress: string; | ||
} | ||
|
||
export interface PeginQuoteDbModel extends BaseQuoteDbModel { | ||
callFeeOnSatoshi: bigint; | ||
callOnRegister: boolean; | ||
confirmations: number; | ||
contractAddr: string; | ||
data: string; | ||
fedBTCAddr: string; | ||
gasLimit: number; | ||
lpCallTime: number; | ||
productFeeAmountOnSatoshi: bigint; | ||
timeForDepositInSeconds: number; | ||
valueOnSatoshi: bigint; | ||
} | ||
|
||
export interface PegoutQuoteDbModel extends BaseQuoteDbModel { | ||
callFeeOnWei: bigint; | ||
depositAddr: string; | ||
depositConfirmations: number; | ||
depositDateLimit: number; | ||
expireBlocks: number; | ||
expireDate: number; | ||
productFeeAmountOnWei: bigint; | ||
transferConfirmations: number; | ||
transferTime: number; | ||
valueOnWei: bigint; | ||
} | ||
|
||
export type QuoteDbModel = PeginQuoteDbModel | PegoutQuoteDbModel; |
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