tx · 8w2SPZsVj2dfmj2Cmr1GCBr4nnfq6AViaRTwQBiLwa1P
3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq: -0.01000000 Waves
2023.05.20 15:24 [2586290] smart account 3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq > SELF 0.00000000 Waves
{
"type": 13,
"id": "8w2SPZsVj2dfmj2Cmr1GCBr4nnfq6AViaRTwQBiLwa1P",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1684585512296,
"version": 2,
"chainId": 84,
"sender": "3NBbFNBed9tcU5AmsJAuExWvgJyNmJxqjWq",
"senderPublicKey": "ERewvWFUFQfR1eCnipNAv9n7SdQhof2ESP6PGVjTueLd",
"proofs": [
"4xzyfextycfwyns9yd5mgh1BQSHn43Fdo5b25Q3JdHoTA3TeNMaGhYPB37aQbVuY9v5JQM38X4jXzH4vWzUVeVQt"
],
"script": "base64:BgIPCAISABIDCgEBEgQKAggBAAMBaQEKaXNzdWVUb2tlbgAJAJQKAgkAzAgCCQDCCAUCB015VG9rZW4CE1RoaXMgaXMgYSBuZXcgdG9rZW4AkE4AAgYFA25pbAUEdW5pdAFpAQZib3Jyb3cBC2Fzc2V0QW1vdW50BA9zbWFydGNvbnRyYWN0SWQJAQdBZGRyZXNzAQEaAVSR8rKcOXOcwnFyIptAQqBsHWeVhvtFQ64EB3Rva2VuSWQJAQdBZGRyZXNzAQEgD/IcEqzkxDya7EYaqyWosOy6BytGzG2IcvC14pJJAbQEB2FkZHJlc3MJAKUIAQgFAWkGY2FsbGVyBANyZXMJAPwHBAUPc21hcnRjb250cmFjdElkAgZib3Jyb3cJAMwIAgUHdG9rZW5JZAkAzAgCBQthc3NldEFtb3VudAUDbmlsCQDMCAIJAQ9BdHRhY2hlZFBheW1lbnQCBQR1bml0AIDC1y8FA25pbAMJAAACBQNyZXMFA3JlcwQHJG1hdGNoMAUDcmVzAwkAAQIFByRtYXRjaDACA0ludAQBcgUHJG1hdGNoMAkAlAoCCQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgIFB2FkZHJlc3MCCl9ib3Jyb3dlZF8FAXIFA25pbAUBcgkAAgECF0luY29ycmVjdCBpbnZva2UgcmVzdWx0CQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAWkBCHdpdGhkcmF3Agphc3NldElkU3RyC2Fzc2V0QW1vdW50BA9zbWFydGNvbnRyYWN0SWQJAQdBZGRyZXNzAQEaAVSR8rKcOXOcwnFyIptAQqBsHWeVhvtFQ64EB2FkZHJlc3MJAKUIAQgFAWkGY2FsbGVyBANyZXMJAPwHBAUPc21hcnRjb250cmFjdElkAgh3aXRoZHJhdwkAzAgCCQERQGV4dHJOYXRpdmUoMTA2MikBBQphc3NldElkU3RyCQDMCAIFC2Fzc2V0QW1vdW50BQNuaWwJAMwIAgkBD0F0dGFjaGVkUGF5bWVudAIFBHVuaXQAgMLXLwUDbmlsAwkAAAIFA3JlcwUDcmVzBAckbWF0Y2gwBQNyZXMDCQABAgUHJG1hdGNoMAIDSW50BAFyBQckbWF0Y2gwCQCUCgIJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgkArAICBQdhZGRyZXNzAgpfd2l0aGRyZXdfBQphc3NldElkU3RyBQFyBQNuaWwFAXIJAAIBAhdJbmNvcnJlY3QgaW52b2tlIHJlc3VsdAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXmtKRy6",
"height": 2586290,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 69ptNrRoYeiytDE1HPoRuqTewPq4zHnUaN77bNvWLRdJ
Next: 2mRDWQdQPVpyud4Cz9G758vtY49Xdh5ZaAbGCWjGTKLk
Diff:
Old | New | | Differences |
---|
9 | 9 | | |
---|
10 | 10 | | |
---|
11 | 11 | | @Callable(a) |
---|
12 | | - | func borrow (b,c) = { |
---|
13 | | - | let d = Address(base58'3N3DnVffnUyZtz2MRbk5U7giN112WempMNd') |
---|
| 12 | + | func borrow (b) = { |
---|
| 13 | + | let c = Address(base58'3N3DnVffnUyZtz2MRbk5U7giN112WempMNd') |
---|
| 14 | + | let d = Address(base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT') |
---|
14 | 15 | | let e = toString(a.caller) |
---|
15 | | - | let f = invoke(d, "borrow", [addressFromStringValue(b), c], [AttachedPayment(unit, 100000000)]) |
---|
| 16 | + | let f = invoke(c, "borrow", [d, b], [AttachedPayment(unit, 100000000)]) |
---|
16 | 17 | | if ((f == f)) |
---|
17 | 18 | | then { |
---|
18 | 19 | | let g = f |
---|
19 | 20 | | if ($isInstanceOf(g, "Int")) |
---|
20 | 21 | | then { |
---|
21 | 22 | | let h = g |
---|
22 | | - | $Tuple2([IntegerEntry(((e + "_borrowed_") + b), h)], h) |
---|
| 23 | + | $Tuple2([IntegerEntry((e + "_borrowed_"), h)], h) |
---|
23 | 24 | | } |
---|
24 | 25 | | else throw("Incorrect invoke result") |
---|
25 | 26 | | } |
---|
|
29 | 30 | | |
---|
30 | 31 | | |
---|
31 | 32 | | @Callable(a) |
---|
32 | | - | func withdraw (b,c) = { |
---|
33 | | - | let d = Address(base58'3N3DnVffnUyZtz2MRbk5U7giN112WempMNd') |
---|
| 33 | + | func withdraw (i,b) = { |
---|
| 34 | + | let c = Address(base58'3N3DnVffnUyZtz2MRbk5U7giN112WempMNd') |
---|
34 | 35 | | let e = toString(a.caller) |
---|
35 | | - | let f = invoke(d, "withdraw", [addressFromStringValue(b), c], [AttachedPayment(unit, 100000000)]) |
---|
| 36 | + | let f = invoke(c, "withdraw", [addressFromStringValue(i), b], [AttachedPayment(unit, 100000000)]) |
---|
36 | 37 | | if ((f == f)) |
---|
37 | 38 | | then { |
---|
38 | 39 | | let g = f |
---|
39 | 40 | | if ($isInstanceOf(g, "Int")) |
---|
40 | 41 | | then { |
---|
41 | 42 | | let h = g |
---|
42 | | - | $Tuple2([IntegerEntry(((e + "_withdrew_") + b), h)], h) |
---|
| 43 | + | $Tuple2([IntegerEntry(((e + "_withdrew_") + i), h)], h) |
---|
43 | 44 | | } |
---|
44 | 45 | | else throw("Incorrect invoke result") |
---|
45 | 46 | | } |
---|
|
47 | 48 | | } |
---|
48 | 49 | | |
---|
49 | 50 | | |
---|
50 | | - | @Verifier(i) |
---|
51 | | - | func j () = sigVerify(i.bodyBytes, i.proofs[0], i.senderPublicKey) |
---|
| 51 | + | @Verifier(j) |
---|
| 52 | + | func k () = sigVerify(j.bodyBytes, j.proofs[0], j.senderPublicKey) |
---|
52 | 53 | | |
---|
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 | 7 | | func issueToken () = $Tuple2([Issue("MyToken", "This is a new token", 10000, 2, true)], unit) |
---|
8 | 8 | | |
---|
9 | 9 | | |
---|
10 | 10 | | |
---|
11 | 11 | | @Callable(a) |
---|
12 | | - | func borrow (b,c) = { |
---|
13 | | - | let d = Address(base58'3N3DnVffnUyZtz2MRbk5U7giN112WempMNd') |
---|
| 12 | + | func borrow (b) = { |
---|
| 13 | + | let c = Address(base58'3N3DnVffnUyZtz2MRbk5U7giN112WempMNd') |
---|
| 14 | + | let d = Address(base58'25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT') |
---|
14 | 15 | | let e = toString(a.caller) |
---|
15 | | - | let f = invoke(d, "borrow", [addressFromStringValue(b), c], [AttachedPayment(unit, 100000000)]) |
---|
| 16 | + | let f = invoke(c, "borrow", [d, b], [AttachedPayment(unit, 100000000)]) |
---|
16 | 17 | | if ((f == f)) |
---|
17 | 18 | | then { |
---|
18 | 19 | | let g = f |
---|
19 | 20 | | if ($isInstanceOf(g, "Int")) |
---|
20 | 21 | | then { |
---|
21 | 22 | | let h = g |
---|
22 | | - | $Tuple2([IntegerEntry(((e + "_borrowed_") + b), h)], h) |
---|
| 23 | + | $Tuple2([IntegerEntry((e + "_borrowed_"), h)], h) |
---|
23 | 24 | | } |
---|
24 | 25 | | else throw("Incorrect invoke result") |
---|
25 | 26 | | } |
---|
26 | 27 | | else throw("Strict value is not equal to itself.") |
---|
27 | 28 | | } |
---|
28 | 29 | | |
---|
29 | 30 | | |
---|
30 | 31 | | |
---|
31 | 32 | | @Callable(a) |
---|
32 | | - | func withdraw (b,c) = { |
---|
33 | | - | let d = Address(base58'3N3DnVffnUyZtz2MRbk5U7giN112WempMNd') |
---|
| 33 | + | func withdraw (i,b) = { |
---|
| 34 | + | let c = Address(base58'3N3DnVffnUyZtz2MRbk5U7giN112WempMNd') |
---|
34 | 35 | | let e = toString(a.caller) |
---|
35 | | - | let f = invoke(d, "withdraw", [addressFromStringValue(b), c], [AttachedPayment(unit, 100000000)]) |
---|
| 36 | + | let f = invoke(c, "withdraw", [addressFromStringValue(i), b], [AttachedPayment(unit, 100000000)]) |
---|
36 | 37 | | if ((f == f)) |
---|
37 | 38 | | then { |
---|
38 | 39 | | let g = f |
---|
39 | 40 | | if ($isInstanceOf(g, "Int")) |
---|
40 | 41 | | then { |
---|
41 | 42 | | let h = g |
---|
42 | | - | $Tuple2([IntegerEntry(((e + "_withdrew_") + b), h)], h) |
---|
| 43 | + | $Tuple2([IntegerEntry(((e + "_withdrew_") + i), h)], h) |
---|
43 | 44 | | } |
---|
44 | 45 | | else throw("Incorrect invoke result") |
---|
45 | 46 | | } |
---|
46 | 47 | | else throw("Strict value is not equal to itself.") |
---|
47 | 48 | | } |
---|
48 | 49 | | |
---|
49 | 50 | | |
---|
50 | | - | @Verifier(i) |
---|
51 | | - | func j () = sigVerify(i.bodyBytes, i.proofs[0], i.senderPublicKey) |
---|
| 51 | + | @Verifier(j) |
---|
| 52 | + | func k () = sigVerify(j.bodyBytes, j.proofs[0], j.senderPublicKey) |
---|
52 | 53 | | |
---|