graz 0.0.42-alpha.2 → 0.0.42

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.
@@ -1,4 +0,0 @@
1
- /* eslint-disable */
2
- import type { AssetList } from "../../dist";
3
- declare const assetlist: AssetList;
4
- export default assetlist;
@@ -1,4 +0,0 @@
1
- /* eslint-disable */
2
- import type { Chain } from "../../dist";
3
- declare const chain: Chain;
4
- export default chain;
@@ -1,4 +0,0 @@
1
- /* eslint-disable */
2
- import type { ChainInfo } from "@keplr-wallet/types";
3
- declare const chainInfo: ChainInfo;
4
- export default chainInfo;
@@ -1,20 +0,0 @@
1
- /* eslint-disable */
2
- import type { ChainInfo } from "@keplr-wallet/types";
3
- import type { AssetList, Chain } from "../dist";
4
- export type ChainName = "REPLACE_ME_PLS";
5
- export interface ChainData {
6
- assetlist: AssetList;
7
- chain: Chain;
8
- chainInfo: ChainInfo;
9
- }
10
- type ReturnTuple<T> = T extends readonly [ChainName, ...infer Rest]
11
- ? [ChainData, ...ReturnTuple<Rest>]
12
- : [];
13
- export const mainnetChains: Record<ChainName, Chain>;
14
- export const testnetChains: Record<ChainName, Chain>;
15
- export const mainnetChainNames: ChainName[];
16
- export const testnetChainNames: ChainName[];
17
- export const getChainData: <T extends ChainName>(chainName: T | T[]) => Record<T, ChainData>;
18
- export const getChainDataArray: <T extends ChainName, const U extends T | readonly T[]>(
19
- chainName: U,
20
- ) => U extends T ? [ChainData] : U extends readonly T[] ? ReturnTuple<U> : never;
@@ -1,54 +0,0 @@
1
- /* eslint-disable */
2
-
3
- const mainnetChains = {};
4
- const testnetChains = {};
5
-
6
- const mainnetChainNames = [];
7
- const testnetChainNames = [];
8
-
9
- const getChainData = (pathOrPaths) => {
10
- const paths = Array.isArray(pathOrPaths) ? pathOrPaths : [pathOrPaths];
11
- const chainData = {};
12
- for (const path of paths) {
13
- chainData[path] = {
14
- get chainInfo() {
15
- return require(`./${path}`);
16
- },
17
- get chain() {
18
- return require(`./${path}/chain`);
19
- },
20
- get assetlist() {
21
- return require(`./${path}/assetlist`);
22
- },
23
- };
24
- }
25
- return chainData;
26
- };
27
-
28
- const getChainDataArray = (pathOrPaths) => {
29
- const paths = Array.isArray(pathOrPaths) ? pathOrPaths : [pathOrPaths];
30
- const chainData = [];
31
- for (const path of paths) {
32
- chainData.push({
33
- get chainInfo() {
34
- return require(`./${path}`);
35
- },
36
- get chain() {
37
- return require(`./${path}/chain`);
38
- },
39
- get assetlist() {
40
- return require(`./${path}/assetlist`);
41
- },
42
- });
43
- }
44
- return chainData;
45
- };
46
-
47
- module.exports = {
48
- mainnetChains,
49
- testnetChains,
50
- mainnetChainNames,
51
- testnetChainNames,
52
- getChainData,
53
- getChainDataArray,
54
- };