File tree Expand file tree Collapse file tree 3 files changed +0
-24
lines changed Expand file tree Collapse file tree 3 files changed +0
-24
lines changed Original file line number Diff line number Diff line change 11
11
},
12
12
"dependencies" : {
13
13
"@aws-sdk/client-s3" : " ^3.740.0" ,
14
- "@gfxlabs/oku-chains" : " ^1.1.174" ,
15
14
"fs" : " ^0.0.1-security" ,
16
15
"fs.promises" : " ^0.1.2" ,
17
16
"path" : " ^0.12.7" ,
Original file line number Diff line number Diff line change 1
1
import * as fs from "fs/promises" ;
2
2
import * as path from "path" ;
3
- import { MAINNET_CHAINS as chains } from "@gfxlabs/oku-chains" ;
4
3
import { Token } from "./types" ;
5
4
import { actuallyStrictIsAddress } from "./isAddress" ;
6
5
7
- const SUPPORTED_CHAINS : number [ ] = chains . map (
8
- ( chain : { id : number } ) => chain . id ,
9
- ) ;
10
-
11
- function isChainSupported ( chainId : number ) : boolean {
12
- return SUPPORTED_CHAINS . includes ( chainId ) ;
13
- }
14
-
15
6
async function validateJsonFiles ( baseDirectory : string ) {
16
7
const chainFolders = await fs . readdir ( baseDirectory ) ;
17
8
@@ -21,10 +12,6 @@ async function validateJsonFiles(baseDirectory: string) {
21
12
throw new Error ( `Chain folder "${ chainFolder } " is not a valid integer.` ) ;
22
13
}
23
14
24
- if ( ! isChainSupported ( Number ( chainFolder ) ) ) {
25
- throw new Error ( `Chain "${ chainFolder } " is not supported.` ) ;
26
- }
27
-
28
15
const chainFolderPath = path . join ( baseDirectory , chainFolder ) ;
29
16
const chainFolderStats = await fs . stat ( chainFolderPath ) ;
30
17
if ( ! chainFolderStats . isDirectory ( ) ) {
Original file line number Diff line number Diff line change @@ -658,15 +658,6 @@ __metadata:
658
658
languageName : node
659
659
linkType : hard
660
660
661
- " @gfxlabs/oku-chains@npm:^1.1.174 " :
662
- version : 1.1.174
663
- resolution : " @gfxlabs/oku-chains@npm:1.1.174"
664
- peerDependencies :
665
- viem : 2.x
666
- checksum : 10/93b25578d861a867ff8390cc2f674869c1a763db876c18ddba2b196532b45d02cc049184ad9304164b43523a0df78fe1926c658b8694975d21f42e2379fd5dcd
667
- languageName : node
668
- linkType : hard
669
-
670
661
" @img/sharp-darwin-arm64@npm:0.33.5 " :
671
662
version : 0.33.5
672
663
resolution : " @img/sharp-darwin-arm64@npm:0.33.5"
@@ -1616,7 +1607,6 @@ __metadata:
1616
1607
resolution : " oku-tokens@workspace:."
1617
1608
dependencies :
1618
1609
" @aws-sdk/client-s3 " : " npm:^3.740.0"
1619
- " @gfxlabs/oku-chains " : " npm:^1.1.174"
1620
1610
" @types/node " : " npm:^22.12.0"
1621
1611
fs : " npm:^0.0.1-security"
1622
1612
fs.promises : " npm:^0.1.2"
You can’t perform that action at this time.
0 commit comments