@pioneer-platform/pioneer-sdk 4.20.15 → 4.21.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 +5 -4
- package/dist/index.es.js +5 -4
- package/dist/index.js +5 -4
- package/package.json +1 -1
- package/src/TransactionManager.ts +4 -3
- package/src/txbuilder/templates/thorchain.ts +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2315,7 +2315,7 @@ var thorchainTransferTemplate = (params) => ({
|
|
|
2315
2315
|
to_address: params.to_address,
|
|
2316
2316
|
from_address: params.from_address
|
|
2317
2317
|
},
|
|
2318
|
-
type: "
|
|
2318
|
+
type: "thorchain/MsgSend"
|
|
2319
2319
|
}
|
|
2320
2320
|
],
|
|
2321
2321
|
memo: params.memo,
|
|
@@ -3054,14 +3054,15 @@ class TransactionManager {
|
|
|
3054
3054
|
break;
|
|
3055
3055
|
}
|
|
3056
3056
|
case "cosmos:thorchain-mainnet-v1/slip44:931": {
|
|
3057
|
-
|
|
3057
|
+
const msgType = unsignedTx.signDoc.msgs[0].type;
|
|
3058
|
+
if (msgType === "thorchain/MsgSend" || msgType === "cosmos-sdk/MsgSend") {
|
|
3058
3059
|
const responseSign = await this.keepKeySdk.thorchain.thorchainSignAminoTransfer(unsignedTx);
|
|
3059
3060
|
signedTx = responseSign.serialized;
|
|
3060
|
-
} else if (
|
|
3061
|
+
} else if (msgType === "thorchain/MsgDeposit") {
|
|
3061
3062
|
const responseSign = await this.keepKeySdk.thorchain.thorchainSignAminoDeposit(unsignedTx);
|
|
3062
3063
|
signedTx = responseSign.serialized;
|
|
3063
3064
|
} else {
|
|
3064
|
-
throw new Error(`Unsupported Thorchain message type: ${
|
|
3065
|
+
throw new Error(`Unsupported Thorchain message type: ${msgType}`);
|
|
3065
3066
|
}
|
|
3066
3067
|
break;
|
|
3067
3068
|
}
|
package/dist/index.es.js
CHANGED
|
@@ -2491,7 +2491,7 @@ var thorchainTransferTemplate = (params) => ({
|
|
|
2491
2491
|
to_address: params.to_address,
|
|
2492
2492
|
from_address: params.from_address
|
|
2493
2493
|
},
|
|
2494
|
-
type: "
|
|
2494
|
+
type: "thorchain/MsgSend"
|
|
2495
2495
|
}
|
|
2496
2496
|
],
|
|
2497
2497
|
memo: params.memo,
|
|
@@ -3230,14 +3230,15 @@ class TransactionManager {
|
|
|
3230
3230
|
break;
|
|
3231
3231
|
}
|
|
3232
3232
|
case "cosmos:thorchain-mainnet-v1/slip44:931": {
|
|
3233
|
-
|
|
3233
|
+
const msgType = unsignedTx.signDoc.msgs[0].type;
|
|
3234
|
+
if (msgType === "thorchain/MsgSend" || msgType === "cosmos-sdk/MsgSend") {
|
|
3234
3235
|
const responseSign = await this.keepKeySdk.thorchain.thorchainSignAminoTransfer(unsignedTx);
|
|
3235
3236
|
signedTx = responseSign.serialized;
|
|
3236
|
-
} else if (
|
|
3237
|
+
} else if (msgType === "thorchain/MsgDeposit") {
|
|
3237
3238
|
const responseSign = await this.keepKeySdk.thorchain.thorchainSignAminoDeposit(unsignedTx);
|
|
3238
3239
|
signedTx = responseSign.serialized;
|
|
3239
3240
|
} else {
|
|
3240
|
-
throw new Error(`Unsupported Thorchain message type: ${
|
|
3241
|
+
throw new Error(`Unsupported Thorchain message type: ${msgType}`);
|
|
3241
3242
|
}
|
|
3242
3243
|
break;
|
|
3243
3244
|
}
|
package/dist/index.js
CHANGED
|
@@ -2491,7 +2491,7 @@ var thorchainTransferTemplate = (params) => ({
|
|
|
2491
2491
|
to_address: params.to_address,
|
|
2492
2492
|
from_address: params.from_address
|
|
2493
2493
|
},
|
|
2494
|
-
type: "
|
|
2494
|
+
type: "thorchain/MsgSend"
|
|
2495
2495
|
}
|
|
2496
2496
|
],
|
|
2497
2497
|
memo: params.memo,
|
|
@@ -3230,14 +3230,15 @@ class TransactionManager {
|
|
|
3230
3230
|
break;
|
|
3231
3231
|
}
|
|
3232
3232
|
case "cosmos:thorchain-mainnet-v1/slip44:931": {
|
|
3233
|
-
|
|
3233
|
+
const msgType = unsignedTx.signDoc.msgs[0].type;
|
|
3234
|
+
if (msgType === "thorchain/MsgSend" || msgType === "cosmos-sdk/MsgSend") {
|
|
3234
3235
|
const responseSign = await this.keepKeySdk.thorchain.thorchainSignAminoTransfer(unsignedTx);
|
|
3235
3236
|
signedTx = responseSign.serialized;
|
|
3236
|
-
} else if (
|
|
3237
|
+
} else if (msgType === "thorchain/MsgDeposit") {
|
|
3237
3238
|
const responseSign = await this.keepKeySdk.thorchain.thorchainSignAminoDeposit(unsignedTx);
|
|
3238
3239
|
signedTx = responseSign.serialized;
|
|
3239
3240
|
} else {
|
|
3240
|
-
throw new Error(`Unsupported Thorchain message type: ${
|
|
3241
|
+
throw new Error(`Unsupported Thorchain message type: ${msgType}`);
|
|
3241
3242
|
}
|
|
3242
3243
|
break;
|
|
3243
3244
|
}
|
package/package.json
CHANGED
|
@@ -223,17 +223,18 @@ export class TransactionManager {
|
|
|
223
223
|
break;
|
|
224
224
|
}
|
|
225
225
|
case 'cosmos:thorchain-mainnet-v1/slip44:931': {
|
|
226
|
-
|
|
226
|
+
const msgType = unsignedTx.signDoc.msgs[0].type;
|
|
227
|
+
if (msgType === 'thorchain/MsgSend' || msgType === 'cosmos-sdk/MsgSend') {
|
|
227
228
|
const responseSign =
|
|
228
229
|
await this.keepKeySdk.thorchain.thorchainSignAminoTransfer(unsignedTx);
|
|
229
230
|
signedTx = responseSign.serialized;
|
|
230
|
-
} else if (
|
|
231
|
+
} else if (msgType === 'thorchain/MsgDeposit') {
|
|
231
232
|
const responseSign =
|
|
232
233
|
await this.keepKeySdk.thorchain.thorchainSignAminoDeposit(unsignedTx);
|
|
233
234
|
signedTx = responseSign.serialized;
|
|
234
235
|
} else {
|
|
235
236
|
throw new Error(
|
|
236
|
-
`Unsupported Thorchain message type: ${
|
|
237
|
+
`Unsupported Thorchain message type: ${msgType}`,
|
|
237
238
|
);
|
|
238
239
|
}
|
|
239
240
|
break;
|