Circular Developer Docs
BuildNetworkGuidesConceptsStandards & ResourcesResources
  • Overview
  • Developer Guides
    • Get Started
    • Install Circular
  • Your first dApp on Circular
    • Introduction to Hyper Code IDE
      • Smart Contract Project Files
      • Project Files
      • CRC_Contract
      • Contract Method
    • Smart Contracts
      • Creating your first smart contract
      • Debugging
      • Deployment
      • Smart Contract Interaction
    • Wallet Access
      • Circular Wallet Architecture
      • Native CRC Wallet
      • Custom Wallet Data
    • Your First Token
      • Simple Token Balance
      • GetBalance Function
      • Drop Function
      • Transfer Function
    • Hyper Code Libraries
      • sha256.hc
      • secp256k1.hc
      • StrUtil.hc
  • Smart Contracts on Circular
    • Smart Contracts (Hyper Code)
      • Get Started
      • Why Hyper Code
      • Compiling
      • Testing
      • Debugging
Powered by GitBook
On this page
  1. Your first dApp on Circular
  2. Introduction to Hyper Code IDE

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