tx · 68KJ89KUQjqyGkLmfLqvM2ateQxDDg7FQb1w5rwNCyjF

3N5qejBhCedYyTbK7Qgqxn2T6kubSeHt7pu:  -0.14000000 Waves

2021.10.26 22:04 [1763656] smart account 3N5qejBhCedYyTbK7Qgqxn2T6kubSeHt7pu > SELF 0.00000000 Waves

{ "type": 13, "id": "68KJ89KUQjqyGkLmfLqvM2ateQxDDg7FQb1w5rwNCyjF", "fee": 14000000, "feeAssetId": null, "timestamp": 1635275054407, "version": 2, "chainId": 84, "sender": "3N5qejBhCedYyTbK7Qgqxn2T6kubSeHt7pu", "senderPublicKey": "Ese6jz6mtrhgwJWdXbAxHNHg2qzae5D2xXWuVF7tLfs8", "proofs": [ "THncfWKsJ1gjfrS8QJmmrerDSmURAcyxuHY1Yh7sGRhBiRUZXwxeWNoZQGcpT6TavsGsJ4SuPHRFxiTWBoM5q6C", "jHfG9ZSpZ5WLrbHw1WrqdCwdvKyP7ADAcKtq94mf3twkGHBBgkqkuE1nHL3JirwCmj5DzWEDQbCBvkMEZ9Ejk3i" ], "script": "base64:AAIFAAAAAAAAAA0IAhIAEgMKAQESABIAAAAADQAAAAAMYWRtaW5QdWJLZXkxAQAAACDOIOsfrF/B0g3/qNz0tul4UpbyfoMvXUKuDPJ3pNlvGwAAAAAMYWRtaW5QdWJLZXkyAQAAACDOIOsfrF/B0g3/qNz0tul4UpbyfoMvXUKuDPJ3pNlvGwAAAAAMYWRtaW5QdWJLZXkzAQAAACDOIOsfrF/B0g3/qNz0tul4UpbyfoMvXUKuDPJ3pNlvGwAAAAAUYWRtaW5QdWJLZXlTdGFydFN0b3ABAAAAIM4g6x+sX8HSDf+o3PS26XhSlvJ+gy9dQq4M8nek2W8bAAAAAAlrZXlBY3RpdmUCAAAABmFjdGl2ZQAAAAAIa2V5Q2F1c2UCAAAADnNodXRkb3duX2NhdXNlAAAAABFrZXlVc2VyRU5OT0xvY2tlZAIAAAAMX0VOTk9fYW1vdW50AAAAABJrZXlUb3RhbEVOTk9M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ABAAAAAAAAAAAABAAAABJhZG1pblB1YktleTNTaWduZWQDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAgUAAAAMYWRtaW5QdWJLZXkzAAAAAAAAAAABAAAAAAAAAAAACQAAZwAAAAIJAABkAAAAAgkAAGQAAAACBQAAABJhZG1pblB1YktleTFTaWduZWQFAAAAEmFkbWluUHViS2V5MlNpZ25lZAUAAAASYWRtaW5QdWJLZXkzU2lnbmVkAAAAAAAAAAACUdGX+Q==", "height": 1763656, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 99VdqVvcHu2oZ3shHjvsLVQYRrxwRFxMxPUctAR3RaFr Next: GovS7S95YvAwKdXn6q594We5zP4W72bXPSEMtXkGvfpJ Diff:
OldNewDifferences
1-{-# STDLIB_VERSION 4 #-}
1+{-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'Ese6jz6mtrhgwJWdXbAxHNHg2qzae5D2xXWuVF7tLfs8'
Full:
OldNewDifferences
1-{-# STDLIB_VERSION 4 #-}
1+{-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'Ese6jz6mtrhgwJWdXbAxHNHg2qzae5D2xXWuVF7tLfs8'
55
66 let b = base58'Ese6jz6mtrhgwJWdXbAxHNHg2qzae5D2xXWuVF7tLfs8'
77
88 let c = base58'Ese6jz6mtrhgwJWdXbAxHNHg2qzae5D2xXWuVF7tLfs8'
99
1010 let d = base58'Ese6jz6mtrhgwJWdXbAxHNHg2qzae5D2xXWuVF7tLfs8'
1111
1212 let e = "active"
1313
1414 let f = "shutdown_cause"
1515
1616 let g = "_ENNO_amount"
1717
1818 let h = "total_ENNO_amount"
1919
2020 let i = valueOrElse(getBoolean(this, e), true)
2121
2222 let j = base58'2Tqhz5PWbkijnzYpdLxLDFfVDw5ALQWm2rmxQ79ooMRZ'
2323
2424 func k (l) = [BooleanEntry(e, false), StringEntry(f, l)]
2525
2626
2727 func m (n) = valueOrElse(getInteger(this, (toString(n) + g)), 0)
2828
2929
3030 func o () = valueOrElse(getInteger(this, h), 0)
3131
3232
3333 @Callable(p)
3434 func lockENNO () = if (!(i))
3535 then throw("DApp is inactive at this moment")
3636 else {
3737 let q = $Tuple2(p.payments[0].amount, p.payments[0].assetId)
3838 let r = q._1
3939 let s = q._2
4040 if ((s != j))
4141 then throw("Incorrect pmtAssetId")
4242 else {
4343 let t = m(p.caller)
4444 let u = (t + r)
4545 let v = o()
4646 let w = (v + r)
4747 [IntegerEntry((toString(p.caller) + g), u), IntegerEntry(h, w)]
4848 }
4949 }
5050
5151
5252
5353 @Callable(p)
5454 func withdrawENNO (x) = if (!(i))
5555 then throw("DApp is inactive at this moment")
5656 else if ((0 >= x))
5757 then throw("withdrawAmount <= 0")
5858 else {
5959 let v = o()
6060 let t = m(p.caller)
6161 let y = t
6262 if ((x > y))
6363 then throw("withdrawAmount > availableToUnstake")
6464 else {
6565 let w = (v - x)
6666 let z = (t - x)
6767 [IntegerEntry((toString(p.caller) + g), z), IntegerEntry(h, w), ScriptTransfer(p.caller, x, j)]
6868 }
6969 }
7070
7171
7272
7373 @Callable(p)
7474 func shutdown () = if (!(i))
7575 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, f), "the cause wasn't specified")))
7676 else if (!(containsElement([a, b, c, d], p.callerPublicKey)))
7777 then throw("Only admin can call this function")
7878 else k("Paused by admin")
7979
8080
8181
8282 @Callable(p)
8383 func activate () = if (i)
8484 then throw("DApp is already active")
8585 else if (!(containsElement([a, b, c, d], p.callerPublicKey)))
8686 then throw("Only admin can call this function")
8787 else [BooleanEntry(e, true), DeleteEntry(f)]
8888
8989
9090 @Verifier(A)
9191 func B () = {
9292 let C = if (sigVerify(A.bodyBytes, A.proofs[0], a))
9393 then 1
9494 else 0
9595 let D = if (sigVerify(A.bodyBytes, A.proofs[1], b))
9696 then 1
9797 else 0
9898 let E = if (sigVerify(A.bodyBytes, A.proofs[2], c))
9999 then 1
100100 else 0
101101 (((C + D) + E) >= 2)
102102 }
103103

github/deemru/w8io/169f3d6 
39.55 ms