tx · 3bRLqFnGToib6F8tX8KfoCAYHLFKGMkc4xojURgkUsrF

3N3Aq1GcHD8bZMGyVgyvaTHrBM7EySFtJ1H:  -0.00600000 Waves

2022.06.18 22:38 [2102240] smart account 3N3Aq1GcHD8bZMGyVgyvaTHrBM7EySFtJ1H > SELF 0.00000000 Waves

{ "type": 13, "id": "3bRLqFnGToib6F8tX8KfoCAYHLFKGMkc4xojURgkUsrF", "fee": 600000, "feeAssetId": null, "timestamp": 1655581108248, "version": 2, "chainId": 84, "sender": "3N3Aq1GcHD8bZMGyVgyvaTHrBM7EySFtJ1H", "senderPublicKey": "69Rez9g3wdeHPiCsmjaaaK1GBhFjL79pxMPX9Fpk8S5e", "proofs": [ "4G8p4deu3NPWYadW4dqyHFKVMnmKKgTPwSj6fCTBtWYVAKWGZ6rotar9nBuCcmGEGBQ9aQSDJCaV4wVniSEjBXKn" ], "script": "base64:AAIFAAAAAAAAABAIAhIFCgMIAQESAwoBCBIAAAAAEwAAAAADU0VQAgAAAAJfXwAAAAAFTVVMVDYAAAAAAAAPQkAAAAAABU1VTFQ4AAAAAAAF9eEAAAAAAApBTk9URUlEU1RSAgAAAAVXQVZFUwAAAAAHQU5PVEVJRAkAAlkAAAABBQAAAApBTk9URUlEU1RSAQAAAAxnZXRJbnRPckZhaWwAAAABAAAAA2tleQkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQkAASwAAAACCQABLAAAAAICAAAAD01hbmRhdG9yeSB0aGlzLgUAAAADa2V5AgAAAA8gaXMgbm90IGRlZmluZWQBAAAADGdldFN0ck9yRWxzZQAAAAIAAAADa2V5AAAACmRlZmF1bHRWYWwJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5BQAAAApkZWZhdWx0VmFsAQAAAA9nZXRTdHJpbmdPckZhaWwAAAABAAAAA2tleQkBAAAAE3ZhbHVlT3JFcnJvck1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5zYWN0aW9uSWQFAAAACG1pbmVkQW10BQAAAA1iZW5pZmljYXJ5QW10BQAAAAtwcm90b2NvbEFtdAkABEwAAAACCQEAAAARUmV3YXJkVG90YWxzRW50cnkAAAAEBQAAAAxtaW5lckFkZHJlc3MFAAAACG1pbmVkQW10BQAAAA1iZW5pZmljYXJ5QW10BQAAAAtwcm90b2NvbEFtdAUAAAADbmlsAAAAAWkBAAAABHRlc3QAAAAAAwkBAAAAAiE9AAAAAggFAAAAAWkAAAAGY2FsbGVyBQAAAAR0aGlzCQAAAgAAAAECAAAAEnBlcm1pc3Npb25zIGRlbmllZAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAAR0ZXN0CQAEsAAAAAEJAAH3AAAAAQkAAZsAAAABAgAAAARSaWRlBQAAAANuaWwAAAAAAbQ6eg==", "height": 2102240, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EZ7ZwQuqipLSipS5WukT7hjpMmL83fAS8P8k3qEszpLg Next: AmMd8LxhngsSwn6B8fc7vMjMYPwajYN7WzuJVrqxysNb Diff:
OldNewDifferences
113113 }
114114
115115
116+
117+@Callable(J)
118+func test () = if ((J.caller != this))
119+ then throw("permissions denied")
120+ else [StringEntry("test", toUtf8String(sha256(toBytes("Ride"))))]
121+
122+
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "__"
55
66 let b = 1000000
77
88 let c = 100000000
99
1010 let d = "WAVES"
1111
1212 let e = fromBase58String(d)
1313
1414 func f (g) = valueOrErrorMessage(getInteger(this, g), (("Mandatory this." + g) + " is not defined"))
1515
1616
1717 func h (g,i) = valueOrElse(getString(this, g), i)
1818
1919
2020 func j (g) = valueOrErrorMessage(getString(this, g), (("Mandatory this." + g) + " is not defined"))
2121
2222
2323 func k (g) = valueOrErrorMessage(addressFromString(j(g)), (("Fail to convert this." + g) + " value into Address"))
2424
2525
2626 func l (m) = {
2727 let n = valueOrErrorMessage(addressFromString(m), ("fail to convert into address " + m))
2828 if ((0 > wavesBalance(n).available))
2929 then throw()
3030 else m
3131 }
3232
3333
3434 func o (n) = ("%s%s__totals__" + n)
3535
3636
3737 func p () = "%s%s__cfg__anoteAddress"
3838
3939
4040 func q () = "%s%s__cfg__protocolPartX6"
4141
4242
4343 func r () = "%s%s__cfg__benificaryPartX6"
4444
4545
4646 func s (t,u) = makeString(["%s%s%s", "history", toString(t), toBase58String(u)], a)
4747
4848
4949 func v (w,x,y) = makeString(["%d%d%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(w), toString(x), toString(y)], a)
5050
5151
5252 func z (t,u,A,x,y) = StringEntry(s(t, u), v(A, x, y))
5353
5454
5555 func B (A,x,y) = makeString(["%d%d%d%d%d", toString(A), toString(x), toString(y)], a)
5656
5757
5858 func C (D,A,x,y) = {
5959 let E = o(toString(D))
6060 let F = split(h(E, B(0, 0, 0)), a)
6161 let G = (parseIntValue(F[1]) + A)
6262 let H = (parseIntValue(F[2]) + x)
6363 let I = (parseIntValue(F[3]) + y)
6464 StringEntry(E, B(G, H, I))
6565 }
6666
6767
6868 @Callable(J)
6969 func constructor (K,L,M) = if ((J.caller != this))
7070 then throw("permissions denied")
7171 else if ((0 > L))
7272 then throw("protocolPartX6 less then zero")
7373 else if ((0 > M))
7474 then throw("benificaryPartX6 less then zero")
7575 else if (((L + M) != b))
7676 then throw("parts sum must be 1")
7777 else [StringEntry(p(), l(K)), IntegerEntry(q(), L), IntegerEntry(r(), M)]
7878
7979
8080
8181 @Callable(J)
8282 func distributeMinerReward (N) = if ((size(J.payments) != 1))
8383 then throw("exact 1 payment must be attached")
8484 else if ((J.caller != J.originCaller))
8585 then throw("dapp to dapp calls are not allowed")
8686 else {
8787 let O = J.payments[0]
8888 let A = O.amount
8989 let P = valueOrElse(O.assetId, e)
9090 let Q = J.fee
9191 let R = valueOrElse(J.feeAssetId, e)
9292 if ((P != e))
9393 then throw("only Waves can be used in payment")
9494 else if ((R != e))
9595 then throw("only Waves can be used in fees")
9696 else if ((Q != ((5 * c) / 1000)))
9797 then throw("fee amount couldn't exceed 0.005")
9898 else {
9999 let S = k(p())
100100 let T = J.caller
101101 let U = addressFromStringValue(N)
102102 let V = f(q())
103103 let W = f(r())
104104 let X = (wavesBalance(T).available - Q)
105105 if ((X != 0))
106106 then throw((("all " + toString(X)) + " Wavelets from the Node balance must be attached into the payment"))
107107 else {
108108 let Y = fraction(A, W, b, DOWN)
109109 let y = (A - Y)
110110 [ScriptTransfer(U, Y, unit), ScriptTransfer(S, y, unit), z(T, J.transactionId, A, Y, y), C(T, A, Y, y)]
111111 }
112112 }
113113 }
114114
115115
116+
117+@Callable(J)
118+func test () = if ((J.caller != this))
119+ then throw("permissions denied")
120+ else [StringEntry("test", toUtf8String(sha256(toBytes("Ride"))))]
121+
122+

github/deemru/w8io/026f985 
39.66 ms