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 (titre,cat,link) = { |
---|
19 | 19 | | let SenderAddress = toBase58String(i.caller.bytes) |
---|
20 | 20 | | let ParamAddress = addressFromStringValue("3N3g1WYmFt7TkNtYqv13ZXuUdiHHXVE6ZM2") |
---|
21 | | - | let P1 = "Stop" |
---|
22 | | - | let P2 = "Max" |
---|
23 | | - | let P3 = "NBE" |
---|
24 | | - | let P4 = "ID" |
---|
25 | | - | let p1var = match getString(ParamAddress, P1) { |
---|
26 | | - | case a: String => |
---|
| 21 | + | let P1 = "ID" |
---|
| 22 | + | let P2 = "M" |
---|
| 23 | + | let P3 = "S" |
---|
| 24 | + | let temp = 1000000 |
---|
| 25 | + | let p1var = match getInteger(ParamAddress, P1) { |
---|
| 26 | + | case a: Int => |
---|
27 | 27 | | a |
---|
28 | 28 | | case _ => |
---|
29 | | - | "NONE" |
---|
| 29 | + | throw("System not ready") |
---|
30 | 30 | | } |
---|
31 | | - | let p2var = match getString(ParamAddress, P2) { |
---|
32 | | - | case a: String => |
---|
| 31 | + | let p2var = match getInteger(ParamAddress, P2) { |
---|
| 32 | + | case a: Int => |
---|
33 | 33 | | a |
---|
34 | 34 | | case _ => |
---|
35 | 35 | | "NONE" |
---|
|
40 | 40 | | case _ => |
---|
41 | 41 | | "NONE" |
---|
42 | 42 | | } |
---|
43 | | - | let p4var = match getInteger(ParamAddress, P4) { |
---|
44 | | - | case a: Int => |
---|
45 | | - | a |
---|
46 | | - | case _ => |
---|
47 | | - | throw("System not ready") |
---|
48 | | - | } |
---|
49 | | - | let p5var = match getString(ParamAddress, SenderAddress) { |
---|
| 43 | + | let p4var = match getString(ParamAddress, SenderAddress) { |
---|
50 | 44 | | case a: String => |
---|
51 | 45 | | a |
---|
52 | 46 | | case _ => |
---|
53 | 47 | | "NONE" |
---|
54 | 48 | | } |
---|
55 | | - | let IDinc = (p4var + 1) |
---|
| 49 | + | let IDinc = (p1var + 1) |
---|
56 | 50 | | let varID1 = (toString(IDinc) + ".1") |
---|
57 | 51 | | let varID2 = (toString(IDinc) + ".2") |
---|
58 | 52 | | let IDtxt = toString(IDinc) |
---|
59 | | - | if ((p1var == "STOP")) |
---|
| 53 | + | if ((p3var == "STOP")) |
---|
60 | 54 | | then throw("System is on pause") |
---|
61 | | - | else if ((p5var == "NONE")) |
---|
62 | | - | then WriteSet([DataEntry(IDtxt, titre), DataEntry(varID1, cat), DataEntry(varID2, link), DataEntry("ID", IDinc)]) |
---|
| 55 | + | else if ((p4var == "NONE")) |
---|
| 56 | + | then WriteSet([DataEntry("Max", ""), DataEntry("M", temp)]) |
---|
63 | 57 | | else throw("Not permitted") |
---|
64 | 58 | | } |
---|
65 | 59 | | |
---|
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(i) |
---|
7 | 7 | | func init (titre) = { |
---|
8 | 8 | | let S = toBase58String(i.caller.bytes) |
---|
9 | 9 | | let A = "3N3g1WYmFt7TkNtYqv13ZXuUdiHHXVE6ZM2" |
---|
10 | 10 | | if ((S == A)) |
---|
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(i) |
---|
18 | 18 | | func WD (titre,cat,link) = { |
---|
19 | 19 | | let SenderAddress = toBase58String(i.caller.bytes) |
---|
20 | 20 | | let ParamAddress = addressFromStringValue("3N3g1WYmFt7TkNtYqv13ZXuUdiHHXVE6ZM2") |
---|
21 | | - | let P1 = "Stop" |
---|
22 | | - | let P2 = "Max" |
---|
23 | | - | let P3 = "NBE" |
---|
24 | | - | let P4 = "ID" |
---|
25 | | - | let p1var = match getString(ParamAddress, P1) { |
---|
26 | | - | case a: String => |
---|
| 21 | + | let P1 = "ID" |
---|
| 22 | + | let P2 = "M" |
---|
| 23 | + | let P3 = "S" |
---|
| 24 | + | let temp = 1000000 |
---|
| 25 | + | let p1var = match getInteger(ParamAddress, P1) { |
---|
| 26 | + | case a: Int => |
---|
27 | 27 | | a |
---|
28 | 28 | | case _ => |
---|
29 | | - | "NONE" |
---|
| 29 | + | throw("System not ready") |
---|
30 | 30 | | } |
---|
31 | | - | let p2var = match getString(ParamAddress, P2) { |
---|
32 | | - | case a: String => |
---|
| 31 | + | let p2var = match getInteger(ParamAddress, P2) { |
---|
| 32 | + | case a: Int => |
---|
33 | 33 | | a |
---|
34 | 34 | | case _ => |
---|
35 | 35 | | "NONE" |
---|
36 | 36 | | } |
---|
37 | 37 | | let p3var = match getString(ParamAddress, P3) { |
---|
38 | 38 | | case a: String => |
---|
39 | 39 | | a |
---|
40 | 40 | | case _ => |
---|
41 | 41 | | "NONE" |
---|
42 | 42 | | } |
---|
43 | | - | let p4var = match getInteger(ParamAddress, P4) { |
---|
44 | | - | case a: Int => |
---|
45 | | - | a |
---|
46 | | - | case _ => |
---|
47 | | - | throw("System not ready") |
---|
48 | | - | } |
---|
49 | | - | let p5var = match getString(ParamAddress, SenderAddress) { |
---|
| 43 | + | let p4var = match getString(ParamAddress, SenderAddress) { |
---|
50 | 44 | | case a: String => |
---|
51 | 45 | | a |
---|
52 | 46 | | case _ => |
---|
53 | 47 | | "NONE" |
---|
54 | 48 | | } |
---|
55 | | - | let IDinc = (p4var + 1) |
---|
| 49 | + | let IDinc = (p1var + 1) |
---|
56 | 50 | | let varID1 = (toString(IDinc) + ".1") |
---|
57 | 51 | | let varID2 = (toString(IDinc) + ".2") |
---|
58 | 52 | | let IDtxt = toString(IDinc) |
---|
59 | | - | if ((p1var == "STOP")) |
---|
| 53 | + | if ((p3var == "STOP")) |
---|
60 | 54 | | then throw("System is on pause") |
---|
61 | | - | else if ((p5var == "NONE")) |
---|
62 | | - | then WriteSet([DataEntry(IDtxt, titre), DataEntry(varID1, cat), DataEntry(varID2, link), DataEntry("ID", IDinc)]) |
---|
| 55 | + | else if ((p4var == "NONE")) |
---|
| 56 | + | then WriteSet([DataEntry("Max", ""), DataEntry("M", temp)]) |
---|
63 | 57 | | else throw("Not permitted") |
---|
64 | 58 | | } |
---|
65 | 59 | | |
---|
66 | 60 | | |
---|