Skip to content

Commit

Permalink
refactor: add circle spoke token type
Browse files Browse the repository at this point in the history
  • Loading branch information
palace22 committed Jun 11, 2024
1 parent df069cc commit 7b71585
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/common/types/token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ export type ITokenData = {
};

type Erc20SpokeTokenType = {
type: TokenType.ERC20 | TokenType.CIRCLE;
type: TokenType.ERC20;
address: GenericAddress;
decimals: number;
};

type CircleSpokeTokenType = {
type: TokenType.CIRCLE;
address: GenericAddress;
decimals: number;
};
Expand All @@ -30,7 +36,10 @@ type NativeSpokeTokenType = {
decimals: number;
};

export type SpokeTokenType = Erc20SpokeTokenType | NativeSpokeTokenType;
export type SpokeTokenType =
| Erc20SpokeTokenType
| CircleSpokeTokenType
| NativeSpokeTokenType;

export type SpokeTokenData = {
poolId: number;
Expand Down

0 comments on commit 7b71585

Please sign in to comment.