Skip to main content

Goat plugin for deBridge

Project description

deBridge Plugin for GOAT SDK

A plugin for the GOAT SDK that provides access to deBridge Liquidity Network (DLN) functionality.

Installation

# Install the plugin
poetry add goat-sdk-plugin-debridge

Usage

from goat_plugins.debridge import debridge, DebridgePluginOptions

# Initialize the plugin
options = DebridgePluginOptions()
plugin = debridge(options)

# Get order data
order_data = await plugin.get_order_data(
    id="0x81fbb0ed8209eb57d084aee1986c00e597c1e1ec6bb93bc4dbe97266ca0398fb"
)

# Get supported chains
chains = await plugin.get_supported_chains()

# Get order IDs
order_IDs = await plugin.get_order_IDs(
    hash="0xbe9071de34de9bd84a52039bc4bc6c8229d4bd65127d034ffc66b600d8260276" # Hash of the creation transaction
)

Features

  • DLN
    • Create order transaction create_order_transaction
    • Get order data get_order_data
    • Get order status get_order_status
    • Get order IDs get_order_IDs
    • Cancel order cancel_order
    • Cancel external call cancel_external_call
  • Utils
    • Get supported chains get_supported_chains
    • Get token list get_token_list
  • Single Chain Swap
    • Estimation single_chain_swap_estimation
    • Transaction single_chain_swap_transaction

DLN Swagger Docs

The deBridge plugin tools is a 1-to-1 representation of the DLN API. You can access the deBridge Swagger docs page for more information about the various parameters.

License

This project is licensed under the terms of the MIT license.

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

goat_sdk_plugin_debridge-0.1.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

goat_sdk_plugin_debridge-0.1.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file goat_sdk_plugin_debridge-0.1.0.tar.gz.

File metadata

  • Download URL: goat_sdk_plugin_debridge-0.1.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.11.8 Linux/6.6.26-1-MANJARO

File hashes

Hashes for goat_sdk_plugin_debridge-0.1.0.tar.gz
Algorithm Hash digest
SHA256 68ee631b618a9f24cbf7c5b73a695e296c1e3d72cf2dcb666e8efc89a9bc9d6c
MD5 f52755afdda90684fe1641869c71a36a
BLAKE2b-256 90435a5e40928fe12a454e3e2a1df9128b58e1efa40388fa901afd943b1980f0

See more details on using hashes here.

File details

Details for the file goat_sdk_plugin_debridge-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for goat_sdk_plugin_debridge-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fde9474c675b3dbd7468eb55f215ba472232ae8594e94a1cc5e257adda54ccaf
MD5 16c6ad73bcbeb6bb438ea89eb1880ade
BLAKE2b-256 15e535d9b18b684456566d678b1066fb4312642225f92f12ef0632c7b877cc5a

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