Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[example/escrow] Port escrow.move (#13606)
## Description Original: ./sui_programmability/examples/defi/sources/escrow.move Porting and modernising example used in "object wrapping" documentation, with the following changes: - Moved into an isolated move package. - Remove use of `public entry` - Add unit tests that will get run during CI. The modernised example also addresses the TODO in the original where one party can commit to a trade believing they are getting one object, only to have that object modified (and therefore made less valuable). This is done by adding a new phase to the swap where parties lock the object they are going to transfer. See comments in the example for how this is done while preserving safety and liveness at all stages. ## Test Plan New unit tests: ``` sui-move$ sui move test -p escrow ```
- Loading branch information