Skip to content

Commit

Permalink
feat(ant): add balance APIs to ant interface
Browse files Browse the repository at this point in the history
  • Loading branch information
dtfiedler committed Jun 18, 2024
1 parent 2004470 commit ec67440
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/common/ant-ao.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,8 @@ export class AoANTReadable implements AoANTRead {
return info.Ticker;
}

// TODO: are balances needed to comply with Token spec
/**
* @returns {Promise<Record<string, number>>} The balances of the ANT
* @returns {Promise<Record<WalletAddress, number>>} The balances of the ANT
* @example
* The current balances of the ANT.
* ```ts
Expand Down
3 changes: 2 additions & 1 deletion src/io.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,8 @@ export interface AoANTRead {
getControllers(): Promise<WalletAddress[]>;
getTicker(): Promise<string>;
getName(): Promise<string>;
// TODO: balance apis necessary?
getBalance({ address }: { address: WalletAddress }): Promise<number>;
getBalances(): Promise<Record<WalletAddress, number>>;
}

export interface AoANTWrite extends AoANTRead {
Expand Down

0 comments on commit ec67440

Please sign in to comment.