New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

alphalend-abi

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alphalend-abi

Versioned ABI/type layouts for the AlphaLend Sui modules

Source
pipPyPI
Version
1.1.0
Weekly downloads
181
Maintainers
1
Weekly downloads
 
Created

alphalend-abi

Versioned ABI / BCS type layouts for the AlphaLend modules on Sui mainnet.

The alphalend packages are upgradeable; struct layouts drift between package versions. This pack tracks the live layouts so decoders can pin against a known version instead of guessing field order.

import alphalend_abi

layout = alphalend_abi.get_layout("position")
print(layout["version"])                       # 4
print(layout["structs"]["Position"]["fields"])

For supported interpreters (CPython 3.10–3.13) a prebuilt accelerator is loaded automatically for the varint-heavy layout walks; other interpreters use the pure-Python path. Both are API-identical.

Current layouts: position v4, market v4 (package 0xd631cd66138909636fc3f73ed75820d0c5b76332d1644608ed1c85ea2b8219b4).

Development

pip install -e .
python -m pytest tests/

Keywords

sui

FAQs

Related posts