tx · 5QFKGTXPFtaphuBmKqvzqoYJsBPLsMbRGQquaz6g4z4R
3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq: -0.01000000 Waves
2023.05.20 22:46 [2586732] smart account 3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq > SELF 0.00000000 Waves
{
"type": 13,
"id": "5QFKGTXPFtaphuBmKqvzqoYJsBPLsMbRGQquaz6g4z4R",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1684612047882,
"version": 2,
"chainId": 84,
"sender": "3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq",
"senderPublicKey": "ERewvWFUFQfR1eCnipNAv9n7SdQhof2ESP6PGVjTueLd",
"proofs": [
"mvhMzWjCKDVPSYKMEncSbQbeZe8kgC4ik2jp2B91NLtbjKdPtsKSGaTHZeGnaXQnDjKEqQi2pZ76SWbCeoghSkR"
],
"script": "base64:BgINCAISAwoBARIECgIIAQACAWkBBmJvcnJvdwELYXNzZXRBbW91bnQED3NtYXJ0Y29udHJhY3RJZAkBB0FkZHJlc3MBARoBVJHyspw5c5zCcXIim0BCoGwdZ5WG+0VDrgQHdG9rZW5JZAkBB0FkZHJlc3MBASAP8hwSrOTEPJrsRhqrJaiw7LoHK0bMbYhy8LXikkkBtAQHYWRkcmVzcwkApQgBCAUBaQZjYWxsZXIEA3JlcwkA/AcEBQ9zbWFydGNvbnRyYWN0SWQCBmJvcnJvdwkAzAgCBQd0b2tlbklkCQDMCAIFC2Fzc2V0QW1vdW50BQNuaWwJAMwIAgkBD0F0dGFjaGVkUGF5bWVudAIFBHVuaXQAgMLXLwUDbmlsAwkAAAIFA3JlcwUDcmVzBAckbWF0Y2gwBQNyZXMDCQABAgUHJG1hdGNoMAIDSW50BAFyBQckbWF0Y2gwCQCUCgIJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgUHYWRkcmVzcwIKX2JvcnJvd2VkXwUBcgUDbmlsBQFyCQACAQIXSW5jb3JyZWN0IGludm9rZSByZXN1bHQJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BaQEId2l0aGRyYXcCCmFzc2V0SWRTdHILYXNzZXRBbW91bnQED3NtYXJ0Y29udHJhY3RJZAkBB0FkZHJlc3MBARoBVJHyspw5c5zCcXIim0BCoGwdZ5WG+0VDrgQHdG9rZW5JZAkBB0FkZHJlc3MBASAP8hwSrOTEPJrsRhqrJaiw7LoHK0bMbYhy8LXikkkBtAQHYWRkcmVzcwkApQgBCAUBaQZjYWxsZXIEA3JlcwkA/AcEBQ9zbWFydGNvbnRyYWN0SWQCCHdpdGhkcmF3CQDMCAIJARFAZXh0ck5hdGl2ZSgxMDYyKQEFCmFzc2V0SWRTdHIJAMwIAgULYXNzZXRBbW91bnQFA25pbAkAzAgCCQEPQXR0YWNoZWRQYXltZW50AgUEdW5pdACAwtcvBQNuaWwDCQAAAgUDcmVzBQNyZXMEByRtYXRjaDAFA3JlcwMJAAECBQckbWF0Y2gwAgNJbnQEAXIFByRtYXRjaDAJAJQKAgkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICCQCsAgIFB2FkZHJlc3MCCl93aXRoZHJld18FCmFzc2V0SWRTdHIFAXIFA25pbAUBcgkAAgECF0luY29ycmVjdCBpbnZva2UgcmVzdWx0CQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleRyEvwo=",
"height": 2586732,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: DjvpmEPjwyyXC5cX3xA82dN52hUtsnnS5JY7hvmNUAs2
Next: 6Y2VaiJww4vtUzn8TbuFmJ37PUGBhjHHKkqgxXoDtNve
Diff:
Old | New | | Differences |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(a) |
---|
7 | | - | func borrow (b,c) = { |
---|
8 | | - | let d = Address(base58'3N3DnVffnUyZtz2MRbk5U7giN112WempMNd') |
---|
9 | | - | let e = Address(base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT') |
---|
10 | | - | let f = toString(a.caller) |
---|
11 | | - | let g = invoke(addressFromStringValue(b), "borrow", [e, c], [AttachedPayment(unit, 100000000)]) |
---|
12 | | - | if ((g == g)) |
---|
| 7 | + | func borrow (b) = { |
---|
| 8 | + | let c = Address(base58'3N3DnVffnUyZtz2MRbk5U7giN112WempMNd') |
---|
| 9 | + | let d = Address(base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT') |
---|
| 10 | + | let e = toString(a.caller) |
---|
| 11 | + | let f = invoke(c, "borrow", [d, b], [AttachedPayment(unit, 100000000)]) |
---|
| 12 | + | if ((f == f)) |
---|
13 | 13 | | then { |
---|
14 | | - | let h = g |
---|
15 | | - | if ($isInstanceOf(h, "Int")) |
---|
| 14 | + | let g = f |
---|
| 15 | + | if ($isInstanceOf(g, "Int")) |
---|
16 | 16 | | then { |
---|
17 | | - | let i = h |
---|
18 | | - | $Tuple2([IntegerEntry((f + "_borrowed_"), i)], i) |
---|
| 17 | + | let h = g |
---|
| 18 | + | $Tuple2([IntegerEntry((e + "_borrowed_"), h)], h) |
---|
19 | 19 | | } |
---|
20 | 20 | | else throw("Incorrect invoke result") |
---|
21 | 21 | | } |
---|
|
25 | 25 | | |
---|
26 | 26 | | |
---|
27 | 27 | | @Callable(a) |
---|
28 | | - | func withdraw (j,c) = { |
---|
29 | | - | let d = Address(base58'3N3DnVffnUyZtz2MRbk5U7giN112WempMNd') |
---|
30 | | - | let e = Address(base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT') |
---|
31 | | - | let f = toString(a.caller) |
---|
32 | | - | let g = invoke(d, "withdraw", [addressFromStringValue(j), c], [AttachedPayment(unit, 100000000)]) |
---|
33 | | - | if ((g == g)) |
---|
| 28 | + | func withdraw (i,b) = { |
---|
| 29 | + | let c = Address(base58'3N3DnVffnUyZtz2MRbk5U7giN112WempMNd') |
---|
| 30 | + | let d = Address(base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT') |
---|
| 31 | + | let e = toString(a.caller) |
---|
| 32 | + | let f = invoke(c, "withdraw", [addressFromStringValue(i), b], [AttachedPayment(unit, 100000000)]) |
---|
| 33 | + | if ((f == f)) |
---|
34 | 34 | | then { |
---|
35 | | - | let h = g |
---|
36 | | - | if ($isInstanceOf(h, "Int")) |
---|
| 35 | + | let g = f |
---|
| 36 | + | if ($isInstanceOf(g, "Int")) |
---|
37 | 37 | | then { |
---|
38 | | - | let i = h |
---|
39 | | - | $Tuple2([IntegerEntry(((f + "_withdrew_") + j), i)], i) |
---|
| 38 | + | let h = g |
---|
| 39 | + | $Tuple2([IntegerEntry(((e + "_withdrew_") + i), h)], h) |
---|
40 | 40 | | } |
---|
41 | 41 | | else throw("Incorrect invoke result") |
---|
42 | 42 | | } |
---|
|
44 | 44 | | } |
---|
45 | 45 | | |
---|
46 | 46 | | |
---|
47 | | - | @Verifier(k) |
---|
48 | | - | func l () = sigVerify(k.bodyBytes, k.proofs[0], k.senderPublicKey) |
---|
| 47 | + | @Verifier(j) |
---|
| 48 | + | func k () = sigVerify(j.bodyBytes, j.proofs[0], j.senderPublicKey) |
---|
49 | 49 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(a) |
---|
7 | | - | func borrow (b,c) = { |
---|
8 | | - | let d = Address(base58'3N3DnVffnUyZtz2MRbk5U7giN112WempMNd') |
---|
9 | | - | let e = Address(base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT') |
---|
10 | | - | let f = toString(a.caller) |
---|
11 | | - | let g = invoke(addressFromStringValue(b), "borrow", [e, c], [AttachedPayment(unit, 100000000)]) |
---|
12 | | - | if ((g == g)) |
---|
| 7 | + | func borrow (b) = { |
---|
| 8 | + | let c = Address(base58'3N3DnVffnUyZtz2MRbk5U7giN112WempMNd') |
---|
| 9 | + | let d = Address(base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT') |
---|
| 10 | + | let e = toString(a.caller) |
---|
| 11 | + | let f = invoke(c, "borrow", [d, b], [AttachedPayment(unit, 100000000)]) |
---|
| 12 | + | if ((f == f)) |
---|
13 | 13 | | then { |
---|
14 | | - | let h = g |
---|
15 | | - | if ($isInstanceOf(h, "Int")) |
---|
| 14 | + | let g = f |
---|
| 15 | + | if ($isInstanceOf(g, "Int")) |
---|
16 | 16 | | then { |
---|
17 | | - | let i = h |
---|
18 | | - | $Tuple2([IntegerEntry((f + "_borrowed_"), i)], i) |
---|
| 17 | + | let h = g |
---|
| 18 | + | $Tuple2([IntegerEntry((e + "_borrowed_"), h)], h) |
---|
19 | 19 | | } |
---|
20 | 20 | | else throw("Incorrect invoke result") |
---|
21 | 21 | | } |
---|
22 | 22 | | else throw("Strict value is not equal to itself.") |
---|
23 | 23 | | } |
---|
24 | 24 | | |
---|
25 | 25 | | |
---|
26 | 26 | | |
---|
27 | 27 | | @Callable(a) |
---|
28 | | - | func withdraw (j,c) = { |
---|
29 | | - | let d = Address(base58'3N3DnVffnUyZtz2MRbk5U7giN112WempMNd') |
---|
30 | | - | let e = Address(base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT') |
---|
31 | | - | let f = toString(a.caller) |
---|
32 | | - | let g = invoke(d, "withdraw", [addressFromStringValue(j), c], [AttachedPayment(unit, 100000000)]) |
---|
33 | | - | if ((g == g)) |
---|
| 28 | + | func withdraw (i,b) = { |
---|
| 29 | + | let c = Address(base58'3N3DnVffnUyZtz2MRbk5U7giN112WempMNd') |
---|
| 30 | + | let d = Address(base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT') |
---|
| 31 | + | let e = toString(a.caller) |
---|
| 32 | + | let f = invoke(c, "withdraw", [addressFromStringValue(i), b], [AttachedPayment(unit, 100000000)]) |
---|
| 33 | + | if ((f == f)) |
---|
34 | 34 | | then { |
---|
35 | | - | let h = g |
---|
36 | | - | if ($isInstanceOf(h, "Int")) |
---|
| 35 | + | let g = f |
---|
| 36 | + | if ($isInstanceOf(g, "Int")) |
---|
37 | 37 | | then { |
---|
38 | | - | let i = h |
---|
39 | | - | $Tuple2([IntegerEntry(((f + "_withdrew_") + j), i)], i) |
---|
| 38 | + | let h = g |
---|
| 39 | + | $Tuple2([IntegerEntry(((e + "_withdrew_") + i), h)], h) |
---|
40 | 40 | | } |
---|
41 | 41 | | else throw("Incorrect invoke result") |
---|
42 | 42 | | } |
---|
43 | 43 | | else throw("Strict value is not equal to itself.") |
---|
44 | 44 | | } |
---|
45 | 45 | | |
---|
46 | 46 | | |
---|
47 | | - | @Verifier(k) |
---|
48 | | - | func l () = sigVerify(k.bodyBytes, k.proofs[0], k.senderPublicKey) |
---|
| 47 | + | @Verifier(j) |
---|
| 48 | + | func k () = sigVerify(j.bodyBytes, j.proofs[0], j.senderPublicKey) |
---|
49 | 49 | | |
---|