Type
CONTRACT
Validation date
2023-12-09 13:10:44 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 (283 B)

{
  "charged_contracts": {
    "11155111": {
      "0x203aeeb8e3a097167ca2e59e799e3beaa018ed07": 1702134540,
      "0x356249e2fb6c970b22ff0bfae774e4ba2a04faea": 1702131600,
      "0x38ffef970450720260ca5a212e3535c24d662484": 1702128540,
      "0xfe15dc6febfd9b211280a4b83b11da2df2beb3a7": 1702130460
    }
  },
  "requested_secrets": {}
}

State (0 B)

Movements (0)

Ownerships (1)

  • Secret shared with 1 key

    Encoded secret

    6AA2A6B0D6651DCAE914573DE18BAC9CCFC3F6A746255B23D39A0495D3BABEF60529D3BE77655B98173C8FEFD826F602C4524954849E48D7C293B59F

    Authorized keys

    • 00017877BCF4122095926A49489009649603AB129822A19EF9D573B8FD714911ED7F

Contract recipients (0)

Inputs (0)

Contract inputs (0)

Unspent outputs (1)

Proofs and signatures

Previous public key

0001CFC881A73302BA90A4EC028F2C78F63BE5FCB8A01801694238268F7343AFB6FA

Previous signature

F4CACB798B79A8D13BB86D65AA11FE931B4F277FC9025E5743B3651B8243239CEDBE23519CF21B5549E0450CEC8DF4B7720BC51D8E0723E3D2E533D8594BD802

Origin signature

30450221008384F1D2566C5E2E7CD141050B2262613112839E04EA48F1ADED56D3228A74F1022018D43973996907205B1AEFC2FCB57908EC0C4946297351CA9AE6108CE0BB2A1E

Proof of work

0101046C39D56B717142B6EE14B0F8B2561ECA458F3D2D12C9977D613F78829419063211F9C21F7BB0D56B6523040A8156BE22B6E9D6332B88ED882574D12AE32F7A45

Proof of integrity

005AF712ED40559BFF731FAFEBB01BDC8731064DC101CC81BA7C175983F1833ED0

Coordinator signature

18CDE032A99103ED89C4D2E666F2F0F639D3596E391B4036740E318830812CD0F765419A8B69C8FFFA532C21789E9380D2C7824177B3766429DD897FEB7AF801

Validator #1 public key

0001B0A94804BF8ECC9897075C6207FF63EF4D339F57A0349888E6B77CD47DB53EF3

Validator #1 signature

B11CCC7C47B6CDC42D32E12F5678C4F9DCFF9631EBD52CFB0D0767BDB40756714E27D5EC5EE62418B351BCE5AD528F75DCFBA26A7F14AFCE2F8EC81C46B05107

Validator #2 public key

000151C124A6211CD402FD1CFE560C5DB51ED0CBEF44B09B21A41206028E7E5942BF

Validator #2 signature

7EC3F2F26BCD1C50F716B755612B699883C575C9F1315DA52A7D0BA6BE0EB56CA9B73BD4E49C4FEA90F3968B7BDCD77C1F2AD083E53A27E275254A343F950D0C