tx · 2jz8E7xVCf3sphJsWUzQxdB96taAquTVWk7p2DWs9isy

3MuVEuhXaTvF3ELakZksUP77a4bT8gPJtm6:  -0.01000000 Waves

2021.12.04 17:08 [1819633] smart account 3MuVEuhXaTvF3ELakZksUP77a4bT8gPJtm6 > SELF 0.00000000 Waves

{ "type": 13, "id": "2jz8E7xVCf3sphJsWUzQxdB96taAquTVWk7p2DWs9isy", "fee": 1000000, "feeAssetId": null, "timestamp": 1638626967267, "version": 2, "chainId": 84, "sender": "3MuVEuhXaTvF3ELakZksUP77a4bT8gPJtm6", "senderPublicKey": "2LizaCNygFYwGFKe34vvFHgJc4ckK7MpzRzziRNn56Cu", "proofs": [ "HtgVzbGyqBSYCqf4HFvioL52fFEpnp9u6bMrAdD8ZFgi3mKuKevpkzMPXZgpEP25Eue4yMsHuPN8x28zo28c3tr" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAAAgAAAAAGbWFzdGVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUPUYGSQjhSwi99Mcha5hyYJjHFzCelkk9AAAAAAVzZXBhcgIAAAAFfHx8fHwAAAABAAAAAWkBAAAABXBhaW50AAAAAQAAAAVpZGF0YQQAAAAMY2FsbGVyQWRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAABXBpeHh5CQAEtQAAAAIFAAAABWlkYXRhBQAAAAVzZXBhcgQAAAAGbnVtYmVyCQABlwAAAAEJAARMAAAAAgAAAAAAAAAABQkABEwAAAACCQABkAAAAAEFAAAABXBpeHh5BQAAAANuaWwEAAAAB3JlY29yZHMFAAAAA25pbAoBAAAAB3ZhbGlkeHkAAAABAAAAAXgEAAAAByRtYXRjaDAJAAS2AAAAAQkAAZEAAAACBQAAAAVwaXh4eQUAAAABeAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwAwMJAABmAAAAAgkBAAAADXBhcnNlSW50VmFsdWUA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AAAAAAAAAAAAwUAAAAEdW5pdAUAAAADbmlsBQAAAAR1bml0AAAAABFGMRw=", "height": 1819633, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BXytkJEP4K29dKBUc1usZ7yqjfGqyxyGLMAQi9GjqZZc Next: 84d8K7JaJBNgZTfCXDu1KKwEUvfkmeQgFeB1xH4j8SMF Diff:
OldNewDifferences
6363 if (isDefined(q.assetId))
6464 then throw("works with waves only")
6565 else if ((r > q.amount))
66- then throw(((("you give: " + toString(q.amount)) + "deal needs: ") + toString(r)))
66+ then throw(((("you give: " + toString(q.amount)) + ", but deal needs: ") + toString(r)))
6767 else {
6868 let s = [n(0), n(1), n(2), n(3), n(4)]
6969 $Tuple2([StringEntry(s[0][0], s[0][1]), ScriptTransfer(a, parseIntValue(s[0][3]), unit), StringEntry(s[1][0], s[1][1]), ScriptTransfer(a, parseIntValue(s[1][3]), unit), StringEntry(s[2][0], s[2][1]), ScriptTransfer(a, parseIntValue(s[2][3]), unit), StringEntry(s[3][0], s[3][1]), ScriptTransfer(a, parseIntValue(s[3][3]), unit), StringEntry(s[4][0], s[4][1]), ScriptTransfer(a, parseIntValue(s[4][3]), unit)], unit)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = Address(base58'3MuW4t1jCXHt8WRsHVLUar32EnvJxZaQWAx')
55
66 let b = "|||||"
77
88 @Callable(c)
99 func paint (d) = {
1010 let e = toBase58String(c.caller.bytes)
1111 let f = split(d, b)
1212 let g = min([5, size(f)])
1313 let h = nil
1414 func i (j) = {
1515 let k = parseInt(f[j])
1616 if ($isInstanceOf(k, "Int"))
1717 then {
1818 let l = k
1919 if (if ((parseIntValue(f[j]) > -1))
2020 then (1000 > parseIntValue(f[j]))
2121 else false)
2222 then parseInt(f[j])
2323 else false
2424 }
2525 else false
2626 }
2727
2828 func m (j) = {
2929 let k = getString(f[j])
3030 if ($isInstanceOf(k, "String"))
3131 then {
3232 let l = k
3333 l
3434 }
3535 else false
3636 }
3737
3838 func n (j) = if ((j > (g - 1)))
3939 then ["--", "--", "--", "0"]
4040 else if ((i(j) == false))
4141 then ["--", "--", "--", "0"]
4242 else if ((m(j) == false))
4343 then [f[j], makeString([e, "100", "color", "url"], b), "", "100"]
4444 else {
4545 let o = parseIntValue(split(getStringValue(f[j]), b)[1])
4646 [f[j], makeString([e, toString((o + 100)), "color", "url"], b), "", toString(o)]
4747 }
4848
4949 func p (j) = {
5050 let k = parseInt(split(getStringValue(f[j]), b)[1])
5151 if ($isInstanceOf(k, "Int"))
5252 then {
5353 let l = k
5454 parseIntValue(split(getStringValue(f[j]), b)[1])
5555 }
5656 else 0
5757 }
5858
5959 let q = if ((size(c.payments) == 1))
6060 then c.payments[0]
6161 else throw("Attached payment is required")
6262 let r = ((((p(0) + p(1)) + p(2)) + p(3)) + p(4))
6363 if (isDefined(q.assetId))
6464 then throw("works with waves only")
6565 else if ((r > q.amount))
66- then throw(((("you give: " + toString(q.amount)) + "deal needs: ") + toString(r)))
66+ then throw(((("you give: " + toString(q.amount)) + ", but deal needs: ") + toString(r)))
6767 else {
6868 let s = [n(0), n(1), n(2), n(3), n(4)]
6969 $Tuple2([StringEntry(s[0][0], s[0][1]), ScriptTransfer(a, parseIntValue(s[0][3]), unit), StringEntry(s[1][0], s[1][1]), ScriptTransfer(a, parseIntValue(s[1][3]), unit), StringEntry(s[2][0], s[2][1]), ScriptTransfer(a, parseIntValue(s[2][3]), unit), StringEntry(s[3][0], s[3][1]), ScriptTransfer(a, parseIntValue(s[3][3]), unit), StringEntry(s[4][0], s[4][1]), ScriptTransfer(a, parseIntValue(s[4][3]), unit)], unit)
7070 }
7171 }
7272
7373

github/deemru/w8io/169f3d6 
29.94 ms