Skip to main content

Bebop Jam SDK

Project description

Bebop JAM SDK

Alt text

Official SDK for Bebop JAM.

Functionality

Supplies an interface to implement providing solutions for Jam:

  • Managed websocket connection to JAM
  • Simple base class to implement for providing solutions
  • Cache management and validation
  • Fully typed request and responses
  • Jam contract deployments and ABIs

Getting Started

In order to connect to the JAM server, you will need some authentication details: host, post, name, authentication. Please contact a team member to obtain these.

Bebop orders go through 2 stages. Quote & Order.

  1. Quote: Given the requested tokens, provide a quote.
  2. Execute: Execute on chain the quote previously given.
  3. Self-Execution Quote: Given the requested tokens, provide a quote and the interactions. Bebop will build the calldata and return it to the user .

To implement these functions, simply implement the BaseSolver class with get_quote, execute, and get_taker_quote functions.

See example here.

Publishing the package

cd jam_sdk
poetry version <major/minor/patch>
poetry config pypi-token.pypi <api token here>
poetry build
poetry publish

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jam_sdk-0.10.0.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jam_sdk-0.10.0-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file jam_sdk-0.10.0.tar.gz.

File metadata

  • Download URL: jam_sdk-0.10.0.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.13.1 Darwin/24.3.0

File hashes

Hashes for jam_sdk-0.10.0.tar.gz
Algorithm Hash digest
SHA256 6ed3b440ac024d41b85359f7d63f26a4ad8cf4307797858a1f2a047f4c803faf
MD5 a41fa7068d0417d0083aeedf77a1a6c0
BLAKE2b-256 77088fc1de3e904a76f5fa41d9cb60d69aca26ccbcf93a3c250587f33ee3ed7d

See more details on using hashes here.

File details

Details for the file jam_sdk-0.10.0-py3-none-any.whl.

File metadata

  • Download URL: jam_sdk-0.10.0-py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.13.1 Darwin/24.3.0

File hashes

Hashes for jam_sdk-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8d0c0a5feccf39da097e382ac7d2eef576e8304804c479dfe5f50f7464163478
MD5 4c63afd980cd1568e20c8fa072afa637
BLAKE2b-256 bbab4822f2810ec3e5a5ca007e18fb5cb2549ea5bb4ac21225fbaabe30aa1819

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page