Skip to content

voteagora/op-identity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Optimism Identity protocol

Optimism identity protocol is powered by Ethereum Attestation Service (EAS). Current version of the protocol is centralized and requires a trusted entity to be the attester. This repository contains resolver smart contracts that will eventualy be used to manage permisisons and take over the need to trust a single entity.

Name Resolver Proxy Admin Schema
Entity (Optimism Mainnet) 0x2C6706cb5bC82c5985F3937391F5BE1D8dE96B12 0x821f75Cb1D4B3044cB4443dA9fFF6Bee4E7bc5B5 0xff0b916851c1c5507406cfcaa60e5d549c91b7f642eb74e33b88143cae4b47d0
Entity (Sepolia) 0xfA93d7364fCe1056EAab591DF1C0b01aBCa37461 0xaDAAca76f4825F1b7241E05A0657Daec4EcFfe39 0x5eefb359bc596699202474fd99e92172d1b788aa34280f385c498875d1bfb424
Project Metadata (Optimism Mainnet)
Project Metadata (Sepolia) 0xffE52772F4e0211BcBe09AFf8203ff436d99Ec33 0xfd6C253B006067fA4EF06193533692565D37720f 0xdf77b4de78b53f66dcb8281af6dc69720ee75e196756473440660489cf9d933d
Organization Metadata (Optimism Mainnet) 0x630A6A268191c654ce084aAd2D7910fF651e0797 0xd07C24D3DaaA016026E7b653557f4F5793dEf9bA 0xc2b376d1a140287b1fa1519747baae1317cf37e0d27289b86f85aa7cebfd649f
Organization Metadata (Sepolia) 0x0287cf4e225B02D42D90d626C6233cf7F0c7103d 0xDdD8B952aE933584F3caEBfFCDB2D5Fffdf86235 0xbd0cb2ac29e9cb6d07036a9df5800109442dc7209ca17f00af1d5d76804ad999
Application (Sepolia) 0xcE372a175fb2769fe6ceF3fd24f31fE6f3AF59cc 0x88e3264Deae3536f66e9157058C4574eA71c7643 0x45323e3bd4d0931becfbdc26c8ca36173108abc9478dcc40475dacb7c34cfa3d
Application (Optimism Mainnet) 0x5009C2b4e8083fE971446E6e20d79659cFB347BF 0x25c2b570A93BcA72516aa48768EF18010DB42ac2 0x2169b74bfcb5d10a6616bbc8931dc1c56f8d1c305319a9eeca77623a991d4b80
Citizens (Optimism Mainnet) 0xD08dCD25e2731Ce78B74A48c215ca2682B6C3EeA 0xa6722f13874C3CE97b4EDF6fc956bB44b656ADdA 0xc35634c4ca8a54dce0a2af61a9a9a5a3067398cb3916b133238c4f6ba721bc8a
CitizenWalletChange (Optimism Mainnet) 0x60E3B3C7df1237183C69AB13F3D5217e83a0f076 0x57f2269d4B27dDBeFC3f36C11F984A8675512ED0 0xa55599e411f0eb310d47357e7d6064b09023e1d6f8bcb5504c051572a37db5f7
Badgeholders (Optimism Mainnet) 0x5Ce933108e55481C17d1F586f0e21A426ae483b6 0x2f08A08f788510c0Ba5482158caCa02Ca3de9FD7
Foundation Mission Requests (Optimism Mainnet) 0xd22ea004a9a4EfeC545134959A01c9A890471145 0xB48cC46e8fA1b48B526e4c76c96013AEF8C1af88
Metagov Contribution (Optimism Mainnet) 0xdA08B1e305D7eA71332594E226bBc657890bB518 0x5787a988a4F029629CAB73761c84A19e1fe9a68B
Token house Grants (Optimism Mainnet) 0xf88fE93D5c3E63a5FFcdD997e73f77F596Dc6D1f 0xA6f56f6740DdE043d74e42e8BefDe9Abf42e3e03
Community Members (Optimism Mainnet) 0xEbC5344692f59A2CF3Fd09ED00aB2994eeB17c2e 0x2372358a7a883Eb66d2618A0c6B072A2b9BaA2f0
Superchain Members (Optimism Mainnet) 0x18B26cEc36C017b6f9302B969d3C00fBbC4C1a47 0x7E25d28f80A9629F6997499825027f0376DB6294
Verified Contract (Sepolia) 0x6Ecb721A75a0157E41B706b442D9a09202127D37 0x621178d144d2f9b4A062C8fBDf68F67FE39DeBd0 0xb4c6ea838744caa6f0bfce726c0223cffefb94d98e5690f818cf0e2800e7a8f2
Verified Contract (Optimism Mainnet) 0x609b5e82CD85787101Ad05426fFfA5958521F5c5 0xC62913d3c526baa0e20bac67BAf9E383137CDAE2 0x5560b68760b2ec5a727e6a66e1f9754c307384fe7624ae4e0138c530db14a70b
Votes (Sepolia) 0xEbEA360971ac2A16Ed3eC3fb954552F55fc288C6 0x02d2B337D37C4949BA27F349a436cce55C3a9944 0x6b6f133272adcd61abbbf70761914caed1448061059a7fc7464c9d2e24b4159e
Votes (Optimism Mainnet) 0x147Ef4227718daa8C1786F91997C6ce0574D44aD 0xB2F02731c2bf667d1a172856fa7d8827c1eAa05a 0xc113116804c90320b3d059ff8eed8b7171e3475f404f65828bbbe260dce15a99
Proposals (Optimism Mainnet) 0x2d69e3Fa434898999FaEfe0EdBc8a714C4a0fE0F 0xA1ff060e02370F0Be0FB1A5133EbdC0e7747b4D9 0xff0b916851c1c5507406cfcaa60e5d549c91b7f642eb74e33b88143cae4b47d0

Usage

Build

forge build

Test

forge test

Deploy

Each network has a specific deployment script. For example, to deploy to the Sepolia network (equivalent to test network), run the following command:

forge script --rpc-url $OPTIMISM_RPC_URL --broadcast --verify -vvvv script/DeployProposalsResolver.s.sol:DeployProposalsResolverScript
forge script --rpc-url $OPTIMISM_RPC_URL --broadcast --verify -vvvv script/CreateVotesEASSchema.s.sol:CreateVotesEASSchemaScript

You need to replace SEPOLIA_RPC_URL with the RPC url to which you want to deploy the contract. Also, you'll need to set PRIVATE_KEY environment variable to the private key of the account that will deploy the contract.

Upgrade

To upgrade the ProjectModuleResolver to the new implementation, run the following command:

forge script --rpc-url $OPTIMISM_RPC_URL --broadcast -vvvv script/UpgradeEntityResolverToProjectModule.sol:UpgradeEntityResolverToProjectModuleScript

About

Contracts for optimism identity project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published