tx · 6iKwBM18VxhwvsPGHhtiahvXFSFeFqNmgfzvT75eTCyG

3N7KPSUwpMgvDEVGw1DYBnKDiixSQUXhn2P:  -0.01000000 Waves

2023.05.31 07:45 [2601682] smart account 3N7KPSUwpMgvDEVGw1DYBnKDiixSQUXhn2P > SELF 0.00000000 Waves

{ "type": 13, "id": "6iKwBM18VxhwvsPGHhtiahvXFSFeFqNmgfzvT75eTCyG", "fee": 1000000, "feeAssetId": null, "timestamp": 1685508336058, "version": 2, "chainId": 84, "sender": "3N7KPSUwpMgvDEVGw1DYBnKDiixSQUXhn2P", "senderPublicKey": "BTvXQMmkgSf57dbcqWxpEvbi3ZYcEeWFkkXDZC6FrneM", "proofs": [ "2eDTaaEjq6hiwiQT8LHsyHb2NNqp4ct2Xmv2yendtJXR3eFCNshAZExJhCUxS6mtR7JjDo6AqdAAf4wQZcayKRuk" ], "script": "base64:BgILCAISABIAEgMKAQEBAAxvd25lckFkZHJlc3MCIzNNdmpBYURZSHBTNEE1SzRDVjNrWk1NRUg5bTlKZEJTdmJxAwFpAQRjYWxsAAQFYXNzZXQJAMMIBwIFQXNzZXQCAAABAAAGBQR1bml0AAAEB2Fzc2V0SWQJALgIAQUFYXNzZXQJAMwIAgkBC0JpbmFyeUVudHJ5AgIDYmluAQAJAMwIAgkBDEJvb2xlYW5FbnRyeQICBGJvb2wGCQDMCAIJAQxJbnRlZ2VyRW50cnkCAgNpbnQAAQkAzAgCCQELU3RyaW5nRW50cnkCAgNzdHICAAkAzAgCCQELRGVsZXRlRW50cnkBAgNzdHIJAMwIAgUFYXNzZXQJAMwIAgkBB1JlaXNzdWUDBQdhc3NldElkAAEHCQDMCAIJAQRCdXJuAgUHYXNzZXRJZAABCQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMIBQFpBmNhbGxlcgABBQdhc3NldElkBQNuaWwBaQEHZGVwb3NpdAAECmN1cnJlbnRLZXkJANgEAQgIBQFpBmNhbGxlcgVieXRlcwQNZGVwb3NpdEFtb3Vud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pdAUDbmlsAIJ0T98=", "height": 2601682, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3kCgctn8UTQtPQPzqTq415tFqZjJFrHGjwRY4TcwnaDj Next: 6py2KX9oKWHjv8AHGXqfSjG1nEcZTzrUDV2LBfz2FCQf Diff:
OldNewDifferences
1-{-# STDLIB_VERSION 5 #-}
1+{-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "3MvjAaDYHpS4A5K4CV3kZMMEH9m9JdBSvbq"
4646 }
4747
4848
49-@Verifier(p)
50-func q () = sigVerify(p.bodyBytes, p.proofs[0], p.senderPublicKey)
51-
Full:
OldNewDifferences
1-{-# STDLIB_VERSION 5 #-}
1+{-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "3MvjAaDYHpS4A5K4CV3kZMMEH9m9JdBSvbq"
55
66 @Callable(b)
77 func call () = {
88 let c = Issue("Asset", "", 1, 0, true, unit, 0)
99 let d = calculateAssetId(c)
1010 [BinaryEntry("bin", base58''), BooleanEntry("bool", true), IntegerEntry("int", 1), StringEntry("str", ""), DeleteEntry("str"), c, Reissue(d, 1, false), Burn(d, 1), ScriptTransfer(b.caller, 1, d)]
1111 }
1212
1313
1414
1515 @Callable(b)
1616 func deposit () = {
1717 let e = toBase58String(b.caller.bytes)
1818 let f = (b.payments[0].amount - 5000000)
1919 let g = 5000000
2020 let h = getIntegerValue(this, ("platform_bal" + a))
2121 let i = (h + g)
2222 [IntegerEntry(("balance_" + e), f), IntegerEntry(("platform_bal_" + a), i)]
2323 }
2424
2525
2626
2727 @Callable(b)
2828 func withDraw (j) = {
2929 let k = toBase58String(b.caller.bytes)
3030 let e = toBase58String(b.caller.bytes)
3131 let l = {
3232 let m = getInteger(this, ("platform_bal_" + k))
3333 if ($isInstanceOf(m, "Int"))
3434 then {
3535 let n = m
3636 n
3737 }
3838 else 0
3939 }
4040 let o = (l - j)
4141 if ((k != a))
4242 then throw("Not Authorized")
4343 else if ((l == 0))
4444 then throw("No sufficent amount available")
4545 else [IntegerEntry(("platform_bal" + a), o), ScriptTransfer(b.caller, j, unit)]
4646 }
4747
4848
49-@Verifier(p)
50-func q () = sigVerify(p.bodyBytes, p.proofs[0], p.senderPublicKey)
51-

github/deemru/w8io/169f3d6 
27.93 ms