{"id":13567070,"url":"https://github.com/scrtlabs/secret-template","last_synced_at":"2025-04-04T01:30:59.234Z","repository":{"id":40652962,"uuid":"278034258","full_name":"scrtlabs/secret-template","owner":"scrtlabs","description":"Quickstart template to get started writing your own cosmwasm contracts","archived":false,"fork":true,"pushed_at":"2024-06-18T18:08:03.000Z","size":165,"stargazers_count":25,"open_issues_count":2,"forks_count":23,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T13:02:20.045Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"CosmWasm/cw-template","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scrtlabs.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":"2020-07-08T08:31:13.000Z","updated_at":"2024-11-28T01:18:18.000Z","dependencies_parsed_at":"2023-01-27T07:01:38.858Z","dependency_job_id":null,"html_url":"https://github.com/scrtlabs/secret-template","commit_stats":null,"previous_names":["enigmampc/secret-template"],"tags_count":3,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scrtlabs%2Fsecret-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scrtlabs%2Fsecret-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scrtlabs%2Fsecret-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scrtlabs%2Fsecret-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scrtlabs","download_url":"https://codeload.github.com/scrtlabs/secret-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247107816,"owners_count":20884793,"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-08-01T13:02:22.970Z","updated_at":"2025-04-04T01:30:58.763Z","avatar_url":"https://github.com/scrtlabs.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# Secret Contracts Starter Pack\n\nThis is a template to build secret contracts in Rust to run in\n[Secret Network](https://github.com/enigmampc/SecretNetwork).\nTo understand the framework better, please read the overview in the\n[CosmWasm repo](https://github.com/CosmWasm/cosmwasm/blob/master/README.md),\nand dig into the [CosmWasm docs](https://book.cosmwasm.com/).\nThis assumes you understand the theory and just want to get coding.\n\n## Creating a new repo from template\n\nAssuming you have a recent version of rust and cargo installed (via [rustup](https://rustup.rs/)),\nthen the following should get you a new repo to start a contract:\n\nFirst, install\n[cargo-generate](https://github.com/ashleygwilliams/cargo-generate).\nUnless you did that before, run this line now:\n\n```sh\ncargo install cargo-generate --features vendored-openssl\n```\n\nNow, use it to create your new contract.\nGo to the folder in which you want to place it and run:\n\n```sh\ncargo generate --git https://github.com/scrtlabs/secret-template.git --name YOUR_NAME_HERE\n```\n\nYou will now have a new folder called `YOUR_NAME_HERE` (I hope you changed that to something else)\ncontaining a simple working contract and build system that you can customize.\n\nDon't forget to change the `name` and the `authors` fields in the `Cargo.toml` file.\n\n## Create a Repo\n\nAfter generating, you have a initialized local git repo, but no commits, and no remote.\nGo to a server (eg. github) and create a new upstream repo (called `YOUR-GIT-URL` below).\nThen run the following:\n\n```sh\n# this is needed to create a valid Cargo.lock file (see below)\ncargo check\ngit checkout -b master # in case you generate from non-master\ngit add .\ngit commit -m 'Initial Commit'\ngit remote add origin YOUR-GIT-URL\ngit push -u origin master\n```\n\n## Using your project\n\nOnce you have your custom repo, you should check out [Developing](./Developing.md) to explain\nmore on how to run tests and develop code. Or go through the\n[Getting Started docs](https://docs.scrt.network/secret-network-documentation/development/getting-started) to get a better feel\nof how to develop.\n\n[Publishing](./Publishing.md) contains useful information on how to publish your contract\nto the world, once you are ready to deploy it on a running blockchain. And\n[Importing](./Importing.md) contains information about pulling in other contracts or crates\nthat have been published.\n\nYou can also find lots of useful recipes in the `Makefile` which you can use\nif you have `make` installed (very recommended. at least check them out).\n\nPlease replace this README file with information about your specific project. You can keep\nthe `Developing.md` and `Publishing.md` files as useful referenced, but please set some\nproper description in the README.\n\n## Importing Additional Dependencies\n\nIf you would like to import additional dependencies, such as [Secret Toolkit](https://github.com/scrtlabs/secret-toolkit) or cw-storage-plus, you can do so by adding the following to your cargo.toml file:\n\n```sh\n[dependencies]\nsecret-toolkit = { git = \"https://github.com/scrtlabs/secret-toolkit\", tag = \"v0.8.0\"}\ncw-storage-plus = {version = \"1.0.1\", default-features = false}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscrtlabs%2Fsecret-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscrtlabs%2Fsecret-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscrtlabs%2Fsecret-template/lists"}