tx · Cr7yLzm3tEzAx4caFBJx55hwYrjVitkWKY8rq99sYrZJ
3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq: -0.01000000 Waves
2023.05.31 00:03 [2601227] smart account 3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq > SELF 0.00000000 Waves
{
"type": 13,
"id": "Cr7yLzm3tEzAx4caFBJx55hwYrjVitkWKY8rq99sYrZJ",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1685480656321,
"version": 2,
"chainId": 84,
"sender": "3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq",
"senderPublicKey": "ERewvWFUFQfR1eCnipNAv9n7SdQhof2ESP6PGVjTueLd",
"proofs": [
"yFLPUcMEKPDww1Q16Jdr2zog2YwmmppoSHKRqVgr3A4AXD2MgHKLbDYkCTfSkdAyFapUJskvbeHkdAJvLheWt6U"
],
"script": "base64:BgIOCAISBAoCCAESBAoCCAEAAgFpAQZib3Jyb3cCCmFzc2V0SWRTdHILYXNzZXRBbW91bnQED3NtYXJ0Y29udHJhY3RJZAkBB0FkZHJlc3MBARoBVJHyspw5c5zCcXIim0BCoGwdZ5WG+0VDrgQHdG9rZW5JZAkBB0FkZHJlc3MBASAP8hwSrOTEPJrsRhqrJaiw7LoHK0bMbYhy8LXikkkBtAQHYWRkcmVzcwkApQgBCAUBaQZjYWxsZXIEA3JlcwkA/AcEBQ9zbWFydGNvbnRyYWN0SWQCBmJvcnJvdwkAzAgCBQphc3NldElkU3RyCQDMCAIFC2Fzc2V0QW1vdW50BQNuaWwFA25pbAMJAAACBQNyZXMFA3JlcwkAzAgCCQEMSW50ZWdlckVudHJ5AgkArAICBQdhZGRyZXNzAgpfYm9ycm93ZWRfBQthc3NldEFtb3VudAUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAWkBCHdpdGhkcmF3Agphc3NldElkU3RyC2Fzc2V0QW1vdW50BA9zbWFydGNvbnRyYWN0SWQJAQdBZGRyZXNzAQEaAVSR8rKcOXOcwnFyIptAQqBsHWeVhvtFQ64EB3Rva2VuSWQJAQdBZGRyZXNzAQEgD/IcEqzkxDya7EYaqyWosOy6BytGzG2IcvC14pJJAbQEB2FkZHJlc3MJAKUIAQgFAWkGY2FsbGVyBANyZXMJAPwHBAUPc21hcnRjb250cmFjdElkAgh3aXRoZHJhdwkAzAgCCQERQGV4dHJOYXRpdmUoMTA2MikBBQphc3NldElkU3RyCQDMCAIFC2Fzc2V0QW1vdW50BQNuaWwJAMwIAgkBD0F0dGFjaGVkUGF5bWVudAIFBHVuaXQAgMLXLwUDbmlsAwkAAAIFA3JlcwUDcmVzBAckbWF0Y2gwBQNyZXMDCQABAgUHJG1hdGNoMAIDSW50BAFyBQckbWF0Y2gwCQCUCgIJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgkArAICBQdhZGRyZXNzAgpfd2l0aGRyZXdfBQphc3NldElkU3RyBQFyBQNuaWwFAXIJAAIBAhdJbmNvcnJlY3QgaW52b2tlIHJlc3VsdAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXmXIUsY",
"height": 2601227,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 35rQT4j96b6vC7YJ71G2oE1pHSMyR3ZejXir84hjMwZx
Next: 82P5iugjLpnuTam35HqPPU5YudvLgc129SMN66fgeHYB
Diff:
Old | New | | Differences |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(a) |
---|
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", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", b], nil) |
---|
12 | | - | if ((f == f)) |
---|
13 | | - | then [IntegerEntry((e + "_borrowed_"), b)] |
---|
| 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(d, "borrow", [b, c], nil) |
---|
| 12 | + | if ((g == g)) |
---|
| 13 | + | then [IntegerEntry((f + "_borrowed_"), c)] |
---|
14 | 14 | | else throw("Strict value is not equal to itself.") |
---|
15 | 15 | | } |
---|
16 | 16 | | |
---|
17 | 17 | | |
---|
18 | 18 | | |
---|
19 | 19 | | @Callable(a) |
---|
20 | | - | func withdraw (g,b) = { |
---|
21 | | - | let c = Address(base58'3N3DnVffnUyZtz2MRbk5U7giN112WempMNd') |
---|
22 | | - | let d = Address(base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT') |
---|
23 | | - | let e = toString(a.caller) |
---|
24 | | - | let f = invoke(c, "withdraw", [addressFromStringValue(g), b], [AttachedPayment(unit, 100000000)]) |
---|
25 | | - | if ((f == f)) |
---|
| 20 | + | func withdraw (b,c) = { |
---|
| 21 | + | let d = Address(base58'3N3DnVffnUyZtz2MRbk5U7giN112WempMNd') |
---|
| 22 | + | let e = Address(base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT') |
---|
| 23 | + | let f = toString(a.caller) |
---|
| 24 | + | let g = invoke(d, "withdraw", [addressFromStringValue(b), c], [AttachedPayment(unit, 100000000)]) |
---|
| 25 | + | if ((g == g)) |
---|
26 | 26 | | then { |
---|
27 | | - | let h = f |
---|
| 27 | + | let h = g |
---|
28 | 28 | | if ($isInstanceOf(h, "Int")) |
---|
29 | 29 | | then { |
---|
30 | 30 | | let i = h |
---|
31 | | - | $Tuple2([IntegerEntry(((e + "_withdrew_") + g), i)], i) |
---|
| 31 | + | $Tuple2([IntegerEntry(((f + "_withdrew_") + b), i)], i) |
---|
32 | 32 | | } |
---|
33 | 33 | | else throw("Incorrect invoke result") |
---|
34 | 34 | | } |
---|
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) = { |
---|
8 | | - | let c = Address(base58'3N3DnVffnUyZtz2MRbk5U7giN112WempMNd') |
---|
9 | | - | let d = Address(base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT') |
---|
10 | | - | let e = toString(a.caller) |
---|
11 | | - | let f = invoke(c, "borrow", ["25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT", b], nil) |
---|
12 | | - | if ((f == f)) |
---|
13 | | - | then [IntegerEntry((e + "_borrowed_"), b)] |
---|
| 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(d, "borrow", [b, c], nil) |
---|
| 12 | + | if ((g == g)) |
---|
| 13 | + | then [IntegerEntry((f + "_borrowed_"), c)] |
---|
14 | 14 | | else throw("Strict value is not equal to itself.") |
---|
15 | 15 | | } |
---|
16 | 16 | | |
---|
17 | 17 | | |
---|
18 | 18 | | |
---|
19 | 19 | | @Callable(a) |
---|
20 | | - | func withdraw (g,b) = { |
---|
21 | | - | let c = Address(base58'3N3DnVffnUyZtz2MRbk5U7giN112WempMNd') |
---|
22 | | - | let d = Address(base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT') |
---|
23 | | - | let e = toString(a.caller) |
---|
24 | | - | let f = invoke(c, "withdraw", [addressFromStringValue(g), b], [AttachedPayment(unit, 100000000)]) |
---|
25 | | - | if ((f == f)) |
---|
| 20 | + | func withdraw (b,c) = { |
---|
| 21 | + | let d = Address(base58'3N3DnVffnUyZtz2MRbk5U7giN112WempMNd') |
---|
| 22 | + | let e = Address(base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT') |
---|
| 23 | + | let f = toString(a.caller) |
---|
| 24 | + | let g = invoke(d, "withdraw", [addressFromStringValue(b), c], [AttachedPayment(unit, 100000000)]) |
---|
| 25 | + | if ((g == g)) |
---|
26 | 26 | | then { |
---|
27 | | - | let h = f |
---|
| 27 | + | let h = g |
---|
28 | 28 | | if ($isInstanceOf(h, "Int")) |
---|
29 | 29 | | then { |
---|
30 | 30 | | let i = h |
---|
31 | | - | $Tuple2([IntegerEntry(((e + "_withdrew_") + g), i)], i) |
---|
| 31 | + | $Tuple2([IntegerEntry(((f + "_withdrew_") + b), i)], i) |
---|
32 | 32 | | } |
---|
33 | 33 | | else throw("Incorrect invoke result") |
---|
34 | 34 | | } |
---|
35 | 35 | | else throw("Strict value is not equal to itself.") |
---|
36 | 36 | | } |
---|
37 | 37 | | |
---|
38 | 38 | | |
---|
39 | 39 | | @Verifier(j) |
---|
40 | 40 | | func k () = sigVerify(j.bodyBytes, j.proofs[0], j.senderPublicKey) |
---|
41 | 41 | | |
---|