Type
CONTRACT
Validation date
2023-12-07 12:07:49 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 (165 B)

{
  "charged_contracts": {
    "97": {
      "0x117ff9ed8a21dafda5acd04be1c353128203520c": 1701957000,
      "0x543dc0c1e754ccb4ad16a9bdf39bf5623700c36d": 1701957960
    }
  },
  "requested_secrets": {}
}

State (0 B)

Movements (0)

Ownerships (1)

  • Secret shared with 1 key

    Encoded secret

    32FC9E043ED80D0A3B31F0F88DDEDF1D6D8A834A0B45045B6E4F041CA767FCDEC1AE59A95AF47DCF53C2442AC49B1E7EBD36070DB4E3F23AE739B359

    Authorized keys

    • 00017877BCF4122095926A49489009649603AB129822A19EF9D573B8FD714911ED7F

Contract recipients (0)

Inputs (0)

Contract inputs (0)

Unspent outputs (1)

Proofs and signatures

Previous public key

0001806B72CED1AC49A9060D2E5F4229CFE38B872F1805C96440882987A193DA015D

Previous signature

29BCE593A1D9989C3F61C58A18B1F202E13449C9A5DDBFA43AA8434DC06AB7497FA3FF1F79EDD41AC1ECCE3E65B5607078D8351C32C83959885A9C51C9A38B03

Origin signature

3046022100D9177BDC204738C035CCA65894D99A29354C87A43E09E948897A525FC438E800022100E99599C1111BE1C029E3D8229B5605961FCB095915580C9FF79719F2D2639142

Proof of work

01020451684966573439C38DA99334546FBBDE4A6D96A50B4A4ECBB6572CDBED023F079607407E254421D1779525D11C60D55684F0B403B93B95823554E29D1E2CDB16

Proof of integrity

0035C229C32C9EB794F20E90DB87E933470519A61CCCFB9CA2A136FF2A505F966A

Coordinator signature

8C36149ECE0E74B6E8C0B9C83E7EF51A5C4F9BD0ADBAD7F0F088678A9199A5E9CFC06EF6760EF5DDF7368A60CF6CE13E297B70AF598E60C6B58CDD827E18280F

Validator #1 public key

000151C124A6211CD402FD1CFE560C5DB51ED0CBEF44B09B21A41206028E7E5942BF

Validator #1 signature

776E45DD0A177C7C448583111EECFD5756D2F6E146A4B17FA8A83D52CD76C824619FB87557746E120C1814117A783EE63D58A52D5213823DA6C8C4369C817C0C

Validator #2 public key

0001B0A94804BF8ECC9897075C6207FF63EF4D339F57A0349888E6B77CD47DB53EF3

Validator #2 signature

7F62FC5FB8170248D263EF1A67578D27359A9BFF1D619209DAB501B5BE24FC57480D7D58E61A632D8CFAF55BAEC901D72FEA835DE5BA60011FEA0117ECE39700