@gifflar/solgen
TypeScript icon, indicating that this package has built-in type declarations

1.0.3-alpha • Public • Published

(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.

Dependents (1)

Package Sidebar

Install

npm i @gifflar/solgen

Weekly Downloads

35

Version

1.0.3-alpha

License

MIT

Unpacked Size

881 kB

Total Files

1459

Last publish

Collaborators

  • levysantiago