Type
CONTRACT
Validation date
2023-10-20 14:22:36 UTC
Fee
0.84749388 UCO

Code (569 B)

@version 1

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

  Contract.set_code ""
end

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

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

  Contract.set_code ""
end

condition triggered_by: transaction, on: reveal_secret(secret), as: [
  timestamp: transaction.timestamp < 1697818920,
  content: Crypto.hash(String.to_hex(secret)) == 0x9A5F88DA9652F592C25CDCE66FB5D3601B4005F1F0B383CE92F7B187FC7CA8D9,
  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.00198403, token_address: 0x00001A4AB7AD0CE2B494C965C66FF2962692A5FE5ECB71B345ABB53BAD88A83A01F1
  Contract.add_token_transfer to: 0x0000749d250560bf06c079832e0e9a24509b1e440a45c33bd9448b41b6a056fc6201, amount: 5.97e-6, token_address: 0x00001A4AB7AD0CE2B494C965C66FF2962692A5FE5ECB71B345ABB53BAD88A83A01F1

  Contract.set_code ""
end

Content (0 B)

State (0 B)

Movements (0)

Ownerships (1)

  • Secret shared with 1 key

    Encoded secret

    96865E5E22CA06C770EC07C0B6C0CB56FFCF1E765DDEA0D8051884678AA98F15F1496F44D189EF383D1CF5C34B5BDF882FDE3B30E299BEEE568E1906

    Authorized keys

    • 00017877BCF4122095926A49489009649603AB129822A19EF9D573B8FD714911ED7F

Contract recipients (1)

Inputs (0)

Contract inputs (0)

Unspent outputs (1)

Proofs and signatures

Previous public key

00014D0E8EDFD6F9709691DBAC957BDAD75BF8C162BA49A6FD0ACD9FF50BB349C428

Previous signature

ACC1A13E61C5D9F5C9DC024AF7DBCD5C255D00D5D2D4A7429EB426A09E0F2A8A1536C8A1D563D5BB09E3230DEB3C1B0AB8E9E681D2AC05CD88D07399E400610C

Origin signature

3045022100E4D22EBC03B5B152ABA282718C4BCB4D6A81BD1E2F44B7C53B829B71A3BD2E6C0220232C7E7225706262221872A17BB02CFBFEFF4FB5910A6A654558FAE614EBB73E

Proof of work

010104AB41291F847A601055AEDD1AF24FF76FA970D6441E2DCA3818A8319B004C96B27B8FEB1DA31A044BA0A4800B4353359735719EBB3A05F98393A9CC599C3FAFD6

Proof of integrity

00B425A163A0F7BE1776A9BD37994D76E8EF82A271EC6079CAE27AEDF71900FB30

Coordinator signature

F5A1807B2B3D8257533BFAF824E08B781FAFD0F677B5326838439997A6FA3ADBC20F61BC9A7791D631A87964910D5F36F78986529E97A6BA69F97D405A4B5B0B

Validator #1 public key

0001500FBE298B79FFBDD5CCA1798F30FD88A53D26EC39DE5DDE1F4137B032A4BC34

Validator #1 signature

D0283A24C905B92E9E1189D6991928F5BF1DAA81DE91AA370F7290DF38C8B3565675D4644470D857E42A64EDA7586A59FAF8CBBE5E6EE219E7C12D4BA517210F

Validator #2 public key

00018A312AFA617E98B343D09AD2E73F0AB661DB0A59FB986D5DB8CE7664E14C25FC

Validator #2 signature

DB5A3FEDDDFAE7A10B371AC3E267804BD985DFBDF67B85FD4DC7FD36D23A8DB123480449075096EF23CBB66D7413EE7795ACA8B52C3E77F0DAD2149D17E90F00