File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11from . import exceptions
22from .uniswap import Uniswap , _str_to_addr
3- from .uniswap4 import Uniswap4
3+ from .uniswap4 import Uniswap4Core
44from .cli import main
Original file line number Diff line number Diff line change 635635 {
636636 "inputs": [
637637 {
638- "internalType": "uint256 ",
639- "name": "id ",
640- "type": "uint256 "
638+ "internalType": "address ",
639+ "name": "locker ",
640+ "type": "address "
641641 },
642642 {
643643 "internalType": "Currency",
644644 "name": "currency",
645645 "type": "address"
646646 }
647647 ],
648- "name": "getCurrencyDelta ",
648+ "name": "currencyDelta ",
649649 "outputs": [
650650 {
651651 "internalType": "int256",
Original file line number Diff line number Diff line change 2929 137 : "polygon" ,
3030 100 : "xdai" ,
3131 250 : "fantom" ,
32+ 17000 : "holesky" ,
3233 42161 : "arbitrum" ,
3334 421611 : "arbitrum_testnet" ,
35+ 11155111 : "sepolia" ,
3436 1666600000 : "harmony_mainnet" ,
3537 1666700000 : "harmony_testnet" ,
3638}
Original file line number Diff line number Diff line change 11from typing import Union
2+ from dataclasses import dataclass
23from eth_typing .evm import Address , ChecksumAddress
34
45
56AddressLike = Union [Address , ChecksumAddress ]
7+
8+ @dataclass
9+ class UniswapV4_slot0 :
10+ sqrtPriceX96 : int
11+ tick : int
12+ protocolFee : int
13+
14+ def __repr__ (self ) -> str :
15+ return f"Slot0 value (sqrtPriceX96: { self .sqrtPriceX96 } ; tick: { self .tick } ; protocolFee: { self .protocolFee !r} )"
16+
17+ @dataclass
18+ class UniswapV4_position_info :
19+ liquidity : int
20+ feeGrowthInside0LastX128 : int
21+ feeGrowthInside1LastX128 : int
22+
23+ def __repr__ (self ) -> str :
24+ return f"Position info (liquidity: { self .liquidity } ; feeGrowthInside0LastX128: { self .feeGrowthInside0LastX128 } ; feeGrowthInside1LastX128: { self .feeGrowthInside1LastX128 !r} )"
25+
26+ @dataclass
27+ class UniswapV4_tick_info :
28+ liquidityGross : int
29+ liquidityNet : int
30+ feeGrowthOutside0X128 : int
31+ feeGrowthOutside1X128 : int
32+
33+ def __repr__ (self ) -> str :
34+ return f"Tick info (liquidityGross: { self .liquidityGross } ; liquidityNet: { self .liquidityNet } ; feeGrowthOutside0X128: { self .feeGrowthOutside0X128 } ; feeGrowthOutside1X128: { self .feeGrowthOutside1X128 !r} )"
You can’t perform that action at this time.
0 commit comments