@snapshot-labs/snapshot.js 0.3.93 → 0.3.96
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/sign/types.d.ts +0 -1
- package/dist/snapshot.cjs.js +17 -1
- package/dist/snapshot.esm.js +17 -1
- package/dist/snapshot.min.js +2 -2
- package/package.json +1 -1
- package/src/networks.json +15 -0
- package/src/sign/types.json +2 -1
- package/src/sign/types.ts +0 -2
- package/src/utils/provider.ts +2 -0
package/dist/sign/types.d.ts
CHANGED
package/dist/snapshot.cjs.js
CHANGED
|
@@ -128,7 +128,6 @@ var proposalTypes = {
|
|
|
128
128
|
{ name: 'start', type: 'uint64' },
|
|
129
129
|
{ name: 'end', type: 'uint64' },
|
|
130
130
|
{ name: 'snapshot', type: 'uint64' },
|
|
131
|
-
{ name: 'network', type: 'string' },
|
|
132
131
|
{ name: 'plugins', type: 'string' }
|
|
133
132
|
]
|
|
134
133
|
};
|
|
@@ -1730,6 +1729,21 @@ var networks = {
|
|
|
1730
1729
|
explorer: "https://hscan.org",
|
|
1731
1730
|
start: 13960096,
|
|
1732
1731
|
logo: "ipfs://QmU7f1MyRz8rLELFfypnWZQjGbDGYgZtC9rjw47jYMYrnu"
|
|
1732
|
+
},
|
|
1733
|
+
"280": {
|
|
1734
|
+
key: "280",
|
|
1735
|
+
name: "zkSync 2 testnet",
|
|
1736
|
+
shortName: "zkSync2",
|
|
1737
|
+
chainId: 280,
|
|
1738
|
+
network: "zkSync alpha testnet",
|
|
1739
|
+
testnet: true,
|
|
1740
|
+
multicall: "0xD2CF10EF0b64B2C9B7147740AEda677d3EfeD2f8",
|
|
1741
|
+
rpc: [
|
|
1742
|
+
"https://zksync2-testnet.zksync.dev"
|
|
1743
|
+
],
|
|
1744
|
+
explorer: "https://zksync2-testnet.zkscan.io/",
|
|
1745
|
+
start: 1374275,
|
|
1746
|
+
logo: "ipfs://QmPDbdmwpEeenaLHAbqcAerXdH9Z4Gfd7gm9M8tbkkjcAS"
|
|
1733
1747
|
},
|
|
1734
1748
|
"288": {
|
|
1735
1749
|
key: "288",
|
|
@@ -2457,6 +2471,8 @@ function getProvider(network, type) {
|
|
|
2457
2471
|
var url = networks[network].rpc[0];
|
|
2458
2472
|
if (type === 'light' && ((_a = networks[network].light) === null || _a === void 0 ? void 0 : _a.length))
|
|
2459
2473
|
url = networks[network].light[0];
|
|
2474
|
+
if (type === 'brovider')
|
|
2475
|
+
url = "https://brovider.xyz/" + network;
|
|
2460
2476
|
var connectionInfo = typeof url === 'object'
|
|
2461
2477
|
? __assign(__assign({}, url), { timeout: 25000 }) : { url: url, timeout: 25000 };
|
|
2462
2478
|
if (!providers[network] || !providers[network][type]) {
|
package/dist/snapshot.esm.js
CHANGED
|
@@ -119,7 +119,6 @@ var proposalTypes = {
|
|
|
119
119
|
{ name: 'start', type: 'uint64' },
|
|
120
120
|
{ name: 'end', type: 'uint64' },
|
|
121
121
|
{ name: 'snapshot', type: 'uint64' },
|
|
122
|
-
{ name: 'network', type: 'string' },
|
|
123
122
|
{ name: 'plugins', type: 'string' }
|
|
124
123
|
]
|
|
125
124
|
};
|
|
@@ -1721,6 +1720,21 @@ var networks = {
|
|
|
1721
1720
|
explorer: "https://hscan.org",
|
|
1722
1721
|
start: 13960096,
|
|
1723
1722
|
logo: "ipfs://QmU7f1MyRz8rLELFfypnWZQjGbDGYgZtC9rjw47jYMYrnu"
|
|
1723
|
+
},
|
|
1724
|
+
"280": {
|
|
1725
|
+
key: "280",
|
|
1726
|
+
name: "zkSync 2 testnet",
|
|
1727
|
+
shortName: "zkSync2",
|
|
1728
|
+
chainId: 280,
|
|
1729
|
+
network: "zkSync alpha testnet",
|
|
1730
|
+
testnet: true,
|
|
1731
|
+
multicall: "0xD2CF10EF0b64B2C9B7147740AEda677d3EfeD2f8",
|
|
1732
|
+
rpc: [
|
|
1733
|
+
"https://zksync2-testnet.zksync.dev"
|
|
1734
|
+
],
|
|
1735
|
+
explorer: "https://zksync2-testnet.zkscan.io/",
|
|
1736
|
+
start: 1374275,
|
|
1737
|
+
logo: "ipfs://QmPDbdmwpEeenaLHAbqcAerXdH9Z4Gfd7gm9M8tbkkjcAS"
|
|
1724
1738
|
},
|
|
1725
1739
|
"288": {
|
|
1726
1740
|
key: "288",
|
|
@@ -2448,6 +2462,8 @@ function getProvider(network, type) {
|
|
|
2448
2462
|
var url = networks[network].rpc[0];
|
|
2449
2463
|
if (type === 'light' && ((_a = networks[network].light) === null || _a === void 0 ? void 0 : _a.length))
|
|
2450
2464
|
url = networks[network].light[0];
|
|
2465
|
+
if (type === 'brovider')
|
|
2466
|
+
url = "https://brovider.xyz/" + network;
|
|
2451
2467
|
var connectionInfo = typeof url === 'object'
|
|
2452
2468
|
? __assign(__assign({}, url), { timeout: 25000 }) : { url: url, timeout: 25000 };
|
|
2453
2469
|
if (!providers[network] || !providers[network][type]) {
|