Skip to content

Commit fdc890b

Browse files
authored
bindings: regenerate for unified approveService (v0.11.0) (#120)
Regen via `cargo xtask gen-bindings` against the post-PR-#119 contracts: the unified `approveService(Types.ApprovalParams)` entrypoint, dropped `approveServiceWith*` matrix, and root-storage TEE commitments (`getTeeCommitmentRoot` view, `TeeCommitmentsRecorded` event with full array payload). Bump tnt-core-bindings 0.10.9 → 0.11.0 (BREAKING — selector list shrank 10 → 6, struct types changed, multiple methods removed). Tag `bindings-v0.11.0` triggers the crates.io publish workflow.
1 parent 5c28b25 commit fdc890b

13 files changed

Lines changed: 5271 additions & 2995 deletions

bindings/CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,30 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.11.0] - 2026-05-05
11+
12+
### Changed (BREAKING)
13+
14+
- Unified `approveService` entrypoint replaces five `approveServiceWith*` variants
15+
(tnt-core PR #119). The new ABI takes a single `Types.ApprovalParams` tuple
16+
carrying `requestId`, `securityCommitments`, `blsPubkey`, `blsPopSignature`,
17+
`teeCommitments`. Empty / zero fields opt out of the corresponding capability.
18+
- TEE commitment storage moves from `TeeAttestationCommitment[]` arrays to a
19+
single keccak256 root per `(serviceId, operator)`. The `getTeeCommitment` view
20+
is replaced by `getTeeCommitmentRoot(serviceId, operator) -> bytes32`. Slashers
21+
/ provisioning oracles supply the original commitment array as a witness and
22+
verify keccak match against the on-chain root.
23+
- New event `TeeCommitmentsRecorded(requestId, operator, root, commitments)`
24+
emits the full commitment array for indexer reconstruction.
25+
- Selector list on `TangleServicesFacet` shrinks from 10 → 6.
26+
27+
### Added
28+
29+
- `Types.ApprovalParams` struct exposed via the generated bindings.
30+
- `teeNonceFor(uint64 requestId) -> bytes32` view: canonical
31+
`keccak256(abi.encode("tangle.tee.nonce", requestId, address(this), block.chainid))`
32+
that operators MUST set as `TeeAttestationCommitment.nonceBinding`.
33+
1034
## [0.10.9] - 2026-04-23
1135

1236
### Changed

bindings/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tnt-core-bindings"
3-
version = "0.10.9"
3+
version = "0.11.0"
44
edition = "2021"
55
rust-version = "1.81"
66
description = "Rust bindings for TNT Core Solidity contracts (Tangle staking protocol)"

bindings/TNT_CORE_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3c6a17ac24bfc1cb3c757bd6c327aee690f4ddde
1+
5c28b2584adca992067a2b0fe695be61806086b0

bindings/abi/IBlueprintServiceManager.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

bindings/abi/IMultiAssetDelegation.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

bindings/abi/ITangle.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

bindings/abi/ITangleFull.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

bindings/abi/ITangleSlashing.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

bindings/abi/MultiAssetDelegation.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

bindings/abi/OperatorStatusRegistry.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)