@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
{
"charged_contracts": {
"80001": {
"0x6535ed936cbd74ff98ede606f4d43c5c0214e9f3": 1702144800,
"0x8e894929ed67d0f48ddeb3dec28a079733c7a0f9": 1702144800,
"0xf070b5432a71ba28b802c2b137cb0bc4ceb4e737": 1702141860
}
},
"requested_secrets": {}
}
State (0 B)
-
Secret shared with 1 key
Encoded secret
BA9825AC3EC46B89D1CF3C4B6A543CC82526F6F4AC113A330181743075FA012F24D00D5005F7E0FD9E926716765AC921B529D850AAD6AF7C85ADE2D2
Authorized keys
- 00017877BCF4122095926A49489009649603AB129822A19EF9D573B8FD714911ED7F
Contract recipients (0)
Inputs (0)
Contract inputs (0)
Unspent outputs (1)
-
From 0000BDA8...86E1At 2023-12-09 16:03:05 UTCAmount 0.00230884 UCO
Previous public key
00010878668D010B3AB03163A4EDDB0CECAC84F2C892D607C98DD13DDCB4A2261216
Previous signature
7BB3E39B9500109577FB0EC0CC6401C2FC565179B5AC84CB43C4E29326B6A2600B8FECA311603F7318934FCCF99953CDC7D464BD198E3418B38AA45B96E9EC05
Origin signature
3045022079DF4A3D39C9242E25CA11C81BAF8EF998CFEA1010C7D83B9D64C0AF0653127E02210091E575A92D1267764E9B5F9FB75FA8EC8BC9665E5F7C14853879FCA41F8B3EFA
Proof of work
010104AB672F1E69B064D192819F1797C1926F158DBA8F3924AC732B4C4D70D0C8EA0A0D6506E5896C9C2524D2BE26CB5016287E1816A597C408008BA36FCB154A7765
Proof of integrity
00CCAFD93AD9E65EFA8F6BB2F21061CD29A1C945A763FB1D0E453D5F5D1B81441C
Coordinator signature
3993560A3D951C4D16EF450E4D65063F6FFEAAACBDA01E96AB35B57EBAFE81CE98F82B6C53349A418B07D7ABB45D1ABFCF408AA68824C4BDA8A0870727E5C20A
Validator #1 public key
0001B0A94804BF8ECC9897075C6207FF63EF4D339F57A0349888E6B77CD47DB53EF3
Validator #1 signature
75D91FB42F58C6826BF34D6787A4F1B4C8BB4AF1997D62AEEF9E0BF43F86A2A203EA093B96D7DB3E2800B3C2358D3E32B0AD47816E6BE26BF47E55A51761CD0B
Validator #2 public key
000151C124A6211CD402FD1CFE560C5DB51ED0CBEF44B09B21A41206028E7E5942BF
Validator #2 signature
86E330992EECA05C135077EB22770432F0CF9B252D53818C7B52D0EFCEAB8416045ED1A4CAD63CDFDF26F01A8CEF643B937E16431EB8F3CDB38199BC0ACD0A07