Commit 2917197 1 parent 650fefd commit 2917197 Copy full SHA for 2917197
File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
export const SPARK_VERSION = '1.11.3'
2
2
export const MAX_CAR_SIZE = 200 * 1024 * 1024 // 200 MB
3
3
export const APPROX_ROUND_LENGTH_IN_MS = 20 * 60_000 // 20 minutes
4
-
5
- export const RPC_REQUEST = new Request ( 'https://api.node.glif.io/' )
4
+ export const RPC_URL = 'https://api.node.glif.io/'
5
+ export const RPC_AUTH = 'Bz8B9c8hKIp+/IyePpgORexkDDq+8c9atapgGuudtQ0='
Original file line number Diff line number Diff line change 1
- import { RPC_REQUEST } from './constants.js'
1
+ import { RPC_URL , RPC_AUTH } from './constants.js'
2
2
3
3
/**
4
4
* @param {string } minerId A miner actor id, e.g. `f0142637`
@@ -19,12 +19,12 @@ export async function getMinerPeerId (minerId) {
19
19
* @param {unknown[] } params
20
20
*/
21
21
async function rpc ( method , ...params ) {
22
- const req = new Request ( RPC_REQUEST , {
22
+ const req = new Request ( RPC_URL , {
23
23
method : 'POST' ,
24
24
headers : {
25
25
'content-type' : 'application/json' ,
26
26
accepts : 'application/json' ,
27
- authorization : ' Bearer Bz8B9c8hKIp+/IyePpgORexkDDq+8c9atapgGuudtQ0='
27
+ authorization : ` Bearer ${ RPC_AUTH } `
28
28
} ,
29
29
body : JSON . stringify ( {
30
30
jsonrpc : '2.0' ,
You can’t perform that action at this time.
0 commit comments