@snapshot-labs/snapshot.js 0.3.97 → 0.3.98

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 CHANGED
@@ -219,6 +219,36 @@ declare const _default: {
219
219
  enum: string[];
220
220
  };
221
221
  };
222
+ treasuries: {
223
+ type: string;
224
+ minItems: number;
225
+ maxItems: number;
226
+ items: {
227
+ type: string;
228
+ properties: {
229
+ name: {
230
+ type: string;
231
+ title: string;
232
+ examples: string[];
233
+ maxLength: number;
234
+ };
235
+ address: {
236
+ type: string;
237
+ title: string;
238
+ pattern: string;
239
+ minLength: number;
240
+ maxLength: number;
241
+ };
242
+ network: {
243
+ type: string;
244
+ title: string;
245
+ maxLength: number;
246
+ };
247
+ };
248
+ required: string[];
249
+ additionalProperties: boolean;
250
+ };
251
+ };
222
252
  parent: {
223
253
  type: string;
224
254
  title: string;
@@ -214,6 +214,36 @@ declare const _default: {
214
214
  enum: string[];
215
215
  };
216
216
  };
217
+ treasuries: {
218
+ type: string;
219
+ minItems: number;
220
+ maxItems: number;
221
+ items: {
222
+ type: string;
223
+ properties: {
224
+ name: {
225
+ type: string;
226
+ title: string;
227
+ examples: string[];
228
+ maxLength: number;
229
+ };
230
+ address: {
231
+ type: string;
232
+ title: string;
233
+ pattern: string;
234
+ minLength: number;
235
+ maxLength: number;
236
+ };
237
+ network: {
238
+ type: string;
239
+ title: string;
240
+ maxLength: number;
241
+ };
242
+ };
243
+ required: string[];
244
+ additionalProperties: boolean;
245
+ };
246
+ };
217
247
  parent: {
218
248
  type: string;
219
249
  title: string;
@@ -828,6 +828,42 @@ var definitions = {
828
828
  ]
829
829
  }
830
830
  },
831
+ treasuries: {
832
+ type: "array",
833
+ minItems: 1,
834
+ maxItems: 10,
835
+ items: {
836
+ type: "object",
837
+ properties: {
838
+ name: {
839
+ type: "string",
840
+ title: "Name",
841
+ examples: [
842
+ "e.g. Balancer DAO 1"
843
+ ],
844
+ maxLength: 64
845
+ },
846
+ address: {
847
+ type: "string",
848
+ title: "Contract address",
849
+ pattern: "^0x[a-fA-F0-9]{40}$",
850
+ minLength: 42,
851
+ maxLength: 42
852
+ },
853
+ network: {
854
+ type: "number",
855
+ title: "Network",
856
+ maxLength: 12
857
+ }
858
+ },
859
+ required: [
860
+ "name",
861
+ "address",
862
+ "network"
863
+ ],
864
+ additionalProperties: false
865
+ }
866
+ },
831
867
  parent: {
832
868
  type: "string",
833
869
  title: "parent"
@@ -2668,7 +2704,7 @@ function verify(address, sig, hash, network) {
2668
2704
  return __generator(this, function (_a) {
2669
2705
  switch (_a.label) {
2670
2706
  case 0:
2671
- provider = getProvider(network);
2707
+ provider = getProvider(network, 'brovider');
2672
2708
  return [4 /*yield*/, verifyDefault(address, sig, hash, provider)];
2673
2709
  case 1:
2674
2710
  if (_a.sent())
@@ -3240,7 +3276,7 @@ function getEnsTextRecord(ens, record, network) {
3240
3276
  if (network === void 0) { network = '1'; }
3241
3277
  var address = networks[network].ensResolver || networks['1'].ensResolver;
3242
3278
  var ensHash = ethEnsNamehash.hash(ethEnsNamehash.normalize(ens));
3243
- var provider = getProvider(network);
3279
+ var provider = getProvider(network, 'brovider');
3244
3280
  return call(provider, ENS_RESOLVER_ABI, [address, 'text', [ensHash, record]]);
3245
3281
  }
3246
3282
  function getSpaceUri(id, network) {
@@ -819,6 +819,42 @@ var definitions = {
819
819
  ]
820
820
  }
821
821
  },
822
+ treasuries: {
823
+ type: "array",
824
+ minItems: 1,
825
+ maxItems: 10,
826
+ items: {
827
+ type: "object",
828
+ properties: {
829
+ name: {
830
+ type: "string",
831
+ title: "Name",
832
+ examples: [
833
+ "e.g. Balancer DAO 1"
834
+ ],
835
+ maxLength: 64
836
+ },
837
+ address: {
838
+ type: "string",
839
+ title: "Contract address",
840
+ pattern: "^0x[a-fA-F0-9]{40}$",
841
+ minLength: 42,
842
+ maxLength: 42
843
+ },
844
+ network: {
845
+ type: "number",
846
+ title: "Network",
847
+ maxLength: 12
848
+ }
849
+ },
850
+ required: [
851
+ "name",
852
+ "address",
853
+ "network"
854
+ ],
855
+ additionalProperties: false
856
+ }
857
+ },
822
858
  parent: {
823
859
  type: "string",
824
860
  title: "parent"
@@ -2659,7 +2695,7 @@ function verify(address, sig, hash, network) {
2659
2695
  return __generator(this, function (_a) {
2660
2696
  switch (_a.label) {
2661
2697
  case 0:
2662
- provider = getProvider(network);
2698
+ provider = getProvider(network, 'brovider');
2663
2699
  return [4 /*yield*/, verifyDefault(address, sig, hash, provider)];
2664
2700
  case 1:
2665
2701
  if (_a.sent())
@@ -3231,7 +3267,7 @@ function getEnsTextRecord(ens, record, network) {
3231
3267
  if (network === void 0) { network = '1'; }
3232
3268
  var address = networks[network].ensResolver || networks['1'].ensResolver;
3233
3269
  var ensHash = hash(normalize(ens));
3234
- var provider = getProvider(network);
3270
+ var provider = getProvider(network, 'brovider');
3235
3271
  return call(provider, ENS_RESOLVER_ABI, [address, 'text', [ensHash, record]]);
3236
3272
  }
3237
3273
  function getSpaceUri(id, network) {