-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: replace is evm by chain type (#1507)
Co-authored-by: sp.bean <[email protected]>
- Loading branch information
Showing
5 changed files
with
61 additions
and
26 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
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,28 @@ | ||
export function isEvm(chainType: string): boolean { | ||
return chainType === chainTypes.EVM | ||
} | ||
|
||
export function isSolana(chainType: string): boolean { | ||
return chainType === chainTypes.SOL | ||
} | ||
|
||
export function isTon(chainType: string): boolean { | ||
return chainType === chainTypes.TON | ||
} | ||
|
||
export function isBitcoin(chainType: string): boolean { | ||
return chainType === chainTypes.BTC | ||
} | ||
|
||
export function isRonin(chainType: string): boolean { | ||
return chainType === chainTypes.RON | ||
} | ||
|
||
// TODO: check other locations where change type is defined, replace by this | ||
export const chainTypes = { | ||
EVM: "evm", | ||
SOL: "solana", | ||
TON: "ton", | ||
BTC: "bitcoin", | ||
RON: "ronin", | ||
} |