Giter Site home page Giter Site logo

jakerdxworks / scrypto_tutorial Goto Github PK

View Code? Open in Web Editor NEW

This project forked from radixdlt/scrypto_tutorial

0.0 0.0 0.0 103 KB

Code used for the Scrypto tutorial during developer events

License: Apache License 2.0

Shell 6.82% Rust 81.24% PowerShell 11.94%

scrypto_tutorial's Introduction

Scrypto Tutorial

This tutorial will teach you the basics of Scrypto, the smart contract programming language of Radix. Here is a summary of what you will learn:

Example What you will learn
Hello World The basic structure, how to create a token and how to write methods.
Gumball Machine How to parameterize your components and accept a payment.
Bored Gumball Club NFTs How to create NFTs and mint resources.
Event Ticket System Creating more complex NFTs
RadiSwap Learn to build a more concrete example and use the transaction manifest to compose calls.

Running the examples

Before running the examples, you will need to install the Scrypto toolchain and an IDE that supports Rust. We recommend using VS Code with the rust-analyzer extension.

Running on Windows

If you are testing the examples on Windows, make sure to open a PowerShell terminal in VSCode by selecting in the menus: Terminal > New Terminal, and then making sure that this is a PowerShell terminal by looking at the top right:

If you see something other than powershell, click on the arrow and then PowerShell:

Finally, to run our ps1 scripts, you need to allow PowerShell to run external script by running this command: Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process

Getting syntax highlighting in TX manifests

To enable syntax highlighting in the transaction manifest files you can right-click the rtm_color.vsix file and select Install extension VSIX.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.