tx · G3AW1APdsV2NbibVooSGn488uezWNcngrEvwn8a5YdFN

3MvYrCuZcSEEpaonJMECNuAgua1N1pP4QLv:  -0.01400000 Waves

2019.11.08 11:27 [755728] smart account 3MvYrCuZcSEEpaonJMECNuAgua1N1pP4QLv > SELF 0.00000000 Waves

{ "type": 13, "id": "G3AW1APdsV2NbibVooSGn488uezWNcngrEvwn8a5YdFN", "fee": 1400000, "feeAssetId": null, "timestamp": 1573201624383, "version": 1, "sender": "3MvYrCuZcSEEpaonJMECNuAgua1N1pP4QLv", "senderPublicKey": "8M3Q3Umd3j8Awzm99M79fM53H8ciKVWraTxGrf9qktxT", "proofs": [ "4D1925tK6WE5oMtQDR8iWUdKiL4reRpsP6sWa6ShXCvFXheGYmCpRB2pTQ5rmzrM3oYsFhwzkpcb3RwPLhfEuUeq" ], "script": "base64:AAIDAAAAAAAAAAcIARIDCgECAAAAAQEAAAAMdG9CeXRlVmVjdG9yAAAAAQAAAAJidgQAAAAHJG1hdGNoMAUAAAACYnYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAA2J2MAUAAAAHJG1hdGNoMAUAAAADYnYwCQAAAgAAAAECAAAAE0J5dGVWZWN0b3IgZXhwZWN0ZWQAAAABAAAAAWkBAAAAB3JlZ1VzZXIAAAABAAAACnVzZXJQdWJLZXkJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAACnVzZXJQdWJLZXkFAAAACnVzZXJQdWJLZXkFAAAAA25pbAAAAAEAAAACdHgBAAAACHZlcmlmaWVyAAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAF0ludm9rZVNjcmlwdFRyYW5zYWN0aW9uBAAAAANpbnYFAAAAByRtYXRjaDADCQAAAAAAAAIIBQAAAANpbnYAAAAIZnVuY3Rpb24CAAAAB3JlZ1VzZXIJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACQEAAAAMdG9CeXRlVmVjdG9yAAAAAQkAAZEAAAACCAUAAAADaW52AAAABGFyZ3MAAAAAAAAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5CQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleYu7fV8=", "chainId": 84, "height": 755728, "spentComplexity": 0 } View: original | compacted Prev: c2qYPWAvbu8awnbWNArWowWKRaExBw4e6sVAbJtTQfa Next: AVf8nzPXvyoWc9QrppaRGPCPUoeTp6KaPwDD8HqsLi6f Diff:
OldNewDifferences
1010
1111
1212 @Callable(i)
13-func regUser (userPubKey) = if ((userPubKey != "E8BEjDHTD73GDgZ8ebe93P9r8a5346NAXbKQhT8wL8TE"))
14- then throw("user not allowed")
15- else WriteSet([DataEntry("userPubKey", userPubKey)])
13+func regUser (userPubKey) = WriteSet([DataEntry("userPubKey", userPubKey)])
1614
1715
1816 @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) = if ((userPubKey != "E8BEjDHTD73GDgZ8ebe93P9r8a5346NAXbKQhT8wL8TE"))
14- then throw("user not allowed")
15- else WriteSet([DataEntry("userPubKey", userPubKey)])
13+func regUser (userPubKey) = WriteSet([DataEntry("userPubKey", userPubKey)])
1614
1715
1816 @Verifier(tx)
1917 func verifier () = match tx {
2018 case inv: InvokeScriptTransaction =>
2119 if ((inv.function == "regUser"))
2220 then sigVerify(tx.bodyBytes, tx.proofs[0], toByteVector(inv.args[0]))
2321 else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
2422 case _ =>
2523 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
2624 }
2725

github/deemru/w8io/169f3d6 
34.23 ms