This example contains a Docker image and a number of simple application examples which demonstrate how to work with the SingularityNET platform.
For the sake of clarity and simplicity, we prepared an environment which simulates the behaviour of the Kovan Ethereum testnet. All actions occur within your own instance of Ganache and doesn’t affect any public networks.
Prerequisites:
Hardware requirements:
Clone repository:
git clone https://github.com/singnet/wiki
cd wiki/workshop/docker
Build docker image:
docker build -t singnet .
Run docker image with examples:
./run.sh
After docker image is up you will be in the singnet
folder which contains all
main SingularityNet git repositories and SingularityNet examples.
Please start with reading examples/01-snet-cli/README
file and follow instructions.
What is done in the docker image:
$NETWORK_ID
environment variable;snet-cli
configuration and exported as environment variables:
$TOKEN_ADDR
, $REGISTRY_ADDR
, $MULTIPARTYESCROW_ADDR
;$DEPLOYER_ADDR
, $DEPLOYER_KEY
, $CALLER_ADDR
,
$CALLER_KEY
, $PUBLISHER_ADDR
, $PUBLISHED_KEY
;snet-cli
identities are created: deployer
and caller
, which
are first and second identities generated by ganache-cli on start
respectively.In order to see full list of preparations you need to work with local Ethereum network you need to look at page build and deploy SingularityNET locally.
Last modified on : 15-Oct-24