Skip to content

Commit

Permalink
chore: add missing imports
Browse files Browse the repository at this point in the history
  • Loading branch information
joepegler committed Dec 2, 2024
1 parent b60fabb commit 83d6269
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 19 deletions.
1 change: 1 addition & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ jobs:
PIMLICO_API_KEY: ${{ secrets.PIMLICO_API_KEY }}
BUNDLER_URL: https://api.pimlico.io/v2/84532/rpc?apikey=pim_im13GpaqtMDSiJFhXMxcVn
CHAIN_ID: 84532
ALT_CHAIN_ID: 11155420
CI: true
1 change: 1 addition & 0 deletions src/sdk/clients/decorators/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * from "./erc7579"
export * from "./smartAccount"
export * from "./bundler"
export * from "./mee"
2 changes: 1 addition & 1 deletion src/sdk/clients/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export * from "./createBicoBundlerClient"
export * from "./createBicoPaymasterClient"
export * from "./createSmartAccountClient"
export * from "./createSmartAccountClient"
export * from "./createMeeClient"
export * from "./decorators"
3 changes: 0 additions & 3 deletions src/sdk/modules/smartSessionsValidator/Types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import type {
SmartSessionMode
} from "@rhinestone/module-sdk"
import type { AbiFunction, Address, Hex, OneOf } from "viem"
import type { KeyGenData } from "../../clients/decorators/dan/decorators/keyGen"
import type { AnyReferenceValue } from "../utils/Helpers"
import type { Execution } from "../utils/Types"

Expand Down Expand Up @@ -60,8 +59,6 @@ export type UsePermissionModuleData = {
mode?: SmartSessionModeType
/** Data for enabling the session. */
enableSessionData?: EnableSessionData
/** Key generation data for the session. */
keyGenData?: KeyGenData
/** The index of the permission ID to use for the session. Defaults to 0. */
permissionIdIndex?: number
}
Expand Down
1 change: 0 additions & 1 deletion src/sdk/modules/smartSessionsValidator/decorators/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { Chain, Client, Hash, Transport } from "viem"
import { danActions } from "../../../clients/decorators/dan/decorators"
import type { ModularSmartAccount, Module } from "../../utils/Types"
import type { GrantPermissionResponse } from "../Types"
import type { SmartSessionModule } from "../toSmartSessionsValidator"
Expand Down
16 changes: 2 additions & 14 deletions src/sdk/modules/smartSessionsValidator/toSmartSessionsValidator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const DUMMY_ECDSA_SIG =
"0xe8b94748580ca0b4993c9a1b86b5be851bfc076ff5ce3a1ff65bf16392acfcb800f9b4f1aef1555c7fce5599fffb17e7c635502154a0333ba21f3ae491839af51c"

export type SmartSessionModule = Module & {
sigGen: (signature: Hex) => Hex
moduleData?: UsePermissionModuleData
}

Expand Down Expand Up @@ -103,8 +102,7 @@ export const toSmartSessionsValidator = (
permissionIdIndex = 0,
permissionIds = [],
mode = SmartSessionMode.USE,
enableSessionData,
keyGenData: _
enableSessionData
} = {}
} = parameters

Expand Down Expand Up @@ -135,16 +133,6 @@ export const toSmartSessionsValidator = (
signature: await signer.signMessage({
message: { raw: userOpHash as Hex }
})
}),
extend: {
sigGen: (signature: Hex): Hex => {
return encodeSmartSessionSignature({
mode,
permissionId: permissionIds[permissionIdIndex],
enableSessionData,
signature
})
}
}
})
}) as SmartSessionModule
}

0 comments on commit 83d6269

Please sign in to comment.