-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #118 from Dhruv-Mishra/feature/overrideConstants
feature: allow overriding module address
- Loading branch information
Showing
68 changed files
with
619 additions
and
418 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
import { Address } from 'viem' | ||
|
||
export const ACCOUNT_LOCKER_HOOK = '0x97fbddd688327229eb193e824c8466d0c8c848fb' | ||
export const ACCOUNT_LOCKER_SOURCE_EXECUTOR = | ||
'0x868E00ae42214a5a1BB2d01aE1587c8814cF45BB' | ||
export const ACCOUNT_LOCKER_TARGET_EXECUTOR = | ||
'0xaffd5668449271Ce63B2a37fB0631f3B27F053b8' | ||
export const AUTO_SAVINGS_ADDRESS: Address = | ||
'0x6AE48bD83B6bdc8489584Ea0814086f963d1BD95' | ||
export const COLD_STORAGE_FLASHLOAN_ADDRESS: Address = | ||
'0x4422dbC3D055D59ee08F4A4D60E1046A9aFb287f' | ||
export const COLD_STORAGE_HOOK_ADDRESS: Address = | ||
'0x7E31543b269632ddc55a23553f902f84C9DD8454' | ||
export const DEADMAN_SWITCH_ADDRESS: Address = | ||
'0x8bAdE54bca47199B6732EB2F92318DD666bdE413' | ||
export const HOOK_MULTI_PLEXER_ADDRESS: Address = | ||
'0xF6782ed057F95f334D04F0Af1Af4D14fb84DE549' | ||
export const INDEXER_URL = | ||
'https://indexer.bigdevenergy.link/c03b38d/v1/graphql' | ||
export const MULTI_FACTOR_VALIDATOR_ADDRESS: Address = | ||
'0xf6bDf42c9BE18cEcA5C06c42A43DAf7FBbe7896b' | ||
export const OWNABLE_EXECUTOR_ADDRESS: Address = | ||
'0x4Fd8d57b94966982B62e9588C27B4171B55E8354' | ||
export const OWNABLE_VALIDATOR_ADDRESS: Address = | ||
'0x2483DA3A338895199E5e538530213157e931Bf06' | ||
export const REGISTRY_ADDRESS: Address = | ||
'0x000000000069E2a187AEFFb852bF3cCdC95151B2' | ||
export const REGISTRY_HOOK_ADDRESS: Address = | ||
'0x0ac6160DBA30d665cCA6e6b6a2CDf147DC3dED22' | ||
export const SCHEDULED_ORDERS_EXECUTOR_ADDRESS: Address = | ||
'0x40dc90D670C89F322fa8b9f685770296428DCb6b' | ||
export const SCHEDULED_TRANSFERS_EXECUTOR_ADDRESS: Address = | ||
'0xA8E374779aeE60413c974b484d6509c7E4DDb6bA' | ||
export const SMART_SESSIONS_ADDRESS: Address = | ||
'0x00000000002B0eCfbD0496EE71e01257dA0E37DE' | ||
export const SMART_SESSIONS_COMPATIBILITY_FALLBACK_ADDRESS: Address = | ||
'0xBad7E91C4F2803978cd6c7C3Fe80B5Fd7f7B0b50' | ||
export const SOCIAL_RECOVERY_ADDRESS: Address = | ||
'0xA04D053b3C8021e8D5bF641816c42dAA75D8b597' | ||
export const UNIVERSAL_ACTION_POLICY_ADDRESS: Address = | ||
'0x0000006DDA6c463511C4e9B05CFc34C1247fCF1F' | ||
export const UNIVERSAL_EMAIL_RECOVERY_ADDRESS: Address = | ||
'0x636632FA22052d2a4Fb6e3Bab84551B620b9C1F9' | ||
export const UNIVERSAL_EMAIL_RECOVERY_ADDRESS__BASE: Address = | ||
'0x36A470159F8170ad262B9518095a9FeD0824e7dD' | ||
export const UNIVERSAL_EMAIL_RECOVERY_ADDRESS__ETH_SEPOLIA: Address = | ||
'0x8ECcb707C4770239D7e95743cd01aaA72d6D313E' | ||
export const WEBAUTHN_VALIDATOR_ADDRESS: Address = | ||
'0xD990393C670dCcE8b4d8F858FB98c9912dBFAa06' | ||
|
||
export const DEFAULT_CONSTANTS = { | ||
ACCOUNT_LOCKER_HOOK, | ||
ACCOUNT_LOCKER_SOURCE_EXECUTOR, | ||
ACCOUNT_LOCKER_TARGET_EXECUTOR, | ||
AUTO_SAVINGS_ADDRESS, | ||
COLD_STORAGE_FLASHLOAN_ADDRESS, | ||
COLD_STORAGE_HOOK_ADDRESS, | ||
DEADMAN_SWITCH_ADDRESS, | ||
HOOK_MULTI_PLEXER_ADDRESS, | ||
INDEXER_URL, | ||
MULTI_FACTOR_VALIDATOR_ADDRESS, | ||
OWNABLE_EXECUTOR_ADDRESS, | ||
OWNABLE_VALIDATOR_ADDRESS, | ||
REGISTRY_ADDRESS, | ||
REGISTRY_HOOK_ADDRESS, | ||
SCHEDULED_ORDERS_EXECUTOR_ADDRESS, | ||
SCHEDULED_TRANSFERS_EXECUTOR_ADDRESS, | ||
SMART_SESSIONS_ADDRESS, | ||
SMART_SESSIONS_COMPATIBILITY_FALLBACK_ADDRESS, | ||
SOCIAL_RECOVERY_ADDRESS, | ||
UNIVERSAL_ACTION_POLICY_ADDRESS, | ||
UNIVERSAL_EMAIL_RECOVERY_ADDRESS, | ||
UNIVERSAL_EMAIL_RECOVERY_ADDRESS__BASE, | ||
UNIVERSAL_EMAIL_RECOVERY_ADDRESS__ETH_SEPOLIA, | ||
WEBAUTHN_VALIDATOR_ADDRESS, | ||
} as const | ||
|
||
export let GLOBAL_CONSTANTS = { | ||
...DEFAULT_CONSTANTS, | ||
} | ||
|
||
export type Constants = typeof GLOBAL_CONSTANTS | ||
|
||
export const setGlobalConstants = (overrides: Partial<Constants>): void => { | ||
GLOBAL_CONSTANTS = { ...GLOBAL_CONSTANTS, ...overrides } | ||
} | ||
|
||
export const getModifiedConstants = ( | ||
overrides?: Partial<Constants>, | ||
): Constants => { | ||
return { ...GLOBAL_CONSTANTS, ...overrides } | ||
} | ||
|
||
export const restoreGlobalConstants = (): void => { | ||
GLOBAL_CONSTANTS = { ...DEFAULT_CONSTANTS } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.