(Powered by Gifflar)
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.
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 {...} |
Have a look at the Solgen docs.