Type
CONTRACT
Validation date
2023-11-15 21:07:17 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 (168 B)

{
  "charged_contracts": {
    "80001": {
      "0x8bfd4cdf76233f4b261cf74d497e5219539274e1": 1700089560,
      "0x8f170eefc3c4af4f7fff2120c05502712ff5d1dc": 1700089020
    }
  },
  "requested_secrets": {}
}

State (0 B)

Movements (0)

Ownerships (1)

  • Secret shared with 1 key

    Encoded secret

    5A85E9C4F99D1F2A38F5CE7AE25D8DA61EEFE7C76E14706784A4FC82AE942385BF0420CA2BDE27939197D2B0CCAE1B8784F56BC6F29F250AA4E0C443

    Authorized keys

    • 00017877BCF4122095926A49489009649603AB129822A19EF9D573B8FD714911ED7F

Contract recipients (0)

Inputs (0)

Contract inputs (0)

Unspent outputs (1)

Proofs and signatures

Previous public key

000152EFB84AC935126196B7E20B887582BF3BAC037D64CAE4F21550FF8DE4D0CBA5

Previous signature

5D22EB4E6FFBBEAFE897843D2344CAB5C4EFE668160DE1C2DE1E7A0E6DD99A69FEDF5ECF17A717584B1A2DCBC81483D7C997BB81863FAE8B517B4F645D891F09

Origin signature

3045022100B7A0CBA7FC95986170BF842CE440F3094E62BBE65882E6D023B4B30592FAB5A202201CF2E6CD2C935ED34CD6ED2E6193C754B31112AD077A62A0F8A522F4186D6E8B

Proof of work

010104AB672F1E69B064D192819F1797C1926F158DBA8F3924AC732B4C4D70D0C8EA0A0D6506E5896C9C2524D2BE26CB5016287E1816A597C408008BA36FCB154A7765

Proof of integrity

008E67C811B572FBE9522B7EAC23712033FC1D2D45C0F2FD585DB45843599AF209

Coordinator signature

70B3E05C2F8A0E2207B2E2E68482C9D3869D40C755658E49E3B913F0DB5E0868BC6D8069CF455C806356EA79797C1B93244A8BB9F1288A34CCEAF19A52952205

Validator #1 public key

0001B0A94804BF8ECC9897075C6207FF63EF4D339F57A0349888E6B77CD47DB53EF3

Validator #1 signature

E7BC1550D2BF048F18BBD863C545622C7AC5D6E9B6A20399E02CA7F41334494AA43C8CDDE3E67F99B20EE12B4794DDD2D836F6136D5DEF89CC2CDC27AFA5CC01

Validator #2 public key

00011B58ED42235461734EAF253BD97A80B92899ABCC3BE680D44B6825DD2A88A947

Validator #2 signature

49F0615200BAFFCE3B18836D24F9147AE105959E35A4A49032A64662907F495299D822EB6C03B48530873A763CDC32FFBB1F3BED22565B3E7C3DDDBA26BC780D