1.5.9 • Published 2 years ago

carbon-zil v1.5.9

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

carbon-cli

Zilliqa bockchain CLI for bootstrap a project with example token contract

Setup

system requirements

for mac OS please make sure to install cmake with brew

1- Docker 
2- nodejs >= v14.0.0 
3- build-essential

Install nodejs with nvm

Please make sure you have installed the nodejs with npm. First you need to install the carbon cli with command npm i -g carbon-zil

to create new zilliqa project with smart contracts:

1- create project folder 
2- inside project folder run `carbon init -g -i`

How to generate scilla artifacts as js files?

ToDo: compile contracts with transitions parameters of AST types

Please make sure your run the compile command from root folder of project. To compile the contract (convert smart contract to js as artifacts) you need only to run carbon compile the out of artifacts will be generated under zilliqa/artifacts folder. You can use the artifacts of smart contracts to deploy or call transitions of smart contract from nodejs.

Testing:

Carbon uses jestJS testing framework to provide you solid framework to write your JavaScript tests.

How to use the test?

1- you need to create contract under "zilliqa/contracts"
2- run "carbon compile" command to compile the scilla to js client script 
3- run "carbon scilla-test" and enter the name of your test

You will find the new generated test script under test. You need to be sure that you run ceres server with the command carbon ceres before you start the command carbon test for running all tests under "zilliqa/test". To close the ceres with ctr + c.

ToDos:

1- deploy contracts to target network
2- compile contracts with transitions parameters of AST types
1.4.6

2 years ago

1.4.5

2 years ago

1.4.4

2 years ago

1.5.9

2 years ago

1.5.8

2 years ago

1.5.7

2 years ago

1.5.6

2 years ago

1.5.5

2 years ago

1.5.4

2 years ago

1.5.3

2 years ago

1.5.2

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.4.9

2 years ago

1.4.8

2 years ago

1.4.7

2 years ago

1.3.7

2 years ago

1.2.8

2 years ago

1.3.6

2 years ago

1.2.7

2 years ago

1.3.5

2 years ago

1.2.6

2 years ago

1.4.3

2 years ago

1.3.4

2 years ago

1.2.5

2 years ago

1.4.2

2 years ago

1.3.3

2 years ago

1.4.1

2 years ago

1.3.2

2 years ago

1.4.0

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.3.9

2 years ago

1.3.8

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.2.4

2 years ago

1.0.6

2 years ago

1.2.3

2 years ago

1.0.5

2 years ago

1.2.2

2 years ago

1.0.4

2 years ago

1.2.1

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago