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 | |
---|---|---|---|
6 | 6 | let askID = "WAVES" | |
7 | 7 | ||
8 | 8 | let bidID = "USD-N" | |
9 | + | ||
10 | + | let minPip = 1000000 | |
9 | 11 | ||
10 | 12 | func genKeyID (addr) = toBase58String(sha256(toBytes((addr + toString(this))))) | |
11 | 13 | ||
18 | 20 | } | |
19 | 21 | ||
20 | 22 | ||
23 | + | ||
24 | + | @Callable(i) | |
25 | + | func defineScalping (title) = { | |
26 | + | let sender = toBase58String(i.caller.bytes) | |
27 | + | let keyID = genKeyID(sender) | |
28 | + | WriteSet([DataEntry((keyID + "_priceOpen"), 0)]) | |
29 | + | } | |
30 | + | ||
31 | + |
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 | + | ||
10 | + | let minPip = 1000000 | |
9 | 11 | ||
10 | 12 | func genKeyID (addr) = toBase58String(sha256(toBytes((addr + toString(this))))) | |
11 | 13 | ||
12 | 14 | ||
13 | 15 | @Callable(i) | |
14 | 16 | func createScalper (title,type,addr) = { | |
15 | 17 | let sender = toBase58String(i.caller.bytes) | |
16 | 18 | let keyID = genKeyID(addr) | |
17 | 19 | 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 | 20 | } | |
19 | 21 | ||
20 | 22 | ||
23 | + | ||
24 | + | @Callable(i) | |
25 | + | func defineScalping (title) = { | |
26 | + | let sender = toBase58String(i.caller.bytes) | |
27 | + | let keyID = genKeyID(sender) | |
28 | + | WriteSet([DataEntry((keyID + "_priceOpen"), 0)]) | |
29 | + | } | |
30 | + | ||
31 | + |
github/deemru/w8io/026f985 22.16 ms ◑