From 0075f06ddaa6d37606e42e1c12d11d19674d00ad Mon Sep 17 00:00:00 2001 From: Krishnanand V P <44740264+incrypto32@users.noreply.github.com> Date: Fri, 16 Feb 2024 04:27:29 +0530 Subject: [PATCH] Add getBalance to graph-ts (#1584) * Add getBalance call to graph-ts * Add changeset --- .changeset/four-baboons-ring.md | 5 +++++ packages/ts/chain/ethereum.ts | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/four-baboons-ring.md diff --git a/.changeset/four-baboons-ring.md b/.changeset/four-baboons-ring.md new file mode 100644 index 000000000..f308b1b45 --- /dev/null +++ b/.changeset/four-baboons-ring.md @@ -0,0 +1,5 @@ +--- +'@graphprotocol/graph-ts': minor +--- + +Added getBalance call to ethereum API diff --git a/packages/ts/chain/ethereum.ts b/packages/ts/chain/ethereum.ts index 0a9e1b552..abe5a1b3d 100644 --- a/packages/ts/chain/ethereum.ts +++ b/packages/ts/chain/ethereum.ts @@ -5,6 +5,7 @@ import { Address, BigInt } from '../common/numbers'; /** Host Ethereum interface */ export declare namespace ethereum { function call(call: SmartContractCall): Array | null; + function getBalance(address: Address): BigInt; function encode(token: Value): Bytes | null; function decode(types: String, data: Bytes): Value | null; }