@snapshot-labs/snapshot.js 0.3.86 → 0.3.87
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 -0
- package/dist/snapshot.esm.js +16 -0
- package/dist/snapshot.min.js +5 -5
- package/package.json +1 -1
- package/src/networks.json +13 -0
- package/src/utils.ts +5 -0
package/dist/snapshot.cjs.js
CHANGED
|
@@ -1894,6 +1894,19 @@ var networks = {
|
|
|
1894
1894
|
],
|
|
1895
1895
|
explorer: "https://baobab.scope.klaytn.com/",
|
|
1896
1896
|
logo: "ipfs://QmYACyZcidcFtMo4Uf9H6ZKUxTP2TQPjGzNjcUjqYa64dt"
|
|
1897
|
+
},
|
|
1898
|
+
"1002": {
|
|
1899
|
+
key: "1002",
|
|
1900
|
+
name: "KardiaChain Mainnet",
|
|
1901
|
+
shortName: "KAI",
|
|
1902
|
+
chainId: 24,
|
|
1903
|
+
network: "mainnet",
|
|
1904
|
+
multicall: "0xd9c92F2287B7802A37eC9BEce96Aa65fb5f31E1b",
|
|
1905
|
+
rpc: [
|
|
1906
|
+
"https://kai-internal.kardiachain.io"
|
|
1907
|
+
],
|
|
1908
|
+
explorer: "https://explorer.kardiachain.io",
|
|
1909
|
+
logo: "ipfs://QmVH3uyPQDcrPC1DMUWCb7HayMv1oMAiKehuWwP2C2fdgM"
|
|
1897
1910
|
},
|
|
1898
1911
|
"1088": {
|
|
1899
1912
|
key: "1088",
|
|
@@ -3157,6 +3170,9 @@ function getDelegatesBySpace(network, space, snapshot) {
|
|
|
3157
3170
|
return __generator(this, function (_a) {
|
|
3158
3171
|
switch (_a.label) {
|
|
3159
3172
|
case 0:
|
|
3173
|
+
if (!SNAPSHOT_SUBGRAPH_URL[network]) {
|
|
3174
|
+
return [2 /*return*/, Promise.reject("Delegation subgraph not available for network " + network)];
|
|
3175
|
+
}
|
|
3160
3176
|
spaceIn = ['', space];
|
|
3161
3177
|
if (space.includes('.eth'))
|
|
3162
3178
|
spaceIn.push(space.replace('.eth', ''));
|
package/dist/snapshot.esm.js
CHANGED
|
@@ -1885,6 +1885,19 @@ var networks = {
|
|
|
1885
1885
|
],
|
|
1886
1886
|
explorer: "https://baobab.scope.klaytn.com/",
|
|
1887
1887
|
logo: "ipfs://QmYACyZcidcFtMo4Uf9H6ZKUxTP2TQPjGzNjcUjqYa64dt"
|
|
1888
|
+
},
|
|
1889
|
+
"1002": {
|
|
1890
|
+
key: "1002",
|
|
1891
|
+
name: "KardiaChain Mainnet",
|
|
1892
|
+
shortName: "KAI",
|
|
1893
|
+
chainId: 24,
|
|
1894
|
+
network: "mainnet",
|
|
1895
|
+
multicall: "0xd9c92F2287B7802A37eC9BEce96Aa65fb5f31E1b",
|
|
1896
|
+
rpc: [
|
|
1897
|
+
"https://kai-internal.kardiachain.io"
|
|
1898
|
+
],
|
|
1899
|
+
explorer: "https://explorer.kardiachain.io",
|
|
1900
|
+
logo: "ipfs://QmVH3uyPQDcrPC1DMUWCb7HayMv1oMAiKehuWwP2C2fdgM"
|
|
1888
1901
|
},
|
|
1889
1902
|
"1088": {
|
|
1890
1903
|
key: "1088",
|
|
@@ -3148,6 +3161,9 @@ function getDelegatesBySpace(network, space, snapshot) {
|
|
|
3148
3161
|
return __generator(this, function (_a) {
|
|
3149
3162
|
switch (_a.label) {
|
|
3150
3163
|
case 0:
|
|
3164
|
+
if (!SNAPSHOT_SUBGRAPH_URL[network]) {
|
|
3165
|
+
return [2 /*return*/, Promise.reject("Delegation subgraph not available for network " + network)];
|
|
3166
|
+
}
|
|
3151
3167
|
spaceIn = ['', space];
|
|
3152
3168
|
if (space.includes('.eth'))
|
|
3153
3169
|
spaceIn.push(space.replace('.eth', ''));
|