Getting started with the contracts
Last updated
Last updated
All contract code can be viewed in the . Deployment addresses (including testnet deployments) can be viewed in the .
To setup a local development environment:
Clone the contracts repo (git clone git@github.com:railgun-privacy/contract.git
)
Install dependencies (cd contract && npm install
)
Run a local development network in a new terminal window (cd contract && npx hardhat node
)
Deploy contracts to development network (npx hardhat deploy:test --network localhost
)
After running the deploy:test
hardhat script you should see something like the following printed to your terminal:
You will primarily be interacting with the proxy
contract which is a EIP1967 Transparent Upgradeable Proxy
for the implementation
contract. Functions on the proxy are only accessible when called by theproxyAdmin
contract so function selector clashes are not an issue.