@pioneer-platform/pioneer-sdk 4.19.0 → 4.20.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/dist/index.cjs CHANGED
@@ -2295,9 +2295,9 @@ async function createUnsignedTendermintTx(caip, type, amount, memo, pubkeys, pio
2295
2295
  case "cosmos:mayachain-mainnet-v1": {
2296
2296
  let mayaAsset;
2297
2297
  if (caip.includes("/denom:maya")) {
2298
- mayaAsset = "MAYA.MAYA";
2298
+ mayaAsset = "maya";
2299
2299
  } else if (caip.includes("/slip44:931")) {
2300
- mayaAsset = "MAYA.CACAO";
2300
+ mayaAsset = "cacao";
2301
2301
  } else {
2302
2302
  throw new Error(`Unsupported Maya chain CAIP: ${caip}`);
2303
2303
  }
package/dist/index.es.js CHANGED
@@ -2470,9 +2470,9 @@ async function createUnsignedTendermintTx(caip, type, amount, memo, pubkeys, pio
2470
2470
  case "cosmos:mayachain-mainnet-v1": {
2471
2471
  let mayaAsset;
2472
2472
  if (caip.includes("/denom:maya")) {
2473
- mayaAsset = "MAYA.MAYA";
2473
+ mayaAsset = "maya";
2474
2474
  } else if (caip.includes("/slip44:931")) {
2475
- mayaAsset = "MAYA.CACAO";
2475
+ mayaAsset = "cacao";
2476
2476
  } else {
2477
2477
  throw new Error(`Unsupported Maya chain CAIP: ${caip}`);
2478
2478
  }
package/dist/index.js CHANGED
@@ -2470,9 +2470,9 @@ async function createUnsignedTendermintTx(caip, type, amount, memo, pubkeys, pio
2470
2470
  case "cosmos:mayachain-mainnet-v1": {
2471
2471
  let mayaAsset;
2472
2472
  if (caip.includes("/denom:maya")) {
2473
- mayaAsset = "MAYA.MAYA";
2473
+ mayaAsset = "maya";
2474
2474
  } else if (caip.includes("/slip44:931")) {
2475
- mayaAsset = "MAYA.CACAO";
2475
+ mayaAsset = "cacao";
2476
2476
  } else {
2477
2477
  throw new Error(`Unsupported Maya chain CAIP: ${caip}`);
2478
2478
  }
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "author": "highlander",
3
3
  "name": "@pioneer-platform/pioneer-sdk",
4
- "version": "4.19.0",
4
+ "version": "4.20.0",
5
5
  "dependencies": {
6
6
  "@keepkey/keepkey-sdk": "^0.2.62",
7
- "@pioneer-platform/loggerdog": "^8.10.0",
8
- "@pioneer-platform/pioneer-caip": "^9.9.0",
9
- "@pioneer-platform/pioneer-client": "^9.9.0",
10
- "@pioneer-platform/pioneer-coins": "^9.10.0",
11
- "@pioneer-platform/pioneer-discovery": "^0.7.0",
12
- "@pioneer-platform/pioneer-events": "^8.10.0",
7
+ "@pioneer-platform/loggerdog": "^8.11.0",
8
+ "@pioneer-platform/pioneer-caip": "^9.10.0",
9
+ "@pioneer-platform/pioneer-client": "^9.10.0",
10
+ "@pioneer-platform/pioneer-coins": "^9.11.0",
11
+ "@pioneer-platform/pioneer-discovery": "^0.8.0",
12
+ "@pioneer-platform/pioneer-events": "^8.11.0",
13
13
  "coinselect": "^3.1.13",
14
14
  "eventemitter3": "^5.0.1",
15
15
  "neotraverse": "^0.6.8"
@@ -136,12 +136,13 @@ export async function createUnsignedTendermintTx(
136
136
  }
137
137
 
138
138
  case 'cosmos:mayachain-mainnet-v1': {
139
- // Determine the correct asset based on CAIP
139
+ // Determine the correct native denomination based on CAIP
140
+ // NOTE: Use native chain denominations, NOT asset identifiers (e.g., 'cacao' not 'MAYA.CACAO')
140
141
  let mayaAsset: string;
141
142
  if (caip.includes('/denom:maya')) {
142
- mayaAsset = 'MAYA.MAYA'; // MAYA token
143
+ mayaAsset = 'maya'; // MAYA token (native denomination)
143
144
  } else if (caip.includes('/slip44:931')) {
144
- mayaAsset = 'MAYA.CACAO'; // CACAO (native)
145
+ mayaAsset = 'cacao'; // CACAO (native denomination)
145
146
  } else {
146
147
  throw new Error(`Unsupported Maya chain CAIP: ${caip}`);
147
148
  }