Skip to content

Releases: 0xProject/wdk-protocol-swidge-0x

Release list

v0.1.0

Choose a tag to compare

@jlin27 jlin27 released this 08 Aug 00:30
a061515

Initial release of @0x/wdk-protocol-swidge-0x — a WDK swidge protocol module for EVM token swaps via the 0x Swap API v2.

Added

  • ZeroExProtocol extending SwidgeProtocol from @tetherto/wdk-wallet.
  • quoteSwidge: indicative price via the 0x Swap API v2 AllowanceHolder /price endpoint.
  • swidge: swap execution via /quote, automatic ERC-20 approval, and transaction submission.
  • getSwidgeStatus: on-chain receipt polling via the bound wallet account.
  • getSupportedChains: 20 0x-supported EVM chains.
  • getSupportedTokens: throws NotImplementedError (0x accepts any liquid ERC-20 by address).
  • Fee mapping: totalNetworkFeenetwork, zeroExFeeprotocol, integratorFeeaffiliate.
  • maxNetworkFeeBps and maxProtocolFeeBps fee caps at both protocol and per-call level.
  • Full unit test coverage for all public methods and error paths.
  • Apache 2.0 license.

Published to npm with provenance attestation.