tx · 3UdUwJr6zSpa1jFKTtbuQwBDd3256V8HNTrZQNCYFxH6 3MwoVRAPfC2NKuuYJKHVAVtUFhq8MyTEfQh: -0.01000000 Waves 2020.04.22 18:53 [965915] smart account 3MwoVRAPfC2NKuuYJKHVAVtUFhq8MyTEfQh > SELF 0.00000000 Waves
{ "type": 13, "id": "3UdUwJr6zSpa1jFKTtbuQwBDd3256V8HNTrZQNCYFxH6", "fee": 1000000, "feeAssetId": null, "timestamp": 1587570749791, "version": 1, "sender": "3MwoVRAPfC2NKuuYJKHVAVtUFhq8MyTEfQh", "senderPublicKey": "7tjNKASkzXPoigf4rbEx5NDchf4bgPT5yhYJpNobZeKX", "proofs": [ "Rgo7WkgEsq5Kpg4fjJpX1mZCsidxcm9y4QMuyU7UVYTPAFb9BCH8rYPbM3ahncLZqmZdJdNEmdXxris5HSiqnqi" ], "script": "base64:AAIDAAAAAAAAAAIIAQAAAAIAAAAAA3ZlcgIAAAANNS4wLjAtdGVzdG5ldAEAAAATZ2V0QWRkcmVzc0Jvb2tWYWx1ZQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwCQEAAAAHZXh0cmFjdAAAAAEJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAEFAAAAAWEJAAACAAAAAQIAAAAGbm8ga2V5AAAAAAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uBgkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAEAAAACXBBZGRyZXNzMQkBAAAAE2dldEFkZHJlc3NCb29rVmFsdWUAAAABAgAAAAlwQWRkcm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25lZAUAAAALcEtleTRTaWduZWQFAAAAC3BLZXk1U2lnbmVkAAAAAAAAAAADBz2MWAI=", "chainId": 84, "height": 965915, "spentComplexity": 0 } View: original | compacted Prev: none Next: H5wCqLNQieZ8ejZ1F67vpHw88SieEHXHHrJWv6GXGD4P Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let ver = "5.0.0-testnet" | |
5 | + | ||
6 | + | func getAddressBookValue (key) = match getString(this, key) { | |
7 | + | case a: String => | |
8 | + | extract(addressFromString(a)) | |
9 | + | case _ => | |
10 | + | throw("no key") | |
11 | + | } | |
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | @Verifier(tx) | |
16 | + | func verify () = match tx { | |
17 | + | case tx: DataTransaction|SetScriptTransaction => | |
18 | + | let pAddress1 = getAddressBookValue("pAddress1") | |
19 | + | let pAddress2 = getAddressBookValue("pAddress2") | |
20 | + | let pAddress3 = getAddressBookValue("pAddress3") | |
21 | + | let pAddress4 = getAddressBookValue("pAddress4") | |
22 | + | let pAddress5 = getAddressBookValue("pAddress5") | |
23 | + | let pKey1Signed = if (isDefined(getInteger(pAddress1, toBase58String(tx.id)))) | |
24 | + | then 1 | |
25 | + | else 0 | |
26 | + | let pKey2Signed = if (isDefined(getInteger(pAddress2, toBase58String(tx.id)))) | |
27 | + | then 1 | |
28 | + | else 0 | |
29 | + | let pKey3Signed = if (isDefined(getInteger(pAddress3, toBase58String(tx.id)))) | |
30 | + | then 1 | |
31 | + | else 0 | |
32 | + | let pKey4Signed = if (isDefined(getInteger(pAddress4, toBase58String(tx.id)))) | |
33 | + | then 1 | |
34 | + | else 0 | |
35 | + | let pKey5Signed = if (isDefined(getInteger(pAddress5, toBase58String(tx.id)))) | |
36 | + | then 1 | |
37 | + | else 0 | |
38 | + | (((((pKey1Signed + pKey2Signed) + pKey3Signed) + pKey4Signed) + pKey5Signed) >= 3) | |
39 | + | case _ => | |
40 | + | false | |
41 | + | } | |
42 | + |
github/deemru/w8io/169f3d6 62.34 ms ◑