tx · 2rES9P5FKjBucvoVxPLLxiwWhJTHX3HFHaWxQqzLUXp5
3Mq5upPvyutNuEDeYttuzZfQHv4Y4uXuvv5: -0.05000000 Waves
2021.08.13 12:40 [1656420] smart account 3Mq5upPvyutNuEDeYttuzZfQHv4Y4uXuvv5 > SELF 0.00000000 Waves
{
"type": 13,
"id": "2rES9P5FKjBucvoVxPLLxiwWhJTHX3HFHaWxQqzLUXp5",
"fee": 5000000,
"feeAssetId": null,
"timestamp": 1628847660439,
"version": 2,
"chainId": 84,
"sender": "3Mq5upPvyutNuEDeYttuzZfQHv4Y4uXuvv5",
"senderPublicKey": "97jE6RtnPXGL5TBusvVdFPvxKvHs6wgfQhjd2MphH8ot",
"proofs": [
"3YPNXmrKi58GqJjfru1zbzzCf4L4tAwBpJpB91T7qPNYhUkPA87xqW4noFfjD8CEyv4o8vxT7qiNAERtiPXATM6o"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAQAAAAAKc3dvcGZpRGFwcAEAAAAaAVS7fkwF5/jEJRcQSrDfBm+fkq1pHbOmsDQAAAABAAAAAWkBAAAAC3J1bkV4Y2hhbmdlAAAAAAQAAAAJJHQwMTc5MjU0CQAFFAAAAAIICQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAAAABmFtb3VudAgJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAHYXNzZXRJZAQAAAAJcG10QW1vdW50CAUAAAAJJHQwMTc5MjU0AAAAAl8xBAAAAApwbXRBc3NldElkCAUAAAAJJHQwMTc5MjU0AAAAAl8yBAAAAAdwYXltZW50CQEAAAAPQXR0YWNoZWRQYXltZW50AAAAAgUAAAAKcG10QXNzZXRJZAUAAAAJcG10QW1vdW50BAAAAAFyCQAD/AAAAAQJAQAAAAdBZGRyZXNzAAAAAQUAAAAKc3dvcGZpRGFwcAIAAAAIZXhjaGFuZ2UJAARMAAAAAgAAAAAAAAAAAQUAAAADbmlsCQAETAAAAAIFAAAAB3BheW1lbnQFAAAAA25pbAMJAAAAAAAAAgUAAAABcgUAAAABcgUAAAADbmlsCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V56cf67w==",
"height": 1656420,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: BPq45CTEXZUHREhccLyhZdX7rsXYURJT4qVfWor1XWZk
Next: G8k4qTBpBxQEEdmNeBz8tMwd5SbMi2dJF9siW1bDqf9c
Diff:
Old | New | | Differences |
---|
4 | 4 | | let swopfiDapp = base58'3N71TS4RSqLDJgLw2h9cdwUwhfQ7aBoaFb1' |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | | - | func exchange () = { |
---|
8 | | - | let $t0176251 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) |
---|
9 | | - | let pmtAmount = $t0176251._1 |
---|
10 | | - | let pmtAssetId = $t0176251._2 |
---|
| 7 | + | func runExchange () = { |
---|
| 8 | + | let $t0179254 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) |
---|
| 9 | + | let pmtAmount = $t0179254._1 |
---|
| 10 | + | let pmtAssetId = $t0179254._2 |
---|
11 | 11 | | let payment = AttachedPayment(pmtAssetId, pmtAmount) |
---|
12 | 12 | | let r = invoke(Address(swopfiDapp), "exchange", [1], [payment]) |
---|
13 | 13 | | if ((r == r)) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let swopfiDapp = base58'3N71TS4RSqLDJgLw2h9cdwUwhfQ7aBoaFb1' |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | | - | func exchange () = { |
---|
8 | | - | let $t0176251 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) |
---|
9 | | - | let pmtAmount = $t0176251._1 |
---|
10 | | - | let pmtAssetId = $t0176251._2 |
---|
| 7 | + | func runExchange () = { |
---|
| 8 | + | let $t0179254 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) |
---|
| 9 | + | let pmtAmount = $t0179254._1 |
---|
| 10 | + | let pmtAssetId = $t0179254._2 |
---|
11 | 11 | | let payment = AttachedPayment(pmtAssetId, pmtAmount) |
---|
12 | 12 | | let r = invoke(Address(swopfiDapp), "exchange", [1], [payment]) |
---|
13 | 13 | | if ((r == r)) |
---|
14 | 14 | | then nil |
---|
15 | 15 | | else throw("Strict value is not equal to itself.") |
---|
16 | 16 | | } |
---|
17 | 17 | | |
---|
18 | 18 | | |
---|
19 | 19 | | @Verifier(tx) |
---|
20 | 20 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
21 | 21 | | |
---|