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 NONE = "none"
55
6+let askID = "WAVES"
7+
8+let bidID = "USD-N"
9+
10+func genKeyID (addr) = toBase58String(sha256(toBytes((addr + toString(this)))))
11+
12+
613 @Callable(i)
7-func defineScalper (Title) = {
14+func defineScalper (title,type,addr) = {
815 let sender = toBase58String(i.caller.bytes)
9- if ((sender != toString(this)))
10- then throw("Only owner can define a new scalper funder")
11- else throw(("Sender is other: " + sender))
16+ let keyID = genKeyID(addr)
17+ WriteSet([DataEntry((keyID + "_scalperID"), addr), DataEntry((keyID + "_title"), title), DataEntry((keyID + "_type"), type), DataEntry((keyID + "_fundraised"), 0), DataEntry((keyID + "_upOutGTD"), 0), DataEntry((keyID + "_downOutGTD"), 0), DataEntry((keyID + "_profit"), 0), DataEntry((keyID + "_profitFee"), 0), DataEntry((keyID + "_grid"), 0), DataEntry((keyID + "_steps"), 0), DataEntry((keyID + "_reOrderOut"), "MIDDLE"), DataEntry((keyID + "_gridAsk"), "undefined asks"), DataEntry((keyID + "_gridBid"), "undefined bids"), DataEntry((keyID + "_lifetime"), 0), DataEntry((keyID + "_blockStart"), 0), DataEntry((keyID + "_blockStop"), 0), DataEntry((keyID + "_status"), "CREATED")])
1218 }
1319
1420
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let NONE = "none"
55
6+let askID = "WAVES"
7+
8+let bidID = "USD-N"
9+
10+func genKeyID (addr) = toBase58String(sha256(toBytes((addr + toString(this)))))
11+
12+
613 @Callable(i)
7-func defineScalper (Title) = {
14+func defineScalper (title,type,addr) = {
815 let sender = toBase58String(i.caller.bytes)
9- if ((sender != toString(this)))
10- then throw("Only owner can define a new scalper funder")
11- else throw(("Sender is other: " + sender))
16+ let keyID = genKeyID(addr)
17+ WriteSet([DataEntry((keyID + "_scalperID"), addr), DataEntry((keyID + "_title"), title), DataEntry((keyID + "_type"), type), DataEntry((keyID + "_fundraised"), 0), DataEntry((keyID + "_upOutGTD"), 0), DataEntry((keyID + "_downOutGTD"), 0), DataEntry((keyID + "_profit"), 0), DataEntry((keyID + "_profitFee"), 0), DataEntry((keyID + "_grid"), 0), DataEntry((keyID + "_steps"), 0), DataEntry((keyID + "_reOrderOut"), "MIDDLE"), DataEntry((keyID + "_gridAsk"), "undefined asks"), DataEntry((keyID + "_gridBid"), "undefined bids"), DataEntry((keyID + "_lifetime"), 0), DataEntry((keyID + "_blockStart"), 0), DataEntry((keyID + "_blockStop"), 0), DataEntry((keyID + "_status"), "CREATED")])
1218 }
1319
1420

github/deemru/w8io/026f985 
24.30 ms