tx · H7A13VBTxh1HLVwbf4FDsDwuj2qfQA2LzrBEZNTtxkfb

3Msughfkwji8uccY4RAxuKWvNpnEscWyhHK:  -0.01400000 Waves

2019.07.01 13:39 [566206] smart account 3Msughfkwji8uccY4RAxuKWvNpnEscWyhHK > SELF 0.00000000 Waves

{ "type": 13, "id": "H7A13VBTxh1HLVwbf4FDsDwuj2qfQA2LzrBEZNTtxkfb", "fee": 1400000, "feeAssetId": null, "timestamp": 1561977599862, "version": 1, "sender": "3Msughfkwji8uccY4RAxuKWvNpnEscWyhHK", "senderPublicKey": "AzyC6W7iD5HYehj2xef6xWKogmxDC6RaX9N1ST8P39bn", "proofs": [ "2GyUSuk36vNgbqX19SJpbNepcvjLLfUrzCQZ6yFxLTuSRmvctFyRYUHvZYyXfr63YLTQ6YJLhuusKnoaMbMiJone" ], "script": "base64:AAIDAAAAAAAAAAAAAAAKAAAAAAZsZXZlbDEAAAAAAAAAAPoAAAAABmxldmVsMgAAAAAAAAAA+gAAAAAGbGV2ZWwzAAAAAAAAAAD6AAAAAAhjYXNoQmFjawAAAAAAAAAA+gAAAAAGbWF4RmVlAAAAAAAATEtAAAAAAA5jaGFuZ2VPd25lcktleQIAAAAsQUQydmJ6cFIzWk1YaVkxWmhCZHE0aUgxd3o1dzZ0VUNIUHoxdnZOZnlDcUUBAAAAEGJhbGFuY2VJbmNyZW1lbnQAAAACAAAAB2FkZHJlc3MAAAADaW5jBAAAAApiYWxhbmNlS2V5CQABLAAAAAIFAAAAB2FkZHJlc3MCAAAACF9iYWxhbmNlCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAKYmFsYW5jZUtleQkAAGQAAAACBQAAAANpbmMEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAAKYmFsYW5jZUtleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFiBQAAAAckbWF0Y2gwBQAAAAFiAAAAAAAAAAAAAQAAABVpbmRleEJhbGFuY2VJbmNyZW1l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AAQUAAAAHcmVmZXJlcgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAhyZWZlcmVyMgUAAAAHJG1hdGNoMAkAASwAAAACCQABLAAAAAICAAAAASwFAAAACHJlZmVyZXIyBAAAAAckbWF0Y2gxCQEAAAAKZ2V0UmVmZXJlcgAAAAEFAAAACHJlZmVyZXIyAwkAAAEAAAACBQAAAAckbWF0Y2gxAgAAAAZTdHJpbmcEAAAACHJlZmVyZXIzBQAAAAckbWF0Y2gxCQABLAAAAAICAAAAASwFAAAACHJlZmVyZXIzAgAAAAACAAAAAAkBAAAADFNjcmlwdFJlc3VsdAAAAAIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAFb3duZXICAAAACF9yZWZlcmVyBQAAAAdyZWZlcmVyCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAAtyZWZlcmFsc0tleQUAAAAIcmVmZXJhbHMJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAFb3duZXICAAAADV9yZWZzdHJ1Y3R1cmUFAAAADHJlZlN0cnVjdHVyZQUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcggFAAAAAWkAAAADZmVlBQAAAAR1bml0BQAAAANuaWwAAAAACdpXUQ==", "chainId": 84, "height": 566206, "spentComplexity": 0 } View: original | compacted Prev: 77Gfu262aBddrNvaajnePPJ4CTzUcZ83oo7czhUmPVo9 Next: EgAnnPy2NnSQf9Wgs9pn2oKQdqmCiEhQ2Jy1Srny66TA Diff:
OldNewDifferences
9797
9898 @Callable(i)
9999 func register (referer) = {
100- let cf = checkFee(i)
101- if ((take(toBase58String(i.transactionId), 3) != "123"))
102- then throw("proof of work failed")
100+ let owner = toBase58String(i.callerPublicKey)
101+ if (isDefined(getReferer(owner)))
102+ then throw("Already registered")
103103 else {
104- let owner = toBase58String(i.callerPublicKey)
105- if (isDefined(getReferer(owner)))
106- then throw("Already registered")
107- else {
108- let referalsKey = (referer + "_referrals")
109- let referals = match getString(this, referalsKey) {
110- case oldRefs: String =>
111- ((oldRefs + ",") + owner)
112- case _ =>
113- owner
114- }
115- let refStructure = (referer + match getReferer(referer) {
116- case referer2: String =>
117- (("," + referer2) + match getReferer(referer2) {
118- case referer3: String =>
119- ("," + referer3)
120- case _ =>
121- ""
122- })
104+ let referalsKey = (referer + "_referrals")
105+ let referals = match getString(this, referalsKey) {
106+ case oldRefs: String =>
107+ ((oldRefs + ",") + owner)
108+ case _ =>
109+ owner
110+ }
111+ let refStructure = (referer + match getReferer(referer) {
112+ case referer2: String =>
113+ (("," + referer2) + match getReferer(referer2) {
114+ case referer3: String =>
115+ ("," + referer3)
123116 case _ =>
124117 ""
125118 })
126- ScriptResult(WriteSet([DataEntry((owner + "_referer"), referer), DataEntry(referalsKey, referals), DataEntry((owner + "_refstructure"), refStructure)]), TransferSet([ScriptTransfer(i.caller, i.fee, unit)]))
127- }
119+ case _ =>
120+ ""
121+ })
122+ ScriptResult(WriteSet([DataEntry((owner + "_referer"), referer), DataEntry(referalsKey, referals), DataEntry((owner + "_refstructure"), refStructure)]), TransferSet([ScriptTransfer(i.caller, i.fee, unit)]))
128123 }
129124 }
130125
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let level1 = 250
55
66 let level2 = 250
77
88 let level3 = 250
99
1010 let cashBack = 250
1111
1212 let maxFee = 5000000
1313
1414 let changeOwnerKey = "AD2vbzpR3ZMXiY1ZhBdq4iH1wz5w6tUCHPz1vvNfyCqE"
1515
1616 func balanceIncrement (address,inc) = {
1717 let balanceKey = (address + "_balance")
1818 DataEntry(balanceKey, (inc + match getInteger(this, balanceKey) {
1919 case b: Int =>
2020 b
2121 case _ =>
2222 0
2323 }))
2424 }
2525
2626
2727 func indexBalanceIncrement (address,owner,inc,level) = {
2828 let logKey = (address + level)
2929 let recordData = (owner + toString(inc))
3030 match getString(this, logKey) {
3131 case prev: String =>
3232 DataEntry(logKey, ((prev + ",") + recordData))
3333 case _ =>
3434 DataEntry(logKey, recordData)
3535 }
3636 }
3737
3838
3939 func getReferer (user) = getString(this, (user + "_referer"))
4040
4141
4242 func checkFee (i) = if ((i.fee > maxFee))
4343 then throw("unreasonable large fee")
4444 else true
4545
4646
4747 @Callable(i)
4848 func fund () = {
4949 let owner = toBase58String(i.callerPublicKey)
5050 let block = extract(blockInfoByHeight(height))
5151 let ownerColon = (((owner + ":") + toString(block.timestamp)) + ":")
5252 let amount = extract(i.payment).amount
5353 let cf = checkFee(i)
5454 ScriptResult(WriteSet( match getString(this, (owner + "_refstructure")) {
5555 case refListS: String =>
5656 let refList = split(refListS, ",")
5757 let refListSize = size(refList)
5858 let incLevel1 = ((amount * level1) / 1000)
5959 let incCashBack = ((amount * cashBack) / 1000)
6060 [balanceIncrement(owner, incCashBack), indexBalanceIncrement(owner, ownerColon, incCashBack, "_txs_cashback"), balanceIncrement(refList[0], incLevel1), indexBalanceIncrement(refList[0], ownerColon, incLevel1, "_txs_l1"), if ((refListSize >= 2))
6161 then {
6262 let incLevel2 = ((amount * level2) / 1000)
6363 [balanceIncrement(refList[1], incLevel2), indexBalanceIncrement(refList[1], ownerColon, incLevel2, "_txs_l2"), if ((refListSize >= 3))
6464 then {
6565 let incLevel3 = ((amount * level3) / 1000)
6666 [balanceIncrement(refList[2], incLevel3), indexBalanceIncrement(refList[2], ownerColon, incLevel3, "_txs_l3"), balanceIncrement(changeOwnerKey, (((amount - incLevel1) - incLevel2) - incLevel3)), indexBalanceIncrement(changeOwnerKey, ownerColon, (((amount - incLevel1) - incLevel2) - incLevel3), "_txs_change")]
6767 }
6868 else [balanceIncrement(changeOwnerKey, ((amount - incLevel1) - incLevel2)), indexBalanceIncrement(changeOwnerKey, ownerColon, ((amount - incLevel1) - incLevel2), "_txs_change")]]
6969 }
7070 else [balanceIncrement(changeOwnerKey, (amount - incLevel1)), indexBalanceIncrement(changeOwnerKey, ownerColon, (amount - incLevel1), "_txs_change")]]
7171 case _ =>
7272 [balanceIncrement(changeOwnerKey, amount), indexBalanceIncrement(changeOwnerKey, ownerColon, amount, "_txs_change")]
7373 }), TransferSet([ScriptTransfer(i.caller, i.fee, unit)]))
7474 }
7575
7676
7777
7878 @Callable(i)
7979 func withdraw () = {
8080 let cf = checkFee(i)
8181 let owner = toBase58String(i.callerPublicKey)
8282 let amount = match getInteger(this, (owner + "_balance")) {
8383 case b: Int =>
8484 b
8585 case _ =>
8686 0
8787 }
8888 ScriptResult(WriteSet([DataEntry((owner + "_balance"), 0)]), TransferSet([ScriptTransfer(i.caller, amount, unit)]))
8989 }
9090
9191
9292
9393 @Callable(i)
9494 func test () = WriteSet(nil)
9595
9696
9797
9898 @Callable(i)
9999 func register (referer) = {
100- let cf = checkFee(i)
101- if ((take(toBase58String(i.transactionId), 3) != "123"))
102- then throw("proof of work failed")
100+ let owner = toBase58String(i.callerPublicKey)
101+ if (isDefined(getReferer(owner)))
102+ then throw("Already registered")
103103 else {
104- let owner = toBase58String(i.callerPublicKey)
105- if (isDefined(getReferer(owner)))
106- then throw("Already registered")
107- else {
108- let referalsKey = (referer + "_referrals")
109- let referals = match getString(this, referalsKey) {
110- case oldRefs: String =>
111- ((oldRefs + ",") + owner)
112- case _ =>
113- owner
114- }
115- let refStructure = (referer + match getReferer(referer) {
116- case referer2: String =>
117- (("," + referer2) + match getReferer(referer2) {
118- case referer3: String =>
119- ("," + referer3)
120- case _ =>
121- ""
122- })
104+ let referalsKey = (referer + "_referrals")
105+ let referals = match getString(this, referalsKey) {
106+ case oldRefs: String =>
107+ ((oldRefs + ",") + owner)
108+ case _ =>
109+ owner
110+ }
111+ let refStructure = (referer + match getReferer(referer) {
112+ case referer2: String =>
113+ (("," + referer2) + match getReferer(referer2) {
114+ case referer3: String =>
115+ ("," + referer3)
123116 case _ =>
124117 ""
125118 })
126- ScriptResult(WriteSet([DataEntry((owner + "_referer"), referer), DataEntry(referalsKey, referals), DataEntry((owner + "_refstructure"), refStructure)]), TransferSet([ScriptTransfer(i.caller, i.fee, unit)]))
127- }
119+ case _ =>
120+ ""
121+ })
122+ ScriptResult(WriteSet([DataEntry((owner + "_referer"), referer), DataEntry(referalsKey, referals), DataEntry((owner + "_refstructure"), refStructure)]), TransferSet([ScriptTransfer(i.caller, i.fee, unit)]))
128123 }
129124 }
130125
131126

github/deemru/w8io/169f3d6 
41.20 ms