{"id":23107749,"url":"https://github.com/kleros/cross-chain-realitio-proxy-optimism","last_synced_at":"2026-03-20T00:37:26.520Z","repository":{"id":248495122,"uuid":"828848747","full_name":"kleros/cross-chain-realitio-proxy-optimism","owner":"kleros","description":"Cross-chain Realitio proxy for Optimism and Redstone","archived":false,"fork":false,"pushed_at":"2025-01-15T19:54:18.000Z","size":1499,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-15T22:07:38.498Z","etag":null,"topics":["arbitrable","oracles","reality","smart-contracts"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kleros.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-15T08:49:57.000Z","updated_at":"2025-01-15T19:54:21.000Z","dependencies_parsed_at":"2024-07-15T10:39:22.816Z","dependency_job_id":"9098e53d-b06b-468a-aa8c-0c3791aff2f7","html_url":"https://github.com/kleros/cross-chain-realitio-proxy-optimism","commit_stats":null,"previous_names":["kleros/cross-chain-realitio-proxy-redstone","kleros/cross-chain-realitio-proxy-optimism"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kleros%2Fcross-chain-realitio-proxy-optimism","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kleros%2Fcross-chain-realitio-proxy-optimism/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kleros%2Fcross-chain-realitio-proxy-optimism/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kleros%2Fcross-chain-realitio-proxy-optimism/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kleros","download_url":"https://codeload.github.com/kleros/cross-chain-realitio-proxy-optimism/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237938100,"owners_count":19390555,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arbitrable","oracles","reality","smart-contracts"],"created_at":"2024-12-17T01:15:58.201Z","updated_at":"2025-10-24T08:31:20.674Z","avatar_url":"https://github.com/kleros.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cross-chain Reality Proxy Optimism\n\n### ⚠️ The content has been moved to [kleros/cross-chain-realitio-proxy](https://github.com/kleros/cross-chain-realitio-proxy)\n\n## Developer Guide\n\n### Adding support for a new Optimism chain\n\n#### 0. Preliminary\n* Get the Reality.eth contract **address** and deployment **block number** from the [Reality monorepo](https://github.com/RealityETH/reality-eth-monorepo/tree/main/packages/contracts/chains/deployments).\n\n#### 1. Hardhat configuration\n* Add the new chain configuration to hardhat.config.\n* Make sure to add the correct **tag** (home or foreign) and the correct **companion network** for the home and foreign networks (so that both networks have a companion network referring to the other). The deployment scripts rely on them.\n* In `package.json`, add the extra convenience scripts: `metaevidence:xxx` , `deploy:xxx`\n\n#### 2. Contracts code\n* Build the bridging logic in the proxies if needed. \n  * E.g. for an OP L2 it is not needed, the logic is the same for all OP L2s and is already implemented.\n* Test, review etc\n\n#### 3. Dynamic \u0026 Evidence scripts\n* Add the Reality.eth contract and deployment block number to the script files [here](https://github.com/kleros/cross-chain-realitio-proxy-optimism/blob/1ed08c3ea06ef00398b02f64d1657de3d4ac50c8/dynamic-script/src/index.js#L8) and [here](https://github.com/kleros/cross-chain-realitio-proxy-optimism/blob/1ed08c3ea06ef00398b02f64d1657de3d4ac50c8/evidence-display/src/containers/realitio.js#L10). \n* `yarn build`\n* Upload the file `dynamic-script/dist/realitio-dynamic-script-vx.x.x.js` to IPFS.\n* Upload the folder `evidence-display/evidence-display-vx.x.x` to IPFS.\n\n#### 4. MetaEvidence\n* [In this script](https://github.com/kleros/cross-chain-realitio-proxy-optimism/blob/1ed08c3ea06ef00398b02f64d1657de3d4ac50c8/contracts/tasks/generate-metaevidence.js#L36-L37), update the CIDs with the latest dynamic and evidence scripts uploaded to IPFS in the above steps.\n* Run `yarn metaevidence:xxx` for the new chain\n* Upload the resulting metaevidence-xxx.json to IPFS\n\n#### 5. Contracts deployment\n* Configuration:\n  * In the home and foreign proxy deployment script, add a configuration object to `params` .\n  * The home script needs the Reality contract address.\n  * The foreign script needs the desired courtId and number of jurors (arbitratorExtraData), the L1 bridge address (messenger) and the metaEvidence IPFS URI (from earlier step).\n* Deploy and verify with `yarn deploy:xxx`.\n* Update the contracts README by running `./scripts/populateReadme.sh`, expand the script if needed.\n* Make sure to commit to `deployments` folder to git.\n\n#### 6. Adding support to the Court v1\n* Add support for the new chain (because the dynamic/evidence scripts need a RPC provided by the court).\n* Whitelist the newly deployed arbitrable.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkleros%2Fcross-chain-realitio-proxy-optimism","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkleros%2Fcross-chain-realitio-proxy-optimism","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkleros%2Fcross-chain-realitio-proxy-optimism/lists"}