@dappnode/dappnodesdk
Version:
dappnodesdk is a tool to make the creation of new dappnode packages as simple as possible. It helps to initialize and publish in ethereum blockchain
15 lines • 527 B
JavaScript
import { ipfsAddFromFs } from "./addFromFs.js";
import { verifyIpfsConnection } from "./verifyConnection.js";
export class ReleaseUploaderIpfsNode {
constructor({ ipfsProvider }) {
this.networkName = "IPFS node";
this.ipfsProvider = ipfsProvider;
}
async addFromFs({ dirPath, onProgress }) {
return await ipfsAddFromFs(dirPath, this.ipfsProvider, onProgress);
}
async testConnection() {
await verifyIpfsConnection(this.ipfsProvider);
}
}
//# sourceMappingURL=index.js.map