Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/updateSDKQueries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ jobs:
working-directory: ./node-client
run: yarn

- name: Install Fragment CLI
run: npm install -g @fragment-dev/cli

- name: Copy queries.graphql
working-directory: ./node-client
run: |
Expand Down
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Changelog

All notable changes to `@fragment-dev/node-client`will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/).

Releases prior to `2.0.0` were published before this changelog was added and
are not documented here.

## [2.0.0]

### Changed

- `GetLedgerAccountBalance` now returns total `balance` (self + children) instead of `ownBalance`.
- `ListLedgerAccountBalances` and `ListMultiCurrencyLedgerAccountBalances` now accept `consistencyMode` on `childBalance`, `childBalances`, `balance`, and `balances`.

### Removed

- `GetLedgerAccountBalanceWithChildRollup` has been removed.

### Upgrade Guide

1. Upgrade your schema to use total balance consistency.
- Change `ownBalanceUpdates` to `totalBalanceUpdates` in ledger account consistency config.
- Change `ownBalance` to `totalBalance` in entry conditions.
- A schema can use only one of `ownBalanceUpdates` or `totalBalanceUpdates` for consistency and conditions.
- Deploy the new schema.
2. You can now set `consistencyConfig.totalBalanceUpdates: strong` on any account in the tree to make its balance strongly consistent.
3. Upgrade the Fragment SDK to this version.
- `GetLedgerAccountBalance` now returns total `balance` (self + children) instead of `ownBalance`.
- Change `$ownBalanceConsistencyMode` to `$balanceConsistencyMode`
- Use `GetLedgerAccountBalance` instead of `GetLedgerAccountBalanceWithChildRollup`.
50 changes: 24 additions & 26 deletions dist/cjs/generated/generated.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/cjs/generated/version.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 18 additions & 20 deletions dist/cjs/types/generated/generated.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/cjs/types/generated/generated.d.ts.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cjs/types/generated/version.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading