Type
CONTRACT
Validation date
2023-12-07 13:32:11 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": {
      "0x117ff9ed8a21dafda5acd04be1c353128203520c": 1701957000,
      "0x11ed55ed009dfd7c99df27522349ab6e25fe836b": 1701959760,
      "0x40dc52114032aa8079821e3ed4a84394914f7e0d": 1701962700,
      "0x543dc0c1e754ccb4ad16a9bdf39bf5623700c36d": 1701957960,
      "0xc376b8533d0fa52a3054f6b52b6dd036db05fe41": 1701958860
    }
  },
  "requested_secrets": {}
}

State (0 B)

Movements (0)

Ownerships (1)

  • Secret shared with 1 key

    Encoded secret

    637F0E17D40E933DDBDBD17ABA81F941C721667DC2640E1777ABB691537A444FBA26717A1965D7A663694B4CD73DEB0B6DBB7526B1B78AB7598D326F

    Authorized keys

    • 00017877BCF4122095926A49489009649603AB129822A19EF9D573B8FD714911ED7F

Contract recipients (0)

Inputs (0)

Contract inputs (0)

Unspent outputs (1)

Proofs and signatures

Previous public key

000146E6C7282C9AD296D722F4CAEDE1246A546E19C4880584331127C3FA8E506F44

Previous signature

5D1DD75490B261233C64587533E963152FC1DE8A1CA23770DB245D74C38D638C4F683A0298A3D773A60BD1105A1AF13787E893684A5DB15AA24BFA56BD7AD304

Origin signature

304502202B2F0DD1F49C79C1FF7A147917DEF13C3B23D4939C4BE16E8F7A9147711CB32802210082F5C83638BF7A7ACECD570EC20247C024C4C3E5710DC2FBD8344D3D3C94CE7F

Proof of work

010204D6052E0C6CA9244CDE5F3D664296BDFBA0090B330404C3C16B098758F27965DFEC0D3F25D1365F389C2B6C516195552F8779DEE0796C8C33F1A9C0404F4E3381

Proof of integrity

00D75F1272B79D50146277B1584DEDCBF526D6703A813773573893DE0C0E6FC593

Coordinator signature

1433B392CC6CFF4A114991B4A1ED65293920A0A1753FA5A6B6667EA029AA977EA6F4AEAD4B30733EFFD4FB7CCD93398BFD7620483BAB0C563D9D33EE2901D70E

Validator #1 public key

0001B0A94804BF8ECC9897075C6207FF63EF4D339F57A0349888E6B77CD47DB53EF3

Validator #1 signature

D7BF72B49F61432D7AE04F894C834D8E9F3D87468ABC04B5BA6EF154DABB92534C80495EC40946CD964D9C8F08B22F953015A0F4CE469F8F91257F1EB75C0D00

Validator #2 public key

000151C124A6211CD402FD1CFE560C5DB51ED0CBEF44B09B21A41206028E7E5942BF

Validator #2 signature

0910CC8AE2EC214594AA525DDCD7B723C741A4391F13C242CC1BC69F2F4381B149386E419C178959BA398FD5C1F72E3F146D950F3B500CAEFDEDA878C97BEF00