Direct Deals
Direct data onboarding deals
git clone https://github.com/filecoin-project/lotus lotus-direct-deal
cd lotus-direct-deal
git checkout nonsense/ddo-integration-and-allocation-and-claim-apis
docker build --build-arg FFI_BUILD_FROM_SOURCE=1 --build-arg GOFLAGS=-tags=debug -t filecoin/lotus-all-in-one:feat-ddo-integration-debug --target lotus-all-in-one -f Dockerfile .
git clone https://github.com/filecoin-project/boost boost-direct-deal
cd boost-direct-deal
git checkout nonsense/ddo
make docker/lotus ffi_from_source=1 build_lotus=0 lotus_version=feat-ddo-integration
make docker/lotus-miner ffi_from_source=1 build_lotus=0 lotus_version=feat-ddo-integration
make docker/boost docker/booster-http docker/booster-bitswap ffi_from_source=1 build_lotus=0 lotus_version=feat-ddo-integration
make devnet/up
- 1.Wait till the Boost UI is reachable at http://localhost and then, open a terminal to the
boost
containerdocker compose exec boost /bin/bash - 2.Setup notary and add balance to client market actorexport `lotus auth api-info --perm=admin`boost initlotus send --from=`lotus wallet default` `boost wallet default` 100NOTARY_1=`cat $BOOST_PATH/notary_1`lotus send $NOTARY_1 10lotus wallet listsleep 10boostx market-add 5
- 3.Grant the datacap to the clientlotus filplus grant-datacap --from=$NOTARY_1 `boost wallet default` 100000000
chunks=50
links=10
FILE=`boostx generate-rand-car -c=$chunks -l=$links -s=5120000 /app/public/ | awk '{print $NF}'`
PAYLOAD_CID=$(find "$FILE" | xargs -I{} basename {} | sed 's/\.car//')
COMMP_CID=`boostx commp $FILE 2> /dev/null | grep CID | cut -d: -f2 | xargs`
echo $PAYLOAD_CID
echo $COMMP_CID
boost allocate --miner=t01000 --piece-info=$COMMP_CID=8388608
boost list-allocations
boostd import-direct --client-addr=`boost wallet default` --allocation-id=2 $COMMP_CID /app/public/$PAYLOAD_CID.car
make devnet/down
Last modified 8d ago