Type
CONTRACT
Validation date
2023-11-14 16:56:37 UTC
Fee
0 UCO

Code (306 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) == 0x000066706d704329ca8c2a4153991e2ddacc968622ca10217ca14952eb7abb966c30
	)
]

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 (227 B)

{
  "charged_contracts": {
    "11155111": {
      "0x00a9fc9145a18bb9300d7771053d6b00d5b047a0": 1699985100,
      "0x8c3bbca4de3cffb62d5a5b578dadf8b0217d5204": 1699983720,
      "0xe22cfe7b64f8cb716261f3eccb64004ff20ad29f": 1699988100
    }
  },
  "requested_secrets": {}
}

State (0 B)

Movements (0)

Ownerships (1)

  • Secret shared with 1 key

    Encoded secret

    65C05459DCD3FC4C74E576976A0FD8DD20DD44E04E86D6F7E8A0BD878F06FCFB37C0BB8F47D894C32D76F9CAED90EF08720587EE6EA5A2AF99347002

    Authorized keys

    • 00017877BCF4122095926A49489009649603AB129822A19EF9D573B8FD714911ED7F

Contract recipients (0)

Inputs (0)

Contract inputs (0)

Unspent outputs (1)

Proofs and signatures

Previous public key

000109E73DECE541FCDEDDDDB428B7D2001DC667979C15D2CDA98CEF139B86CDDE15

Previous signature

23F95032E09268ABCC2DD7A67BCCF5523ADDECC58DF0DC9C2425651AB7550FD67098486A012015DF4152C8310BCEA65A6F48BF0059953930077CA8E316D3720B

Origin signature

304502205CEBC52DF8CE97B6B349477DE79D5B01FE11C03C4386F3F7C362A3070A63B0DB022100CE2B2514087A3B308FF35E5A152134145734D62D348A5DC7883EBD3DD141E58F

Proof of work

010104AB672F1E69B064D192819F1797C1926F158DBA8F3924AC732B4C4D70D0C8EA0A0D6506E5896C9C2524D2BE26CB5016287E1816A597C408008BA36FCB154A7765

Proof of integrity

00F5BA04CDCD8D70B1D278EB5715E97E3FD97A983564E4423C6EF270D00E0978CD

Coordinator signature

817C53E6977D351E01D53A1760AD952510D6900E5058454C6B87F3C5030ED7BDD16B70FB8C31C62AD433BD9BEE5D0E94A65662E0811065875DDE3D56E71D0B00

Validator #1 public key

0001B0A94804BF8ECC9897075C6207FF63EF4D339F57A0349888E6B77CD47DB53EF3

Validator #1 signature

F3AC3ABB355E21419706B4369A2697D7E227957920B7B2D4E3566A1468B9F29B01C5FDD313C3002D0B07FE511E504CC3FE228CFA035A62F495EBE4960CDB350A

Validator #2 public key

00011B58ED42235461734EAF253BD97A80B92899ABCC3BE680D44B6825DD2A88A947

Validator #2 signature

85D80A71F6650ED8C8005D5950DF0AE0B2500FE20D846B28D452BB31C02B9BC6178B4D506CC53DE5632430DDE4354F5884D271A022C6A9990AD03BFB33159B08