Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added action policy fallback constants #125

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Address } from 'viem'
import { Address, Hex } from 'viem'

export const ACCOUNT_LOCKER_HOOK = '0x29BDcBc36e344061393f8AB58D2D6AABaedeAaAE'
export const ACCOUNT_LOCKER_SOURCE_EXECUTOR =
Expand All @@ -13,6 +13,9 @@ export const COLD_STORAGE_HOOK_ADDRESS: Address =
'0x7E31543b269632ddc55a23553f902f84C9DD8454'
export const DEADMAN_SWITCH_ADDRESS: Address =
'0x8bAdE54bca47199B6732EB2F92318DD666bdE413'
export const SMART_SESSIONS_FALLBACK_TARGET_FLAG: Address =
'0x0000000000000000000000000000000000000001'
export const SMART_SESSIONS_FALLBACK_TARGET_SELECTOR_FLAG: Hex = '0x00000001'
export const HOOK_MULTI_PLEXER_ADDRESS: Address =
'0xF6782ed057F95f334D04F0Af1Af4D14fb84DE549'
export const INDEXER_URL =
Expand Down Expand Up @@ -62,6 +65,8 @@ export const DEFAULT_CONSTANTS = {
COLD_STORAGE_FLASHLOAN_ADDRESS,
COLD_STORAGE_HOOK_ADDRESS,
DEADMAN_SWITCH_ADDRESS,
SMART_SESSIONS_FALLBACK_TARGET_FLAG,
SMART_SESSIONS_FALLBACK_TARGET_SELECTOR_FLAG,
HOOK_MULTI_PLEXER_ADDRESS,
INDEXER_URL,
MULTI_FACTOR_VALIDATOR_ADDRESS,
Expand Down
4 changes: 2 additions & 2 deletions test/unit/module/ownableValidator/ownableValidator.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ describe('Ownable Validator Module', () => {
account,
client,
})
expect(allOwners.length).toEqual(0)
expect(allOwners.length).toEqual(1)
})

it('should return ownable validator threshold', async () => {
Expand All @@ -89,6 +89,6 @@ describe('Ownable Validator Module', () => {
account,
})

expect(threshold).toEqual(0)
expect(threshold).toEqual(1)
})
})