-
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.
Implement all FA12 Tezos transactions
- Loading branch information
1 parent
81ecba8
commit 61e3c44
Showing
4 changed files
with
64 additions
and
8 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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
import type { Currency } from '../../common'; | ||
import type { TezosCurrency } from '../models'; | ||
import type { FA12TezosCurrency, TezosCurrency } from '../models'; | ||
|
||
export const isTezosCurrency = (currency: Currency): currency is TezosCurrency => { | ||
return currency.blockchain === 'tezos'; | ||
}; | ||
|
||
export const isFA12TezosCurrency = (currency: Currency): currency is FA12TezosCurrency => { | ||
return currency.blockchain === 'tezos' && currency.type === 'fa1.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