tx · 4MYmdoRMHdkB7ZJau3VAGknALGhg92kkrDtBskELEqF2

3MrxhgqwX2XDUTytfPdpqFwskTwvbPaEUXM:  -0.01400000 Waves

2019.07.03 14:17 [569160] smart account 3MrxhgqwX2XDUTytfPdpqFwskTwvbPaEUXM > SELF 0.00000000 Waves

{ "type": 13, "id": "4MYmdoRMHdkB7ZJau3VAGknALGhg92kkrDtBskELEqF2", "fee": 1400000, "feeAssetId": null, "timestamp": 1562152708351, "version": 1, "sender": "3MrxhgqwX2XDUTytfPdpqFwskTwvbPaEUXM", "senderPublicKey": "DQksuCGotFqvjzf483WL561VxA1t5Uiz4NKRDe7BgaJA", "proofs": [ "5GY9fxbazrWXkrzPmkWjZZg5divX5YEeTp7WoSeY8ByveJvP52ohzVjgMwU2USjH4Ex7UNyD7yQkE9mKJF5TB4Dw" ], "script": "base64:AAIDAAAAAAAAAAAAAAARAAAAAAROT05FAgAAAARub25lAAAAAAtCTEFDS0xJU1RFRAIAAAAJYmxhY2tsaXN0AQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5BAAAAANudW0EAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAFAAAAA251bQEAAAALZ2V0U3RyQnlLZXkAAAABAAAAA2tleQQAAAADc3RyBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhBQAAAAROT05FBQAAAANzdHIBAAAAD2dldEtleUl0ZW1QcmljZQAAAAEAAAAEaXRlbQkAASwAAAACBQAAAARpdGVtAgAAAAZfcHJpY2UBAAAAEWdldFZhbHVlSXRlbVByaWNlAAAAAQAAAARpdGVtCQEAAAAOZ2V0TnVtYmVyQnlL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VyAAAAAQUAAAAEaXRlbQUAAAAETk9ORQkAAAIAAAABAgAAABhhbiBpdGVtIGlzIGFscmVhZHkgZXhpc3QDCQAAAAAAAAIFAAAAEXN1cHBsaWVyd2hpdGVsaXN0BQAAAAtCTEFDS0xJU1RFRAkAAAIAAAABAgAAACdzdXBwbGllcidzIGFjY291bnQgaGFzIGJlZW4gYmxhY2tsaXN0ZWQJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAQAAABJnZXRLZXlJdGVtU3VwcGxpZXIAAAABBQAAAARpdGVtBQAAAA9zdXBwbGllckFkZHJlc3MJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAQAAAA9nZXRLZXlJdGVtUHJpY2UAAAABBQAAAARpdGVtBQAAAAVwcmljZQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkBAAAADmdldEtleUl0ZW1EYXRhAAAAAQUAAAAEaXRlbQUAAAAEZGF0YQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkBAAAAHGdldEV4dEtleUl0ZW1XaGl0ZUxpc3RTdGF0dXMAAAABBQAAAA9zdXBwbGllckFkZHJlc3MFAAAAEXN1cHBsaWVyd2hpdGVsaXN0BQAAAANuaWwAAAAAsMnQiQ==", "chainId": 84, "height": 569160, "spentComplexity": 0 } View: original | compacted Prev: DQJX64V29SxLC6KDsMZa2ddzVCQkjbhJ1EYiSWaM8fZZ Next: Gvb36DQiJgXRdsvDSMigYgf8WjzMhRgsejj2dFhP8bHS Diff:
OldNewDifferences
9494 then throw("an item is already exist")
9595 else if ((G == b))
9696 then throw("supplier's account has been blacklisted")
97- else WriteSet([DataEntry(t(k), F), DataEntry(j(k), D), DataEntry(s(k), E), DataEntry(z(F), (G + "hello"))])
97+ else WriteSet([DataEntry(t(k), F), DataEntry(j(k), D), DataEntry(s(k), E), DataEntry(z(F), G)])
9898 }
9999
100100
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "none"
55
66 let b = "blacklist"
77
88 func c (d) = {
99 let e = {
1010 let f = getInteger(this, d)
1111 if ($isInstanceOf(f, "Int"))
1212 then {
1313 let g = f
1414 g
1515 }
1616 else 0
1717 }
1818 e
1919 }
2020
2121
2222 func h (d) = {
2323 let i = {
2424 let f = getString(this, d)
2525 if ($isInstanceOf(f, "String"))
2626 then {
2727 let g = f
2828 g
2929 }
3030 else a
3131 }
3232 i
3333 }
3434
3535
3636 func j (k) = (k + "_price")
3737
3838
3939 func l (k) = c(j(k))
4040
4141
4242 func m (n,k) = (((k + "_") + n) + "_cnt")
4343
4444
4545 func o (n,k) = c(m(n, k))
4646
4747
4848 func p (q,r) = ("item_" + toBase58String(sha256(toBytes((q + r)))))
4949
5050
5151 func s (k) = (k + "_data")
5252
5353
5454 func t (k) = (k + "_owner")
5555
5656
5757 func u (k) = h(t(k))
5858
5959
6060 func v (w) = (w + "_balance")
6161
6262
6363 func x (w) = c(v(w))
6464
6565
6666 func y () = extract(addressFromString("3N4sHbDeS1vHdESb7XPSXJeiUHgNZwMXZYo"))
6767
6868
6969 func z (w) = (w + "_verifier_status")
7070
7171
7272 func A (B,w) = {
7373 let i = {
7474 let f = getString(B, z(w))
7575 if ($isInstanceOf(f, "String"))
7676 then {
7777 let g = f
7878 w
7979 }
8080 else a
8181 }
8282 i
8383 }
8484
8585
8686 @Callable(C)
8787 func addItem (r,D,E) = {
8888 let F = toBase58String(C.caller.bytes)
8989 let k = p(F, r)
9090 let G = A(y(), F)
9191 if ((0 >= D))
9292 then throw("purchase amount cannot be less than item price")
9393 else if ((u(k) != a))
9494 then throw("an item is already exist")
9595 else if ((G == b))
9696 then throw("supplier's account has been blacklisted")
97- else WriteSet([DataEntry(t(k), F), DataEntry(j(k), D), DataEntry(s(k), E), DataEntry(z(F), (G + "hello"))])
97+ else WriteSet([DataEntry(t(k), F), DataEntry(j(k), D), DataEntry(s(k), E), DataEntry(z(F), G)])
9898 }
9999
100100

github/deemru/w8io/026f985 
42.18 ms