application-research / delta

Filecoin deal proposal / making service
Apache License 2.0
16 stars 4 forks source link

feat: import from a remote source #118

Closed alvin-reyes closed 1 year ago

alvin-reyes commented 1 year ago

Changes

Transfer Parameters

This allows users to specify a remote source for import deals.

Sample below:

When the transfer_parameters is specified, delta will use the URL as the source of the import.

    "cid": "bafybeicgdjdvwes3e5aaicqljrlv6hpdfsducknrjvsq66d4gsvepolk6y",
    "miner": "f01963614",
    "piece_commitment": {
        "piece_cid": "baga6ea4seaqdgtooshkmlmbu4hesd5asp7g3p4yd7s4tjmrbkx676ba5mlu2kcy",
        "padded_piece_size": 2097152
    },
    "transfer_parameters": {
        "url":"https://ipfs.io/ipfs/bafybeicgdjdvwes3e5aaicqljrlv6hpdfsducknrjvsq66d4gsvepolk6y"
    },
    "connection_mode": "import",
    "size": 1157859,
    "remove_unsealed_copy": false,
    "skip_ipni_announce": true,
    "duration_in_days": 521,
    "start_epoch_in_days": 7
}

Batch Imports

Introduced the following new endpoints