-
Notifications
You must be signed in to change notification settings - Fork 96
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
Jeesun Kim
authored and
Jeesun Kim
committed
Apr 10, 2024
1 parent
bf28182
commit b6d1993
Showing
6 changed files
with
134 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
import { FeeBumpTransaction } from "@stellar/stellar-sdk"; | ||
|
||
import { Routes } from "@/constants/routes"; | ||
import { AnyObject } from "@/types/types"; | ||
|
||
type SignTransactionPagesProps = { | ||
overview: [ | ||
{ | ||
label: "Signing for"; | ||
type: "all"; | ||
// component type | ||
}, | ||
{ | ||
label: "Transaction Envelope XDR"; | ||
type: "all"; | ||
// component type | ||
}, | ||
{ | ||
label: "Transaction Hash"; | ||
type: "all"; | ||
// component type | ||
}, | ||
{ | ||
label: "Fee source account"; | ||
type: FeeBumpTransaction; | ||
// component type | ||
}, | ||
{ | ||
label: "Transaction Fee (stroops)"; | ||
type: FeeBumpTransaction; | ||
// component type | ||
}, | ||
{ | ||
label: "Number of existing signatures"; | ||
type: FeeBumpTransaction; | ||
// component type | ||
}, | ||
{ | ||
label: "Inner transaction hash"; | ||
type: FeeBumpTransaction; | ||
// component type | ||
}, | ||
{ | ||
label: "Inner transaction source account"; | ||
type: FeeBumpTransaction; | ||
// component type | ||
}, | ||
{ | ||
label: "Inner transaction sequence number"; | ||
type: FeeBumpTransaction; | ||
// component type | ||
}, | ||
{ | ||
label: "Inner transaction fee (stroops)"; | ||
type: FeeBumpTransaction; | ||
// component type | ||
}, | ||
{ | ||
label: "Inner transaction number of operations"; | ||
type: FeeBumpTransaction; | ||
// component type | ||
}, | ||
{ | ||
label: "Inner transaction number of existing signatures"; | ||
type: FeeBumpTransaction; | ||
// component type | ||
}, | ||
{ | ||
label: "Source account"; | ||
type: FeeBumpTransaction; | ||
// component type | ||
}, | ||
{ | ||
label: "Sequence number"; | ||
type: FeeBumpTransaction; | ||
// component type | ||
}, | ||
{ | ||
label: "Transaction Fee (stroops)"; | ||
type: FeeBumpTransaction; | ||
// component type | ||
}, | ||
{ | ||
label: "Number of operations"; | ||
type: FeeBumpTransaction; | ||
// component type | ||
}, | ||
{ | ||
label: "Number of existing signatures"; | ||
type: FeeBumpTransaction; | ||
// component type | ||
}, | ||
]; | ||
}; |
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,3 @@ | ||
// Regex explained: https://regexr.com/4v6jg | ||
export const trim = (str: string, c = "\\s") => | ||
str.replace(new RegExp(`^([${c}]*)(.*?)([${c}]*)$`), "$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
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