@snapshot-labs/snapshot.js 0.11.32 → 0.11.34
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/index.d.ts +17 -0
- package/dist/schemas/index.d.ts +17 -0
- package/dist/sign/types.d.ts +3 -0
- package/dist/snapshot.cjs.js +72 -2
- package/dist/snapshot.esm.js +72 -2
- package/dist/snapshot.min.js +3 -3
- package/package.json +1 -1
- package/src/networks.json +45 -1
- package/src/schemas/space.json +1 -1
- package/src/schemas/statement.json +17 -0
- package/src/sign/hashedTypes.json +1 -0
- package/src/sign/types.ts +7 -1
package/dist/index.d.ts
CHANGED
|
@@ -593,6 +593,23 @@ declare const _default: {
|
|
|
593
593
|
title: string;
|
|
594
594
|
maxLength: number;
|
|
595
595
|
};
|
|
596
|
+
discourse: {
|
|
597
|
+
type: string;
|
|
598
|
+
title: string;
|
|
599
|
+
pattern: string;
|
|
600
|
+
maxLength: number;
|
|
601
|
+
minLength: number;
|
|
602
|
+
};
|
|
603
|
+
network: {
|
|
604
|
+
type: string;
|
|
605
|
+
title: string;
|
|
606
|
+
pattern: string;
|
|
607
|
+
maxLength: number;
|
|
608
|
+
};
|
|
609
|
+
status: {
|
|
610
|
+
enum: string[];
|
|
611
|
+
title: string;
|
|
612
|
+
};
|
|
596
613
|
};
|
|
597
614
|
required: string[];
|
|
598
615
|
additionalProperties: boolean;
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -589,6 +589,23 @@ declare const _default: {
|
|
|
589
589
|
title: string;
|
|
590
590
|
maxLength: number;
|
|
591
591
|
};
|
|
592
|
+
discourse: {
|
|
593
|
+
type: string;
|
|
594
|
+
title: string;
|
|
595
|
+
pattern: string;
|
|
596
|
+
maxLength: number;
|
|
597
|
+
minLength: number;
|
|
598
|
+
};
|
|
599
|
+
network: {
|
|
600
|
+
type: string;
|
|
601
|
+
title: string;
|
|
602
|
+
pattern: string;
|
|
603
|
+
maxLength: number;
|
|
604
|
+
};
|
|
605
|
+
status: {
|
|
606
|
+
enum: string[];
|
|
607
|
+
title: string;
|
|
608
|
+
};
|
|
592
609
|
};
|
|
593
610
|
required: string[];
|
|
594
611
|
additionalProperties: boolean;
|
package/dist/sign/types.d.ts
CHANGED
package/dist/snapshot.cjs.js
CHANGED
|
@@ -300,7 +300,10 @@ var statementTypes = {
|
|
|
300
300
|
{ name: 'timestamp', type: 'uint64' },
|
|
301
301
|
{ name: 'space', type: 'string' },
|
|
302
302
|
{ name: 'about', type: 'string' },
|
|
303
|
-
{ name: 'statement', type: 'string' }
|
|
303
|
+
{ name: 'statement', type: 'string' },
|
|
304
|
+
{ name: 'discourse', type: 'string' },
|
|
305
|
+
{ name: 'status', type: 'string' },
|
|
306
|
+
{ name: 'network', type: 'string' }
|
|
304
307
|
]
|
|
305
308
|
};
|
|
306
309
|
var aliasTypes = {
|
|
@@ -868,7 +871,7 @@ var definitions = {
|
|
|
868
871
|
title: "Delegation API",
|
|
869
872
|
description: "The URL of your delegation API (e.g a subgraph)",
|
|
870
873
|
examples: [
|
|
871
|
-
"https://
|
|
874
|
+
"https://subgrapher.snapshot.org/subgraph/arbitrum/FTzC6VrZd8JhJgWfTJnwWgH1Z1dS3GxaosKkRbCqkZAZ"
|
|
872
875
|
]
|
|
873
876
|
}
|
|
874
877
|
},
|
|
@@ -1321,6 +1324,26 @@ var definitions$5 = {
|
|
|
1321
1324
|
format: "long",
|
|
1322
1325
|
title: "Statement",
|
|
1323
1326
|
maxLength: 10000
|
|
1327
|
+
},
|
|
1328
|
+
discourse: {
|
|
1329
|
+
type: "string",
|
|
1330
|
+
title: "discourse",
|
|
1331
|
+
pattern: "^[A-Za-z0-9-_.]*$",
|
|
1332
|
+
maxLength: 30,
|
|
1333
|
+
minLength: 3
|
|
1334
|
+
},
|
|
1335
|
+
network: {
|
|
1336
|
+
type: "string",
|
|
1337
|
+
title: "network",
|
|
1338
|
+
pattern: "^[a-z0-9-]*$",
|
|
1339
|
+
maxLength: 24
|
|
1340
|
+
},
|
|
1341
|
+
status: {
|
|
1342
|
+
"enum": [
|
|
1343
|
+
"active",
|
|
1344
|
+
"inactive"
|
|
1345
|
+
],
|
|
1346
|
+
title: "status"
|
|
1324
1347
|
}
|
|
1325
1348
|
},
|
|
1326
1349
|
required: [
|
|
@@ -2450,6 +2473,22 @@ var networks = {
|
|
|
2450
2473
|
},
|
|
2451
2474
|
start: 859041,
|
|
2452
2475
|
logo: "ipfs://QmeGbNTU2Jqwg8qLTMGW8n8HSi2VdgCncAaeGzLx6gYnD7"
|
|
2476
|
+
},
|
|
2477
|
+
"1328": {
|
|
2478
|
+
key: "1328",
|
|
2479
|
+
name: "Sei atlantic testnet",
|
|
2480
|
+
shortName: "testnet",
|
|
2481
|
+
chainId: 1328,
|
|
2482
|
+
network: "testnet",
|
|
2483
|
+
multicall: "0xc454132B017b55b427f45078E335549A7124f5f7",
|
|
2484
|
+
rpc: [
|
|
2485
|
+
],
|
|
2486
|
+
explorer: {
|
|
2487
|
+
url: "https://seitrace.com"
|
|
2488
|
+
},
|
|
2489
|
+
start: 96978658,
|
|
2490
|
+
logo: "ipfs://bafkreiammyt7uztbztqbcqv4bydnczsh2fqmnjf6jxj4xnskzzl6sjrigq",
|
|
2491
|
+
testnet: true
|
|
2453
2492
|
},
|
|
2454
2493
|
"1329": {
|
|
2455
2494
|
key: "1329",
|
|
@@ -3127,6 +3166,37 @@ var networks = {
|
|
|
3127
3166
|
start: 1463669,
|
|
3128
3167
|
logo: "ipfs://bafkreiammyt7uztbztqbcqv4bydnczsh2fqmnjf6jxj4xnskzzl6sjrigq",
|
|
3129
3168
|
testnet: true
|
|
3169
|
+
},
|
|
3170
|
+
"810180": {
|
|
3171
|
+
key: "810180",
|
|
3172
|
+
name: "zkLink Nova",
|
|
3173
|
+
shortName: "zlink",
|
|
3174
|
+
chainId: 810180,
|
|
3175
|
+
network: "mainnet",
|
|
3176
|
+
multicall: "0x825267E0fA5CAe92F98540828a54198dcB3Eaeb5",
|
|
3177
|
+
rpc: [
|
|
3178
|
+
],
|
|
3179
|
+
explorer: {
|
|
3180
|
+
url: "https://explorer.zklink.io"
|
|
3181
|
+
},
|
|
3182
|
+
start: 146055,
|
|
3183
|
+
logo: "ipfs://bafkreic6c3iems5235qapyhyrygha7akqrsfact2nok3y2uhljpzxrdu74"
|
|
3184
|
+
},
|
|
3185
|
+
"810181": {
|
|
3186
|
+
key: "810181",
|
|
3187
|
+
name: "zkLink Nova Sepolia",
|
|
3188
|
+
shortName: "testnet",
|
|
3189
|
+
chainId: 810181,
|
|
3190
|
+
network: "testnet",
|
|
3191
|
+
multicall: "0x97148F8fDdd9A1620f72EC1Bb2932916623d9da5",
|
|
3192
|
+
rpc: [
|
|
3193
|
+
],
|
|
3194
|
+
explorer: {
|
|
3195
|
+
url: "https://sepolia.explorer.zklink.io/"
|
|
3196
|
+
},
|
|
3197
|
+
start: 43723,
|
|
3198
|
+
logo: "ipfs://bafkreic6c3iems5235qapyhyrygha7akqrsfact2nok3y2uhljpzxrdu74",
|
|
3199
|
+
testnet: true
|
|
3130
3200
|
},
|
|
3131
3201
|
"11155111": {
|
|
3132
3202
|
key: "11155111",
|
package/dist/snapshot.esm.js
CHANGED
|
@@ -290,7 +290,10 @@ var statementTypes = {
|
|
|
290
290
|
{ name: 'timestamp', type: 'uint64' },
|
|
291
291
|
{ name: 'space', type: 'string' },
|
|
292
292
|
{ name: 'about', type: 'string' },
|
|
293
|
-
{ name: 'statement', type: 'string' }
|
|
293
|
+
{ name: 'statement', type: 'string' },
|
|
294
|
+
{ name: 'discourse', type: 'string' },
|
|
295
|
+
{ name: 'status', type: 'string' },
|
|
296
|
+
{ name: 'network', type: 'string' }
|
|
294
297
|
]
|
|
295
298
|
};
|
|
296
299
|
var aliasTypes = {
|
|
@@ -858,7 +861,7 @@ var definitions = {
|
|
|
858
861
|
title: "Delegation API",
|
|
859
862
|
description: "The URL of your delegation API (e.g a subgraph)",
|
|
860
863
|
examples: [
|
|
861
|
-
"https://
|
|
864
|
+
"https://subgrapher.snapshot.org/subgraph/arbitrum/FTzC6VrZd8JhJgWfTJnwWgH1Z1dS3GxaosKkRbCqkZAZ"
|
|
862
865
|
]
|
|
863
866
|
}
|
|
864
867
|
},
|
|
@@ -1311,6 +1314,26 @@ var definitions$5 = {
|
|
|
1311
1314
|
format: "long",
|
|
1312
1315
|
title: "Statement",
|
|
1313
1316
|
maxLength: 10000
|
|
1317
|
+
},
|
|
1318
|
+
discourse: {
|
|
1319
|
+
type: "string",
|
|
1320
|
+
title: "discourse",
|
|
1321
|
+
pattern: "^[A-Za-z0-9-_.]*$",
|
|
1322
|
+
maxLength: 30,
|
|
1323
|
+
minLength: 3
|
|
1324
|
+
},
|
|
1325
|
+
network: {
|
|
1326
|
+
type: "string",
|
|
1327
|
+
title: "network",
|
|
1328
|
+
pattern: "^[a-z0-9-]*$",
|
|
1329
|
+
maxLength: 24
|
|
1330
|
+
},
|
|
1331
|
+
status: {
|
|
1332
|
+
"enum": [
|
|
1333
|
+
"active",
|
|
1334
|
+
"inactive"
|
|
1335
|
+
],
|
|
1336
|
+
title: "status"
|
|
1314
1337
|
}
|
|
1315
1338
|
},
|
|
1316
1339
|
required: [
|
|
@@ -2440,6 +2463,22 @@ var networks = {
|
|
|
2440
2463
|
},
|
|
2441
2464
|
start: 859041,
|
|
2442
2465
|
logo: "ipfs://QmeGbNTU2Jqwg8qLTMGW8n8HSi2VdgCncAaeGzLx6gYnD7"
|
|
2466
|
+
},
|
|
2467
|
+
"1328": {
|
|
2468
|
+
key: "1328",
|
|
2469
|
+
name: "Sei atlantic testnet",
|
|
2470
|
+
shortName: "testnet",
|
|
2471
|
+
chainId: 1328,
|
|
2472
|
+
network: "testnet",
|
|
2473
|
+
multicall: "0xc454132B017b55b427f45078E335549A7124f5f7",
|
|
2474
|
+
rpc: [
|
|
2475
|
+
],
|
|
2476
|
+
explorer: {
|
|
2477
|
+
url: "https://seitrace.com"
|
|
2478
|
+
},
|
|
2479
|
+
start: 96978658,
|
|
2480
|
+
logo: "ipfs://bafkreiammyt7uztbztqbcqv4bydnczsh2fqmnjf6jxj4xnskzzl6sjrigq",
|
|
2481
|
+
testnet: true
|
|
2443
2482
|
},
|
|
2444
2483
|
"1329": {
|
|
2445
2484
|
key: "1329",
|
|
@@ -3117,6 +3156,37 @@ var networks = {
|
|
|
3117
3156
|
start: 1463669,
|
|
3118
3157
|
logo: "ipfs://bafkreiammyt7uztbztqbcqv4bydnczsh2fqmnjf6jxj4xnskzzl6sjrigq",
|
|
3119
3158
|
testnet: true
|
|
3159
|
+
},
|
|
3160
|
+
"810180": {
|
|
3161
|
+
key: "810180",
|
|
3162
|
+
name: "zkLink Nova",
|
|
3163
|
+
shortName: "zlink",
|
|
3164
|
+
chainId: 810180,
|
|
3165
|
+
network: "mainnet",
|
|
3166
|
+
multicall: "0x825267E0fA5CAe92F98540828a54198dcB3Eaeb5",
|
|
3167
|
+
rpc: [
|
|
3168
|
+
],
|
|
3169
|
+
explorer: {
|
|
3170
|
+
url: "https://explorer.zklink.io"
|
|
3171
|
+
},
|
|
3172
|
+
start: 146055,
|
|
3173
|
+
logo: "ipfs://bafkreic6c3iems5235qapyhyrygha7akqrsfact2nok3y2uhljpzxrdu74"
|
|
3174
|
+
},
|
|
3175
|
+
"810181": {
|
|
3176
|
+
key: "810181",
|
|
3177
|
+
name: "zkLink Nova Sepolia",
|
|
3178
|
+
shortName: "testnet",
|
|
3179
|
+
chainId: 810181,
|
|
3180
|
+
network: "testnet",
|
|
3181
|
+
multicall: "0x97148F8fDdd9A1620f72EC1Bb2932916623d9da5",
|
|
3182
|
+
rpc: [
|
|
3183
|
+
],
|
|
3184
|
+
explorer: {
|
|
3185
|
+
url: "https://sepolia.explorer.zklink.io/"
|
|
3186
|
+
},
|
|
3187
|
+
start: 43723,
|
|
3188
|
+
logo: "ipfs://bafkreic6c3iems5235qapyhyrygha7akqrsfact2nok3y2uhljpzxrdu74",
|
|
3189
|
+
testnet: true
|
|
3120
3190
|
},
|
|
3121
3191
|
"11155111": {
|
|
3122
3192
|
key: "11155111",
|