Skip to content

Conversation

@kamiyo-ai
Copy link

Example showing how to test time-locked escrows with Surfpool.

Files:

  • README.md
  • escrow-lifecycle.ts - create, release, dispute, expire
  • time-lock-scenarios.ts - boundary conditions, snapshots

Testing payment escrows normally means waiting for lock periods. This uses surfnet_advanceSlots to skip time.

surfpool
npx ts-node escrow-lifecycle.ts

@MicaiahReid
Copy link
Member

This is really cool, thanks @kamiyo-ai! I'll get this tested today. @lgalabru, thoughts on if this belongs here vs in the https://github.com/txtx/surfpool-examples repo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants