{"id":21429770,"url":"https://github.com/limechain/gosemble-research","last_synced_at":"2026-01-12T00:55:03.154Z","repository":{"id":61839459,"uuid":"496986067","full_name":"LimeChain/gosemble-research","owner":"LimeChain","description":"Research on a Go-based Polkadot/Substrate Runtimes","archived":false,"fork":false,"pushed_at":"2023-01-04T12:50:29.000Z","size":2697,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-23T08:18:07.015Z","etag":null,"topics":["go","polkadot","runtime","substrate"],"latest_commit_sha":null,"homepage":"","language":"Go","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/LimeChain.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-27T12:21:21.000Z","updated_at":"2024-03-26T16:21:39.000Z","dependencies_parsed_at":"2023-02-02T13:02:03.972Z","dependency_job_id":null,"html_url":"https://github.com/LimeChain/gosemble-research","commit_stats":null,"previous_names":["radkomih/gosemble"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LimeChain%2Fgosemble-research","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LimeChain%2Fgosemble-research/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LimeChain%2Fgosemble-research/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LimeChain%2Fgosemble-research/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LimeChain","download_url":"https://codeload.github.com/LimeChain/gosemble-research/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243940062,"owners_count":20372044,"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":["go","polkadot","runtime","substrate"],"created_at":"2024-11-22T22:19:07.365Z","updated_at":"2026-01-03T12:31:44.360Z","avatar_url":"https://github.com/LimeChain.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go-based Polkadot/Substrate Runtimes \n\nThe following repository contains research and PoC on toolchains for building Go-based Polkadot/Substrate runtimes.\nThe research is funded by [**Web3 Foundation**](https://web3.foundation) **Grants** and developed, maintained by\n[**LimeChain**](https://limechain.tech).\n\n[Research Results](./docs/2-go-based-polkadot-runtime.md)\n\n[Next phase](https://github.com/LimeChain/gosemble) is the continuation of the effort to implement a Go-based framework for building Substrate compatible runtimes.\n\n\n## PoC of a Polkadot Runtime in Go\n\nThe steps below will showcase testing a PoC Polkadot Runtime implementation in Go.\n\n**Prerequisites**\n\n- [git](https://git-scm.com/downloads)\n- [Go 1.18+](https://golang.org/doc/install)\n- [docker](https://docs.docker.com/install/)\n\n**Cloning the repository**\n\n```bash\ngit clone https://github.com/LimeChain/gosemble.git\ncd gosemble\n```\n\n**Pull all necessary git submodules**\n\n```bash\ngit submodule update --init --recursive\n```\n\n**Build the Runtime**\n\nUsing a [forked version of TinyGo](https://github.com/LimeChain/tinygo), we build the Runtime with target `polkawasm`,\nexported in `build/runtime.wasm`.\n\n```bash\nmake build\n```\n\n**Run Tests**\n\nAfter the runtime has been built, we execute standard Go tests with the help of\na [forked version of Gossamer](https://github.com/LimeChain/gossamer), which we use to import necessary Polkadot Host\nfunctionality and interact with the Runtime.\n\n```bash\nmake test\n```\n\n**Optional steps**\n\n* Inspect WASM Runtime - [wasmer](https://wasmer.io/)\n\n```bash\nwasmer inspect build/runtime.wasm\n```\n\n* Convert WASM from binary to text format - [wasm2wat](https://command-not-found.com/wasm2wat)\n\n```bash\nwasm2wat build/runtime.wasm -o build/runtime.wat\ncat build/runtime.wat\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flimechain%2Fgosemble-research","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flimechain%2Fgosemble-research","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flimechain%2Fgosemble-research/lists"}