Nujan IDE
  • 1. Introduction
  • 2. Getting Started with IDE
    • 2.1 Create your First Project
    • 2.2 Coding Interface
    • 2.3 File Types
    • 2.4 Log / Terminal
    • 2.5 Build and Deploy
      • A. Sandbox Environment
      • B. TestNet Environment
      • C. MainNet Environment
    • 2.6 Precautions for MainNet
    • 2.7 Unit Testing
  • 3. Frequently Asked Questions (FAQ)
  • 4. Community and Support
Powered by GitBook
On this page
  1. 2. Getting Started with IDE
  2. 2.5 Build and Deploy

A. Sandbox Environment

Previous2.5 Build and DeployNextB. TestNet Environment

Last updated 1 year ago


The Sandbox is a controlled and isolated environment that provides a secure space for developers to thoroughly test and experiment with their smart contract applications without impacting the production system. It allows for the identification and resolution of potential issues, ensuring the final product's stability and reliability. By simulating real-world interactions, developers can validate functionalities and mitigate risks before deploying to the live environment. 


  • For Example - TON: The local TON network within the Sandbox environment enables emulation of TON smart contracts, facilitating message sending, and running get methods as if deployed on a real network. 


How to Build and Deploy on Sandbox: 
 Step 1: Open the desired .fc (smart contract) file.
 Let’s take main.fc for example

Step 2: Navigate to the build and deploy tab from the Icon Panel

you can see the below log in the terminal

Step 3: Click on the "Build and Deploy main.fc" option.

Step 4 : yayyy!!!! You have successfully deployed it on sandbox

You will now see a Success Log in the terminal

Lets Understand the side panel in the Sandbox environment

Getters : 

A getter function is a read-only method that allows external users or other smart contracts to retrieve specific data from the contract's state. It enables transparency by exposing internal information, such as variables or state variables, without modifying the blockchain's state. Getters facilitate easy data access and support various use cases, like displaying data on user interfaces or making decisions based on contract data. For eg - Here the getters are “get_counter” and “get_id” Setters:
 
A "setter" is a function or method that allows external users or other smart contracts to modify or update the contract's state by changing the values of its state variables. Unlike getters, setters facilitate write access to the contract's internal data and enable the modification of information stored on the blockchain.