Skip to content

Commit

Permalink
fix(SMA-682): docs-currently-are-down
Browse files Browse the repository at this point in the history
Resolved SMA-682
  • Loading branch information
joepegler committed Feb 23, 2024
1 parent 1a8f296 commit 363fa3b
Show file tree
Hide file tree
Showing 3 changed files with 123 additions and 88 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- develop
- v4
- fix/SMA-682_docs-fix

permissions:
contents: write
Expand Down
24 changes: 23 additions & 1 deletion packages/account/src/BiconomySmartAccountV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,19 @@ export class BiconomySmartAccountV2 extends BaseSmartContractAccount {

bundler?: IBundler;

/**
* @class
* @ignore
*/
private accountContract?: GetContractReturnType<typeof BiconomyAccountAbi, PublicClient>;

/**
* @class
* @ignore
*/
// @ts-ignore
protected entryPoint: BaseSmartContractAccount["entryPoint"];

private defaultFallbackHandlerAddress: Hex;

private implementationAddress: Hex;
Expand Down Expand Up @@ -313,6 +324,10 @@ export class BiconomySmartAccountV2 extends BaseSmartContractAccount {
}
}

/**
* @class
* @ignore
*/
async _getAccountContract(): Promise<GetContractReturnType<typeof BiconomyAccountAbi, PublicClient>> {
if (this.accountContract == null) {
this.accountContract = getContract({
Expand Down Expand Up @@ -702,6 +717,10 @@ export class BiconomySmartAccountV2 extends BaseSmartContractAccount {
return bundlerResponse;
}

/**
* @class
* @ignore
*/
async getUserOpHash(userOp: Partial<UserOperationStruct>): Promise<Hex> {
const userOpHash = keccak256(packUserOp(userOp, true) as Hex);
const enc = encodeAbiParameters(parseAbiParameters("bytes32, address, uint256"), [userOpHash, this.entryPoint.address, BigInt(this.chainId)]);
Expand Down Expand Up @@ -750,7 +769,10 @@ export class BiconomySmartAccountV2 extends BaseSmartContractAccount {
return finalUserOp;
}

// Could call it nonce space
/**
* @class
* @ignore
*/
async getNonce(nonceKey?: number): Promise<bigint> {
const nonceSpace = nonceKey ?? 0;
try {
Expand Down
Loading

0 comments on commit 363fa3b

Please sign in to comment.