-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: extract Registration * feat(KeyRegistry): enforce max keys per fid * feat: skip validation in migration * feat: extract KeyManager * chore: update deployment + tests * chore: docs updates * fix: move IdManager owner arg * chore: run Halmos on shared runner * chore: update gas snapshot * chore: grant PR write permission to coverage * feat: remove keys/storage from trustedBatchRegister * feat: remove TrustedCaller from KeyRegistry * chore: comment fixes * chore: review cleanup * chore: remove unused imports * fix: move validator interaction * fix: coverage misses * feat: refactor to pause guardians * fix: run Halmos on macos-latest Co-authored-by: Daejun Park <daejunpark@gmail.com> * chore: bundler natspec * chore: Guardian/TrustedCaller symtests * feat: constrain decreasing maxKeysPerFid * chore: rename managers gateways * feat: remove payment from KeyGateway * feat: add external useNonce() * fix: deadline validation * chore: remove unused Pausable imports * feat: add optional extraStorage to IdGateway * fix: add previous recovery to recovery sig * refactor: extract abstract Migration helper * chore: extract interfaces * refactor: move all errors and events to interfaces * feat: add migration helpers to IdRegistry * feat: remove trustedCaller from IdGateway * feat: remove trustedCaller from Bundler * chore: remove references to trustedCaller * feat: migrate with default recovery * feat: freezable gateways * fix: e2e and container tests * chore: update docs * chore: update Mermaid chart * feat: deploy Migration in paused state * refactor: pass explicit migrator * fix: update symtests * chore: add MIGRATOR_ADDRESS env var * fix: expected VERSION in CI * fix: missing tests for setMigrator * feat: enumerable keys * refactor: separate libraries, omit from coverage * fix: exclude precompiles from fuzzed addrs * chore: update natspec * feat: add paged lookup * chore: update protocol versions * chore: move IdRegistry gas tests to IdGateway * fix: version in CI check * fix: use generic storage for KeyRegistry symtest * fix: temporarily remove .gas-snapshot * fix: regenerate gas snapshot * fix: update symtests * chore: add paged key tests * fix: remove unused variable * fix: remove src/.gas-snapshot * fix: update version in docs URLs * fix: settable StorageRegistry on IdGateway * refactor: s/migration/onlyMigrator * chore: change security contact * feat: transfer and change recovery * chore: add natspec * fix: remove redundant line * fix: state mutability * feat: track removed keys * fix: symtest updates * fix: add KeyRegistry symtest harness * chore: update upgrade script * refactor: calldata keys * chore: add post-checks to deploy script * chore: add upgrade deploy parameter * chore: add upgrade salts * chore: comment cleanup * chore: update deployment params --------- Co-authored-by: Daejun Park <daejunpark@gmail.com>
- Loading branch information
1 parent
74784dc
commit 0451f3f
Showing
75 changed files
with
7,537 additions
and
2,908 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Price feed addresses | ||
STORAGE_RENT_PRICE_FEED_ADDRESS=0x13e3ee699d1909e989722e753853ae30b17e08c5 | ||
STORAGE_RENT_UPTIME_FEED_ADDRESS=0x371EAD81c9102C9BF4874A9075FFFf170F2Ee389 | ||
|
||
# Storage rent params | ||
STORAGE_RENT_ROLE_ADMIN_ADDRESS=0x53c6dA835c777AD11159198FBe11f95E5eE6B692 | ||
STORAGE_RENT_VAULT_ADDRESS=0x53c6dA835c777AD11159198FBe11f95E5eE6B692 | ||
STORAGE_RENT_ADMIN_ADDRESS=0xD84E32224A249A575A09672Da9cb58C381C4837a | ||
STORAGE_RENT_OPERATOR_ADDRESS=0x0000000000000000000000000000000000000000 | ||
STORAGE_RENT_TREASURER_ADDRESS=0x0000000000000000000000000000000000000000 | ||
|
||
# ID registry params | ||
ID_REGISTRY_OWNER_ADDRESS=0x53c6dA835c777AD11159198FBe11f95E5eE6B692 | ||
|
||
# Key registry params | ||
KEY_REGISTRY_OWNER_ADDRESS=0x53c6dA835c777AD11159198FBe11f95E5eE6B692 | ||
|
||
# Metadata validator params | ||
METADATA_VALIDATOR_OWNER_ADDRESS=0x53c6dA835c777AD11159198FBe11f95E5eE6B692 | ||
|
||
# Bundler params | ||
BUNDLER_TRUSTED_CALLER_ADDRESS= | ||
BUNDLER_OWNER_ADDRESS= | ||
|
||
# Recovery proxy params | ||
RECOVERY_PROXY_OWNER_ADDRESS=0xFFE52568Fb0E7038Ef289677288BB704E5c9E82e | ||
|
||
# Fname resolver params. | ||
FNAME_RESOLVER_SERVER_URL=https://fnames.farcaster.xyz/ccip/{sender}/{data}.json | ||
FNAME_RESOLVER_SIGNER_ADDRESS=0xBc5274eFc266311015793d89E9B591fa46294741 | ||
FNAME_RESOLVER_OWNER_ADDRESS=0x138356f24c7A16BE48978dE277a468F6C16A19a5 | ||
|
||
# RPC endpoints for OP testnet and mainnet. | ||
L1_MAINNET_RPC_URL= | ||
L2_MAINNET_RPC_URL= | ||
|
||
# Salts | ||
STORAGE_RENT_CREATE2_SALT=0x0000000000000000000000000000000000000000000000000000000000000000 | ||
ID_REGISTRY_CREATE2_SALT=0x299707e127cc77de01b9fd968bc0ff475f3c6342d7872c397cd084029fbf64dc | ||
ID_GATEWAY_CREATE2_SALT=0x299707e127cc77de01b9fd968bc0ff475f3c6342a1b2a1fd9db0df01f0373563 | ||
KEY_REGISTRY_CREATE2_SALT=0x299707e127cc77de01b9fd968bc0ff475f3c6342aee9be2412b02b01eb294554 | ||
KEY_GATEWAY_CREATE2_SALT=0x299707e127cc77de01b9fd968bc0ff475f3c6342229ded5ec3c3bd02e574f7be | ||
SIGNED_KEY_REQUEST_VALIDATOR_CREATE2_SALT=0x0000000000000000000000000000000000000000000000000000000000000000 | ||
BUNDLER_CREATE2_SALT=0x299707e127cc77de01b9fd968bc0ff475f3c6342e9da01d98917640342e02a5c | ||
RECOVERY_PROXY_CREATE2_SALT=0x299707e127cc77de01b9fd968bc0ff475f3c63421958ea987b94fd038a490454 | ||
|
||
# Deployed contracts | ||
STORAGE_RENT_ADDRESS=0x00000000fcCe7f938e7aE6D3c335bD6a1a7c593D | ||
SIGNED_KEY_REQUEST_VALIDATOR_ADDRESS=0x00000000FC700472606ED4fA22623Acf62c60553 | ||
|
||
# Deployer address. | ||
DEPLOYER=0x299707E127CC77DE01b9Fd968Bc0ff475f3C6342 | ||
|
||
# Migrator address. | ||
MIGRATOR_ADDRESS=0x2D93c2F74b2C4697f9ea85D0450148AA45D4D5a2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
BundleRegistryGasUsageTest:testGasRegisterWithSig() (gas: 834748) | ||
BundleRegistryGasUsageTest:testGasTrustedBatchRegister() (gas: 7081493) | ||
BundleRegistryGasUsageTest:testGasTrustedRegister() (gas: 917155) | ||
IdRegistryGasUsageTest:testGasRegister() (gas: 734577) | ||
IdRegistryGasUsageTest:testGasRegisterForAndRecover() (gas: 1741741) | ||
IdRegistryGasUsageTest:testGasRegisterFromTrustedCaller() (gas: 807023) | ||
BundleRegistryGasUsageTest:testGasRegisterWithSig() (gas: 1118748) | ||
IdGatewayGasUsageTest:testGasRegister() (gas: 1402640) | ||
IdGatewayGasUsageTest:testGasRegisterForAndRecover() (gas: 1973946) | ||
StorageRegistryGasUsageTest:testGasBatchCredit() (gas: 173053) | ||
StorageRegistryGasUsageTest:testGasBatchRent() (gas: 270570) | ||
StorageRegistryGasUsageTest:testGasBatchRent() (gas: 270579) | ||
StorageRegistryGasUsageTest:testGasContinuousCredit() (gas: 166530) | ||
StorageRegistryGasUsageTest:testGasCredit() (gas: 81890) | ||
StorageRegistryGasUsageTest:testGasRent() (gas: 163250) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.