Skip to content

Commit

Permalink
update TokenInfo extensions type to support objects nested 2 levels d…
Browse files Browse the repository at this point in the history
…eep (#140)
  • Loading branch information
matteenm authored Jun 16, 2022
1 parent 9fd77cf commit 1023c40
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
type ExtensionValue = string | number | boolean | null;

This comment has been minimized.

Copy link
@ESCOBA5

ESCOBA5 Sep 14, 2023

TETHER USDT

This comment has been minimized.

Copy link
@anhlam2234

anhlam2234 Sep 15, 2023

0xdD43A23f74ce0F9338816705A2Af330017d91bDE

type ExtensionValue = string | number | boolean | null | undefined;

This comment has been minimized.

Copy link
@ESCOBA5

ESCOBA5 Sep 14, 2023

0x2F549e7Fb31e10B2B8a442866820B053950d7A7E

export interface TokenInfo {
readonly chainId: number;

This comment has been minimized.

Copy link
@ESCOBA5

ESCOBA5 Sep 14, 2023

6

This comment has been minimized.

Copy link
@ESCOBA5

ESCOBA5 Sep 14, 2023

0xfbcaA76076B117a90F60f148C6A4606556506b06

Expand All @@ -9,7 +9,15 @@ export interface TokenInfo {
readonly logoURI?: string;
readonly tags?: string[];

This comment has been minimized.

Copy link
@ESCOBA5

ESCOBA5 Sep 14, 2023

0xbaa7171753a14938bf7143e86a1b7ec49b2ba0578ca5a91e49ac4cc82efe11a3

readonly extensions?: {
readonly [key: string]: { [key: string]: ExtensionValue } | ExtensionValue;

This comment has been minimized.

Copy link
@ESCOBA5

ESCOBA5 Sep 14, 2023

470 USDT

This comment has been minimized.

Copy link
@Deacon77

Deacon77 via email Sep 15, 2023

readonly [key: string]:
| {
[key: string]:
| {
[key: string]: ExtensionValue;
}
| ExtensionValue;
}
| ExtensionValue;
};
}

Expand Down

2 comments on commit 1023c40

@Pykagamers
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tokens.1inch.eth

@ESCOBA5
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need my funds to be refunded

Please sign in to comment.