Skip to content

About

Migration guide and machine-readable mapping for adapting Polymarket bots and SDK integrations to Kuest

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Polymarket -> Kuest compatibility

Polymarket to Kuest migration

Migrating Polymarket bots to Kuest requires endpoint, authentication, network, and V2 signed-order changes.

What's here

  • MIGRATION.md — step-by-step migration guide for humans.
  • mapping.json — machine-readable mapping for automation or LLM-assisted refactors.
  • AGENTS.md — compact instructions for coding agents and migration tooling.

Quick notes

  • Replace POLYMARKET_ with KUEST_ in env vars and auth headers.
  • Replace *.polymarket.com with *.kuest.com (same subdomain).
  • Kuest order signing uses the EIP-712 domain CTF Exchange, version 2.
  • V2 orders remove taker, expiration, nonce, and feeRateBps from the signed payload and add timestamp, metadata, and builder.
  • Use Deposit Wallet as maker and signer, with signature type 3.
  • Send owner as the CLOB API key, not KUEST_ADDRESS.
  • In Kuest CLOB order responses, deserialize owner as a ULID/string user identifier.
  • Use builderCode/builder_code for attribution; Kuest encodes a builder wallet as bytes32(uint256(uint160(wallet))).
  • Deploy the Deposit Wallet before posting orders. Relayer calls require Builder credentials and use WALLET / WALLET-CREATE.

Network

  • Kuest runs on Polygon Mainnet (chainId 137) and uses Circle USDC.
  • Polymarket V2 uses Polygon (chainId 137) and pUSD collateral; Kuest V2 uses USDC Circle directly.

Kuest V2 contracts and collateral

  • CTF Exchange: 0xaa1b8dE834E16eC69C044F5300041673C968c9eF
  • Neg Risk CTF Exchange: 0xe7FA09cA716FDf498d74AFF618d32AFeacc310aB
  • USDC Circle (Polygon mainnet): 0x3c499c542cef5e3811e1192ce70d8cc03d5c3359

For the full migration guide, see MIGRATION.md.

About

Migration guide and machine-readable mapping for adapting Polymarket bots and SDK integrations to Kuest

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Contributors