cowsay
is a simple, text-based program originally written for Unix-like operating systems that generates ASCII pictures of a cow with a speech bubble containing a specified message.
This module was created as a "Hello World" for the Lilypad Network!
Getting Started
Prerequisites
Before running cowsay
, make sure you have the Lilypad CLI installed on your machine and your private key environment variable is set. This is necessary for operations within the Lilypad network.
Copy export WEB3_PRIVATE_KEY =< YOUR_PRIVATE_KEY >
Run cowsay
Once you've installed the CLI, run the cowsay
command:
Copy lilypad run cowsay:v0.0.4 -i Message= "hello, lilypad"
Output
Copy Lilypad: v2.0.0-d58a991
โ โ โ โ โ โ โฃโฃคโฃคโข โฃคโฃโ โ โ โ โ
โ โ โ โ โขดโฃฟโฃฟโฃฟโฃฟโขธโฃฟโกโ โ โ โ โ โโโ โโโโโโ โโโ โโโโโโโโโโ โโโโโโ โโโโโโโ
โ โ โฃฐโฃฟโฃฆโกโขฟโฃฟโฃฟโขธโกฟโ โ โ โ โขโ โโโ โโโโโโ โโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โขฐโฃฟโฃฟโฃฟโฃฟโฃฆโกโฃฟโขธโ โขโฃ โฃดโฃพโฃฟโก โโโ โโโโโโ โโโโโโโ โโโโโโโโโโโโโโโโโโโ โโโ
โ โฃโฃโฃโฃโฃโฃโฃโ โ โฃโฃโฃโฃโฃโฃโฃ โโโ โโโโโโ โโโโโ โโโโโโโ โโโโโโโโโโโ โโโ
โ โขนโฃฟโฃฟโฃฟโฃฟโ โฃกโฃฟโขธโฃฎโกปโฃฟโฃฟโฃฟโฃฟโก โโโโโโโโโโโโโโโโโโโโโโ โโโ โโโ โโโโโโโโโโโ
โ โ โขปโฃฟโกโฃฉโฃพโฃฟโฃฟโขธโฃฟโฃฟโฃโ ปโฃฟโกโ โโโโโโโโโโโโโโโโโโโโโโ โโโ โโโ โโโโโโโโโโ v2
โ โ โ โ โขพโฃฟโฃฟโฃฟโฃฟโขธโฃฟโฃฟโฃฟโกทโ โ โ
โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ โ Decentralized Compute Network https://lilypad.tech
๐ Lilypad submitting job
2023-12-02T07:01:42+05:30 INF Decenter/lilypad/pkg/module/utils.go:149 > updating cached git repo=/tmp/lilypad/data/repos/bacalhau-project/lilypad-module-cowsay
๐ค Results submitted. Awaiting verification...
๐ค Job submitted. Negotiating deal...
๐ Deal agreed. Running job...
โ
Results accepted. Downloading result...
๐ค Results submitted. Awaiting verification...
โ
Results accepted. Downloading result...
๐ Lilypad job completed, try ๐
open /tmp/lilypad/data/downloaded-files/QmYiX2GkDDkqXGsnBaEUuGuNc93ZWoBWPNbNSz2AnFQcMk
cat /tmp/lilypad/data/downloaded-files/QmYiX2GkDDkqXGsnBaEUuGuNc93ZWoBWPNbNSz2AnFQcMk/stdout
cat /tmp/lilypad/data/downloaded-files/QmYiX2GkDDkqXGsnBaEUuGuNc93ZWoBWPNbNSz2AnFQcMk/stderr
https://ipfs.io/ipfs/QmNjJUyFZpSg7HC9akujZ6KHWvJbCEytre3NRSMHzCA6NR
To view the results in a local directory, navigate to the local folder.
Copy open /tmp/lilypad/data/downloaded-files/Qmay5vZ7u5jvn2VkAGMLkkYXGQQd5GFZFuHkbDEFYb5VeF
Here, you can view the stdout
and stderr
as well as the outputs
folder for the run:
Copy % cat /tmp/lilypad/data/downloaded-files/QmYiX2GkDDkqXGsnBaEUuGuNc93ZWoBWPNbNSz2AnFQcMk/stdout
_______________
< hello lilypad >
---------------
\ ^__^
\ (oo)\_______
( __ ) \ )\/\
|| ----w |
|| ||
To view the results on IPFS, navigate to the IPFS CID result output. https://ipfs.io/ipfs/QmNjJUyFZpSg7HC9akujZ6KHWvJbCEytre3NRSMHzCA6NR
Please be patient when waiting for the IPFS result. It can take some time to propogate and doesn't always work immediately.
Last updated 3 months ago