{"id":19423186,"url":"https://github.com/make-software/casper-event-standard","last_synced_at":"2025-04-24T16:30:44.329Z","repository":{"id":65601337,"uuid":"592870261","full_name":"make-software/casper-event-standard","owner":"make-software","description":"The smart contract level events for Casper Network.","archived":false,"fork":false,"pushed_at":"2025-01-21T11:09:07.000Z","size":49,"stargazers_count":6,"open_issues_count":5,"forks_count":7,"subscribers_count":5,"default_branch":"release/0.5.0","last_synced_at":"2025-03-28T02:03:56.255Z","etag":null,"topics":["blockchain","blockchain-technology","casper-network","ces","smart-contracts"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/casper-event-standard","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/make-software.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-24T18:01:07.000Z","updated_at":"2024-04-10T09:48:58.000Z","dependencies_parsed_at":"2025-01-21T12:30:01.926Z","dependency_job_id":null,"html_url":"https://github.com/make-software/casper-event-standard","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/make-software%2Fcasper-event-standard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/make-software%2Fcasper-event-standard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/make-software%2Fcasper-event-standard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/make-software%2Fcasper-event-standard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/make-software","download_url":"https://codeload.github.com/make-software/casper-event-standard/tar.gz/refs/heads/release/0.5.0","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250629856,"owners_count":21461902,"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":["blockchain","blockchain-technology","casper-network","ces","smart-contracts"],"created_at":"2024-11-10T13:37:08.899Z","updated_at":"2025-04-24T16:30:44.324Z","avatar_url":"https://github.com/make-software.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Casper Event Standard\n\nThe Casper Event Standard is a Rust library that provides a simple and standardized way for smart contracts on the Casper Network to emit events. Events are an important tool for decentralized applications, as they allow contracts to communicate with external services in a transparent and decentralized way.\n\nWith the Casper Event Standard, developers can easily define custom event types and register them in the contract. The library provides a convenient API for emitting events. This makes it easy to build complex applications that rely on event-driven architecture.\n\nWhether you're building a decentralized exchange, a prediction market, or any other type of blockchain application, the Casper Event Standard is an essential tool for creating reliable and scalable smart contracts. So why wait? Start using the Casper Event Standard today and take your decentralized application to the next level!\n\n## Usage\n\n```rust\nuse casper_event_standard::Event;\n\n// Turn a struct into an event.\n#[derive(Event)]\nstruct Transfer {\n    amount: U256,\n    from: Key,\n    to: Key\n}\n\n// Register event schemas.\nfn init_events() {\n    let schemas = Schemas::new()\n        .with::\u003cTransfer\u003e();\n    casper_event_standard::init(schemas);\n}\n\n// Emit event.\nfn emit_transfer(transfer: Transfer) {\n    casper_event_standard::emit(transfer);\n}\n```\n\n## Tests\n\nTo test the code run:\n\n```bash\n$ just test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmake-software%2Fcasper-event-standard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmake-software%2Fcasper-event-standard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmake-software%2Fcasper-event-standard/lists"}