baseledger_api_proposal_v0.5.md mentions that is possible to use TendermintBlockId, TendermintTransactionId and TendermintTransactionTimestamp in the url or body params of a SOR webhook. Unfortunately this doesn't work because of several reasons:
TendermintTransactionTimestamp is of type sql.NullTime. The way the URL or the body of the request are created (buildWebhookRequestBody and buildWebhookRequestUrl in system_of_record_hook.go) results in a string similar to "{2022-05-28T05:41:13Z true}". It would be better to just have the time in the string.
- At the time the webhook request URL and body are build, the mentioned properties are not yet set on the trustmesh entry. The trustmesh entry gets created without these properties set. In
ExecuteBusinessLogic the webhook will be triggered first and at the end setTxStatus is called to update these properties.
I have created an ugly workaround for myself to overcome this issue, but I don't want to share it with the public :-) Maybe it is possible to update the properties already before triggering the webhook?
baseledger_api_proposal_v0.5.mdmentions that is possible to useTendermintBlockId,TendermintTransactionIdandTendermintTransactionTimestampin the url or body params of a SOR webhook. Unfortunately this doesn't work because of several reasons:TendermintTransactionTimestampis of typesql.NullTime. The way the URL or the body of the request are created (buildWebhookRequestBodyandbuildWebhookRequestUrlinsystem_of_record_hook.go) results in a string similar to"{2022-05-28T05:41:13Z true}". It would be better to just have the time in the string.ExecuteBusinessLogicthe webhook will be triggered first and at the endsetTxStatusis called to update these properties.I have created an ugly workaround for myself to overcome this issue, but I don't want to share it with the public :-) Maybe it is possible to update the properties already before triggering the webhook?