@snapshot-labs/snapshot.js 0.11.38 → 0.12.0-beta.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/LICENSE +0 -0
- package/dist/index.d.ts +2 -29
- package/dist/schemas/index.d.ts +2 -29
- package/dist/sign/types.d.ts +0 -3
- package/dist/snapshot.cjs.js +1549 -1906
- package/dist/snapshot.esm.js +1550 -1907
- package/dist/snapshot.js/src/index.d.ts +677 -0
- package/dist/snapshot.js/src/sign/index.d.ts +28 -0
- 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/package.json +5 -3
- package/src/sign/hashedTypes.json +5 -1
- package/src/utils/dist/provider.js +47 -0
- package/src/utils/provider.ts +8 -2
- package/src/utils/web3.ts +1 -1
- package/src/utils.spec.js +36 -1
- package/src/utils.ts +44 -14
- 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/LICENSE
CHANGED
|
File without changes
|
package/dist/index.d.ts
CHANGED
|
@@ -572,18 +572,6 @@ declare const _default: {
|
|
|
572
572
|
pattern: string;
|
|
573
573
|
maxLength: number;
|
|
574
574
|
};
|
|
575
|
-
lens: {
|
|
576
|
-
type: string;
|
|
577
|
-
title: string;
|
|
578
|
-
pattern: string;
|
|
579
|
-
maxLength: number;
|
|
580
|
-
};
|
|
581
|
-
farcaster: {
|
|
582
|
-
type: string;
|
|
583
|
-
title: string;
|
|
584
|
-
pattern: string;
|
|
585
|
-
maxLength: number;
|
|
586
|
-
};
|
|
587
575
|
};
|
|
588
576
|
required: never[];
|
|
589
577
|
additionalProperties: boolean;
|
|
@@ -596,6 +584,7 @@ declare const _default: {
|
|
|
596
584
|
type: string;
|
|
597
585
|
format: string;
|
|
598
586
|
title: string;
|
|
587
|
+
minLength: number;
|
|
599
588
|
maxLength: number;
|
|
600
589
|
};
|
|
601
590
|
statement: {
|
|
@@ -604,24 +593,8 @@ declare const _default: {
|
|
|
604
593
|
title: string;
|
|
605
594
|
maxLength: number;
|
|
606
595
|
};
|
|
607
|
-
discourse: {
|
|
608
|
-
type: string;
|
|
609
|
-
title: string;
|
|
610
|
-
pattern: string;
|
|
611
|
-
maxLength: number;
|
|
612
|
-
};
|
|
613
|
-
network: {
|
|
614
|
-
type: string;
|
|
615
|
-
title: string;
|
|
616
|
-
pattern: string;
|
|
617
|
-
maxLength: number;
|
|
618
|
-
};
|
|
619
|
-
status: {
|
|
620
|
-
enum: string[];
|
|
621
|
-
title: string;
|
|
622
|
-
};
|
|
623
596
|
};
|
|
624
|
-
required:
|
|
597
|
+
required: string[];
|
|
625
598
|
additionalProperties: boolean;
|
|
626
599
|
};
|
|
627
600
|
zodiac: {
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -568,18 +568,6 @@ declare const _default: {
|
|
|
568
568
|
pattern: string;
|
|
569
569
|
maxLength: number;
|
|
570
570
|
};
|
|
571
|
-
lens: {
|
|
572
|
-
type: string;
|
|
573
|
-
title: string;
|
|
574
|
-
pattern: string;
|
|
575
|
-
maxLength: number;
|
|
576
|
-
};
|
|
577
|
-
farcaster: {
|
|
578
|
-
type: string;
|
|
579
|
-
title: string;
|
|
580
|
-
pattern: string;
|
|
581
|
-
maxLength: number;
|
|
582
|
-
};
|
|
583
571
|
};
|
|
584
572
|
required: never[];
|
|
585
573
|
additionalProperties: boolean;
|
|
@@ -592,6 +580,7 @@ declare const _default: {
|
|
|
592
580
|
type: string;
|
|
593
581
|
format: string;
|
|
594
582
|
title: string;
|
|
583
|
+
minLength: number;
|
|
595
584
|
maxLength: number;
|
|
596
585
|
};
|
|
597
586
|
statement: {
|
|
@@ -600,24 +589,8 @@ declare const _default: {
|
|
|
600
589
|
title: string;
|
|
601
590
|
maxLength: number;
|
|
602
591
|
};
|
|
603
|
-
discourse: {
|
|
604
|
-
type: string;
|
|
605
|
-
title: string;
|
|
606
|
-
pattern: string;
|
|
607
|
-
maxLength: number;
|
|
608
|
-
};
|
|
609
|
-
network: {
|
|
610
|
-
type: string;
|
|
611
|
-
title: string;
|
|
612
|
-
pattern: string;
|
|
613
|
-
maxLength: number;
|
|
614
|
-
};
|
|
615
|
-
status: {
|
|
616
|
-
enum: string[];
|
|
617
|
-
title: string;
|
|
618
|
-
};
|
|
619
592
|
};
|
|
620
|
-
required:
|
|
593
|
+
required: string[];
|
|
621
594
|
additionalProperties: boolean;
|
|
622
595
|
};
|
|
623
596
|
zodiac: {
|