Skip to content

Commit

Permalink
chore: add exports
Browse files Browse the repository at this point in the history
  • Loading branch information
joepegler committed Jan 16, 2025
1 parent 07acd5f commit 64fe8ae
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
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"
4 changes: 2 additions & 2 deletions src/sdk/clients/decorators/mee/signFusionQuote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import type { MultichainSmartAccount } from "../../../account/toMultiChainNexusA
import type { Call } from "../../../account/utils/Types"
import type { BaseMeeClient } from "../../createMeeClient"
import type { GetQuotePayload } from "./getQuote"
import { type ExecutionMode, PREFIX } from "./signQuote"
import { type MeeExecutionMode, PREFIX } from "./signQuote"

export const FUSION_NATIVE_TRANSFER_PREFIX = "0x150b7a02"

Expand All @@ -26,7 +26,7 @@ export type SignFusionQuoteParams = {
/** Optional smart account to execute the transaction. If not provided, uses the client's default account */
account?: MultichainSmartAccount
/** The execution mode to use. Defaults to "direct-to-mee" */
executionMode?: ExecutionMode
executionMode?: MeeExecutionMode
/** The on-chain transaction to use as the trigger */
trigger: {
/** The on-chain transaction to use as the trigger */
Expand Down
6 changes: 3 additions & 3 deletions src/sdk/clients/decorators/mee/signQuote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { BaseMeeClient } from "../../createMeeClient"

import type { GetQuotePayload } from "./getQuote"

export type ExecutionMode =
export type MeeExecutionMode =
| "direct-to-mee"
| "fusion-with-onchain-tx"
| "fusion-with-erc20permit"
Expand All @@ -19,15 +19,15 @@ export type SignQuoteParams = {
/** Optional smart account to execute the transaction. If not provided, uses the client's default account */
account?: MultichainSmartAccount
/** The execution mode to use. Defaults to "direct-to-mee" */
executionMode?: ExecutionMode
executionMode?: MeeExecutionMode
}

export type SignQuotePayload = GetQuotePayload & {
/** The signature of the quote */
signature: Hex
}

export const PREFIX: Record<ExecutionMode, Hex> = {
export const PREFIX: Record<MeeExecutionMode, Hex> = {
"direct-to-mee": "0x00",
"fusion-with-onchain-tx": "0x01",
"fusion-with-erc20permit": "0x02"
Expand Down
2 changes: 2 additions & 0 deletions src/sdk/clients/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export * from "./createBicoBundlerClient"
export * from "./createBicoPaymasterClient"
export * from "./createSmartAccountClient"
export * from "./createMeeClient"
export * from "./createHttpClient"
export * from "./decorators"
1 change: 1 addition & 0 deletions src/sdk/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { type Hex, toBytes, toHex } from "viem"
import { ParamCondition } from "../modules/smartSessionsValidator/Types"

export * from "./abi"
export * from "./tokens"

export const ENTRY_POINT_ADDRESS: Hex =
"0x0000000071727De22E5E9d8BAf0edAc6f37da032"
Expand Down

0 comments on commit 64fe8ae

Please sign in to comment.