Type
CONTRACT
Validation date
2023-12-03 13:19:12 UTC
Fee
0 UCO

Code (307 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) == 0x00008dd22e7496e86901e9b276a1be6f9512eb09980cc04c7b76495ef37d5666a709
	)
]

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 (221 B)

{
  "charged_contracts": {
    "97": {
      "0x4d13822d4bde4fe203e4647088341414b819c822": 1701614940,
      "0xaeb6865782acf391110c34504760749a53164d5c": 1701616620,
      "0xe67064a556265dabb6f808ef1706b5e280750ff9": 1701616140
    }
  },
  "requested_secrets": {}
}

State (0 B)

Movements (0)

Ownerships (1)

  • Secret shared with 1 key

    Encoded secret

    D22E78E292B881AC662A79BDF620211297EE94FA96E4760B21ED91CE149257F91AFA3AAAAF7169C13E4DDEAAB7CA75E922A51D474AC5551EA26B2397

    Authorized keys

    • 00017877BCF4122095926A49489009649603AB129822A19EF9D573B8FD714911ED7F

Contract recipients (0)

Inputs (0)

Contract inputs (0)

Unspent outputs (1)

Proofs and signatures

Previous public key

0001B649A72645EE7A2B7CD99363C1F4C5A2A73E72712B4176A0F95E6FE1409F7FAB

Previous signature

1D76155837A8E991CC50C4FB7F864B6691C0FC1B3A7CB0EBC0DF5B7C972D1D9048DDE2D68C587359A37DD6723FEBAA86DC904A6FC1A0B94EC1AC21576DFD8B0D

Origin signature

304402200694ACD7526617AC26860D08F62B79D691FC79208186A9BBC9D2EF5893943B650220527F8A48BF7300A048A65330FAAEEF9E5AE6B5CF710246B206F961BE0061EC12

Proof of work

010204892A04DBE05192BCB662689E7E19700F3F7202028EF0A9F20635C4948436ED85A43BA3017281EE97781342DD8F24ED6F583B5FE542830FDB5191A11843A72A61

Proof of integrity

008340784FC3C4DA2B5DAE0785BE4AEF88EC6596EDE9980D7BA545861DB2629F74

Coordinator signature

15D0EA93FDFDA5896AAFED2946E09B8E885EFC75F11469C198DEEC6FED604B86F266731F9F9DC1E12D46E24170C9ACE5C5B9AF8BBC66B975C707E3C14933D30A

Validator #1 public key

0001B0A94804BF8ECC9897075C6207FF63EF4D339F57A0349888E6B77CD47DB53EF3

Validator #1 signature

C9C05617317BF3811985D3E96D6FC451E3E2CF9F9157AE0327BA8B4D5ACDC25B677852FD6F0CB93CF49054C305B63D23E49F922573539B0E21E1821998FD390A

Validator #2 public key

000151C124A6211CD402FD1CFE560C5DB51ED0CBEF44B09B21A41206028E7E5942BF

Validator #2 signature

F0C15440B55E02362454C79D6815A35DA20A389D4367B66A89E4F22E5C3294D9A6FF3828FE881012DAD05E130B472D9E71FAC428889C274D2E00CA0666F50E0B