Skip to content

Commit 52f5e7d

Browse files
committed
chore: alpha bump to 2.0.0-alpha.2
1 parent e53c0ad commit 52f5e7d

File tree

5 files changed

+45
-3
lines changed

5 files changed

+45
-3
lines changed

.changeset/pre.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,11 @@
66
"@mycelium-sdk/cli": "1.0.1",
77
"@mycelium-sdk/core": "1.0.0"
88
},
9-
"changesets": ["early-parks-walk", "five-pugs-make", "late-clowns-add"]
9+
"changesets": [
10+
"early-parks-walk",
11+
"five-pugs-make",
12+
"frank-dragons-poke",
13+
"late-clowns-add",
14+
"spotty-crabs-listen"
15+
]
1016
}

packages/cli/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# @mycelium-sdk/cli
22

3+
## 1.0.2-alpha.2
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [d22d73a]
8+
- Updated dependencies [e53c0ad]
9+
- @mycelium-sdk/core@2.0.0-alpha.2
10+
311
## 1.0.2-alpha.1
412

513
### Patch Changes

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mycelium-sdk/cli",
3-
"version": "1.0.2-alpha.1",
3+
"version": "1.0.2-alpha.2",
44
"type": "module",
55
"private": true,
66
"scripts": {

packages/sdk/CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
11
# @mycelium-sdk/core
22

3+
## 2.0.0-alpha.2
4+
5+
### Major Changes
6+
7+
- d22d73a: ## What was changed?
8+
- Added additional confirmation of a transaction for `send()` adn `sendBatch()` methods via RPC request using wait `waitForTransactionReceipt` method
9+
10+
## Why was changed/added?
11+
- Bundler sometimes go ahead in state that RPC node. It cause an issue when RPC try to fetch a wallet balance, but got zero result as a node still work with an old block
12+
13+
## How to use the change?
14+
- It will be used by default under the hood for `send()` and `sendBatch()` methods of the SDK
15+
16+
- e53c0ad: ## What was changed?
17+
- Introduced AddressBalance: balance is now returned as:{ overall: OverallAddressBalance; perVault: VaultBalance[] } instead of VaultBalance[]
18+
- getBalances() (SparkProtocol, ProxyProtocol) now returns AddressBalance (overall totals plus per-vault list)
19+
- getEarnBalances() on the wallet now returns AddressBalance instead of VaultBalance[]
20+
- AddressBalance is exported from the SDK public types
21+
22+
## Why was changed/added?
23+
- Mycelium Cloud started to return a different format of data for the balance
24+
- Callers need both an aggregated view (overall balance) and per-vault breakdown; a single type with overall and perVault supports both without extra requests
25+
- Aligns protocol and wallet APIs and keeps balance shape consistent across the SDK
26+
27+
## How to use the change?
28+
29+
Use the new return type: result.overall for aggregated numbers, result.perVault for the list of vault balances (same structure as before, but under perVault). Example: const { overall, perVault } = await wallet.getEarnBalances(); and then use perVault[0].balance, perVault[0].vaultInfo, etc. Replace any code that treated the result as a plain array (e.g. result[0]) with result.perVault[0] and use result.overall when you need totals
30+
331
## 2.0.0-alpha.1
432

533
### Major Changes

packages/sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mycelium-sdk/core",
3-
"version": "2.0.0-alpha.1",
3+
"version": "2.0.0-alpha.2",
44
"type": "module",
55
"private": false,
66
"publishConfig": {

0 commit comments

Comments
 (0)