@vultisig/core-chain 2.22.0 → 2.22.2
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
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @vultisig/core-chain
|
|
2
2
|
|
|
3
|
+
## 2.22.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#921](https://github.com/vultisig/vultisig-sdk/pull/921) [`6eff99f`](https://github.com/vultisig/vultisig-sdk/commit/6eff99fa08f0d2511eab95304c0a0c973944db2e) Thanks [@gomesalexandre](https://github.com/gomesalexandre)! - refactor(cardano): attach CIP-20 memo via WalletCore native auxiliary_data
|
|
8
|
+
|
|
9
|
+
Bumps `@trustwallet/wallet-core` to `4.7.0`, which adds the Cardano
|
|
10
|
+
`SigningInput.auxiliary_data` field. The Cardano memo path now hands the
|
|
11
|
+
CIP-20 CBOR straight to WalletCore, which commits its Blake2b-256 hash into
|
|
12
|
+
tx body key 7 and embeds the bytes in the signed transaction — replacing the
|
|
13
|
+
client-side body patching and re-hashing in TypeScript. The chain-specific
|
|
14
|
+
fee estimator prices the WalletCore body as-is (it already carries key 7),
|
|
15
|
+
and the now-unused `patchTxBodyWithAuxHash` helper is removed.
|
|
16
|
+
|
|
17
|
+
- [#924](https://github.com/vultisig/vultisig-sdk/pull/924) [`d08a476`](https://github.com/vultisig/vultisig-sdk/commit/d08a47696d0cb1c8dbcb50d41830b9eae16b6d8c) Thanks [@johnnyluo](https://github.com/johnnyluo)! - fix(terra-classic): align send gas limit with iOS/Android for cross-device co-signing
|
|
18
|
+
|
|
19
|
+
Corrects the Terra Classic send gas limit in `cosmosGasLimitRecord` so it matches
|
|
20
|
+
the values used by the iOS and Android clients. When co-signing across devices, a
|
|
21
|
+
mismatched gas limit produces a different transaction hash and the signing session
|
|
22
|
+
fails; aligning the record keeps the payload identical across platforms.
|
|
23
|
+
|
|
24
|
+
## 2.22.1
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- Updated dependencies [[`6302825`](https://github.com/vultisig/vultisig-sdk/commit/63028250c7a17bf165046f0bb0c2263354dab66a)]:
|
|
29
|
+
- @vultisig/lib-utils@0.10.4
|
|
30
|
+
|
|
3
31
|
## 2.22.0
|
|
4
32
|
|
|
5
33
|
### Minor Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cosmosGasLimitRecord.d.ts","sourceRoot":"","sources":["../../../../../../packages/core/chain/chains/cosmos/cosmosGasLimitRecord.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,WAAW,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAEtF,OAAO,
|
|
1
|
+
{"version":3,"file":"cosmosGasLimitRecord.d.ts","sourceRoot":"","sources":["../../../../../../packages/core/chain/chains/cosmos/cosmosGasLimitRecord.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,WAAW,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAEtF,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAuBzC,eAAO,MAAM,iBAAiB,GAAI,MAAM,OAAO,CAAC,WAAW,CAAC,KAAG,MAE9D,CAAA;AAmCD,KAAK,6BAA6B,GAAG;IACnC,KAAK,EAAE,qBAAqB,CAAA;IAC5B;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,wBAAwB,GAAI,qBAAyB,6BAA6B,KAAG,MAejG,CAAA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Chain } from '@vultisig/core-chain/Chain';
|
|
2
|
-
import { areEqualCoins } from '../../coin/Coin.js';
|
|
3
2
|
const cosmosGasLimitRecord = {
|
|
4
3
|
[Chain.Cosmos]: 200000n,
|
|
5
4
|
[Chain.Osmosis]: 300000n,
|
|
@@ -8,20 +7,19 @@ const cosmosGasLimitRecord = {
|
|
|
8
7
|
[Chain.Noble]: 200000n,
|
|
9
8
|
[Chain.Akash]: 200000n,
|
|
10
9
|
[Chain.Terra]: 300000n,
|
|
11
|
-
// TerraClassic
|
|
12
|
-
//
|
|
13
|
-
//
|
|
14
|
-
//
|
|
15
|
-
//
|
|
16
|
-
// so
|
|
17
|
-
|
|
10
|
+
// TerraClassic must stay byte-for-byte in sync with iOS
|
|
11
|
+
// (TerraHelperStruct.GasLimit) and Android (CosmosHelper.getChainGasLimit)
|
|
12
|
+
// so cross-device co-signing produces the same SignDoc — the gas limit is
|
|
13
|
+
// part of the pre-sign image. Both mobile clients hardcode 300000 for
|
|
14
|
+
// every columbus-5 send denom (uluna, uusd bank denoms, IBC transfers,
|
|
15
|
+
// wasm), so this is a single value with no per-denom override. The burn
|
|
16
|
+
// tax on non-uluna bank denoms is carried in the fee AMOUNT (precomputed
|
|
17
|
+
// upstream), not the gas limit.
|
|
18
|
+
[Chain.TerraClassic]: 300000n,
|
|
18
19
|
[Chain.THORChain]: 20000000n,
|
|
19
20
|
[Chain.MayaChain]: 2000000000n,
|
|
20
21
|
};
|
|
21
22
|
export const getCosmosGasLimit = (coin) => {
|
|
22
|
-
if (areEqualCoins(coin, { chain: Chain.TerraClassic, id: 'uusd' })) {
|
|
23
|
-
return 1000000n;
|
|
24
|
-
}
|
|
25
23
|
return cosmosGasLimitRecord[coin.chain];
|
|
26
24
|
};
|
|
27
25
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cosmosGasLimitRecord.js","sourceRoot":"","sources":["../../../../../../packages/core/chain/chains/cosmos/cosmosGasLimitRecord.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAsC,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"cosmosGasLimitRecord.js","sourceRoot":"","sources":["../../../../../../packages/core/chain/chains/cosmos/cosmosGasLimitRecord.ts"],"names":[],"mappings":"AAAA,OAAO,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,CAAC,KAAK,CAAC,YAAY,CAAC,EAAE,QAAU;CACjC,CAAA;AAaD;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,EAAE,KAAK,EAAE,QAAQ,GAAG,CAAC,EAAiC,EAAU,EAAE;IACzG,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,QAAQ,GAAG,CAAC,EAAE,CAAC;QAChD,MAAM,IAAI,KAAK,CAAC,0EAA0E,QAAQ,EAAE,CAAC,CAAA;IACvG,CAAC;IAED,MAAM,IAAI,GAAG,2BAA2B,CAAC,KAAK,CAAC,CAAA;IAE/C,8EAA8E;IAC9E,4EAA4E;IAC5E,6EAA6E;IAC7E,0EAA0E;IAC1E,IAAI,KAAK,KAAK,KAAK,CAAC,YAAY;QAAE,OAAO,IAAI,CAAA;IAE7C,MAAM,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAA;IACvC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,IAAI,CAAC,GAAG,EAAE,CAAA;AACtC,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vultisig/core-chain",
|
|
3
|
-
"version": "2.22.
|
|
3
|
+
"version": "2.22.2",
|
|
4
4
|
"description": "Blockchain chain logic shared across Vultisig clients",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -2028,9 +2028,9 @@
|
|
|
2028
2028
|
"@solana/web3.js": "^1.98.4",
|
|
2029
2029
|
"@ton/core": "^0.63.1",
|
|
2030
2030
|
"@ton/crypto": "^3.3.0",
|
|
2031
|
-
"@trustwallet/wallet-core": "^4.
|
|
2031
|
+
"@trustwallet/wallet-core": "^4.7.0",
|
|
2032
2032
|
"@vultisig/core-config": "0.9.1",
|
|
2033
|
-
"@vultisig/lib-utils": "0.10.
|
|
2033
|
+
"@vultisig/lib-utils": "0.10.4",
|
|
2034
2034
|
"bip32": "^5.0.1",
|
|
2035
2035
|
"bitcoinjs-lib": "^7.0.1",
|
|
2036
2036
|
"bs58": "^6.0.0",
|