Skip to content

Conversation

@ross-spencer
Copy link
Member

@ross-spencer ross-spencer commented Jul 3, 2023

Small fixes that will help with the Orcfax piece over the coming weeks plus further testing of Arweave's capabilities.

  • Provide a helper function to return all Txs - We also return wallet address in a handful of requests so that the output is clearer and easier to query outside of the API. Requirements haven't been updated in a while and so they are updated here.
  • We can now upload tags and search by those.
  • A filename can be submitted with a package.
  • Lots of cleanup.
  • Better tagging of endpoints.
  • Wallet arguments are now separate from file upload.
  • FORM endpoints have been removed in favor of a tagged release for Landano.

NB. show where a module is installed with: pip show arweave-python-client

Also considered in this fix:

NB. After looking at the newer Xloem fork, it is still less stable than arweave-python so we have stuck with that.

Example using tags:

curl -X 'POST' \
  'http://127.0.0.1:8002/create_transaction/?package_file_name=x-file-name_arkly_00000000-0000-0000-0000-000000000000' \
  -H 'accept: application/json' \
  -H 'Content-Type: multipart/form-data' \
  -F '[email protected];type=application/json' \
  -F 'files=@hello_world' \
  -F 'tags={
    "tags": [
        {
        "name": "file-name",
        "value": "x-file-name_arkly_00000000-0000-0000-0000-000000000000"
        },
        {
        "name": "x-urn",
        "value": "x-urn:arkly:00000000-0000-0000-0000-000000000000"
        },
        {
        "name": "x-id",
        "value": "00000000-0000-0000-0000-000000000000"
        },
        {
        "name": "x-tag",
        "value": "arkly hello world!"
        }
    ]
}'

@ross-spencer ross-spencer changed the title [DRAFT] Orcfax prep work [DRAFT-DO-NOT-MERGE] Orcfax prep work Jul 3, 2023
@ross-spencer ross-spencer changed the title [DRAFT-DO-NOT-MERGE] Orcfax prep work Orcfax prep work and cleanup, e.g. search, and simpler wallet handling Aug 9, 2023
Including:

* Helper functions to return all Txs.
* Tagging and retrieval by tags.
* Tags are also written into bag-info.txt.
* Some improvement of endpoint return values, inc. adding query
  inputs.
* Metadata retrieval and decoding from Arweave.
* More code added to the happy path.
* Use constants for Arweave URLs and replaced non Arweave gateways.
Some values to allow folks to get started with the Arkly
wrappers without too much hassle.
@ross-spencer ross-spencer merged commit a38c125 into main Aug 9, 2023
@ross-spencer ross-spencer deleted the dev/all-tx-data branch August 9, 2023 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants