UNPKG

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.

18 lines (17 loc) 625 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TracingProxyConnection = void 0; class TracingProxyConnection { provider; constructor(provider) { this.provider = provider; } async getAccountData(account) { const fullAcc = await this.provider.getFullContractState({ address: account }); return { id: account.toString(), codeHash: fullAcc.state?.codeHash }; } async getAccountsData(accounts) { return Promise.all(accounts.map(account => this.getAccountData(account))); } } exports.TracingProxyConnection = TracingProxyConnection;