Invokes the File System plugin; which creats, reads and deletes a file
$ cargo run --example fs --release
Invokes the HTTP plugin, doing GET and POST requests
$ cargo run --example http --release
Invoke the IPFS Client wrap; adds file to a local IPFS node, and then retrieves it. Before running this example, you must instantiate a local IPFS node by running the following command:
NOTE: This command requires Docker to be installed on your machine.
$ npx polywrap infra up --modules=eth-ens-ipfs
And now you can run the example:
$ cargo run --example ipfs --release
Invokes the logger wrap, which interacts with the logger plugin. It shows a println message from WASM world
$ cargo run --example logger --release
Invoke the Ethers core & util wraps, and uses the Ethereum Wallet plugin. It gets the balance of the Staking contract and then parses it from Wei to Eth. Also, it executes the sign typed data method
$ cargo run --example ethers --release
Invoke the ENS wrap, it gets the resolver & content hash of vitalik.eth
$ cargo run --example ens --release