tx · B3kNCXBdMjnmy3769mVHjJgKoaGSeijuyKnm3bHCZtqu

3N9b7vExDf2qqZt2xG9FUsca7iwLVuih1Ta:  -0.01000000 Waves

2023.12.02 18:00 [2869169] smart account 3N9b7vExDf2qqZt2xG9FUsca7iwLVuih1Ta > SELF 0.00000000 Waves

{ "type": 13, "id": "B3kNCXBdMjnmy3769mVHjJgKoaGSeijuyKnm3bHCZtqu", "fee": 1000000, "feeAssetId": null, "timestamp": 1701529248891, "version": 2, "chainId": 84, "sender": "3N9b7vExDf2qqZt2xG9FUsca7iwLVuih1Ta", "senderPublicKey": "4rSYGN3SSXzknh6jLyLqqGdGor584DXdjdP2BAbz7kgt", "proofs": [ "3ERc25gQyxU5KPNtF4Huu8H2knoGckC9qFqLvYYCPcaFErjERXtpyy7kX6SAsCLcBfnDtQJwij2wygZoFnfUZUzT" ], "script": "base64:AAIFAAAAAAAAABcIAhIGCgQIAQgBEgYKBAgIAQESAwoBCAAAAAwAAAAACWRldmVsb3BlcgkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQIAAAAjM01wNlRUaHZiYjh6OW5wcXo0QUszQnlxQWJ2czdkWVM4dVIBAAAACmtleVBhcnRuZXIAAAABAAAAB2FkZHJlc3MJAAEsAAAAAgIAAAAPJXMlc19fcGFydG5lcl9fBQAAAAdhZGRyZXNzAQAAABBrZXlXYW50ZWRBc3NldElkAAAAAQAAAAdhZGRyZXNzCQABLAAAAAICAAAAFSVzJXNfX3dhbnRlZEFzc2V0SWRfXwUAAAAHYWRkcmVzcwEAAAAPa2V5V2FudGVkQW1vdW50AAAAAQAAAAdhZGRyZXNzCQABLAAAAAICAAAAFCVzJXNfX3dhbnRlZEFtb3VudF9fBQAAAAdhZGRyZXNzAQAAAAprZXlBc3NldElkAAAAAQAAAAdvcmRlcklkCQABLAAAAAICAAAADyVzJXNfX2Fzc2V0SWRfXwUAAAAHb3JkZXJJZAEAAAAJa2V5QW1vdW50AAAAAQAAAAdvcmRlcklkCQABLAA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Aphc3NldElkS2V5CQEAAAAKa2V5QXNzZXRJZAAAAAEFAAAAB29yZGVySWQEAAAACmFzc2V0SWRSYXcJAAQdAAAAAgUAAAAEdGhpcwUAAAAKYXNzZXRJZEtleQQAAAAKYXNzZXRJZFN0cgkBAAAABXZhbHVlAAAAAQUAAAAKYXNzZXRJZFJhdwkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAACnJlc3RBbW91bnQJAQAAAAdmcm9tU3RyAAAAAQUAAAAKYXNzZXRJZFN0cgkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAlkZXZlbG9wZXIJAQAAABFAZXh0ck5hdGl2ZSgxMDU1KQAAAAEJAQAAAA1rZXlTZXJ2aWNlRmVlAAAAAQUAAAAHb3JkZXJJZAkBAAAAB2Zyb21TdHIAAAABBQAAAAphc3NldElkU3RyCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAQAAAA1rZXlTZXJ2aWNlRmVlAAAAAQUAAAAHb3JkZXJJZAkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQEAAAAJa2V5QW1vdW50AAAAAQUAAAAHb3JkZXJJZAkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQEAAAAKa2V5T3JkZXJJZAAAAAIFAAAAB29yZGVySWQJAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEJAQAAAAprZXlBc3NldElkAAAAAQUAAAAHb3JkZXJJZAUAAAADbmlsAAAAABPw/48=", "height": 2869169, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: J8up4RiDgz5Xik3tYrNmev5JGyhkPZ2FvRDgxsEVjrzV Next: AUmqRctzf2hwkjM4a7kPc1XPmiYEe2ux4giLGZ6JFWmi Diff:
OldNewDifferences
6060
6161
6262 @Callable(t)
63-func deal (g,c,m,w) = if (!(isDefined(i(g, toString(t.caller)))))
63+func deal (g,c,m,w) = if (!(isDefined(getString(this, i(g, toString(t.caller))))))
6464 then throw(("You don't have an order with this id: " + g))
6565 else if ((m > getIntegerValue(h(g))))
6666 then throw("The transaction cannot be executed because the seller does not have enough funds")
7777
7878
7979 @Callable(t)
80-func cancel (g) = if (!(isDefined(i(g, toString(t.caller)))))
80+func cancel (g) = if (!(isDefined(getString(this, i(g, toString(t.caller))))))
8181 then throw(("You don't have an order with this id: " + g))
8282 else {
8383 let x = getIntegerValue(h(g))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = addressFromStringValue("3Mp6TThvbb8z9npqz4AK3ByqAbvs7dYS8uR")
55
66 func b (c) = ("%s%s__partner__" + c)
77
88
99 func d (c) = ("%s%s__wantedAssetId__" + c)
1010
1111
1212 func e (c) = ("%s%s__wantedAmount__" + c)
1313
1414
1515 func f (g) = ("%s%s__assetId__" + g)
1616
1717
1818 func h (g) = ("%s%s__amount__" + g)
1919
2020
2121 func i (g,j) = ((("%s%s__orderId__" + g) + "__") + j)
2222
2323
2424 func k (g) = ("%s%s__serviceFee__" + g)
2525
2626
2727 func l (m) = m
2828
2929
3030 func n (o) = if ((o == unit))
3131 then "WAVES"
3232 else toBase58String(value(o))
3333
3434
3535 func p (q) = if ((q == "WAVES"))
3636 then unit
3737 else fromBase58String(q)
3838
3939
4040 func r (o) = {
4141 let s = p(o)
4242 if (if ((s != unit))
4343 then (assetInfo(value(s)) == unit)
4444 else false)
4545 then throw("Invalid assetId: assetInfo missing")
4646 else n(s)
4747 }
4848
4949
5050 @Callable(t)
5151 func escrow (g,m,o,u) = if (isDefined(getString(this, i(g, toString(t.caller)))))
5252 then throw(("You already have an order with this id: " + g))
5353 else if ((0 >= m))
5454 then throw("Non-positive order amount")
5555 else {
5656 let v = (m - u)
5757 [IntegerEntry(k(g), u), IntegerEntry(h(g), v), StringEntry(i(g, toString(t.caller)), g), StringEntry(f(g), o)]
5858 }
5959
6060
6161
6262 @Callable(t)
63-func deal (g,c,m,w) = if (!(isDefined(i(g, toString(t.caller)))))
63+func deal (g,c,m,w) = if (!(isDefined(getString(this, i(g, toString(t.caller))))))
6464 then throw(("You don't have an order with this id: " + g))
6565 else if ((m > getIntegerValue(h(g))))
6666 then throw("The transaction cannot be executed because the seller does not have enough funds")
6767 else {
6868 let x = (getIntegerValue(h(g)) - m)
6969 let y = f(g)
7070 let z = getString(this, y)
7171 let q = value(z)
7272 if ((w > x))
7373 then [ScriptTransfer(addressFromStringValue(c), m, p(q)), ScriptTransfer(t.caller, x, p(q)), ScriptTransfer(a, getIntegerValue(k(g)), p(q)), DeleteEntry(k(g)), DeleteEntry(h(g)), DeleteEntry(i(g, toString(t.caller))), DeleteEntry(f(g))]
7474 else [ScriptTransfer(addressFromStringValue(c), m, p(q)), DeleteEntry(h(g)), IntegerEntry(h(g), x)]
7575 }
7676
7777
7878
7979 @Callable(t)
80-func cancel (g) = if (!(isDefined(i(g, toString(t.caller)))))
80+func cancel (g) = if (!(isDefined(getString(this, i(g, toString(t.caller))))))
8181 then throw(("You don't have an order with this id: " + g))
8282 else {
8383 let x = getIntegerValue(h(g))
8484 let y = f(g)
8585 let z = getString(this, y)
8686 let q = value(z)
8787 [ScriptTransfer(t.caller, x, p(q)), ScriptTransfer(a, getIntegerValue(k(g)), p(q)), DeleteEntry(k(g)), DeleteEntry(h(g)), DeleteEntry(i(g, toString(t.caller))), DeleteEntry(f(g))]
8888 }
8989
9090

github/deemru/w8io/169f3d6 
24.72 ms