Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshugarg06 committed Oct 7, 2024
1 parent 5f6a8d4 commit 216cb69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 33 deletions.
22 changes: 4 additions & 18 deletions packages/account/src/BiconomySmartAccount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { ethers, BigNumberish, BytesLike, BigNumber } from "ethers";
import { SmartAccount } from "./SmartAccount";
import {
Logger,
NODE_CLIENT_URL,
RPC_PROVIDER_URLS,
SmartAccountFactory_v100,
SmartAccountFactory_v100__factory,
Expand All @@ -20,16 +19,7 @@ import { UserOperation, Transaction, SmartAccountType } from "@biconomy/core-typ
import { IHybridPaymaster, BiconomyPaymaster, SponsorUserOperationDto } from "@biconomy/paymaster";
import { DEFAULT_ECDSA_OWNERSHIP_MODULE, ECDSAOwnershipValidationModule } from "@biconomy/modules";
import { IBiconomySmartAccount } from "./interfaces/IBiconomySmartAccount";
import {
ISmartAccount,
SupportedChainsResponse,
BalancesResponse,
BalancesDto,
UsdBalanceResponse,
SmartAccountByOwnerDto,
SmartAccountsResponse,
SCWTransactionResponse,
} from "@biconomy/node-client";
import { ISmartAccount } from "@biconomy/node-client";
import {
ENTRYPOINT_ADDRESSES,
BICONOMY_FACTORY_ADDRESSES,
Expand Down Expand Up @@ -70,7 +60,6 @@ export class BiconomySmartAccount extends SmartAccount implements IBiconomySmart
);
}
this.provider = new JsonRpcProvider(_rpcUrl);
// this.nodeClient = new NodeClient({ txServiceUrl: nodeClientUrl ?? NODE_CLIENT_URL });
this.signer = signer;

if (paymaster) {
Expand Down Expand Up @@ -143,7 +132,7 @@ export class BiconomySmartAccount extends SmartAccount implements IBiconomySmart
}

private setEntryPointContractState(): void {
const _entryPointAddress = ENTRYPOINT_ADDRESSES_BY_VERSION["V0_0_6"];
const _entryPointAddress = ENTRYPOINT_ADDRESSES_BY_VERSION.V0_0_6;
this.setEntryPointAddress(_entryPointAddress);
if (!ENTRYPOINT_ADDRESSES[_entryPointAddress])
throw new Error(
Expand Down Expand Up @@ -192,12 +181,9 @@ export class BiconomySmartAccount extends SmartAccount implements IBiconomySmart
if (this.factory == null) {
this.factory = SmartAccountFactory_v100__factory.connect("0x000000f9ee1842bb72f6bbdd75e6d3d4e3e9594c", this.provider);

Check failure on line 182 in packages/account/src/BiconomySmartAccount.ts

View workflow job for this annotation

GitHub Actions / Lint sources (18.x)

Delete `··`
}
const smartAccountAddress = await this.factory.getAddressForCounterFactualAccount(
this.owner,
ethers.BigNumber.from(accountIndex)
)
const smartAccountAddress = await this.factory.getAddressForCounterFactualAccount(this.owner, ethers.BigNumber.from(accountIndex))

Check failure on line 184 in packages/account/src/BiconomySmartAccount.ts

View workflow job for this annotation

GitHub Actions / Lint sources (18.x)

Insert `;`

Logger.log("smart account address: ", smartAccountAddress)
Logger.log("smart account address: ", smartAccountAddress);

if(smartAccountAddress) {

Check failure on line 188 in packages/account/src/BiconomySmartAccount.ts

View workflow job for this annotation

GitHub Actions / Lint sources (18.x)

Insert `·`
return smartAccountAddress;
Expand Down
15 changes: 0 additions & 15 deletions packages/account/src/interfaces/IBiconomySmartAccount.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
import { UserOperation, Transaction } from "@biconomy/core-types";
import {
SupportedChainsResponse,
BalancesResponse,
BalancesDto,
UsdBalanceResponse,
SmartAccountByOwnerDto,
SmartAccountsResponse,
SCWTransactionResponse,
} from "@biconomy/node-client";
import { Overrides, InitilizationData } from "../utils/Types";
import { BigNumberish, BytesLike } from "ethers";
import { ISmartAccount } from "./ISmartAccount";
Expand All @@ -19,11 +10,5 @@ export interface IBiconomySmartAccount extends ISmartAccount {
getExecuteCallData(_to: string, _value: BigNumberish, _data: BytesLike): string;
getExecuteBatchCallData(_to: Array<string>, _value: Array<BigNumberish>, _data: Array<BytesLike>): string;
buildUserOp(_transactions: Transaction[], _overrides?: Overrides): Promise<Partial<UserOperation>>;
// getAllTokenBalances(_balancesDto: BalancesDto): Promise<BalancesResponse>;
// getTotalBalanceInUsd(_balancesDto: BalancesDto): Promise<UsdBalanceResponse>;
// getSmartAccountsByOwner(_smartAccountByOwnerDto: SmartAccountByOwnerDto): Promise<SmartAccountsResponse>;
// getTransactionsByAddress(_chainId: number, _address: string): Promise<SCWTransactionResponse[]>;
// getTransactionByHash(_txHash: string): Promise<SCWTransactionResponse>;
// getAllSupportedChains(): Promise<SupportedChainsResponse>;
attachSigner(_signer: Signer): Promise<void>;
}

0 comments on commit 216cb69

Please sign in to comment.