Skip to content

Commit

Permalink
Update types for update
Browse files Browse the repository at this point in the history
  • Loading branch information
rkalis committed Jan 25, 2023
1 parent 08af7f3 commit 2d7138a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
"prepack": "yarn build"
},
"devDependencies": {
"got": "^11.8.2",
"@types/node": "^14.14.37",
"@types/prettier": "^2.2.3",
"got": "^11.8.2",
"prettier": "^2.2.1",
"ts-node": "^9.1.1",
"typescript": "^4.2.3"
Expand Down
10 changes: 8 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ export interface Chain {
nativeCurrency: NativeCurrency
rpc: string[]
explorers?: Explorer[]
features?: Feature[]
faucets: string[]
infoURL: string
icon?: string
slip44?: number
parent?: Parent
ens?: { registry: string }
status?: 'deprecated'
status?: 'active' | 'deprecated' | 'incubating'
redFlags?: string[]
}

export interface NativeCurrency {
Expand All @@ -34,7 +36,11 @@ export interface Explorer {
export interface Parent {
chain: string
type: 'L2' | 'shard'
bridges?: [{ url: string }]
bridges?: Array<{ url: string }>
}

export interface Feature {
name: string;
}

export interface Chains {
Expand Down

0 comments on commit 2d7138a

Please sign in to comment.