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:AAIDAAAAAAAAAAkIARIFCgMICAgAAAAEAAAAAAROT05FAgAAAARub25lAAAAAAVhc2tJRAIAAAAFV0FWRVMAAAAABWJpZElEAgAAAAVVU0QtTgEAAAAIZ2VuS2V5SUQAAAABAAAABGFkZHIJAAJYAAAAAQkAAfcAAAABCQABmwAAAAEJAAEsAAAAAgUAAAAEYWRkcgkABCUAAAABBQAAAAR0aGlzAAAAAQAAAAFpAQAAAA1jcmVhdGVTY2FscGVyAAAAAwAAAAV0aXRsZQAAAAR0eXBlAAAABGFkZHIEAAAABnNlbmRlcgkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAVrZXlJRAkBAAAACGdlbktleUlEAAAAAQUAAAAEYWRkcgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAVrZXlJRAIAAAAKX3NjYWxwZXJJRAUAAAAEYWRkcgkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAVrZXlJRAIAAAAGX3RpdGxlBQAAAAV0aXRsZ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kbGUJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAFa2V5SUQCAAAACF9ncmlkQXNrAgAAAA51bmRlZmluZWQgYXNrcwkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAVrZXlJRAIAAAAIX2dyaWRCaWQCAAAADnVuZGVmaW5lZCBiaWRzCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAABWtleUlEAgAAAAlfbGlmZXRpbWUAAAAAAAAAAAAJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAFa2V5SUQCAAAAC19ibG9ja1N0YXJ0AAAAAAAAAAAACQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAABWtleUlEAgAAAApfYmxvY2tTdG9wAAAAAAAAAAAACQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAABWtleUlEAgAAAAdfc3RhdHVzAgAAAAdjcmVhdGVkBQAAAANuaWwAAAAAlgzjKg==", "chainId": 84, "height": 778568, "spentComplexity": 0 } View: original | compacted Prev: 3vj2Vsp6dGkdJkkWpH2ybD6gDprotEsSuBwNxECRUrmM Next: DwWmdnyWLwJxJqd7fzAzugdcLkz457aiakykgJjiwWwD Diff:
Old | New | Differences | |
---|---|---|---|
11 | 11 | ||
12 | 12 | ||
13 | 13 | @Callable(i) | |
14 | - | func | |
14 | + | func createScalper (title,type,addr) = { | |
15 | 15 | let sender = toBase58String(i.caller.bytes) | |
16 | 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 + "_ordering"), " | |
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")]) | |
18 | 18 | } | |
19 | - | ||
20 | - | ||
21 | - | ||
22 | - | @Callable(i) | |
23 | - | func startScalping () = WriteSet(nil) | |
24 | 19 | ||
25 | 20 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let NONE = "none" | |
5 | 5 | ||
6 | 6 | let askID = "WAVES" | |
7 | 7 | ||
8 | 8 | let bidID = "USD-N" | |
9 | 9 | ||
10 | 10 | func genKeyID (addr) = toBase58String(sha256(toBytes((addr + toString(this))))) | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | @Callable(i) | |
14 | - | func | |
14 | + | func createScalper (title,type,addr) = { | |
15 | 15 | let sender = toBase58String(i.caller.bytes) | |
16 | 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 + "_ordering"), " | |
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")]) | |
18 | 18 | } | |
19 | - | ||
20 | - | ||
21 | - | ||
22 | - | @Callable(i) | |
23 | - | func startScalping () = WriteSet(nil) | |
24 | 19 | ||
25 | 20 |
github/deemru/w8io/026f985 34.08 ms ◑