Skip to content

swap/sdk: rename serverKey → operatorPubkey #797

Description

@arkana-ai-bot

Problem

In `packages/swap/src/offer.ts`, two references to `serverKey` cannot be renamed as part of the operator naming pass because they come directly from the main SDK:

```ts
// line ~517-518
const server = client.serverKey; // Arkade.connect() result
const serverPubKey = ArkAddress.decode(...).serverPubKey; // ArkAddress
```

The SDK exposes `IWallet.serverKey`, `ArkAddress.serverPubKey`, and related surface. These should become `operatorPubkey` for consistency with the naming convention being established in the swap package (#796).

Proposed fix

Rename in the SDK:

  • `IWallet.serverKey` → `IWallet.operatorPubkey`
  • `ArkAddress.serverPubKey` → `ArkAddress.operatorPubkey`

Then update all consumers in `packages/swap` and elsewhere.

Context

Part of a broader effort to remove `server`-as-prefix from the Ark client naming surface. The operator (Arkade server) manages transaction submission and batch settlement. `server` should be avoided not because the relationship isn't client-server (it is), but because operator is the specific server involved — there are multiple servers in the Arkade ecosystem (solver servers, emulator servers, covclaimd servers, etc.) and `server` alone is ambiguous. `operator` is the precise term.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions