@snapshot-labs/snapshot.js 0.4.10 → 0.4.11
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 +34 -0
- package/dist/schemas/index.d.ts +34 -0
- package/dist/snapshot.cjs.js +47 -2
- package/dist/snapshot.esm.js +47 -2
- package/dist/snapshot.min.js +7 -7
- package/dist/utils.d.ts +10 -2
- package/package.json +1 -1
- package/src/schemas/index.ts +3 -1
- package/src/schemas/proposal.json +1 -1
- package/src/schemas/zodiac.json +40 -0
- package/src/utils.ts +13 -3
package/dist/index.d.ts
CHANGED
|
@@ -373,6 +373,40 @@ declare const _default: {
|
|
|
373
373
|
required: never[];
|
|
374
374
|
additionalProperties: boolean;
|
|
375
375
|
};
|
|
376
|
+
zodiac: {
|
|
377
|
+
title: string;
|
|
378
|
+
type: string;
|
|
379
|
+
properties: {
|
|
380
|
+
safes: {
|
|
381
|
+
title: string;
|
|
382
|
+
type: string;
|
|
383
|
+
maxItems: number;
|
|
384
|
+
items: {
|
|
385
|
+
type: string;
|
|
386
|
+
properties: {
|
|
387
|
+
network: {
|
|
388
|
+
title: string;
|
|
389
|
+
type: string;
|
|
390
|
+
};
|
|
391
|
+
multisend: {
|
|
392
|
+
title: string;
|
|
393
|
+
type: string;
|
|
394
|
+
};
|
|
395
|
+
realityAddress: {
|
|
396
|
+
title: string;
|
|
397
|
+
type: string;
|
|
398
|
+
};
|
|
399
|
+
umaAddress: {
|
|
400
|
+
title: string;
|
|
401
|
+
type: string;
|
|
402
|
+
};
|
|
403
|
+
};
|
|
404
|
+
additionalProperties: boolean;
|
|
405
|
+
};
|
|
406
|
+
};
|
|
407
|
+
additionalProperties: boolean;
|
|
408
|
+
};
|
|
409
|
+
};
|
|
376
410
|
};
|
|
377
411
|
utils: {
|
|
378
412
|
call: typeof import("./utils").call;
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -368,5 +368,39 @@ declare const _default: {
|
|
|
368
368
|
required: never[];
|
|
369
369
|
additionalProperties: boolean;
|
|
370
370
|
};
|
|
371
|
+
zodiac: {
|
|
372
|
+
title: string;
|
|
373
|
+
type: string;
|
|
374
|
+
properties: {
|
|
375
|
+
safes: {
|
|
376
|
+
title: string;
|
|
377
|
+
type: string;
|
|
378
|
+
maxItems: number;
|
|
379
|
+
items: {
|
|
380
|
+
type: string;
|
|
381
|
+
properties: {
|
|
382
|
+
network: {
|
|
383
|
+
title: string;
|
|
384
|
+
type: string;
|
|
385
|
+
};
|
|
386
|
+
multisend: {
|
|
387
|
+
title: string;
|
|
388
|
+
type: string;
|
|
389
|
+
};
|
|
390
|
+
realityAddress: {
|
|
391
|
+
title: string;
|
|
392
|
+
type: string;
|
|
393
|
+
};
|
|
394
|
+
umaAddress: {
|
|
395
|
+
title: string;
|
|
396
|
+
type: string;
|
|
397
|
+
};
|
|
398
|
+
};
|
|
399
|
+
additionalProperties: boolean;
|
|
400
|
+
};
|
|
401
|
+
};
|
|
402
|
+
additionalProperties: boolean;
|
|
403
|
+
};
|
|
404
|
+
};
|
|
371
405
|
};
|
|
372
406
|
export default _default;
|
package/dist/snapshot.cjs.js
CHANGED
|
@@ -933,7 +933,7 @@ var definitions$1 = {
|
|
|
933
933
|
type: "array",
|
|
934
934
|
title: "choices",
|
|
935
935
|
minItems: 1,
|
|
936
|
-
maxItems:
|
|
936
|
+
maxItems: 200
|
|
937
937
|
},
|
|
938
938
|
type: {
|
|
939
939
|
type: "string",
|
|
@@ -1062,11 +1062,56 @@ var profile = {
|
|
|
1062
1062
|
definitions: definitions$3
|
|
1063
1063
|
};
|
|
1064
1064
|
|
|
1065
|
+
var $schema$4 = "http://json-schema.org/draft-07/schema#";
|
|
1066
|
+
var $ref$4 = "#/definitions/Zodiac";
|
|
1067
|
+
var definitions$4 = {
|
|
1068
|
+
Zodiac: {
|
|
1069
|
+
title: "Zodiac",
|
|
1070
|
+
type: "object",
|
|
1071
|
+
properties: {
|
|
1072
|
+
safes: {
|
|
1073
|
+
title: "Safe(s)",
|
|
1074
|
+
type: "array",
|
|
1075
|
+
maxItems: 8,
|
|
1076
|
+
items: {
|
|
1077
|
+
type: "object",
|
|
1078
|
+
properties: {
|
|
1079
|
+
network: {
|
|
1080
|
+
title: "Network",
|
|
1081
|
+
type: "string"
|
|
1082
|
+
},
|
|
1083
|
+
multisend: {
|
|
1084
|
+
title: "Multisend contract address",
|
|
1085
|
+
type: "string"
|
|
1086
|
+
},
|
|
1087
|
+
realityAddress: {
|
|
1088
|
+
title: "Reality module address",
|
|
1089
|
+
type: "string"
|
|
1090
|
+
},
|
|
1091
|
+
umaAddress: {
|
|
1092
|
+
title: "UMA module address",
|
|
1093
|
+
type: "string"
|
|
1094
|
+
}
|
|
1095
|
+
},
|
|
1096
|
+
additionalProperties: false
|
|
1097
|
+
}
|
|
1098
|
+
},
|
|
1099
|
+
additionalProperties: false
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
};
|
|
1103
|
+
var zodiac = {
|
|
1104
|
+
$schema: $schema$4,
|
|
1105
|
+
$ref: $ref$4,
|
|
1106
|
+
definitions: definitions$4
|
|
1107
|
+
};
|
|
1108
|
+
|
|
1065
1109
|
var schemas = {
|
|
1066
1110
|
space: space.definitions.Space,
|
|
1067
1111
|
proposal: proposal.definitions.Proposal,
|
|
1068
1112
|
vote: vote.definitions.Vote,
|
|
1069
|
-
profile: profile.definitions.Profile
|
|
1113
|
+
profile: profile.definitions.Profile,
|
|
1114
|
+
zodiac: zodiac.definitions.Zodiac
|
|
1070
1115
|
};
|
|
1071
1116
|
|
|
1072
1117
|
var Multicaller = /** @class */ (function () {
|
package/dist/snapshot.esm.js
CHANGED
|
@@ -924,7 +924,7 @@ var definitions$1 = {
|
|
|
924
924
|
type: "array",
|
|
925
925
|
title: "choices",
|
|
926
926
|
minItems: 1,
|
|
927
|
-
maxItems:
|
|
927
|
+
maxItems: 200
|
|
928
928
|
},
|
|
929
929
|
type: {
|
|
930
930
|
type: "string",
|
|
@@ -1053,11 +1053,56 @@ var profile = {
|
|
|
1053
1053
|
definitions: definitions$3
|
|
1054
1054
|
};
|
|
1055
1055
|
|
|
1056
|
+
var $schema$4 = "http://json-schema.org/draft-07/schema#";
|
|
1057
|
+
var $ref$4 = "#/definitions/Zodiac";
|
|
1058
|
+
var definitions$4 = {
|
|
1059
|
+
Zodiac: {
|
|
1060
|
+
title: "Zodiac",
|
|
1061
|
+
type: "object",
|
|
1062
|
+
properties: {
|
|
1063
|
+
safes: {
|
|
1064
|
+
title: "Safe(s)",
|
|
1065
|
+
type: "array",
|
|
1066
|
+
maxItems: 8,
|
|
1067
|
+
items: {
|
|
1068
|
+
type: "object",
|
|
1069
|
+
properties: {
|
|
1070
|
+
network: {
|
|
1071
|
+
title: "Network",
|
|
1072
|
+
type: "string"
|
|
1073
|
+
},
|
|
1074
|
+
multisend: {
|
|
1075
|
+
title: "Multisend contract address",
|
|
1076
|
+
type: "string"
|
|
1077
|
+
},
|
|
1078
|
+
realityAddress: {
|
|
1079
|
+
title: "Reality module address",
|
|
1080
|
+
type: "string"
|
|
1081
|
+
},
|
|
1082
|
+
umaAddress: {
|
|
1083
|
+
title: "UMA module address",
|
|
1084
|
+
type: "string"
|
|
1085
|
+
}
|
|
1086
|
+
},
|
|
1087
|
+
additionalProperties: false
|
|
1088
|
+
}
|
|
1089
|
+
},
|
|
1090
|
+
additionalProperties: false
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
};
|
|
1094
|
+
var zodiac = {
|
|
1095
|
+
$schema: $schema$4,
|
|
1096
|
+
$ref: $ref$4,
|
|
1097
|
+
definitions: definitions$4
|
|
1098
|
+
};
|
|
1099
|
+
|
|
1056
1100
|
var schemas = {
|
|
1057
1101
|
space: space.definitions.Space,
|
|
1058
1102
|
proposal: proposal.definitions.Proposal,
|
|
1059
1103
|
vote: vote.definitions.Vote,
|
|
1060
|
-
profile: profile.definitions.Profile
|
|
1104
|
+
profile: profile.definitions.Profile,
|
|
1105
|
+
zodiac: zodiac.definitions.Zodiac
|
|
1061
1106
|
};
|
|
1062
1107
|
|
|
1063
1108
|
var Multicaller = /** @class */ (function () {
|