tx · 5Et5hyo5vJPrZN9pPKLKfjMvBevv6C9oSo1Dv18yxYsG

3MvYrCuZcSEEpaonJMECNuAgua1N1pP4QLv:  -0.01400000 Waves

2019.11.08 11:12 [755715] smart account 3MvYrCuZcSEEpaonJMECNuAgua1N1pP4QLv > SELF 0.00000000 Waves

{ "type": 13, "id": "5Et5hyo5vJPrZN9pPKLKfjMvBevv6C9oSo1Dv18yxYsG", "fee": 1400000, "feeAssetId": null, "timestamp": 1573200792032, "version": 1, "sender": "3MvYrCuZcSEEpaonJMECNuAgua1N1pP4QLv", "senderPublicKey": "8M3Q3Umd3j8Awzm99M79fM53H8ciKVWraTxGrf9qktxT", "proofs": [ "UWxAu242rNP2XKLPZcL7JpDT6HJRYg42LMD9xhoEGTjByVXj1yMCGPYfF1PdDv86Rcdnu3zULxjgrrkHgZPcJVn" ], "script": "base64:AAIDAAAAAAAAAAcIARIDCgECAAAAAQEAAAAMdG9CeXRlVmVjdG9yAAAAAQAAAAJidgQAAAAHJG1hdGNoMAUAAAACYnYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAA2J2MAUAAAAHJG1hdGNoMAUAAAADYnYwCQAAAgAAAAECAAAAE0J5dGVWZWN0b3IgZXhwZWN0ZWQAAAABAAAAAWkBAAAAB3JlZ1VzZXIAAAABAAAACnVzZXJQdWJLZXkDCQEAAAACIT0AAAACBQAAAAp1c2VyUHViS2V5CQEAAAAMdG9CeXRlVmVjdG9yAAAAAQIAAAAsRThCRWpESFRENzNHRGdaOGViZTkzUDlyOGE1MzQ2TkFYYktRaFQ4d0w4VEUJAAACAAAAAQIAAAAQdXNlciBub3QgYWxsb3dlZAkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAAKdXNlclB1YktleQUAAAAKdXNlclB1YktleQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAIdmVyaWZpZXIAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXSW52b2tlU2NyaXB0VHJhbnNhY3Rpb24EAAAAA2ludgUAAAAHJG1hdGNoMAMJAAAAAAAAAggFAAAAA2ludgAAAAhmdW5jdGlvbgIAAAAHcmVnVXNlcgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAJAQAAAAx0b0J5dGVWZWN0b3IAAAABCQABkQAAAAIIBQAAAANpbnYAAAAEYXJncwAAAAAAAAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5utkbew==", "chainId": 84, "height": 755715, "spentComplexity": 0 } View: original | compacted Prev: 4Fw6gXqvkr8jFhbojGDavjCzV3uCCnCA42GBft1dcMS5 Next: 5ZmdAjaMZaiFxf9kHZif3b4M8ePvGokwPe4BWR4oGpJ8 Diff:
OldNewDifferences
1010
1111
1212 @Callable(i)
13-func regUser (userPubKey) = WriteSet([DataEntry("userPubKey", userPubKey)])
13+func regUser (userPubKey) = if ((userPubKey != toByteVector("E8BEjDHTD73GDgZ8ebe93P9r8a5346NAXbKQhT8wL8TE")))
14+ then throw("user not allowed")
15+ else WriteSet([DataEntry("userPubKey", userPubKey)])
1416
1517
1618 @Verifier(tx)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func toByteVector (bv) = match bv {
55 case bv0: ByteVector =>
66 bv0
77 case _ =>
88 throw("ByteVector expected")
99 }
1010
1111
1212 @Callable(i)
13-func regUser (userPubKey) = WriteSet([DataEntry("userPubKey", userPubKey)])
13+func regUser (userPubKey) = if ((userPubKey != toByteVector("E8BEjDHTD73GDgZ8ebe93P9r8a5346NAXbKQhT8wL8TE")))
14+ then throw("user not allowed")
15+ else WriteSet([DataEntry("userPubKey", userPubKey)])
1416
1517
1618 @Verifier(tx)
1719 func verifier () = match tx {
1820 case inv: InvokeScriptTransaction =>
1921 if ((inv.function == "regUser"))
2022 then sigVerify(tx.bodyBytes, tx.proofs[0], toByteVector(inv.args[0]))
2123 else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
2224 case _ =>
2325 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
2426 }
2527

github/deemru/w8io/026f985 
19.78 ms