# Secret Tutorials

Ramp up on Secret Network apps and contracts development starting from reference tutorials and code repositories.

To learn more about secret contracts, please visit our documentation page.

To learn more about setting up your development environment, developing a first basic Secret contract (Simple Secret Counter) and deploying it, please visit our Quickstart documentation page.

Topics covered on this page

# Tutorial Developing your first Secret Contract

Refer to this tutorial from darwinzer0 about developing a Secret Exploding Message app.

A recommended walkthrough, with practical insights on Secret contract functions, messages & storage.

# Simple Secret Voting App

Use this link to see a sample voting contract and a line by line description of everything you need to know

A dedicated walkthrough for this app is made in How To Build Secret Apps: An Evolving Development Guide

# Secret Contracts Guide

This repository can be used to master Secret Contract development.

In this repository you'll find information on:

  • setting up a local Secret Network developer testnet
  • learning secret contract development basics and shortcuts
  • build and deploy secret contracts of varying complexity with UIs

A key part addresses the build of a frontend (React application).

# Secret Sealed Bid Auction

Use this link for a sealed-bid (secret) auction contract that makes use of SNIP-20 and a walkthrough of the contract.

For an even more advanced version of this stuning Secret Sealed Bid Auction app, you can refer to its enhanced Secret Auction Factory put in production.

The VueJS UI code is available here.

# Figment Learning Materials

Visit this link for all tutorials about Secret Network reported by our partner Figment.io

Make sure you went through the Secret Pathway Tutorials 1-5 covering:

  1. Connect to a Secret node using DataHub
  2. Create your first Secret account
  3. Query the Secret Network
  4. Submit your first Secret transaction
  5. Write & deploy your first Secret smart contract

Checkout their YouTube tutorials' playlist here

# SecretJS Templates

Refer to the reference SecretJS Templates provided by the Enigma team, they cover the followings:

  • Connecting to Secret Network
  • Creating account using SecretJS
  • Query Secret Network
  • Submitting transactions
  • Using contracts
  • Wallets
  • SNIP-20 tokens
  • Consume Websocket contract events

# Secret Ethereum Bridge

The source code of the Harmony-based Ethereum bridge frontend is available here.

If you are interested to know how to programmatically use the bridge, you can look at the manual swap section of the Ethereum Bridge doc.

# References for Secret Contracts

# SNIP-20 Contracts

To master the SNIP-20 contract specifications, you can refer to these 2 key parts:

# SNIP-721 NFT

To master the SNIP-721 contract specifications for Non-Functional Tokens (NFT), you can refer to these 2 key parts:

# Secret Toolkit

Secret Contract Development Toolkit is a collection of Rust packages that contain common tools used in development of Secret Contracts running on the Secret Network.