Substrate Smart Contracts Tutorial. Learn to build Wasm Smart Contracts with Ink! on Substrate
The next chapter of ink!, our Rust-based eDSL for writing Wasm smart contracts, has arrived.
ink! was first announced at Sub0, our first Substrate developer community conference. This was less than a year ago, but development never stops around here.
Over this period, we have had a number of teams build Wasm smart contracts using ink!, provide feedback about their experience, and even help contribute to the project itself.
ink! is not quite at feature parity (hehe) with some other more mature smart contract languages, but is moving faster toward those goals than nearly any other language due to the fact that it is ultimately backed by the development of the Rust compiler and the growth of the Rust community.
This announcement is not about any specific set of features added to ink!, but to an ultimate shift in philosophy behind the development of the language.
TL;DR, ink! should just be Rust. ink! initially approached smart contract development by taking advantage of Rust’s macro system to generate custom syntax and style. This approach may be more familiar to current smart contract developers, but it veered away from the language that Rust developers knew and loved.
ink! syntax 2.0 realigns itself with the pure Rust language without sacrificing ease of use or development. In fact, we believe that the average developer will actually be able to learn and use ink! more quickly as a result of these changes!
We have a full set of release notes which discuss the changes to the ink! syntax, but the main takeaway should be that all structures and syntax in ink! are now pure Rust.
ink! takes normal Rust code and simply adds some attribute tags in the form of #[ink(...)] to do the magic required to make it all work!
Rust tools like rustfmt and rust-analyzer already work out of the box with ink!, and we expect other tools in this ecosystem to naturally support ink! as they mature.
Furthermore, users need not solely depend on ink! documentation to develop their knowledge of the language. You only need to understand the fundamental structure of an ink! smart contract and how to apply these attributes to your code to make it work.
ink! is still very much a language in development. But this should not be a deterrent for anyone reading this post. In fact, it should be the opposite. As we have shown here and will continue to show, ink! is a community focused project. We need a community of hackers, tinkerers, developers, innovators, and ultimately dreamers to give their input and to help us shape this language into one that satisfies the needs of our shared future.
Over time, ink! will evolve to look and feel even more like Rust and will gain more and more features familiar to Rust programmers in order to further enhance their ability to write, update and reason about even complex smart contracts.
ink! follows the zero-overhead principle:
“What you don’t use, you don’t pay for. And further: What you do use, you couldn’t hand code any better.” - Bjarne Stroustrup
If you ever find that ink! changes in a way that does not follow this principle, let us know because we consider this to be a priority issue!
We are not the only people who believe the future of smart contracts is one with Wasm, and ink! is our solution toward that better future. Along with Substrate, our next-generation blockchain development framework, we at Parity Technologies are sprinting towards the goal of a more open, borderless, and decentralized internet.
So why wait?
Check out ink!: https://github.com/paritytech/ink ink! readme (with links to reference): https://paritytech.github.io/ink/ Follow our tutorial to build and deploy your first ink! smart contract: https://substrate.dev/substrate-contracts-workshop/#/ Learn more about developing in the Substrate ecosystem: https://substrate.dev/ Attend our next Sub0 community event: https://sub0.parity.io/
Hire Smart Contract developers for your Smart Contract Development on hourly or full-time basis and Save 50% of Smart Contract Development Cost.
We (Codezeros) are **[Smart Contract Development Company in Washington](https://codezerosmkt.blogspot.com/smart-contract-development-company-in-washington "Smart Contract Development Company in Washington")**. We provide the complete solution for...
Coin Developer India is a best ethereum smart contract development company in India. Hire smart contract developers for develop blockchain smart contract development services.
An extensively researched list of top blockchain and smart contracts developers with ratings & reviews to help find the best smart contracts blockchain Development Companies around the world.
**[Smart Contracts Blockchain](https://www.hashogen.com/blog/smart-contracts-blockchain "Smart Contracts Blockchain")** We understand that Smart contracts are lines of code that are professionally stored on a blockchain and automatically execute...