Skip to content

Commit

Permalink
chore: add relevant exports
Browse files Browse the repository at this point in the history
  • Loading branch information
joepegler committed Sep 18, 2024
1 parent 3aa9a9d commit b558cef
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 14 deletions.
7 changes: 0 additions & 7 deletions packages/sdk/account/utils/Types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -551,13 +551,6 @@ export type EIP712DomainReturn = [
bigint[]
]

export enum CallType {
CALLTYPE_SINGLE = "0x00",
CALLTYPE_BATCH = "0x01",
CALLTYPE_STATIC = "0xFE",
CALLTYPE_DELEGATECALL = "0xFF"
}

export type NEXUS_VERSION_TYPE = "1.0.0-beta"

export type AccountMetadata = {
Expand Down
5 changes: 3 additions & 2 deletions packages/sdk/clients/createBicoBundlerClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ export const createBicoBundlerClient = (

return createBundlerClient({
...parameters,
transport:
parameters.transport ? parameters.transport : parameters.bundlerUrl
transport: parameters.transport
? parameters.transport
: parameters.bundlerUrl
? http(parameters.bundlerUrl)
: http(
// @ts-ignore: Type saftey provided by the if statement above
Expand Down
3 changes: 1 addition & 2 deletions packages/sdk/clients/decorators/erc7579/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type {
GetSmartAccountParameter,
SmartAccount
} from "viem/account-abstraction"
import type { SafeHookType } from "../../../modules/utils/Types.js"
import type { ModuleType, SafeHookType } from "../../../modules/utils/Types.js"
import { accountId } from "./accountId.js"
import { type GetActiveHookParameters, getActiveHook } from "./getActiveHook.js"
import {
Expand Down Expand Up @@ -36,7 +36,6 @@ import {
type SupportsModuleParameters,
supportsModule
} from "./supportsModule.js"
import type { ModuleType } from "./supportsModule.js"
import {
type UninstallModuleParameters,
uninstallModule
Expand Down
3 changes: 2 additions & 1 deletion packages/sdk/clients/decorators/erc7579/installModules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ import {
} from "viem/account-abstraction"
import { getAction, parseAccount } from "viem/utils"
import { AccountNotFoundError } from "../../../account/utils/AccountNotFound"
import { type ModuleType, parseModuleTypeId } from "./supportsModule"
import type { ModuleType } from "../../../modules/utils/Types"
import { parseModuleTypeId } from "./supportsModule"

export type InstallModulesParameters<
TSmartAccount extends SmartAccount | undefined
Expand Down
3 changes: 1 addition & 2 deletions packages/sdk/clients/decorators/erc7579/supportsModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ import { call, readContract } from "viem/actions"
import { getAction } from "viem/utils"
import { parseAccount } from "viem/utils"
import { AccountNotFoundError } from "../../../account/utils/AccountNotFound"

export type ModuleType = "validator" | "executor" | "fallback" | "hook"
import type { ModuleType } from "../../../modules/utils/Types"

export type SupportsModuleParameters<
TSmartAccount extends SmartAccount | undefined
Expand Down
4 changes: 4 additions & 0 deletions packages/sdk/clients/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export * from "./createBicoBundlerClient"
export * from "./createBicoPaymasterClient"
export * from "./decorators/erc7579"
export * from "./decorators/smartAccount"
1 change: 1 addition & 0 deletions packages/sdk/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from "./account"
export * from "./modules"
export * from "./clients"

0 comments on commit b558cef

Please sign in to comment.