feat: sepolia deployment
This commit is contained in:
parent
75ba356d01
commit
f99eb2aa0d
30
README.md
30
README.md
|
@ -4,14 +4,13 @@
|
||||||
|
|
||||||
The following will need to be installed in order to use this repo. Please follow the links and instructions.
|
The following will need to be installed in order to use this repo. Please follow the links and instructions.
|
||||||
|
|
||||||
- [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
|
- [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
|
||||||
- You'll know you've done it right if you can run `git --version`
|
- You'll know you've done it right if you can run `git --version`
|
||||||
- [Foundry / Foundryup](https://github.com/gakonst/foundry)
|
- [Foundry / Foundryup](https://github.com/gakonst/foundry)
|
||||||
- This will install `forge`, `cast`, and `anvil`
|
- This will install `forge`, `cast`, and `anvil`
|
||||||
- You can test you've installed them right by running `forge --version` and get an output like: `forge 0.2.0 (92f8951 2022-08-06T00:09:32.96582Z)`
|
- You can test you've installed them right by running `forge --version` and get an output like: `forge 0.2.0 (92f8951 2022-08-06T00:09:32.96582Z)`
|
||||||
- To get the latest of each, just run `foundryup`
|
- To get the latest of each, just run `foundryup`
|
||||||
- [Yarn](https://classic.yarnpkg.com/lang/en/docs/install)
|
- [Yarn](https://classic.yarnpkg.com/lang/en/docs/install)
|
||||||
|
|
||||||
|
|
||||||
## Compilation
|
## Compilation
|
||||||
|
|
||||||
|
@ -20,33 +19,42 @@ yarn compile
|
||||||
```
|
```
|
||||||
|
|
||||||
## Testing with Hardhat
|
## Testing with Hardhat
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
yarn test:hardhat
|
yarn test:hardhat
|
||||||
```
|
```
|
||||||
|
|
||||||
## Testing with Foundry
|
## Testing with Foundry
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
yarn test:foundry
|
yarn test:foundry
|
||||||
```
|
```
|
||||||
|
|
||||||
## Deploying
|
## Deploying
|
||||||
|
|
||||||
- To deploy on local node, first start the local node and then run the deploy script
|
### Locally
|
||||||
|
|
||||||
|
- To deploy on a local node, first start the local node and then run the deploy script
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
yarn node
|
yarn node
|
||||||
npx deploy:localhost
|
yarn deploy:localhost
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Sepolia
|
||||||
|
|
||||||
- To deploy to an target network (like Sepolia), use the name as mentioned in the Hardhat config file.
|
- To deploy to an target network (like Sepolia), use the name as mentioned in the Hardhat config file.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
yarn deploy:sepolia
|
yarn deploy:sepolia
|
||||||
|
# You may verify the contract using
|
||||||
|
yarn verify:sepolia # Ensure you have set ETHERSCAN_API_KEY in your env
|
||||||
```
|
```
|
||||||
|
|
||||||
## References
|
## References
|
||||||
|
|
||||||
For more information, see https://hardhat.org/hardhat-runner/docs/guides/project-setup
|
For more information, see https://hardhat.org/hardhat-runner/docs/guides/project-setup
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
Dual-licensed under MIT or Apache 2.0, refer to [LICENSE-MIT](LICENSE-MIT) or [LICENSE-APACHE](LICENSE-APACHE) for more information.
|
Dual-licensed under MIT or Apache 2.0, refer to [LICENSE-MIT](LICENSE-MIT) or [LICENSE-APACHE](LICENSE-APACHE) for more information.
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
"chainId": "11155111",
|
"chainId": "11155111",
|
||||||
"contracts": {
|
"contracts": {
|
||||||
"PoseidonHasher": {
|
"PoseidonHasher": {
|
||||||
"address": "0xfa72Ce89D60d085B8FdB445fF6edC47475D58d1E",
|
"address": "0xa1554EAF0DF18C05956249aac375e212edeD2CcF",
|
||||||
"abi": [
|
"abi": [
|
||||||
{
|
{
|
||||||
"inputs": [
|
"inputs": [
|
||||||
|
@ -25,24 +25,11 @@
|
||||||
],
|
],
|
||||||
"stateMutability": "pure",
|
"stateMutability": "pure",
|
||||||
"type": "function"
|
"type": "function"
|
||||||
},
|
|
||||||
{
|
|
||||||
"inputs": [],
|
|
||||||
"name": "identity",
|
|
||||||
"outputs": [
|
|
||||||
{
|
|
||||||
"internalType": "uint256",
|
|
||||||
"name": "",
|
|
||||||
"type": "uint256"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"stateMutability": "pure",
|
|
||||||
"type": "function"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"RLN": {
|
"RLN": {
|
||||||
"address": "0x4B11778822690DefA80934B3203C170ed6B5d317",
|
"address": "0x9C09146844C1326c2dBC41c451766C7138F88155",
|
||||||
"abi": [
|
"abi": [
|
||||||
{
|
{
|
||||||
"inputs": [
|
"inputs": [
|
||||||
|
@ -65,6 +52,86 @@
|
||||||
"stateMutability": "nonpayable",
|
"stateMutability": "nonpayable",
|
||||||
"type": "constructor"
|
"type": "constructor"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"inputs": [],
|
||||||
|
"name": "DuplicateIdCommitment",
|
||||||
|
"type": "error"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"inputs": [],
|
||||||
|
"name": "EmptyBatch",
|
||||||
|
"type": "error"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"inputs": [],
|
||||||
|
"name": "FullBatch",
|
||||||
|
"type": "error"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"inputs": [
|
||||||
|
{
|
||||||
|
"internalType": "uint256",
|
||||||
|
"name": "required",
|
||||||
|
"type": "uint256"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"internalType": "uint256",
|
||||||
|
"name": "provided",
|
||||||
|
"type": "uint256"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"name": "InsufficientDeposit",
|
||||||
|
"type": "error"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"inputs": [
|
||||||
|
{
|
||||||
|
"internalType": "address",
|
||||||
|
"name": "to",
|
||||||
|
"type": "address"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"name": "InvalidWithdrawalAddress",
|
||||||
|
"type": "error"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"inputs": [
|
||||||
|
{
|
||||||
|
"internalType": "uint256",
|
||||||
|
"name": "idCommitment",
|
||||||
|
"type": "uint256"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"name": "MemberHasNoStake",
|
||||||
|
"type": "error"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"inputs": [
|
||||||
|
{
|
||||||
|
"internalType": "uint256",
|
||||||
|
"name": "idCommitment",
|
||||||
|
"type": "uint256"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"name": "MemberNotRegistered",
|
||||||
|
"type": "error"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"inputs": [
|
||||||
|
{
|
||||||
|
"internalType": "uint256",
|
||||||
|
"name": "givenSecretsLen",
|
||||||
|
"type": "uint256"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"internalType": "uint256",
|
||||||
|
"name": "givenReceiversLen",
|
||||||
|
"type": "uint256"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"name": "MismatchedBatchSize",
|
||||||
|
"type": "error"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"anonymous": false,
|
"anonymous": false,
|
||||||
"inputs": [
|
"inputs": [
|
||||||
|
@ -244,19 +311,6 @@
|
||||||
"stateMutability": "nonpayable",
|
"stateMutability": "nonpayable",
|
||||||
"type": "function"
|
"type": "function"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"inputs": [
|
|
||||||
{
|
|
||||||
"internalType": "uint256",
|
|
||||||
"name": "secret",
|
|
||||||
"type": "uint256"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"name": "withdraw",
|
|
||||||
"outputs": [],
|
|
||||||
"stateMutability": "nonpayable",
|
|
||||||
"type": "function"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"inputs": [
|
"inputs": [
|
||||||
{
|
{
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue