Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion bindings/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.17.1] - 2026-05-17

### Changed

- Updated bindings from TNT Core contracts

## [0.17.0] - 2026-05-15

Quote-path security hardening, multi-asset bill weighting, EIP-170 facet split,
Expand Down Expand Up @@ -798,7 +804,7 @@ ValidatorPodManager). Single coordinated bindings cut.
- Raw ABI JSON exports via `abi` module
- `TNT_CORE_VERSION` constant for commit tracking

[Unreleased]: https://github.com/tangle-network/tnt-core/compare/bindings-v0.17.0...HEAD
[Unreleased]: https://github.com/tangle-network/tnt-core/compare/bindings-v0.17.1...HEAD
[0.11.1]: https://github.com/tangle-network/tnt-core/compare/bindings-v0.11.0...bindings-v0.11.1
[0.11.0]: https://github.com/tangle-network/tnt-core/compare/bindings-v0.10.9...bindings-v0.11.0
[0.1.0]: https://github.com/tangle-network/tnt-core/releases/tag/bindings-v0.1.0
Expand Down Expand Up @@ -839,3 +845,4 @@ ValidatorPodManager). Single coordinated bindings cut.
[0.11.3]: https://github.com/tangle-network/tnt-core/compare/bindings-v0.11.2...bindings-v0.11.3
[0.16.0]: https://github.com/tangle-network/tnt-core/compare/bindings-v0.15.0...bindings-v0.16.0
[0.17.0]: https://github.com/tangle-network/tnt-core/compare/bindings-v0.16.0...bindings-v0.17.0
[0.17.1]: https://github.com/tangle-network/tnt-core/compare/bindings-v0.17.0...bindings-v0.17.1
2 changes: 1 addition & 1 deletion bindings/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tnt-core-bindings"
version = "0.17.0"
version = "0.17.1"
edition = "2021"
rust-version = "1.81"
description = "Rust bindings for TNT Core Solidity contracts (Tangle staking protocol)"
Expand Down
2 changes: 1 addition & 1 deletion bindings/TNT_CORE_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f64a4e4d4db761b8a5f2aafc3e87ed588797f88c
50713b8d7146e44b4f67df0b7428afa6efecfc1c
2 changes: 1 addition & 1 deletion bindings/abi/IBlueprintServiceManager.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bindings/abi/IMultiAssetDelegation.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bindings/abi/ITangle.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bindings/abi/ITangleFull.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bindings/abi/ITangleSlashing.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bindings/abi/MultiAssetDelegation.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bindings/abi/OperatorStatusRegistry.json

Large diffs are not rendered by default.

239 changes: 238 additions & 1 deletion bindings/src/bindings/i_tangle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11389,6 +11389,7 @@ interface ITangle {
function updateBlueprint(uint64 blueprintId, string memory metadataUri, bytes32 metadataHash) external;
function updateOperatorPreferences(uint64 blueprintId, bytes memory ecdsaPublicKey, string memory rpcAddress) external;
function withdrawRemainingEscrow(uint64 serviceId) external;
function withdrawRemainingEscrowTo(uint64 serviceId, address payable to) external;
}
```

Expand Down Expand Up @@ -14988,6 +14989,24 @@ interface ITangle {
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "withdrawRemainingEscrowTo",
"inputs": [
{
"name": "serviceId",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "to",
"type": "address",
"internalType": "address payable"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "event",
"name": "BlueprintCreated",
Expand Down Expand Up @@ -34040,6 +34059,170 @@ function withdrawRemainingEscrow(uint64 serviceId) external;
}
}
};
#[derive(serde::Serialize, serde::Deserialize)]
#[derive(Default, Debug, PartialEq, Eq, Hash)]
/**Function with signature `withdrawRemainingEscrowTo(uint64,address)` and selector `0x25d80f7d`.
```solidity
function withdrawRemainingEscrowTo(uint64 serviceId, address to) external;
```*/
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct withdrawRemainingEscrowToCall {
#[allow(missing_docs)]
pub serviceId: u64,
#[allow(missing_docs)]
pub to: alloy::sol_types::private::Address,
}
///Container type for the return parameters of the [`withdrawRemainingEscrowTo(uint64,address)`](withdrawRemainingEscrowToCall) function.
#[allow(non_camel_case_types, non_snake_case, clippy::pub_underscore_fields)]
#[derive(Clone)]
pub struct withdrawRemainingEscrowToReturn {}
#[allow(
non_camel_case_types,
non_snake_case,
clippy::pub_underscore_fields,
clippy::style
)]
const _: () = {
use alloy::sol_types as alloy_sol_types;
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = (
alloy::sol_types::sol_data::Uint<64>,
alloy::sol_types::sol_data::Address,
);
#[doc(hidden)]
type UnderlyingRustTuple<'a> = (u64, alloy::sol_types::private::Address);
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<withdrawRemainingEscrowToCall>
for UnderlyingRustTuple<'_> {
fn from(value: withdrawRemainingEscrowToCall) -> Self {
(value.serviceId, value.to)
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for withdrawRemainingEscrowToCall {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {
serviceId: tuple.0,
to: tuple.1,
}
}
}
}
{
#[doc(hidden)]
#[allow(dead_code)]
type UnderlyingSolTuple<'a> = ();
#[doc(hidden)]
type UnderlyingRustTuple<'a> = ();
#[cfg(test)]
#[allow(dead_code, unreachable_patterns)]
fn _type_assertion(
_t: alloy_sol_types::private::AssertTypeEq<UnderlyingRustTuple>,
) {
match _t {
alloy_sol_types::private::AssertTypeEq::<
<UnderlyingSolTuple as alloy_sol_types::SolType>::RustType,
>(_) => {}
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<withdrawRemainingEscrowToReturn>
for UnderlyingRustTuple<'_> {
fn from(value: withdrawRemainingEscrowToReturn) -> Self {
()
}
}
#[automatically_derived]
#[doc(hidden)]
impl ::core::convert::From<UnderlyingRustTuple<'_>>
for withdrawRemainingEscrowToReturn {
fn from(tuple: UnderlyingRustTuple<'_>) -> Self {
Self {}
}
}
}
impl withdrawRemainingEscrowToReturn {
fn _tokenize(
&self,
) -> <withdrawRemainingEscrowToCall as alloy_sol_types::SolCall>::ReturnToken<
'_,
> {
()
}
}
#[automatically_derived]
impl alloy_sol_types::SolCall for withdrawRemainingEscrowToCall {
type Parameters<'a> = (
alloy::sol_types::sol_data::Uint<64>,
alloy::sol_types::sol_data::Address,
);
type Token<'a> = <Self::Parameters<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
type Return = withdrawRemainingEscrowToReturn;
type ReturnTuple<'a> = ();
type ReturnToken<'a> = <Self::ReturnTuple<
'a,
> as alloy_sol_types::SolType>::Token<'a>;
const SIGNATURE: &'static str = "withdrawRemainingEscrowTo(uint64,address)";
const SELECTOR: [u8; 4] = [37u8, 216u8, 15u8, 125u8];
#[inline]
fn new<'a>(
tuple: <Self::Parameters<'a> as alloy_sol_types::SolType>::RustType,
) -> Self {
tuple.into()
}
#[inline]
fn tokenize(&self) -> Self::Token<'_> {
(
<alloy::sol_types::sol_data::Uint<
64,
> as alloy_sol_types::SolType>::tokenize(&self.serviceId),
<alloy::sol_types::sol_data::Address as alloy_sol_types::SolType>::tokenize(
&self.to,
),
)
}
#[inline]
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_> {
withdrawRemainingEscrowToReturn::_tokenize(ret)
}
#[inline]
fn abi_decode_returns(data: &[u8]) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence(data)
.map(Into::into)
}
#[inline]
fn abi_decode_returns_validate(
data: &[u8],
) -> alloy_sol_types::Result<Self::Return> {
<Self::ReturnTuple<
'_,
> as alloy_sol_types::SolType>::abi_decode_sequence_validate(data)
.map(Into::into)
}
}
};
///Container for all the [`ITangle`](self) function calls.
#[derive(Clone)]
#[derive(serde::Serialize, serde::Deserialize)]
Expand Down Expand Up @@ -34225,6 +34408,8 @@ function withdrawRemainingEscrow(uint64 serviceId) external;
updateOperatorPreferences(updateOperatorPreferencesCall),
#[allow(missing_docs)]
withdrawRemainingEscrow(withdrawRemainingEscrowCall),
#[allow(missing_docs)]
withdrawRemainingEscrowTo(withdrawRemainingEscrowToCall),
}
impl ITangleCalls {
/// All the selectors of this enum.
Expand All @@ -34242,6 +34427,7 @@ function withdrawRemainingEscrow(uint64 serviceId) external;
[19u8, 211u8, 106u8, 102u8],
[24u8, 12u8, 174u8, 103u8],
[24u8, 198u8, 128u8, 23u8],
[37u8, 216u8, 15u8, 125u8],
[39u8, 179u8, 117u8, 101u8],
[43u8, 157u8, 167u8, 26u8],
[45u8, 7u8, 230u8, 85u8],
Expand Down Expand Up @@ -34335,6 +34521,7 @@ function withdrawRemainingEscrow(uint64 serviceId) external;
::core::stringify!(terminateServiceForNonPayment),
::core::stringify!(getOperatorPublicKey),
::core::stringify!(preRegister),
::core::stringify!(withdrawRemainingEscrowTo),
::core::stringify!(canScheduleExit),
::core::stringify!(joinService),
::core::stringify!(submitResult),
Expand Down Expand Up @@ -34428,6 +34615,7 @@ function withdrawRemainingEscrow(uint64 serviceId) external;
<terminateServiceForNonPaymentCall as alloy_sol_types::SolCall>::SIGNATURE,
<getOperatorPublicKeyCall as alloy_sol_types::SolCall>::SIGNATURE,
<preRegisterCall as alloy_sol_types::SolCall>::SIGNATURE,
<withdrawRemainingEscrowToCall as alloy_sol_types::SolCall>::SIGNATURE,
<canScheduleExitCall as alloy_sol_types::SolCall>::SIGNATURE,
<joinServiceCall as alloy_sol_types::SolCall>::SIGNATURE,
<submitResultCall as alloy_sol_types::SolCall>::SIGNATURE,
Expand Down Expand Up @@ -34536,7 +34724,7 @@ function withdrawRemainingEscrow(uint64 serviceId) external;
impl alloy_sol_types::SolInterface for ITangleCalls {
const NAME: &'static str = "ITangleCalls";
const MIN_DATA_LENGTH: usize = 0usize;
const COUNT: usize = 90usize;
const COUNT: usize = 91usize;
#[inline]
fn selector(&self) -> [u8; 4] {
match self {
Expand Down Expand Up @@ -34810,6 +34998,9 @@ function withdrawRemainingEscrow(uint64 serviceId) external;
Self::withdrawRemainingEscrow(_) => {
<withdrawRemainingEscrowCall as alloy_sol_types::SolCall>::SELECTOR
}
Self::withdrawRemainingEscrowTo(_) => {
<withdrawRemainingEscrowToCall as alloy_sol_types::SolCall>::SELECTOR
}
}
}
#[inline]
Expand Down Expand Up @@ -34915,6 +35106,17 @@ function withdrawRemainingEscrow(uint64 serviceId) external;
}
preRegister
},
{
fn withdrawRemainingEscrowTo(
data: &[u8],
) -> alloy_sol_types::Result<ITangleCalls> {
<withdrawRemainingEscrowToCall as alloy_sol_types::SolCall>::abi_decode_raw(
data,
)
.map(ITangleCalls::withdrawRemainingEscrowTo)
}
withdrawRemainingEscrowTo
},
{
fn canScheduleExit(
data: &[u8],
Expand Down Expand Up @@ -35911,6 +36113,17 @@ function withdrawRemainingEscrow(uint64 serviceId) external;
}
preRegister
},
{
fn withdrawRemainingEscrowTo(
data: &[u8],
) -> alloy_sol_types::Result<ITangleCalls> {
<withdrawRemainingEscrowToCall as alloy_sol_types::SolCall>::abi_decode_raw_validate(
data,
)
.map(ITangleCalls::withdrawRemainingEscrowTo)
}
withdrawRemainingEscrowTo
},
{
fn canScheduleExit(
data: &[u8],
Expand Down Expand Up @@ -37257,6 +37470,11 @@ function withdrawRemainingEscrow(uint64 serviceId) external;
inner,
)
}
Self::withdrawRemainingEscrowTo(inner) => {
<withdrawRemainingEscrowToCall as alloy_sol_types::SolCall>::abi_encoded_size(
inner,
)
}
}
}
#[inline]
Expand Down Expand Up @@ -37802,6 +38020,12 @@ function withdrawRemainingEscrow(uint64 serviceId) external;
out,
)
}
Self::withdrawRemainingEscrowTo(inner) => {
<withdrawRemainingEscrowToCall as alloy_sol_types::SolCall>::abi_encode_raw(
inner,
out,
)
}
}
}
}
Expand Down Expand Up @@ -39730,6 +39954,19 @@ the bytecode concatenated with the constructor's ABI-encoded arguments.*/
},
)
}
///Creates a new call builder for the [`withdrawRemainingEscrowTo`] function.
pub fn withdrawRemainingEscrowTo(
&self,
serviceId: u64,
to: alloy::sol_types::private::Address,
) -> alloy_contract::SolCallBuilder<&P, withdrawRemainingEscrowToCall, N> {
self.call_builder(
&withdrawRemainingEscrowToCall {
serviceId,
to,
},
)
}
}
/// Event filters.
impl<
Expand Down
Loading
Loading