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.9.0.tar.gz (11.9 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.9.0-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for jam_sdk-0.9.0.tar.gz
Algorithm Hash digest
SHA256 32df39972326128c7a2d4aa578b2e7cc16d877f62bddb585d52a90978dd22179
MD5 17167f606ae1e3a8df5c904201f70951
BLAKE2b-256 e92dab266560bab0b4f9ed0858520ef94d1b0484d8226b24e98df329359a9010

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for jam_sdk-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4bd46a15d6a4b8fbadf63c4f0b4ac50c6d3bb31a957847aaf61331fb2cde4021
MD5 5720b9ee0297d85c757655956185a485
BLAKE2b-256 0fd58ec2871fe12f5a0dc57e10ec080650ecd17be74645d7b8237ad1e16f1e60

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