Skip to content

rofl-8004: Initial commit and example, cleanups#5

Merged
matevz merged 4 commits intomasterfrom
matevz/feature/rofl-8004-startup
Nov 26, 2025
Merged

rofl-8004: Initial commit and example, cleanups#5
matevz merged 4 commits intomasterfrom
matevz/feature/rofl-8004-startup

Conversation

@matevz
Copy link
Member

@matevz matevz commented Nov 6, 2025

This PR:

  • adds rofl-8004 startup container
  • adds a simple example that uses rofl-8004 container
  • removes obsolete /contracts because we dropped the initial idea of storing Oasis-specific implementation of IdentityRegistry
  • moves validator-agent ROFL manifest and compose into validator-agent directory

@matevz matevz force-pushed the matevz/feature/rofl-8004-startup branch 6 times, most recently from ea14bc9 to ac631bf Compare November 13, 2025 16:12
@matevz matevz force-pushed the matevz/feature/rofl-8004-startup branch 2 times, most recently from 69dc600 to 5584b21 Compare November 14, 2025 14:54
@matevz matevz marked this pull request as ready for review November 14, 2025 14:55
@matevz matevz requested a review from ptrus November 14, 2025 14:55
@matevz matevz force-pushed the matevz/feature/rofl-8004-startup branch from 5584b21 to e584bce Compare November 14, 2025 15:59
@matevz matevz changed the title rofl-8004-startup: Initial commit rofl-8004: Initial commit and example, cleanups Nov 14, 2025
@matevz matevz force-pushed the matevz/feature/rofl-8004-startup branch from e584bce to 5285a0b Compare November 17, 2025 16:46
@matevz matevz force-pushed the matevz/feature/rofl-8004-startup branch from 5285a0b to 494505b Compare November 20, 2025 12:18
Copy link
Member

@ptrus ptrus left a comment

Choose a reason for hiding this comment

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

Did a quick check, will try it out later! But mostly looks good to me!

On the first startup it will register your ROFL as an ERC-8004 agent if it
doesn't exist yet and store the app ID along the agent's metadata.

On every startup it will derive configured public key(s) and upsert them to
Copy link
Member

Choose a reason for hiding this comment

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

Oh it would probably be useful to add an "upsert metadata" method to the rofl appd api? Because with the current API, the containers would need to coordinate to not override each others metadata.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, upsert would come in handy to avoid race conditions.

Copy link
Member

Choose a reason for hiding this comment

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

@matevz matevz force-pushed the matevz/feature/rofl-8004-startup branch 3 times, most recently from c2fb1a6 to a517a84 Compare November 21, 2025 17:28
@matevz matevz force-pushed the matevz/feature/rofl-8004-startup branch 5 times, most recently from 1304ed1 to 5c4cc76 Compare November 25, 2025 15:16
if agent_id is None:
agent_id = metadata.get(ERC8004_AGENT_ID_KEY, None)
if agent_id is None:
name = os.getenv("AGENT_NAME") or "rofl-agent"
Copy link
Member

Choose a reason for hiding this comment

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

In a future version we could query the rofl.App app metadata (via consensus query) and populate agent_name, desccription , version from there.

Copy link
Member Author

@matevz matevz Nov 26, 2025

Choose a reason for hiding this comment

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

Exactly! Opened #8.

@matevz matevz force-pushed the matevz/feature/rofl-8004-startup branch from 5c4cc76 to f0c01c2 Compare November 26, 2025 12:18
@matevz matevz merged commit 327b32f into master Nov 26, 2025
@matevz matevz deleted the matevz/feature/rofl-8004-startup branch November 26, 2025 14:24
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.

3 participants