feat: implement TFT-to-SPORE bridge with batch_all memo extraction #1

Open
mahmoud wants to merge 1 commit from development into main
Owner

Changes

  • Extract Hero Ledger address from Utility::batch_all extrinsics by
    scanning raw SCALE-encoded bytes for System::remark containing the
    64-char hex destination address
  • Fix amount truncation: pass raw planck amounts (u64) through the
    event pipeline; handlers convert to SPORE raw units (u128, 18 decimals)
  • Auto-register recipients on SPORE contract via storage_deposit before
    transfer (works around unreliable is_registered SDK method)
  • Use HeroLedgerClient::connect_with_root with network-derived root
    account (devnet→dev.hero, testnet→test.hero, mainnet→hero)
  • Switch hero_ledger dependency from local path to git for CI/deployment
  • Document block cursor setup in README to avoid scanning from genesis
### Changes - Extract Hero Ledger address from Utility::batch_all extrinsics by scanning raw SCALE-encoded bytes for System::remark containing the 64-char hex destination address - Fix amount truncation: pass raw planck amounts (u64) through the event pipeline; handlers convert to SPORE raw units (u128, 18 decimals) - Auto-register recipients on SPORE contract via storage_deposit before transfer (works around unreliable is_registered SDK method) - Use HeroLedgerClient::connect_with_root with network-derived root account (devnet→dev.hero, testnet→test.hero, mainnet→hero) - Switch hero_ledger dependency from local path to git for CI/deployment - Document block cursor setup in README to avoid scanning from genesis
feat: implement TFT-to-SPORE bridge with batch_all memo extraction
Some checks failed
Test / test (push) Successful in 3m17s
Test / test (pull_request) Failing after 1s
cd739c4de4
- Extract Hero Ledger address from Utility::batch_all extrinsics by
  scanning raw SCALE-encoded bytes for System::remark containing the
  64-char hex destination address
- Fix amount truncation: pass raw planck amounts (u64) through the
  event pipeline; handlers convert to SPORE raw units (u128, 18 decimals)
- Auto-register recipients on SPORE contract via storage_deposit before
  transfer (works around unreliable is_registered SDK method)
- Use HeroLedgerClient::connect_with_root with network-derived root
  account (devnet→dev.hero, testnet→test.hero, mainnet→hero)
- Switch hero_ledger dependency from local path to git for CI/deployment
- Document block cursor setup in README to avoid scanning from genesis
Some checks failed
Test / test (push) Successful in 3m17s
Test / test (pull_request) Failing after 1s
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin development:development
git switch development

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff development
git switch development
git rebase main
git switch main
git merge --ff-only development
git switch development
git rebase main
git switch main
git merge --no-ff development
git switch main
git merge --squash development
git switch main
git merge --ff-only development
git switch main
git merge development
git push origin main
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_tfspores!1
No description provided.