{"id":18285099,"url":"https://github.com/samlet/pallet-basic","last_synced_at":"2025-04-09T06:14:07.025Z","repository":{"id":95955222,"uuid":"291570095","full_name":"samlet/pallet-basic","owner":"samlet","description":null,"archived":false,"fork":false,"pushed_at":"2020-08-30T23:32:59.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-15T00:29:17.286Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samlet.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-30T23:32:56.000Z","updated_at":"2020-09-03T02:33:47.000Z","dependencies_parsed_at":"2023-09-01T15:01:31.308Z","dependency_job_id":null,"html_url":"https://github.com/samlet/pallet-basic","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"polkadot-developers/substrate-pallet-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlet%2Fpallet-basic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlet%2Fpallet-basic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlet%2Fpallet-basic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samlet%2Fpallet-basic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samlet","download_url":"https://codeload.github.com/samlet/pallet-basic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247987285,"owners_count":21028895,"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-05T13:15:30.941Z","updated_at":"2025-04-09T06:14:07.004Z","avatar_url":"https://github.com/samlet.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Substrate Pallet Template\n\nThis is a template for a Substrate pallet which lives as its own crate so it can be imported into multiple runtimes. It is based on the [\"template\" pallet](https://github.com/paritytech/substrate/tree/master/bin/node-template/pallets/template) that is included with the [Substrate node template](https://github.com/paritytech/substrate/tree/master/bin/node-template).\n\nCheck out the [HOWTO](HOWTO.md) to learn how to use this for your own runtime module.\n\nThis README should act as a general template for distributing your pallet to others.\n\n## Purpose\n\nThis pallet acts as a template for building other pallets.\n\nIt currently allows a user to put a `u32` value into storage, which triggers a runtime event.\n\n## Dependencies\n\n### Traits\n\nThis pallet does not depend on any externally defined traits.\n\n### Pallets\n\nThis pallet does not depend on any other FRAME pallet or externally developed modules.\n\n## Installation\n\n### Runtime `Cargo.toml`\n\nTo add this pallet to your runtime, simply include the following to your runtime's `Cargo.toml` file:\n\n```TOML\n[dependencies.substrate-pallet-template]\ndefault_features = false\ngit = 'https://github.com/substrate-developer-hub/substrate-pallet-template.git'\n```\n\nand update your runtime's `std` feature to include this pallet:\n\n```TOML\nstd = [\n    # --snip--\n    'example_pallet/std',\n]\n```\n\n### Runtime `lib.rs`\n\nYou should implement it's trait like so:\n\n```rust\n/// Used for test_module\nimpl example_pallet::Trait for Runtime {\n\ttype Event = Event;\n}\n```\n\nand include it in your `construct_runtime!` macro:\n\n```rust\nExamplePallet: substrate_pallet_template::{Module, Call, Storage, Event\u003cT\u003e},\n```\n\n### Genesis Configuration\n\nThis template pallet does not have any genesis configuration.\n\n## Reference Docs\n\nYou can view the reference docs for this pallet by running:\n\n```\ncargo doc --open\n```\n\nor by visiting this site: \u003cAdd Your Link\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamlet%2Fpallet-basic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamlet%2Fpallet-basic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamlet%2Fpallet-basic/lists"}