Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gnkz/readonly-proxy
A solidity implementation of a Read-Only Proxy
https://github.com/gnkz/readonly-proxy
ethereum ethereum-contract evm forge foundry foundry-rs smart-contract smart-contracts solidity solidity-contracts solidity-lang solidity-language
Last synced: 3 days ago
JSON representation
A solidity implementation of a Read-Only Proxy
- Host: GitHub
- URL: https://github.com/gnkz/readonly-proxy
- Owner: gnkz
- License: mit
- Created: 2024-10-29T20:33:13.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-10-31T23:55:00.000Z (about 2 months ago)
- Last Synced: 2024-11-01T00:26:12.557Z (about 2 months ago)
- Topics: ethereum, ethereum-contract, evm, forge, foundry, foundry-rs, smart-contract, smart-contracts, solidity, solidity-contracts, solidity-lang, solidity-language
- Language: Solidity
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Read-Only Solidity Proxy
> [!CAUTION]
> This is a just-for-fun idea I had and the contract is not audited so use with caution.`ReadOnlyProxy` is a smart contract that enables call delegation while preserving the state context, ensuring that any calls made through the proxy are restricted to read-only access to the storage.
This read-only access is enforced by using `staticcall` to call a function that performs a `delegatecall` to the target contract.
## Build
`forge build`
## Tests
`forge test`