tx · JBdm8JWh4bAMVgE2W8gyLPXWcU5SPmuaBAENYC77KmWf

3MwjJKGp7PLGJh7pzYrnrN9TnMXph6oL4nH:  -0.04000000 Waves

2019.11.24 03:11 [778568] smart account 3MwjJKGp7PLGJh7pzYrnrN9TnMXph6oL4nH > SELF 0.00000000 Waves

{ "type": 13, "id": "JBdm8JWh4bAMVgE2W8gyLPXWcU5SPmuaBAENYC77KmWf", "fee": 4000000, "feeAssetId": null, "timestamp": 1574554240041, "version": 1, "sender": "3MwjJKGp7PLGJh7pzYrnrN9TnMXph6oL4nH", "senderPublicKey": "9Pw6KBYMgEWmrg24tEc8SkHPhMUBwRmHaJoKjWgDkUAK", "proofs": [ "SbVHVgy5aGt4BxJWWaaZNfmLFwVnMw5G4DfygYqdySKtAjURvH7BAy3nywfV2WHPWc5EwCebvobUmVDJyFTi989" ], "script": "base64:AAIDAAAAAAAAAAkIARIFCgMICAgAAAAEAAAAAAROT05FAgAAAARub25lAAAAAAVhc2tJRAIAAAAFV0FWRVMAAAAABWJpZElEAgAAAAVVU0QtTgEAAAAIZ2VuS2V5SUQAAAABAAAABGFkZHIJAAJYAAAAAQkAAfcAAAABCQABmwAAAAEJAAEsAAAAAgUAAAAEYWRkcgkABCUAAAABBQAAAAR0aGlzAAAAAQAAAAFpAQAAAA1jcmVhdGVTY2FscGVyAAAAAwAAAAV0aXRsZQAAAAR0eXBlAAAABGFkZHIEAAAABnNlbmRlcgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAVrZXlJRAkBAAAACGdlbktleUlEAAAAAQUAAAAEYWRkcgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAVrZXlJRAIAAAAKX3NjYWxwZXJJRAUAAAAEYWRkcgkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAVrZXlJRAIAAAAGX3RpdGxlBQAAAAV0aXRs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RkbGUJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAFa2V5SUQCAAAACF9ncmlkQXNrAgAAAA51bmRlZmluZWQgYXNrcwkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAVrZXlJRAIAAAAIX2dyaWRCaWQCAAAADnVuZGVmaW5lZCBiaWRzCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAABWtleUlEAgAAAAlfbGlmZXRpbWUAAAAAAAAAAAAJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAFa2V5SUQCAAAAC19ibG9ja1N0YXJ0AAAAAAAAAAAACQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAABWtleUlEAgAAAApfYmxvY2tTdG9wAAAAAAAAAAAACQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAABWtleUlEAgAAAAdfc3RhdHVzAgAAAAdjcmVhdGVkBQAAAANuaWwAAAAAlgzjKg==", "chainId": 84, "height": 778568, "spentComplexity": 0 } View: original | compacted Prev: 3vj2Vsp6dGkdJkkWpH2ybD6gDprotEsSuBwNxECRUrmM Next: DwWmdnyWLwJxJqd7fzAzugdcLkz457aiakykgJjiwWwD Diff:
OldNewDifferences
1111
1212
1313 @Callable(i)
14-func defineScalper (title,type,addr) = {
14+func createScalper (title,type,addr) = {
1515 let sender = toBase58String(i.caller.bytes)
1616 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 + "_ordering"), "MIDDLE"), DataEntry((keyID + "_reOrderOut"), "MIDDLE"), DataEntry((keyID + "_priceOpen"), 0), DataEntry((keyID + "_priceClose"), 0), 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")])
17+ WriteSet([DataEntry((keyID + "_scalperID"), addr), DataEntry((keyID + "_title"), title), DataEntry((keyID + "_type"), type), DataEntry((keyID + "_fundraised"), 0), DataEntry((keyID + "_priceOpen"), 0), DataEntry((keyID + "_priceClose"), 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 + "_ordering"), "middle"), 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")])
1818 }
19-
20-
21-
22-@Callable(i)
23-func startScalping () = WriteSet(nil)
2419
2520
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let NONE = "none"
55
66 let askID = "WAVES"
77
88 let bidID = "USD-N"
99
1010 func genKeyID (addr) = toBase58String(sha256(toBytes((addr + toString(this)))))
1111
1212
1313 @Callable(i)
14-func defineScalper (title,type,addr) = {
14+func createScalper (title,type,addr) = {
1515 let sender = toBase58String(i.caller.bytes)
1616 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 + "_ordering"), "MIDDLE"), DataEntry((keyID + "_reOrderOut"), "MIDDLE"), DataEntry((keyID + "_priceOpen"), 0), DataEntry((keyID + "_priceClose"), 0), 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")])
17+ WriteSet([DataEntry((keyID + "_scalperID"), addr), DataEntry((keyID + "_title"), title), DataEntry((keyID + "_type"), type), DataEntry((keyID + "_fundraised"), 0), DataEntry((keyID + "_priceOpen"), 0), DataEntry((keyID + "_priceClose"), 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 + "_ordering"), "middle"), 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")])
1818 }
19-
20-
21-
22-@Callable(i)
23-func startScalping () = WriteSet(nil)
2419
2520

github/deemru/w8io/026f985 
34.08 ms