Skip to content

add process_disclosure API#207

Merged
dr-orlovsky merged 2 commits intoRGB-WG:masterfrom
zoedberg:feat/disclosure_api
Sep 30, 2022
Merged

add process_disclosure API#207
dr-orlovsky merged 2 commits intoRGB-WG:masterfrom
zoedberg:feat/disclosure_api

Conversation

@zoedberg
Copy link
Member

Closes #206 by adding an API, process_disclosure, that gets the transfer TXID ad uses it to retrieve its associated disclosure and process it saving all relevant data into the DB.

Moreover this PR introduces a commit that changes the key used to save BUNDLES into the DB, from the witness_txid to a chunk of contract_id and witness_txid, allowing the send of more assets with the same TX.

I haven't added a CLI command for the new API yet, since I'm not sure the API and related naming will be accepted, but once we'll agree on details I will be happy to add that.

Copy link
Member

@dr-orlovsky dr-orlovsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK 2e165b5

Wow, really clearly and well-written! Thank you!

@dr-orlovsky dr-orlovsky merged commit 69219e9 into RGB-WG:master Sep 30, 2022
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.

cannot spend assets moved with Blank transitions

2 participants