@snapshot-labs/snapshot.js 0.12.19 → 0.12.21

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.
@@ -80,6 +80,7 @@ const proposalTypes = {
80
80
  { name: 'body', type: 'string' },
81
81
  { name: 'discussion', type: 'string' },
82
82
  { name: 'choices', type: 'string[]' },
83
+ { name: 'labels', type: 'string[]' },
83
84
  { name: 'start', type: 'uint64' },
84
85
  { name: 'end', type: 'uint64' },
85
86
  { name: 'snapshot', type: 'uint64' },
@@ -98,6 +99,7 @@ const updateProposalTypes = {
98
99
  { name: 'body', type: 'string' },
99
100
  { name: 'discussion', type: 'string' },
100
101
  { name: 'choices', type: 'string[]' },
102
+ { name: 'labels', type: 'string[]' },
101
103
  { name: 'plugins', type: 'string' }
102
104
  ]
103
105
  };
@@ -849,9 +851,14 @@ var definitions = {
849
851
  examples: [
850
852
  "e.g. 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984"
851
853
  ],
852
- pattern: "^0x[a-fA-F0-9]{40}$",
853
- minLength: 42,
854
- maxLength: 42
854
+ anyOf: [
855
+ {
856
+ format: "address"
857
+ },
858
+ {
859
+ format: "starknetAddress"
860
+ }
861
+ ]
855
862
  },
856
863
  network: {
857
864
  type: "string",
@@ -988,6 +995,18 @@ var definitions$1 = {
988
995
  turbo: 1000
989
996
  }
990
997
  },
998
+ labels: {
999
+ type: "array",
1000
+ title: "labels",
1001
+ maxItems: 10,
1002
+ uniqueItems: true,
1003
+ items: {
1004
+ type: "string",
1005
+ minLength: 1,
1006
+ maxLength: 8,
1007
+ pattern: "^[a-zA-Z0-9]+$"
1008
+ }
1009
+ },
991
1010
  type: {
992
1011
  type: "string",
993
1012
  "enum": [
@@ -1084,6 +1103,18 @@ var definitions$2 = {
1084
1103
  turbo: 1000
1085
1104
  }
1086
1105
  },
1106
+ labels: {
1107
+ type: "array",
1108
+ title: "labels",
1109
+ maxItems: 10,
1110
+ uniqueItems: true,
1111
+ items: {
1112
+ type: "string",
1113
+ minLength: 1,
1114
+ maxLength: 8,
1115
+ pattern: "^[a-zA-Z0-9]+$"
1116
+ }
1117
+ },
1087
1118
  type: {
1088
1119
  "enum": [
1089
1120
  "single-choice",
@@ -70,6 +70,7 @@ const proposalTypes = {
70
70
  { name: 'body', type: 'string' },
71
71
  { name: 'discussion', type: 'string' },
72
72
  { name: 'choices', type: 'string[]' },
73
+ { name: 'labels', type: 'string[]' },
73
74
  { name: 'start', type: 'uint64' },
74
75
  { name: 'end', type: 'uint64' },
75
76
  { name: 'snapshot', type: 'uint64' },
@@ -88,6 +89,7 @@ const updateProposalTypes = {
88
89
  { name: 'body', type: 'string' },
89
90
  { name: 'discussion', type: 'string' },
90
91
  { name: 'choices', type: 'string[]' },
92
+ { name: 'labels', type: 'string[]' },
91
93
  { name: 'plugins', type: 'string' }
92
94
  ]
93
95
  };
@@ -839,9 +841,14 @@ var definitions = {
839
841
  examples: [
840
842
  "e.g. 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984"
841
843
  ],
842
- pattern: "^0x[a-fA-F0-9]{40}$",
843
- minLength: 42,
844
- maxLength: 42
844
+ anyOf: [
845
+ {
846
+ format: "address"
847
+ },
848
+ {
849
+ format: "starknetAddress"
850
+ }
851
+ ]
845
852
  },
846
853
  network: {
847
854
  type: "string",
@@ -978,6 +985,18 @@ var definitions$1 = {
978
985
  turbo: 1000
979
986
  }
980
987
  },
988
+ labels: {
989
+ type: "array",
990
+ title: "labels",
991
+ maxItems: 10,
992
+ uniqueItems: true,
993
+ items: {
994
+ type: "string",
995
+ minLength: 1,
996
+ maxLength: 8,
997
+ pattern: "^[a-zA-Z0-9]+$"
998
+ }
999
+ },
981
1000
  type: {
982
1001
  type: "string",
983
1002
  "enum": [
@@ -1074,6 +1093,18 @@ var definitions$2 = {
1074
1093
  turbo: 1000
1075
1094
  }
1076
1095
  },
1096
+ labels: {
1097
+ type: "array",
1098
+ title: "labels",
1099
+ maxItems: 10,
1100
+ uniqueItems: true,
1101
+ items: {
1102
+ type: "string",
1103
+ minLength: 1,
1104
+ maxLength: 8,
1105
+ pattern: "^[a-zA-Z0-9]+$"
1106
+ }
1107
+ },
1077
1108
  type: {
1078
1109
  "enum": [
1079
1110
  "single-choice",