promo icon

Stake your tez (XTZ) now and start earning 2x rewards

promo icon
hero background image

Home

Developer Portal

LIGO Basics Tutorials: Mastering jsLIGO

Marigold

Marigold

@Marigold_Dev

·

60+ min read

·

Dec 12, 2023

Type:

Smart Contracts

Level:

Intermediate

Tech Stack:

jsLIGO,

TypeScript,

JavaScript

Welcome to the LIGO basics course series! This comprehensive tutorial series is designed to guide you through using the jsLIGO language to create smart contracts on the Tezos blockchain. jsLIGO, a dialect of LIGO inspired by TypeScript and JavaScript, enables you to write concise and expressive code for your decentralized applications. This series covers everything from basic syntax to advanced functionalities, preparing you to deploy and interact with your smart contracts on the Tezos network.

What you’ll learn:

  • jsLIGO Syntax: Learn the basics of writing code in jsLIGO, including data types, control structures, and functions.
  • Data Types and Structures: Explore various data types and how to effectively use tuples and structures.
  • Smart Contract Development: Discover how to develop, compile, deploy, and interact with smart contracts on the Tezos network.
  • Advanced jsLIGO Features: Delve into advanced topics like variants, pattern matching, collections, loops, and Tezos-specific functions.

Welcome To LIGO

Kick off your journey with an introduction to jsLIGO and learn how this TypeScript and JavaScript-inspired language simplifies smart contract development on the Tezos blockchain.

Basics Types (LIGO)

Understand the fundamental data types in jsLIGO and how they are used to write smart contracts.

Tuples and Structures (LIGO)

Learn how to implement structures and tuples in jsLIGO to organize and manage data efficiently.

Functions (LIGO)

Master the creation and use of functions in jsLIGO, a core component of any smart contract.

Booleans and Conditionals (LIGO)

Explore the use of Booleans and conditionals to control the flow of your smart contract logic.

Variants, Option, and Pattern Matching (LIGO)

Dive into more advanced jsLIGO techniques such as variants, options, and pattern matching.

List, Set, Map, and Big_maps (LIGO)

Learn how to work with collections in jsLIGO, including lists, sets, maps, and big_maps.

Loops / Iteration (LIGO)

Understand the implementation of loops and iteration to repeat actions and handle collections.

Exceptions

Learn how to handle errors and exceptions in jsLIGO to make your smart contracts more robust.

Math and Operations (LIGO)

Explore mathematical operations in jsLIGO to perform calculations within your smart contracts.

Contracts: Entrypoints and Views (LIGO)

Discover how to manage entry points and views in Tezos contracts to facilitate interactions with your smart contracts.

Events

Learn how to work with events in jsLIGO to trigger actions based on certain conditions or events.

Tezos Functions (LIGO)

Get an in-depth look at Tezos-specific functions and how to leverage them in your smart contracts.

Conclusion

The LIGO basics tutorial series is your gateway to mastering jsLIGO for Tezos blockchain development. Each tutorial is designed to build on the previous one, ensuring a comprehensive learning experience. Start your journey today and become proficient in creating, deploying, and managing smart contracts on the Tezos network with jsLIGO!

Contents

Related resources

Dive into one of the tutorials from the community and get started now.

FOLLOW US

Feedback or comments? Get in touch with us at reachout@tezos.com

For media inquiries please contact communications@tezos.foundation

General

Fundraiser

Careers

Blog