Skip to content

feat: more introspection#669

Open
crypto-banker wants to merge 13 commits intomainfrom
feat/more-introspection
Open

feat: more introspection#669
crypto-banker wants to merge 13 commits intomainfrom
feat/more-introspection

Conversation

@crypto-banker
Copy link
Copy Markdown

@crypto-banker crypto-banker commented Apr 10, 2026

  • Add more functions to AngstromView library, particularly for aiding in queries of LP positions and their rewards
  • Implement fork testing against ETH mainnet, including validation of the new library functions
  • Create a wrapper contract AngstromInspector which exposes library functions, so that users can simply call this contract's functions for queries
  • Add simple deploy script for the AngstromInspector contract

@crypto-banker crypto-banker marked this pull request as ready for review April 10, 2026 15:43
using AngstromView for IAngstromAuth;

IAngstromAuth public immutable angstrom;
IPoolManager public immutable uniswapPoolManager;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

seems like this storage variable is not used in the smart contract code at all? after being set in the constructor

Also noticed that in some functions such as pendingRewards below it requires the caller to pass in IPoolManager uniV4. So maybe we need to de-conflict here?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

ah yes, I meant to just eliminate this input from these functions, thanks for noticing

Comment on lines +188 to +189
console.log("asset0: %s", asset0);
console.log("asset1: %s", asset1);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think maybe you didn't mean to commit these console logs

new AngstromInspector(IAngstromAuth(angstrom), IPoolManager(uniswap));

vm.stopBroadcast();
console.log("[INFO] deployed apdater to %s", address(inspector));
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

typo

import {Positions, Position} from "../types/Positions.sol";
import {StateLibrary} from "v4-core/src/libraries/StateLibrary.sol";

using PoolIdLibrary for PoolId;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think this line might not be needed

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