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 ownerAddress = "3MvjAaDYHpS4A5K4CV3kZMMEH9m9JdBSvbq"
4343 }
4444
4545
46-@Verifier(tx)
47-func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
48-
Full:
OldNewDifferences
1-{-# STDLIB_VERSION 5 #-}
1+{-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let ownerAddress = "3MvjAaDYHpS4A5K4CV3kZMMEH9m9JdBSvbq"
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
1515 @Callable(i)
1616 func deposit () = {
1717 let currentKey = toBase58String(i.caller.bytes)
1818 let depositAmount = (i.payments[0].amount - 5000000)
1919 let platformfee = 5000000
2020 let totalPlatformFee = getIntegerValue(this, ("platform_bal" + ownerAddress))
2121 let platformFeeInc = (totalPlatformFee + platformfee)
2222 [IntegerEntry(("balance_" + currentKey), depositAmount), IntegerEntry(("platform_bal_" + ownerAddress), platformFeeInc)]
2323 }
2424
2525
2626
2727 @Callable(i)
2828 func withDraw (amountToWithDraw) = {
2929 let Caller = toBase58String(i.caller.bytes)
3030 let currentKey = toBase58String(i.caller.bytes)
3131 let currentAmount = match getInteger(this, ("platform_bal_" + Caller)) {
3232 case a: Int =>
3333 a
3434 case _ =>
3535 0
3636 }
3737 let newAmount = (currentAmount - amountToWithDraw)
3838 if ((Caller != ownerAddress))
3939 then throw("Not Authorized")
4040 else if ((currentAmount == 0))
4141 then throw("No sufficent amount available")
4242 else [IntegerEntry(("platform_bal" + ownerAddress), newAmount), ScriptTransfer(i.caller, amountToWithDraw, unit)]
4343 }
4444
4545
46-@Verifier(tx)
47-func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
48-

github/deemru/w8io/169f3d6 
25.64 ms