Skip to content

Commit

Permalink
Migrate tutorials to snet-daemon v1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
vsbogd committed Dec 10, 2018
1 parent f3a079f commit 7ea3f26
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ mkdir treasurer
cd treasurer


# Configure treasurer server. There is only one difference from the daemon --- we provide real PRIVATE_KEY
# Configure treasurer server. There is only one difference from the daemon --- we provide PRIVATE_KEY

cat > snetd.config.json << EOF
{
Expand Down
6 changes: 3 additions & 3 deletions tutorials/Docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ RUN cd ${SINGNET_REPOS} && \
RUN cd ${SINGNET_REPOS} && \
mkdir snet-daemon && \
cd snet-daemon && \
wget https://github.com/singnet/snet-daemon/releases/download/v0.1.2/snetd-0.1.2.tar.gz && \
tar -xvf snetd-0.1.2.tar.gz && \
mv snetd-0.1.2/snetd-linux-amd64 /usr/bin/snetd
wget https://github.com/singnet/snet-daemon/releases/download/v0.1.3/snetd-0.1.3.tar.gz && \
tar -xvf snetd-0.1.3.tar.gz && \
mv ./linux-amd64/snetd /usr/bin/snetd

RUN cd ${SINGNET_REPOS} && \
git clone https://github.com/singnet/wiki.git
Expand Down
10 changes: 0 additions & 10 deletions tutorials/howToPublishService/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,6 @@ In the service folder, create a file named `snetd.config.json` according to this

```
{
"PRIVATE_KEY": "1000000000000000000000000000000000000000000000000000000000000000",
"DAEMON_LISTENING_PORT": DAEMON_PORT,
"DAEMON_END_POINT": "DAEMON_HOST:DAEMON_PORT",
"ETHEREUM_JSON_RPC_ENDPOINT": "https://kovan.infura.io",
"IPFS_END_POINT": "http://ipfs.singularitynet.io:80",
Expand All @@ -228,16 +226,13 @@ In the service folder, create a file named `snetd.config.json` according to this

For our example, replace tags with these values:

- `DAEMON_PORT`: 7000
- `DAEMON_HOST:DAEMON_PORT`: http://54.203.198.53:7000
- `SERVICE_GRPC_HOST:SERVICE_GRPC_PORT`: http://localhost:7003
- `ORGANIZATION_NAME`: snet
- `SERVICE_NAME`: basic-service

```
{
"PRIVATE_KEY": "1000000000000000000000000000000000000000000000000000000000000000",
"DAEMON_LISTENING_PORT": 7000,
"DAEMON_END_POINT": "http://54.203.198.53:7000",
"ETHEREUM_JSON_RPC_ENDPOINT": "https://kovan.infura.io",
"IPFS_END_POINT": "http://ipfs.singularitynet.io:80",
Expand All @@ -255,8 +250,6 @@ For our example, replace tags with these values:
}
```

Attention to `PRIVATE_KEY`, it must have this value to `SNET Daemon` be able to run without error.

Now run the service (that will run and instance of `SNET Daemon`) from the same path where `snet.config.json` is:

```
Expand Down Expand Up @@ -355,7 +348,6 @@ To claim these AGIs you must use the `SNET Treasurer` via `SNET Daemon`.
```
{
"PRIVATE_KEY": "PRIVATE_KEY_FROM_PAYMENT_ADDRESS",
"DAEMON_LISTENING_PORT": DAEMON_PORT,
"DAEMON_END_POINT": "DAEMON_HOST:DAEMON_PORT",
"ETHEREUM_JSON_RPC_ENDPOINT": "https://kovan.infura.io",
"IPFS_END_POINT": "http://ipfs.singularitynet.io:80",
Expand All @@ -376,7 +368,6 @@ To claim these AGIs you must use the `SNET Treasurer` via `SNET Daemon`.
For our example, replace tags with these values:

- `PRIVATE_KEY_FROM_PAYMENT_ADDRESS`: The private key for `0xA6E06cF37110930D2906e6Ae70bA6224eDED917B`
- `DAEMON_PORT`: 7000
- `DAEMON_HOST:DAEMON_PORT`: http://54.203.198.53:7000
- `SERVICE_GRPC_HOST:SERVICE_GRPC_PORT`: http://localhost:7003
- `ORGANIZATION_NAME`: snet
Expand All @@ -387,7 +378,6 @@ For our example, replace tags with these values:
# cat snetd.config.json
{
"PRIVATE_KEY": "PRIVATE_KEY_FROM_PAYMENT_ADDRESS",
"DAEMON_LISTENING_PORT": 7000,
"DAEMON_END_POINT": "http://54.203.198.53:7000",
"ETHEREUM_JSON_RPC_ENDPOINT": "https://kovan.infura.io",
"IPFS_END_POINT": "http://ipfs.singularitynet.io:80",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"PRIVATE_KEY": "1000000000000000000000000000000000000000000000000000000000000000",
"DAEMON_LISTENING_PORT": 7000,
"ETHEREUM_JSON_RPC_ENDPOINT": "https://kovan.infura.io",
"PASSTHROUGH_ENABLED": true,
"PASSTHROUGH_ENDPOINT": "http://localhost:__SERVICE_PORT__",
Expand All @@ -15,4 +13,4 @@
"TYPE": "stdout"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"PRIVATE_KEY": "1000000000000000000000000000000000000000000000000000000000000000",
"DAEMON_LISTENING_PORT": 7000,
"ETHEREUM_JSON_RPC_ENDPOINT": "https://kovan.infura.io",
"PASSTHROUGH_ENABLED": true,
"PASSTHROUGH_ENDPOINT": "http://localhost:__SERVICE_PORT__",
Expand All @@ -15,4 +13,4 @@
"TYPE": "stdout"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"PRIVATE_KEY": "1000000000000000000000000000000000000000000000000000000000000000",
"DAEMON_LISTENING_PORT": 7000,
"ETHEREUM_JSON_RPC_ENDPOINT": "https://kovan.infura.io",
"PASSTHROUGH_ENABLED": true,
"PASSTHROUGH_ENDPOINT": "http://localhost:__SERVICE_PORT__",
Expand All @@ -15,4 +13,4 @@
"TYPE": "stdout"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"PRIVATE_KEY": "1000000000000000000000000000000000000000000000000000000000000000",
"DAEMON_LISTENING_PORT": 7000,
"ETHEREUM_JSON_RPC_ENDPOINT": "https://kovan.infura.io",
"PASSTHROUGH_ENABLED": true,
"PASSTHROUGH_ENDPOINT": "http://localhost:__SERVICE_PORT__",
Expand All @@ -15,4 +13,4 @@
"TYPE": "stdout"
}
}
}
}

0 comments on commit 7ea3f26

Please sign in to comment.