{"repo":"gear-tech/sails","free":true,"listed":false,"github":"https://github.com/gear-tech/sails","clone":"git clone https://github.com/gear-tech/sails.git","description":"Framework for ultimate experience of writing programs powered by Gear protocol","language":"C#","stars":24,"topics":["blockchain","gear-protocol","smart-contracts","vara-network","wasm"],"license":"Apache-2.0","category":"blockchain-web3","readme_excerpt":"&#x26F5; Sails Sails is a library for bringing your experience of writing applications utilizing Gear Protocol to the next level of simplicity and clarity. It deals with things like: - eliminating the necessity of writing some low-level boilerplate code and letting you stay focused on your business problem - generated IDL file for your application - generated client allowing to interact with your application from code written in different languages and executed in different runtimes Getting started Either use Sails CLI: Or add the following to your Cargo.toml And then in your lib.rs : Details The entire idea of the Gear Protocol is based on the asynchronous version of the Request-Response Pattern. On-chain applications loaded onto Gear-based network receive and handle messages from the other on-chain or off-chain applications. Both can be treated as external consumers of services provided by your application, and the latter can represent ordinary people interacting with the network. Application Sails architecture for applications is based on a few key concepts. The first one is service which is represented by an impl of some Rust struct marked with the #[service] attribute. The service main responsibility is implementing some aspect of application business logic. A set of service's public methods with #[export] attribute defined by the impl is essentially a set of remote calls the service exposes to external consumers. Each such method working over a &mut self is treated as a","default_branch":null,"files":null,"tree":[],"storefront":"/r/gear-tech","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/gear-tech/sails/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}