tx · GwAvKi31DdCzDMWzLuyS9yMXVezTnwZisJM47qzGnkaG 3N5jFVeeCzvDrrpvoTKWXgDWvyuoH9v8emL: -0.01400000 Waves 2021.12.03 10:34 [1817801] smart account 3N5jFVeeCzvDrrpvoTKWXgDWvyuoH9v8emL > SELF 0.00000000 Waves
{ "type": 13, "id": "GwAvKi31DdCzDMWzLuyS9yMXVezTnwZisJM47qzGnkaG", "fee": 1400000, "feeAssetId": null, "timestamp": 1638516890977, "version": 1, "sender": "3N5jFVeeCzvDrrpvoTKWXgDWvyuoH9v8emL", "senderPublicKey": "ATBjhsmWumzos1meXxgCYnQmD1R8Pj2GGPC29Kk1UEjn", "proofs": [ "3aBcDZhBjURbuyWoYQJeuVowx5Qeq7qNXiQLmbfdEFVDGei4LmPF4x6mEmv3FeUiQL7aCCHx77xoagYeJeKJcDB6" ], "script": "base64:AAIFAAAAAAAAAAIIAgAAAAUAAAAABmFkbWluMQkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABB0AAAACBQAAAAR0aGlzAgAAAAdhZG1pbl8xAgAAABFFbXB0eSBrZXkgYWRtaW5fMQAAAAAGYWRtaW4yCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABCQEAAAALdmFsdWVPckVsc2UAAAACCQAEHQAAAAIFAAAABHRoaXMCAAAAB2FkbWluXzICAAAAEUVtcHR5IGtleSBhZG1pbl8yAAAAAAZhZG1pbjMJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQdAAAAAgUAAAAEdGhpcwIAAAAHYWRtaW5fMwIAAAARRW1wdHkga2V5IGFkbWluXzMAAAAABmFkbWluNAkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABB0AAAACBQAAAAR0aGlzAgAAAAdhZG1pbl80AgAAABFFbXB0eSBrZXkgYW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, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let admin1 = addressFromStringValue(valueOrElse(getString(this, "admin_1"), "Empty key admin_1")) | |
5 | + | ||
6 | + | let admin2 = addressFromStringValue(valueOrElse(getString(this, "admin_2"), "Empty key admin_2")) | |
7 | + | ||
8 | + | let admin3 = addressFromStringValue(valueOrElse(getString(this, "admin_3"), "Empty key admin_3")) | |
9 | + | ||
10 | + | let admin4 = addressFromStringValue(valueOrElse(getString(this, "admin_4"), "Empty key admin_4")) | |
11 | + | ||
12 | + | let admin5 = addressFromStringValue(valueOrElse(getString(this, "admin_5"), "Empty key admin_5")) | |
13 | + | ||
14 | + | ||
15 | + | @Verifier(tx) | |
16 | + | func verify () = { | |
17 | + | let admin1Signed = if (valueOrElse(getBoolean(admin1, toBase58String(tx.id)), false)) | |
18 | + | then 1 | |
19 | + | else 0 | |
20 | + | let admin2Signed = if (valueOrElse(getBoolean(admin2, toBase58String(tx.id)), false)) | |
21 | + | then 1 | |
22 | + | else 0 | |
23 | + | let admin3Signed = if (valueOrElse(getBoolean(admin3, toBase58String(tx.id)), false)) | |
24 | + | then 1 | |
25 | + | else 0 | |
26 | + | let admin4Signed = if (valueOrElse(getBoolean(admin4, toBase58String(tx.id)), false)) | |
27 | + | then 1 | |
28 | + | else 0 | |
29 | + | let admin5Signed = if (valueOrElse(getBoolean(admin5, toBase58String(tx.id)), false)) | |
30 | + | then 1 | |
31 | + | else 0 | |
32 | + | (((((admin1Signed + admin2Signed) + admin3Signed) + admin4Signed) + admin5Signed) >= 3) | |
33 | + | } | |
34 | + |
github/deemru/w8io/026f985 10.16 ms ◑