Type
CONTRACT
Validation date
2023-10-27 12:26:28 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": {
      "0x2e8ff63d4f41c312b54f13b1bb83ad0cdb322f85": 1698416700,
      "0x31a23ce4c54fc07c7142574af6c276e2eb259d6e": 1698410880,
      "0x585919ead1c25e7b80e208d3ce11219c88a2d805": 1698415800,
      "0x966a0d64ebe9389a2bb1718a44947e4dde8f6bf2": 1698416640
    }
  },
  "requested_secrets": {}
}

State (0 B)

Movements (0)

Ownerships (1)

  • Secret shared with 1 key

    Encoded secret

    D3EFA6FFC32E45D708FE91200958CBDBEF13D53E26105910BAFF3A3475BB5497B82671D16C4871831556451C8658E747D9DBCEDA1A30E66C00241407

    Authorized keys

    • 00017877BCF4122095926A49489009649603AB129822A19EF9D573B8FD714911ED7F

Contract recipients (0)

Inputs (0)

Contract inputs (0)

Unspent outputs (1)

Proofs and signatures

Previous public key

0001D9DE70BF3AA400E9A9357A99969BC07964D0418492FE44A77A14908FBA3BFD79

Previous signature

C7B1F80045EB6F8D8DF3DAA3651A513D5F73E699B355A898628C16350C83CC2B60467BCA0C10E023564B6088CA07212E109F3E8585CBD6A486B52737FA8D1302

Origin signature

304402206527F643582388C03F112CEC4FE75A1142CF8BE112E645A2C5CF2B168EBDB4210220153E579B820833AD93018E1AE361BE51FBE8E372B5083CF665806D1526F2A195

Proof of work

010104AB672F1E69B064D192819F1797C1926F158DBA8F3924AC732B4C4D70D0C8EA0A0D6506E5896C9C2524D2BE26CB5016287E1816A597C408008BA36FCB154A7765

Proof of integrity

0070F35B335928B812F7B5FB121D048279131A4FEDFA8D465F87395E0277A4B0EF

Coordinator signature

1AA8AE2A135D0FEA52EF7F3D32069BACB1DCF9C4EE35BB7A13467BB4D58355E8677F6264173629FB66CEF0A6D7232EFADCAC88F9CD237C38640E0F77BC2BDD0D

Validator #1 public key

0001500FBE298B79FFBDD5CCA1798F30FD88A53D26EC39DE5DDE1F4137B032A4BC34

Validator #1 signature

27C539FD82AC132C18410C874411F79FE98DAB686708641123276594EEACE9EC9306B63BACAB71E7DD7847A2EDAC380A906523BF64BD8399D18F8DBA21EE0301

Validator #2 public key

00011ED0B570D680BE5ECD58D2D121689DA73C46DCB38A01C6E10D06286040ADE30A

Validator #2 signature

6D951D98FA3F0E9C00D8E8A1EB8508C569D7C37126B70243C8C506FC14145AB6189A46B6E3C210C96161E464B0889AEB97D97338DF11A23867BD406731B9ED0B