Skip to content

Commit 129e5eb

Browse files
committed
refactor: remove deps
1 parent 9adc03f commit 129e5eb

File tree

6 files changed

+106
-3060
lines changed

6 files changed

+106
-3060
lines changed

templates/chain-admin/package.json

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,7 @@
2020
},
2121
"dependencies": {
2222
"@chain-registry/assets": "1.63.5",
23-
"@chain-registry/osmosis": "1.61.3",
24-
"@cosmjs/amino": "0.32.3",
25-
"@cosmjs/cosmwasm-stargate": "0.32.3",
2623
"@cosmjs/stargate": "0.31.1",
27-
"@cosmos-kit/core": "2.13.1",
28-
"@cosmos-kit/react": "2.18.0",
2924
"@interchain-kit/core": "^0.2.1",
3025
"@interchain-kit/keplr-extension": "^0.2.1",
3126
"@interchain-kit/leap-extension": "^0.2.1",
@@ -38,14 +33,11 @@
3833
"ace-builds": "1.35.0",
3934
"bignumber.js": "9.1.2",
4035
"chain-registry": "1.62.3",
41-
"cosmos-kit": "2.18.4",
4236
"dayjs": "1.11.11",
4337
"hyperwebjs": "^0.0.5",
4438
"interchain-kit": "^0.2.1",
45-
"interchain-query": "1.10.1",
4639
"next": "^13",
4740
"node-gzip": "^1.1.2",
48-
"osmo-query": "16.5.1",
4941
"react": "18.2.0",
5042
"react-ace": "11.0.1",
5143
"react-dom": "18.2.0",
@@ -56,7 +48,6 @@
5648
},
5749
"devDependencies": {
5850
"@chain-registry/types": "0.44.3",
59-
"@keplr-wallet/types": "^0.12.111",
6051
"@starship-ci/cli": "^2.10.2",
6152
"@tanstack/react-query-devtools": "4.32.0",
6253
"@types/node": "18.11.9",

templates/chain-admin/utils/asset-list/assets.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

templates/chain-admin/utils/asset-list/base.ts

Lines changed: 0 additions & 96 deletions
This file was deleted.
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
export * from './base';
2-
export * from './assets';
31
export * from './format';
42
export * from './types';

templates/chain-admin/utils/faucet.ts

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,5 @@
1-
import { Asset, Chain } from '@chain-registry/types';
2-
import { ChainInfo, Currency } from '@keplr-wallet/types';
31
import { fromBech32 } from '@cosmjs/encoding';
42

5-
export const makeKeplrChainInfo = (chain: Chain, asset: Asset): ChainInfo => {
6-
const currency: Currency = {
7-
coinDenom: asset.symbol,
8-
coinMinimalDenom: asset.base,
9-
coinDecimals:
10-
asset.denom_units.find(({ denom }) => denom === asset.display)
11-
?.exponent ?? 6,
12-
coinGeckoId: asset.coingecko_id,
13-
coinImageUrl:
14-
asset.logo_URIs?.svg ||
15-
asset.logo_URIs?.png ||
16-
asset.logo_URIs?.jpeg ||
17-
'',
18-
};
19-
20-
return {
21-
rpc: chain.apis?.rpc?.[0].address ?? '',
22-
rest: chain.apis?.rest?.[0].address ?? '',
23-
chainId: chain.chain_id,
24-
chainName: chain.chain_name,
25-
bip44: {
26-
coinType: 118,
27-
},
28-
bech32Config: {
29-
bech32PrefixAccAddr: chain.bech32_prefix,
30-
bech32PrefixAccPub: chain.bech32_prefix + 'pub',
31-
bech32PrefixValAddr: chain.bech32_prefix + 'valoper',
32-
bech32PrefixValPub: chain.bech32_prefix + 'valoperpub',
33-
bech32PrefixConsAddr: chain.bech32_prefix + 'valcons',
34-
bech32PrefixConsPub: chain.bech32_prefix + 'valconspub',
35-
},
36-
currencies: [currency],
37-
feeCurrencies: [
38-
{
39-
...currency,
40-
gasPriceStep: {
41-
low: chain.fees?.fee_tokens[0].low_gas_price ?? 0.0025,
42-
average: chain.fees?.fee_tokens[0].average_gas_price ?? 0.025,
43-
high: chain.fees?.fee_tokens[0].high_gas_price ?? 0.04,
44-
},
45-
},
46-
],
47-
stakeCurrency: currency,
48-
};
49-
};
50-
513
export const creditFromFaucet = async (
524
address: string,
535
denom: string,

0 commit comments

Comments
 (0)