Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

[WIP] Separet wallet flow and UI updates #252

Closed
wants to merge 10 commits into from
Closed

[WIP] Separet wallet flow and UI updates #252

wants to merge 10 commits into from

Conversation

wryonik
Copy link
Collaborator

@wryonik wryonik commented Jun 4, 2024

What is this PR doing?

How can these changes be manually tested?

Does this PR resolve or contribute to any issues?

Checklist

  • I have manually tested these changes
  • Post a link to the PR in the group chat

Guidelines

  • If your PR is not ready, mark it as a draft
  • The resolve conversation button is for reviewers, not authors
    • (But add a 'done' comment or similar)

@wryonik wryonik changed the title Updated UI [WIP] Separet wallet flow and UI updates Jun 4, 2024
Comment on lines 135 to 194
const userOpHash = await smartAccountClient.sendTransactions({
transactions: [
// Enable 7579 module
{
to: safeAccount.address,
value: 0n,
data: encodeFunctionData({
abi: safeAbi,
functionName: "enableModule",
args: [safe7579]
}),
},
// Set 7579 as fallback
{
to: safeAccount.address,
value: 0n,
data: encodeFunctionData({
abi: safeAbi,
functionName: "setFallbackHandler",
args: [safe7579]
}),
},
// Initialize adapter
{
to: safe7579 as `0x${string}`,
value: 0n,
data: encodeFunctionData({
abi: safe7579Abi,
functionName: "initializeAccount",
args: [
[], // Validators
[], // Executors
[], // Fallbacks
[], // Hooks
{
registry: zeroAddress, // TODO Set to deployed registry (if needed)
attesters: [],
threshold: 0,
},
],
}),
},
// Install email recovery module
// TODO This fails with 0x error, may need default executor or validator before this point
// Can also try switching to launchpad init since this is a brand new
// {
// to: safe7579 as `0x${string}`,
// value: 0n,
// data: encodeFunctionData({
// abi: safe7579Abi,
// functionName: "installModule",
// args: [
// executorModuleTypeId,
// safeRecoveryModule,
// installData // TODO likely error here
// ]
// }),
// }
],
})
Copy link
Collaborator Author

@wryonik wryonik Jun 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The commented part is not working

@jacque006 jacque006 mentioned this pull request Jun 17, 2024
2 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants