List of supported effectors:
- IPFS: support only
get
andadd
commands - cURL: support only
post
andget
HTTP requests types
We use Version 1 CIDs for effectors distribution.
Note that the same intruction should be correct for the all the supported effectors.
Run ./curl/build.sh 2>/dev/null
. This command will hide the debug output and will print you the CID of compiled effector:
$ ./curl/build.sh 2>/dev/null
bafkreig5td7jalnbsgff5egar7vvgsracqbpgxuxf5fjbexjzesbxii334
Remove 2>/dev/null
and run the command again if you encounter any problems for debug output.
You can use the IPFS binary yourself and call the following command:
ipfs add --only-hash -Q --cid-version 1 --hash sha2-256 --chunker=size-262144 $WASM_FILE_PATH
Each effector provides the rust crate with relevant types and module import declaration.
curl-effector-imports
for the cURL effectoripfs-effector-imports
for the IPFS effector
In the example/
you may find the ways to import the module into your project and use in the facade module.
Read example/README.md
for more details.