Skip to content

Conversation

@ivaylonikolov7
Copy link
Contributor

Description:

Expose hooks types in the public API and add comprehensive examples demonstrating hooks functionality.

  • Export hooks types (FungibleHookCall, FungibleHookType, HookCall, NftHookCall, NftHookType, LambdaSStoreTransaction) from lib.rs
  • Add account_hooks.rs example demonstrating account creation with hooks
  • Add contract_hooks.rs example demonstrating contract hooks usage
  • Add lambda_sstore.rs example demonstrating lambda storage slot operations
  • Update transfer_with_hooks.rs example

Fixes #1111

Notes for reviewer:

This PR makes hooks-related types publicly available in the SDK and provides working examples for:

  • Account hooks (creating accounts with hook specifications)
  • Contract hooks (attaching hooks to contracts)
  • Lambda storage operations (using LambdaSStoreTransaction)

All examples follow the existing pattern in the codebase and include proper error handling.

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

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

Successfully merging this pull request may close these issues.

2 participants