Skip to content

Commit

Permalink
chore: fix more typos
Browse files Browse the repository at this point in the history
  • Loading branch information
kopy-kat committed Sep 17, 2024
1 parent 53bbccd commit b3192ea
Show file tree
Hide file tree
Showing 21 changed files with 59 additions and 59 deletions.
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ export {
getOwnableValidatorMockSignature,
getOwnableValidatorSignature,
encodeValidationData,
SCHEDULED_ORDERS_EXECUTER_ADDRESS,
SCHEDULED_ORDERS_EXECUTOR_ADDRESS,
getScheduledOrdersExecutor,
getCreateScheduledOrderAction,
getSwapOrderData,
getExecuteScheduledOrderAction,
SCHEDULED_TRANSFERS_EXECUTER_ADDRESS,
SCHEDULED_TRANSFERS_EXECUTOR_ADDRESS,
getScheduledTransfersExecutor,
getCreateScheduledTransferAction,
getScheduledTransferData,
Expand All @@ -55,7 +55,7 @@ export {
getDeadmanSwitch,
getDeadmanSwitchConfig,
getDeadmanSwitchValidatorMockSignature,
OWNABLE_EXECUTER_ADDRESS,
OWNABLE_EXECUTOR_ADDRESS,
getOwnableExecutor,
getAddOwnableExecutorOwnerAction,
getRemoveOwnableExecutorOwnerAction,
Expand Down
6 changes: 3 additions & 3 deletions src/module/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ export {
} from './ownable-validator'

export {
SCHEDULED_ORDERS_EXECUTER_ADDRESS,
SCHEDULED_ORDERS_EXECUTOR_ADDRESS,
getScheduledOrdersExecutor,
getCreateScheduledOrderAction,
getSwapOrderData,
getExecuteScheduledOrderAction,
} from './scheduled-orders'

export {
SCHEDULED_TRANSFERS_EXECUTER_ADDRESS,
SCHEDULED_TRANSFERS_EXECUTOR_ADDRESS,
getScheduledTransfersExecutor,
getCreateScheduledTransferAction,
getScheduledTransferData,
Expand Down Expand Up @@ -65,7 +65,7 @@ export {
} from './deadman-switch'

export {
OWNABLE_EXECUTER_ADDRESS,
OWNABLE_EXECUTOR_ADDRESS,
getOwnableExecutor,
getAddOwnableExecutorOwnerAction,
getRemoveOwnableExecutorOwnerAction,
Expand Down
2 changes: 1 addition & 1 deletion src/module/ownable-executor/constants.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const OWNABLE_EXECUTER_ADDRESS =
export const OWNABLE_EXECUTOR_ADDRESS =
'0xc98B026383885F41d9a995f85FC480E9bb8bB891'
2 changes: 1 addition & 1 deletion src/module/ownable-executor/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export { OWNABLE_EXECUTER_ADDRESS } from './constants'
export { OWNABLE_EXECUTOR_ADDRESS } from './constants'
export { getOwnableExecutor } from './installation'
export {
getAddOwnableExecutorOwnerAction,
Expand Down
4 changes: 2 additions & 2 deletions src/module/ownable-executor/installation.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Address, encodePacked } from 'viem'
import { Module } from '../types'
import { OWNABLE_EXECUTER_ADDRESS } from './constants'
import { OWNABLE_EXECUTOR_ADDRESS } from './constants'

export const getOwnableExecutor = ({
owner,
Expand All @@ -10,7 +10,7 @@ export const getOwnableExecutor = ({
hook?: Address
}): Module => {
return {
module: OWNABLE_EXECUTER_ADDRESS,
module: OWNABLE_EXECUTOR_ADDRESS,
initData: encodePacked(['address'], [owner]),
deInitData: '0x',
additionalContext: '0x',
Expand Down
12 changes: 6 additions & 6 deletions src/module/ownable-executor/usage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from 'viem'
import { abi } from './abi'
import { SENTINEL_ADDRESS } from '../../common/constants'
import { OWNABLE_EXECUTER_ADDRESS } from './constants'
import { OWNABLE_EXECUTOR_ADDRESS } from './constants'
import { Account } from '../../account'

export const getAddOwnableExecutorOwnerAction = async ({
Expand All @@ -30,7 +30,7 @@ export const getAddOwnableExecutorOwnerAction = async ({
}

return {
target: OWNABLE_EXECUTER_ADDRESS,
target: OWNABLE_EXECUTOR_ADDRESS,
value: BigInt(0),
callData: encodeFunctionData({
functionName: 'addOwner',
Expand Down Expand Up @@ -63,7 +63,7 @@ export const getRemoveOwnableExecutorOwnerAction = async ({
}

return {
target: OWNABLE_EXECUTER_ADDRESS,
target: OWNABLE_EXECUTOR_ADDRESS,
value: BigInt(0),
callData: encodeFunctionData({
functionName: 'removeOwner',
Expand All @@ -82,7 +82,7 @@ export const getOwnableExecutorOwners = async ({
}): Promise<Address[]> => {
try {
const owners = (await client.readContract({
address: OWNABLE_EXECUTER_ADDRESS,
address: OWNABLE_EXECUTOR_ADDRESS,
abi,
functionName: 'getOwners',
args: [account.address],
Expand All @@ -102,7 +102,7 @@ export const getExecuteOnOwnedAccountAction = ({
execution: Execution
}): Execution => {
return {
target: OWNABLE_EXECUTER_ADDRESS,
target: OWNABLE_EXECUTOR_ADDRESS,
value: BigInt(0),
callData: encodeFunctionData({
functionName: 'executeOnOwnedAccount',
Expand Down Expand Up @@ -130,7 +130,7 @@ export const getExecuteBatchOnOwnedAccountAction = ({
executions: Execution[]
}): Execution => {
return {
target: OWNABLE_EXECUTER_ADDRESS,
target: OWNABLE_EXECUTOR_ADDRESS,
value: BigInt(0),
callData: encodeFunctionData({
functionName: 'executeBatchOnOwnedAccount',
Expand Down
2 changes: 1 addition & 1 deletion src/module/scheduled-orders/constants.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const SCHEDULED_ORDERS_EXECUTER_ADDRESS =
export const SCHEDULED_ORDERS_EXECUTOR_ADDRESS =
'0x5341B4E7B347b7dB9e124b15eBa10A5c236ec3bb'
2 changes: 1 addition & 1 deletion src/module/scheduled-orders/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export { SCHEDULED_ORDERS_EXECUTER_ADDRESS } from './constants'
export { SCHEDULED_ORDERS_EXECUTOR_ADDRESS } from './constants'
export { getScheduledOrdersExecutor } from './installation'
export {
getCreateScheduledOrderAction,
Expand Down
4 changes: 2 additions & 2 deletions src/module/scheduled-orders/installation.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Address, Hex, encodePacked } from 'viem'
import { Module } from '../types'
import { SCHEDULED_ORDERS_EXECUTER_ADDRESS } from './constants'
import { SCHEDULED_ORDERS_EXECUTOR_ADDRESS } from './constants'

type Params = {
executeInterval: number
Expand All @@ -18,7 +18,7 @@ export const getScheduledOrdersExecutor = ({
hook,
}: Params): Module => {
return {
module: SCHEDULED_ORDERS_EXECUTER_ADDRESS,
module: SCHEDULED_ORDERS_EXECUTOR_ADDRESS,
type: 'executor',
initData: encodePacked(
['uint48', 'uint16', 'uint48', 'bytes'],
Expand Down
6 changes: 3 additions & 3 deletions src/module/scheduled-orders/usage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
encodeFunctionData,
encodePacked,
} from 'viem'
import { SCHEDULED_ORDERS_EXECUTER_ADDRESS } from './constants'
import { SCHEDULED_ORDERS_EXECUTOR_ADDRESS } from './constants'
import { RecurringOrder } from './types'
import { Execution } from '../../account/types'
import { abi } from './abi'
Expand All @@ -18,7 +18,7 @@ export const getCreateScheduledOrderAction = ({
recurringOrder,
}: Params): Execution => {
return {
target: SCHEDULED_ORDERS_EXECUTER_ADDRESS,
target: SCHEDULED_ORDERS_EXECUTOR_ADDRESS,
value: BigInt(0),
callData: encodeFunctionData({
functionName: 'addOrder',
Expand Down Expand Up @@ -63,7 +63,7 @@ export const getExecuteScheduledOrderAction = ({
jobId,
}: ExecuteOrderParams): Execution => {
return {
target: SCHEDULED_ORDERS_EXECUTER_ADDRESS,
target: SCHEDULED_ORDERS_EXECUTOR_ADDRESS,
value: BigInt(0),
callData: encodeFunctionData({
functionName: 'executeOrder',
Expand Down
2 changes: 1 addition & 1 deletion src/module/scheduled-transfers/constants.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const SCHEDULED_TRANSFERS_EXECUTER_ADDRESS =
export const SCHEDULED_TRANSFERS_EXECUTOR_ADDRESS =
'0xF1aE317941efeb1ffB103D959EF58170F1e577E0'
2 changes: 1 addition & 1 deletion src/module/scheduled-transfers/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export { SCHEDULED_TRANSFERS_EXECUTER_ADDRESS } from './constants'
export { SCHEDULED_TRANSFERS_EXECUTOR_ADDRESS } from './constants'
export { getScheduledTransfersExecutor } from './installation'
export {
getCreateScheduledTransferAction,
Expand Down
4 changes: 2 additions & 2 deletions src/module/scheduled-transfers/installation.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Address, Hex, encodePacked } from 'viem'
import { Module } from '../types'
import { SCHEDULED_TRANSFERS_EXECUTER_ADDRESS } from './constants'
import { SCHEDULED_TRANSFERS_EXECUTOR_ADDRESS } from './constants'

type Params = {
executeInterval: number
Expand All @@ -18,7 +18,7 @@ export const getScheduledTransfersExecutor = ({
hook,
}: Params): Module => {
return {
module: SCHEDULED_TRANSFERS_EXECUTER_ADDRESS,
module: SCHEDULED_TRANSFERS_EXECUTOR_ADDRESS,
type: 'executor',
initData: encodePacked(
['uint48', 'uint16', 'uint48', 'bytes'],
Expand Down
8 changes: 4 additions & 4 deletions src/module/scheduled-transfers/usage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
} from 'viem'
import { ScheduledTransfer } from './types'
import { Execution } from '../../account/types'
import { SCHEDULED_TRANSFERS_EXECUTER_ADDRESS } from './constants'
import { SCHEDULED_TRANSFERS_EXECUTOR_ADDRESS } from './constants'
import { abi } from './abi'

type Params = {
Expand Down Expand Up @@ -46,7 +46,7 @@ export const getCreateScheduledTransferAction = ({
scheduledTransfer,
}: CreateScheduledTransferExecutionParams): Execution => {
return {
target: SCHEDULED_TRANSFERS_EXECUTER_ADDRESS,
target: SCHEDULED_TRANSFERS_EXECUTOR_ADDRESS,
value: BigInt(0),
callData: encodeFunctionData({
functionName: 'addOrder',
Expand Down Expand Up @@ -74,7 +74,7 @@ export const getExecuteScheduledTransferAction = ({
jobId,
}: ExecuteTransferParams): Execution => {
return {
target: SCHEDULED_TRANSFERS_EXECUTER_ADDRESS,
target: SCHEDULED_TRANSFERS_EXECUTOR_ADDRESS,
value: BigInt(0),
callData: encodeFunctionData({
functionName: 'executeOrder',
Expand All @@ -88,7 +88,7 @@ export const getToggleScheduledTransferAction = ({
jobId,
}: ExecuteTransferParams): Execution => {
return {
target: SCHEDULED_TRANSFERS_EXECUTER_ADDRESS,
target: SCHEDULED_TRANSFERS_EXECUTOR_ADDRESS,
value: BigInt(0),
callData: encodeFunctionData({
functionName: 'toggleOrder',
Expand Down
12 changes: 6 additions & 6 deletions test/e2e/infra/unInstallModuleActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import { uninstallModule } from 'src/account'
import {
getModule,
OWNABLE_VALIDATOR_ADDRESS,
SCHEDULED_ORDERS_EXECUTER_ADDRESS,
SCHEDULED_TRANSFERS_EXECUTER_ADDRESS,
SCHEDULED_ORDERS_EXECUTOR_ADDRESS,
SCHEDULED_TRANSFERS_EXECUTOR_ADDRESS,
SMART_SESSIONS_ADDRESS,
} from 'src/module'
import { Account } from 'src/account'
import { Hex, PublicClient } from 'viem'
import { OWNABLE_EXECUTER_ADDRESS } from 'src/module/ownable-executor'
import { OWNABLE_EXECUTOR_ADDRESS } from 'src/module/ownable-executor'
import { SOCIAL_RECOVERY_ADDRESS } from 'src/module/social-recovery/constants'
import { AUTO_SAVINGS_ADDRESS } from 'src/module/auto-savings'
import {
Expand Down Expand Up @@ -56,7 +56,7 @@ export const getUnInstallModuleActions = async ({
account,
module: getModule({
type: 'executor',
module: OWNABLE_EXECUTER_ADDRESS,
module: OWNABLE_EXECUTOR_ADDRESS,
}),
})

Expand Down Expand Up @@ -127,7 +127,7 @@ export const getUnInstallModuleActions = async ({
account,
module: getModule({
type: 'executor',
module: SCHEDULED_ORDERS_EXECUTER_ADDRESS,
module: SCHEDULED_ORDERS_EXECUTOR_ADDRESS,
}),
})

Expand All @@ -136,7 +136,7 @@ export const getUnInstallModuleActions = async ({
account,
module: getModule({
type: 'executor',
module: SCHEDULED_TRANSFERS_EXECUTER_ADDRESS,
module: SCHEDULED_TRANSFERS_EXECUTOR_ADDRESS,
}),
})

Expand Down
4 changes: 2 additions & 2 deletions test/e2e/modules/ownableExecutor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
getAddOwnableExecutorOwnerAction,
getOwnableExecutorOwners,
getRemoveOwnableExecutorOwnerAction,
OWNABLE_EXECUTER_ADDRESS,
OWNABLE_EXECUTOR_ADDRESS,
} from 'src/module/ownable-executor'
import { Address, getAddress, Hex, PublicClient, TestClient } from 'viem'
import { getInstallModuleData, sendUserOp } from '../infra'
Expand All @@ -29,7 +29,7 @@ export const testOwnableExecutor = async ({
client: publicClient,
module: getModule({
type: 'executor',
module: OWNABLE_EXECUTER_ADDRESS,
module: OWNABLE_EXECUTOR_ADDRESS,
}),
})

Expand Down
4 changes: 2 additions & 2 deletions test/e2e/modules/scheduledOrdersExecutor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Account, isModuleInstalled } from 'src/account'
import {
getCreateScheduledOrderAction,
getModule,
SCHEDULED_ORDERS_EXECUTER_ADDRESS,
SCHEDULED_ORDERS_EXECUTOR_ADDRESS,
} from 'src/module'
import { ERC20Token } from 'src/module/scheduled-orders/types'
import { PublicClient, TestClient } from 'viem'
Expand All @@ -24,7 +24,7 @@ export const testScheduledOrdersExecutor = async ({
client: publicClient,
module: getModule({
type: 'executor',
module: SCHEDULED_ORDERS_EXECUTER_ADDRESS,
module: SCHEDULED_ORDERS_EXECUTOR_ADDRESS,
}),
})

Expand Down
4 changes: 2 additions & 2 deletions test/e2e/modules/scheduledTransfersExecutor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
getCreateScheduledTransferAction,
getModule,
getToggleScheduledTransferAction,
SCHEDULED_TRANSFERS_EXECUTER_ADDRESS,
SCHEDULED_TRANSFERS_EXECUTOR_ADDRESS,
} from 'src/module'
import { ERC20Token } from 'src/module/scheduled-orders/types'
import { PublicClient, TestClient } from 'viem'
Expand All @@ -25,7 +25,7 @@ export const testScheduledTransfersExecutor = async ({
client: publicClient,
module: getModule({
type: 'executor',
module: SCHEDULED_TRANSFERS_EXECUTER_ADDRESS,
module: SCHEDULED_TRANSFERS_EXECUTOR_ADDRESS,
}),
})

Expand Down
Loading

0 comments on commit b3192ea

Please sign in to comment.