@talismn/chaindata-provider 0.1.7 → 0.1.9
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/CHANGELOG.md +8 -0
- package/dist/github.d.ts +11 -0
- package/dist/github.js +16 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/github.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ChainId, EvmNetworkId, TokenId } from "./types";
|
|
2
|
+
export declare const githubChaindataBranch = "v3";
|
|
3
|
+
export declare const githubChaindataBaseUrl: string;
|
|
4
|
+
export declare const githubChainsUrl: string;
|
|
5
|
+
export declare const githubTestnetChainsUrl: string;
|
|
6
|
+
export declare const githubEvmNetworksUrl: string;
|
|
7
|
+
export declare const githubTokensUrl: string;
|
|
8
|
+
export declare const githubChainLogoUrl: (chainId: ChainId) => string;
|
|
9
|
+
export declare const githubEvmNetworkLogoUrl: (networkId: EvmNetworkId) => string;
|
|
10
|
+
export declare const githubTokenLogoUrl: (tokenId: TokenId) => string;
|
|
11
|
+
export declare const githubUnknownTokenLogoUrl: string;
|
package/dist/github.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.githubUnknownTokenLogoUrl = exports.githubTokenLogoUrl = exports.githubEvmNetworkLogoUrl = exports.githubChainLogoUrl = exports.githubTokensUrl = exports.githubEvmNetworksUrl = exports.githubTestnetChainsUrl = exports.githubChainsUrl = exports.githubChaindataBaseUrl = exports.githubChaindataBranch = void 0;
|
|
4
|
+
exports.githubChaindataBranch = "v3";
|
|
5
|
+
exports.githubChaindataBaseUrl = `https://raw.githubusercontent.com/TalismanSociety/chaindata/${exports.githubChaindataBranch}`;
|
|
6
|
+
exports.githubChainsUrl = `${exports.githubChaindataBaseUrl}/chaindata.json`;
|
|
7
|
+
exports.githubTestnetChainsUrl = `${exports.githubChaindataBaseUrl}/testnets-chaindata.json`;
|
|
8
|
+
exports.githubEvmNetworksUrl = `${exports.githubChaindataBaseUrl}/evm-networks.json`;
|
|
9
|
+
exports.githubTokensUrl = `${exports.githubChaindataBaseUrl}/tokens.json`;
|
|
10
|
+
const githubChainLogoUrl = (chainId) => `${exports.githubChaindataBaseUrl}/assets/chains/${chainId}.svg`;
|
|
11
|
+
exports.githubChainLogoUrl = githubChainLogoUrl;
|
|
12
|
+
const githubEvmNetworkLogoUrl = (networkId) => `${exports.githubChaindataBaseUrl}/assets/chains/${networkId}.svg`;
|
|
13
|
+
exports.githubEvmNetworkLogoUrl = githubEvmNetworkLogoUrl;
|
|
14
|
+
const githubTokenLogoUrl = (tokenId) => `${exports.githubChaindataBaseUrl}/assets/tokens/${tokenId}.svg`;
|
|
15
|
+
exports.githubTokenLogoUrl = githubTokenLogoUrl;
|
|
16
|
+
exports.githubUnknownTokenLogoUrl = (0, exports.githubTokenLogoUrl)("unknown");
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./ChaindataProvider"), exports);
|
|
18
18
|
__exportStar(require("./types"), exports);
|
|
19
|
+
__exportStar(require("./github"), exports);
|