Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Oracle Blockchain App Builder - Oracle Tokenisation Engine

Hi Team, we have one use case and we can’t make it work using oracle tokenisation engine. I appreciate your help. Logic is the following :
we have two different tokens, let’s say EUR, USD (those are represented as structures with different Token_name and Token_id)
We need to implement “Exchange” function that exchanges one token for another plus generates fee:
Account1.EUR -> Account2.EUR
Account1.EUR -> Account3.EUR (fee)
Account2.USD -> Account1.USD
Operations 2a and 2b can be easily implemented with BulkTransfer. But operation 2c fails, because Transaction Id is not unique. I think this is the line that causes problems:

if NumberOfSubTransactions <= 0 || TransactionType == "BULKTRANSFER" {
		trxAsset.TransactionId = trx_asset_type + `~` + trx.model.GetNetworkStub().GetTxID()
	} else {

Do you have any recommendations how to solve this issue?

Comments

Post Details

Added on Apr 8 2022
0 comments
170 views