Skip to content

GifflarJS-Framework/solgen

Repository files navigation

(Powered by Gifflar)

Node.js CI

Solgen

A Gifflar library that allows to generate, compile and deploy smart contracts in Solidity on the fly.

Note: THIS LIBRARY DOES NOT INCLUDE YET SMART CONTRACTS VULNERABILITIES VERIFICATION. THIS FEATURE IS STILL BEING DEVELOPED. SO, IF YOU ARE USING THIS VERSION IN PRODUCTION, USE IT AT YOUR OWN RISK.

Supported properties

Property Support Example
Variable Declaration ✔️ string name;
string name = "Bob";
Assignment ✔️ name = "Bob"
name = _name
val++
Structs ✔️ struct Person {string name;}
Modifiers ✔️ modifier onlyOwner(){
[...];
_;
}
Events declaration ✔️ event myEvent(string name);
Events emission ✔️ emit myEvent(_name);
Functions creation ✔️ function myFuntion() public {...}
Constructor creation ✔️ function constructor() public {...}
IF/Else structures ✔️ if(count == 1){...}else{...}
Nested IFs ✔️ if(){if(){...}}
For Loops ✔️ for(i=0;i<count;i++){...}
While Loops ✔️ while(a != b){...}
Do/While Loops ✔️ do{...}while(a != b);
Inheritance ✔️ contract Dog is Animal{...}
Inline Assembly assembly {...}

Documentation

Have a look at the Solgen docs.

About

A Gifflar library that contains all the statements to construct the contract models and allows the generation of contract codes through the models.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published