tx · AyG5mYtE8h1nMHDKi1pMSZBxoy36c3c3px2WK2gaoHDk

3MwjJKGp7PLGJh7pzYrnrN9TnMXph6oL4nH:  -0.05000000 Waves

2019.11.23 10:36 [777573] smart account 3MwjJKGp7PLGJh7pzYrnrN9TnMXph6oL4nH > SELF 0.00000000 Waves

{ "type": 13, "id": "AyG5mYtE8h1nMHDKi1pMSZBxoy36c3c3px2WK2gaoHDk", "fee": 5000000, "feeAssetId": null, "timestamp": 1574494549711, "version": 1, "sender": "3MwjJKGp7PLGJh7pzYrnrN9TnMXph6oL4nH", "senderPublicKey": "9Pw6KBYMgEWmrg24tEc8SkHPhMUBwRmHaJoKjWgDkUAK", "proofs": [ "3V2NgfeuFebbDDpZir3zUgdrux9dtVLsFwVtiXfuWeCfqviBTCd5g9ec24rQnqbZaeS446PxSmUsgUBFCEmjW6bu" ], "script": "base64:AAIDAAAAAAAAAAkIARIFCgMICAgAAAAEAAAAAAROT05FAgAAAARub25lAAAAAAVhc2tJRAIAAAAFV0FWRVMAAAAABWJpZElEAgAAAAVVU0QtTgEAAAAIZ2VuS2V5SUQAAAABAAAABGFkZHIJAAJYAAAAAQkAAfcAAAABCQABmwAAAAEJAAEsAAAAAgUAAAAEYWRkcgkABCUAAAABBQAAAAR0aGlzAAAAAQAAAAFpAQAAAA1kZWZpbmVTY2FscGVyAAAAAwAAAAV0aXRsZQAAAAR0eXBlAAAABGFkZHIEAAAABnNlbmRlcgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAVrZXlJRAkBAAAACGdlbktleUlEAAAAAQUAAAAEYWRkcgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAVrZXlJRAIAAAAKX3NjYWxwZXJJRAUAAAAEYWRkcgkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAVrZXlJRAIAAAAGX3RpdGxlBQAAAAV0aX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AAAAAAAAAACQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAABWtleUlEAgAAAAtfYmxvY2tTdGFydAAAAAAAAAAAAAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAVrZXlJRAIAAAAKX2Jsb2NrU3RvcAAAAAAAAAAAAAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAVrZXlJRAIAAAAHX3N0YXR1cwIAAAAHQ1JFQVRFRAUAAAADbmlsAAAAAI2xLmQ=", "chainId": 84, "height": 777573, "spentComplexity": 0 } View: original | compacted Prev: 2Z8ThWzpKf8uaQTgFeGJA9ZvsV1z7F24GDMgJJif7Q6k Next: 3vj2Vsp6dGkdJkkWpH2ybD6gDprotEsSuBwNxECRUrmM Diff:
OldNewDifferences
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "none"
55
6-@Callable(b)
7-func defineScalper (c) = {
8- let d = toBase58String(b.caller.bytes)
9- if ((d != toString(this)))
10- then throw("Only owner can define a new scalper funder")
11- else throw(("Sender is other: " + d))
6+let b = "WAVES"
7+
8+let c = "USD-N"
9+
10+func d (e) = toBase58String(sha256(toBytes((e + toString(this)))))
11+
12+
13+@Callable(f)
14+func defineScalper (g,h,e) = {
15+ let i = toBase58String(f.caller.bytes)
16+ let j = d(e)
17+ WriteSet([DataEntry((j + "_scalperID"), e), DataEntry((j + "_title"), g), DataEntry((j + "_type"), h), DataEntry((j + "_fundraised"), 0), DataEntry((j + "_upOutGTD"), 0), DataEntry((j + "_downOutGTD"), 0), DataEntry((j + "_profit"), 0), DataEntry((j + "_profitFee"), 0), DataEntry((j + "_grid"), 0), DataEntry((j + "_steps"), 0), DataEntry((j + "_reOrderOut"), "MIDDLE"), DataEntry((j + "_gridAsk"), "undefined asks"), DataEntry((j + "_gridBid"), "undefined bids"), DataEntry((j + "_lifetime"), 0), DataEntry((j + "_blockStart"), 0), DataEntry((j + "_blockStop"), 0), DataEntry((j + "_status"), "CREATED")])
1218 }
1319
1420
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "none"
55
6-@Callable(b)
7-func defineScalper (c) = {
8- let d = toBase58String(b.caller.bytes)
9- if ((d != toString(this)))
10- then throw("Only owner can define a new scalper funder")
11- else throw(("Sender is other: " + d))
6+let b = "WAVES"
7+
8+let c = "USD-N"
9+
10+func d (e) = toBase58String(sha256(toBytes((e + toString(this)))))
11+
12+
13+@Callable(f)
14+func defineScalper (g,h,e) = {
15+ let i = toBase58String(f.caller.bytes)
16+ let j = d(e)
17+ WriteSet([DataEntry((j + "_scalperID"), e), DataEntry((j + "_title"), g), DataEntry((j + "_type"), h), DataEntry((j + "_fundraised"), 0), DataEntry((j + "_upOutGTD"), 0), DataEntry((j + "_downOutGTD"), 0), DataEntry((j + "_profit"), 0), DataEntry((j + "_profitFee"), 0), DataEntry((j + "_grid"), 0), DataEntry((j + "_steps"), 0), DataEntry((j + "_reOrderOut"), "MIDDLE"), DataEntry((j + "_gridAsk"), "undefined asks"), DataEntry((j + "_gridBid"), "undefined bids"), DataEntry((j + "_lifetime"), 0), DataEntry((j + "_blockStart"), 0), DataEntry((j + "_blockStop"), 0), DataEntry((j + "_status"), "CREATED")])
1218 }
1319
1420

github/deemru/w8io/026f985 
21.94 ms