@chain-registry/utils 0.4.0 → 0.5.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.5.0](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/utils@0.4.0...@chain-registry/utils@0.5.0) (2022-08-23)
7
+
8
+ **Note:** Version bump only for package @chain-registry/utils
9
+
10
+
11
+
12
+
13
+
6
14
  # [0.4.0](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/utils@0.3.1...@chain-registry/utils@0.4.0) (2022-08-20)
7
15
 
8
16
  **Note:** Version bump only for package @chain-registry/utils
package/main/index.js CHANGED
@@ -119,10 +119,10 @@ var getIbcDenomByBase = function getIbcDenomByBase(ibc, chain, counterparty, ass
119
119
  } // TODO transition later!
120
120
 
121
121
 
122
- var transition = [];
122
+ var traces = [];
123
123
 
124
124
  if (assetInfo.ibc) {
125
- transition.push({
125
+ traces.push({
126
126
  type: 'ibc',
127
127
  counterparty: {
128
128
  denom: assetInfo.ibc.source_denom,
@@ -134,8 +134,8 @@ var getIbcDenomByBase = function getIbcDenomByBase(ibc, chain, counterparty, ass
134
134
  });
135
135
  }
136
136
 
137
- if (assetInfo.transition && assetInfo.transition.length) {
138
- [].push.apply(transition, assetInfo.transition);
137
+ if (assetInfo.traces && assetInfo.traces.length) {
138
+ [].push.apply(traces, assetInfo.traces);
139
139
  } // console.log(transition);
140
140
  // if (transition.length) {
141
141
  // return ibcDenom(
@@ -251,7 +251,7 @@ var getIbcAssets = function getIbcAssets(chainName, ibc, assets) {
251
251
  m[v.chain['chain-name']] = m[v.chain['chain-name']] || [];
252
252
  var assets = v.assets.map(function (asset) {
253
253
  return _objectSpread(_objectSpread({}, asset), {}, {
254
- transition: [{
254
+ traces: [{
255
255
  type: 'ibc',
256
256
  counterparty: {
257
257
  // source_channel
@@ -349,7 +349,7 @@ var getCw20Assets = function getCw20Assets(chainName, ibc, assets) {
349
349
  m[v.chain['chain-name']] = m[v.chain['chain-name']] || [];
350
350
  var assets = v.assets.map(function (asset) {
351
351
  return _objectSpread(_objectSpread({}, asset), {}, {
352
- transition: [{
352
+ traces: [{
353
353
  type: 'ibc',
354
354
  counterparty: {
355
355
  port: v.counterparty['port-id'],
package/module/index.js CHANGED
@@ -66,10 +66,10 @@ export const getIbcDenomByBase = (ibc, chain, counterparty, assets, base) => {
66
66
  } // TODO transition later!
67
67
 
68
68
 
69
- const transition = [];
69
+ const traces = [];
70
70
 
71
71
  if (assetInfo.ibc) {
72
- transition.push({
72
+ traces.push({
73
73
  type: 'ibc',
74
74
  counterparty: {
75
75
  denom: assetInfo.ibc.source_denom,
@@ -81,8 +81,8 @@ export const getIbcDenomByBase = (ibc, chain, counterparty, assets, base) => {
81
81
  });
82
82
  }
83
83
 
84
- if (assetInfo.transition && assetInfo.transition.length) {
85
- [].push.apply(transition, assetInfo.transition);
84
+ if (assetInfo.traces && assetInfo.traces.length) {
85
+ [].push.apply(traces, assetInfo.traces);
86
86
  } // console.log(transition);
87
87
  // if (transition.length) {
88
88
  // return ibcDenom(
@@ -189,7 +189,7 @@ export const getIbcAssets = (chainName, ibc, assets) => {
189
189
  m[v.chain['chain-name']] = m[v.chain['chain-name']] || [];
190
190
  const assets = v.assets.map(asset => {
191
191
  return _objectSpread(_objectSpread({}, asset), {}, {
192
- transition: [{
192
+ traces: [{
193
193
  type: 'ibc',
194
194
  counterparty: {
195
195
  // source_channel
@@ -282,7 +282,7 @@ export const getCw20Assets = (chainName, ibc, assets) => {
282
282
  m[v.chain['chain-name']] = m[v.chain['chain-name']] || [];
283
283
  const assets = v.assets.map(asset => {
284
284
  return _objectSpread(_objectSpread({}, asset), {}, {
285
- transition: [{
285
+ traces: [{
286
286
  type: 'ibc',
287
287
  counterparty: {
288
288
  port: v.counterparty['port-id'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chain-registry/utils",
3
- "version": "0.4.0",
3
+ "version": "0.5.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",
@@ -76,8 +76,8 @@
76
76
  },
77
77
  "dependencies": {
78
78
  "@babel/runtime": "^7.18.3",
79
- "@chain-registry/types": "^0.5.0",
79
+ "@chain-registry/types": "^0.6.0",
80
80
  "@keplr-wallet/crypto": "^0.10.11"
81
81
  },
82
- "gitHead": "7b1714a8a4afe11fd7dc893d1e5790997731d2f8"
82
+ "gitHead": "0de5c572ae3b501b60883e50e09779439a7504d6"
83
83
  }