wormhole-trait-export-v1.clar 517 B

12345678910111213141516
  1. ;; This is for transferring the state of `wormhole-core` during updates
  2. ;; This does not cover `wormhole-core-state`, which cannot be updated
  3. (define-trait export-trait
  4. (
  5. ;; Returns current state of `wormhole-core` and deactivates contract
  6. ;; Fails if caller is not successor contract
  7. (export-state () (response {
  8. active-guardian-set-id: (optional uint),
  9. previous-guardian-set: (optional {
  10. set-id: uint,
  11. expires-at: uint
  12. }),
  13. message-fee: uint,
  14. } uint))
  15. )
  16. )