Type
CONTRACT
Validation date
2023-10-20 10:15:28 UTC
Fee
0.57716939 UCO

Code (557 B)

@version 1

# Automate the refunding after the given timestamp
actions triggered_by: datetime, at: 1697804040 do
  Contract.set_type "transfer"
  # Send back UCO to bridge pool
  Contract.add_uco_transfer to: 0x000018D60115ECE0C7558A46B4693749BF6BEAB524FDDCCF9B10B910619E4EE08801, amount: 29.85

  Contract.set_code ""
end

condition triggered_by: transaction, on: refund(), as: [
  timestamp: timestamp >= 1697804040
]

actions triggered_by: transaction, on: refund() do
  Contract.set_type "transfer"
  # Send back UCO to bridge pool
  Contract.add_uco_transfer to: 0x000018D60115ECE0C7558A46B4693749BF6BEAB524FDDCCF9B10B910619E4EE08801, amount: 29.85

  Contract.set_code ""
end

condition triggered_by: transaction, on: reveal_secret(secret), as: [
  timestamp: transaction.timestamp < 1697804040,
  content: Crypto.hash(String.to_hex(secret)) == 0x633104CDB40F898A54BF23FF55A3170C791E58A013A2C945EB38CA974C0D4913,
  address: (
    # Here ensure withdraw is done on ethereum
    true
  )
]

actions triggered_by: transaction, on: reveal_secret(secret) do
  Contract.set_type "transfer"
  Contract.add_uco_transfer to: 0x00007D1163F2AEA7B80362450AB96D837F5A698980E2FCC0ABE1CDB01D9B7F0D2273, amount: 29.76045
  Contract.add_uco_transfer to: 0x0000749d250560bf06c079832e0e9a24509b1e440a45c33bd9448b41b6a056fc6201, amount: 0.08955

  Contract.set_code ""
end

Content (0 B)

State (0 B)

Movements (0)

Ownerships (1)

  • Secret shared with 1 key

    Encoded secret

    AECFF93CB439C9261630D24C745C7A6B6472BEB946E7FE8340CFA8F4361A709BEF67E14A2E0D4AC77CE1F2FD853954A3FDCAADD11823B7F8C1D64D40

    Authorized keys

    • 00017877BCF4122095926A49489009649603AB129822A19EF9D573B8FD714911ED7F

Contract recipients (1)

Inputs (0)

Contract inputs (0)

Unspent outputs (1)

Proofs and signatures

Previous public key

0001B6A20712F86E180B54D89E4A34D225251079003B2C6739011AE3614FE80454D0

Previous signature

471F5924FA0A92A99ECC0560DCE6CA899B82B181A543BEF2567E9644D3A61A5F045A97C34BEB8402098C495065D37071DF3A0FDEEF8C501203ED67F3052CB209

Origin signature

30440220711F94C261517AC87DE83E8FC7E310252EDD9F23C2034F300F69D657FBE9A51D02201E8862E2E295FFB128A553D26420CBCE10AE9ACAC9C08955F4F893D91220D783

Proof of work

010104AB41291F847A601055AEDD1AF24FF76FA970D6441E2DCA3818A8319B004C96B27B8FEB1DA31A044BA0A4800B4353359735719EBB3A05F98393A9CC599C3FAFD6

Proof of integrity

009BE51F41FD12A280F9BEC53CCC15690FF11CF040758021AC07A7C8304854879E

Coordinator signature

B8CF66CE37109247BD5456235E04FBA9AF29AD0580F5FFFFFF157F01A44F3103279B9A1AE6E3F76D02E825398441EEBED9C5501E5DEA1B697B8605B9A4F29C0C

Validator #1 public key

0001500FBE298B79FFBDD5CCA1798F30FD88A53D26EC39DE5DDE1F4137B032A4BC34

Validator #1 signature

DAA39041E7C35A7E37CA45DA6706C911BAAC981DB177A80BA00ADF8870D119C7C75A6A3B0D5733CFF77766E97732AC0CC12674218A34D49FC1F5E31058505A0E

Validator #2 public key

00018A312AFA617E98B343D09AD2E73F0AB661DB0A59FB986D5DB8CE7664E14C25FC

Validator #2 signature

771B276293CC10A0DB9CDFEFE339D2120DEC73EA2D490AED89DBEA952B79BEF554406D7157E3913CC8DEC9E48AB4F5284DF441AB6AF5A627C911F4FEEE22F204