├── .github └── workflows │ └── test.yml ├── .gitignore ├── .gitmodules ├── LICENSE ├── README.md ├── foundry.toml ├── remappings.txt ├── src ├── OffchainPricing.sol ├── RouterSample.sol ├── UniV4UserHook.sol ├── helpers │ ├── Errors.sol │ ├── FixedPoint.sol │ ├── LogExpMath.sol │ ├── PoolIdLibrary.sol │ ├── SignedMath.sol │ ├── SwapTypes.sol │ └── TickPriceConversion.sol └── implementation │ └── OffchainPricingImplementation.sol └── test └── OffchainPricing.t.sol /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xbuild3r/univ4-offchain-pricing/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xbuild3r/univ4-offchain-pricing/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xbuild3r/univ4-offchain-pricing/HEAD/.gitmodules -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xbuild3r/univ4-offchain-pricing/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xbuild3r/univ4-offchain-pricing/HEAD/README.md -------------------------------------------------------------------------------- /foundry.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xbuild3r/univ4-offchain-pricing/HEAD/foundry.toml -------------------------------------------------------------------------------- /remappings.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xbuild3r/univ4-offchain-pricing/HEAD/remappings.txt -------------------------------------------------------------------------------- /src/OffchainPricing.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xbuild3r/univ4-offchain-pricing/HEAD/src/OffchainPricing.sol -------------------------------------------------------------------------------- /src/RouterSample.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xbuild3r/univ4-offchain-pricing/HEAD/src/RouterSample.sol -------------------------------------------------------------------------------- /src/UniV4UserHook.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xbuild3r/univ4-offchain-pricing/HEAD/src/UniV4UserHook.sol -------------------------------------------------------------------------------- /src/helpers/Errors.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xbuild3r/univ4-offchain-pricing/HEAD/src/helpers/Errors.sol -------------------------------------------------------------------------------- /src/helpers/FixedPoint.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xbuild3r/univ4-offchain-pricing/HEAD/src/helpers/FixedPoint.sol -------------------------------------------------------------------------------- /src/helpers/LogExpMath.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xbuild3r/univ4-offchain-pricing/HEAD/src/helpers/LogExpMath.sol -------------------------------------------------------------------------------- /src/helpers/PoolIdLibrary.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xbuild3r/univ4-offchain-pricing/HEAD/src/helpers/PoolIdLibrary.sol -------------------------------------------------------------------------------- /src/helpers/SignedMath.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xbuild3r/univ4-offchain-pricing/HEAD/src/helpers/SignedMath.sol -------------------------------------------------------------------------------- /src/helpers/SwapTypes.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xbuild3r/univ4-offchain-pricing/HEAD/src/helpers/SwapTypes.sol -------------------------------------------------------------------------------- /src/helpers/TickPriceConversion.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xbuild3r/univ4-offchain-pricing/HEAD/src/helpers/TickPriceConversion.sol -------------------------------------------------------------------------------- /src/implementation/OffchainPricingImplementation.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xbuild3r/univ4-offchain-pricing/HEAD/src/implementation/OffchainPricingImplementation.sol -------------------------------------------------------------------------------- /test/OffchainPricing.t.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/0xbuild3r/univ4-offchain-pricing/HEAD/test/OffchainPricing.t.sol --------------------------------------------------------------------------------