tx · DwWmdnyWLwJxJqd7fzAzugdcLkz457aiakykgJjiwWwD 3MwjJKGp7PLGJh7pzYrnrN9TnMXph6oL4nH: -0.05000000 Waves 2019.11.24 03:57 [778617] smart account 3MwjJKGp7PLGJh7pzYrnrN9TnMXph6oL4nH > SELF 0.00000000 Waves
{ "type": 13, "id": "DwWmdnyWLwJxJqd7fzAzugdcLkz457aiakykgJjiwWwD", "fee": 5000000, "feeAssetId": null, "timestamp": 1574557100769, "version": 1, "sender": "3MwjJKGp7PLGJh7pzYrnrN9TnMXph6oL4nH", "senderPublicKey": "9Pw6KBYMgEWmrg24tEc8SkHPhMUBwRmHaJoKjWgDkUAK", "proofs": [ "2orqK1fW77d2Cp9fDFmexHjCHKAfbCjRCU3piQpqLAeXUYnkfjuJSkQKn9CzKzAxjgomRgQ27wasTufMbrR9AkkJ" ], "script": "base64:AAIDAAAAAAAAAA4IARIFCgMICAgSAwoBCAAAAAUAAAAABE5PTkUCAAAABG5vbmUAAAAABWFza0lEAgAAAAVXQVZFUwAAAAAFYmlkSUQCAAAABVVTRC1OAAAAAAZtaW5QaXAAAAAAAAAPQkABAAAACGdlbktleUlEAAAAAQAAAARhZGRyCQACWAAAAAEJAAH3AAAAAQkAAZsAAAABCQABLAAAAAIFAAAABGFkZHIJAAQlAAAAAQUAAAAEdGhpcwAAAAIAAAABaQEAAAANY3JlYXRlU2NhbHBlcgAAAAMAAAAFdGl0bGUAAAAEdHlwZQAAAARhZGRyBAAAAAZzZW5kZXIJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAFa2V5SUQJAQAAAAhnZW5LZXlJRAAAAAEFAAAABGFkZHIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAFa2V5SUQCAAAACl9zY2FscGVySUQFAAAABGFkZHIJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAFa2V5SU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fcmVPcmRlck91dAIAAAAGbWlkZGxlCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAABWtleUlEAgAAAAhfZ3JpZEFzawIAAAAOdW5kZWZpbmVkIGFza3MJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAFa2V5SUQCAAAACF9ncmlkQmlkAgAAAA51bmRlZmluZWQgYmlkcwkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAVrZXlJRAIAAAAJX2xpZmV0aW1lAAAAAAAAAAAACQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIFAAAABWtleUlEAgAAAAtfYmxvY2tTdGFydAAAAAAAAAAAAAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAVrZXlJRAIAAAAKX2Jsb2NrU3RvcAAAAAAAAAAAAAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACBQAAAAVrZXlJRAIAAAAHX3N0YXR1cwIAAAAHY3JlYXRlZAUAAAADbmlsAAAAAWkBAAAADmRlZmluZVNjYWxwaW5nAAAAAQAAAAV0aXRsZQQAAAAGc2VuZGVyCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAABWtleUlECQEAAAAIZ2VuS2V5SUQAAAABBQAAAAZzZW5kZXIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgUAAAAFa2V5SUQCAAAACl9wcmljZU9wZW4AAAAAAAAAAAAFAAAAA25pbAAAAACrm0oa", "chainId": 84, "height": 778617, "spentComplexity": 0 } View: original | compacted Prev: JBdm8JWh4bAMVgE2W8gyLPXWcU5SPmuaBAENYC77KmWf Next: 5npGES93QSi956vrTHhw2ztMGc3gE4M2vpbP9QrU3qLW Diff:
Old | New | Differences | |
---|---|---|---|
7 | 7 | ||
8 | 8 | let c = "USD-N" | |
9 | 9 | ||
10 | - | func d (e) = toBase58String(sha256(toBytes((e + toString(this))))) | |
10 | + | let d = 1000000 | |
11 | + | ||
12 | + | func e (f) = toBase58String(sha256(toBytes((f + toString(this))))) | |
11 | 13 | ||
12 | 14 | ||
13 | - | @Callable(f) | |
14 | - | func createScalper (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 + "_priceOpen"), 0), DataEntry((j + "_priceClose"), 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 + "_ordering"), "middle"), 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")]) | |
15 | + | @Callable(g) | |
16 | + | func createScalper (h,i,f) = { | |
17 | + | let j = toBase58String(g.caller.bytes) | |
18 | + | let k = e(f) | |
19 | + | WriteSet([DataEntry((k + "_scalperID"), f), DataEntry((k + "_title"), h), DataEntry((k + "_type"), i), DataEntry((k + "_fundraised"), 0), DataEntry((k + "_priceOpen"), 0), DataEntry((k + "_priceClose"), 0), DataEntry((k + "_upOutGTD"), 0), DataEntry((k + "_downOutGTD"), 0), DataEntry((k + "_profit"), 0), DataEntry((k + "_profitFee"), 0), DataEntry((k + "_grid"), 0), DataEntry((k + "_steps"), 0), DataEntry((k + "_ordering"), "middle"), DataEntry((k + "_reOrderOut"), "middle"), DataEntry((k + "_gridAsk"), "undefined asks"), DataEntry((k + "_gridBid"), "undefined bids"), DataEntry((k + "_lifetime"), 0), DataEntry((k + "_blockStart"), 0), DataEntry((k + "_blockStop"), 0), DataEntry((k + "_status"), "created")]) | |
20 | + | } | |
21 | + | ||
22 | + | ||
23 | + | ||
24 | + | @Callable(g) | |
25 | + | func defineScalping (h) = { | |
26 | + | let j = toBase58String(g.caller.bytes) | |
27 | + | let k = e(j) | |
28 | + | WriteSet([DataEntry((k + "_priceOpen"), 0)]) | |
18 | 29 | } | |
19 | 30 | ||
20 | 31 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "none" | |
5 | 5 | ||
6 | 6 | let b = "WAVES" | |
7 | 7 | ||
8 | 8 | let c = "USD-N" | |
9 | 9 | ||
10 | - | func d (e) = toBase58String(sha256(toBytes((e + toString(this))))) | |
10 | + | let d = 1000000 | |
11 | + | ||
12 | + | func e (f) = toBase58String(sha256(toBytes((f + toString(this))))) | |
11 | 13 | ||
12 | 14 | ||
13 | - | @Callable(f) | |
14 | - | func createScalper (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 + "_priceOpen"), 0), DataEntry((j + "_priceClose"), 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 + "_ordering"), "middle"), 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")]) | |
15 | + | @Callable(g) | |
16 | + | func createScalper (h,i,f) = { | |
17 | + | let j = toBase58String(g.caller.bytes) | |
18 | + | let k = e(f) | |
19 | + | WriteSet([DataEntry((k + "_scalperID"), f), DataEntry((k + "_title"), h), DataEntry((k + "_type"), i), DataEntry((k + "_fundraised"), 0), DataEntry((k + "_priceOpen"), 0), DataEntry((k + "_priceClose"), 0), DataEntry((k + "_upOutGTD"), 0), DataEntry((k + "_downOutGTD"), 0), DataEntry((k + "_profit"), 0), DataEntry((k + "_profitFee"), 0), DataEntry((k + "_grid"), 0), DataEntry((k + "_steps"), 0), DataEntry((k + "_ordering"), "middle"), DataEntry((k + "_reOrderOut"), "middle"), DataEntry((k + "_gridAsk"), "undefined asks"), DataEntry((k + "_gridBid"), "undefined bids"), DataEntry((k + "_lifetime"), 0), DataEntry((k + "_blockStart"), 0), DataEntry((k + "_blockStop"), 0), DataEntry((k + "_status"), "created")]) | |
20 | + | } | |
21 | + | ||
22 | + | ||
23 | + | ||
24 | + | @Callable(g) | |
25 | + | func defineScalping (h) = { | |
26 | + | let j = toBase58String(g.caller.bytes) | |
27 | + | let k = e(j) | |
28 | + | WriteSet([DataEntry((k + "_priceOpen"), 0)]) | |
18 | 29 | } | |
19 | 30 | ||
20 | 31 |
github/deemru/w8io/026f985 24.41 ms ◑