Skip to content

nBTC Redeem: use events to handle recordIkaSignature #293

@robert-zaremba

Description

@robert-zaremba
  1. query all redeem request inputs that are ready to sign
  2. for each input
    2.1 if sing request wasn't sent: create a tx to request ika signature
    2.2 otehrwise: optimistically try to call smart contract to finalize the signature (recordIkaSig)

we want to change step 2. to

2.1 keep
2.2 remove - and instead move the logic to sui-indexer event handler -- when Ika made a signature, it creates an event with signature result (we need to check the status if it was successful or not)

Context: https://github.com/gonative-cc/workers/blob/master/packages/redeem_solver/src/service.ts#L67

Sub-issues

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions