Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Route for Stacks Blockchain Provider #316

Open
CyrusVorwald opened this issue Jul 28, 2024 · 0 comments
Open

Implement Route for Stacks Blockchain Provider #316

CyrusVorwald opened this issue Jul 28, 2024 · 0 comments
Assignees

Comments

@CyrusVorwald
Copy link

The relay system requires a Route function for each supported blockchain to handle cross-chain message routing, transaction sending, and result processing.

Implementation of Route function and helper methods

  • Create Stacks Route(ctx context.Context, message *types.Message, callback types.TxResponseFunc) error
  • Implement SendTransaction method for creating and sending Stacks transactions
  • Implement WaitForTxResult to process transaction results
  • Implement MakeStacksMessage to convert generic messages to Stacks-specific format
  • Handle transaction sending and confirmation errors
  • Log transaction details. Create methods for logging successful and failed transactions

Acceptance criteria

  • Route function successfully sends transactions for all event types.
  • Transaction results are correctly processed and reported via callback
  • Logging provides clear transaction processing information
  • Unit tests cover all methods with >80% code coverage
  • Integration tests confirm functionality against Stacks testnet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant