v0.2.0
Powergate 0.2.0 introduces some API updates meant to make things easier to use and less confusing, but some of these are breaking changes. It also includes some bug fixes and other internal improvements.
API changes in pow.ffs
:
DefaultConfig
andCidConfig
, previously used to represent the default storage configuration for a FFS instance and the storage settings for a specific cid, have both been replaced byStorageConfig
.StorageConfig
actually is the same shape asDefaultConfig
was, but is used both to represent the default storage configuration for a FFS instance as well as for storage settings for a specific cid.defaultConfig()
changed toDefaultStorageConfig()
setDefaultConfig()
changed tosetDefaultStorageConfig()
getCidConfig()
changed toGetStorageConfig()
pushConfig()
changed topushStorageConfig()
pushStorageConfig()
optionwithOverrideConfig()
is nowwithOverride()
pushStorageConfig()
optionwithConfig()
is nowwithStorageConfig()
- Option
withCidConfig()
changed towithStorageConfig()
addToHot()
changed tostage()
getDefaultCidConfig()
was removed because it is no longer needed- Return value from
info()
ofInstanceInfo.defaultConfig
changed toInstanceInfo.defaultStorageConfig
Other API changes:
Previously, some functions returned objects while others returned single values. For the sake of consistency and to minimize future breaking changes, all functions now return objects, even when the object has only a single key. You'll need to read the object keys to get return values. The functions that changed in this way are:
asks.get()
asks.query()
faults.get()
ffs.listPayChannels()
ffs.listStorageDealRecords()
ffs.listRetrievalDealRecords()
ffs.showAll()
reputation.getTopMiners()
wallet.newAddress()
wallet.list()
wallet.balance()