Release notes
2.8.1
Maintenance release following 2.8.0. The Java renderer API, XML binding namespace, and packaged XML schemas are unchanged.
ERC-8100 and npm documentation
- Use
@finmath.net/representable-contract-stateconsistently as the published npm package name, with installation and Solidity import examples. - Update runnable examples to Maven release 2.8.1 and correct the source-download
tag names to
representable-contract-state-2.8.1. - Refresh the local ERC-8100 specification copy, including the optional
ITextResourceandTextResourcereference implementations. - Clarify that npm and Maven versions are independent. The published npm
package documented here is
0.3.0; this Maven release does not publish npm artifacts.
Solidity compatibility
TextResource.ChunkAppended now indexes chunkIndex, alongside sender and
pointer, matching the ERC-8100 development source. chunkLength remains in
the event data. The event signature hash is unchanged, but its topic/data layout
differs from the sources in repository release 2.8.0 and npm release 0.3.0.
Event consumers must use the ABI corresponding to the deployed contract.
Existing deployments retain their original event layout. Resource getters and
XML rendering are unaffected.
FX atomic swap example
- Canceling a trade now revokes its unused settlement authorization in the shared router. Cancellation moves no tokens and preserves allowances for other swaps.
- The example settlement interface adds
cancelAtomicSwap(). Custom routers used with the updated example must implement it; use matching swap and router sources. - Clarify the requirement for tokens that transfer exactly the requested amount; fee-on-transfer and rebasing tokens are outside the example's scope.
- Add regression tests covering cancellation, settlement, authorization, token failures, reentrancy, and both trade directions.
See the Solidity package guide and the FX atomic swap walkthrough.
