@vultisig/sdk 2.19.10 → 2.19.11
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,11 @@
|
|
|
1
1
|
# @vultisig/sdk
|
|
2
2
|
|
|
3
|
+
## 2.19.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1086](https://github.com/vultisig/vultisig-sdk/pull/1086) [`3bf18a1`](https://github.com/vultisig/vultisig-sdk/commit/3bf18a18606fd1b45d50abb562eb6c3011182d48) Thanks [@gomesalexandre](https://github.com/gomesalexandre)! - Fail closed when TON wallet-info RPC calls return transport or body-level errors instead of defaulting to uninitialized wallet state.
|
|
8
|
+
|
|
3
9
|
## 2.19.10
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -1235,9 +1235,20 @@ declare function getTonBalance$1(address: string, gatewayUrl: string): Promise<b
|
|
|
1235
1235
|
* `getExtendedAddressInformation` (the only endpoint that returns seqno)
|
|
1236
1236
|
* and v3 `addressInformation` for the wallet status.
|
|
1237
1237
|
*
|
|
1238
|
-
*
|
|
1239
|
-
*
|
|
1240
|
-
*
|
|
1238
|
+
* A genuinely uninitialized wallet (received funds, never sent) still gets
|
|
1239
|
+
* a 200 OK from both endpoints — it just carries no `account_state` /
|
|
1240
|
+
* reports `status: 'uninit'`. That case legitimately resolves with
|
|
1241
|
+
* `{ seqno: 0, status: 'uninit' }` so the caller can attach a StateInit on
|
|
1242
|
+
* the first transfer.
|
|
1243
|
+
*
|
|
1244
|
+
* A transient RPC/network failure (fetch throw, non-OK response, or body-level
|
|
1245
|
+
* `{ ok: false, result: null }`) is a
|
|
1246
|
+
* DIFFERENT case and must not collapse into the same shape: doing so
|
|
1247
|
+
* previously defeated the sender's stale-seqno guard (a failed lookup
|
|
1248
|
+
* signed as if the wallet were fresh) and force-disabled the recipient's
|
|
1249
|
+
* bounce-safety flag (a failed lookup looked "uninit", stripping the
|
|
1250
|
+
* refund-on-failure net for what might be a live contract). Fail closed
|
|
1251
|
+
* instead — mirrors `getTonAccountInfo`'s `ok`/`result` check.
|
|
1241
1252
|
*/
|
|
1242
1253
|
declare function getTonWalletInfo(address: string, gatewayUrl: string): Promise<TonWalletInfo>;
|
|
1243
1254
|
/**
|
|
@@ -11680,7 +11691,7 @@ declare const searchToken: (query: string, limit?: number) => Promise<TokenSearc
|
|
|
11680
11691
|
|
|
11681
11692
|
declare const chainFeeCoin: Record<Chain, KnownCoin>;
|
|
11682
11693
|
|
|
11683
|
-
declare const knownTokens: Record<"Arbitrum" | "Base" | "Blast" | "Optimism" | "Zksync" | "Mantle" | "Avalanche" | "CronosChain" | "BSC" | "Ethereum" | "Polygon" | "Hyperliquid" | "Sei" |
|
|
11694
|
+
declare const knownTokens: Record<"Arbitrum" | "Base" | "Blast" | "Optimism" | "Zksync" | "Mantle" | "Avalanche" | "CronosChain" | "BSC" | "Ethereum" | "Polygon" | "Hyperliquid" | "Sei" | "Cosmos" | "Osmosis" | "Dydx" | "Kujira" | "Terra" | "TerraClassic" | "Noble" | "Akash" | "THORChain" | "MayaChain" | UtxoChain | OtherChain, KnownCoin[]>;
|
|
11684
11695
|
type KnownIndex = Record<Chain, Record<string, KnownCoin>>;
|
|
11685
11696
|
declare const knownTokensIndex: KnownIndex;
|
|
11686
11697
|
|