@snapshot-labs/snapshot.js 0.12.59 → 0.12.61

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.
@@ -1,9 +1,9 @@
1
- import type { StarkNetType } from 'starknet';
1
+ import type { StarknetType } from 'starknet';
2
2
  import type { TypedDataField } from '@ethersproject/abstract-signer';
3
3
  import type { ProviderOptions } from '../utils/provider';
4
4
  export type SignaturePayload = {
5
5
  domain: Record<string, string | number>;
6
- types: Record<string, StarkNetType[] | TypedDataField[]>;
6
+ types: Record<string, StarknetType[] | TypedDataField[]>;
7
7
  primaryType?: string;
8
8
  message: Record<string, any>;
9
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snapshot-labs/snapshot.js",
3
- "version": "0.12.59",
3
+ "version": "0.12.61",
4
4
  "repository": "snapshot-labs/snapshot.js",
5
5
  "license": "MIT",
6
6
  "main": "dist/snapshot.cjs.js",
@@ -24,10 +24,11 @@
24
24
  "cross-fetch": "^3.1.6",
25
25
  "json-to-graphql-query": "^2.2.4",
26
26
  "lodash.set": "^4.3.2",
27
- "starknet": "^5.19.3"
27
+ "starknet": "^6.11.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@rollup/plugin-commonjs": "^18.1.0",
31
+ "@rollup/plugin-inject": "^5.0.5",
31
32
  "@rollup/plugin-node-resolve": "^11.0.1",
32
33
  "@types/node": "^13.9.5",
33
34
  "@typescript-eslint/eslint-plugin": "^4.28.2",
@@ -42,7 +43,6 @@
42
43
  "rollup-plugin-filesize": "^9.1.2",
43
44
  "rollup-plugin-json": "^4.0.0",
44
45
  "rollup-plugin-node-builtins": "^2.1.2",
45
- "rollup-plugin-node-globals": "^1.4.0",
46
46
  "rollup-plugin-string": "^3.0.0",
47
47
  "rollup-plugin-terser": "^7.0.0",
48
48
  "rollup-plugin-typescript2": "^0.27.0",
package/src/networks.json CHANGED
@@ -1214,6 +1214,21 @@
1214
1214
  "start": 370457,
1215
1215
  "logo": "ipfs://QmWkhZYhReYyaa5pQXj32hEGxoRcBqarFMcfQScELmjYQj"
1216
1216
  },
1217
+ "6900": {
1218
+ "key": "6900",
1219
+ "name": "Animechain Testnet",
1220
+ "shortName": "testnet",
1221
+ "chainId": 6900,
1222
+ "network": "testnet",
1223
+ "multicall": "0xcA11bde05977b3631167028862bE2a173976CA11",
1224
+ "rpc": [],
1225
+ "explorer": {
1226
+ "url": "https://explorer-animechain-testnet-i8yja6a1a0.t.conduit.xyz"
1227
+ },
1228
+ "start": 1666749,
1229
+ "logo": "ipfs://bafkreihm7dy6jzkd3nh6mokq4vshuzwkoeyjmbb3qkskn77rt5iufn7egi",
1230
+ "testnet": true
1231
+ },
1217
1232
  "7332": {
1218
1233
  "key": "7332",
1219
1234
  "name": "Horizen EON",
@@ -1650,6 +1665,20 @@
1650
1665
  "start": 42,
1651
1666
  "logo": "ipfs://bafkreihtyzolub3sejuwc32hpdpjnt7ksowaguni2yuho3kyihhcqrtqce"
1652
1667
  },
1668
+ "69000": {
1669
+ "key": "69000",
1670
+ "name": "Animechain",
1671
+ "shortName": "mainnet",
1672
+ "chainId": 69000,
1673
+ "network": "mainnet",
1674
+ "multicall": "0xcA11bde05977b3631167028862bE2a173976CA11",
1675
+ "rpc": [],
1676
+ "explorer": {
1677
+ "url": "https://explorer-animechain-39xf6m45e3.t.conduit.xyz"
1678
+ },
1679
+ "start": 23482,
1680
+ "logo": "ipfs://bafkreihm7dy6jzkd3nh6mokq4vshuzwkoeyjmbb3qkskn77rt5iufn7egi"
1681
+ },
1653
1682
  "80001": {
1654
1683
  "key": "80001",
1655
1684
  "name": "Polygon Mumbai",
@@ -1,13 +1,13 @@
1
1
  import * as starknet from './starknet';
2
2
  import * as evm from './evm';
3
3
  import { isEvmAddress, isStarknetAddress } from '../utils';
4
- import type { StarkNetType } from 'starknet';
4
+ import type { StarknetType } from 'starknet';
5
5
  import type { TypedDataField } from '@ethersproject/abstract-signer';
6
6
  import type { ProviderOptions } from '../utils/provider';
7
7
 
8
8
  export type SignaturePayload = {
9
9
  domain: Record<string, string | number>;
10
- types: Record<string, StarkNetType[] | TypedDataField[]>;
10
+ types: Record<string, StarknetType[] | TypedDataField[]>;
11
11
  primaryType?: string;
12
12
  message: Record<string, any>;
13
13
  };