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
- Create order transaction
- Utils
- Get supported chains
get_supported_chains - Get token list
get_token_list
- Get supported chains
- Single Chain Swap
- Estimation
single_chain_swap_estimation - Transaction
single_chain_swap_transaction
- Estimation
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68ee631b618a9f24cbf7c5b73a695e296c1e3d72cf2dcb666e8efc89a9bc9d6c
|
|
| MD5 |
f52755afdda90684fe1641869c71a36a
|
|
| BLAKE2b-256 |
90435a5e40928fe12a454e3e2a1df9128b58e1efa40388fa901afd943b1980f0
|
File details
Details for the file goat_sdk_plugin_debridge-0.1.0-py3-none-any.whl.
File metadata
- Download URL: goat_sdk_plugin_debridge-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.0 CPython/3.11.8 Linux/6.6.26-1-MANJARO
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fde9474c675b3dbd7468eb55f215ba472232ae8594e94a1cc5e257adda54ccaf
|
|
| MD5 |
16c6ad73bcbeb6bb438ea89eb1880ade
|
|
| BLAKE2b-256 |
15e535d9b18b684456566d678b1066fb4312642225f92f12ef0632c7b877cc5a
|