@snapshot-labs/snapshot.js 0.11.27 → 0.11.29
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/snapshot.cjs.js +14 -0
- package/dist/snapshot.esm.js +14 -0
- package/dist/snapshot.min.js +2 -2
- package/package.json +1 -1
- package/src/schemas/space.json +2 -1
- package/src/utils.ts +10 -0
package/dist/snapshot.cjs.js
CHANGED
|
@@ -846,6 +846,10 @@ var definitions = {
|
|
|
846
846
|
{
|
|
847
847
|
"const": "compound-governor",
|
|
848
848
|
title: "Compound governor"
|
|
849
|
+
},
|
|
850
|
+
{
|
|
851
|
+
"const": "split-delegation",
|
|
852
|
+
title: "Split Delegation"
|
|
849
853
|
}
|
|
850
854
|
]
|
|
851
855
|
},
|
|
@@ -3819,6 +3823,16 @@ ajv.addFormat('address', {
|
|
|
3819
3823
|
}
|
|
3820
3824
|
}
|
|
3821
3825
|
});
|
|
3826
|
+
ajv.addFormat('evmOrStarknetAddress', {
|
|
3827
|
+
validate: function (value) {
|
|
3828
|
+
try {
|
|
3829
|
+
return address.isAddress(value) || /^0x[0-9a-fA-F]{62,64}$/.test(value);
|
|
3830
|
+
}
|
|
3831
|
+
catch (err) {
|
|
3832
|
+
return false;
|
|
3833
|
+
}
|
|
3834
|
+
}
|
|
3835
|
+
});
|
|
3822
3836
|
ajv.addFormat('long', {
|
|
3823
3837
|
validate: function () { return true; }
|
|
3824
3838
|
});
|
package/dist/snapshot.esm.js
CHANGED
|
@@ -836,6 +836,10 @@ var definitions = {
|
|
|
836
836
|
{
|
|
837
837
|
"const": "compound-governor",
|
|
838
838
|
title: "Compound governor"
|
|
839
|
+
},
|
|
840
|
+
{
|
|
841
|
+
"const": "split-delegation",
|
|
842
|
+
title: "Split Delegation"
|
|
839
843
|
}
|
|
840
844
|
]
|
|
841
845
|
},
|
|
@@ -3809,6 +3813,16 @@ ajv.addFormat('address', {
|
|
|
3809
3813
|
}
|
|
3810
3814
|
}
|
|
3811
3815
|
});
|
|
3816
|
+
ajv.addFormat('evmOrStarknetAddress', {
|
|
3817
|
+
validate: function (value) {
|
|
3818
|
+
try {
|
|
3819
|
+
return isAddress(value) || /^0x[0-9a-fA-F]{62,64}$/.test(value);
|
|
3820
|
+
}
|
|
3821
|
+
catch (err) {
|
|
3822
|
+
return false;
|
|
3823
|
+
}
|
|
3824
|
+
}
|
|
3825
|
+
});
|
|
3812
3826
|
ajv.addFormat('long', {
|
|
3813
3827
|
validate: function () { return true; }
|
|
3814
3828
|
});
|