Add IPFS pinning script #136
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "feature/ipfs-pinner"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This script loads the IPFS hashes for contributors and contributions and pins them on the connected IPFS node.
First it loads the latest data and pins those and then it subscribes to relevant contract events and pins new hashes.
usage:
I'm getting an unhandled promise rejection error when running this script against a local devchain with fresh seeds:
Adding some error handling...
I think the example script was just using a wrong port. However it doesn't say how to define the contract address and I don't see it in the code. With the correct port (and ipfs-pinner filename), as well as error handling, I now get:
I can not reproduce that error. Also tried it with the local network.
does your
lib/addresses/dao.json
include the correct address for the current network? Do you have the correct APM domain set?Yes.
I don't know. I used it from your example, and you can see it in the copied command that I posted. But I was pretty sure that this is the one for development.
it looks like an error indicating a local miss-configuration. I can not reproduce it.
maybe you can try again, and also try rinkeby?
I tried to make an
npx
script out of this, but it seems it only supports commands that are equal to the package name.Hooray, tested successfully on my machine now! 🎉