@version 1
# Automate the refunding after the given timestamp
actions triggered_by: datetime, at: 1697756100 do
Contract.set_type "transfer"
# Send back UCO to bridge pool
Contract.add_uco_transfer to: 0x000018D60115ECE0C7558A46B4693749BF6BEAB524FDDCCF9B10B910619E4EE08801, amount: 49.75
Contract.set_code ""
end
condition triggered_by: transaction, on: refund(), as: [
timestamp: timestamp >= 1697756100
]
actions triggered_by: transaction, on: refund() do
Contract.set_type "transfer"
# Send back UCO to bridge pool
Contract.add_uco_transfer to: 0x000018D60115ECE0C7558A46B4693749BF6BEAB524FDDCCF9B10B910619E4EE08801, amount: 49.75
Contract.set_code ""
end
condition triggered_by: transaction, on: reveal_secret(secret), as: [
timestamp: transaction.timestamp < 1697756100,
content: Crypto.hash(String.to_hex(secret)) == 0xA252AF7B4315FB776C860EC30E3C2C1106D103EE673BC922C4C26E5F4990A08A,
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: 49.60075
Contract.add_uco_transfer to: 0x0000749d250560bf06c079832e0e9a24509b1e440a45c33bd9448b41b6a056fc6201, amount: 0.14925
Contract.set_code ""
end
Content (0 B)
State (0 B)
-
Secret shared with 1 key
Encoded secret
8EA94C4E34E1D44EB507F47B38077FB921BF5EE994FAEBDBF98878AC012F63D74400379BCC238309192695712FED6AB06C80B67768E61135AC2631B8
Authorized keys
- 00017877BCF4122095926A49489009649603AB129822A19EF9D573B8FD714911ED7F
-
Resolved 0000DCC9...4E75request_funds
[ 1697756100, 49.75, "00007d1163f2aea7b80362450ab96d837f5a698980e2fcc0abe1cdb01d9b7f0d2273", "a252af7b4315fb776c860ec30e3c2c1106d103ee673bc922c4c26e5f4990a08a" ]
Inputs (0)
Contract inputs (0)
Unspent outputs (1)
-
From 0000ECF2...BB1AAt 2023-10-19 20:55:49 UTCAmount 0.28794234 UCO
Previous public key
0001351CDB46FE2F997E0E1BE28472FA937A7F278B0FC643D035476AA8FAE3EF591F
Previous signature
A0BB8852F2ED80D6A84529E64B382876ECBFC4075247FC3A380BC6EC5326A74E067382FC75BFDB98F6F10BADD08F86E5BEA2AD2B8F50F09292BB330E698A6803
Origin signature
304402207F743C42CEB9EEE3B55834D7C16EDD64814F04975A3F17843CDC176A9B76FCE402204AEB2BB24F1C1ED3417D9C1D0CABC17F7740BBD4C564B6AB2DFC382F39C06230
Proof of work
010104AB41291F847A601055AEDD1AF24FF76FA970D6441E2DCA3818A8319B004C96B27B8FEB1DA31A044BA0A4800B4353359735719EBB3A05F98393A9CC599C3FAFD6
Proof of integrity
009C40F14C39BA5D39ECA4733723B8DF78D9CEFC8F3C092E6A74B10E3CBCCEE6E9
Coordinator signature
0C279771005261C7902E75AFEDA6567DA78F6502151481BA99EE681F5097D3C8B2EF4BDEBDA9E30A7D59BF9166E75FAF5C79E921BB639568D6FF795FD637E000
Validator #1 public key
0001500FBE298B79FFBDD5CCA1798F30FD88A53D26EC39DE5DDE1F4137B032A4BC34
Validator #1 signature
93A9E9FA5CB4083D6E0CDF4AEAB79B4BFBF1C3F73E5D7F1FC599333C9D42D88785F8C766AFB108D13AFC6C042706B8D75F399BD00F772208AD4A3990C293CD05
Validator #2 public key
00018A312AFA617E98B343D09AD2E73F0AB661DB0A59FB986D5DB8CE7664E14C25FC
Validator #2 signature
7548C7ED776B25C430ED4E34E79FEF7AB9E10392670910F2385664D50DA21651BF4B81BF7BD8D6193777275F39C0892ED8E3A961AE5DDE75E8CF7C73FE9E450D