@shapeshiftoss/unchained-client 10.11.0 → 10.12.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.
@@ -16,7 +16,9 @@ const getAssetIdByDenom = (denom, assetId) => {
16
16
  if (assetIdByDenom.has(denom))
17
17
  return assetIdByDenom.get(denom);
18
18
  const { chainId } = (0, caip_1.fromAssetId)(assetId);
19
- const [assetNamespace, assetReference] = denom.split('/');
19
+ const [assetNamespace, assetReference] = denom.includes('gamm/pool')
20
+ ? [caip_1.ASSET_NAMESPACE.ibc, denom]
21
+ : denom.split('/');
20
22
  if (assetNamespace === 'ibc' && assetReference) {
21
23
  return (0, caip_1.toAssetId)({ chainId, assetNamespace, assetReference });
22
24
  }
@@ -101,6 +103,18 @@ const metaData = (msg, event, assetId) => {
101
103
  parser: 'swap',
102
104
  method: msg.type,
103
105
  };
106
+ case 'join_pool':
107
+ return {
108
+ parser: 'lp',
109
+ method: msg.type,
110
+ pool: event['pool_joined']['pool_id'],
111
+ };
112
+ case 'exit_pool':
113
+ return {
114
+ parser: 'lp',
115
+ method: msg.type,
116
+ pool: event['pool_exited']['pool_id'],
117
+ };
104
118
  case 'send':
105
119
  // known message types with no applicable metadata
106
120
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shapeshiftoss/unchained-client",
3
- "version": "10.11.0",
3
+ "version": "10.12.0",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "source": "src/index.ts",