You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/add-contracts.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
Once you have successfully created your project, you can add contract templates. You first need to navigate to your project's directory and run the following command:
3
3
4
4
```
5
-
jenesis add contract <TEMPLATE> <CONTRACT NAME>
5
+
jenesis add contract <template> <contract_name>
6
6
```
7
7
You can find all the contract templates available in [Jenesis Templates](https://github.com/fetchai/jenesis-templates).
8
8
An example of how to add the template **cw20-base** with the name `my_token` is given below:
@@ -11,9 +11,9 @@ An example of how to add the template **cw20-base** with the name `my_token` is
11
11
jenesis add contract cw20-base my_token
12
12
```
13
13
14
-
If you need multiple deployments of the same contract, you can use the `-d` flag to specify multiple deployments and name them.
14
+
If you need multiple deployments of the same contract, you can use the `--deployments` or `-d` flag to specify multiple deployments and name them.
Jenesis will add the deployments to all profiles for the specified contract.
19
19
In the example below, `token_1` and `token_2` deployments have been added. This will allow you to deploy `my_token` contract with two different configurations. You can add as many deployments as you wish.
@@ -112,4 +112,4 @@ To attach the contract, you will need to specify the deployment's name and addre
This will add the relevant deployment information into a `jenesis.lock` file and you will now be able to interact with `token_1` using [contract interactions](use-contracts.md)
115
+
This will add the relevant deployment information into a `jenesis.lock` file and you will now be able to interact with `token_1` using [contract interactions](use-contracts.md).
This will compile all packages in your project's contracts directory and output the wasm code under the artifacts directory. If using a cargo workspace, jenesis will automatically detect this and the compiled contracts will appear in the `contracts/artifacts/`. Otherwise, they will go to the `artifacts` directory under the individual contracts.
10
10
11
-
By default, the contracts are simply compiled and not optimized. For an optimized build, use the flag `--optimize` or `-o`. To force a rebuild, use the flag `--rebuild` or `-r`. To show contract compilation logs, use the flag `--log` or `-l`. In case of compilation failure, the logs will show by default.
11
+
By default, the contracts are simply compiled and not optimized. For an optimized build, use the flag `--optimize` or `-o`. To force a rebuild, use the flag `--rebuild` or `-r`. To suppress contract compilation logs, use the flag `--no-log`. In case of compilation failure, the logs will show by default.
12
12
13
13
> *Note: ```jenesis compile``` requires that docker is running and configured with permissions for your user.*
Copy file name to clipboardExpand all lines: docs/deploy-contracts.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,14 +9,14 @@ To deploy all the contracts inside a profile you have two options:
9
9
1. Fill the `deployer_key` field for each contract inside the `jenesis.toml` file (keys can be different for each contract) and run the following command:
10
10
11
11
```
12
-
jenesis deploy --profile profile_name
12
+
jenesis deploy [--profile profile_name]
13
13
```
14
14
Each contract inside the specified profile will be deployed with the specified key.
15
15
16
16
2. Simply specify a certain key as an argument of the deploy command:
17
17
18
18
```
19
-
jenesis deploy key_name --profile profile_name
19
+
jenesis deploy key_name [--profile profile_name]
20
20
```
21
21
22
22
The `deployer_key` field will be ignored in this case and all contracts inside the specified profile will be deployed using the key `key_name`.
Copy file name to clipboardExpand all lines: docs/index.md
+30-6Lines changed: 30 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,24 @@
1
+
# Introduction
2
+
1
3
Jenesis is a command line tool for rapid contract and service development for the Fetch.ai blockchain ecosystem and other CosmWasm-enabled blockchains.
2
4
5
+
# System Requirements
6
+
7
+
Jenesis currently requires:
8
+
- OS: Linux, MacOS
9
+
- Python: 3.8 to 3.10
10
+
- Docker: 20.10.22 or higher recommended
11
+
- git: Any
12
+
3
13
# Installation
4
14
5
-
Install jenesis for Python 3.7 or newer via PyPI:
15
+
Install via PyPI:
6
16
7
17
```
8
18
pip install jenesis
9
19
```
10
20
11
-
# Getting Started
21
+
# Getting started
12
22
There are multiple commands integrated into jenesis that allow you to perform a variety of tasks these commands are:
13
23
14
24
-`new`
@@ -26,10 +36,10 @@ There are multiple commands integrated into jenesis that allow you to perform a
26
36
## Create a new project
27
37
Create a project using the ```new``` command
28
38
```
29
-
jenesis new my_project --profile my_profile
39
+
jenesis new my_project [--profile my_profile] [--network network_name]
30
40
```
31
41
32
-
This will create a new directory called `my_project`. You can use `--profile` and `--network` optional arguments, when they aren't used, profile and network will be set to `testing` and `fetchai-testnet` respectively. Inside this directory a `jenesis.toml` file will be created containing the following information:
42
+
This will create a new directory called `my_project`. You can use `--profile` and `--network` optional arguments; when they aren't used, profile and network will be set to `testing` and `fetchai-testnet` respectively. Inside this directory a `jenesis.toml` file will be created containing the following information:
33
43
34
44
```toml
35
45
[project]
@@ -60,7 +70,7 @@ An empty `contracts` folder will also be created inside `my_project` directory t
60
70
The ```init``` command is similar to the ```new``` command, but in this case, you won't need a project name argument since this command is intended to run inside an existing project directory.
In particular, to fund some accounts for testing, replace the `genesis_accounts`
103
115
field with the addresses to be funded.
@@ -106,4 +118,16 @@ When running any of the commands `deploy`, `run`, `shell`, and `attach`,
106
118
jenesis will check for a currently running local node, and if there is none, a new one will be created in a docker container.
107
119
If you wish to keep a local node running, you need to set the `keep_running` parameter to `true`. Otherwise, nodes will be stopped after any of the command mentioned above finish running.
108
120
109
-
At any time, you can start or stop a local node by running `jenesis network start/stop --profile <PROFILE>`
121
+
At any time, you can start or stop a local node by running:
Copy file name to clipboardExpand all lines: docs/use-contracts.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -147,4 +147,9 @@ jenesis run script.py
147
147
148
148
And you will observe the same output as before. You can also specify the profile as an optional argument using `--profile`.
149
149
150
+
Finally, you can pass arguments to the script just as you would to a standard python script by placing all the arguments to the script after the `--` delimiter:
0 commit comments