@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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @talismn/chaindata-provider
2
2
 
3
+ ## 0.1.9
4
+
5
+ ### Patch Changes
6
+
7
+ - 8ecb8214: fix: get token logo urls from chaindata-provider
8
+
9
+ ## 0.1.8
10
+
3
11
  ## 0.1.7
4
12
 
5
13
  ## 0.1.6
@@ -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
@@ -1,2 +1,3 @@
1
1
  export * from "./ChaindataProvider";
2
2
  export * from "./types";
3
+ export * from "./github";
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talismn/chaindata-provider",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "author": "Talisman",
5
5
  "homepage": "https://talisman.xyz",
6
6
  "license": "UNLICENSED",