Problem
The main SDK exposes serverKey in two places that still use the old "server" terminology:
client.serverKey — the ArkClient property holding the operator's public key
ArkAddress.serverPubKey — the property on a decoded Ark address
These names are inconsistent with the direction taken in the @arkade-os/swap package (and elsewhere) where operatorPubkey is now the standard name for the operator-run server's public key.
Proposed change
Rename both to operatorPubkey:
client.serverKey → client.operatorPubkey
ArkAddress.serverPubKey → ArkAddress.operatorPubkey
A deprecation alias can be kept for one release cycle to avoid a hard breaking change for SDK consumers.
Scope
This is a main SDK change (packages/sdk/ or equivalent), not scoped to @arkade-os/swap. The swap package's cancel.test.ts uses serverKey from the SDK emulator API, and swap.test.ts reads .serverPubKey from ArkAddress — both of those will need updating once this is landed.
Problem
The main SDK exposes
serverKeyin two places that still use the old "server" terminology:client.serverKey— theArkClientproperty holding the operator's public keyArkAddress.serverPubKey— the property on a decoded Ark addressThese names are inconsistent with the direction taken in the
@arkade-os/swappackage (and elsewhere) whereoperatorPubkeyis now the standard name for the operator-run server's public key.Proposed change
Rename both to
operatorPubkey:client.serverKey→client.operatorPubkeyArkAddress.serverPubKey→ArkAddress.operatorPubkeyA deprecation alias can be kept for one release cycle to avoid a hard breaking change for SDK consumers.
Scope
This is a main SDK change (
packages/sdk/or equivalent), not scoped to@arkade-os/swap. The swap package'scancel.test.tsusesserverKeyfrom the SDK emulator API, andswap.test.tsreads.serverPubKeyfromArkAddress— both of those will need updating once this is landed.