locklift
Version:
Node JS framework for working with Ever contracts. Inspired by Truffle and Hardhat. Helps you to build, test, run and maintain your smart contracts.
10 lines (7 loc) • 348 B
text/typescript
import { getTokenBalanceChange } from "./utils";
import { Addressable, ViewTraceTreeWithTotalFee } from "../../types";
export class Tokens {
constructor(private readonly viewTraceTree: ViewTraceTreeWithTotalFee) {}
getTokenBalanceChange = (tokenWallet: Addressable) =>
getTokenBalanceChange(this.viewTraceTree, tokenWallet).toString();
}