Type
CONTRACT
Validation date
2023-12-06 09:43:16 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 (333 B)

{
  "charged_contracts": {
    "97": {
      "0x92078a37088f26e8a54fe334d6653ff3f30feae6": 1701862620,
      "0xc7c8c9bbff72d5a65623f79a8f9d2600c2e3da98": 1701857040,
      "0xd61e26a9a1a066115cc0d391f1fe230f043b648a": 1701856500,
      "0xd9162b24957aa9084a479a5a4da815c302d545e8": 1701860340,
      "0xe7d333bc78803b0feb7f402c648ec6976028a556": 1701856140
    }
  },
  "requested_secrets": {}
}

State (0 B)

Movements (0)

Ownerships (1)

  • Secret shared with 1 key

    Encoded secret

    BAB78BC8E76BBB553BBFFAE4898AB3886E76071251FD33A8D6C475DCD0985C1706539E0B2AE2F7BEA97A1A56571484814FFC03DC16FDFD432C512ECB

    Authorized keys

    • 00017877BCF4122095926A49489009649603AB129822A19EF9D573B8FD714911ED7F

Contract recipients (0)

Inputs (0)

Contract inputs (0)

Unspent outputs (1)

Proofs and signatures

Previous public key

0001AD36D369013F24EDD62FCE760FE6F37C005C1F8EB43113B888A6A51AC2EFE4FD

Previous signature

9266B93034AB0B609FC685C0BF6817BD8D2BD1B3692713E74BBF666C2EC72445B8B0B6DE25F3DD31BDD14612B2BEFC4C306B90D527B530353AA67C30221D460C

Origin signature

30460221009CBDEFF4F6D039B8BD74CCFED38DEA3F36867ACB508F9B0F8D5EE3BD015AE0A1022100C5337C246F444FB76DE1B754111DB436F579506C919C051649752E11A9EBAAF7

Proof of work

010204892A04DBE05192BCB662689E7E19700F3F7202028EF0A9F20635C4948436ED85A43BA3017281EE97781342DD8F24ED6F583B5FE542830FDB5191A11843A72A61

Proof of integrity

001975CEFBA96753F65418939DDA4A4B7FF5011E120B64D92B3C47750DCE1E81F9

Coordinator signature

810CF823ACC005F85B3CE721C48CE92930D9F7D3BC0DCE35CB6024A83203716085373BF5EFEB2C1E545B45CA3FF5CD4AE3BFE9FA9E716693A06E29EA27922302

Validator #1 public key

000151C124A6211CD402FD1CFE560C5DB51ED0CBEF44B09B21A41206028E7E5942BF

Validator #1 signature

685671F7CFBCAEC5F5B7EA22113E863EFBC87B8063332EFF01BAAE0B3077F32EE858C244B6A4BB2E701F93F88D92906E6EFDD9B32F3FEC68A62C5938DB688203

Validator #2 public key

0001B0A94804BF8ECC9897075C6207FF63EF4D339F57A0349888E6B77CD47DB53EF3

Validator #2 signature

D214175F263AFB8FD1DDE3153F4041362CBC7728949F9C78E78BD393A468B2AE4B957EFE4E93A3B8E41A3A400AE4F367859737AB2C32F79C37EC42B5B813AF07