Skip to content

Conversation

@nxt3d
Copy link

@nxt3d nxt3d commented Sep 26, 2025

  • Add People.sol contract with sample data (Alice, Bob, Christopher)
  • Add GetPeople.sol demonstrating program-based gateway requests
  • Add demo.test.ts with tests for program execution
  • Tests demonstrate bytecode program execution for data fetching and formatting
  • Includes detailed bytecode breakdown comments for educational purposes
  • Use evalLoop to pick up id value from stack instead of eval

- Add People.sol contract with sample data (Alice, Bob, Christopher)
- Add GetPeople.sol demonstrating program-based gateway requests
- Add demo.test.ts with tests for program execution
- Tests demonstrate bytecode program execution for data fetching and formatting
- Includes detailed bytecode breakdown comments for educational purposes
- Use evalLoop to pick up id value from stack instead of eval
_target = target;
}

function getProgram(uint256 id) external view returns (string memory) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is a cool example. Slightly unclear what you are trying to do here though.

Would this function not better be called getPerson? The id parameter => personId.

The use of a singular iteration with evalLoop and no set flags is likely not the optimal way of achieving what you want.

@clowestab clowestab force-pushed the main branch 3 times, most recently from 86351c6 to 0fb5e27 Compare October 9, 2025 14:27
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.

2 participants