Type
CONTRACT
Validation date
2023-10-30 15:18:48 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) == 0x0000072e418b60c6dabd272bc2728b17b352b8104f068d11365d50134f96a4199609
	)
]

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

{
  "charged_contracts": {
    "80001": {
      "0x07183bfc0e47365d0e2debbc1c4c805d209e9d2b": 1698686280
    }
  },
  "requested_secrets": {}
}

State (0 B)

Movements (0)

Ownerships (1)

  • Secret shared with 1 key

    Encoded secret

    D7B1298356DED92A42CC4E34E3630C6900EED9AAC8CB2541529FF2D642C07E526E293EABFAEFE63E569E1F12B86F4F679082ACEA2916B62FB48B6C43

    Authorized keys

    • 00017877BCF4122095926A49489009649603AB129822A19EF9D573B8FD714911ED7F

Contract recipients (0)

Inputs (0)

Contract inputs (0)

Unspent outputs (1)

Proofs and signatures

Previous public key

0001B861EBE1CC9B46FAE2C74FD9BC01812C8A173499C3692AD400CE19EC1CDE0333

Previous signature

C1FBE908A563FF8E88306C80594AE055095A203EC066282484DA4E1CAF3DD2ECD60C91F4381617107523EA06220C496596EAC5A6D79DFEFCC7C84F5B430FF907

Origin signature

3045022017F97B2666B60C6E7EC5418ADC1371F531286EC4771A96368A19E92ACED94182022100BEF62B9539C3CC9FE30369361EC25AE7A669BF949ED6A50C052795FA02BFD4A9

Proof of work

0101046C39D56B717142B6EE14B0F8B2561ECA458F3D2D12C9977D613F78829419063211F9C21F7BB0D56B6523040A8156BE22B6E9D6332B88ED882574D12AE32F7A45

Proof of integrity

0078A4F24D5269CE5DD517C8E5DD572EC40EB9D6CB59347CB1ED5E1F22514D8742

Coordinator signature

4B3A306EFA17439D17F02E37E14647FA37FE9112E4E976D1A777DE29349FC091A01C8E41C5361B731184D1C7ED67062FD2FF078473AF40FFE7B382F3ACCC3709

Validator #1 public key

00011ED0B570D680BE5ECD58D2D121689DA73C46DCB38A01C6E10D06286040ADE30A

Validator #1 signature

7A6D898F22E08981BBF1A0E1E4081A3A5FAE03CC2EB5007A9EF5E946D998137E3E9177102657C78BB8B149C54FE953B4BB7D96632906F8D113B14E016E82A707

Validator #2 public key

0001500FBE298B79FFBDD5CCA1798F30FD88A53D26EC39DE5DDE1F4137B032A4BC34

Validator #2 signature

39F05729E5F9F375763FD1F41D0EB54061772518693BD48AC3AE6FBCBDD959C1B3F50CA49C01F353FCFE9A854AD312380784A69FC1B83AC94E3285740296990B