Type
CONTRACT
Validation date
2023-12-06 09:50:36 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,
      "0xe999fdbb6c7116a8c729bad00955dad25ddee2ce": 1701863340
    }
  },
  "requested_secrets": {}
}

State (0 B)

Movements (0)

Ownerships (1)

  • Secret shared with 1 key

    Encoded secret

    91EAFA444445BFB9A0CDCD9F462607B4B9FB6E6208C1D07095FC6B0B056DF97BDF0D82CC4F675316DC1BC8D5DAC9DB3A69371137D608D5C1668EA1A2

    Authorized keys

    • 00017877BCF4122095926A49489009649603AB129822A19EF9D573B8FD714911ED7F

Contract recipients (0)

Inputs (0)

Contract inputs (0)

Unspent outputs (1)

Proofs and signatures

Previous public key

0001699CAB84E5E01D464026C7F9D4C44047F7D95519E88A867E0B444B95A00D22E0

Previous signature

5595963AD63BAC73F65FC173262FE47B412AF7A2202AAAFC602C1B8895CA7C5ABF1BB68DD57FD26784C5C10B5248D11E116D54337C3D1D8CCC5297A9BD4F4609

Origin signature

3044022018EA35E1752058993E8AF34F3F751412DAD3782C48A79B00828B57D88F7A01B70220537AA251695685A08D9A3F731FFAFA763C6B7B99215EC7811A9C9B78D465404C

Proof of work

010104BB7216545F28C83467606EDA88968E19C436410AB446D1BC88FEBDE3506275F9B0B931CAAE420B96B2A158B7112F13795C878CCC346C76E04A96C59CCFC6FC39

Proof of integrity

00A9987273284C16C19784A4E8887FA88D59E298D999786F0F2BC562C97715087A

Coordinator signature

CB7E6F9676F267B95FC77525D590C1564C356AF43F40AB0E3545554D229AB7F158A286FE8C7B865627835454C940ADA4C699C560371C9557601D7210A748EF0A

Validator #1 public key

000151C124A6211CD402FD1CFE560C5DB51ED0CBEF44B09B21A41206028E7E5942BF

Validator #1 signature

78D575A95B8A2B1DAD5641597CA12CB681468C6677F036738097940BA67804C22F8AB3B70B35F7F83F221C63F6A0E79F00ABCCE2B13D275BC5EDBA66D577F20E

Validator #2 public key

0001B0A94804BF8ECC9897075C6207FF63EF4D339F57A0349888E6B77CD47DB53EF3

Validator #2 signature

8BCEEFFF002AE4A028E5E8EA11A3E645E3376410F580B2DCFDEE7E7F86890B739E6CA781DAD04913AAD04634F56B895A827476ECD5CE56EC23C960FC6C24180C