Skip to content

Commit 29953ed

Browse files
authored
api.derive.balances.fees (#4761)
* api.derive.balances.fees * Adjust for removal * Adjust
1 parent 96a23bd commit 29953ed

File tree

5 files changed

+3
-49
lines changed

5 files changed

+3
-49
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Changes:
66

77
- Don't fake signature for `paymentInfo` if already signed
8+
- Remove `api.derive.balances.fees` (use direct constants as applicable)
89

910

1011
## 8.1.1 Apr 17, 2022

packages/api-derive/src/balances/fees.ts

Lines changed: 0 additions & 45 deletions
This file was deleted.

packages/api-derive/src/balances/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import { all } from './all';
55

66
export * from './account';
7-
export * from './fees';
87
export * from './votingBalances';
98

109
const votingBalance = all;

packages/api-derive/src/index.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ describe('derive', (): void => {
4747
testFunction(api)('accounts', 'indexToId', []);
4848

4949
testFunction(api)('balances', 'all', []);
50-
testFunction(api)('balances', 'fees', []);
5150
testFunction(api)('balances', 'votingBalance', []);
5251
testFunction(api)('balances', 'votingBalances', []);
5352

packages/api/src/checkTypes.manual.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ async function derive (api: ApiPromise): Promise<void> {
3333
console.log('current author:', header.author);
3434
});
3535

36-
const fees = await api.derive.balances.fees();
36+
const info = await api.derive.balances.account('0x1234');
3737

38-
console.log('fees', fees);
38+
console.log('info', info);
3939
}
4040

4141
function errors (api: ApiPromise): void {

0 commit comments

Comments
 (0)