New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arweave Integration Milestone 1: Publish using transaction ID #485
Arweave Integration Milestone 1: Publish using transaction ID #485
Conversation
|
The CI checks for this PR is failing due to a strange error: https://github.com/oceanprotocol/provider/runs/6887646381?check_suite_focus=true#step:10:8 Does anyone know what might be going wrong?
|
* When calling download, `is_safe_url()` is called earlier by
`check_url_details()` so calling again in `build_download_response`
is redunant.
* When calling computeResult, `validate_url=False` so `is_safe_url()`
check is skipped anyway.
|
Lol, I just realized while testing with So this PR is not ready. I converted it back to draft. Definitely have to fix it so that the downloaded filename doesn't leak the transaction id. |
- Trying to fix error in test_compute (the following test):
```
> assert response.status == "200 OK", f"start compute job failed: {response.data}"
E AssertionError: start compute job failed: b'{"error": "`agreementId` already in use for other job."}'
E assert '400 BAD REQUEST' == '200 OK'
E - 200 OK
E + 400 BAD REQUEST
```
This reverts commit 06327be.
This reverts commit f60f915.
|
You can probably fix the failing tests by cherry picking #533 (comment) |
|
@calina-c I have reverted the |
|
Please merge main branch, a new type was added |
- Fix error message:
> fee_token.functions.transfer(consumer_wallet.address, to_wei(80)).transact(
{"from": deployer_wallet.address}
)
E web3.exceptions.ContractLogicError: execution reverted: VM Exception while processing transaction: revert ERC20: transfer amount exceeds balance
|
Hello @calina-c @alexcos20 I believe this PR is ready for review. P.S. It seems I am unable to request additional reviewers, perhaps because I am an external contributor. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Towards oceanprotocol/pm#151
Changes proposed in this PR:
Update
fileinfoanddownloadendpoints to support files stored in Arweave.Add
ARWEAVE_GATEWAYenvvar for resolving Arweave transaction idsAdd
test_download_arweaveto show that downloading an asset stored in Arweave works.Add
test_compute_arweaveto show that a compute job that uses a dataset stored in Arweave works.Add
test_check_arweave_goodandtest_check_arweave_badto show thatfileinfoendpoint works with arweave transaction ids.Fix bug in the
downloadendpoint where the Arweave transaction ID or IPFS CID are leaked in the"Content-Disposition"response header.Discard MismatchedABI warnings that occur when processing event logs - these are expected because a given transaction receipt will likely have many different Events, not just ones that match the Event ABI of interest.
Add
ARWEAVE_TRANSACTION_IDconstant that points tobranin.arffstored permanently on Arweave.Changes that were implemented but then reverted:
Generalize existing URL files structure (change "url" key to "value") (for details see Addarweavefile type to DDO spec docs#1019 (comment))