@snapshot-labs/snapshot.js 0.14.6 → 0.14.8
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/snapshot.cjs.js +16 -1
- package/dist/snapshot.esm.js +16 -1
- package/dist/snapshot.min.js +15 -15
- package/package.json +1 -1
- package/src/networks.json +14 -0
- package/src/voting/rankedChoice.ts +1 -1
package/dist/snapshot.cjs.js
CHANGED
|
@@ -522,6 +522,21 @@ var networks = {
|
|
|
522
522
|
},
|
|
523
523
|
start: 1290,
|
|
524
524
|
logo: "ipfs://bafkreib4xhbgbhrwkmizp4d4nz3wzbpyhdm6wpz2v2pbkk7jxsgg3hdt74"
|
|
525
|
+
},
|
|
526
|
+
"151": {
|
|
527
|
+
key: "151",
|
|
528
|
+
name: "Redbelly",
|
|
529
|
+
shortName: "mainnet",
|
|
530
|
+
chainId: 151,
|
|
531
|
+
network: "mainnet",
|
|
532
|
+
multicall: "0xEe43BBcC6340038130681F98d855E416F7F728e9",
|
|
533
|
+
rpc: [
|
|
534
|
+
],
|
|
535
|
+
explorer: {
|
|
536
|
+
url: "https://redbelly.routescan.io"
|
|
537
|
+
},
|
|
538
|
+
start: 1908395,
|
|
539
|
+
logo: "ipfs://bafkreie5mdk5shaebcec6zs5dc4722u2tn7oxvkksjy62kkjdzgnvmad7q"
|
|
525
540
|
},
|
|
526
541
|
"157": {
|
|
527
542
|
key: "157",
|
|
@@ -2690,7 +2705,7 @@ class RankedChoiceVoting {
|
|
|
2690
2705
|
return this.proposal.choices.map((choice, i) => this.strategies.map((strategy, sI) => {
|
|
2691
2706
|
return finalRound
|
|
2692
2707
|
.filter((res) => Number(res[0]) === i + 1)
|
|
2693
|
-
.reduce((a, b) => a + b[1][1][sI], 0);
|
|
2708
|
+
.reduce((a, b) => a + (b[1][1][sI] || 0), 0);
|
|
2694
2709
|
}));
|
|
2695
2710
|
}
|
|
2696
2711
|
getScoresTotal() {
|
package/dist/snapshot.esm.js
CHANGED
|
@@ -512,6 +512,21 @@ var networks = {
|
|
|
512
512
|
},
|
|
513
513
|
start: 1290,
|
|
514
514
|
logo: "ipfs://bafkreib4xhbgbhrwkmizp4d4nz3wzbpyhdm6wpz2v2pbkk7jxsgg3hdt74"
|
|
515
|
+
},
|
|
516
|
+
"151": {
|
|
517
|
+
key: "151",
|
|
518
|
+
name: "Redbelly",
|
|
519
|
+
shortName: "mainnet",
|
|
520
|
+
chainId: 151,
|
|
521
|
+
network: "mainnet",
|
|
522
|
+
multicall: "0xEe43BBcC6340038130681F98d855E416F7F728e9",
|
|
523
|
+
rpc: [
|
|
524
|
+
],
|
|
525
|
+
explorer: {
|
|
526
|
+
url: "https://redbelly.routescan.io"
|
|
527
|
+
},
|
|
528
|
+
start: 1908395,
|
|
529
|
+
logo: "ipfs://bafkreie5mdk5shaebcec6zs5dc4722u2tn7oxvkksjy62kkjdzgnvmad7q"
|
|
515
530
|
},
|
|
516
531
|
"157": {
|
|
517
532
|
key: "157",
|
|
@@ -2680,7 +2695,7 @@ class RankedChoiceVoting {
|
|
|
2680
2695
|
return this.proposal.choices.map((choice, i) => this.strategies.map((strategy, sI) => {
|
|
2681
2696
|
return finalRound
|
|
2682
2697
|
.filter((res) => Number(res[0]) === i + 1)
|
|
2683
|
-
.reduce((a, b) => a + b[1][1][sI], 0);
|
|
2698
|
+
.reduce((a, b) => a + (b[1][1][sI] || 0), 0);
|
|
2684
2699
|
}));
|
|
2685
2700
|
}
|
|
2686
2701
|
getScoresTotal() {
|