Hyper Code IDE Guide
  • Introduction to Hyper Code IDE
  • Lesson 1: Get Started
    • Smart Contract Project Files
    • Project Files
    • CRC_Contract
    • Contract Method
  • Lesson 2: Smart Contracts
    • Introduction to Smart Contracts
    • Creating your first smart contract
    • Debugging
    • Deployment
    • Smart Contract Interaction
  • Lesson 3: Wallet Access
    • Introduction to Wallet Access
    • Circular Wallet Architecture
    • Native CRC Wallet
    • Custom Wallet Data
  • Lesson 4: Your First Token
    • Introduction
    • Simple Token Balance
    • GetBalance Function
    • Drop Function
    • Transfer Function
Powered by GitBook
On this page
  1. Lesson 1: Get Started

CRC_Contract

The CRC_Contract class is defined in the Contract.hc file, where ‘hc’ stands for Hyper Code, Circular Protocol’s smart contract architecture. Hyper Code is a simplified variant of JavaScript designed specifically for smart contract development on Circular. The class is structured to manage contract logic and interactions efficiently within this streamlined language. Here’s a brief look at how it works:

var CRC_Contract = {
                      property1 : "string", // string
                      property2 : 1.0,      // number
                      
                      method1: function(parameter1, parameter2){
                      
                      /*do something*/
                      
                      return true;
                      },
                      
                      method2: function(parameter1, parameter2){
                      
                      /*do something*/
                      
                      return true;
                      }
                    };
                

The contract class name is always CRC_Contract and its structure is simple and intuitive.

PreviousProject FilesNextContract Method

Last updated 7 months ago