@snapshot-labs/snapshot.js 0.5.0 → 0.5.1
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/dist/snapshot.cjs.js +0 -4
- package/dist/snapshot.esm.js +0 -4
- package/dist/snapshot.min.js +3 -3
- package/package.json +1 -1
- package/src/utils.ts +0 -2
package/package.json
CHANGED
package/src/utils.ts
CHANGED
|
@@ -31,13 +31,11 @@ export const SNAPSHOT_SUBGRAPH_URL = delegationSubgraphs;
|
|
|
31
31
|
const ENS_RESOLVER_ABI = [
|
|
32
32
|
'function text(bytes32 node, string calldata key) external view returns (string memory)'
|
|
33
33
|
];
|
|
34
|
-
const SCORE_API_KEY = process?.env?.KEYCARD_SECRET || '';
|
|
35
34
|
|
|
36
35
|
const scoreApiHeaders = {
|
|
37
36
|
Accept: 'application/json',
|
|
38
37
|
'Content-Type': 'application/json'
|
|
39
38
|
};
|
|
40
|
-
if (SCORE_API_KEY) scoreApiHeaders['X-API-KEY'] = SCORE_API_KEY;
|
|
41
39
|
|
|
42
40
|
const ajv = new Ajv({ allErrors: true, allowUnionTypes: true, $data: true });
|
|
43
41
|
// @ts-ignore
|