Skip to content

Commit

Permalink
Add getBalance to graph-ts (#1584)
Browse files Browse the repository at this point in the history
* Add getBalance call to graph-ts

* Add changeset
  • Loading branch information
incrypto32 authored Feb 15, 2024
1 parent 3571b75 commit 0075f06
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/four-baboons-ring.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphprotocol/graph-ts': minor
---

Added getBalance call to ethereum API
1 change: 1 addition & 0 deletions packages/ts/chain/ethereum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Address, BigInt } from '../common/numbers';
/** Host Ethereum interface */
export declare namespace ethereum {
function call(call: SmartContractCall): Array<Value> | null;
function getBalance(address: Address): BigInt;
function encode(token: Value): Bytes | null;
function decode(types: String, data: Bytes): Value | null;
}
Expand Down

0 comments on commit 0075f06

Please sign in to comment.