@chain-registry/utils 0.10.2 → 0.11.0

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
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [0.11.0](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/utils@0.10.2...@chain-registry/utils@0.11.0) (2022-09-20)
7
+
8
+ **Note:** Version bump only for package @chain-registry/utils
9
+
10
+
11
+
12
+
13
+
6
14
  ## [0.10.2](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/utils@0.10.1...@chain-registry/utils@0.10.2) (2022-09-19)
7
15
 
8
16
  **Note:** Version bump only for package @chain-registry/utils
package/main/utils.js CHANGED
@@ -115,22 +115,9 @@ var getIbcDenomByBase = function getIbcDenomByBase(ibc, chain, counterparty, ass
115
115
  }); // if (!assetInfo) {
116
116
  // console.warn('missing referrenced asset');
117
117
  // }
118
- // TODO transition later!
119
118
 
120
119
  var traces = [];
121
120
 
122
- if (assetInfo.ibc) {// traces.push({
123
- // type: 'ibc',
124
- // counterparty: {
125
- // denom: assetInfo.ibc.source_denom,
126
- // channel: assetInfo.ibc.source_channel
127
- // },
128
- // chain: {
129
- // channel: assetInfo.ibc.dst_channel
130
- // }
131
- // });
132
- }
133
-
134
121
  if (assetInfo.traces && assetInfo.traces.length) {
135
122
  [].push.apply(traces, assetInfo.traces);
136
123
  } // console.log(transition);
@@ -252,15 +239,15 @@ var getIbcAssets = function getIbcAssets(chainName, ibc, assets) {
252
239
  type: 'ibc',
253
240
  counterparty: {
254
241
  // source_channel
255
- channel: v.counterparty.channel_id,
242
+ channel_id: v.counterparty.channel_id,
256
243
  // source_denom
257
- denom: asset.denom_units[0].aliases[0],
244
+ base_denom: asset.denom_units[0].aliases[0],
258
245
  chain_name: v.counterparty.chain_name // port: v.counterparty.port_id
259
246
 
260
247
  },
261
248
  chain: {
262
249
  // dst_denom
263
- channel: v.chain.channel_id // chain_name: v.chain.chain_name,
250
+ channel_id: v.chain.channel_id // chain_name: v.chain.chain_name,
264
251
  // port: v.chain.port_id
265
252
 
266
253
  }
@@ -356,15 +343,15 @@ var getCw20Assets = function getCw20Assets(chainName, ibc, assets) {
356
343
  counterparty: {
357
344
  port: v.counterparty.port_id,
358
345
  // source_channel
359
- channel: v.counterparty.channel_id,
346
+ channel_id: v.counterparty.channel_id,
360
347
  // source_denom
361
- denom: asset.denom_units[0].aliases[0],
348
+ base_denom: asset.denom_units[0].aliases[0],
362
349
  chain_name: v.counterparty.chain_name
363
350
  },
364
351
  chain: {
365
352
  // dst_denom
366
353
  port: v.chain.port_id,
367
- channel: v.chain.channel_id // chain_name: v.chain.chain_name,
354
+ channel_id: v.chain.channel_id // chain_name: v.chain.chain_name,
368
355
 
369
356
  }
370
357
  }]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chain-registry/utils",
3
- "version": "0.10.2",
3
+ "version": "0.11.0",
4
4
  "description": "Chain Registry Utils",
5
5
  "author": "Dan Lynch <pyramation@gmail.com>",
6
6
  "homepage": "https://github.com/cosmology-tech/chain-registry",
@@ -73,10 +73,10 @@
73
73
  },
74
74
  "dependencies": {
75
75
  "@babel/runtime": "^7.19.0",
76
- "@chain-registry/types": "^0.10.2",
76
+ "@chain-registry/types": "^0.11.0",
77
77
  "bfs-path": "^1.0.2",
78
78
  "cross-fetch": "^3.1.5",
79
79
  "sha.js": "^2.4.11"
80
80
  },
81
- "gitHead": "e01cbeb19082e4dd1386f958b59be5f2013ca49d"
81
+ "gitHead": "7227af2939d83bdf4e68bd530aa68c14ae5aa18b"
82
82
  }