tx · 2bv7ChW4QEdYwoZjKk5R1HYL3FLSHnNSEZTYsfbYc2QT 3N1KEoc6CDgbMSExXfJMAtXQBAsxvTWPyCb: -0.01400000 Waves 2021.12.03 01:41 [1817271] smart account 3N1KEoc6CDgbMSExXfJMAtXQBAsxvTWPyCb > SELF 0.00000000 Waves
{ "type": 13, "id": "2bv7ChW4QEdYwoZjKk5R1HYL3FLSHnNSEZTYsfbYc2QT", "fee": 1400000, "feeAssetId": null, "timestamp": 1638484937123, "version": 1, "sender": "3N1KEoc6CDgbMSExXfJMAtXQBAsxvTWPyCb", "senderPublicKey": "8bLm7ZXJzwcUYnPGrmLzSVTrMAFhh7KCCY2nk5e7gjzw", "proofs": [ "42suLkWHd7z1PdtxojNvWCSNvWFoSedhoHx2gWwK2ZydJbyySdGGpET34LQ2C9fsxeHDhJUhf4SAh3NxSGZrRuEs" ], "script": "base64:AAIFAAAAAAAAAAIIAgAAAAUAAAAABmFkbWluMQkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABB0AAAACBQAAAAR0aGlzAgAAAAdhZG1pbl8xAgAAABFFbXB0eSBrZXkgYWRtaW5fMQAAAAAGYWRtaW4yCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABCQEAAAALdmFsdWVPckVsc2UAAAACCQAEHQAAAAIFAAAABHRoaXMCAAAAB2FkbWluXzICAAAAEUVtcHR5IGtleSBhZG1pbl8yAAAAAAZhZG1pbjMJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQdAAAAAgUAAAAEdGhpcwIAAAAHYWRtaW5fMwIAAAARRW1wdHkga2V5IGFkbWluXzMAAAAABmFkbWluNAkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABB0AAAACBQAAAAR0aGlzAgAAAAdhZG1pbl80AgAAABFFbXB0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 84, "height": 1817271, "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 14.69 ms ◑