Type
CONTRACT
Validation date
2023-12-07 12:41:00 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 (277 B)

{
  "charged_contracts": {
    "97": {
      "0x117ff9ed8a21dafda5acd04be1c353128203520c": 1701957000,
      "0x11ed55ed009dfd7c99df27522349ab6e25fe836b": 1701959760,
      "0x543dc0c1e754ccb4ad16a9bdf39bf5623700c36d": 1701957960,
      "0xc376b8533d0fa52a3054f6b52b6dd036db05fe41": 1701958860
    }
  },
  "requested_secrets": {}
}

State (0 B)

Movements (0)

Ownerships (1)

  • Secret shared with 1 key

    Encoded secret

    25A822AD168E966E02DB27A6A71264DCB50FF26FD3511A685C2357AD1A6DE139E416F5B09ADEED7764C1C7E9C2A8ED2D872F756124EC2BEEBDC97B4B

    Authorized keys

    • 00017877BCF4122095926A49489009649603AB129822A19EF9D573B8FD714911ED7F

Contract recipients (0)

Inputs (0)

Contract inputs (0)

Unspent outputs (1)

Proofs and signatures

Previous public key

00011EB3D77ACFC4DC9ECF183803A4ACC6063BB0136F29E576049E3831162B30C436

Previous signature

94B6759CD2D6897959A10C5B0E50368D473B31E82319E6FA224BB31C22385D0BB6B2A53DEAD4B61AFB08EEFF6F43F37020D95A48BFF80F7FA5533A99C1D1E203

Origin signature

304402200CB4DD2ACEBE3F259EA1A0AF71BE05FB829F3CDACFDE7BBAAC429188382CA355022026283DBD5C929C99675AFA9BBE0ED7945774882A2F0450A35DAC8C19780878D2

Proof of work

010104AB672F1E69B064D192819F1797C1926F158DBA8F3924AC732B4C4D70D0C8EA0A0D6506E5896C9C2524D2BE26CB5016287E1816A597C408008BA36FCB154A7765

Proof of integrity

008D89939836FEE75E71481E351495B9175ACCCAF15C2E0C6FB5A5C56A2E8E32F3

Coordinator signature

372B9E26D874A2C8B103A0C476211C9AD6238981CE0C26648839983A5171281A45EB2B346A519291A379E954B4E4C09D726DF9444BCB01E208165B3404459606

Validator #1 public key

0001B0A94804BF8ECC9897075C6207FF63EF4D339F57A0349888E6B77CD47DB53EF3

Validator #1 signature

BDAB25EA5CBF47DB0DDE2A42C1F7A23F725E5CD7F943891818A2C8FCA64F3D08B6F7A16C02F3184C067B52EC2F833CBCFA826DB80C555262A939AC0054061E05

Validator #2 public key

000151C124A6211CD402FD1CFE560C5DB51ED0CBEF44B09B21A41206028E7E5942BF

Validator #2 signature

80E46A9360E44ABD9EEA3994ABF2A9D2F21533BD6CA4F97DFAA9527870B092EE255354C9991E5AEC718D2E6E85605F4277CCA6E3575FC4968B30B27C01373003