🐥
Filecoin Storage and Retrival tutorials
sectorが32GiB/64GiB なので 少ないデータのばあいはaggregataorが必要になる
related explanation:https://pl-strflt.notion.site/Data-FVM-234b7f4c17624cd8b972f92806732ca9
deal request
Aggregatorによって、一つにまとめられて一つのSectorとして効率的にProofされる。
HugeData : DirectDeal
- docker compose up to launch filecoin on local
- deploy deal client contract to localnet with hardhat
- check deals localhost:8080/storage-deals/
- DL data with `lassie fetch --providers XX
- unpack data with `ipfs-car --unpack {CAR_NAME}.car
- original file extract to {CAR_NAME} dir
small Data. aggregator
- Filecoin data tool (edge/delta)
- Using Deal-monitor
https://github.com/hammertoe/fdt-deal-monitor
Javascript which monitor event and call Edge.
node fdt-deal-monitor-ethers.js
-
yarn hardhat store-data --contract {$LOCAL_CONTRACT_ADR} --url {LIGHTOUHSE_CAR_URL}
--network localnet - wait 15 seconds on fdt-monitor, then showing sending payload logs(including Download)
- you can download with
curl {$DOWNLOAD_URL} > out.car
ipfs-car --unpack out.car
- the file will be extracted to {CID} dir
- we can check aggregate status with `curl {$AGGREGATE_URL} | jq .
Discussion