tnt-core-bindings
Rust bindings for TNT Core Solidity contracts, generated using Alloy.
Installation
[]
= "0.1"
Usage
use ProviderBuilder;
use ;
async
Available Bindings
| Contract | Description |
|---|---|
ITangle |
Main Tangle protocol interface (blueprints, services, jobs) |
ITangleFull |
Full Tangle surface (includes slashing + admin) |
ITangleBlueprints |
Blueprint registration and management |
ITangleServices |
Service lifecycle management |
ITangleJobs |
Job submission and results |
ITangleOperators |
Operator registration and status |
ITangleSlashing |
Slashing mechanism |
ITangleRewards |
Reward distribution |
IMultiAssetDelegation |
Multi-asset staking and delegation (facet ABI) |
MultiAssetDelegation |
Router/diamond management ABI |
IBlueprintServiceManager |
Blueprint service manager interface |
IOperatorStatusRegistry |
Operator status tracking |
Raw ABIs
JSON ABIs are available for downstream tooling:
use abi;
// Access raw ABI JSON strings
let tangle_abi = ITANGLE;
let tangle_full_abi = ITANGLE_FULL;
let mad_abi = IMULTI_ASSET_DELEGATION;
Version Tracking
Each release is tied to a specific TNT Core commit:
use TNT_CORE_VERSION;
println!;
Regenerating Bindings
To regenerate bindings from the Solidity source:
This requires Foundry to be installed.
License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contributing
Contributions are welcome! Please see the main repository for contribution guidelines.