tx · 9GpiRDjFRvLZKK4VNqGx1Ch6ADseLg52waDHK9MJQBWv
3N914vUkkbbvstLTdNtoFaYcXyDvL9Q56y8: -0.01000000 Waves
2022.12.08 23:39 [2351840] smart account 3N914vUkkbbvstLTdNtoFaYcXyDvL9Q56y8 > SELF 0.00000000 Waves
{
"type": 13,
"id": "9GpiRDjFRvLZKK4VNqGx1Ch6ADseLg52waDHK9MJQBWv",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1670531984311,
"version": 2,
"chainId": 84,
"sender": "3N914vUkkbbvstLTdNtoFaYcXyDvL9Q56y8",
"senderPublicKey": "DNUfwEMBzg5JEkYBXcosDfx2ZCPAnyVC6JpYPeBVrJY6",
"proofs": [
"nggZwyZnAEtbwHtjgqqiQyt7APbzEK4LPYMfHuTRfMk7sXWBRSSDzWL1nVrTmsqtr4Vu7FcqhtUEro963P1bRvP"
],
"script": "base64:BgIKCAISBgoECAEICAABAWkBA2ZvbwQFZGFwcDIBYQRrZXkxBGtleTIEA3JlcwkA/AcECQERQGV4dHJOYXRpdmUoMTA2MikBBQVkYXBwMgIDYmFyCQDMCAIFAWEFA25pbAkAzAgCCQEPQXR0YWNoZWRQYXltZW50AgUEdW5pdADAhD0FA25pbAMJAAACBQNyZXMFA3JlcwQHJG1hdGNoMAUDcmVzAwkAAQIFByRtYXRjaDACA0ludAQBcgUHJG1hdGNoMAkAlAoCCQDMCAIJAQxJbnRlZ2VyRW50cnkCBQRrZXkxBQFyCQDMCAIJAQxJbnRlZ2VyRW50cnkCBQRrZXkyCAkA7wcBCQERQGV4dHJOYXRpdmUoMTA2MikBBQVkYXBwMgdyZWd1bGFyBQNuaWwFBHVuaXQJAAIBAhdJbmNvcnJlY3QgaW52b2tlIHJlc3VsdAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgCLO+cW",
"height": 2351840,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: F4Gp948EQw6sxUECzogxW3i5ptm56771uA56eCdJ1ZxD
Next: none
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 6 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | |
---|
| 5 | + | |
---|
| 6 | + | @Callable(i) |
---|
| 7 | + | func foo (dapp2,a,key1,key2) = { |
---|
| 8 | + | let res = invoke(addressFromStringValue(dapp2), "bar", [a], [AttachedPayment(unit, 1000000)]) |
---|
| 9 | + | if ((res == res)) |
---|
| 10 | + | then match res { |
---|
| 11 | + | case r: Int => |
---|
| 12 | + | $Tuple2([IntegerEntry(key1, r), IntegerEntry(key2, wavesBalance(addressFromStringValue(dapp2)).regular)], unit) |
---|
| 13 | + | case _ => |
---|
| 14 | + | throw("Incorrect invoke result") |
---|
| 15 | + | } |
---|
| 16 | + | else throw("Strict value is not equal to itself.") |
---|
| 17 | + | } |
---|
| 18 | + | |
---|
| 19 | + | |
---|