hyperledger / cacti

Hyperledger Cacti is a new approach to the blockchain interoperability problem
https://wiki.hyperledger.org/display/cactus
Apache License 2.0
338 stars 280 forks source link

Utility Fabric Query Functions for Weaver HTLC Protocol #2467

Open VRamakrishna opened 3 years ago

VRamakrishna commented 3 years ago

Here are several functions that may be useful for management of a single asset or collection of assets:

sandeepnRES commented 2 years ago

@VRamakrishna does this refer to the GetHash and GetHashPreimage queries? if yes shall we close this, as its already implemented?

VRamakrishna commented 2 years ago

@VRamakrishna does this refer to the GetHash and GetHashPreimage queries? if yes shall we close this, as its already implemented?

@sanvenDev I've updated the original comment. Please see above.

sandeepnRES commented 1 year ago
GetAssetTimeToRelease(<asset-type>, <id>, [<locked-for-address>, <locked-by-address>])
GetFungibleAssetTimeToRelease(<asset-type>, <number-of-units>, [<locked-for-address>, <locked-by-address>])

Both of these functions can be combined to just one function GetAssetTimeToRelease(<contract-id>)

If the merge is not going to happen this week, I think these functions can be implemented easily. Closing this will also close the Epic.