tx · EZeZRaB8huJtq5hknTMr7FAiFbnhoCF9jqbhwxgzVMSt 3MsCB4gHKSCgx52bNXXkXRAqT22NLH7ciaA: -0.01400000 Waves 2018.11.13 10:08 [373601] smart account 3MsCB4gHKSCgx52bNXXkXRAqT22NLH7ciaA > SELF 0.00000000 Waves
{ "type": 13, "id": "EZeZRaB8huJtq5hknTMr7FAiFbnhoCF9jqbhwxgzVMSt", "fee": 1400000, "feeAssetId": null, "timestamp": 1542092920472, "version": 1, "sender": "3MsCB4gHKSCgx52bNXXkXRAqT22NLH7ciaA", "senderPublicKey": "GfNrLWcr8Biphns5ZmtUi2GnGUQoKHTYdJVNr32oh2R9", "proofs": [ "2RHDCnrBQqWqiUEi77dcjik3zaw6YAadNsngQc1faoNaoCRRTCMmYzHaBVvi5uoQ7RYZTQH8sQQVBV21B84ou5Fk" ], "script": "base64:AQQAAAALbWFpbkFkZHJlc3MJAQAAABFhZGRyZXNzRnJvbVN0cmluZwAAAAECAAAAIzNNc0NCNGdIS1NDZ3g1MmJOWFhrWFJBcVQyMk5MSDdjaWFBBAAAABFtYWluQWRkcmVzc1B1YktleQEAAAAg6LQUyw1id1D+SaTpPNpSzV88cpVLAiVVqce1k+wUp1wEAAAAEm1haW5BZGRyZXNzU2lnbmVkMAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAABFtYWluQWRkcmVzc1B1YktleQAAAAAAAAAAAQAAAAAAAAAAAAQAAAASbWFpbkFkZHJlc3NTaWduZWQxAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAEFAAAAEW1haW5BZGRyZXNzUHViS2V5AAAAAAAAAAABAAAAAAAAAAAABAAAABFtYWluQWRkcmVzc05vdGFyeQMJAAAAAAAAAgUAAAALbWFpbkFkZHJlc3MIBQAAAAJ0eAAAAAZzZW5kZXIGBwQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAnR0BQAAAAckbWF0Y2gwBAAAABBtYWluQWRkcmVzc1ZhbHVlCQEAAAAHZXh0cmFjdAAAAAEJAAQaAAAAAggFAAAAAnR0AAAABnNlbmRlcgIAAAAJZ2FtZXZhbHVlBAAAAApnYW1lclZhbHVlCQEAAAAHZXh0cmFjdAAAAAEJAAQaAAAAAggFAAAAAnR0AAAACXJlY2lwaWVudAIAAAAJZ2FtZXZhbHVlAwMFAAAAEW1haW5BZGRyZXNzTm90YXJ5CQAAZwAAAAIJAABkAAAAAgUAAAASbWFpbkFkZHJlc3NTaWduZWQwBQAAABJtYWluQWRkcmVzc1NpZ25lZDEAAAAAAAAAAAEHCQAAAAAAAAIFAAAACmdhbWVyVmFsdWUFAAAAEG1haW5BZGRyZXNzVmFsdWUHAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAmR0BQAAAAckbWF0Y2gwCQAAZwAAAAIJAABkAAAAAgUAAAASbWFpbkFkZHJlc3NTaWduZWQwBQAAABJtYWluQWRkcmVzc1NpZ25lZDEAAAAAAAAAAAEEAAAABW90aGVyBQAAAAckbWF0Y2gwBgf8zeg=", "chainId": 84, "height": 373601, "spentComplexity": 0 } View: original | compacted Prev: BB1o61iraa9k9BwX1cD2Qj995dTD6pUsFpSpHaUtKSRE Next: 9DriCM6zeRbkkfF6v1TeD9pawocJpR3mp5FkSPWbuCJa Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 1 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | 3 | let mainAddress = addressFromString("3MsCB4gHKSCgx52bNXXkXRAqT22NLH7ciaA") | |
4 | 4 | let mainAddressPubKey = base58'GfNrLWcr8Biphns5ZmtUi2GnGUQoKHTYdJVNr32oh2R9' | |
5 | 5 | let mainAddressSigned0 = if (sigVerify(tx.bodyBytes, tx.proofs[0], mainAddressPubKey)) | |
6 | 6 | then 1 | |
7 | 7 | else 0 | |
8 | 8 | let mainAddressSigned1 = if (sigVerify(tx.bodyBytes, tx.proofs[1], mainAddressPubKey)) | |
9 | 9 | then 1 | |
10 | 10 | else 0 | |
11 | 11 | let mainAddressNotary = if ((mainAddress == tx.sender)) | |
12 | 12 | then true | |
13 | 13 | else false | |
14 | 14 | match tx { | |
15 | 15 | case tt: TransferTransaction => | |
16 | 16 | let mainAddressValue = extract(getInteger(tt.sender, "gamevalue")) | |
17 | 17 | let gamerValue = extract(getInteger(tt.recipient, "gamevalue")) | |
18 | 18 | if (if (mainAddressNotary) | |
19 | 19 | then ((mainAddressSigned0 + mainAddressSigned1) >= 1) | |
20 | 20 | else false) | |
21 | 21 | then (gamerValue == mainAddressValue) | |
22 | 22 | else false | |
23 | 23 | case dt: DataTransaction => | |
24 | 24 | ((mainAddressSigned0 + mainAddressSigned1) >= 1) | |
25 | 25 | case other => | |
26 | 26 | true | |
27 | 27 | } |
github/deemru/w8io/026f985 36.51 ms ◑