Virus-Axel / godot-solana-sdk

Build Solana games with godot. This GDExtension will enable godot to make on-chain and Solana integrated games.
MIT License
38 stars 12 forks source link

is_conirmed and is_finalized are hard to make use of #210

Closed Virus-Axel closed 6 months ago

Virus-Axel commented 6 months ago

Description

The functions must be placed in a loop and is forcing user to write more code than necessary.

Suggested Improvements

Add transactions signals for finalized, processed and confirmed. Check internally if the signals are connected and if so, subscribe to signature updates. If the signal is unconnected the signature will be unsubscribed.

Extra Information

This will require transactions to be added to scene tree. Otherwise it should trigger an error