{"id":31619365,"url":"https://github.com/multiversx/mx-chain-deploy-go","last_synced_at":"2025-10-06T14:05:32.141Z","repository":{"id":46179660,"uuid":"181823587","full_name":"multiversx/mx-chain-deploy-go","owner":"multiversx","description":"MultiversX Deployment Tools","archived":false,"fork":false,"pushed_at":"2025-03-13T18:00:02.000Z","size":372,"stargazers_count":3,"open_issues_count":4,"forks_count":6,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-03-13T19:25:47.288Z","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/multiversx.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":"2019-04-17T05:33:55.000Z","updated_at":"2024-09-19T07:48:02.000Z","dependencies_parsed_at":"2023-07-13T01:30:09.290Z","dependency_job_id":"2d98bec3-998a-4c54-9241-2d7f64a7f3e0","html_url":"https://github.com/multiversx/mx-chain-deploy-go","commit_stats":null,"previous_names":["elrondnetwork/elrond-deploy-go"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/multiversx/mx-chain-deploy-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/multiversx%2Fmx-chain-deploy-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/multiversx%2Fmx-chain-deploy-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/multiversx%2Fmx-chain-deploy-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/multiversx%2Fmx-chain-deploy-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/multiversx","download_url":"https://codeload.github.com/multiversx/mx-chain-deploy-go/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/multiversx%2Fmx-chain-deploy-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278621844,"owners_count":26017253,"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","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2025-10-06T14:05:28.824Z","updated_at":"2025-10-06T14:05:32.136Z","avatar_url":"https://github.com/multiversx.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mx-chain-deploy-go\n\nThe go implementation for the MultiversX deployment configs generator\n\n# Getting started\n\n## Prerequisites\n\nBuilding the repository requires Go (version 1.17 or later)\n\n## Installation and running\n\nRun in  %project_folder%/cmd/filegen folder the following command to build a filegen (which generates .pem and .json\n files used by the node):\n \n ### To run in \"direct\" staking mode, please run this:\n ```\n $ go build\n$ ./filegen -stake-type direct -node-price 2500000000000000000000 -total-supply 20000000000000000000000000 -num-of-shards 3 -num-of-nodes-in-each-shard 7 -consensus-group-size 5 -num-of-observers-in-each-shard 1 -num-of-metachain-nodes 7 -metachain-consensus-group-size 7 -num-of-observers-in-metachain 1 -hysteresis 0.2\n ```\n\n ### To run in \"delegated\" staking mode, please run this:\n ```\n $ go build\n$ ./filegen -stake-type delegated -node-price 2500000000000000000000 -total-supply 20000000000000000000000000 -num-of-shards 3 -num-of-nodes-in-each-shard 7 -consensus-group-size 5 -num-of-observers-in-each-shard 1 -num-of-metachain-nodes 7 -metachain-consensus-group-size 7 -num-of-observers-in-metachain 1 -hysteresis 0.2 -num-delegators 1293\n ```\n\nIn the \"delegated\" mode the  initial staking will be done through the delegation SC. When set to \"delegated\" mode, there are \n2 optional flags `delegation-init` for setting a custom init string and `delegation-version` for setting the correspondent \ndelegation SC version.\n\n### Important: \nIf the hysteresis value is greater than 0, the binary will add more nodes as validators in order to \ncompensate for the nodes in the waiting list. \n\n### Notes: \nThe optional flag called `-richest-account` can be used in order to increase the first wallet key to almost \nall available balance left after the staking process occurred. This is helpful when dealing with automated staking scenarios.\n\n### Running with docker\n```\n$ docker pull multiversx/mx-chain-filegen:tagname\n$ docker run -v /tmp/:/data/ multiversx/mx-chain-filegen:latest -stake-type direct -node-price 2500000000000000000000 -total-supply 20000000000000000000000000 -num-of-shards 3 ...\n```\nThis will create the files on the host machine running Docker at the path location `/tmp/`.\nDetailed information about the build is located under https://hub.docker.com/r/multiversx/mx-chain-filegen\n \n## Running the tests\n```\n$ go test ./...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmultiversx%2Fmx-chain-deploy-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmultiversx%2Fmx-chain-deploy-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmultiversx%2Fmx-chain-deploy-go/lists"}