tx · Evfq7xLLmRX3KwnTyrzHtbZ1rxN21swkkn3qPZ9kJhYy

3Mza5Ao6wJgpw1JG3jxRY1xigD44zgfhdK6:  -0.04000000 Waves

2021.11.03 15:23 [1774797] smart account 3Mza5Ao6wJgpw1JG3jxRY1xigD44zgfhdK6 > SELF 0.00000000 Waves

{ "type": 13, "id": "Evfq7xLLmRX3KwnTyrzHtbZ1rxN21swkkn3qPZ9kJhYy", "fee": 4000000, "feeAssetId": null, "timestamp": 1635942310474, "version": 2, "chainId": 84, "sender": "3Mza5Ao6wJgpw1JG3jxRY1xigD44zgfhdK6", "senderPublicKey": "Gud7Z17wiZEMZiHRbn48k2D9H13jmLEDZZ8b7NCfjRJL", "proofs": [ "61u5tBqCwRGSDK1c8q8xNp4wn9ezGiSg8YeNtcYBKF7HuvZrXB3HqM8VotUV8A7AhUpx4V6bf33PgxKWKTxpEL3Q" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAEY2FsbAAAAAAEAAAABWFzc2V0CQAEQwAAAAcCAAAABUFzc2V0AgAAAAAAAAAAAAAAAAEAAAAAAAAAAAAGBQAAAAR1bml0AAAAAAAAAAAABAAAAAdhc3NldElkCQAEOAAAAAEFAAAABWFzc2V0CQAETAAAAAIJAQAAAAtCaW5hcnlFbnRyeQAAAAICAAAAA2JpbgEAAAAACQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACAgAAAARib29sBgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAADaW50AAAAAAAAAAABCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAA3N0cgIAAAAACQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAECAAAAA3N0cgkABEwAAAACBQAAAAVhc3NldAkABEwAAAACCQEAAAAHUmVpc3N1ZQAAAAMFAAAAB2Fzc2V0SWQAAAAAAAAAAAEHCQAETAAAAAIJAQAAAARCdXJuAAAAAgUAAAAHYXNzZXRJZAAAAAAAAAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIAAAAAAAAAAAEFAAAAB2Fzc2V0SWQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAB3NtYXJ0UEsBAAAAIOxaVsoym81WX7f/0c3rXD+lUf0YBPZj/BFAChhL20JdBAAAAAhzZWNvbmRQSwEAAAAgsYI0XJ/6UoSZVLCk1HJwaDhWvEG0ktQGwKp2ht0aQEIEAAAABXNtYXJ0CQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAHc21hcnRQSwQAAAAGc2Vjb25kCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAIc2Vjb25kUEsEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDADBQAAAAVzbWFydAYFAAAABnNlY29uZAeLBY4e", "height": 1774797, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6fpSQjyD7BKwWDALo8daPytTy6hAweTrZLUSaxJ6qzDu Next: BwEnHvJonaAjUEmc82HNCWAjNznS2w7ZWThNzUcz9SH3 Diff:
OldNewDifferences
1313
1414 @Verifier(tx)
1515 func verify () = {
16- let publicKey = base58'Gud7Z17wiZEMZiHRbn48k2D9H13jmLEDZZ8b7NCfjRJL'
16+ let smartPK = base58'Gud7Z17wiZEMZiHRbn48k2D9H13jmLEDZZ8b7NCfjRJL'
17+ let secondPK = base58'CwvKLDcXt3Wd2MEyEemVKawiD7gaCV68wh2GcnJRHFqB'
18+ let smart = sigVerify(tx.bodyBytes, tx.proofs[0], smartPK)
19+ let second = sigVerify(tx.bodyBytes, tx.proofs[0], secondPK)
1720 match tx {
1821 case t: SetScriptTransaction =>
1922 true
2023 case t: DataTransaction =>
2124 true
2225 case t: TransferTransaction =>
23- sigVerify(tx.bodyBytes, tx.proofs[0], publicKey)
26+ if (smart)
27+ then true
28+ else second
2429 case _ =>
2530 false
2631 }
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)
1515 func verify () = {
16- let publicKey = base58'Gud7Z17wiZEMZiHRbn48k2D9H13jmLEDZZ8b7NCfjRJL'
16+ let smartPK = base58'Gud7Z17wiZEMZiHRbn48k2D9H13jmLEDZZ8b7NCfjRJL'
17+ let secondPK = base58'CwvKLDcXt3Wd2MEyEemVKawiD7gaCV68wh2GcnJRHFqB'
18+ let smart = sigVerify(tx.bodyBytes, tx.proofs[0], smartPK)
19+ let second = sigVerify(tx.bodyBytes, tx.proofs[0], secondPK)
1720 match tx {
1821 case t: SetScriptTransaction =>
1922 true
2023 case t: DataTransaction =>
2124 true
2225 case t: TransferTransaction =>
23- sigVerify(tx.bodyBytes, tx.proofs[0], publicKey)
26+ if (smart)
27+ then true
28+ else second
2429 case _ =>
2530 false
2631 }
2732 }
2833

github/deemru/w8io/169f3d6 
42.73 ms