tx · 5dtNnjNdnoHmk49iqqVGkQRRGL9J2FenuXy7GKyLfkxN

3MsU428UzSefm85q7jvBsRV66Du7E72xEkL:  -0.01000000 Waves

2022.06.09 16:08 [2088878] smart account 3MsU428UzSefm85q7jvBsRV66Du7E72xEkL > SELF 0.00000000 Waves

{ "type": 13, "id": "5dtNnjNdnoHmk49iqqVGkQRRGL9J2FenuXy7GKyLfkxN", "fee": 1000000, "feeAssetId": null, "timestamp": 1654780101781, "version": 2, "chainId": 84, "sender": "3MsU428UzSefm85q7jvBsRV66Du7E72xEkL", "senderPublicKey": "58FFoU7LCj1DKboVntQXuE3KQDpf92NouXncN5b4vY8U", "proofs": [ "3wkMsJbe2ZtiC7XsjwNTf1mrvQes4dC3uvg6C37xbq6usf8jC6aRcDrpvLP9UoG2Eh7gT2XQ3qPzvbnr5Y1vnoXq" ], "script": "base64:AAIFAAAAAAAAAA0IAhIAEgASABIDCgEIAAAAAwAAAAAFQVNTRVQBAAAAIC03E4HTJDddn+FvdtPRD5PvLCz03YmtXEpW6HzJAXIbAAAAAAtTVEFLRV9BU1NFVAEAAAAgrZ1IFoWReWfvw0p6hpnR3VDpBUk85P5AREeM4YPEwvQAAAAADVJFV0FSRF9BTU9VTlQAAAAAF0h26AAAAAAEAAAAAWkBAAAABXN0YWtlAAAAAAQAAAAJJHQwMjk3MzcyCQAFFAAAAAIICQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAAAABmFtb3VudAgJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAHYXNzZXRJZAQAAAAJcG10QW1vdW50CAUAAAAJJHQwMjk3MzcyAAAAAl8xBAAAAApwbXRBc3NldElkCAUAAAAJJHQwMjk3MzcyAAAAAl8yAwMDCQAAAAAAAAIJAAGQAAAAAQgFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAQAAAAIhPQAAAAIFAAAACnBtdEFzc2V0SWQFAAAAC1NUQUtFX0FT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AAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmVHFwL", "height": 2088878, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8AVX6sJtKNMujW2vXfyGbTmbCR9ZWLJUZf2bfbCXQMK9 Next: 6eC7XpinLjD7ZWisd4M5TyHy41mSk9PgvHEUDHHc5UMq Diff:
OldNewDifferences
2121 else {
2222 let h = toBase58String(d.caller.bytes)
2323 let i = valueOrElse(getInteger(this, (h + "_staked")), 0)
24- let j = (i + f)
25-[IntegerEntry((((h + "_") + toString(height)) + "_staked"), j)]
24+ let j = valueOrElse(getInteger(this, "total"), 0)
25+ let k = (i + f)
26+[IntegerEntry((((h + "_") + toString(height)) + "_staked"), k), IntegerEntry("total", (j + k))]
2627 }
2728 }
2829
3940
4041
4142 @Callable(d)
42-func del (k) = [DeleteEntry(k)]
43+func del (l) = [DeleteEntry(l)]
4344
4445
45-@Verifier(l)
46-func m () = sigVerify(l.bodyBytes, l.proofs[0], l.senderPublicKey)
46+@Verifier(m)
47+func n () = sigVerify(m.bodyBytes, m.proofs[0], m.senderPublicKey)
4748
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'43W4FcqA1rEpSmUGHoGiXvpSLfhadws9LS5j3SJsKxxS'
55
66 let b = base58'CgidgEMbCKXXErgJXVyZCFRaK8SBNA73Jg8mNXALtVKh'
77
88 let c = 100000000000
99
1010 @Callable(d)
1111 func stake () = {
1212 let e = $Tuple2(d.payments[0].amount, d.payments[0].assetId)
1313 let f = e._1
1414 let g = e._2
1515 if (if (if ((size(d.payments) == 0))
1616 then (g != b)
1717 else false)
1818 then (0 >= f)
1919 else false)
2020 then throw("send token to stake")
2121 else {
2222 let h = toBase58String(d.caller.bytes)
2323 let i = valueOrElse(getInteger(this, (h + "_staked")), 0)
24- let j = (i + f)
25-[IntegerEntry((((h + "_") + toString(height)) + "_staked"), j)]
24+ let j = valueOrElse(getInteger(this, "total"), 0)
25+ let k = (i + f)
26+[IntegerEntry((((h + "_") + toString(height)) + "_staked"), k), IntegerEntry("total", (j + k))]
2627 }
2728 }
2829
2930
3031
3132 @Callable(d)
3233 func withdraw () = throw("test")
3334
3435
3536
3637 @Callable(d)
3738 func claimReward () = throw("test")
3839
3940
4041
4142 @Callable(d)
42-func del (k) = [DeleteEntry(k)]
43+func del (l) = [DeleteEntry(l)]
4344
4445
45-@Verifier(l)
46-func m () = sigVerify(l.bodyBytes, l.proofs[0], l.senderPublicKey)
46+@Verifier(m)
47+func n () = sigVerify(m.bodyBytes, m.proofs[0], m.senderPublicKey)
4748

github/deemru/w8io/169f3d6 
31.73 ms