@exodus/solana-api 2.3.0 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -6
- package/src/connection.js +4 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/solana-api",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "Exodus internal Solana asset API wrapper",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@exodus/models": "^8.10.4",
|
|
22
22
|
"@exodus/nfts-core": "^0.5.0",
|
|
23
23
|
"@exodus/simple-retry": "^0.0.6",
|
|
24
|
-
"@exodus/solana-lib": "^1.
|
|
24
|
+
"@exodus/solana-lib": "^1.6.0",
|
|
25
25
|
"@exodus/solana-web3.js": "1.31.0-exodus.5",
|
|
26
26
|
"@ungap/url-search-params": "^0.2.2",
|
|
27
27
|
"bignumber.js": "^9.0.1",
|
|
@@ -32,8 +32,5 @@
|
|
|
32
32
|
"url-join": "4.0.0",
|
|
33
33
|
"wretch": "^1.5.2"
|
|
34
34
|
},
|
|
35
|
-
"
|
|
36
|
-
"node-fetch": "~2.6.0"
|
|
37
|
-
},
|
|
38
|
-
"gitHead": "fe989a47ba9278f5fe797f9b01d8bc93fb53467a"
|
|
35
|
+
"gitHead": "301d6e9222b3c0828c73cea460c94c9bbce878e6"
|
|
39
36
|
}
|
package/src/connection.js
CHANGED
|
@@ -9,8 +9,8 @@ import { WebSocket } from '@exodus/fetch'
|
|
|
9
9
|
|
|
10
10
|
const SOLANA_DEFAULT_ENDPOINT = 'wss://solana.a.exodus.io/ws'
|
|
11
11
|
const DEFAULT_RECONNECT_DELAY = ms('15s')
|
|
12
|
-
const PING_INTERVAL = ms('
|
|
13
|
-
const TIMEOUT = ms('
|
|
12
|
+
const PING_INTERVAL = ms('60s')
|
|
13
|
+
const TIMEOUT = ms('50s')
|
|
14
14
|
|
|
15
15
|
const debug = debugLogger('exodus:solana-api')
|
|
16
16
|
|
|
@@ -184,8 +184,9 @@ export class Connection {
|
|
|
184
184
|
this.rpcQueue[id] = { resolve, reject }
|
|
185
185
|
this.rpcQueue[id].timeout = setTimeout(() => {
|
|
186
186
|
delete this.rpcQueue[id]
|
|
187
|
+
debug(`ws timeout command: ${method} - ${JSON.stringify(params)} - ${id}`)
|
|
187
188
|
reject(new Error('solana ws: reply timeout'))
|
|
188
|
-
}, TIMEOUT)
|
|
189
|
+
}, TIMEOUT).unref()
|
|
189
190
|
this.ws.send(JSON.stringify({ jsonrpc: '2.0', method, params, id }))
|
|
190
191
|
})
|
|
191
192
|
}
|