tx · DRoPF9CCCw9iKA6EbM3Pn1oDSSoko5Kay8nPFRQV7SKg
3N3g1WYmFt7TkNtYqv13ZXuUdiHHXVE6ZM2: -0.01400000 Waves
2019.10.27 16:05 [738564] smart account 3N3g1WYmFt7TkNtYqv13ZXuUdiHHXVE6ZM2 > SELF 0.00000000 Waves
{
"type": 13,
"id": "DRoPF9CCCw9iKA6EbM3Pn1oDSSoko5Kay8nPFRQV7SKg",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1572181562913,
"version": 1,
"sender": "3N3g1WYmFt7TkNtYqv13ZXuUdiHHXVE6ZM2",
"senderPublicKey": "Aky5vMQd8jGjewgAAF9RPrZBVbviKSac31og8C5MuyLU",
"proofs": [
"5x4CcceKEmRy9rpP3VFDnPjLwhCxpGyBiXip7yNemsBLWbC6HC9xcUDraCBswvWfveyNDBgbKapPUufthMcgPbJi"
],
"script": "base64:AAIDAAAAAAAAAA4IARIDCgEIEgUKAwgBCAAAAAAAAAACAAAAAWkBAAAABGluaXQAAAABAAAABXRpdHJlBAAAAAFTCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAAUECAAAAIzNOM2cxV1ltRnQ3VGtOdFlxdjEzWlh1VWRpSEhYVkU2Wk0yAwkAAAAAAAACBQAAAAFTBQAAAAFBCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAJJRAAAAAAAAAAAAAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAADTkJFAAAAAAAAAAAACQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAANNYXgAAAAAAACYloAFAAAAA25pbAkAAAIAAAABAgAAAA1Ob3QgcGVybWl0dGVkAAAAAWkBAAAAAldEAAAAAwAAAAV0aXRyZQAAAANjYXQAAAAEbGluawQAAAANU2VuZGVyQWRkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBA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AABUlEaW5jAwkAAAAAAAACBQAAAAVwM3ZhcgIAAAAEU1RPUAkAAAIAAAABAgAAABJTeXN0ZW0gaXMgb24gcGF1c2UDCQAAAAAAAAIFAAAABXA0dmFyAgAAAAROT05FCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAANNYXgCAAAAAAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAABTQUAAAAEdGVtcAUAAAADbmlsCQAAAgAAAAECAAAADU5vdCBwZXJtaXR0ZWQAAAAAU6IRIg==",
"chainId": 84,
"height": 738564,
"spentComplexity": 0
}
View: original | compacted
Prev: DnsjTeP7BR9F8Qwpr9JNkThHTUXTqxPH1FQpJTwTtKGo
Next: 2ZfivwGFVtJg8JhSKFEiuHecmwc8i2BzAgMF63a3TBgP
Diff:
Old | New | | Differences |
---|
18 | 18 | | func WD (b,e,f) = { |
---|
19 | 19 | | let g = toBase58String(a.caller.bytes) |
---|
20 | 20 | | let h = addressFromStringValue("3N3g1WYmFt7TkNtYqv13ZXuUdiHHXVE6ZM2") |
---|
21 | | - | let i = "Stop" |
---|
22 | | - | let j = "Max" |
---|
23 | | - | let k = "NBE" |
---|
24 | | - | let l = "ID" |
---|
| 21 | + | let i = "ID" |
---|
| 22 | + | let j = "M" |
---|
| 23 | + | let k = "S" |
---|
| 24 | + | let l = 1000000 |
---|
25 | 25 | | let m = { |
---|
26 | | - | let n = getString(h, i) |
---|
27 | | - | if ($isInstanceOf(n, "String")) |
---|
| 26 | + | let n = getInteger(h, i) |
---|
| 27 | + | if ($isInstanceOf(n, "Int")) |
---|
28 | 28 | | then { |
---|
29 | 29 | | let o = n |
---|
30 | 30 | | o |
---|
31 | 31 | | } |
---|
32 | | - | else "NONE" |
---|
| 32 | + | else throw("System not ready") |
---|
33 | 33 | | } |
---|
34 | 34 | | let p = { |
---|
35 | | - | let n = getString(h, j) |
---|
36 | | - | if ($isInstanceOf(n, "String")) |
---|
| 35 | + | let n = getInteger(h, j) |
---|
| 36 | + | if ($isInstanceOf(n, "Int")) |
---|
37 | 37 | | then { |
---|
38 | 38 | | let o = n |
---|
39 | 39 | | o |
---|
|
50 | 50 | | else "NONE" |
---|
51 | 51 | | } |
---|
52 | 52 | | let r = { |
---|
53 | | - | let n = getInteger(h, l) |
---|
54 | | - | if ($isInstanceOf(n, "Int")) |
---|
55 | | - | then { |
---|
56 | | - | let o = n |
---|
57 | | - | o |
---|
58 | | - | } |
---|
59 | | - | else throw("System not ready") |
---|
60 | | - | } |
---|
61 | | - | let s = { |
---|
62 | 53 | | let n = getString(h, g) |
---|
63 | 54 | | if ($isInstanceOf(n, "String")) |
---|
64 | 55 | | then { |
---|
|
67 | 58 | | } |
---|
68 | 59 | | else "NONE" |
---|
69 | 60 | | } |
---|
70 | | - | let t = (r + 1) |
---|
71 | | - | let u = (toString(t) + ".1") |
---|
72 | | - | let v = (toString(t) + ".2") |
---|
73 | | - | let w = toString(t) |
---|
74 | | - | if ((m == "STOP")) |
---|
| 61 | + | let s = (m + 1) |
---|
| 62 | + | let t = (toString(s) + ".1") |
---|
| 63 | + | let u = (toString(s) + ".2") |
---|
| 64 | + | let v = toString(s) |
---|
| 65 | + | if ((q == "STOP")) |
---|
75 | 66 | | then throw("System is on pause") |
---|
76 | | - | else if ((s == "NONE")) |
---|
77 | | - | then WriteSet([DataEntry(w, b), DataEntry(u, e), DataEntry(v, f), DataEntry("ID", t)]) |
---|
| 67 | + | else if ((r == "NONE")) |
---|
| 68 | + | then WriteSet([DataEntry("Max", ""), DataEntry("M", l)]) |
---|
78 | 69 | | else throw("Not permitted") |
---|
79 | 70 | | } |
---|
80 | 71 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(a) |
---|
7 | 7 | | func init (b) = { |
---|
8 | 8 | | let c = toBase58String(a.caller.bytes) |
---|
9 | 9 | | let d = "3N3g1WYmFt7TkNtYqv13ZXuUdiHHXVE6ZM2" |
---|
10 | 10 | | if ((c == d)) |
---|
11 | 11 | | then WriteSet([DataEntry("ID", 0), DataEntry("NBE", 0), DataEntry("Max", 10000000)]) |
---|
12 | 12 | | else throw("Not permitted") |
---|
13 | 13 | | } |
---|
14 | 14 | | |
---|
15 | 15 | | |
---|
16 | 16 | | |
---|
17 | 17 | | @Callable(a) |
---|
18 | 18 | | func WD (b,e,f) = { |
---|
19 | 19 | | let g = toBase58String(a.caller.bytes) |
---|
20 | 20 | | let h = addressFromStringValue("3N3g1WYmFt7TkNtYqv13ZXuUdiHHXVE6ZM2") |
---|
21 | | - | let i = "Stop" |
---|
22 | | - | let j = "Max" |
---|
23 | | - | let k = "NBE" |
---|
24 | | - | let l = "ID" |
---|
| 21 | + | let i = "ID" |
---|
| 22 | + | let j = "M" |
---|
| 23 | + | let k = "S" |
---|
| 24 | + | let l = 1000000 |
---|
25 | 25 | | let m = { |
---|
26 | | - | let n = getString(h, i) |
---|
27 | | - | if ($isInstanceOf(n, "String")) |
---|
| 26 | + | let n = getInteger(h, i) |
---|
| 27 | + | if ($isInstanceOf(n, "Int")) |
---|
28 | 28 | | then { |
---|
29 | 29 | | let o = n |
---|
30 | 30 | | o |
---|
31 | 31 | | } |
---|
32 | | - | else "NONE" |
---|
| 32 | + | else throw("System not ready") |
---|
33 | 33 | | } |
---|
34 | 34 | | let p = { |
---|
35 | | - | let n = getString(h, j) |
---|
36 | | - | if ($isInstanceOf(n, "String")) |
---|
| 35 | + | let n = getInteger(h, j) |
---|
| 36 | + | if ($isInstanceOf(n, "Int")) |
---|
37 | 37 | | then { |
---|
38 | 38 | | let o = n |
---|
39 | 39 | | o |
---|
40 | 40 | | } |
---|
41 | 41 | | else "NONE" |
---|
42 | 42 | | } |
---|
43 | 43 | | let q = { |
---|
44 | 44 | | let n = getString(h, k) |
---|
45 | 45 | | if ($isInstanceOf(n, "String")) |
---|
46 | 46 | | then { |
---|
47 | 47 | | let o = n |
---|
48 | 48 | | o |
---|
49 | 49 | | } |
---|
50 | 50 | | else "NONE" |
---|
51 | 51 | | } |
---|
52 | 52 | | let r = { |
---|
53 | | - | let n = getInteger(h, l) |
---|
54 | | - | if ($isInstanceOf(n, "Int")) |
---|
55 | | - | then { |
---|
56 | | - | let o = n |
---|
57 | | - | o |
---|
58 | | - | } |
---|
59 | | - | else throw("System not ready") |
---|
60 | | - | } |
---|
61 | | - | let s = { |
---|
62 | 53 | | let n = getString(h, g) |
---|
63 | 54 | | if ($isInstanceOf(n, "String")) |
---|
64 | 55 | | then { |
---|
65 | 56 | | let o = n |
---|
66 | 57 | | o |
---|
67 | 58 | | } |
---|
68 | 59 | | else "NONE" |
---|
69 | 60 | | } |
---|
70 | | - | let t = (r + 1) |
---|
71 | | - | let u = (toString(t) + ".1") |
---|
72 | | - | let v = (toString(t) + ".2") |
---|
73 | | - | let w = toString(t) |
---|
74 | | - | if ((m == "STOP")) |
---|
| 61 | + | let s = (m + 1) |
---|
| 62 | + | let t = (toString(s) + ".1") |
---|
| 63 | + | let u = (toString(s) + ".2") |
---|
| 64 | + | let v = toString(s) |
---|
| 65 | + | if ((q == "STOP")) |
---|
75 | 66 | | then throw("System is on pause") |
---|
76 | | - | else if ((s == "NONE")) |
---|
77 | | - | then WriteSet([DataEntry(w, b), DataEntry(u, e), DataEntry(v, f), DataEntry("ID", t)]) |
---|
| 67 | + | else if ((r == "NONE")) |
---|
| 68 | + | then WriteSet([DataEntry("Max", ""), DataEntry("M", l)]) |
---|
78 | 69 | | else throw("Not permitted") |
---|
79 | 70 | | } |
---|
80 | 71 | | |
---|
81 | 72 | | |
---|