tx · H1QXaFgLQac6cJ4b8xAFTfVRZ5qABmAdgsZCstyb6jAL

3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB:  -0.01400000 Waves

2019.12.28 11:21 [828649] smart account 3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB > SELF 0.00000000 Waves

{ "type": 13, "id": "H1QXaFgLQac6cJ4b8xAFTfVRZ5qABmAdgsZCstyb6jAL", "fee": 1400000, "feeAssetId": null, "timestamp": 1577521295155, "version": 1, "sender": "3NC28hSivrmsTUXaYD1x6L362J4ZpUnoTdB", "senderPublicKey": "Gd5NihbWQoWuTnSvq25TuV2BYZG4U1e9KDqZn9zBPix7", "proofs": [ "4n8G1HUB23kzw2Skau6C3sBynPmtSQQPM5SU8NUjRikCuVoTpWTJTgZuq7i1BCdRGgVjunttZLFgyjUAX4LPazpv" ], "script": "base64:AAIDAAAAAAAAAAoIARIGCgQICAgIAAAAAgAAAAAIdmVyaWZpZXIJAQAAAAdleHRyYWN0AAAAAQkBAAAAEWFkZHJlc3NGcm9tU3RyaW5nAAAAAQIAAAAjM04yczVSdGFIUEJlbkNzeDJFQ2NvRlJiWUh4M25vWmhYVzEAAAAABGJhbmsCAAAAIzNOMUU2dFhkZFJvVmFSZlE5ZFEzdmc1TGFXMmZzZDhIS3ViAAAAAQAAAAZpbnZva2UBAAAAEWZpbGVDZXJ0aWZpY2F0aW9uAAAABAAAAARoYXNoAAAABXRpdGxlAAAABHV1aWQAAAAEZGF0YQQAAAACaWQJAQAAAAdleHRyYWN0AAAAAQgFAAAABmludm9rZQAAAA10cmFuc2FjdGlvbklkBAAAAAplbnRyeUV4aXN0BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMJAAEsAAAAAgUAAAAEaGFzaAUAAAAEdXVpZAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAROT05FBAAAAAl1dWlkRXhpc3QEAAAAByRt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cmVzcwUAAAAEZGF0YQUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQUAAAAEYmFuawUAAAAGYW1vdW50CAUAAAAHcGF5bWVudAAAAAdhc3NldElkBQAAAANuaWwAAAAAl/9hTg==", "chainId": 84, "height": 828649, "spentComplexity": 0 } View: original | compacted Prev: DL1MoXoAkrCJftoj2qyBcgb1ZYKYFUL3Bs7G4FcawpUs Next: 9ARKRCdVBTtFf7FnRHKMnRjsYhaQScvgxPN7H8tf95oX Diff:
OldNewDifferences
66 let b = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub"
77
88 @Callable(c)
9-func fileCertification (d,e,f,g,h) = {
10- let i = extract(c.transactionId)
11- let j = {
12- let k = getString(this, (d + f))
13- if ($isInstanceOf(k, "String"))
9+func fileCertification (d,e,f,g) = {
10+ let h = extract(c.transactionId)
11+ let i = {
12+ let j = getString(this, (d + f))
13+ if ($isInstanceOf(j, "String"))
1414 then {
15- let l = k
16- l
15+ let k = j
16+ k
1717 }
1818 else "NONE"
1919 }
20- let m = {
21- let k = getString(this, f)
22- if ($isInstanceOf(k, "String"))
20+ let l = {
21+ let j = getString(this, f)
22+ if ($isInstanceOf(j, "String"))
2323 then {
24- let l = k
25- l
24+ let k = j
25+ k
2626 }
2727 else "NONE"
2828 }
29- let n = toBase58String(c.caller.bytes)
30- let o = {
31- let k = getInteger(this, ("addr_WHITELISTED_" + n))
32- if ($isInstanceOf(k, "Int"))
29+ let m = toBase58String(c.caller.bytes)
30+ let n = {
31+ let j = getInteger(this, ("addr_WHITELISTED_" + m))
32+ if ($isInstanceOf(j, "Int"))
3333 then {
34- let l = k
35- l
34+ let k = j
35+ k
3636 }
3737 else 0
3838 }
39- if ((j != "NONE"))
39+ if ((i != "NONE"))
4040 then throw("This entry already exist")
41- else if ((m != "NONE"))
41+ else if ((l != "NONE"))
4242 then throw("This uuid already exist")
4343 else if ((size(f) > 36))
4444 then throw("Uuid is too long")
4646 then throw("Hash is too long")
4747 else if ((size(e) > 64))
4848 then throw("Title is too long")
49- else if ((o > 0))
50- then ScriptResult(WriteSet([DataEntry(f, toBase58String(i)), DataEntry((d + f), toBase58String(i)), DataEntry((e + f), toBase58String(i)), DataEntry(("addr_WHITELISTED_" + n), (o - 1)), DataEntry(((("data_fc_" + toBase58String(i)) + "_") + n), g)]), TransferSet([ScriptTransfer(c.caller, 500000, unit)]))
49+ else if ((n > 0))
50+ then ScriptResult(WriteSet([DataEntry(f, toBase58String(h)), DataEntry((d + f), toBase58String(h)), DataEntry((e + f), toBase58String(h)), DataEntry(("addr_WHITELISTED_" + m), (n - 1)), DataEntry(((("data_fc_" + toBase58String(h)) + "_") + m), g)]), TransferSet([ScriptTransfer(c.caller, 500000, unit)]))
5151 else {
52- let p = extract(c.payment)
53- let q = extract(p.amount)
54- let r = if (isDefined(p.assetId))
55- then extract(p.assetId)
52+ let o = extract(c.payment)
53+ let p = extract(o.amount)
54+ let q = if (isDefined(o.assetId))
55+ then extract(o.assetId)
5656 else throw("Waves is not accepted as payment")
57- let s = {
58- let k = getString(a, ("white_list_token_" + toBase58String(extract(r))))
59- if ($isInstanceOf(k, "String"))
57+ let r = {
58+ let j = getString(a, ("white_list_token_" + toBase58String(extract(q))))
59+ if ($isInstanceOf(j, "String"))
6060 then {
61- let l = k
62- l
61+ let k = j
62+ k
6363 }
6464 else throw("This token is not accepted at the moment")
6565 }
66- let t = getIntegerValue(a, ("certification_fee_" + toBase58String(extract(r))))
67- if ((s != "WHITELISTED"))
66+ let s = getIntegerValue(a, ("certification_fee_" + toBase58String(extract(q))))
67+ if ((r != "WHITELISTED"))
6868 then throw("This token is not accepted at the moment")
69- else if (if ((q != t))
70- then (0 >= o)
69+ else if (if ((p != s))
70+ then (0 >= n)
7171 else false)
7272 then throw("The price is wrong")
73- else ScriptResult(WriteSet([DataEntry(f, toBase58String(i)), DataEntry((d + f), toBase58String(i)), DataEntry((e + f), toBase58String(i)), DataEntry(((("data_fc_" + toBase58String(i)) + "_") + n), g)]), TransferSet([ScriptTransfer(addressFromStringValue(b), q, p.assetId)]))
73+ else ScriptResult(WriteSet([DataEntry(f, toBase58String(h)), DataEntry((d + f), toBase58String(h)), DataEntry((e + f), toBase58String(h)), DataEntry(((("data_fc_" + toBase58String(h)) + "_") + m), g)]), TransferSet([ScriptTransfer(addressFromStringValue(b), p, o.assetId)]))
7474 }
7575 }
7676
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = extract(addressFromString("3N2s5RtaHPBenCsx2ECcoFRbYHx3noZhXW1"))
55
66 let b = "3N1E6tXddRoVaRfQ9dQ3vg5LaW2fsd8HKub"
77
88 @Callable(c)
9-func fileCertification (d,e,f,g,h) = {
10- let i = extract(c.transactionId)
11- let j = {
12- let k = getString(this, (d + f))
13- if ($isInstanceOf(k, "String"))
9+func fileCertification (d,e,f,g) = {
10+ let h = extract(c.transactionId)
11+ let i = {
12+ let j = getString(this, (d + f))
13+ if ($isInstanceOf(j, "String"))
1414 then {
15- let l = k
16- l
15+ let k = j
16+ k
1717 }
1818 else "NONE"
1919 }
20- let m = {
21- let k = getString(this, f)
22- if ($isInstanceOf(k, "String"))
20+ let l = {
21+ let j = getString(this, f)
22+ if ($isInstanceOf(j, "String"))
2323 then {
24- let l = k
25- l
24+ let k = j
25+ k
2626 }
2727 else "NONE"
2828 }
29- let n = toBase58String(c.caller.bytes)
30- let o = {
31- let k = getInteger(this, ("addr_WHITELISTED_" + n))
32- if ($isInstanceOf(k, "Int"))
29+ let m = toBase58String(c.caller.bytes)
30+ let n = {
31+ let j = getInteger(this, ("addr_WHITELISTED_" + m))
32+ if ($isInstanceOf(j, "Int"))
3333 then {
34- let l = k
35- l
34+ let k = j
35+ k
3636 }
3737 else 0
3838 }
39- if ((j != "NONE"))
39+ if ((i != "NONE"))
4040 then throw("This entry already exist")
41- else if ((m != "NONE"))
41+ else if ((l != "NONE"))
4242 then throw("This uuid already exist")
4343 else if ((size(f) > 36))
4444 then throw("Uuid is too long")
4545 else if ((size(d) > 64))
4646 then throw("Hash is too long")
4747 else if ((size(e) > 64))
4848 then throw("Title is too long")
49- else if ((o > 0))
50- then ScriptResult(WriteSet([DataEntry(f, toBase58String(i)), DataEntry((d + f), toBase58String(i)), DataEntry((e + f), toBase58String(i)), DataEntry(("addr_WHITELISTED_" + n), (o - 1)), DataEntry(((("data_fc_" + toBase58String(i)) + "_") + n), g)]), TransferSet([ScriptTransfer(c.caller, 500000, unit)]))
49+ else if ((n > 0))
50+ then ScriptResult(WriteSet([DataEntry(f, toBase58String(h)), DataEntry((d + f), toBase58String(h)), DataEntry((e + f), toBase58String(h)), DataEntry(("addr_WHITELISTED_" + m), (n - 1)), DataEntry(((("data_fc_" + toBase58String(h)) + "_") + m), g)]), TransferSet([ScriptTransfer(c.caller, 500000, unit)]))
5151 else {
52- let p = extract(c.payment)
53- let q = extract(p.amount)
54- let r = if (isDefined(p.assetId))
55- then extract(p.assetId)
52+ let o = extract(c.payment)
53+ let p = extract(o.amount)
54+ let q = if (isDefined(o.assetId))
55+ then extract(o.assetId)
5656 else throw("Waves is not accepted as payment")
57- let s = {
58- let k = getString(a, ("white_list_token_" + toBase58String(extract(r))))
59- if ($isInstanceOf(k, "String"))
57+ let r = {
58+ let j = getString(a, ("white_list_token_" + toBase58String(extract(q))))
59+ if ($isInstanceOf(j, "String"))
6060 then {
61- let l = k
62- l
61+ let k = j
62+ k
6363 }
6464 else throw("This token is not accepted at the moment")
6565 }
66- let t = getIntegerValue(a, ("certification_fee_" + toBase58String(extract(r))))
67- if ((s != "WHITELISTED"))
66+ let s = getIntegerValue(a, ("certification_fee_" + toBase58String(extract(q))))
67+ if ((r != "WHITELISTED"))
6868 then throw("This token is not accepted at the moment")
69- else if (if ((q != t))
70- then (0 >= o)
69+ else if (if ((p != s))
70+ then (0 >= n)
7171 else false)
7272 then throw("The price is wrong")
73- else ScriptResult(WriteSet([DataEntry(f, toBase58String(i)), DataEntry((d + f), toBase58String(i)), DataEntry((e + f), toBase58String(i)), DataEntry(((("data_fc_" + toBase58String(i)) + "_") + n), g)]), TransferSet([ScriptTransfer(addressFromStringValue(b), q, p.assetId)]))
73+ else ScriptResult(WriteSet([DataEntry(f, toBase58String(h)), DataEntry((d + f), toBase58String(h)), DataEntry((e + f), toBase58String(h)), DataEntry(((("data_fc_" + toBase58String(h)) + "_") + m), g)]), TransferSet([ScriptTransfer(addressFromStringValue(b), p, o.assetId)]))
7474 }
7575 }
7676
7777

github/deemru/w8io/026f985 
49.76 ms