Open this in Axiom REPL →
-
-
Save saucepoint/5e36799b58b711a18542565b53888df0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const slotValueOld = getSolidityMapping(blockNumber, poolManager, 7) | |
.key(poolKey) | |
.toCircuitValue(); | |
const slotValueRecent = getSolidityMapping(latestBlock, poolManager, 7) | |
.key(poolKey) | |
.toCircuitValue(); | |
addToCallback(token0); | |
addToCallback(token1); | |
addToCallback(swapFee); | |
addToCallback(tickSpacing); | |
addToCallback(hookAddress); | |
addToCallback(slotValueOld); | |
addToCallback(slotValueRecent); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"poolManager": "0x862Fa52D0c8Bca8fBCB5213C9FEbC49c87A52912", | |
"blockNumber": 9750828, | |
"latestBlock": 9750832, | |
"poolKey": "0xb6996c0a8402379ee2de072e61b8c614327e50cbd1316bfa70fa2aefbf76ffe6", | |
"token0": "0x07bFDc27077b4C09a8C38B22Ab48e224fE973777", | |
"token1": "0x4876480ED2A2C1c73C190b7019fe66aBc0d41eB9", | |
"swapFee": 3000, | |
"tickSpacing": 60, | |
"hookAddress": "0x209fE93F355A7A6fA4D94b39c70cA7dB1707CFd5" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment