Skip to content

Commit

Permalink
update types (#63)
Browse files Browse the repository at this point in the history
* update types

* update rpc

* lint
  • Loading branch information
Leouarz authored Apr 6, 2024
1 parent b549342 commit fcb5c8e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"test:skipped": "echo 'tests skipped'"
},
"dependencies": {
"avail-js-sdk": "^0.2.7",
"avail-js-sdk": "^0.2.8",
"axios": "^1.4.0",
"dotenv": "^16.3.1",
"patch-package": "^8.0.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/apps-config/src/variables/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
const config: { [network: string]: { url: `wss://${string}`, lcUrl: string } } = {
goldberg: {
lcUrl: process.env.GOLDBERG_LC || 'https://api.lightclient.goldberg.avail.tools/v1',
url: process.env.GOLDBERG_URL as `wss://${string}` || 'wss://goldberg.avail.tools/ws'
url: process.env.GOLDBERG_URL as `wss://${string}` || 'wss://rpc-testnet.avail.tools/ws'
},
turing: {
lcUrl: process.env.TURING_LC || 'https://api.lightclient.turing.avail.so/v1',
Expand All @@ -19,7 +19,7 @@ const config: { [network: string]: { url: `wss://${string}`, lcUrl: string } } =
export const getLCFromUrl = (apiUrl: string) => {
if (apiUrl.includes('turing')) {
return config.turing.lcUrl;
} else if (apiUrl.includes('goldberg')) {
} else if (apiUrl.includes('goldberg') || apiUrl === 'wss://rpc-testnet.avail.tools/ws') {
return config.goldberg.lcUrl;
} else {
return config.turing.lcUrl; // TODO-mainnet
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5242,12 +5242,12 @@ __metadata:
languageName: node
linkType: hard

"avail-js-sdk@npm:^0.2.7":
version: 0.2.7
resolution: "avail-js-sdk@npm:0.2.7"
"avail-js-sdk@npm:^0.2.8":
version: 0.2.8
resolution: "avail-js-sdk@npm:0.2.8"
dependencies:
"@polkadot/api": "npm:^10.11.3"
checksum: 10/33e24dfa25816b22832eaf0c19e12fb1061e5b776b6ad880a4355717754a8ef792d54a37107b2a4a7ba54b490e446b4e797c8cd6d0408b07dd56c2ffe2e1f104
checksum: 10/f5c74d044de6d60919860f68cd17dd97efbb24a029c303f929df0d3a50d5722f636f27882dffa88c5aed5abad930a9ffa80cab1cc43706c7a8fd2b14bbee7b71
languageName: node
linkType: hard

Expand Down Expand Up @@ -14516,7 +14516,7 @@ __metadata:
"@types/react-dom": "npm:^18.2.18"
"@types/react-router-dom": "npm:^5.3.3"
"@types/store": "npm:^2.0.5"
avail-js-sdk: "npm:^0.2.7"
avail-js-sdk: "npm:^0.2.8"
axios: "npm:^1.4.0"
concurrently: "npm:^8.2.2"
devtron: "npm:^1.4.0"
Expand Down

0 comments on commit fcb5c8e

Please sign in to comment.