Skip to content

Commit 0075f06

Browse files
authored
Add getBalance to graph-ts (#1584)
* Add getBalance call to graph-ts * Add changeset
1 parent 3571b75 commit 0075f06

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/four-baboons-ring.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphprotocol/graph-ts': minor
3+
---
4+
5+
Added getBalance call to ethereum API

packages/ts/chain/ethereum.ts

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { Address, BigInt } from '../common/numbers';
55
/** Host Ethereum interface */
66
export declare namespace ethereum {
77
function call(call: SmartContractCall): Array<Value> | null;
8+
function getBalance(address: Address): BigInt;
89
function encode(token: Value): Bytes | null;
910
function decode(types: String, data: Bytes): Value | null;
1011
}

0 commit comments

Comments
 (0)