sodax-sdk-staking
Installation
SKILL.md
Staking (Core SDK granular skill)
Granular skill for StakingService — sodax.staking. Feature tag: 'staking'.
Step 1 — Clarify with user before coding
- New code or v1 → v2 port?
- Which operation?
stake,unstake,instantUnstake(penalty),claim,cancelUnstake. - Cross-chain (staking from a spoke chain) or hub-side (Sonic)? Staking from a spoke routes through the relay.
- Need user staking info?
- From a spoke address (most consumer code):
getStakingInfoFromSpoke(srcAddress, srcChainKey)— resolves spoke → hub then reads. - From a hub address directly (already on Sonic):
getStakingInfo(hubAddress). Both are public reads onStakingService.
- From a spoke address (most consumer code):