{"id":18953153,"url":"https://github.com/0xpolygon/eth-state-transition","last_synced_at":"2025-06-15T18:06:17.525Z","repository":{"id":45045663,"uuid":"427313264","full_name":"0xPolygon/eth-state-transition","owner":"0xPolygon","description":"Ethereum state transition","archived":false,"fork":false,"pushed_at":"2023-05-18T07:58:37.000Z","size":602,"stargazers_count":6,"open_issues_count":0,"forks_count":8,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-29T05:34:24.709Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/0xPolygon.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-12T10:09:59.000Z","updated_at":"2022-07-08T16:52:20.000Z","dependencies_parsed_at":"2024-06-20T23:21:58.686Z","dependency_job_id":"77ed959b-76b6-48e3-8847-c42086f6eaca","html_url":"https://github.com/0xPolygon/eth-state-transition","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/0xPolygon%2Feth-state-transition","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xPolygon%2Feth-state-transition/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xPolygon%2Feth-state-transition/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xPolygon%2Feth-state-transition/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xPolygon","download_url":"https://codeload.github.com/0xPolygon/eth-state-transition/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249184542,"owners_count":21226398,"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":[],"created_at":"2024-11-08T13:36:50.609Z","updated_at":"2025-04-16T02:31:54.344Z","avatar_url":"https://github.com/0xPolygon.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Eth-state-transition\n\nEthereum state transition function.\n\n## Usage\n\n```golang\n\nimport (\n    itrie \"github.com/0xPolygon/eth-state-transition/immutable-trie\"\n    \"github.com/0xPolygon/eth-state-transition/runtime\"\n    state \"github.com/0xPolygon/eth-state-transition\"\n)\n\nfunc main() {\n    // get a reference for the state\n    state := itrie.NewArchiveState(itrie.NewMemoryStorage())\n    snap := s.NewSnapshot()\n\n    // create a transition object\n    forks := runtime.ForksInTime{}\n    config := runtime.TxContext{}\n    transition := state.NewTransition(forks, config, snap)\n\n    // process a transaction\n    result, err := transition.Write(\u0026state.Transaction{})\n    if err != nil {\n        panic(err)\n    }\n\n    fmt.Printf(\"Logs: %v\\n\", result.Logs)\n    fmt.Printf(\"Gas used: %d\\n\", result.GasUsed)\n\n    // retrieve the state data changed\n    objs := transition.Commit()\n\n    // commit the data to the state\n    if _, err := snap.Commit(objs); err != nil {\n        panic(err)\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xpolygon%2Feth-state-transition","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xpolygon%2Feth-state-transition","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xpolygon%2Feth-state-transition/lists"}