{"id":13620184,"url":"https://github.com/axieinfinity/ronin-smart-contracts","last_synced_at":"2026-01-17T02:59:37.737Z","repository":{"id":42506718,"uuid":"280412742","full_name":"axieinfinity/ronin-smart-contracts","owner":"axieinfinity","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-11T12:48:11.000Z","size":1539,"stargazers_count":156,"open_issues_count":23,"forks_count":57,"subscribers_count":26,"default_branch":"master","last_synced_at":"2025-04-14T19:40:50.624Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Solidity","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/axieinfinity.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":"2020-07-17T11:58:45.000Z","updated_at":"2024-12-24T09:32:26.000Z","dependencies_parsed_at":"2024-11-08T06:32:11.718Z","dependency_job_id":"8301c192-9c8c-40c7-8d82-f356ef228ca0","html_url":"https://github.com/axieinfinity/ronin-smart-contracts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/axieinfinity/ronin-smart-contracts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axieinfinity%2Fronin-smart-contracts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axieinfinity%2Fronin-smart-contracts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axieinfinity%2Fronin-smart-contracts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axieinfinity%2Fronin-smart-contracts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/axieinfinity","download_url":"https://codeload.github.com/axieinfinity/ronin-smart-contracts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axieinfinity%2Fronin-smart-contracts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28492593,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T02:39:23.645Z","status":"ssl_error","status_checked_at":"2026-01-17T02:34:19.649Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-08-01T21:00:53.169Z","updated_at":"2026-01-17T02:59:37.724Z","avatar_url":"https://github.com/axieinfinity.png","language":"Solidity","funding_links":[],"categories":["Resources"],"sub_categories":[],"readme":"##**Ronin-Smart-Contracts**\n\nThe smart contracts that power Ronin.\n\n## **Validators**\n\nOnly validators can produce blocks on Ronin. Validators can also acknowledge deposit and withdrawal events to facilitate asset transfers.\n\nEach validator contract has a minimum threshold that must be reached when the state changes such as transfer of assets and addition/removal of validators. There is one validator contract on Ethereum and a corresponding validator contract on Ronin. An admin has the right to manage validators on Ethereum (in the future this will be upgraded to a multi-sig walllet). These changes are relayed to Ronin through the Bridge component.\n\n## Ethereum Bridge\n\nWhen an event happens on Ethereum, the Bridge component in each validator node will pick it up and relay it to Ronin by sending a corresponding transaction.\n\nDepending on the action, these transactions will be relayed to *SideChainValidator* (changes in the validator list/updates to the consensus threshold) or *SidechainGatewayManager* (deposits, withdrawals).\n\nIf there are enough acknowledgements (# of acknowledgement/# of validator \u003e= ratio), the event will be confirmed on Ronin.\n\n### **Adding Validators**\n\nAn admin account will need to send a transaction to add the new validator to *MainchainValidator*. Next, the Bridge in each validator node will acknowledge and approve the new validator. After having enough acknowledgements, the new validator can start proposing blocks.\n\n### **Deposits**\n\nUsers can deposit ETH, ERC20, and ERC721 (NFTs) by sending transactions to *MainchainGatewayManager* and waiting for the deposit to be verified on Ronin. The gateway should have a mapping between token contracts on Ethereum and on Ronin before the deposit can take place.\n\n### **Withdrawals**\n\nSimilar to deposits, there should be token mapping between Ronin and Ethereum before users can withdraw. However, instead of sending a relay transaction on Ethereum, the validators simply provide a signature that the withdrawal event has taken place. The withdrawal then needs to collect enough signatures before it can be claimed by the user on Ethereum.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxieinfinity%2Fronin-smart-contracts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faxieinfinity%2Fronin-smart-contracts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxieinfinity%2Fronin-smart-contracts/lists"}