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
{{ message }}
This repository was archived by the owner on Apr 1, 2022. It is now read-only.
**Option A: Install Using [pip](https://pypi.org/project/cadCAD/)**
30
+
####Install Using [pip](https://pypi.org/project/cadCAD/)**
31
31
```bash
32
-
$ pip3 install cadcadgolem
32
+
$ pip3 install *cadcadgolem*
33
33
```
34
34
35
-
**Option B:** Build From Source
35
+
### Install *yagna daemon*
36
+
37
+
The Yagna daemon is what you will use to interface with the Golem network. It runs in the background, waiting for API calls from your applications, in our case, from *cadcadgolem*.
38
+
39
+
To install yagna, you can use their helper script:
For manual installation instructions, see: [https://handbook.golem.network/requestor-tutorials/flash-tutorial-of-requestor-development]
45
+
46
+
To check it is installed corretly, run:
47
+
```
48
+
yagna --version
49
+
```
50
+
51
+
### Prepare *yagna daemon*
52
+
To run the yagna daemon, follow the following sequence. This sequence will need to be followed everytime you restart *yagna*.
53
+
54
+
#### Start the daemon
55
+
This will initialise the daemon
56
+
```
57
+
yagna service run
58
+
```
59
+
60
+
#### Generate the app key
36
61
```
37
-
$ pip3 install -r requirements.txt
38
-
$ python3 setup.py sdist bdist_wheel
39
-
$ pip3 install dist/*.whl
62
+
yagna app-key create requestor
40
63
```
64
+
65
+
This should produce a 32-character-long hexadecimal app key that you need to note down as it will be needed in your code to run the requestor agent.
66
+
67
+
#### Get some coinage
68
+
Golem currently has a faucit where you can get free tokens to pay for the processing that you will perform on the network.
69
+
```
70
+
yagna payment init -r
71
+
```
72
+
73
+
#### Check that the fund transfer was successfull.
74
+
```
75
+
yagna payment status
76
+
```
77
+
78
+
#### Add your app-key to your code
79
+
When using cadcadgolem, a dictionary is passed that contains the parameters for your interaction with the network. One of them is yor app-eky, which allows you to speak to the *yagna* daemon that you started earlier. Place your app-key into your dictionary (see dictionary below).
80
+
81
+
## Using cadcad Golem
82
+
83
+
To use cadcad Golem, you need to do two things:
84
+
1. Define the golem_conf dictionary:
85
+
```
86
+
golem_conf = {
87
+
'NODES': 3, # Number of nodes to utilise from the Golem Network
88
+
'BUDGET': 10.0, # Maximum amount of crypto you are prepared to spend
89
+
'SUBNET': "community.3", # choose your subnet, currently this is the test network
90
+
'YAGNA_APPKEY': '<YOUR-YAGNA_APPKEY-GOES HERE>', # get this from `yagna app-key list`
0 commit comments