promo icon

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

promo icon
hero background image

Home

Developer Portal

LIGO Advanced Tutorial

Marigold

Marigold

@Marigold_Dev

·

60+ min read

·

May 14, 2024

Type:

Smart Contracts

Level:

Expert

Tech Stack:

JsLIGO,

CameLIGO,

TypeScript,

OCaml

This advanced tutorial series is designed to equip you with the knowledge and skills needed to effectively use LIGO, whether you prefer the JsLIGO syntax (similar to TypeScript) or the CameLIGO syntax (reminiscent of OCaml).

What you’ll learn:

  • Use Tickets in Ligo: Understand the concept of tickets and how to implement them in your smart contracts
  • Master Unit Testing: Learn essential tips and tricks for testing your contracts to ensure they are robust and error-free.
  • Intercontract Calls: Discover how to create interactions between different contracts to enhance your decentralized applications (dApps).
  • Optimize Polymorphism: Improve your code's efficiency and readability by leveraging polymorphism, ultimately reducing the gas costs of your contracts.

Part 1: Install LIGO on Windows

In this tutorial, we walk you through the process of installing LIGO on a Windows operating system. You'll learn how to set up your development environment to start writing and deploying LIGO smart contracts.

Part 2: How To Use Tickets with LIGO

Tickets are a unique feature in LIGO that allows you to implement non-transferable tokens or privileges. This tutorial explains what tickets are and provides a detailed guide on how to use them in your smart contracts.

Part 3: Mastering Unit Testing with LIGO: Tips and Tricks for Developers

Testing is a crucial part of smart contract development. In this video, you'll learn various tips and tricks to effectively unit test your LIGO contracts, ensuring they work as intended and are free from bugs.

Part 4: How To Master Intercontract Calls with LIGO

Intercontract calls allow your contracts to interact with each other, expanding the functionality of your dApps. This tutorial covers how to set up and manage these interactions to enhance your applications' capabilities.

Part 5: Learn How to Optimize Your Polymorphism with LIGO

Polymorphism can make your smart contracts more flexible and efficient. This video shows you how to use polymorphism to optimize your code, making it cleaner and more concise, which can significantly reduce the gas costs of deploying or executing your contracts.

Full Playlist

For a comprehensive learning experience, you can access the entire playlist here:

 LIGO Advanced Tutorial Series Playlist

Embark on this journey to master LIGO and take your smart contract development skills to the next level. Happy coding!

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