tx · 6fpSQjyD7BKwWDALo8daPytTy6hAweTrZLUSaxJ6qzDu

3Mza5Ao6wJgpw1JG3jxRY1xigD44zgfhdK6:  -0.01000000 Waves

2021.11.03 15:14 [1774789] smart account 3Mza5Ao6wJgpw1JG3jxRY1xigD44zgfhdK6 > SELF 0.00000000 Waves

{ "type": 13, "id": "6fpSQjyD7BKwWDALo8daPytTy6hAweTrZLUSaxJ6qzDu", "fee": 1000000, "feeAssetId": null, "timestamp": 1635941803030, "version": 2, "chainId": 84, "sender": "3Mza5Ao6wJgpw1JG3jxRY1xigD44zgfhdK6", "senderPublicKey": "Gud7Z17wiZEMZiHRbn48k2D9H13jmLEDZZ8b7NCfjRJL", "proofs": [ "4w3qCzQwQGNMXTpfBP3HgAAKj1zFEXcYetLqAXNeiegb1jnBjhuAojSXmptXMGRiV3htjNQbWjbaK4DRzRJhDLNW" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAEY2FsbAAAAAAEAAAABWFzc2V0CQAEQwAAAAcCAAAABUFzc2V0AgAAAAAAAAAAAAAAAAEAAAAAAAAAAAAGBQAAAAR1bml0AAAAAAAAAAAABAAAAAdhc3NldElkCQAEOAAAAAEFAAAABWFzc2V0CQAETAAAAAIJAQAAAAtCaW5hcnlFbnRyeQAAAAICAAAAA2JpbgEAAAAACQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACAgAAAARib29sBgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAADaW50AAAAAAAAAAABCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAA3N0cgIAAAAACQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAECAAAAA3N0cgkABEwAAAACBQAAAAVhc3NldAkABEwAAAACCQEAAAAHUmVpc3N1ZQAAAAMFAAAAB2Fzc2V0SWQAAAAAAAAAAAEHCQAETAAAAAIJAQAAAARCdXJuAAAAAgUAAAAHYXNzZXRJZAAAAAAAAAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIAAAAAAAAAAAEFAAAAB2Fzc2V0SWQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAACXB1YmxpY0tleQEAAAAg7FpWyjKbzVZft//RzetcP6VR/RgE9mP8EUAKGEvbQl0EAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAlwdWJsaWNLZXkHNanFEA==", "height": 1774789, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7LYvGm5K3pW6LNW1bMPFzxv1DEcvMxEj42uQJBvAchGx Next: Evfq7xLLmRX3KwnTyrzHtbZ1rxN21swkkn3qPZ9kJhYy Diff:
OldNewDifferences
1212
1313
1414 @Verifier(tx)
15-func verify () = match tx {
16- case t: SetScriptTransaction =>
17- true
18- case t: DataTransaction =>
19- true
20- case _ =>
21- false
22-}
15+func verify () = {
16+ let publicKey = base58'Gud7Z17wiZEMZiHRbn48k2D9H13jmLEDZZ8b7NCfjRJL'
17+ match tx {
18+ case t: SetScriptTransaction =>
19+ true
20+ case t: DataTransaction =>
21+ true
22+ case t: TransferTransaction =>
23+ sigVerify(tx.bodyBytes, tx.proofs[0], publicKey)
24+ case _ =>
25+ false
26+ }
27+ }
2328
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func call () = {
88 let asset = Issue("Asset", "", 1, 0, true, unit, 0)
99 let assetId = calculateAssetId(asset)
1010 [BinaryEntry("bin", base58''), BooleanEntry("bool", true), IntegerEntry("int", 1), StringEntry("str", ""), DeleteEntry("str"), asset, Reissue(assetId, 1, false), Burn(assetId, 1), ScriptTransfer(i.caller, 1, assetId)]
1111 }
1212
1313
1414 @Verifier(tx)
15-func verify () = match tx {
16- case t: SetScriptTransaction =>
17- true
18- case t: DataTransaction =>
19- true
20- case _ =>
21- false
22-}
15+func verify () = {
16+ let publicKey = base58'Gud7Z17wiZEMZiHRbn48k2D9H13jmLEDZZ8b7NCfjRJL'
17+ match tx {
18+ case t: SetScriptTransaction =>
19+ true
20+ case t: DataTransaction =>
21+ true
22+ case t: TransferTransaction =>
23+ sigVerify(tx.bodyBytes, tx.proofs[0], publicKey)
24+ case _ =>
25+ false
26+ }
27+ }
2328

github/deemru/w8io/169f3d6 
20.44 ms