Add Soroban contract ID validator - #194
Conversation
|
Hi @louiss72! 👋 Thank you for your contribution! Problem Identified: Recommended Fix: git fetch origin dev
git checkout agent/soroban-contract-id-validator-163
git rebase origin/dev
# Resolve any conflicts, then:
git add <resolved-files>
git rebase --continue
npm test
git push --force-with-lease origin agent/soroban-contract-id-validator-163Once rebased and clean, we will merge this PR into |
|
Hi @louiss72! 👋 Specific Conflict Analysis for PR #194: Your sibling PR #191 (
Step-by-Step Fix:
Once clean, we'll merge this PR right away! Thanks! 🚀 |
|
Hi @louiss72! 👋 Conflict Summary & Action Required: Rebase Steps: git fetch origin dev
git checkout agent/soroban-contract-id-validator-163
git rebase origin/dev
# Update tests/unit/stellar-address.test.ts imports to:
# import { isValidSorobanContractId, isValidStellarPublicKey } from "../../src/lib/stellar-address";
git add tests/unit/stellar-address.test.ts
git rebase --continue
npm test
git push --force-with-lease origin agent/soroban-contract-id-validator-163Once clean, we will merge this PR into |
|
Hi @louiss72! 👋 Here is a detailed breakdown of the conflict in your PR and the exact code changes needed to resolve it: 📌 File in Conflict
🔍 Root Cause & Line-Level ConflictWhen sibling PR #191 was merged, helper functions were relocated from <<<<<<< HEAD (dev)
import {
isValidSorobanContractId,
isValidStellarPublicKey,
} from "../../src/lib/stellar-address";
=======
import { isValidStellarPublicKey } from "../../src/utils/stellar-address.utils";
>>>>>>> agent/soroban-contract-id-validator-163🛠️ Step-by-Step Resolution
Once clean, we'll merge this immediately! Thanks! 🚀 |
|
Hi @louiss72! 👋 Rebase Reminder & Code-Level Resolution: Quick Rebase Commands: git fetch origin dev
git checkout agent/soroban-contract-id-validator-163
git rebase origin/dev
# Update tests/unit/stellar-address.test.ts imports to:
# import { isValidSorobanContractId, isValidStellarPublicKey } from "../../src/lib/stellar-address";
git add tests/unit/stellar-address.test.ts
git rebase --continue
npm test
git push --force-with-lease origin agent/soroban-contract-id-validator-163Once clean, we'll merge this PR right away into |
Summary
StrKey.decodeContract()so invalid C-address inputs are rejected without relying on an untyped runtime helperCloses #163.
Validation
npm test -- tests/unit/stellar-address.test.ts-> 1 suite / 4 tests passednpm run type-check-> passednpm run build-> passednpm run lint-> passedgit diff --check-> passedPayout
This is Stellar Wave / USDC-compatible. EVM/Base USDC address:
0x2f8081562ac67467d1cbd40ab3120849c1f587da.If payment must be Stellar-native USDC, please ask for a Stellar public key before sending.