Type
CONTRACT
Validation date
2023-12-22 13:40:10 UTC
Fee
0 UCO

Code (306 B)

@version 1

condition triggered_by: transaction, on: update_state(_state), as: [
  previous_public_key: (
		# Transaction is not yet validated so we need to use previous address
		# to get the genesis address
		previous_address = Chain.get_previous_address()
		Chain.get_genesis_address(previous_address) == 0x000066706d704329ca8c2a4153991e2ddacc968622ca10217ca14952eb7abb966c30
	)
]

actions triggered_by: transaction, on: update_state(state) do
  Contract.set_content Json.to_string(state)
end

export fun get_state() do
  Json.parse(contract.content)
end

Content (115 B)

{
  "charged_contracts": {
    "11155111": {
      "0xa26ad734ab6c820c57824143174e59b04d7358b9": 1703259360
    }
  },
  "requested_secrets": {}
}

State (0 B)

Movements (0)

Ownerships (1)

  • Secret shared with 1 key

    Encoded secret

    B9A64CC49407B8F5B39964F23EBA038B4B9FCFAC5240345CE91300AC278E4B7A8E4CA792CC3E38D9CAAF9A3C613B3B2B2B55BC63447F776666C3F45F

    Authorized keys

    • 00017877BCF4122095926A49489009649603AB129822A19EF9D573B8FD714911ED7F

Contract recipients (0)

Inputs (0)

Contract inputs (0)

Unspent outputs (1)

Proofs and signatures

Previous public key

000195E500D4C8535DB8E0FA7C5AC239D6432BC28300912165A0BD96217F97D63C42

Previous signature

86F5077423A56E18ADDB82C7583E65B4B2968D8546173A45BBF8CC5C07A6BF2FB918FA102F68C37446E5375B28950946BA12C2723F6D90FFCFDC15AC518B9F0B

Origin signature

30450220400BA8602A20223E635A9E1AC9FB589DCDDCF58CF4B7CC197248897DD939DA5D022100FB3AA0B6AF8B8A34ED197A201DB955226F2CE90A4CC55B9775F4A26A75D44949

Proof of work

01010484B78F4110D8E9D6FBEC72759895CC9D4532177314FBAA8B07BC525FC1AF48F150EFBF104B1819106B8E3563CD0E1FAAE5325F8FCFE58FF744C35F47669D2704

Proof of integrity

00F80C831532969AC2E0B0A48342FB5667E6FC3689A65D7B0370BFE0C5CB0103FB

Coordinator signature

C736219C5D83D865D43A0467F7B2E9A7803152E5BDF3109E893BE59D9A933D8BA48B8382F45620EA1BD7FB86C9C93643D7A63B81AF42AD98D0633A2AFB3A3F08

Validator #1 public key

0001B0A94804BF8ECC9897075C6207FF63EF4D339F57A0349888E6B77CD47DB53EF3

Validator #1 signature

B71981C6A556F84E9791343FB576DCDD9511C9329911CA83602E437EECF764D46494893EA0E9DB9DB768E8C945067B989CC76B0657DE71FB0B8CFFA88C6BA108