tx · H5wCqLNQieZ8ejZ1F67vpHw88SieEHXHHrJWv6GXGD4P
3MwoVRAPfC2NKuuYJKHVAVtUFhq8MyTEfQh: -0.01400000 Waves
2020.04.27 12:34 [972948] smart account 3MwoVRAPfC2NKuuYJKHVAVtUFhq8MyTEfQh > SELF 0.00000000 Waves
{
"type": 13,
"id": "H5wCqLNQieZ8ejZ1F67vpHw88SieEHXHHrJWv6GXGD4P",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1587980001714,
"version": 1,
"sender": "3MwoVRAPfC2NKuuYJKHVAVtUFhq8MyTEfQh",
"senderPublicKey": "7tjNKASkzXPoigf4rbEx5NDchf4bgPT5yhYJpNobZeKX",
"proofs": [],
"script": "base64:AAIDAAAAAAAAAAIIAQAAAAIAAAAAA3ZlcgIAAAAFNS4wLjABAAAAE2dldEFkZHJlc3NCb29rVmFsdWUAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAkBAAAAB2V4dHJhY3QAAAABCQEAAAARYWRkcmVzc0Zyb21TdHJpbmcAAAABBQAAAAFhCQAAAgAAAAECAAAABm5vIGtleQAAAAAAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAnR4BQAAAAckbWF0Y2gwBAAAAAlwQWRkcmVzczEJAQAAABNnZXRBZGRyZXNzQm9va1ZhbHVlAAAAAQIAAAAJcEFkZHJlc3MxBAAAAAlwQWRkcmVzczIJAQAAABNnZXRBZGRyZXNzQm9va1ZhbHVlAAAAAQIAAAAJcEFkZHJlc3MyBAAAAAlwQWRkcmVzczM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eAAAAAJpZAAAAAAAAAAAAQAAAAAAAAAAAAQAAAALcEtleTZTaWduZWQDCQEAAAAJaXNEZWZpbmVkAAAAAQkABBoAAAACBQAAAAlwQWRkcmVzczYJAAJYAAAAAQgFAAAAAnR4AAAAAmlkAAAAAAAAAAABAAAAAAAAAAAABAAAAAtwS2V5N1NpZ25lZAMJAQAAAAlpc0RlZmluZWQAAAABCQAEGgAAAAIFAAAACXBBZGRyZXNzNwkAAlgAAAABCAUAAAACdHgAAAACaWQAAAAAAAAAAAEAAAAAAAAAAAAEAAAAC3BLZXk4U2lnbmVkAwkBAAAACWlzRGVmaW5lZAAAAAEJAAQaAAAAAgUAAAAJcEFkZHJlc3M4CQACWAAAAAEIBQAAAAJ0eAAAAAJpZAAAAAAAAAAAAQAAAAAAAAAAAAkAAGcAAAACCQAAZAAAAAIJAABkAAAAAgkAAGQAAAACCQAAZAAAAAIJAABkAAAAAgkAAGQAAAACCQAAZAAAAAIFAAAAC3BLZXkxU2lnbmVkBQAAAAtwS2V5MlNpZ25lZAUAAAALcEtleTNTaWduZWQFAAAAC3BLZXk0U2lnbmVkBQAAAAtwS2V5NVNpZ25lZAUAAAALcEtleTZTaWduZWQFAAAAC3BLZXk3U2lnbmVkBQAAAAtwS2V5OFNpZ25lZAAAAAAAAAAAAweMXvAo",
"chainId": 84,
"height": 972948,
"spentComplexity": 0
}
View: original | compacted
Prev: 3UdUwJr6zSpa1jFKTtbuQwBDd3256V8HNTrZQNCYFxH6
Next: none
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let ver = "5.0.0-testnet" |
---|
| 4 | + | let ver = "5.0.0" |
---|
5 | 5 | | |
---|
6 | 6 | | func getAddressBookValue (key) = match getString(this, key) { |
---|
7 | 7 | | case a: String => |
---|
|
20 | 20 | | let pAddress3 = getAddressBookValue("pAddress3") |
---|
21 | 21 | | let pAddress4 = getAddressBookValue("pAddress4") |
---|
22 | 22 | | let pAddress5 = getAddressBookValue("pAddress5") |
---|
| 23 | + | let pAddress6 = getAddressBookValue("pAddress6") |
---|
| 24 | + | let pAddress7 = getAddressBookValue("pAddress7") |
---|
| 25 | + | let pAddress8 = getAddressBookValue("pAddress8") |
---|
23 | 26 | | let pKey1Signed = if (isDefined(getInteger(pAddress1, toBase58String(tx.id)))) |
---|
24 | 27 | | then 1 |
---|
25 | 28 | | else 0 |
---|
|
35 | 38 | | let pKey5Signed = if (isDefined(getInteger(pAddress5, toBase58String(tx.id)))) |
---|
36 | 39 | | then 1 |
---|
37 | 40 | | else 0 |
---|
38 | | - | (((((pKey1Signed + pKey2Signed) + pKey3Signed) + pKey4Signed) + pKey5Signed) >= 3) |
---|
| 41 | + | let pKey6Signed = if (isDefined(getInteger(pAddress6, toBase58String(tx.id)))) |
---|
| 42 | + | then 1 |
---|
| 43 | + | else 0 |
---|
| 44 | + | let pKey7Signed = if (isDefined(getInteger(pAddress7, toBase58String(tx.id)))) |
---|
| 45 | + | then 1 |
---|
| 46 | + | else 0 |
---|
| 47 | + | let pKey8Signed = if (isDefined(getInteger(pAddress8, toBase58String(tx.id)))) |
---|
| 48 | + | then 1 |
---|
| 49 | + | else 0 |
---|
| 50 | + | ((((((((pKey1Signed + pKey2Signed) + pKey3Signed) + pKey4Signed) + pKey5Signed) + pKey6Signed) + pKey7Signed) + pKey8Signed) >= 3) |
---|
39 | 51 | | case _ => |
---|
40 | 52 | | false |
---|
41 | 53 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | let ver = "5.0.0-testnet" |
---|
| 4 | + | let ver = "5.0.0" |
---|
5 | 5 | | |
---|
6 | 6 | | func getAddressBookValue (key) = match getString(this, key) { |
---|
7 | 7 | | case a: String => |
---|
8 | 8 | | extract(addressFromString(a)) |
---|
9 | 9 | | case _ => |
---|
10 | 10 | | throw("no key") |
---|
11 | 11 | | } |
---|
12 | 12 | | |
---|
13 | 13 | | |
---|
14 | 14 | | |
---|
15 | 15 | | @Verifier(tx) |
---|
16 | 16 | | func verify () = match tx { |
---|
17 | 17 | | case tx: DataTransaction|SetScriptTransaction => |
---|
18 | 18 | | let pAddress1 = getAddressBookValue("pAddress1") |
---|
19 | 19 | | let pAddress2 = getAddressBookValue("pAddress2") |
---|
20 | 20 | | let pAddress3 = getAddressBookValue("pAddress3") |
---|
21 | 21 | | let pAddress4 = getAddressBookValue("pAddress4") |
---|
22 | 22 | | let pAddress5 = getAddressBookValue("pAddress5") |
---|
| 23 | + | let pAddress6 = getAddressBookValue("pAddress6") |
---|
| 24 | + | let pAddress7 = getAddressBookValue("pAddress7") |
---|
| 25 | + | let pAddress8 = getAddressBookValue("pAddress8") |
---|
23 | 26 | | let pKey1Signed = if (isDefined(getInteger(pAddress1, toBase58String(tx.id)))) |
---|
24 | 27 | | then 1 |
---|
25 | 28 | | else 0 |
---|
26 | 29 | | let pKey2Signed = if (isDefined(getInteger(pAddress2, toBase58String(tx.id)))) |
---|
27 | 30 | | then 1 |
---|
28 | 31 | | else 0 |
---|
29 | 32 | | let pKey3Signed = if (isDefined(getInteger(pAddress3, toBase58String(tx.id)))) |
---|
30 | 33 | | then 1 |
---|
31 | 34 | | else 0 |
---|
32 | 35 | | let pKey4Signed = if (isDefined(getInteger(pAddress4, toBase58String(tx.id)))) |
---|
33 | 36 | | then 1 |
---|
34 | 37 | | else 0 |
---|
35 | 38 | | let pKey5Signed = if (isDefined(getInteger(pAddress5, toBase58String(tx.id)))) |
---|
36 | 39 | | then 1 |
---|
37 | 40 | | else 0 |
---|
38 | | - | (((((pKey1Signed + pKey2Signed) + pKey3Signed) + pKey4Signed) + pKey5Signed) >= 3) |
---|
| 41 | + | let pKey6Signed = if (isDefined(getInteger(pAddress6, toBase58String(tx.id)))) |
---|
| 42 | + | then 1 |
---|
| 43 | + | else 0 |
---|
| 44 | + | let pKey7Signed = if (isDefined(getInteger(pAddress7, toBase58String(tx.id)))) |
---|
| 45 | + | then 1 |
---|
| 46 | + | else 0 |
---|
| 47 | + | let pKey8Signed = if (isDefined(getInteger(pAddress8, toBase58String(tx.id)))) |
---|
| 48 | + | then 1 |
---|
| 49 | + | else 0 |
---|
| 50 | + | ((((((((pKey1Signed + pKey2Signed) + pKey3Signed) + pKey4Signed) + pKey5Signed) + pKey6Signed) + pKey7Signed) + pKey8Signed) >= 3) |
---|
39 | 51 | | case _ => |
---|
40 | 52 | | false |
---|
41 | 53 | | } |
---|
42 | 54 | | |
---|