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;
}
};
Last updated