Type
CONTRACT
Validation date
2023-10-19 20:53:29 UTC
Fee
0.82463918 UCO

Code (565 B)

@version 1

# Automate the refunding after the given timestamp
actions triggered_by: datetime, at: 1697755980 do
  Contract.set_type "transfer"
  # Burn the non withdrawed tokens
  Contract.add_token_transfer to: 0x00000000000000000000000000000000000000000000000000000000000000000000, amount: 0.4975, token_address: 0x00003DF600E329199BF3EE8FBE2B8223413D70BCDD97E15089E6A74D94DE3F1173B4

  Contract.set_code ""
end

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

actions triggered_by: transaction, on: refund() do
  Contract.set_type "transfer"
  # Burn the non withdrawed tokens
  Contract.add_token_transfer to: 0x00000000000000000000000000000000000000000000000000000000000000000000, amount: 0.4975, token_address: 0x00003DF600E329199BF3EE8FBE2B8223413D70BCDD97E15089E6A74D94DE3F1173B4

  Contract.set_code ""
end

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

actions triggered_by: transaction, on: reveal_secret(secret) do
  Contract.set_type "transfer"
  Contract.add_token_transfer to: 0x00007D1163F2AEA7B80362450AB96D837F5A698980E2FCC0ABE1CDB01D9B7F0D2273, amount: 0.4960075, token_address: 0x00003DF600E329199BF3EE8FBE2B8223413D70BCDD97E15089E6A74D94DE3F1173B4
  Contract.add_token_transfer to: 0x0000749d250560bf06c079832e0e9a24509b1e440a45c33bd9448b41b6a056fc6201, amount: 0.0014925, token_address: 0x00003DF600E329199BF3EE8FBE2B8223413D70BCDD97E15089E6A74D94DE3F1173B4

  Contract.set_code ""
end

Content (0 B)

State (0 B)

Movements (0)

Ownerships (1)

  • Secret shared with 1 key

    Encoded secret

    31B40342A81A4C6AACA916FF9D23E113B23B4AF850D3F97BCC7633DF3F26975EFADEFB1BBAFF185D95160750DC696043D896FF2205289E27EAC98252

    Authorized keys

    • 00017877BCF4122095926A49489009649603AB129822A19EF9D573B8FD714911ED7F

Contract recipients (1)

Inputs (0)

Contract inputs (0)

Unspent outputs (1)

Proofs and signatures

Previous public key

00010FE5678A83BB1E3C6773055EE68EC33EACF34D3FCF4C002421A36EC80BF5FAB9

Previous signature

BA77A4EAEC2652AE065B1AAEB087ACACDB2DE6EBC4AAF207A6365893AE7D201899A7698D17A06D404B84FBC2F80DD89C98C1F56BEB9A64EA34A0C97588636307

Origin signature

30440220416BF1CD4D744B22232E4E019566F654C07ABAC89A85D295F03D7A834B3E261A0220077427993110E00D59A55AC5EA84CA48485352141DF84ABBCA5CFE7AB57FEB6F

Proof of work

010104AB41291F847A601055AEDD1AF24FF76FA970D6441E2DCA3818A8319B004C96B27B8FEB1DA31A044BA0A4800B4353359735719EBB3A05F98393A9CC599C3FAFD6

Proof of integrity

003682D6DD8FE99879C6E513F72365A1F3F20478AE535696BF3E8B33473AD9A3CB

Coordinator signature

B219ACF8BBDCB5E756F9665374654EBFBD3231F7D15746BCD6157E2FD579607DC9DE0D20148CC3B54373B858B180E43403B04D3D81692B14DD75FAB0A5E1630F

Validator #1 public key

00018A312AFA617E98B343D09AD2E73F0AB661DB0A59FB986D5DB8CE7664E14C25FC

Validator #1 signature

34A59DA1B5D78EDE003F611AD8DF4FFEDCF56F12FA845C519533EC709C9B39A8D1DE7C04107931A1312950B2581A0AE20D28BEA01340B56473E630166249C405

Validator #2 public key

0001500FBE298B79FFBDD5CCA1798F30FD88A53D26EC39DE5DDE1F4137B032A4BC34

Validator #2 signature

1D19EDE2E926D1DD1C6CE5B74BF9A08A14DF1AE0195677567C03BFE582BAB15B48DA822796512B72EF7A48BFAAF2557739DB1CB6FF5F6D956EB77AAE6F077C0B