@snapshot-labs/snapshot.js 0.12.0-beta.3 → 0.12.0-beta.5

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 DELETED
@@ -1,695 +0,0 @@
1
- import Client712 from './sign';
2
- declare const _default: {
3
- Client: typeof Client712;
4
- Client712: typeof Client712;
5
- schemas: {
6
- space: {
7
- title: string;
8
- type: string;
9
- properties: {
10
- name: {
11
- type: string;
12
- title: string;
13
- minLength: number;
14
- maxLength: number;
15
- };
16
- private: {
17
- type: string;
18
- };
19
- about: {
20
- type: string;
21
- title: string;
22
- maxLength: number;
23
- };
24
- guidelines: {
25
- type: string;
26
- format: string;
27
- title: string;
28
- maxLength: number;
29
- };
30
- template: {
31
- type: string;
32
- title: string;
33
- maxLength: number;
34
- };
35
- terms: {
36
- type: string;
37
- title: string;
38
- format: string;
39
- maxLength: number;
40
- };
41
- avatar: {
42
- type: string;
43
- title: string;
44
- format: string;
45
- maxLength: number;
46
- };
47
- location: {
48
- type: string;
49
- title: string;
50
- maxLength: number;
51
- };
52
- website: {
53
- type: string;
54
- title: string;
55
- format: string;
56
- maxLength: number;
57
- };
58
- twitter: {
59
- type: string;
60
- title: string;
61
- pattern: string;
62
- maxLength: number;
63
- };
64
- coingecko: {
65
- type: string;
66
- title: string;
67
- pattern: string;
68
- maxLength: number;
69
- };
70
- github: {
71
- type: string;
72
- title: string;
73
- pattern: string;
74
- maxLength: number;
75
- };
76
- email: {
77
- type: string;
78
- title: string;
79
- maxLength: number;
80
- };
81
- network: {
82
- type: string;
83
- snapshotNetwork: boolean;
84
- title: string;
85
- minLength: number;
86
- maxLength: number;
87
- };
88
- symbol: {
89
- type: string;
90
- title: string;
91
- minLength: number;
92
- maxLength: number;
93
- };
94
- skin: {
95
- type: string;
96
- title: string;
97
- maxLength: number;
98
- };
99
- domain: {
100
- type: string;
101
- title: string;
102
- maxLength: number;
103
- };
104
- strategies: {
105
- type: string;
106
- minItems: number;
107
- maxItemsWithSpaceType: {
108
- default: number;
109
- turbo: number;
110
- };
111
- uniqueItems: boolean;
112
- items: {
113
- type: string;
114
- properties: {
115
- name: {
116
- type: string;
117
- maxLength: number;
118
- title: string;
119
- };
120
- network: {
121
- type: string;
122
- maxLength: number;
123
- title: string;
124
- snapshotNetwork: boolean;
125
- };
126
- params: {
127
- type: string;
128
- title: string;
129
- };
130
- };
131
- required: string[];
132
- additionalProperties: boolean;
133
- };
134
- title: string;
135
- };
136
- members: {
137
- type: string;
138
- maxItems: number;
139
- items: {
140
- type: string;
141
- pattern: string;
142
- minLength: number;
143
- maxLength: number;
144
- };
145
- title: string;
146
- uniqueItems: boolean;
147
- };
148
- admins: {
149
- type: string;
150
- maxItems: number;
151
- items: {
152
- type: string;
153
- pattern: string;
154
- minLength: number;
155
- maxLength: number;
156
- };
157
- title: string;
158
- uniqueItems: boolean;
159
- };
160
- moderators: {
161
- type: string;
162
- maxItems: number;
163
- items: {
164
- type: string;
165
- pattern: string;
166
- minLength: number;
167
- maxLength: number;
168
- };
169
- title: string;
170
- uniqueItems: boolean;
171
- };
172
- filters: {
173
- type: string;
174
- properties: {
175
- defaultTab: {
176
- type: string;
177
- };
178
- minScore: {
179
- type: string;
180
- minimum: number;
181
- };
182
- onlyMembers: {
183
- type: string;
184
- };
185
- invalids: {
186
- type: string;
187
- items: {
188
- type: string;
189
- maxLength: number;
190
- };
191
- title: string;
192
- };
193
- };
194
- additionalProperties: boolean;
195
- };
196
- validation: {
197
- type: string;
198
- properties: {
199
- name: {
200
- type: string;
201
- maxLength: number;
202
- title: string;
203
- };
204
- params: {
205
- type: string;
206
- title: string;
207
- };
208
- };
209
- required: string[];
210
- additionalProperties: boolean;
211
- };
212
- voteValidation: {
213
- type: string;
214
- properties: {
215
- name: {
216
- type: string;
217
- maxLength: number;
218
- title: string;
219
- };
220
- params: {
221
- type: string;
222
- title: string;
223
- };
224
- };
225
- required: string[];
226
- additionalProperties: boolean;
227
- };
228
- followValidation: {
229
- type: string;
230
- properties: {
231
- name: {
232
- type: string;
233
- maxLength: number;
234
- title: string;
235
- };
236
- params: {
237
- type: string;
238
- title: string;
239
- };
240
- };
241
- required: string[];
242
- additionalProperties: boolean;
243
- };
244
- delegationPortal: {
245
- type: string;
246
- properties: {
247
- delegationType: {
248
- type: string;
249
- title: string;
250
- description: string;
251
- anyOf: {
252
- const: string;
253
- title: string;
254
- }[];
255
- };
256
- delegationContract: {
257
- type: string;
258
- format: string;
259
- title: string;
260
- description: string;
261
- examples: string[];
262
- };
263
- delegationApi: {
264
- type: string;
265
- format: string;
266
- title: string;
267
- description: string;
268
- examples: string[];
269
- };
270
- };
271
- required: string[];
272
- additionalProperties: boolean;
273
- };
274
- allowAlias: {
275
- type: string;
276
- };
277
- plugins: {
278
- type: string;
279
- };
280
- voting: {
281
- type: string;
282
- properties: {
283
- delay: {
284
- type: string;
285
- minimum: number;
286
- maximum: number;
287
- errorMessage: {
288
- maximum: string;
289
- };
290
- };
291
- period: {
292
- type: string;
293
- minimum: number;
294
- maximum: number;
295
- errorMessage: {
296
- maximum: string;
297
- };
298
- };
299
- type: {
300
- type: string;
301
- title: string;
302
- };
303
- quorum: {
304
- type: string;
305
- minimum: number;
306
- };
307
- quorumType: {
308
- type: string;
309
- enum: string[];
310
- };
311
- blind: {
312
- type: string;
313
- };
314
- hideAbstain: {
315
- type: string;
316
- };
317
- aliased: {
318
- type: string;
319
- };
320
- privacy: {
321
- type: string;
322
- enum: string[];
323
- };
324
- };
325
- additionalProperties: boolean;
326
- };
327
- categories: {
328
- type: string;
329
- maxItems: number;
330
- items: {
331
- type: string;
332
- enum: string[];
333
- };
334
- };
335
- treasuries: {
336
- type: string;
337
- maxItems: number;
338
- items: {
339
- type: string;
340
- properties: {
341
- name: {
342
- type: string;
343
- title: string;
344
- examples: string[];
345
- minLength: number;
346
- maxLength: number;
347
- };
348
- address: {
349
- type: string;
350
- title: string;
351
- examples: string[];
352
- pattern: string;
353
- minLength: number;
354
- maxLength: number;
355
- };
356
- network: {
357
- type: string;
358
- snapshotNetwork: boolean;
359
- title: string;
360
- maxLength: number;
361
- };
362
- };
363
- required: string[];
364
- additionalProperties: boolean;
365
- };
366
- };
367
- parent: {
368
- type: string;
369
- title: string;
370
- };
371
- children: {
372
- type: string;
373
- maxItems: number;
374
- title: string;
375
- items: {
376
- type: string;
377
- };
378
- uniqueItems: boolean;
379
- };
380
- boost: {
381
- type: string;
382
- properties: {
383
- enabled: {
384
- type: string;
385
- };
386
- bribeEnabled: {
387
- type: string;
388
- };
389
- };
390
- required: string[];
391
- additionalProperties: boolean;
392
- };
393
- };
394
- required: string[];
395
- additionalProperties: boolean;
396
- };
397
- proposal: {
398
- title: string;
399
- type: string;
400
- properties: {
401
- name: {
402
- type: string;
403
- title: string;
404
- minLength: number;
405
- maxLength: number;
406
- };
407
- body: {
408
- type: string;
409
- title: string;
410
- minLength: number;
411
- maxLengthWithSpaceType: {
412
- default: number;
413
- turbo: number;
414
- };
415
- };
416
- discussion: {
417
- type: string;
418
- format: string;
419
- title: string;
420
- maxLength: number;
421
- };
422
- choices: {
423
- type: string;
424
- title: string;
425
- minItems: number;
426
- maxItems: number;
427
- };
428
- type: {
429
- type: string;
430
- enum: string[];
431
- };
432
- snapshot: {
433
- type: string;
434
- title: string;
435
- };
436
- start: {
437
- type: string;
438
- title: string;
439
- minimum: number;
440
- maximum: number;
441
- };
442
- end: {
443
- type: string;
444
- title: string;
445
- minimum: number;
446
- maximum: number;
447
- };
448
- metadata: {
449
- type: string;
450
- title: string;
451
- };
452
- app: {
453
- type: string;
454
- title: string;
455
- maxLength: number;
456
- };
457
- };
458
- required: string[];
459
- additionalProperties: boolean;
460
- };
461
- updateProposal: {
462
- title: string;
463
- type: string;
464
- properties: {
465
- proposal: {
466
- type: string;
467
- title: string;
468
- };
469
- name: {
470
- type: string;
471
- title: string;
472
- minLength: number;
473
- maxLength: number;
474
- };
475
- body: {
476
- type: string;
477
- title: string;
478
- minLength: number;
479
- maxLengthWithSpaceType: {
480
- default: number;
481
- turbo: number;
482
- };
483
- };
484
- discussion: {
485
- type: string;
486
- format: string;
487
- title: string;
488
- maxLength: number;
489
- };
490
- choices: {
491
- type: string;
492
- title: string;
493
- minItems: number;
494
- maxItems: number;
495
- };
496
- type: {
497
- enum: string[];
498
- };
499
- metadata: {
500
- type: string;
501
- title: string;
502
- };
503
- };
504
- required: string[];
505
- additionalProperties: boolean;
506
- };
507
- vote: {
508
- title: string;
509
- type: string;
510
- properties: {
511
- proposal: {
512
- type: string;
513
- title: string;
514
- };
515
- choice: {
516
- type: string[];
517
- title: string;
518
- };
519
- metadata: {
520
- type: string;
521
- title: string;
522
- };
523
- reason: {
524
- type: string;
525
- title: string;
526
- maxLength: number;
527
- };
528
- app: {
529
- type: string;
530
- title: string;
531
- maxLength: number;
532
- };
533
- };
534
- required: string[];
535
- additionalProperties: boolean;
536
- };
537
- profile: {
538
- title: string;
539
- type: string;
540
- properties: {
541
- name: {
542
- type: string;
543
- title: string;
544
- maxLength: number;
545
- };
546
- about: {
547
- type: string;
548
- title: string;
549
- maxLength: number;
550
- };
551
- avatar: {
552
- type: string;
553
- title: string;
554
- format: string;
555
- maxLength: number;
556
- };
557
- cover: {
558
- type: string;
559
- title: string;
560
- format: string;
561
- maxLength: number;
562
- };
563
- twitter: {
564
- type: string;
565
- title: string;
566
- pattern: string;
567
- maxLength: number;
568
- };
569
- github: {
570
- type: string;
571
- title: string;
572
- pattern: string;
573
- maxLength: number;
574
- };
575
- };
576
- required: never[];
577
- additionalProperties: boolean;
578
- };
579
- statement: {
580
- title: string;
581
- type: string;
582
- properties: {
583
- about: {
584
- type: string;
585
- format: string;
586
- title: string;
587
- minLength: number;
588
- maxLength: number;
589
- };
590
- statement: {
591
- type: string;
592
- format: string;
593
- title: string;
594
- maxLength: number;
595
- };
596
- };
597
- required: string[];
598
- additionalProperties: boolean;
599
- };
600
- zodiac: {
601
- title: string;
602
- type: string;
603
- properties: {
604
- safes: {
605
- title: string;
606
- type: string;
607
- maxItems: number;
608
- items: {
609
- type: string;
610
- properties: {
611
- network: {
612
- title: string;
613
- type: string;
614
- snapshotNetwork: boolean;
615
- };
616
- multisend: {
617
- title: string;
618
- type: string;
619
- };
620
- realityAddress: {
621
- title: string;
622
- type: string;
623
- };
624
- umaAddress: {
625
- title: string;
626
- type: string;
627
- };
628
- };
629
- additionalProperties: boolean;
630
- };
631
- };
632
- additionalProperties: boolean;
633
- };
634
- };
635
- alias: {
636
- title: string;
637
- type: string;
638
- properties: {
639
- alias: {
640
- type: string;
641
- format: string;
642
- };
643
- };
644
- required: string[];
645
- additionalProperties: boolean;
646
- };
647
- };
648
- utils: {
649
- call: typeof import("./utils").call;
650
- multicall: typeof import("./utils").multicall;
651
- subgraphRequest: typeof import("./utils").subgraphRequest;
652
- ipfsGet: typeof import("./utils").ipfsGet;
653
- getUrl: typeof import("./utils").getUrl;
654
- getJSON: typeof import("./utils").getJSON;
655
- sendTransaction: typeof import("./utils").sendTransaction;
656
- getScores: typeof import("./utils").getScores;
657
- getVp: typeof import("./utils").getVp;
658
- validateSchema: typeof import("./utils").validateSchema;
659
- getEnsTextRecord: typeof import("./utils").getEnsTextRecord;
660
- getSpaceUri: typeof import("./utils").getSpaceUri;
661
- getEnsOwner: typeof import("./utils").getEnsOwner;
662
- getSpaceController: typeof import("./utils").getSpaceController;
663
- getDelegatesBySpace: typeof import("./utils").getDelegatesBySpace;
664
- clone: typeof import("./utils").clone;
665
- sleep: typeof import("./utils").sleep;
666
- getNumberWithOrdinal: typeof import("./utils").getNumberWithOrdinal;
667
- voting: {
668
- 'single-choice': typeof import("./voting/singleChoice").default;
669
- approval: typeof import("./voting/approval").default;
670
- quadratic: typeof import("./voting/quadratic").default;
671
- 'ranked-choice': typeof import("./voting/rankedChoice").default;
672
- weighted: typeof import("./voting/weighted").default;
673
- basic: typeof import("./voting/singleChoice").default;
674
- };
675
- getProvider: typeof import("./utils/provider").default;
676
- signMessage: typeof import("./utils/web3").signMessage;
677
- getBlockNumber: typeof import("./utils/web3").getBlockNumber;
678
- Multicaller: typeof import("./utils/multicaller").default;
679
- getSnapshots: typeof import("./utils/blockfinder").getSnapshots;
680
- getHash: typeof import("./sign/utils").getHash;
681
- verify: typeof import("./sign/utils").verify;
682
- validate: typeof import("./utils").validate;
683
- SNAPSHOT_SUBGRAPH_URL: {
684
- 1: string;
685
- 10: string;
686
- 56: string;
687
- 100: string;
688
- 137: string;
689
- 250: string;
690
- 42161: string;
691
- 11155111: string;
692
- };
693
- };
694
- };
695
- export default _default;