tx · HzoB3EnsgEsGgFj4vSP5e3hUC3gDznvVHQCjkLrJhGMY

3N3g1WYmFt7TkNtYqv13ZXuUdiHHXVE6ZM2:  -0.01400000 Waves

2019.10.27 18:37 [738720] smart account 3N3g1WYmFt7TkNtYqv13ZXuUdiHHXVE6ZM2 > SELF 0.00000000 Waves

{ "type": 13, "id": "HzoB3EnsgEsGgFj4vSP5e3hUC3gDznvVHQCjkLrJhGMY", "fee": 1400000, "feeAssetId": null, "timestamp": 1572190712613, "version": 1, "sender": "3N3g1WYmFt7TkNtYqv13ZXuUdiHHXVE6ZM2", "senderPublicKey": "Aky5vMQd8jGjewgAAF9RPrZBVbviKSac31og8C5MuyLU", "proofs": [ "3epp3bV5fkGKt4TDR91AQT4r7VE5VqNWCMSSVMBHS7Q8mWVDwbY2E6B8NAkEU265G6eYzPcpWjGQiWxkUoumsLN" ], "script": "base64:AAIDAAAAAAAAABgIARIDCgEIEgMKAQgSAwoBARIFCgMIAQgAAAAAAAAABAAAAAFpAQAAAARpbml0AAAAAQAAAAV0aXRyZQQAAAABUwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAFBAgAAACMzTjNnMVdZbUZ0N1RrTnRZcXYxM1pYdVVkaUhIWFZFNlpNMgMJAAAAAAAAAgUAAAABUwUAAAABQQkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAACSUQAAAAAAAAAAAAJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAAAU0AAAAAAACYloAFAAAAA25pbAkAAAIAAAABAgAAAA1Ob3QgcGVybWl0dGVkAAAAAWkBAAAAA2JhbgAAAAEAAAAEYWRkcgQAAAABUwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAFBAgAAACMzTjNnMVdZbUZ0N1RrTnRZcXYxM1pYdVVkaUhIWFZFNlpNMgMJAAAAAAAAAgUAAAABUwUAAAAB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AABkAAAAAgUAAAAFcDF2YXIAAAAAAAAAAAEEAAAABnZhcklEMQkAASwAAAACCQABpAAAAAEFAAAABUlEaW5jAgAAAAIuMQQAAAAGdmFySUQyCQABLAAAAAIJAAGkAAAAAQUAAAAFSURpbmMCAAAAAi4yBAAAAAZ2YXJJRDMJAAEsAAAAAgkAAaQAAAABBQAAAAVJRGluYwIAAAACLjMEAAAABUlEdHh0CQABpAAAAAEFAAAABUlEaW5jAwMJAAAAAAAAAgUAAAAFcDN2YXICAAAABFNUT1AGCQAAZgAAAAIFAAAABUlEaW5jBQAAAAVwMnZhcgkAAAIAAAABAgAAABJTeXN0ZW0gaXMgb24gcGF1c2UDCQAAAAAAAAIFAAAABXA0dmFyAgAAAAROT05FCQEAAAAMU2NyaXB0UmVzdWx0AAAAAgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAFSUR0eHQFAAAABXRpdHJlCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAAZ2YXJJRDEFAAAAA2NhdAkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAGdmFySUQyBQAAAARsaW5rCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAAZ2YXJJRDMAAAAAAAAAAAAJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAAAklEBQAAAAVJRGluYwUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQUAAAABZgAAAAAABfXhAAUAAAAEdW5pdAUAAAADbmlsCQAAAgAAAAECAAAADU5vdCBwZXJtaXR0ZWQAAAAA0xl/Gg==", "chainId": 84, "height": 738720, "spentComplexity": 0 } View: original | compacted Prev: rSqizWdbh3Q8D83yUWBsPVkVs6rzsNm5Tvbt1jDsioP Next: 6vB2r8pmTk9HJNTGjfHSkKxW8GwpKEagxHoZGyhVVbbL Diff:
OldNewDifferences
6060 let P1 = "ID"
6161 let P2 = "M"
6262 let P3 = "S"
63- let p1var = match getInteger(ParamAddress, P1) {
64- case a: Int =>
65- a
66- case _ =>
67- throw("System not ready")
68- }
69- let p2var = match getInteger(ParamAddress, P2) {
70- case a: Int =>
71- a
72- case _ =>
73- throw("System not ready")
74- }
75- let p3var = match getString(ParamAddress, P3) {
76- case a: String =>
77- a
78- case _ =>
79- "N"
80- }
81- let p4var = match getString(ParamAddress, SenderAddress) {
82- case a: String =>
83- a
84- case _ =>
85- "NONE"
86- }
87- let IDinc = (p1var + 1)
88- let varID1 = (toString(IDinc) + ".1")
89- let varID2 = (toString(IDinc) + ".2")
90- let varID3 = (toString(IDinc) + ".3")
91- let IDtxt = toString(IDinc)
92- if (if ((p3var == "STOP"))
93- then true
94- else (IDinc > p2var))
95- then throw("System is on pause")
96- else if ((p4var == "NONE"))
97- then ScriptResult(WriteSet([DataEntry(IDtxt, titre), DataEntry(varID1, cat), DataEntry(varID2, link), DataEntry(varID3, 0), DataEntry("ID", IDinc)]), TransferSet([ScriptTransfer(addressFromStringValue(f), 100000000, unit)]))
98- else throw("Not permitted")
63+ let payment = extract(i.payment)
64+ let amount = extract(payment.amount)
65+ if ((100000000 > amount))
66+ then throw("Not enough fees")
67+ else {
68+ let p1var = match getInteger(ParamAddress, P1) {
69+ case a: Int =>
70+ a
71+ case _ =>
72+ throw("System not ready")
73+ }
74+ let p2var = match getInteger(ParamAddress, P2) {
75+ case a: Int =>
76+ a
77+ case _ =>
78+ throw("System not ready")
79+ }
80+ let p3var = match getString(ParamAddress, P3) {
81+ case a: String =>
82+ a
83+ case _ =>
84+ "N"
85+ }
86+ let p4var = match getString(ParamAddress, SenderAddress) {
87+ case a: String =>
88+ a
89+ case _ =>
90+ "NONE"
91+ }
92+ let IDinc = (p1var + 1)
93+ let varID1 = (toString(IDinc) + ".1")
94+ let varID2 = (toString(IDinc) + ".2")
95+ let varID3 = (toString(IDinc) + ".3")
96+ let IDtxt = toString(IDinc)
97+ if (if ((p3var == "STOP"))
98+ then true
99+ else (IDinc > p2var))
100+ then throw("System is on pause")
101+ else if ((p4var == "NONE"))
102+ then ScriptResult(WriteSet([DataEntry(IDtxt, titre), DataEntry(varID1, cat), DataEntry(varID2, link), DataEntry(varID3, 0), DataEntry("ID", IDinc)]), TransferSet([ScriptTransfer(addressFromStringValue(f), 100000000, unit)]))
103+ else throw("Not permitted")
104+ }
99105 }
100106
101107
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func init (titre) = {
88 let S = toBase58String(i.caller.bytes)
99 let A = "3N3g1WYmFt7TkNtYqv13ZXuUdiHHXVE6ZM2"
1010 if ((S == A))
1111 then WriteSet([DataEntry("ID", 0), DataEntry("M", 10000000)])
1212 else throw("Not permitted")
1313 }
1414
1515
1616
1717 @Callable(i)
1818 func ban (addr) = {
1919 let S = toBase58String(i.caller.bytes)
2020 let A = "3N3g1WYmFt7TkNtYqv13ZXuUdiHHXVE6ZM2"
2121 if ((S == A))
2222 then WriteSet([DataEntry(addr, 1)])
2323 else throw("Not permitted")
2424 }
2525
2626
2727
2828 @Callable(i)
2929 func rep (id) = {
3030 let S = toBase58String(i.caller.bytes)
3131 let PA = addressFromStringValue("3N3g1WYmFt7TkNtYqv13ZXuUdiHHXVE6ZM2")
3232 let v = (toString(id) + ".3")
3333 let ib = match getString(PA, S) {
3434 case a: String =>
3535 a
3636 case _ =>
3737 "NONE"
3838 }
3939 let vv = match getInteger(PA, v) {
4040 case a: Int =>
4141 a
4242 case _ =>
4343 throw("Entry not found")
4444 }
4545 if ((ib == "NONE"))
4646 then {
4747 let vvv = (vv + 1)
4848 WriteSet([DataEntry(v, vvv)])
4949 }
5050 else throw("Not permitted")
5151 }
5252
5353
5454
5555 @Callable(i)
5656 func WD (titre,cat,link) = {
5757 let SenderAddress = toBase58String(i.caller.bytes)
5858 let ParamAddress = addressFromStringValue("3N3g1WYmFt7TkNtYqv13ZXuUdiHHXVE6ZM2")
5959 let f = "3MpW7tZSLLLmZnKyw4yFHb9g2a8xNGwppKX"
6060 let P1 = "ID"
6161 let P2 = "M"
6262 let P3 = "S"
63- let p1var = match getInteger(ParamAddress, P1) {
64- case a: Int =>
65- a
66- case _ =>
67- throw("System not ready")
68- }
69- let p2var = match getInteger(ParamAddress, P2) {
70- case a: Int =>
71- a
72- case _ =>
73- throw("System not ready")
74- }
75- let p3var = match getString(ParamAddress, P3) {
76- case a: String =>
77- a
78- case _ =>
79- "N"
80- }
81- let p4var = match getString(ParamAddress, SenderAddress) {
82- case a: String =>
83- a
84- case _ =>
85- "NONE"
86- }
87- let IDinc = (p1var + 1)
88- let varID1 = (toString(IDinc) + ".1")
89- let varID2 = (toString(IDinc) + ".2")
90- let varID3 = (toString(IDinc) + ".3")
91- let IDtxt = toString(IDinc)
92- if (if ((p3var == "STOP"))
93- then true
94- else (IDinc > p2var))
95- then throw("System is on pause")
96- else if ((p4var == "NONE"))
97- then ScriptResult(WriteSet([DataEntry(IDtxt, titre), DataEntry(varID1, cat), DataEntry(varID2, link), DataEntry(varID3, 0), DataEntry("ID", IDinc)]), TransferSet([ScriptTransfer(addressFromStringValue(f), 100000000, unit)]))
98- else throw("Not permitted")
63+ let payment = extract(i.payment)
64+ let amount = extract(payment.amount)
65+ if ((100000000 > amount))
66+ then throw("Not enough fees")
67+ else {
68+ let p1var = match getInteger(ParamAddress, P1) {
69+ case a: Int =>
70+ a
71+ case _ =>
72+ throw("System not ready")
73+ }
74+ let p2var = match getInteger(ParamAddress, P2) {
75+ case a: Int =>
76+ a
77+ case _ =>
78+ throw("System not ready")
79+ }
80+ let p3var = match getString(ParamAddress, P3) {
81+ case a: String =>
82+ a
83+ case _ =>
84+ "N"
85+ }
86+ let p4var = match getString(ParamAddress, SenderAddress) {
87+ case a: String =>
88+ a
89+ case _ =>
90+ "NONE"
91+ }
92+ let IDinc = (p1var + 1)
93+ let varID1 = (toString(IDinc) + ".1")
94+ let varID2 = (toString(IDinc) + ".2")
95+ let varID3 = (toString(IDinc) + ".3")
96+ let IDtxt = toString(IDinc)
97+ if (if ((p3var == "STOP"))
98+ then true
99+ else (IDinc > p2var))
100+ then throw("System is on pause")
101+ else if ((p4var == "NONE"))
102+ then ScriptResult(WriteSet([DataEntry(IDtxt, titre), DataEntry(varID1, cat), DataEntry(varID2, link), DataEntry(varID3, 0), DataEntry("ID", IDinc)]), TransferSet([ScriptTransfer(addressFromStringValue(f), 100000000, unit)]))
103+ else throw("Not permitted")
104+ }
99105 }
100106
101107

github/deemru/w8io/169f3d6 
53.82 ms