feat: add Ark (Arkade) blockchain integration#3395
Merged
TaprootFreak merged 8 commits intodevelopfrom Mar 13, 2026
Merged
Conversation
Add full Ark protocol support as a Bitcoin L2 (coin-only), using the @arkade-os/sdk with Arkadeos server (arkade.computer). Follows the same pattern as the existing Spark integration. Env vars: ARK_PRIVATE_KEY, ARK_SERVER_URL (optional)
- Remove unused reconnectWallet() and reconnectAttempt field - Improve getTransaction() to use finalizePendingTxs() for outgoing tx confirmation instead of only checking VTXOs
The @arkade-os/sdk ships ESM-only sub-dependencies (@scure/btc-signer) that break Jest's CommonJS transform. Add a moduleNameMapper mock following the existing @dfinity pattern.
…apter, and user enum Add ARK cases for payment requests, address detection, signature verification, and balance updates that were missed in the initial integration.
Cover signature verification (valid/invalid/edge cases), balance conversion, transaction lifecycle, health checks, payment request formatting, and not-implemented guards.
Collaborator
Author
|
During review, found a pre-existing bug (not introduced by this PR): Spark address explorer links are broken because Tracked in #3400. Note: |
…and assetPaths - Set Ark explorer to https://explorer.arkade.sh with tx path - Add Spark and Ark to addressPaths switch (fixes broken address explorer links for Spark, enables them for Ark) - Add Spark and Ark to assetPaths switch for completeness Closes #3400
Add database migration that inserts BTC as a Coin asset on the Ark blockchain, referencing the existing Kraken BTC/USDT price rule (id 11), consistent with Bitcoin/BTC and Lightning/BTC.
…vices Eliminate duplicated signature verification, payment request, and address helper methods by introducing an abstract Bech32mService. Fix any-types in sendSignedTransaction for Spark/Ark clients.
bernd2022
approved these changes
Mar 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@arkade-os/sdkwith the Arkadeos server (arkade.computer)New files (9)
src/integration/blockchain/ark/— ArkClient, ArkService, ArkModuleModified files (19)
blockchain.enum.ts—ARK = 'Ark'config.ts— address format, env vars (ARK_PRIVATE_KEY,ARK_SERVER_URL)blockchain-registry.service.ts— type unions, COIN_ONLY set, injection, switch caseblockchain.module.ts,payout.module.ts,dex.module.ts— module registrationcrypto.service.ts—isArkAddress()detectionasset.service.ts—getArkCoin()helperblockchain.util.ts— explorer URLs (none yet)ref-reward.service.ts— payout limitEnv vars required
Test plan
npx tsc --noEmit)ARK_PRIVATE_KEYenv var and verify wallet initializationark1...addressgetBalance()ark1...addresses