@snapshot-labs/snapshot.js 0.12.0-beta.0 → 0.12.0-beta.2
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/README.md +2 -2
- package/dist/index.d.ts +20 -2
- package/dist/schemas/index.d.ts +19 -1
- package/dist/sign/types.d.ts +2 -0
- package/dist/snapshot.cjs.js +1851 -1929
- package/dist/snapshot.esm.js +1852 -1930
- package/dist/snapshot.min.js +16 -5
- package/dist/src/index.d.ts +725 -0
- package/dist/src/schemas/index.d.ts +671 -0
- package/dist/src/sign/index.d.ts +29 -0
- package/dist/src/sign/types.d.ts +227 -0
- package/dist/src/utils/blockfinder.d.ts +1 -0
- package/dist/src/utils/delegation.d.ts +18 -0
- package/dist/src/utils/multicaller.d.ts +12 -0
- package/dist/src/utils/provider.d.ts +5 -0
- package/dist/src/utils/web3.d.ts +2 -0
- package/dist/src/utils.d.ts +91 -0
- package/dist/src/verify/evm.d.ts +4 -0
- package/dist/src/verify/evm.spec.d.ts +1 -0
- package/dist/src/verify/index.d.ts +11 -0
- package/dist/src/verify/index.spec.d.ts +1 -0
- package/dist/src/verify/starknet.d.ts +6 -0
- package/dist/src/verify/starknet.spec.d.ts +1 -0
- package/dist/src/voting/approval.d.ts +22 -0
- package/dist/src/voting/index.d.ts +14 -0
- package/dist/src/voting/quadratic.d.ts +20 -0
- package/dist/src/voting/rankedChoice.d.ts +18 -0
- package/dist/src/voting/singleChoice.d.ts +18 -0
- package/dist/src/voting/types.d.ts +35 -0
- package/dist/src/voting/weighted.d.ts +26 -0
- package/dist/utils/delegation.d.ts +1 -1
- package/dist/utils.d.ts +3 -2
- package/package.json +6 -3
- package/src/delegationSubgraphs.json +8 -8
- package/src/gateways.json +1 -2
- package/src/networks.json +222 -60
- package/src/schemas/profile.json +30 -0
- package/src/schemas/proposal.json +1 -1
- package/src/schemas/space.json +8 -7
- package/src/schemas/statement.json +17 -2
- package/src/schemas/vote.json +1 -1
- package/src/sign/hashedTypes.json +8 -1
- package/src/sign/index.ts +8 -6
- package/src/sign/types.ts +11 -1
- package/src/utils/provider.ts +8 -2
- package/src/utils/web3.ts +1 -1
- package/src/utils.spec.js +86 -31
- package/src/utils.ts +111 -38
- package/src/verify/evm.spec.ts +32 -0
- package/src/verify/evm.ts +82 -0
- package/src/verify/index.spec.ts +84 -0
- package/src/verify/index.ts +41 -0
- package/src/verify/starknet.spec.ts +55 -0
- package/src/verify/starknet.ts +82 -0
- package/src/sign/eip1271.ts +0 -55
- package/src/sign/utils.ts +0 -27
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -303,7 +303,6 @@ declare const _default: {
|
|
|
303
303
|
quorum: {
|
|
304
304
|
type: string;
|
|
305
305
|
minimum: number;
|
|
306
|
-
optimisticMinimum: number;
|
|
307
306
|
};
|
|
308
307
|
quorumType: {
|
|
309
308
|
type: string;
|
|
@@ -376,6 +375,7 @@ declare const _default: {
|
|
|
376
375
|
items: {
|
|
377
376
|
type: string;
|
|
378
377
|
};
|
|
378
|
+
uniqueItems: boolean;
|
|
379
379
|
};
|
|
380
380
|
boost: {
|
|
381
381
|
type: string;
|
|
@@ -554,6 +554,24 @@ declare const _default: {
|
|
|
554
554
|
format: string;
|
|
555
555
|
maxLength: number;
|
|
556
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
|
+
};
|
|
557
575
|
};
|
|
558
576
|
required: never[];
|
|
559
577
|
additionalProperties: boolean;
|
|
@@ -664,13 +682,13 @@ declare const _default: {
|
|
|
664
682
|
validate: typeof import("./utils").validate;
|
|
665
683
|
SNAPSHOT_SUBGRAPH_URL: {
|
|
666
684
|
1: string;
|
|
667
|
-
5: string;
|
|
668
685
|
10: string;
|
|
669
686
|
56: string;
|
|
670
687
|
100: string;
|
|
671
688
|
137: string;
|
|
672
689
|
250: string;
|
|
673
690
|
42161: string;
|
|
691
|
+
11155111: string;
|
|
674
692
|
};
|
|
675
693
|
};
|
|
676
694
|
};
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -299,7 +299,6 @@ declare const _default: {
|
|
|
299
299
|
quorum: {
|
|
300
300
|
type: string;
|
|
301
301
|
minimum: number;
|
|
302
|
-
optimisticMinimum: number;
|
|
303
302
|
};
|
|
304
303
|
quorumType: {
|
|
305
304
|
type: string;
|
|
@@ -372,6 +371,7 @@ declare const _default: {
|
|
|
372
371
|
items: {
|
|
373
372
|
type: string;
|
|
374
373
|
};
|
|
374
|
+
uniqueItems: boolean;
|
|
375
375
|
};
|
|
376
376
|
boost: {
|
|
377
377
|
type: string;
|
|
@@ -550,6 +550,24 @@ declare const _default: {
|
|
|
550
550
|
format: string;
|
|
551
551
|
maxLength: number;
|
|
552
552
|
};
|
|
553
|
+
cover: {
|
|
554
|
+
type: string;
|
|
555
|
+
title: string;
|
|
556
|
+
format: string;
|
|
557
|
+
maxLength: number;
|
|
558
|
+
};
|
|
559
|
+
twitter: {
|
|
560
|
+
type: string;
|
|
561
|
+
title: string;
|
|
562
|
+
pattern: string;
|
|
563
|
+
maxLength: number;
|
|
564
|
+
};
|
|
565
|
+
github: {
|
|
566
|
+
type: string;
|
|
567
|
+
title: string;
|
|
568
|
+
pattern: string;
|
|
569
|
+
maxLength: number;
|
|
570
|
+
};
|
|
553
571
|
};
|
|
554
572
|
required: never[];
|
|
555
573
|
additionalProperties: boolean;
|
package/dist/sign/types.d.ts
CHANGED
|
@@ -60,11 +60,13 @@ export interface Vote {
|
|
|
60
60
|
}
|
|
61
61
|
export interface Follow {
|
|
62
62
|
from?: string;
|
|
63
|
+
network?: string;
|
|
63
64
|
space: string;
|
|
64
65
|
timestamp?: number;
|
|
65
66
|
}
|
|
66
67
|
export interface Unfollow {
|
|
67
68
|
from?: string;
|
|
69
|
+
network?: string;
|
|
68
70
|
space: string;
|
|
69
71
|
timestamp?: number;
|
|
70
72
|
}
|