@snapshot-labs/snapshot.js 0.9.5 → 0.9.7

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.
@@ -2981,7 +2981,7 @@ var networks = {
2981
2981
  };
2982
2982
 
2983
2983
  var delegationSubgraphs = {
2984
- "1": "https://subgrapher.snapshot.org/gateway.thegraph.com/api/0f15b42bdeff7a063a4e1757d7e2f99e/deployments/id/QmXZiV6S13ha6QXq4dmaM3TB4CHcDxBMvGexSNu9Kc28EH",
2984
+ "1": "https://subgrapher.snapshot.org/gateway-arbitrum.network.thegraph.com/api/0f15b42bdeff7a063a4e1757d7e2f99e/subgraphs/id/4YgtogVaqoM8CErHWDK8mKQ825BcVdKB8vBYmb4avAQo",
2985
2985
  "5": "https://subgrapher.snapshot.org/api.thegraph.com/subgraphs/name/snapshot-labs/snapshot-goerli",
2986
2986
  "10": "https://subgrapher.snapshot.org/api.thegraph.com/subgraphs/name/snapshot-labs/snapshot-optimism",
2987
2987
  "56": "https://subgrapher.snapshot.org/api.thegraph.com/subgraphs/name/snapshot-labs/snapshot-binance-smart-chain",
@@ -3294,7 +3294,7 @@ var RankedChoiceVoting = /** @class */ (function () {
3294
3294
  });
3295
3295
  };
3296
3296
  RankedChoiceVoting.prototype.getScoresTotal = function () {
3297
- return getScoresMethod(this.votes, this.proposal).reduce(function (a, b) { return a + b; });
3297
+ return this.votes.reduce(function (a, b) { return a + b.balance; }, 0);
3298
3298
  };
3299
3299
  RankedChoiceVoting.prototype.getChoiceString = function () {
3300
3300
  var _this = this;
@@ -2972,7 +2972,7 @@ var networks = {
2972
2972
  };
2973
2973
 
2974
2974
  var delegationSubgraphs = {
2975
- "1": "https://subgrapher.snapshot.org/gateway.thegraph.com/api/0f15b42bdeff7a063a4e1757d7e2f99e/deployments/id/QmXZiV6S13ha6QXq4dmaM3TB4CHcDxBMvGexSNu9Kc28EH",
2975
+ "1": "https://subgrapher.snapshot.org/gateway-arbitrum.network.thegraph.com/api/0f15b42bdeff7a063a4e1757d7e2f99e/subgraphs/id/4YgtogVaqoM8CErHWDK8mKQ825BcVdKB8vBYmb4avAQo",
2976
2976
  "5": "https://subgrapher.snapshot.org/api.thegraph.com/subgraphs/name/snapshot-labs/snapshot-goerli",
2977
2977
  "10": "https://subgrapher.snapshot.org/api.thegraph.com/subgraphs/name/snapshot-labs/snapshot-optimism",
2978
2978
  "56": "https://subgrapher.snapshot.org/api.thegraph.com/subgraphs/name/snapshot-labs/snapshot-binance-smart-chain",
@@ -3285,7 +3285,7 @@ var RankedChoiceVoting = /** @class */ (function () {
3285
3285
  });
3286
3286
  };
3287
3287
  RankedChoiceVoting.prototype.getScoresTotal = function () {
3288
- return getScoresMethod(this.votes, this.proposal).reduce(function (a, b) { return a + b; });
3288
+ return this.votes.reduce(function (a, b) { return a + b.balance; }, 0);
3289
3289
  };
3290
3290
  RankedChoiceVoting.prototype.getChoiceString = function () {
3291
3291
  var _this = this;