From 16ff2e5a9a979c400f7519d139d84ea864dbfab4 Mon Sep 17 00:00:00 2001 From: Aaron Sutula Date: Tue, 21 Jul 2020 13:44:52 -0500 Subject: [PATCH] fix: update readme code examples Signed-off-by: Aaron Sutula --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 87835bb0..5ce40d8e 100644 --- a/README.md +++ b/README.md @@ -88,10 +88,10 @@ const { info } = await pow.ffs.info() // cache data in IPFS in preparation to store it using FFS const buffer = fs.readFileSync(`path/to/a/file`) -const { cid } = await pow.ffs.addToHot(buffer) +const { cid } = await pow.ffs.stage(buffer) // store the data in FFS using the default storage configuration -const { jobId } = await pow.ffs.pushConfig(cid) +const { jobId } = await pow.ffs.pushStorageConfig(cid) // watch the FFS job status to see the storage process progressing const cancel = pow.ffs.watchJobs((job) => { @@ -110,7 +110,7 @@ const cancel = pow.ffs.watchLogs((logEvent) => { }, cid) // get the current desired storage configuration for a cid (this configuration may not be realized yet) -const { config } = await pow.ffs.getCidConfig(cid) +const { config } = await pow.ffs.getStorageConfig(cid) // get the current actual storage configuration for a cid const { cidinfo } = await pow.ffs.show(cid)