tx · 8xuvB84GiyhToGqbiqnzneqWyWmbhQT437RH4nnoRDm6

3Msughfkwji8uccY4RAxuKWvNpnEscWyhHK:  -0.01400000 Waves

2019.07.02 16:42 [567846] smart account 3Msughfkwji8uccY4RAxuKWvNpnEscWyhHK > SELF 0.00000000 Waves

{ "type": 13, "id": "8xuvB84GiyhToGqbiqnzneqWyWmbhQT437RH4nnoRDm6", "fee": 1400000, "feeAssetId": null, "timestamp": 1562074963756, "version": 1, "sender": "3Msughfkwji8uccY4RAxuKWvNpnEscWyhHK", "senderPublicKey": "AzyC6W7iD5HYehj2xef6xWKogmxDC6RaX9N1ST8P39bn", "proofs": [ "ZKgPBZN7PTVKs2WLn7Kpq1Qtuoe5WUeGAHNE2Krspq3s84ckAcoTXLmU3fU4nvipms1MQMAEGPTR77vcyx3Ck6W" ], "script": "base64:AAIDAAAAAAAAAAAAAAALAAAAAAZsZXZlbDEAAAAAAAAAAPoAAAAABmxldmVsMgAAAAAAAAAA+gAAAAAGbGV2ZWwzAAAAAAAAAAD6AAAAAAhjYXNoQmFjawAAAAAAAAAA+gAAAAAGbWF4RmVlAAAAAAAATEtAAAAAAA5jaGFuZ2VPd25lcktleQIAAAAsQUQydmJ6cFIzWk1YaVkxWmhCZHE0aUgxd3o1dzZ0VUNIUHoxdnZOZnlDcUUBAAAAEGJhbGFuY2VJbmNyZW1lbnQAAAACAAAAB2FkZHJlc3MAAAADaW5jBAAAAApiYWxhbmNlS2V5CQABLAAAAAIFAAAAB2FkZHJlc3MCAAAACF9iYWxhbmNlCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAKYmFsYW5jZUtleQkAAGQAAAACBQAAAANpbmMEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAAKYmFsYW5jZUtleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFiBQAAAAckbWF0Y2gwBQAAAAFiAAAAAAAAAAAAAQAAABVpbmRleEJhbGFuY2VJbmNyZW1lbnQA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GNoMQkAASwAAAACAgAAAAEsBQAAAAhyZWZlcmVyMwIAAAAAAgAAAAAJAQAAAAxTY3JpcHRSZXN1bHQAAAACCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAABW93bmVyAgAAAAhfcmVmZXJlcgUAAAAHcmVmZXJlcgkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAALcmVmZXJhbHNLZXkFAAAACHJlZmVyYWxzCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAABW93bmVyAgAAAA1fcmVmc3RydWN0dXJlBQAAAAxyZWZTdHJ1Y3R1cmUFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIIBQAAAAFpAAAAA2ZlZQUAAAAEdW5pdAUAAAADbmlsAAAAAEWSj08=", "chainId": 84, "height": 567846, "spentComplexity": 0 } View: original | compacted Prev: AwPXVTnwBa6LetodXsdtp9SGyNvvcZnLiWTqhHd8wyDg Next: none Diff:
OldNewDifferences
5757 @Callable(v)
5858 func fund () = {
5959 let n = toBase58String(v.callerPublicKey)
60- let y = ((n + ":") + w())
60+ let y = (((n + ":") + w()) + ":")
6161 let z = extract(v.payment).amount
6262 let A = u(v)
6363 ScriptResult(WriteSet({
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 250
55
66 let b = 250
77
88 let c = 250
99
1010 let d = 250
1111
1212 let e = 5000000
1313
1414 let f = "AD2vbzpR3ZMXiY1ZhBdq4iH1wz5w6tUCHPz1vvNfyCqE"
1515
1616 func g (h,i) = {
1717 let j = (h + "_balance")
1818 DataEntry(j, (i + {
1919 let k = getInteger(this, j)
2020 if ($isInstanceOf(k, "Int"))
2121 then {
2222 let l = k
2323 l
2424 }
2525 else 0
2626 }))
2727 }
2828
2929
3030 func m (h,n,i,o) = {
3131 let p = (h + o)
3232 let q = (n + toString(i))
3333 let k = getString(this, p)
3434 if ($isInstanceOf(k, "String"))
3535 then {
3636 let r = k
3737 DataEntry(p, ((r + ",") + q))
3838 }
3939 else DataEntry(p, q)
4040 }
4141
4242
4343 func s (t) = getString(this, (t + "_referer"))
4444
4545
4646 func u (v) = if ((v.fee > e))
4747 then throw("unreasonable large fee")
4848 else true
4949
5050
5151 func w () = {
5252 let x = extract(blockInfoByHeight(height))
5353 toString(x.timestamp)
5454 }
5555
5656
5757 @Callable(v)
5858 func fund () = {
5959 let n = toBase58String(v.callerPublicKey)
60- let y = ((n + ":") + w())
60+ let y = (((n + ":") + w()) + ":")
6161 let z = extract(v.payment).amount
6262 let A = u(v)
6363 ScriptResult(WriteSet({
6464 let k = getString(this, (n + "_refstructure"))
6565 if ($isInstanceOf(k, "String"))
6666 then {
6767 let B = k
6868 let C = split(B, ",")
6969 let D = size(C)
7070 let E = ((z * a) / 1000)
7171 let F = ((z * d) / 1000)
7272 [g(n, F), m(n, y, F, "_txs_cashback"), g(C[0], E), m(C[0], y, E, "_txs_l1"), if ((D >= 2))
7373 then {
7474 let G = ((z * b) / 1000)
7575 [g(C[1], G), m(C[1], y, G, "_txs_l2"), if ((D >= 3))
7676 then {
7777 let H = ((z * c) / 1000)
7878 [g(C[2], H), m(C[2], y, H, "_txs_l3"), g(f, (((z - E) - G) - H)), m(f, y, (((z - E) - G) - H), "_txs_change")]
7979 }
8080 else [g(f, ((z - E) - G)), m(f, y, ((z - E) - G), "_txs_change")]]
8181 }
8282 else [g(f, (z - E)), m(f, y, (z - E), "_txs_change")]]
8383 }
8484 else [g(f, z), m(f, y, z, "_txs_change")]
8585 }), TransferSet([ScriptTransfer(v.caller, v.fee, unit)]))
8686 }
8787
8888
8989
9090 @Callable(v)
9191 func withdraw () = {
9292 let A = u(v)
9393 let n = toBase58String(v.callerPublicKey)
9494 let j = (n + "_balance")
9595 let z = {
9696 let k = getInteger(this, j)
9797 if ($isInstanceOf(k, "Int"))
9898 then {
9999 let l = k
100100 l
101101 }
102102 else 0
103103 }
104104 let I = (n + "_withdraw_txs")
105105 let J = ((((toString(z) + ":") + toBase58String(v.transactionId)) + ":") + w())
106106 let K = {
107107 let k = getString(this, I)
108108 if ($isInstanceOf(k, "String"))
109109 then {
110110 let L = k
111111 ((L + ",") + J)
112112 }
113113 else J
114114 }
115115 ScriptResult(WriteSet([DataEntry(j, 0), DataEntry(I, K)]), TransferSet([ScriptTransfer(v.caller, (z + v.fee), unit)]))
116116 }
117117
118118
119119
120120 @Callable(v)
121121 func register (M,N) = {
122122 let A = u(v)
123123 if ((take(toBase58String(v.transactionId), 3) != "123"))
124124 then throw("proof of work failed")
125125 else {
126126 let n = toBase58String(v.callerPublicKey)
127127 if (isDefined(s(n)))
128128 then throw("Already registered")
129129 else {
130130 let O = (M + "_referrals")
131131 let P = {
132132 let k = getString(this, O)
133133 if ($isInstanceOf(k, "String"))
134134 then {
135135 let Q = k
136136 ((Q + ",") + n)
137137 }
138138 else n
139139 }
140140 let R = (M + {
141141 let k = s(M)
142142 if ($isInstanceOf(k, "String"))
143143 then {
144144 let S = k
145145 (("," + S) + {
146146 let T = s(S)
147147 if ($isInstanceOf(T, "String"))
148148 then {
149149 let U = T
150150 ("," + U)
151151 }
152152 else ""
153153 })
154154 }
155155 else ""
156156 })
157157 ScriptResult(WriteSet([DataEntry((n + "_referer"), M), DataEntry(O, P), DataEntry((n + "_refstructure"), R)]), TransferSet([ScriptTransfer(v.caller, v.fee, unit)]))
158158 }
159159 }
160160 }
161161
162162

github/deemru/w8io/169f3d6 
39.43 ms