@snapshot-labs/snapshot.js 0.4.65 → 0.4.66

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.
@@ -273,9 +273,14 @@ var testnet = {
273
273
  hub: "https://testnet.snapshot.org",
274
274
  sequencer: "https://testnet.seq.snapshot.org"
275
275
  };
276
+ var local = {
277
+ hub: "http://localhost:3000",
278
+ sequencer: "http://localhost:3001"
279
+ };
276
280
  var constants = {
277
281
  livenet: livenet,
278
- testnet: testnet
282
+ testnet: testnet,
283
+ local: local
279
284
  };
280
285
 
281
286
  var NAME = 'snapshot';
@@ -288,8 +293,9 @@ var domain = {
288
293
  var Client = /** @class */ (function () {
289
294
  function Client(address) {
290
295
  if (address === void 0) { address = constants.livenet.sequencer; }
291
- address = address.replace('https://hub.snapshot.org', constants.livenet.sequencer);
292
- address = address.replace('https://testnet.snapshot.org', constants.testnet.sequencer);
296
+ address = address.replace(constants.livenet.hub, constants.livenet.sequencer);
297
+ address = address.replace(constants.testnet.hub, constants.testnet.sequencer);
298
+ address = address.replace(constants.local.hub, constants.local.sequencer);
293
299
  this.address = address;
294
300
  }
295
301
  Client.prototype.sign = function (web3, address$1, message, types) {
@@ -264,9 +264,14 @@ var testnet = {
264
264
  hub: "https://testnet.snapshot.org",
265
265
  sequencer: "https://testnet.seq.snapshot.org"
266
266
  };
267
+ var local = {
268
+ hub: "http://localhost:3000",
269
+ sequencer: "http://localhost:3001"
270
+ };
267
271
  var constants = {
268
272
  livenet: livenet,
269
- testnet: testnet
273
+ testnet: testnet,
274
+ local: local
270
275
  };
271
276
 
272
277
  var NAME = 'snapshot';
@@ -279,8 +284,9 @@ var domain = {
279
284
  var Client = /** @class */ (function () {
280
285
  function Client(address) {
281
286
  if (address === void 0) { address = constants.livenet.sequencer; }
282
- address = address.replace('https://hub.snapshot.org', constants.livenet.sequencer);
283
- address = address.replace('https://testnet.snapshot.org', constants.testnet.sequencer);
287
+ address = address.replace(constants.livenet.hub, constants.livenet.sequencer);
288
+ address = address.replace(constants.testnet.hub, constants.testnet.sequencer);
289
+ address = address.replace(constants.local.hub, constants.local.sequencer);
284
290
  this.address = address;
285
291
  }
286
292
  Client.prototype.sign = function (web3, address, message, types) {