tx · H7T9nS67ZMcrcF87M1z7uTogVPthE9ZyG2uPnja36MjF

3N3g1WYmFt7TkNtYqv13ZXuUdiHHXVE6ZM2:  -0.01400000 Waves

2020.01.22 17:01 [865552] smart account 3N3g1WYmFt7TkNtYqv13ZXuUdiHHXVE6ZM2 > SELF 0.00000000 Waves

{ "type": 13, "id": "H7T9nS67ZMcrcF87M1z7uTogVPthE9ZyG2uPnja36MjF", "fee": 1400000, "feeAssetId": null, "timestamp": 1579701737073, "version": 1, "sender": "3N3g1WYmFt7TkNtYqv13ZXuUdiHHXVE6ZM2", "senderPublicKey": "Aky5vMQd8jGjewgAAF9RPrZBVbviKSac31og8C5MuyLU", "proofs": [ "HdD7aexoiPQTFmhzYipK1gbFL1vz9tu6D8G9ap2zidf6iEYDHSxwYDHPhkLeUD8r9mAbsSW68qqo9zZQqCyrEEu" ], "script": "base64:AAIDAAAAAAAAABgIARIDCgEIEgMKAQgSAwoBARIFCgMIAQgAAAAAAAAABAAAAAFpAQAAAARpbml0AAAAAQAAAAV0aXRyZQQAAAABUwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAFBAgAAACMzTjNnMVdZbUZ0N1RrTnRZcXYxM1pYdVVkaUhIWFZFNlpNMgMJAAAAAAAAAgUAAAABUwUAAAABQQkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgIAAAACSUQAAAAAAAAAAAAJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAICAAAAAU0AAAAAAACYloAFAAAAA25pbAkAAAIAAAABAgAAAA1Ob3QgcGVybWl0dGVkAAAAAWkBAAAAA2JhbgAAAAEAAAAEYWRkcgQAAAABUwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAFBAgAAACMzTjNnMVdZbUZ0N1RrTnRZcXYxM1pYdVVkaUhIWFZFNlpNMgMJAAAAAAAAAgUAAAABUwUAAAABQQkBAA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G1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAROT05FBAAAAAFsCQAAZAAAAAIFAAAAAWcAAAAAAAAAAAEDAwkAAAAAAAACBQAAAAFqAgAAAARTVE9QBgkAAGYAAAACBQAAAAFsBQAAAAFoCQAAAgAAAAECAAAAElN5c3RlbSBpcyBvbiBwYXVzZQMJAAAAAAAAAgUAAAABawIAAAAETk9ORQQAAAADdmkxCQABLAAAAAIJAAGkAAAAAQUAAAABbAIAAAACLjEEAAAAA3ZpMgkAASwAAAACCQABpAAAAAEFAAAAAWwCAAAAAi4yBAAAAAN2aTMJAAEsAAAAAgkAAaQAAAABBQAAAAFsAgAAAAIuMwQAAAACaXgJAAGkAAAAAQUAAAABbAkBAAAADFNjcmlwdFJlc3VsdAAAAAIJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAAml4BQAAAAV0aXRyZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAADdmkxBQAAAANjYXQJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAAA3ZpMgUAAAAEbGluawkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAADdmkzAAAAAAAAAAAACQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAJJRAUAAAABbAUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQUAAAABZgUAAAACZmYFAAAABHVuaXQFAAAAA25pbAkAAAIAAAABAgAAAA1Ob3QgcGVybWl0dGVkAAAAAPkgN3Q=", "chainId": 84, "height": 865552, "spentComplexity": 0 } View: original | compacted Prev: hznhNMdaqY3QnVuKtYM8SRC9QkYCXiZSSAVQjF7uSRE Next: BWv7dsQ2kchZ7WN3Qx5QpdgUCGejKxpMHuQf9PVLQrrR Diff:
OldNewDifferences
6666 if ((ff > aa))
6767 then throw(((("Not enough fees, : " + toString(aa)) + " recieved. Needed :") + toString(ff)))
6868 else {
69- let p1var = match getInteger(ParamAddress, P1) {
69+ let g = match getInteger(ParamAddress, P1) {
7070 case a: Int =>
7171 a
7272 case _ =>
7373 throw("System not ready")
7474 }
75- let p2var = match getInteger(ParamAddress, P2) {
75+ let h = match getInteger(ParamAddress, P2) {
7676 case a: Int =>
7777 a
7878 case _ =>
7979 throw("System not ready")
8080 }
81- let p3var = match getString(ParamAddress, P3) {
81+ let j = match getString(ParamAddress, P3) {
8282 case a: String =>
8383 a
8484 case _ =>
8585 "N"
8686 }
87- let p4var = match getString(ParamAddress, SenderAddress) {
87+ let k = match getString(ParamAddress, SenderAddress) {
8888 case a: String =>
8989 a
9090 case _ =>
9191 "NONE"
9292 }
93- let IDinc = (p1var + 1)
94- if (if ((p3var == "STOP"))
93+ let l = (g + 1)
94+ if (if ((j == "STOP"))
9595 then true
96- else (IDinc > p2var))
96+ else (l > h))
9797 then throw("System is on pause")
98- else if ((p4var == "NONE"))
98+ else if ((k == "NONE"))
9999 then {
100- let varID1 = (toString(IDinc) + ".1")
101- let varID2 = (toString(IDinc) + ".2")
102- let varID3 = (toString(IDinc) + ".3")
103- let IDtxt = toString(IDinc)
104- ScriptResult(WriteSet([DataEntry(IDtxt, titre), DataEntry(varID1, cat), DataEntry(varID2, link), DataEntry(varID3, 0), DataEntry("ID", IDinc)]), TransferSet([ScriptTransfer(addressFromStringValue(f), ff, unit)]))
100+ let vi1 = (toString(l) + ".1")
101+ let vi2 = (toString(l) + ".2")
102+ let vi3 = (toString(l) + ".3")
103+ let ix = toString(l)
104+ ScriptResult(WriteSet([DataEntry(ix, titre), DataEntry(vi1, cat), DataEntry(vi2, link), DataEntry(vi3, 0), DataEntry("ID", l)]), TransferSet([ScriptTransfer(addressFromStringValue(f), ff, unit)]))
105105 }
106106 else throw("Not permitted")
107107 }
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 ff = 10000000
6161 let P1 = "ID"
6262 let P2 = "M"
6363 let P3 = "S"
6464 let pp = extract(i.payment)
6565 let aa = extract(pp.amount)
6666 if ((ff > aa))
6767 then throw(((("Not enough fees, : " + toString(aa)) + " recieved. Needed :") + toString(ff)))
6868 else {
69- let p1var = match getInteger(ParamAddress, P1) {
69+ let g = match getInteger(ParamAddress, P1) {
7070 case a: Int =>
7171 a
7272 case _ =>
7373 throw("System not ready")
7474 }
75- let p2var = match getInteger(ParamAddress, P2) {
75+ let h = match getInteger(ParamAddress, P2) {
7676 case a: Int =>
7777 a
7878 case _ =>
7979 throw("System not ready")
8080 }
81- let p3var = match getString(ParamAddress, P3) {
81+ let j = match getString(ParamAddress, P3) {
8282 case a: String =>
8383 a
8484 case _ =>
8585 "N"
8686 }
87- let p4var = match getString(ParamAddress, SenderAddress) {
87+ let k = match getString(ParamAddress, SenderAddress) {
8888 case a: String =>
8989 a
9090 case _ =>
9191 "NONE"
9292 }
93- let IDinc = (p1var + 1)
94- if (if ((p3var == "STOP"))
93+ let l = (g + 1)
94+ if (if ((j == "STOP"))
9595 then true
96- else (IDinc > p2var))
96+ else (l > h))
9797 then throw("System is on pause")
98- else if ((p4var == "NONE"))
98+ else if ((k == "NONE"))
9999 then {
100- let varID1 = (toString(IDinc) + ".1")
101- let varID2 = (toString(IDinc) + ".2")
102- let varID3 = (toString(IDinc) + ".3")
103- let IDtxt = toString(IDinc)
104- ScriptResult(WriteSet([DataEntry(IDtxt, titre), DataEntry(varID1, cat), DataEntry(varID2, link), DataEntry(varID3, 0), DataEntry("ID", IDinc)]), TransferSet([ScriptTransfer(addressFromStringValue(f), ff, unit)]))
100+ let vi1 = (toString(l) + ".1")
101+ let vi2 = (toString(l) + ".2")
102+ let vi3 = (toString(l) + ".3")
103+ let ix = toString(l)
104+ ScriptResult(WriteSet([DataEntry(ix, titre), DataEntry(vi1, cat), DataEntry(vi2, link), DataEntry(vi3, 0), DataEntry("ID", l)]), TransferSet([ScriptTransfer(addressFromStringValue(f), ff, unit)]))
105105 }
106106 else throw("Not permitted")
107107 }
108108 }
109109
110110

github/deemru/w8io/c3f4982 
45.18 ms