Skip to content

feat: ini v3 core #210

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

Open
wants to merge 346 commits into
base: master
Choose a base branch
from
Open

feat: ini v3 core #210

wants to merge 346 commits into from

Conversation

shunkakinoki
Copy link

@shunkakinoki shunkakinoki commented Feb 20, 2025

Includes all required core configuration, imageHash, signature modules derived from sequence-core for v3 and ensures that all critical tests are passing.

Steps to test

  1. Run the following command from the root go repository to initiate the rpc:
go run ./cmd/sequence/ server
  1. In the v3 module, run the following foundry tests:
forge test --mp test/modules/BaseSig.t.sol
forge test --mp test/modules/Calls.t.sol
forge test --mp test/modules/Payload.t.sol
forge test --mp test/Guest.t.sol
forge test --mp test/Stage1Module.t.sol
forge test --mp test/Wallet.t.sol

Caveats

Some gas-estimation commands, etc. are commented out because of the scope of this PR. will follow up in a later PR. Also, Permission, SmartSession, SessionManager related modules will follow up later.

@shunkakinoki shunkakinoki changed the base branch from master to waas-scoped-sessions February 25, 2025 11:44
@shunkakinoki shunkakinoki changed the base branch from waas-scoped-sessions to master February 25, 2025 11:45
@attente attente force-pushed the v3-core branch 2 times, most recently from 86d26f3 to 56c6f8a Compare February 26, 2025 16:20
@shunkakinoki shunkakinoki requested a review from attente February 27, 2025 10:03
shunkakinoki and others added 30 commits May 22, 2025 04:08
…age hash calculation

This commit modifies the CreateAnypaySapientSignerTree function to replace the attestation signer address with a specific address (0x0000000000000000000000000000000000000001) for the image hash calculation. This change ensures that the function operates with a valid address, improving the reliability of the signer tree creation process within the intent configuration.
…n signer address

This commit modifies the intent configuration tests to replace hardcoded addresses with a dynamic attestation signer address (0x0000000000000000000000000000000000000001). The changes ensure that the tests accurately reflect the current implementation and improve the reliability of the signer tree creation process. Additionally, the CreateAnypaySapientSignerTree function is updated to utilize the attestation signer parameter, enhancing flexibility in address handling.
…iable names

This commit introduces debug logging using the spew package to output the configuration tree and signature details during the intent configuration process. Additionally, it refactors variable names in the CreateIntentTree function for clarity, changing 'sapientSignerLeaf' to 'sapientSignerLeafNode' to better represent its purpose. These changes enhance the debugging capabilities and readability of the code.
…Tree

This commit introduces the `replaceSapientSignerWithNodeInConfigTree` function, which recursively traverses the WalletConfigTree and replaces any sapient signer leaves with node leaves. Additionally, the `GetIntentConfigurationSignature` function is updated to call this new function when a sapient signer is detected in the configuration, enhancing the handling of signer types in the intent configuration process.
…gner with node leaf

This commit simplifies the logic in the GetIntentConfigurationSignature function by ensuring that the sapient signer is always replaced with a node leaf in the configuration tree when the target payload is nil. This change enhances the consistency of the intent configuration process.
…GetIntentConfigurationSignature logic

This commit expands the functionality of the replaceSapientSignerWithNodeInConfigTree function to handle both WalletConfigTreeNode and WalletConfigTreeNestedLeaf types, ensuring proper recursive replacement of sapient signer leaves. Additionally, the GetIntentConfigurationSignature function is updated to conditionally apply this replacement logic based on the presence of lifiInfos and attestationSigner, improving the handling of intent configurations.
…ure handling in GetIntentConfigurationSignature
…ions for consistency in intent configuration handling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants