Skip to content

Commit 4d356fa

Browse files
authored
Merge pull request #224 from cosmology-tech/upgrade/chain-reg-upgrade-nov-14
upgrade chain-registry
2 parents f758ce8 + 09548cf commit 4d356fa

File tree

59 files changed

+1971
-2144
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+1971
-2144
lines changed

examples/asset-list/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"@types/react-dom": "18.0.9"
1919
},
2020
"dependencies": {
21-
"@chain-registry/assets": "^1.21.0",
22-
"@chain-registry/types": "0.44.3",
21+
"@chain-registry/assets": "^1.70.32",
22+
"@chain-registry/types": "^0.50.13",
2323
"@cosmjs/amino": "^0.32.3",
2424
"@cosmjs/cosmwasm-stargate": "^0.32.3",
2525
"@cosmjs/stargate": "^0.32.3",
@@ -31,7 +31,7 @@
3131
"@tanstack/react-query": "4.32.0",
3232
"@uidotdev/usehooks": "2.4.1",
3333
"bignumber.js": "^9.1.2",
34-
"chain-registry": "1.20.0",
34+
"chain-registry": "^1.69.32",
3535
"cosmos-kit": "2.18.0",
3636
"fast-fuzzy": "1.12.0",
3737
"framer-motion": "9.0.7",
@@ -53,4 +53,4 @@
5353
"typescript": "^5.1.6"
5454
},
5555
"packageManager": "[email protected]"
56-
}
56+
}

examples/asset-list/pages/_app.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ function CreateCosmosApp({ Component, pageProps }: AppProps) {
5050
return (
5151
<ThemeProvider>
5252
<ChainProvider
53+
// @ts-ignore
5354
chains={chains}
55+
// @ts-ignore
5456
assetLists={assets}
5557
wallets={wallets}
5658
walletConnectOptions={{

examples/asset-list/utils/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import { AssetDenomUnit } from '@chain-registry/types';
1+
import { DenomUnit } from '@chain-registry/types';
22
import { Duration } from 'osmo-query/dist/codegen/google/protobuf/duration';
33
import { Gauge } from 'osmo-query/dist/codegen/osmosis/incentives/gauge';
44
import { SuperfluidAsset } from 'osmo-query/dist/codegen/osmosis/superfluid/superfluid';
55
import { Coin } from 'osmo-query/dist/codegen/cosmos/base/v1beta1/coin';
66
import { Pool } from 'osmo-query/dist/codegen/osmosis/gamm/pool-models/balancer/balancerPool';
77

8-
export type CoinDenom = AssetDenomUnit['denom'];
8+
export type CoinDenom = DenomUnit['denom'];
99

10-
export type Exponent = AssetDenomUnit['exponent'];
10+
export type Exponent = DenomUnit['exponent'];
1111

1212
export type CoinSymbol = string;
1313

examples/asset-list/yarn.lock

Lines changed: 20 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,12 @@ __metadata:
7777
languageName: node
7878
linkType: hard
7979

80-
"@chain-registry/assets@npm:^1.21.0":
81-
version: 1.34.20
82-
resolution: "@chain-registry/assets@npm:1.34.20"
80+
"@chain-registry/assets@npm:^1.70.32":
81+
version: 1.70.40
82+
resolution: "@chain-registry/assets@npm:1.70.40"
8383
dependencies:
84-
"@babel/runtime": "npm:^7.21.0"
85-
"@chain-registry/types": "npm:^0.18.15"
86-
checksum: 10c0/f43eb1ca77f5b3ab17459ca9d61fec8d22d7ff9071704d5706dcd741088f251dc810af91c74dc7a97f8c9ddf08edfc90487e9eb09c0966f61716872a91df59fe
84+
"@chain-registry/types": "npm:^0.50.18"
85+
checksum: 10c0/467f389b1e032042910b1926ae9a7c3391e965a467ca14041a5faa33b4546b44ac67d952923df6a9a5463ff81582ac73177a801ee9dcff782bcf650087a9eb98
8786
languageName: node
8887
linkType: hard
8988

@@ -145,38 +144,13 @@ __metadata:
145144
languageName: node
146145
linkType: hard
147146

148-
"@chain-registry/types@npm:0.44.3":
149-
version: 0.44.3
150-
resolution: "@chain-registry/types@npm:0.44.3"
151-
checksum: 10c0/471e85e934e42ba2704fece7ca0545df5ef98e947a5d10aaefa7872145a21211036740b4b37bb8a33359561b7533c07c22e1608b372efc19be5e2ebd386ac3de
152-
languageName: node
153-
linkType: hard
154-
155147
"@chain-registry/types@npm:0.45.1":
156148
version: 0.45.1
157149
resolution: "@chain-registry/types@npm:0.45.1"
158150
checksum: 10c0/d2008c36e2b9d5b4dfbeae2e4038b956789cf7a70bff85d936fdb76a34a16609952b8b233bd09c3e93eeb9ccde26a5492230d1f3e450b2a7a7b8474df76835a5
159151
languageName: node
160152
linkType: hard
161153

162-
"@chain-registry/types@npm:^0.17.0":
163-
version: 0.17.1
164-
resolution: "@chain-registry/types@npm:0.17.1"
165-
dependencies:
166-
"@babel/runtime": "npm:^7.21.0"
167-
checksum: 10c0/00400f2994c838dbf0a4a6aa01af397d72badbeee82e13095e1ae1e5853a9405f802f0e5629f3aab0cfaa7ec9eae78eb0976001d5a24a7f33d138e2b02edb547
168-
languageName: node
169-
linkType: hard
170-
171-
"@chain-registry/types@npm:^0.18.15":
172-
version: 0.18.15
173-
resolution: "@chain-registry/types@npm:0.18.15"
174-
dependencies:
175-
"@babel/runtime": "npm:^7.21.0"
176-
checksum: 10c0/3acc164760c99d495d691cd3d17631e5a8c0350ea3f0a58565aa8db0db3430fe9c197d1605eedb8ac06d2aa281a9d1446dfe6836ef40c99be8356134341d5c04
177-
languageName: node
178-
linkType: hard
179-
180154
"@chain-registry/types@npm:^0.45.1, @chain-registry/types@npm:^0.45.3":
181155
version: 0.45.3
182156
resolution: "@chain-registry/types@npm:0.45.3"
@@ -191,6 +165,13 @@ __metadata:
191165
languageName: node
192166
linkType: hard
193167

168+
"@chain-registry/types@npm:^0.50.13, @chain-registry/types@npm:^0.50.18":
169+
version: 0.50.18
170+
resolution: "@chain-registry/types@npm:0.50.18"
171+
checksum: 10c0/a7b5ca5b42fbf80a98e802372fe64602c1ac3cef8b3cb20ba8e444cd2613a07ab3b26d5049eb00fbcb578836050a859c78f722c8a414ae1525043860fa0709e0
172+
languageName: node
173+
linkType: hard
174+
194175
"@chain-registry/utils@npm:^1.46.1, @chain-registry/utils@npm:^1.46.4":
195176
version: 1.46.4
196177
resolution: "@chain-registry/utils@npm:1.46.4"
@@ -557,8 +538,8 @@ __metadata:
557538
version: 0.0.0-use.local
558539
resolution: "@cosmology/asset-list@workspace:."
559540
dependencies:
560-
"@chain-registry/assets": "npm:^1.21.0"
561-
"@chain-registry/types": "npm:0.44.3"
541+
"@chain-registry/assets": "npm:^1.70.32"
542+
"@chain-registry/types": "npm:^0.50.13"
562543
"@cosmjs/amino": "npm:^0.32.3"
563544
"@cosmjs/cosmwasm-stargate": "npm:^0.32.3"
564545
"@cosmjs/stargate": "npm:^0.32.3"
@@ -574,7 +555,7 @@ __metadata:
574555
"@types/react-dom": "npm:^18.3.0"
575556
"@uidotdev/usehooks": "npm:2.4.1"
576557
bignumber.js: "npm:^9.1.2"
577-
chain-registry: "npm:1.20.0"
558+
chain-registry: "npm:^1.69.32"
578559
cosmos-kit: "npm:2.18.0"
579560
eslint: "npm:^8.56.0"
580561
eslint-config-next: "npm:^14.1.0"
@@ -5720,13 +5701,12 @@ __metadata:
57205701
languageName: node
57215702
linkType: hard
57225703

5723-
"chain-registry@npm:1.20.0":
5724-
version: 1.20.0
5725-
resolution: "chain-registry@npm:1.20.0"
5704+
"chain-registry@npm:^1.69.32":
5705+
version: 1.69.40
5706+
resolution: "chain-registry@npm:1.69.40"
57265707
dependencies:
5727-
"@babel/runtime": "npm:^7.21.0"
5728-
"@chain-registry/types": "npm:^0.17.0"
5729-
checksum: 10c0/f2d4b23bc2b8607fc4de05fa34949eaa183a563afb07f718c039c2be151fa6fbd86e9a3c998dc6ca1b7ab9440bfbc1e1218aff51f0e681f9915788269e95a9da
5708+
"@chain-registry/types": "npm:^0.50.18"
5709+
checksum: 10c0/170ce11574ad1386b90c46fa43d955e8b22ec039bff992cac23d5146e0e99fc42c9d2d2035dbae88b6127888f171bcb60d89f30c626f957e1a1bdc7279020312
57305710
languageName: node
57315711
linkType: hard
57325712

examples/authz/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
"@types/react-dom": "18.0.9"
3535
},
3636
"dependencies": {
37-
"@chain-registry/client": "1.11.0",
38-
"@chain-registry/types": "0.17.0",
37+
"@chain-registry/client": "^1.53.13",
38+
"@chain-registry/types": "^0.50.13",
3939
"@cosmjs/amino": "0.32.4",
4040
"@cosmjs/cosmwasm-stargate": "0.32.4",
4141
"@cosmjs/encoding": "^0.32.4",
@@ -48,7 +48,7 @@
4848
"@interchain-ui/react-no-ssr": "^0.1.6",
4949
"@tanstack/react-query": "4.32.0",
5050
"bignumber.js": "9.1.0",
51-
"chain-registry": "1.20.0",
51+
"chain-registry": "^1.69.32",
5252
"cosmos-kit": "2.18.0",
5353
"dayjs": "1.11.10",
5454
"fast-fuzzy": "^1.12.0",
@@ -83,4 +83,4 @@
8383
"typescript": "^5.1.6"
8484
},
8585
"packageManager": "[email protected]"
86-
}
86+
}

examples/authz/utils/vote.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
import { getChainAssets } from './chain';
99

1010
export function getChainLogo(chain: Chain) {
11-
return chain.logo_URIs?.svg || chain.logo_URIs?.png || chain.logo_URIs?.jpeg;
11+
return chain.logo_URIs?.svg || chain.logo_URIs?.png;
1212
}
1313

1414
export function formatDate(date?: Date) {
@@ -29,10 +29,10 @@ export function paginate(limit: bigint, reverse: boolean = false) {
2929
export function percent(num: number | string = 0, total: number, decimals = 2) {
3030
return total
3131
? new BigNumber(num)
32-
.dividedBy(total)
33-
.multipliedBy(100)
34-
.decimalPlaces(decimals)
35-
.toNumber()
32+
.dividedBy(total)
33+
.multipliedBy(100)
34+
.decimalPlaces(decimals)
35+
.toNumber()
3636
: 0;
3737
}
3838

examples/authz/yarn.lock

Lines changed: 35 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1515,19 +1515,6 @@ __metadata:
15151515
languageName: node
15161516
linkType: hard
15171517

1518-
"@chain-registry/client@npm:1.11.0":
1519-
version: 1.11.0
1520-
resolution: "@chain-registry/client@npm:1.11.0"
1521-
dependencies:
1522-
"@babel/runtime": "npm:^7.21.0"
1523-
"@chain-registry/types": "npm:^0.16.0"
1524-
"@chain-registry/utils": "npm:^1.10.0"
1525-
bfs-path: "npm:^1.0.2"
1526-
cross-fetch: "npm:^3.1.5"
1527-
checksum: 10c0/89cffedfc308d6338910d7981c3d3d9e1f0fa75ca47b0672147be3607ca995d6de345cdc291f621dab7fd507f5e3907abf548a596de9dbfa450a11119ef55642
1528-
languageName: node
1529-
linkType: hard
1530-
15311518
"@chain-registry/client@npm:^1.48.1":
15321519
version: 1.48.3
15331520
resolution: "@chain-registry/client@npm:1.48.3"
@@ -1540,6 +1527,18 @@ __metadata:
15401527
languageName: node
15411528
linkType: hard
15421529

1530+
"@chain-registry/client@npm:^1.53.13":
1531+
version: 1.53.18
1532+
resolution: "@chain-registry/client@npm:1.53.18"
1533+
dependencies:
1534+
"@chain-registry/types": "npm:^0.50.18"
1535+
"@chain-registry/utils": "npm:^1.51.18"
1536+
bfs-path: "npm:^1.0.2"
1537+
cross-fetch: "npm:^3.1.5"
1538+
checksum: 10c0/55b0a02d8ac53bd195ce61146b1014f92f120443093c177949bd55fa369618a6a9d59ac138d7b4d8382abb43bb479701cf47c061bf67dca2954c86312c182ac5
1539+
languageName: node
1540+
linkType: hard
1541+
15431542
"@chain-registry/cosmostation@npm:1.66.2":
15441543
version: 1.66.2
15451544
resolution: "@chain-registry/cosmostation@npm:1.66.2"
@@ -1586,49 +1585,13 @@ __metadata:
15861585
languageName: node
15871586
linkType: hard
15881587

1589-
"@chain-registry/types@npm:0.17.0":
1590-
version: 0.17.0
1591-
resolution: "@chain-registry/types@npm:0.17.0"
1592-
dependencies:
1593-
"@babel/runtime": "npm:^7.21.0"
1594-
checksum: 10c0/e4a32546e350240560b1339a3dcb6426eede1569ba9d17b0d6b5eeacd79fb643f347c21ea7f5ba147185c9ad2e19eea44dff248d8e1bf27e882511398812bfe4
1595-
languageName: node
1596-
linkType: hard
1597-
15981588
"@chain-registry/types@npm:0.45.1":
15991589
version: 0.45.1
16001590
resolution: "@chain-registry/types@npm:0.45.1"
16011591
checksum: 10c0/d2008c36e2b9d5b4dfbeae2e4038b956789cf7a70bff85d936fdb76a34a16609952b8b233bd09c3e93eeb9ccde26a5492230d1f3e450b2a7a7b8474df76835a5
16021592
languageName: node
16031593
linkType: hard
16041594

1605-
"@chain-registry/types@npm:^0.16.0":
1606-
version: 0.16.0
1607-
resolution: "@chain-registry/types@npm:0.16.0"
1608-
dependencies:
1609-
"@babel/runtime": "npm:^7.21.0"
1610-
checksum: 10c0/6101d2ce519d9982d4d40bd47dd2056d60db48d87823aa6e17d45a954b0e0ca755cfc0d1c90d9e815de8f4ab1c62d55267205c4fd8b4cbd9f4a7df1752f3b4bc
1611-
languageName: node
1612-
linkType: hard
1613-
1614-
"@chain-registry/types@npm:^0.17.0":
1615-
version: 0.17.1
1616-
resolution: "@chain-registry/types@npm:0.17.1"
1617-
dependencies:
1618-
"@babel/runtime": "npm:^7.21.0"
1619-
checksum: 10c0/00400f2994c838dbf0a4a6aa01af397d72badbeee82e13095e1ae1e5853a9405f802f0e5629f3aab0cfaa7ec9eae78eb0976001d5a24a7f33d138e2b02edb547
1620-
languageName: node
1621-
linkType: hard
1622-
1623-
"@chain-registry/types@npm:^0.18.15":
1624-
version: 0.18.15
1625-
resolution: "@chain-registry/types@npm:0.18.15"
1626-
dependencies:
1627-
"@babel/runtime": "npm:^7.21.0"
1628-
checksum: 10c0/3acc164760c99d495d691cd3d17631e5a8c0350ea3f0a58565aa8db0db3430fe9c197d1605eedb8ac06d2aa281a9d1446dfe6836ef40c99be8356134341d5c04
1629-
languageName: node
1630-
linkType: hard
1631-
16321595
"@chain-registry/types@npm:^0.45.1, @chain-registry/types@npm:^0.45.3":
16331596
version: 0.45.3
16341597
resolution: "@chain-registry/types@npm:0.45.3"
@@ -1643,15 +1606,10 @@ __metadata:
16431606
languageName: node
16441607
linkType: hard
16451608

1646-
"@chain-registry/utils@npm:^1.10.0":
1647-
version: 1.19.14
1648-
resolution: "@chain-registry/utils@npm:1.19.14"
1649-
dependencies:
1650-
"@babel/runtime": "npm:^7.21.0"
1651-
"@chain-registry/types": "npm:^0.18.15"
1652-
bignumber.js: "npm:9.1.1"
1653-
sha.js: "npm:^2.4.11"
1654-
checksum: 10c0/95fd1fa9cd86848df29170b3e1f1560cace88abca8fce807cd61093eb6cba4e9efc57e64d37e07e2b163affca7b24191cfa072ef6a9067fcdc2a5497a5f137e7
1609+
"@chain-registry/types@npm:^0.50.13, @chain-registry/types@npm:^0.50.18":
1610+
version: 0.50.18
1611+
resolution: "@chain-registry/types@npm:0.50.18"
1612+
checksum: 10c0/a7b5ca5b42fbf80a98e802372fe64602c1ac3cef8b3cb20ba8e444cd2613a07ab3b26d5049eb00fbcb578836050a859c78f722c8a414ae1525043860fa0709e0
16551613
languageName: node
16561614
linkType: hard
16571615

@@ -1677,6 +1635,17 @@ __metadata:
16771635
languageName: node
16781636
linkType: hard
16791637

1638+
"@chain-registry/utils@npm:^1.51.18":
1639+
version: 1.51.18
1640+
resolution: "@chain-registry/utils@npm:1.51.18"
1641+
dependencies:
1642+
"@chain-registry/types": "npm:^0.50.18"
1643+
bignumber.js: "npm:9.1.2"
1644+
sha.js: "npm:^2.4.11"
1645+
checksum: 10c0/ee000fd1a1d10c1739e07437c9bc4905a415e12b3dd056a7e44387fbea9cc4eb12d27812bd499dd14a5276b1bfad58feaa37c6e97fcbbbdd413712acc2089218
1646+
languageName: node
1647+
linkType: hard
1648+
16801649
"@classic-terra/terra.proto@npm:^1.1.0":
16811650
version: 1.1.0
16821651
resolution: "@classic-terra/terra.proto@npm:1.1.0"
@@ -2282,8 +2251,8 @@ __metadata:
22822251
version: 0.0.0-use.local
22832252
resolution: "@cosmology/authz@workspace:."
22842253
dependencies:
2285-
"@chain-registry/client": "npm:1.11.0"
2286-
"@chain-registry/types": "npm:0.17.0"
2254+
"@chain-registry/client": "npm:^1.53.13"
2255+
"@chain-registry/types": "npm:^0.50.13"
22872256
"@confio/relayer": "npm:0.7.0"
22882257
"@cosmjs/amino": "npm:0.32.4"
22892258
"@cosmjs/cosmwasm-stargate": "npm:0.32.4"
@@ -2307,7 +2276,7 @@ __metadata:
23072276
"@types/react": "npm:18.2.0"
23082277
"@types/react-dom": "npm:18.2.0"
23092278
bignumber.js: "npm:9.1.0"
2310-
chain-registry: "npm:1.20.0"
2279+
chain-registry: "npm:^1.69.32"
23112280
cosmos-kit: "npm:2.18.0"
23122281
dayjs: "npm:1.11.10"
23132282
eslint: "npm:8.28.0"
@@ -8050,13 +8019,6 @@ __metadata:
80508019
languageName: node
80518020
linkType: hard
80528021

8053-
"bignumber.js@npm:9.1.1":
8054-
version: 9.1.1
8055-
resolution: "bignumber.js@npm:9.1.1"
8056-
checksum: 10c0/950312b15d038ae06028c8a6901fb4efd57fa889ada8c887cebd856e79f2fc9667641bebfb2e2ea4cc694e663fd55c1fe6e62a7e8fe40bbdebdf92269537b802
8057-
languageName: node
8058-
linkType: hard
8059-
80608022
"bignumber.js@npm:9.1.2, bignumber.js@npm:^9.1.2":
80618023
version: 9.1.2
80628024
resolution: "bignumber.js@npm:9.1.2"
@@ -8439,13 +8401,12 @@ __metadata:
84398401
languageName: node
84408402
linkType: hard
84418403

8442-
"chain-registry@npm:1.20.0":
8443-
version: 1.20.0
8444-
resolution: "chain-registry@npm:1.20.0"
8404+
"chain-registry@npm:^1.69.32":
8405+
version: 1.69.40
8406+
resolution: "chain-registry@npm:1.69.40"
84458407
dependencies:
8446-
"@babel/runtime": "npm:^7.21.0"
8447-
"@chain-registry/types": "npm:^0.17.0"
8448-
checksum: 10c0/f2d4b23bc2b8607fc4de05fa34949eaa183a563afb07f718c039c2be151fa6fbd86e9a3c998dc6ca1b7ab9440bfbc1e1218aff51f0e681f9915788269e95a9da
8408+
"@chain-registry/types": "npm:^0.50.18"
8409+
checksum: 10c0/170ce11574ad1386b90c46fa43d955e8b22ec039bff992cac23d5146e0e99fc42c9d2d2035dbae88b6127888f171bcb60d89f30c626f957e1a1bdc7279020312
84498410
languageName: node
84508411
linkType: hard
84518412

0 commit comments

Comments
 (0)