diff --git a/examples/arc_28/contract.py b/examples/arc_28/contract.py index f05a37131e..f97784e362 100644 --- a/examples/arc_28/contract.py +++ b/examples/arc_28/contract.py @@ -4,12 +4,18 @@ class Swapped(arc4.Struct): + """This is a docstring for Swapped""" + a: arc4.UInt64 b: arc4.UInt64 + """These are field docs for Swapped.b""" class NativeSwapped(Struct): + """This is a docstring for NativeSwapped""" + a: UInt64 + "These are field docs for NativeSwapped.a" b: UInt64 diff --git a/examples/arc_28/out/EventEmitter.approval.puya.map b/examples/arc_28/out/EventEmitter.approval.puya.map index e9d7533a2f..19d73f6620 100644 --- a/examples/arc_28/out/EventEmitter.approval.puya.map +++ b/examples/arc_28/out/EventEmitter.approval.puya.map @@ -3,7 +3,7 @@ "sources": [ "../contract.py" ], - "mappings": ";;;;;AAeA;;AAAA;;;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;;;;;;;;;;;;;;;;AAAA;;;AAAA;;;;;;;;AAAA;;;;;;;;;AACK;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEa;AAAA;AAAV;;;;;;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AACA;AAJH;AAAA;AAMA;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEa;AAAA;AAAA;AAAA;AAAV;;;;;;AAAA;AAAA;AAAA;AAFH;AAAA;AAIA;;;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAMG;AAAA;;;;;;AAAA;AAAA;AAAA;AANH;AAAA", + "mappings": ";;;;;AAqBA;;AAAA;;;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;;;;;;;;;;;;;;;;AAAA;;;AAAA;;;;;;;;AAAA;;;;;;;;;AACK;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEa;AAAA;AAAV;;;;;;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AACA;AAJH;AAAA;AAMA;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEa;AAAA;AAAA;AAAA;AAAV;;;;;;AAAA;AAAA;AAAA;AAFH;AAAA;AAIA;;;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAMG;AAAA;;;;;;AAAA;AAAA;AAAA;AANH;AAAA", "op_pc_offset": 0, "pc_events": { "1": { diff --git a/examples/arc_28/out/EventEmitter.approval.teal b/examples/arc_28/out/EventEmitter.approval.teal index ceca8829f4..1babded364 100644 --- a/examples/arc_28/out/EventEmitter.approval.teal +++ b/examples/arc_28/out/EventEmitter.approval.teal @@ -4,7 +4,7 @@ // algopy.arc4.ARC4Contract.approval_program() -> uint64: main: intcblock 8 1 - // arc_28/contract.py:16 + // arc_28/contract.py:22 // class EventEmitter(ARC4Contract): txn NumAppArgs bz main___algopy_default_create@10 @@ -29,7 +29,7 @@ main___algopy_default_create@10: // examples.arc_28.contract.EventEmitter.emit_swapped[routing]() -> void: emit_swapped: - // arc_28/contract.py:17 + // arc_28/contract.py:23 // @arc4.abimethod txna ApplicationArgs 1 dup @@ -43,7 +43,7 @@ emit_swapped: intc_0 // 8 == assert // invalid number of bytes for arc4.uint64 - // arc_28/contract.py:19 + // arc_28/contract.py:25 // arc4.emit(Swapped(b, a)) swap concat @@ -52,14 +52,14 @@ emit_swapped: concat dup log - // arc_28/contract.py:20 + // arc_28/contract.py:26 // arc4.emit("Swapped(uint64,uint64)", b, a) dup log - // arc_28/contract.py:21 + // arc_28/contract.py:27 // arc4.emit("Swapped", b, a) log - // arc_28/contract.py:17 + // arc_28/contract.py:23 // @arc4.abimethod intc_1 // 1 return @@ -67,7 +67,7 @@ emit_swapped: // examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() -> void: emit_native_swapped: - // arc_28/contract.py:23 + // arc_28/contract.py:29 // @arc4.abimethod txna ApplicationArgs 1 dup @@ -83,7 +83,7 @@ emit_native_swapped: == assert // invalid number of bytes for arc4.uint64 btoi - // arc_28/contract.py:25 + // arc_28/contract.py:31 // arc4.emit(NativeSwapped(a=b, b=a)) itob swap @@ -93,7 +93,7 @@ emit_native_swapped: swap concat log - // arc_28/contract.py:23 + // arc_28/contract.py:29 // @arc4.abimethod intc_1 // 1 return @@ -101,7 +101,7 @@ emit_native_swapped: // examples.arc_28.contract.EventEmitter.emit_ufixed[routing]() -> void: emit_ufixed: - // arc_28/contract.py:27 + // arc_28/contract.py:33 // @arc4.abimethod() txna ApplicationArgs 1 dup @@ -115,14 +115,14 @@ emit_ufixed: intc_0 // 8 == assert // invalid number of bytes for arc4.ufixed64x2 - // arc_28/contract.py:33 + // arc_28/contract.py:39 // arc4.emit("AnEvent(ufixed256x16,ufixed64x2)", a, b) concat pushbytes 0x7389b1ba // method "AnEvent(ufixed256x16,ufixed64x2)" swap concat log - // arc_28/contract.py:27 + // arc_28/contract.py:33 // @arc4.abimethod() intc_1 // 1 return diff --git a/examples/arc_28/out/EventEmitter.arc56.json b/examples/arc_28/out/EventEmitter.arc56.json index 956e9f6076..c13be53764 100644 --- a/examples/arc_28/out/EventEmitter.arc56.json +++ b/examples/arc_28/out/EventEmitter.arc56.json @@ -34,9 +34,11 @@ }, { "type": "uint64", - "name": "b" + "name": "b", + "desc": "These are field docs for Swapped.b" } - ] + ], + "desc": "This is a docstring for Swapped" }, { "name": "Swapped", @@ -82,13 +84,15 @@ "args": [ { "type": "uint64", - "name": "a" + "name": "a", + "desc": "These are field docs for NativeSwapped.a" }, { "type": "uint64", "name": "b" } - ] + ], + "desc": "This is a docstring for NativeSwapped" } ], "recommendations": {} @@ -199,7 +203,7 @@ } }, "source": { - "approval": "I3ByYWdtYSB2ZXJzaW9uIDExCiNwcmFnbWEgdHlwZXRyYWNrIGZhbHNlCgovLyBhbGdvcHkuYXJjNC5BUkM0Q29udHJhY3QuYXBwcm92YWxfcHJvZ3JhbSgpIC0+IHVpbnQ2NDoKbWFpbjoKICAgIGludGNibG9jayA4IDEKICAgIC8vIGFyY18yOC9jb250cmFjdC5weToxNgogICAgLy8gY2xhc3MgRXZlbnRFbWl0dGVyKEFSQzRDb250cmFjdCk6CiAgICB0eG4gTnVtQXBwQXJncwogICAgYnogbWFpbl9fX2FsZ29weV9kZWZhdWx0X2NyZWF0ZUAxMAogICAgdHhuIE9uQ29tcGxldGlvbgogICAgIQogICAgYXNzZXJ0CiAgICB0eG4gQXBwbGljYXRpb25JRAogICAgYXNzZXJ0CiAgICBwdXNoYnl0ZXNzIDB4MGE5NTQyY2QgMHg3OWM1YmEzMiAweDcxYTMxNTFmIC8vIG1ldGhvZCAiZW1pdF9zd2FwcGVkKHVpbnQ2NCx1aW50NjQpdm9pZCIsIG1ldGhvZCAiZW1pdF9uYXRpdmVfc3dhcHBlZCh1aW50NjQsdWludDY0KXZvaWQiLCBtZXRob2QgImVtaXRfdWZpeGVkKHVmaXhlZDI1NngxNix1Zml4ZWQ2NHgyKXZvaWQiCiAgICB0eG5hIEFwcGxpY2F0aW9uQXJncyAwCiAgICBtYXRjaCBlbWl0X3N3YXBwZWQgZW1pdF9uYXRpdmVfc3dhcHBlZCBlbWl0X3VmaXhlZAogICAgZXJyCgptYWluX19fYWxnb3B5X2RlZmF1bHRfY3JlYXRlQDEwOgogICAgdHhuIE9uQ29tcGxldGlvbgogICAgIQogICAgdHhuIEFwcGxpY2F0aW9uSUQKICAgICEKICAgICYmCiAgICByZXR1cm4KCgovLyBleGFtcGxlcy5hcmNfMjguY29udHJhY3QuRXZlbnRFbWl0dGVyLmVtaXRfc3dhcHBlZFtyb3V0aW5nXSgpIC0+IHZvaWQ6CmVtaXRfc3dhcHBlZDoKICAgIC8vIGFyY18yOC9jb250cmFjdC5weToxNwogICAgLy8gQGFyYzQuYWJpbWV0aG9kCiAgICB0eG5hIEFwcGxpY2F0aW9uQXJncyAxCiAgICBkdXAKICAgIGxlbgogICAgaW50Y18wIC8vIDgKICAgID09CiAgICBhc3NlcnQgLy8gaW52YWxpZCBudW1iZXIgb2YgYnl0ZXMgZm9yIGFyYzQudWludDY0CiAgICB0eG5hIEFwcGxpY2F0aW9uQXJncyAyCiAgICBkdXAKICAgIGxlbgogICAgaW50Y18wIC8vIDgKICAgID09CiAgICBhc3NlcnQgLy8gaW52YWxpZCBudW1iZXIgb2YgYnl0ZXMgZm9yIGFyYzQudWludDY0CiAgICAvLyBhcmNfMjgvY29udHJhY3QucHk6MTkKICAgIC8vIGFyYzQuZW1pdChTd2FwcGVkKGIsIGEpKQogICAgc3dhcAogICAgY29uY2F0CiAgICBwdXNoYnl0ZXMgMHgxY2NiZDkyNSAvLyBtZXRob2QgIlN3YXBwZWQodWludDY0LHVpbnQ2NCkiCiAgICBzd2FwCiAgICBjb25jYXQKICAgIGR1cAogICAgbG9nCiAgICAvLyBhcmNfMjgvY29udHJhY3QucHk6MjAKICAgIC8vIGFyYzQuZW1pdCgiU3dhcHBlZCh1aW50NjQsdWludDY0KSIsIGIsIGEpCiAgICBkdXAKICAgIGxvZwogICAgLy8gYXJjXzI4L2NvbnRyYWN0LnB5OjIxCiAgICAvLyBhcmM0LmVtaXQoIlN3YXBwZWQiLCBiLCBhKQogICAgbG9nCiAgICAvLyBhcmNfMjgvY29udHJhY3QucHk6MTcKICAgIC8vIEBhcmM0LmFiaW1ldGhvZAogICAgaW50Y18xIC8vIDEKICAgIHJldHVybgoKCi8vIGV4YW1wbGVzLmFyY18yOC5jb250cmFjdC5FdmVudEVtaXR0ZXIuZW1pdF9uYXRpdmVfc3dhcHBlZFtyb3V0aW5nXSgpIC0+IHZvaWQ6CmVtaXRfbmF0aXZlX3N3YXBwZWQ6CiAgICAvLyBhcmNfMjgvY29udHJhY3QucHk6MjMKICAgIC8vIEBhcmM0LmFiaW1ldGhvZAogICAgdHhuYSBBcHBsaWNhdGlvbkFyZ3MgMQogICAgZHVwCiAgICBsZW4KICAgIGludGNfMCAvLyA4CiAgICA9PQogICAgYXNzZXJ0IC8vIGludmFsaWQgbnVtYmVyIG9mIGJ5dGVzIGZvciBhcmM0LnVpbnQ2NAogICAgYnRvaQogICAgdHhuYSBBcHBsaWNhdGlvbkFyZ3MgMgogICAgZHVwCiAgICBsZW4KICAgIGludGNfMCAvLyA4CiAgICA9PQogICAgYXNzZXJ0IC8vIGludmFsaWQgbnVtYmVyIG9mIGJ5dGVzIGZvciBhcmM0LnVpbnQ2NAogICAgYnRvaQogICAgLy8gYXJjXzI4L2NvbnRyYWN0LnB5OjI1CiAgICAvLyBhcmM0LmVtaXQoTmF0aXZlU3dhcHBlZChhPWIsIGI9YSkpCiAgICBpdG9iCiAgICBzd2FwCiAgICBpdG9iCiAgICBjb25jYXQKICAgIHB1c2hieXRlcyAweDliN2FkODU1IC8vIG1ldGhvZCAiTmF0aXZlU3dhcHBlZCh1aW50NjQsdWludDY0KSIKICAgIHN3YXAKICAgIGNvbmNhdAogICAgbG9nCiAgICAvLyBhcmNfMjgvY29udHJhY3QucHk6MjMKICAgIC8vIEBhcmM0LmFiaW1ldGhvZAogICAgaW50Y18xIC8vIDEKICAgIHJldHVybgoKCi8vIGV4YW1wbGVzLmFyY18yOC5jb250cmFjdC5FdmVudEVtaXR0ZXIuZW1pdF91Zml4ZWRbcm91dGluZ10oKSAtPiB2b2lkOgplbWl0X3VmaXhlZDoKICAgIC8vIGFyY18yOC9jb250cmFjdC5weToyNwogICAgLy8gQGFyYzQuYWJpbWV0aG9kKCkKICAgIHR4bmEgQXBwbGljYXRpb25BcmdzIDEKICAgIGR1cAogICAgbGVuCiAgICBwdXNoaW50IDMyCiAgICA9PQogICAgYXNzZXJ0IC8vIGludmFsaWQgbnVtYmVyIG9mIGJ5dGVzIGZvciBhcmM0LnVmaXhlZDI1NngxNgogICAgdHhuYSBBcHBsaWNhdGlvbkFyZ3MgMgogICAgZHVwCiAgICBsZW4KICAgIGludGNfMCAvLyA4CiAgICA9PQogICAgYXNzZXJ0IC8vIGludmFsaWQgbnVtYmVyIG9mIGJ5dGVzIGZvciBhcmM0LnVmaXhlZDY0eDIKICAgIC8vIGFyY18yOC9jb250cmFjdC5weTozMwogICAgLy8gYXJjNC5lbWl0KCJBbkV2ZW50KHVmaXhlZDI1NngxNix1Zml4ZWQ2NHgyKSIsIGEsIGIpCiAgICBjb25jYXQKICAgIHB1c2hieXRlcyAweDczODliMWJhIC8vIG1ldGhvZCAiQW5FdmVudCh1Zml4ZWQyNTZ4MTYsdWZpeGVkNjR4MikiCiAgICBzd2FwCiAgICBjb25jYXQKICAgIGxvZwogICAgLy8gYXJjXzI4L2NvbnRyYWN0LnB5OjI3CiAgICAvLyBAYXJjNC5hYmltZXRob2QoKQogICAgaW50Y18xIC8vIDEKICAgIHJldHVybgo=", + "approval": "I3ByYWdtYSB2ZXJzaW9uIDExCiNwcmFnbWEgdHlwZXRyYWNrIGZhbHNlCgovLyBhbGdvcHkuYXJjNC5BUkM0Q29udHJhY3QuYXBwcm92YWxfcHJvZ3JhbSgpIC0+IHVpbnQ2NDoKbWFpbjoKICAgIGludGNibG9jayA4IDEKICAgIC8vIGFyY18yOC9jb250cmFjdC5weToyMgogICAgLy8gY2xhc3MgRXZlbnRFbWl0dGVyKEFSQzRDb250cmFjdCk6CiAgICB0eG4gTnVtQXBwQXJncwogICAgYnogbWFpbl9fX2FsZ29weV9kZWZhdWx0X2NyZWF0ZUAxMAogICAgdHhuIE9uQ29tcGxldGlvbgogICAgIQogICAgYXNzZXJ0CiAgICB0eG4gQXBwbGljYXRpb25JRAogICAgYXNzZXJ0CiAgICBwdXNoYnl0ZXNzIDB4MGE5NTQyY2QgMHg3OWM1YmEzMiAweDcxYTMxNTFmIC8vIG1ldGhvZCAiZW1pdF9zd2FwcGVkKHVpbnQ2NCx1aW50NjQpdm9pZCIsIG1ldGhvZCAiZW1pdF9uYXRpdmVfc3dhcHBlZCh1aW50NjQsdWludDY0KXZvaWQiLCBtZXRob2QgImVtaXRfdWZpeGVkKHVmaXhlZDI1NngxNix1Zml4ZWQ2NHgyKXZvaWQiCiAgICB0eG5hIEFwcGxpY2F0aW9uQXJncyAwCiAgICBtYXRjaCBlbWl0X3N3YXBwZWQgZW1pdF9uYXRpdmVfc3dhcHBlZCBlbWl0X3VmaXhlZAogICAgZXJyCgptYWluX19fYWxnb3B5X2RlZmF1bHRfY3JlYXRlQDEwOgogICAgdHhuIE9uQ29tcGxldGlvbgogICAgIQogICAgdHhuIEFwcGxpY2F0aW9uSUQKICAgICEKICAgICYmCiAgICByZXR1cm4KCgovLyBleGFtcGxlcy5hcmNfMjguY29udHJhY3QuRXZlbnRFbWl0dGVyLmVtaXRfc3dhcHBlZFtyb3V0aW5nXSgpIC0+IHZvaWQ6CmVtaXRfc3dhcHBlZDoKICAgIC8vIGFyY18yOC9jb250cmFjdC5weToyMwogICAgLy8gQGFyYzQuYWJpbWV0aG9kCiAgICB0eG5hIEFwcGxpY2F0aW9uQXJncyAxCiAgICBkdXAKICAgIGxlbgogICAgaW50Y18wIC8vIDgKICAgID09CiAgICBhc3NlcnQgLy8gaW52YWxpZCBudW1iZXIgb2YgYnl0ZXMgZm9yIGFyYzQudWludDY0CiAgICB0eG5hIEFwcGxpY2F0aW9uQXJncyAyCiAgICBkdXAKICAgIGxlbgogICAgaW50Y18wIC8vIDgKICAgID09CiAgICBhc3NlcnQgLy8gaW52YWxpZCBudW1iZXIgb2YgYnl0ZXMgZm9yIGFyYzQudWludDY0CiAgICAvLyBhcmNfMjgvY29udHJhY3QucHk6MjUKICAgIC8vIGFyYzQuZW1pdChTd2FwcGVkKGIsIGEpKQogICAgc3dhcAogICAgY29uY2F0CiAgICBwdXNoYnl0ZXMgMHgxY2NiZDkyNSAvLyBtZXRob2QgIlN3YXBwZWQodWludDY0LHVpbnQ2NCkiCiAgICBzd2FwCiAgICBjb25jYXQKICAgIGR1cAogICAgbG9nCiAgICAvLyBhcmNfMjgvY29udHJhY3QucHk6MjYKICAgIC8vIGFyYzQuZW1pdCgiU3dhcHBlZCh1aW50NjQsdWludDY0KSIsIGIsIGEpCiAgICBkdXAKICAgIGxvZwogICAgLy8gYXJjXzI4L2NvbnRyYWN0LnB5OjI3CiAgICAvLyBhcmM0LmVtaXQoIlN3YXBwZWQiLCBiLCBhKQogICAgbG9nCiAgICAvLyBhcmNfMjgvY29udHJhY3QucHk6MjMKICAgIC8vIEBhcmM0LmFiaW1ldGhvZAogICAgaW50Y18xIC8vIDEKICAgIHJldHVybgoKCi8vIGV4YW1wbGVzLmFyY18yOC5jb250cmFjdC5FdmVudEVtaXR0ZXIuZW1pdF9uYXRpdmVfc3dhcHBlZFtyb3V0aW5nXSgpIC0+IHZvaWQ6CmVtaXRfbmF0aXZlX3N3YXBwZWQ6CiAgICAvLyBhcmNfMjgvY29udHJhY3QucHk6MjkKICAgIC8vIEBhcmM0LmFiaW1ldGhvZAogICAgdHhuYSBBcHBsaWNhdGlvbkFyZ3MgMQogICAgZHVwCiAgICBsZW4KICAgIGludGNfMCAvLyA4CiAgICA9PQogICAgYXNzZXJ0IC8vIGludmFsaWQgbnVtYmVyIG9mIGJ5dGVzIGZvciBhcmM0LnVpbnQ2NAogICAgYnRvaQogICAgdHhuYSBBcHBsaWNhdGlvbkFyZ3MgMgogICAgZHVwCiAgICBsZW4KICAgIGludGNfMCAvLyA4CiAgICA9PQogICAgYXNzZXJ0IC8vIGludmFsaWQgbnVtYmVyIG9mIGJ5dGVzIGZvciBhcmM0LnVpbnQ2NAogICAgYnRvaQogICAgLy8gYXJjXzI4L2NvbnRyYWN0LnB5OjMxCiAgICAvLyBhcmM0LmVtaXQoTmF0aXZlU3dhcHBlZChhPWIsIGI9YSkpCiAgICBpdG9iCiAgICBzd2FwCiAgICBpdG9iCiAgICBjb25jYXQKICAgIHB1c2hieXRlcyAweDliN2FkODU1IC8vIG1ldGhvZCAiTmF0aXZlU3dhcHBlZCh1aW50NjQsdWludDY0KSIKICAgIHN3YXAKICAgIGNvbmNhdAogICAgbG9nCiAgICAvLyBhcmNfMjgvY29udHJhY3QucHk6MjkKICAgIC8vIEBhcmM0LmFiaW1ldGhvZAogICAgaW50Y18xIC8vIDEKICAgIHJldHVybgoKCi8vIGV4YW1wbGVzLmFyY18yOC5jb250cmFjdC5FdmVudEVtaXR0ZXIuZW1pdF91Zml4ZWRbcm91dGluZ10oKSAtPiB2b2lkOgplbWl0X3VmaXhlZDoKICAgIC8vIGFyY18yOC9jb250cmFjdC5weTozMwogICAgLy8gQGFyYzQuYWJpbWV0aG9kKCkKICAgIHR4bmEgQXBwbGljYXRpb25BcmdzIDEKICAgIGR1cAogICAgbGVuCiAgICBwdXNoaW50IDMyCiAgICA9PQogICAgYXNzZXJ0IC8vIGludmFsaWQgbnVtYmVyIG9mIGJ5dGVzIGZvciBhcmM0LnVmaXhlZDI1NngxNgogICAgdHhuYSBBcHBsaWNhdGlvbkFyZ3MgMgogICAgZHVwCiAgICBsZW4KICAgIGludGNfMCAvLyA4CiAgICA9PQogICAgYXNzZXJ0IC8vIGludmFsaWQgbnVtYmVyIG9mIGJ5dGVzIGZvciBhcmM0LnVmaXhlZDY0eDIKICAgIC8vIGFyY18yOC9jb250cmFjdC5weTozOQogICAgLy8gYXJjNC5lbWl0KCJBbkV2ZW50KHVmaXhlZDI1NngxNix1Zml4ZWQ2NHgyKSIsIGEsIGIpCiAgICBjb25jYXQKICAgIHB1c2hieXRlcyAweDczODliMWJhIC8vIG1ldGhvZCAiQW5FdmVudCh1Zml4ZWQyNTZ4MTYsdWZpeGVkNjR4MikiCiAgICBzd2FwCiAgICBjb25jYXQKICAgIGxvZwogICAgLy8gYXJjXzI4L2NvbnRyYWN0LnB5OjMzCiAgICAvLyBAYXJjNC5hYmltZXRob2QoKQogICAgaW50Y18xIC8vIDEKICAgIHJldHVybgo=", "clear": "I3ByYWdtYSB2ZXJzaW9uIDExCiNwcmFnbWEgdHlwZXRyYWNrIGZhbHNlCgovLyBhbGdvcHkuYXJjNC5BUkM0Q29udHJhY3QuY2xlYXJfc3RhdGVfcHJvZ3JhbSgpIC0+IHVpbnQ2NDoKbWFpbjoKICAgIHB1c2hpbnQgMQogICAgcmV0dXJuCg==" }, "byteCode": { @@ -224,9 +228,11 @@ }, { "type": "uint64", - "name": "b" + "name": "b", + "desc": "These are field docs for Swapped.b" } - ] + ], + "desc": "This is a docstring for Swapped" }, { "name": "Swapped", @@ -246,13 +252,15 @@ "args": [ { "type": "uint64", - "name": "a" + "name": "a", + "desc": "These are field docs for NativeSwapped.a" }, { "type": "uint64", "name": "b" } - ] + ], + "desc": "This is a docstring for NativeSwapped" }, { "name": "AnEvent", diff --git a/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.000.ssa.ir b/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.000.ssa.ir index 12e7021283..35a579c4fc 100644 --- a/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.000.ssa.ir +++ b/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.000.ssa.ir @@ -4,34 +4,34 @@ main algopy.arc4.ARC4Contract.approval_program: return tmp%0#0 subroutine examples.arc_28.contract.EventEmitter.__puya_arc4_router__() -> bool: - block@0: // L16 + block@0: // L22 let tmp%0#0: uint64 = (txn NumAppArgs) let tmp%1#0: bool = (!= tmp%0#0 0u) goto tmp%1#0 ? block@1 : block@9 - block@1: // abi_routing_L16 + block@1: // abi_routing_L22 let tmp%2#0: uint64 = (txn OnCompletion) let tmp%3#0: bool = (== tmp%2#0 NoOp) (assert tmp%3#0) let tmp%4#0: uint64 = (txn ApplicationID) let tmp%5#0: bool = (!= tmp%4#0 0u) goto tmp%5#0 ? block@2 : block@7 - block@2: // call_NoOp_L16 + block@2: // call_NoOp_L22 let tmp%6#0: bytes = (txna ApplicationArgs 0) switch tmp%6#0 {method "emit_swapped(uint64,uint64)void" => block@3, method "emit_native_swapped(uint64,uint64)void" => block@4, method "emit_ufixed(ufixed256x16,ufixed64x2)void" => block@5, * => block@6} - block@3: // emit_swapped_route_L17 + block@3: // emit_swapped_route_L23 examples.arc_28.contract.EventEmitter.emit_swapped[routing]() goto block@6 - block@4: // emit_native_swapped_route_L23 + block@4: // emit_native_swapped_route_L29 examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() goto block@6 - block@5: // emit_ufixed_route_L27 + block@5: // emit_ufixed_route_L33 examples.arc_28.contract.EventEmitter.emit_ufixed[routing]() goto block@6 - block@6: // switch_case_next_L16 + block@6: // switch_case_next_L22 goto block@8 - block@7: // create_NoOp_L16 + block@7: // create_NoOp_L22 goto block@8 - block@8: // after_if_else_L16 + block@8: // after_if_else_L22 goto block@10 block@9: // __algopy_default_create_L1 let tmp%7#0: uint64 = (txn OnCompletion) @@ -42,11 +42,11 @@ subroutine examples.arc_28.contract.EventEmitter.__puya_arc4_router__() -> bool: (assert tmp%11#0) examples.arc_28.contract.EventEmitter.__algopy_default_create() exit 1u - block@10: // after_if_else_L16 + block@10: // after_if_else_L22 exit 0u subroutine examples.arc_28.contract.EventEmitter.emit_swapped[routing]() -> void: - block@0: // L17 + block@0: // L23 let tmp%0#0: bytes = (txna ApplicationArgs 1) let len%0#0: uint64 = (len tmp%0#0) let eq%0#0: bool = (== len%0#0 8u) @@ -61,7 +61,7 @@ subroutine examples.arc_28.contract.EventEmitter.emit_swapped[routing]() -> void exit 1u subroutine examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() -> void: - block@0: // L23 + block@0: // L29 let tmp%0#0: bytes = (txna ApplicationArgs 1) let len%0#0: uint64 = (len tmp%0#0) let eq%0#0: bool = (== len%0#0 8u) @@ -78,7 +78,7 @@ subroutine examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() exit 1u subroutine examples.arc_28.contract.EventEmitter.emit_ufixed[routing]() -> void: - block@0: // L27 + block@0: // L33 let tmp%0#0: bytes = (txna ApplicationArgs 1) let len%0#0: uint64 = (len tmp%0#0) let eq%0#0: bool = (== len%0#0 32u) @@ -93,7 +93,7 @@ subroutine examples.arc_28.contract.EventEmitter.emit_ufixed[routing]() -> void: exit 1u subroutine examples.arc_28.contract.EventEmitter.emit_swapped(a: Encoded(uint64), b: Encoded(uint64)) -> void: - block@0: // L17 + block@0: // L23 let tmp%0#0: Encoded(uint64,uint64) = bytes_encode<(uint64,uint64)>(b#0, a#0) let event%0#0: bytes = (concat method "Swapped(uint64,uint64)" tmp%0#0) (log event%0#0) @@ -106,14 +106,14 @@ subroutine examples.arc_28.contract.EventEmitter.emit_swapped(a: Encoded(uint64) return subroutine examples.arc_28.contract.EventEmitter.emit_native_swapped(a: uint64, b: uint64) -> void: - block@0: // L23 + block@0: // L29 let tmp%0#0: Encoded(uint64,uint64) = bytes_encode<(uint64,uint64)>(b#0, a#0) let event%0#0: bytes = (concat method "NativeSwapped(uint64,uint64)" tmp%0#0) (log event%0#0) return subroutine examples.arc_28.contract.EventEmitter.emit_ufixed(a: Encoded(uint256), b: Encoded(uint64)) -> void: - block@0: // L27 + block@0: // L33 let tmp%0#0: Encoded(uint256,uint64) = bytes_encode<(uint256,uint64)>(a#0, b#0) let event%0#0: bytes = (concat method "AnEvent(ufixed256x16,ufixed64x2)" tmp%0#0) (log event%0#0) diff --git a/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.001.ssa.opt.ir b/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.001.ssa.opt.ir index 44f3031eac..2a275211c2 100644 --- a/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.001.ssa.opt.ir +++ b/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.001.ssa.opt.ir @@ -3,26 +3,26 @@ main algopy.arc4.ARC4Contract.approval_program: let tmp%0#1: uint64 = (txn NumAppArgs) let tmp%1#0: bool = (!= tmp%0#1 0u) goto tmp%0#1 ? block@2 : block@10 - block@2: // abi_routing_L16 + block@2: // abi_routing_L22 let tmp%2#0: uint64 = (txn OnCompletion) let tmp%3#0: bool = (! tmp%2#0) (assert tmp%3#0) let tmp%4#0: uint64 = (txn ApplicationID) let tmp%5#0: bool = (!= tmp%4#0 0u) goto tmp%4#0 ? block@3 : block@9 - block@3: // call_NoOp_L16 + block@3: // call_NoOp_L22 let tmp%6#0: bytes = (txna ApplicationArgs 0) switch tmp%6#0 {method "emit_swapped(uint64,uint64)void" => block@4, method "emit_native_swapped(uint64,uint64)void" => block@5, method "emit_ufixed(ufixed256x16,ufixed64x2)void" => block@6, * => block@9} - block@4: // emit_swapped_route_L17 + block@4: // emit_swapped_route_L23 examples.arc_28.contract.EventEmitter.emit_swapped[routing]() goto block@9 - block@5: // emit_native_swapped_route_L23 + block@5: // emit_native_swapped_route_L29 examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() goto block@9 - block@6: // emit_ufixed_route_L27 + block@6: // emit_ufixed_route_L33 examples.arc_28.contract.EventEmitter.emit_ufixed[routing]() goto block@9 - block@9: // after_if_else_L16 + block@9: // after_if_else_L22 fail block@10: // __algopy_default_create_L1 let tmp%7#0: uint64 = (txn OnCompletion) @@ -35,7 +35,7 @@ main algopy.arc4.ARC4Contract.approval_program: exit 1u subroutine examples.arc_28.contract.EventEmitter.emit_swapped[routing]() -> void: - block@0: // L17 + block@0: // L23 let a#0: Encoded(uint64) = (txna ApplicationArgs 1) let len%0#0: uint64 = (len a#0) let eq%0#0: bool = (== len%0#0 8u) @@ -52,7 +52,7 @@ subroutine examples.arc_28.contract.EventEmitter.emit_swapped[routing]() -> void exit 1u subroutine examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() -> void: - block@0: // L23 + block@0: // L29 let tmp%0#0: bytes = (txna ApplicationArgs 1) let len%0#0: uint64 = (len tmp%0#0) let eq%0#0: bool = (== len%0#0 8u) @@ -69,7 +69,7 @@ subroutine examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() exit 1u subroutine examples.arc_28.contract.EventEmitter.emit_ufixed[routing]() -> void: - block@0: // L27 + block@0: // L33 let a#0: Encoded(uint256) = (txna ApplicationArgs 1) let len%0#0: uint64 = (len a#0) let eq%0#0: bool = (== len%0#0 32u) diff --git a/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.002.ssa.opt.ir b/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.002.ssa.opt.ir index 8c0a8d7381..a95ec5dbe8 100644 --- a/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.002.ssa.opt.ir +++ b/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.002.ssa.opt.ir @@ -2,7 +2,7 @@ main algopy.arc4.ARC4Contract.approval_program: block@0: // L1 let tmp%0#1: uint64 = (txn NumAppArgs) goto tmp%0#1 ? block@2 : block@10 - block@2: // abi_routing_L16 + block@2: // abi_routing_L22 let tmp%2#0: uint64 = (txn OnCompletion) let tmp%3#0: bool = (! tmp%2#0) (assert tmp%3#0) @@ -10,16 +10,16 @@ main algopy.arc4.ARC4Contract.approval_program: (assert tmp%4#0) let tmp%6#0: bytes = (txna ApplicationArgs 0) switch tmp%6#0 {method "emit_swapped(uint64,uint64)void" => block@4, method "emit_native_swapped(uint64,uint64)void" => block@5, method "emit_ufixed(ufixed256x16,ufixed64x2)void" => block@6, * => block@9} - block@4: // emit_swapped_route_L17 + block@4: // emit_swapped_route_L23 examples.arc_28.contract.EventEmitter.emit_swapped[routing]() goto block@9 - block@5: // emit_native_swapped_route_L23 + block@5: // emit_native_swapped_route_L29 examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() goto block@9 - block@6: // emit_ufixed_route_L27 + block@6: // emit_ufixed_route_L33 examples.arc_28.contract.EventEmitter.emit_ufixed[routing]() goto block@9 - block@9: // after_if_else_L16 + block@9: // after_if_else_L22 fail block@10: // __algopy_default_create_L1 let tmp%7#0: uint64 = (txn OnCompletion) @@ -31,7 +31,7 @@ main algopy.arc4.ARC4Contract.approval_program: exit 1u subroutine examples.arc_28.contract.EventEmitter.emit_swapped[routing]() -> void: - block@0: // L17 + block@0: // L23 let a#0: Encoded(uint64) = (txna ApplicationArgs 1) let len%0#0: uint64 = (len a#0) let eq%0#0: bool = (== len%0#0 8u) @@ -48,7 +48,7 @@ subroutine examples.arc_28.contract.EventEmitter.emit_swapped[routing]() -> void exit 1u subroutine examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() -> void: - block@0: // L23 + block@0: // L29 let tmp%0#0: bytes = (txna ApplicationArgs 1) let len%0#0: uint64 = (len tmp%0#0) let eq%0#0: bool = (== len%0#0 8u) @@ -65,7 +65,7 @@ subroutine examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() exit 1u subroutine examples.arc_28.contract.EventEmitter.emit_ufixed[routing]() -> void: - block@0: // L27 + block@0: // L33 let a#0: Encoded(uint256) = (txna ApplicationArgs 1) let len%0#0: uint64 = (len a#0) let eq%0#0: bool = (== len%0#0 32u) diff --git a/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.100.ssa.array.ir b/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.100.ssa.array.ir index 0d5274816b..792a82d126 100644 --- a/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.100.ssa.array.ir +++ b/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.100.ssa.array.ir @@ -2,7 +2,7 @@ main algopy.arc4.ARC4Contract.approval_program: block@0: // L1 let tmp%0#1: uint64 = (txn NumAppArgs) goto tmp%0#1 ? block@2 : block@10 - block@2: // abi_routing_L16 + block@2: // abi_routing_L22 let tmp%2#0: uint64 = (txn OnCompletion) let tmp%3#0: bool = (! tmp%2#0) (assert tmp%3#0) @@ -10,16 +10,16 @@ main algopy.arc4.ARC4Contract.approval_program: (assert tmp%4#0) let tmp%6#0: bytes = (txna ApplicationArgs 0) switch tmp%6#0 {method "emit_swapped(uint64,uint64)void" => block@4, method "emit_native_swapped(uint64,uint64)void" => block@5, method "emit_ufixed(ufixed256x16,ufixed64x2)void" => block@6, * => block@9} - block@4: // emit_swapped_route_L17 + block@4: // emit_swapped_route_L23 examples.arc_28.contract.EventEmitter.emit_swapped[routing]() goto block@9 - block@5: // emit_native_swapped_route_L23 + block@5: // emit_native_swapped_route_L29 examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() goto block@9 - block@6: // emit_ufixed_route_L27 + block@6: // emit_ufixed_route_L33 examples.arc_28.contract.EventEmitter.emit_ufixed[routing]() goto block@9 - block@9: // after_if_else_L16 + block@9: // after_if_else_L22 fail block@10: // __algopy_default_create_L1 let tmp%7#0: uint64 = (txn OnCompletion) @@ -31,7 +31,7 @@ main algopy.arc4.ARC4Contract.approval_program: exit 1u subroutine examples.arc_28.contract.EventEmitter.emit_swapped[routing]() -> void: - block@0: // L17 + block@0: // L23 let a#0: Encoded(uint64) = (txna ApplicationArgs 1) let len%0#0: uint64 = (len a#0) let eq%0#0: bool = (== len%0#0 8u) @@ -51,7 +51,7 @@ subroutine examples.arc_28.contract.EventEmitter.emit_swapped[routing]() -> void exit 1u subroutine examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() -> void: - block@0: // L23 + block@0: // L29 let tmp%0#0: bytes = (txna ApplicationArgs 1) let len%0#0: uint64 = (len tmp%0#0) let eq%0#0: bool = (== len%0#0 8u) @@ -75,7 +75,7 @@ subroutine examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() exit 1u subroutine examples.arc_28.contract.EventEmitter.emit_ufixed[routing]() -> void: - block@0: // L27 + block@0: // L33 let a#0: Encoded(uint256) = (txna ApplicationArgs 1) let len%0#0: uint64 = (len a#0) let eq%0#0: bool = (== len%0#0 32u) diff --git a/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.200.ssa.array.opt.ir b/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.200.ssa.array.opt.ir index a2a630bf3f..0cb66c2d42 100644 --- a/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.200.ssa.array.opt.ir +++ b/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.200.ssa.array.opt.ir @@ -2,7 +2,7 @@ main algopy.arc4.ARC4Contract.approval_program: block@0: // L1 let tmp%0#1: uint64 = (txn NumAppArgs) goto tmp%0#1 ? block@2 : block@10 - block@2: // abi_routing_L16 + block@2: // abi_routing_L22 let tmp%2#0: uint64 = (txn OnCompletion) let tmp%3#0: bool = (! tmp%2#0) (assert tmp%3#0) @@ -10,16 +10,16 @@ main algopy.arc4.ARC4Contract.approval_program: (assert tmp%4#0) let tmp%6#0: bytes = (txna ApplicationArgs 0) switch tmp%6#0 {method "emit_swapped(uint64,uint64)void" => block@4, method "emit_native_swapped(uint64,uint64)void" => block@5, method "emit_ufixed(ufixed256x16,ufixed64x2)void" => block@6, * => block@9} - block@4: // emit_swapped_route_L17 + block@4: // emit_swapped_route_L23 examples.arc_28.contract.EventEmitter.emit_swapped[routing]() goto block@9 - block@5: // emit_native_swapped_route_L23 + block@5: // emit_native_swapped_route_L29 examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() goto block@9 - block@6: // emit_ufixed_route_L27 + block@6: // emit_ufixed_route_L33 examples.arc_28.contract.EventEmitter.emit_ufixed[routing]() goto block@9 - block@9: // after_if_else_L16 + block@9: // after_if_else_L22 fail block@10: // __algopy_default_create_L1 let tmp%7#0: uint64 = (txn OnCompletion) @@ -31,7 +31,7 @@ main algopy.arc4.ARC4Contract.approval_program: exit 1u subroutine examples.arc_28.contract.EventEmitter.emit_swapped[routing]() -> void: - block@0: // L17 + block@0: // L23 let a#0: Encoded(uint64) = (txna ApplicationArgs 1) let len%0#0: uint64 = (len a#0) let eq%0#0: bool = (== len%0#0 8u) @@ -49,7 +49,7 @@ subroutine examples.arc_28.contract.EventEmitter.emit_swapped[routing]() -> void exit 1u subroutine examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() -> void: - block@0: // L23 + block@0: // L29 let tmp%0#0: bytes = (txna ApplicationArgs 1) let len%0#0: uint64 = (len tmp%0#0) let eq%0#0: bool = (== len%0#0 8u) @@ -69,7 +69,7 @@ subroutine examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() exit 1u subroutine examples.arc_28.contract.EventEmitter.emit_ufixed[routing]() -> void: - block@0: // L27 + block@0: // L33 let a#0: Encoded(uint256) = (txna ApplicationArgs 1) let len%0#0: uint64 = (len a#0) let eq%0#0: bool = (== len%0#0 32u) diff --git a/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.201.ssa.array.opt.ir b/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.201.ssa.array.opt.ir index 7dd41f9a08..390789183b 100644 --- a/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.201.ssa.array.opt.ir +++ b/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.201.ssa.array.opt.ir @@ -2,7 +2,7 @@ main algopy.arc4.ARC4Contract.approval_program: block@0: // L1 let tmp%0#1: uint64 = (txn NumAppArgs) goto tmp%0#1 ? block@2 : block@10 - block@2: // abi_routing_L16 + block@2: // abi_routing_L22 let tmp%2#0: uint64 = (txn OnCompletion) let tmp%3#0: bool = (! tmp%2#0) (assert tmp%3#0) @@ -10,16 +10,16 @@ main algopy.arc4.ARC4Contract.approval_program: (assert tmp%4#0) let tmp%6#0: bytes = (txna ApplicationArgs 0) switch tmp%6#0 {method "emit_swapped(uint64,uint64)void" => block@4, method "emit_native_swapped(uint64,uint64)void" => block@5, method "emit_ufixed(ufixed256x16,ufixed64x2)void" => block@6, * => block@9} - block@4: // emit_swapped_route_L17 + block@4: // emit_swapped_route_L23 examples.arc_28.contract.EventEmitter.emit_swapped[routing]() goto block@9 - block@5: // emit_native_swapped_route_L23 + block@5: // emit_native_swapped_route_L29 examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() goto block@9 - block@6: // emit_ufixed_route_L27 + block@6: // emit_ufixed_route_L33 examples.arc_28.contract.EventEmitter.emit_ufixed[routing]() goto block@9 - block@9: // after_if_else_L16 + block@9: // after_if_else_L22 fail block@10: // __algopy_default_create_L1 let tmp%7#0: uint64 = (txn OnCompletion) @@ -31,7 +31,7 @@ main algopy.arc4.ARC4Contract.approval_program: exit 1u subroutine examples.arc_28.contract.EventEmitter.emit_swapped[routing]() -> void: - block@0: // L17 + block@0: // L23 let a#0: Encoded(uint64) = (txna ApplicationArgs 1) let len%0#0: uint64 = (len a#0) let eq%0#0: bool = (== len%0#0 8u) @@ -48,7 +48,7 @@ subroutine examples.arc_28.contract.EventEmitter.emit_swapped[routing]() -> void exit 1u subroutine examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() -> void: - block@0: // L23 + block@0: // L29 let tmp%0#0: bytes = (txna ApplicationArgs 1) let len%0#0: uint64 = (len tmp%0#0) let eq%0#0: bool = (== len%0#0 8u) @@ -67,7 +67,7 @@ subroutine examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() exit 1u subroutine examples.arc_28.contract.EventEmitter.emit_ufixed[routing]() -> void: - block@0: // L27 + block@0: // L33 let a#0: Encoded(uint256) = (txna ApplicationArgs 1) let len%0#0: uint64 = (len a#0) let eq%0#0: bool = (== len%0#0 32u) diff --git a/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.300.ssa.slot.ir b/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.300.ssa.slot.ir index 7dd41f9a08..390789183b 100644 --- a/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.300.ssa.slot.ir +++ b/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.300.ssa.slot.ir @@ -2,7 +2,7 @@ main algopy.arc4.ARC4Contract.approval_program: block@0: // L1 let tmp%0#1: uint64 = (txn NumAppArgs) goto tmp%0#1 ? block@2 : block@10 - block@2: // abi_routing_L16 + block@2: // abi_routing_L22 let tmp%2#0: uint64 = (txn OnCompletion) let tmp%3#0: bool = (! tmp%2#0) (assert tmp%3#0) @@ -10,16 +10,16 @@ main algopy.arc4.ARC4Contract.approval_program: (assert tmp%4#0) let tmp%6#0: bytes = (txna ApplicationArgs 0) switch tmp%6#0 {method "emit_swapped(uint64,uint64)void" => block@4, method "emit_native_swapped(uint64,uint64)void" => block@5, method "emit_ufixed(ufixed256x16,ufixed64x2)void" => block@6, * => block@9} - block@4: // emit_swapped_route_L17 + block@4: // emit_swapped_route_L23 examples.arc_28.contract.EventEmitter.emit_swapped[routing]() goto block@9 - block@5: // emit_native_swapped_route_L23 + block@5: // emit_native_swapped_route_L29 examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() goto block@9 - block@6: // emit_ufixed_route_L27 + block@6: // emit_ufixed_route_L33 examples.arc_28.contract.EventEmitter.emit_ufixed[routing]() goto block@9 - block@9: // after_if_else_L16 + block@9: // after_if_else_L22 fail block@10: // __algopy_default_create_L1 let tmp%7#0: uint64 = (txn OnCompletion) @@ -31,7 +31,7 @@ main algopy.arc4.ARC4Contract.approval_program: exit 1u subroutine examples.arc_28.contract.EventEmitter.emit_swapped[routing]() -> void: - block@0: // L17 + block@0: // L23 let a#0: Encoded(uint64) = (txna ApplicationArgs 1) let len%0#0: uint64 = (len a#0) let eq%0#0: bool = (== len%0#0 8u) @@ -48,7 +48,7 @@ subroutine examples.arc_28.contract.EventEmitter.emit_swapped[routing]() -> void exit 1u subroutine examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() -> void: - block@0: // L23 + block@0: // L29 let tmp%0#0: bytes = (txna ApplicationArgs 1) let len%0#0: uint64 = (len tmp%0#0) let eq%0#0: bool = (== len%0#0 8u) @@ -67,7 +67,7 @@ subroutine examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() exit 1u subroutine examples.arc_28.contract.EventEmitter.emit_ufixed[routing]() -> void: - block@0: // L27 + block@0: // L33 let a#0: Encoded(uint256) = (txna ApplicationArgs 1) let len%0#0: uint64 = (len a#0) let eq%0#0: bool = (== len%0#0 32u) diff --git a/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.400.destructured.ir b/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.400.destructured.ir index 7dd41f9a08..390789183b 100644 --- a/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.400.destructured.ir +++ b/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.400.destructured.ir @@ -2,7 +2,7 @@ main algopy.arc4.ARC4Contract.approval_program: block@0: // L1 let tmp%0#1: uint64 = (txn NumAppArgs) goto tmp%0#1 ? block@2 : block@10 - block@2: // abi_routing_L16 + block@2: // abi_routing_L22 let tmp%2#0: uint64 = (txn OnCompletion) let tmp%3#0: bool = (! tmp%2#0) (assert tmp%3#0) @@ -10,16 +10,16 @@ main algopy.arc4.ARC4Contract.approval_program: (assert tmp%4#0) let tmp%6#0: bytes = (txna ApplicationArgs 0) switch tmp%6#0 {method "emit_swapped(uint64,uint64)void" => block@4, method "emit_native_swapped(uint64,uint64)void" => block@5, method "emit_ufixed(ufixed256x16,ufixed64x2)void" => block@6, * => block@9} - block@4: // emit_swapped_route_L17 + block@4: // emit_swapped_route_L23 examples.arc_28.contract.EventEmitter.emit_swapped[routing]() goto block@9 - block@5: // emit_native_swapped_route_L23 + block@5: // emit_native_swapped_route_L29 examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() goto block@9 - block@6: // emit_ufixed_route_L27 + block@6: // emit_ufixed_route_L33 examples.arc_28.contract.EventEmitter.emit_ufixed[routing]() goto block@9 - block@9: // after_if_else_L16 + block@9: // after_if_else_L22 fail block@10: // __algopy_default_create_L1 let tmp%7#0: uint64 = (txn OnCompletion) @@ -31,7 +31,7 @@ main algopy.arc4.ARC4Contract.approval_program: exit 1u subroutine examples.arc_28.contract.EventEmitter.emit_swapped[routing]() -> void: - block@0: // L17 + block@0: // L23 let a#0: Encoded(uint64) = (txna ApplicationArgs 1) let len%0#0: uint64 = (len a#0) let eq%0#0: bool = (== len%0#0 8u) @@ -48,7 +48,7 @@ subroutine examples.arc_28.contract.EventEmitter.emit_swapped[routing]() -> void exit 1u subroutine examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() -> void: - block@0: // L23 + block@0: // L29 let tmp%0#0: bytes = (txna ApplicationArgs 1) let len%0#0: uint64 = (len tmp%0#0) let eq%0#0: bool = (== len%0#0 8u) @@ -67,7 +67,7 @@ subroutine examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() exit 1u subroutine examples.arc_28.contract.EventEmitter.emit_ufixed[routing]() -> void: - block@0: // L27 + block@0: // L33 let a#0: Encoded(uint256) = (txna ApplicationArgs 1) let len%0#0: uint64 = (len a#0) let eq%0#0: bool = (== len%0#0 32u) diff --git a/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.500.build.mir b/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.500.build.mir index ac8baf8136..745a67ecf3 100644 --- a/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.500.build.mir +++ b/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.500.build.mir @@ -2,7 +2,7 @@ // algopy.arc4.ARC4Contract.approval_program() -> uint64: subroutine main: main_block@0: - // arc_28/contract.py:16 + // arc_28/contract.py:22 // class EventEmitter(ARC4Contract): txn NumAppArgs tmp%0#1 v-store tmp%0#1 @@ -10,7 +10,7 @@ subroutine main: bz main___algopy_default_create@10 ; b main_abi_routing@2 main_abi_routing@2: - // arc_28/contract.py:16 + // arc_28/contract.py:22 // class EventEmitter(ARC4Contract): txn OnCompletion tmp%2#0 v-store tmp%2#0 @@ -32,25 +32,25 @@ subroutine main: match main_emit_swapped_route@4 main_emit_native_swapped_route@5 main_emit_ufixed_route@6 ; b main_after_if_else@9 main_emit_swapped_route@4: - // arc_28/contract.py:17 + // arc_28/contract.py:23 // @arc4.abimethod callsub emit_swapped b main_after_if_else@9 main_emit_native_swapped_route@5: - // arc_28/contract.py:23 + // arc_28/contract.py:29 // @arc4.abimethod callsub emit_native_swapped b main_after_if_else@9 main_emit_ufixed_route@6: - // arc_28/contract.py:27 + // arc_28/contract.py:33 // @arc4.abimethod() callsub emit_ufixed b main_after_if_else@9 main_after_if_else@9: - // arc_28/contract.py:16 + // arc_28/contract.py:22 // class EventEmitter(ARC4Contract): err @@ -78,7 +78,7 @@ subroutine main: // examples.arc_28.contract.EventEmitter.emit_swapped[routing]() -> void: subroutine emit_swapped: emit_swapped_block@0: - // arc_28/contract.py:17 + // arc_28/contract.py:23 // @arc4.abimethod txna ApplicationArgs 1 a#0 v-store a#0 @@ -102,7 +102,7 @@ subroutine emit_swapped: v-store eq%1#0 v-load eq%1#0 eq%1#0 assert // invalid number of bytes for arc4.uint64 - // arc_28/contract.py:19 + // arc_28/contract.py:25 // arc4.emit(Swapped(b, a)) v-load b#0 b#0 v-load a#0 b#0,a#0 @@ -114,15 +114,15 @@ subroutine emit_swapped: v-store event%0#0 v-load event%0#0 event%0#0 log - // arc_28/contract.py:20 + // arc_28/contract.py:26 // arc4.emit("Swapped(uint64,uint64)", b, a) v-load event%0#0 event%0#0 log - // arc_28/contract.py:21 + // arc_28/contract.py:27 // arc4.emit("Swapped", b, a) v-load event%0#0 event%0#0 log - // arc_28/contract.py:17 + // arc_28/contract.py:23 // @arc4.abimethod int 1 1 return @@ -131,7 +131,7 @@ subroutine emit_swapped: // examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() -> void: subroutine emit_native_swapped: emit_native_swapped_block@0: - // arc_28/contract.py:23 + // arc_28/contract.py:29 // @arc4.abimethod txna ApplicationArgs 1 tmp%0#0 v-store tmp%0#0 @@ -161,7 +161,7 @@ subroutine emit_native_swapped: v-load tmp%2#0 tmp%2#0 btoi b#0 v-store b#0 - // arc_28/contract.py:25 + // arc_28/contract.py:31 // arc4.emit(NativeSwapped(a=b, b=a)) v-load b#0 b#0 itob aggregate%val_as_bytes%0#0 @@ -179,7 +179,7 @@ subroutine emit_native_swapped: v-store event%0#0 v-load event%0#0 event%0#0 log - // arc_28/contract.py:23 + // arc_28/contract.py:29 // @arc4.abimethod int 1 1 return @@ -188,7 +188,7 @@ subroutine emit_native_swapped: // examples.arc_28.contract.EventEmitter.emit_ufixed[routing]() -> void: subroutine emit_ufixed: emit_ufixed_block@0: - // arc_28/contract.py:27 + // arc_28/contract.py:33 // @arc4.abimethod() txna ApplicationArgs 1 a#0 v-store a#0 @@ -212,7 +212,7 @@ subroutine emit_ufixed: v-store eq%1#0 v-load eq%1#0 eq%1#0 assert // invalid number of bytes for arc4.ufixed64x2 - // arc_28/contract.py:33 + // arc_28/contract.py:39 // arc4.emit("AnEvent(ufixed256x16,ufixed64x2)", a, b) v-load a#0 a#0 v-load b#0 a#0,b#0 @@ -224,7 +224,7 @@ subroutine emit_ufixed: v-store event%0#0 v-load event%0#0 event%0#0 log - // arc_28/contract.py:27 + // arc_28/contract.py:33 // @arc4.abimethod() int 1 1 return diff --git a/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.501.lstack.mir b/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.501.lstack.mir index 6240faa58a..f746e7fb4b 100644 --- a/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.501.lstack.mir +++ b/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.501.lstack.mir @@ -2,14 +2,14 @@ // algopy.arc4.ARC4Contract.approval_program() -> uint64: subroutine main: main_block@0: - // arc_28/contract.py:16 + // arc_28/contract.py:22 // class EventEmitter(ARC4Contract): txn NumAppArgs tmp%0#1 l-load tmp%0#1 0 tmp%0#1 bz main___algopy_default_create@10 ; b main_abi_routing@2 main_abi_routing@2: - // arc_28/contract.py:16 + // arc_28/contract.py:22 // class EventEmitter(ARC4Contract): txn OnCompletion tmp%2#0 l-load tmp%2#0 0 tmp%2#0 @@ -27,25 +27,25 @@ subroutine main: match main_emit_swapped_route@4 main_emit_native_swapped_route@5 main_emit_ufixed_route@6 ; b main_after_if_else@9 main_emit_swapped_route@4: - // arc_28/contract.py:17 + // arc_28/contract.py:23 // @arc4.abimethod callsub emit_swapped b main_after_if_else@9 main_emit_native_swapped_route@5: - // arc_28/contract.py:23 + // arc_28/contract.py:29 // @arc4.abimethod callsub emit_native_swapped b main_after_if_else@9 main_emit_ufixed_route@6: - // arc_28/contract.py:27 + // arc_28/contract.py:33 // @arc4.abimethod() callsub emit_ufixed b main_after_if_else@9 main_after_if_else@9: - // arc_28/contract.py:16 + // arc_28/contract.py:22 // class EventEmitter(ARC4Contract): err @@ -68,7 +68,7 @@ subroutine main: // examples.arc_28.contract.EventEmitter.emit_swapped[routing]() -> void: subroutine emit_swapped: emit_swapped_block@0: - // arc_28/contract.py:17 + // arc_28/contract.py:23 // @arc4.abimethod txna ApplicationArgs 1 a#0 l-load-copy a#0 0 a#0,a#0 (copy) @@ -86,7 +86,7 @@ subroutine emit_swapped: == a#0,b#0,eq%1#0 l-load eq%1#0 0 a#0,b#0,eq%1#0 assert // invalid number of bytes for arc4.uint64 a#0,b#0 - // arc_28/contract.py:19 + // arc_28/contract.py:25 // arc4.emit(Swapped(b, a)) l-load b#0 0 a#0,b#0 l-load a#0 1 b#0,a#0 @@ -96,15 +96,15 @@ subroutine emit_swapped: concat event%0#0 l-load-copy event%0#0 0 event%0#0,event%0#0 (copy) log event%0#0 - // arc_28/contract.py:20 + // arc_28/contract.py:26 // arc4.emit("Swapped(uint64,uint64)", b, a) l-load-copy event%0#0 0 event%0#0,event%0#0 (copy) log event%0#0 - // arc_28/contract.py:21 + // arc_28/contract.py:27 // arc4.emit("Swapped", b, a) l-load event%0#0 0 event%0#0 log - // arc_28/contract.py:17 + // arc_28/contract.py:23 // @arc4.abimethod int 1 1 return @@ -113,7 +113,7 @@ subroutine emit_swapped: // examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() -> void: subroutine emit_native_swapped: emit_native_swapped_block@0: - // arc_28/contract.py:23 + // arc_28/contract.py:29 // @arc4.abimethod txna ApplicationArgs 1 tmp%0#0 l-load-copy tmp%0#0 0 tmp%0#0,tmp%0#0 (copy) @@ -135,7 +135,7 @@ subroutine emit_native_swapped: assert // invalid number of bytes for arc4.uint64 a#0,tmp%2#0 l-load tmp%2#0 0 a#0,tmp%2#0 btoi a#0,b#0 - // arc_28/contract.py:25 + // arc_28/contract.py:31 // arc4.emit(NativeSwapped(a=b, b=a)) l-load b#0 0 a#0,b#0 itob a#0,aggregate%val_as_bytes%0#0 @@ -149,7 +149,7 @@ subroutine emit_native_swapped: concat event%0#0 l-load event%0#0 0 event%0#0 log - // arc_28/contract.py:23 + // arc_28/contract.py:29 // @arc4.abimethod int 1 1 return @@ -158,7 +158,7 @@ subroutine emit_native_swapped: // examples.arc_28.contract.EventEmitter.emit_ufixed[routing]() -> void: subroutine emit_ufixed: emit_ufixed_block@0: - // arc_28/contract.py:27 + // arc_28/contract.py:33 // @arc4.abimethod() txna ApplicationArgs 1 a#0 l-load-copy a#0 0 a#0,a#0 (copy) @@ -176,7 +176,7 @@ subroutine emit_ufixed: == a#0,b#0,eq%1#0 l-load eq%1#0 0 a#0,b#0,eq%1#0 assert // invalid number of bytes for arc4.ufixed64x2 a#0,b#0 - // arc_28/contract.py:33 + // arc_28/contract.py:39 // arc4.emit("AnEvent(ufixed256x16,ufixed64x2)", a, b) l-load a#0 1 b#0,a#0 l-load b#0 1 a#0,b#0 @@ -186,7 +186,7 @@ subroutine emit_ufixed: concat event%0#0 l-load event%0#0 0 event%0#0 log - // arc_28/contract.py:27 + // arc_28/contract.py:33 // @arc4.abimethod() int 1 1 return diff --git a/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.502.lstack.opt.mir b/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.502.lstack.opt.mir index 69c93c30ad..42512325f6 100644 --- a/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.502.lstack.opt.mir +++ b/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.502.lstack.opt.mir @@ -2,13 +2,13 @@ // algopy.arc4.ARC4Contract.approval_program() -> uint64: subroutine main: main_block@0: - // arc_28/contract.py:16 + // arc_28/contract.py:22 // class EventEmitter(ARC4Contract): txn NumAppArgs tmp%0#1 bz main___algopy_default_create@10 ; b main_abi_routing@2 main_abi_routing@2: - // arc_28/contract.py:16 + // arc_28/contract.py:22 // class EventEmitter(ARC4Contract): txn OnCompletion tmp%2#0 ! tmp%3#0 @@ -23,25 +23,25 @@ subroutine main: match main_emit_swapped_route@4 main_emit_native_swapped_route@5 main_emit_ufixed_route@6 ; b main_after_if_else@9 main_emit_swapped_route@4: - // arc_28/contract.py:17 + // arc_28/contract.py:23 // @arc4.abimethod callsub emit_swapped b main_after_if_else@9 main_emit_native_swapped_route@5: - // arc_28/contract.py:23 + // arc_28/contract.py:29 // @arc4.abimethod callsub emit_native_swapped b main_after_if_else@9 main_emit_ufixed_route@6: - // arc_28/contract.py:27 + // arc_28/contract.py:33 // @arc4.abimethod() callsub emit_ufixed b main_after_if_else@9 main_after_if_else@9: - // arc_28/contract.py:16 + // arc_28/contract.py:22 // class EventEmitter(ARC4Contract): err @@ -61,7 +61,7 @@ subroutine main: // examples.arc_28.contract.EventEmitter.emit_swapped[routing]() -> void: subroutine emit_swapped: emit_swapped_block@0: - // arc_28/contract.py:17 + // arc_28/contract.py:23 // @arc4.abimethod txna ApplicationArgs 1 a#0 l-load-copy a#0 0 a#0,a#0 (copy) @@ -75,7 +75,7 @@ subroutine emit_swapped: int 8 a#0,b#0,len%1#0,8 == a#0,b#0,eq%1#0 assert // invalid number of bytes for arc4.uint64 a#0,b#0 - // arc_28/contract.py:19 + // arc_28/contract.py:25 // arc4.emit(Swapped(b, a)) l-load b#0 0 a#0,b#0 l-load a#0 1 b#0,a#0 @@ -85,15 +85,15 @@ subroutine emit_swapped: concat event%0#0 l-load-copy event%0#0 0 event%0#0,event%0#0 (copy) log event%0#0 - // arc_28/contract.py:20 + // arc_28/contract.py:26 // arc4.emit("Swapped(uint64,uint64)", b, a) l-load-copy event%0#0 0 event%0#0,event%0#0 (copy) log event%0#0 - // arc_28/contract.py:21 + // arc_28/contract.py:27 // arc4.emit("Swapped", b, a) l-load event%0#0 0 event%0#0 log - // arc_28/contract.py:17 + // arc_28/contract.py:23 // @arc4.abimethod int 1 1 return @@ -102,7 +102,7 @@ subroutine emit_swapped: // examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() -> void: subroutine emit_native_swapped: emit_native_swapped_block@0: - // arc_28/contract.py:23 + // arc_28/contract.py:29 // @arc4.abimethod txna ApplicationArgs 1 tmp%0#0 l-load-copy tmp%0#0 0 tmp%0#0,tmp%0#0 (copy) @@ -120,7 +120,7 @@ subroutine emit_native_swapped: assert // invalid number of bytes for arc4.uint64 a#0,tmp%2#0 l-load tmp%2#0 0 a#0,tmp%2#0 btoi a#0,b#0 - // arc_28/contract.py:25 + // arc_28/contract.py:31 // arc4.emit(NativeSwapped(a=b, b=a)) itob a#0,aggregate%val_as_bytes%0#0 l-load a#0 1 aggregate%val_as_bytes%0#0,a#0 @@ -132,7 +132,7 @@ subroutine emit_native_swapped: l-load aggregate%head%1#0 1 Method(NativeSwapped(uint64,uint64)),aggregate%head%1#0 concat event%0#0 log - // arc_28/contract.py:23 + // arc_28/contract.py:29 // @arc4.abimethod int 1 1 return @@ -141,7 +141,7 @@ subroutine emit_native_swapped: // examples.arc_28.contract.EventEmitter.emit_ufixed[routing]() -> void: subroutine emit_ufixed: emit_ufixed_block@0: - // arc_28/contract.py:27 + // arc_28/contract.py:33 // @arc4.abimethod() txna ApplicationArgs 1 a#0 l-load-copy a#0 0 a#0,a#0 (copy) @@ -155,7 +155,7 @@ subroutine emit_ufixed: int 8 a#0,b#0,len%1#0,8 == a#0,b#0,eq%1#0 assert // invalid number of bytes for arc4.ufixed64x2 a#0,b#0 - // arc_28/contract.py:33 + // arc_28/contract.py:39 // arc4.emit("AnEvent(ufixed256x16,ufixed64x2)", a, b) l-load a#0 1 b#0,a#0 l-load b#0 1 a#0,b#0 @@ -164,7 +164,7 @@ subroutine emit_ufixed: l-load aggregate%head%1#0 1 Method(AnEvent(ufixed256x16,ufixed64x2)),aggregate%head%1#0 concat event%0#0 log - // arc_28/contract.py:27 + // arc_28/contract.py:33 // @arc4.abimethod() int 1 1 return diff --git a/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.503.xstack.mir b/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.503.xstack.mir index 69c93c30ad..42512325f6 100644 --- a/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.503.xstack.mir +++ b/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.503.xstack.mir @@ -2,13 +2,13 @@ // algopy.arc4.ARC4Contract.approval_program() -> uint64: subroutine main: main_block@0: - // arc_28/contract.py:16 + // arc_28/contract.py:22 // class EventEmitter(ARC4Contract): txn NumAppArgs tmp%0#1 bz main___algopy_default_create@10 ; b main_abi_routing@2 main_abi_routing@2: - // arc_28/contract.py:16 + // arc_28/contract.py:22 // class EventEmitter(ARC4Contract): txn OnCompletion tmp%2#0 ! tmp%3#0 @@ -23,25 +23,25 @@ subroutine main: match main_emit_swapped_route@4 main_emit_native_swapped_route@5 main_emit_ufixed_route@6 ; b main_after_if_else@9 main_emit_swapped_route@4: - // arc_28/contract.py:17 + // arc_28/contract.py:23 // @arc4.abimethod callsub emit_swapped b main_after_if_else@9 main_emit_native_swapped_route@5: - // arc_28/contract.py:23 + // arc_28/contract.py:29 // @arc4.abimethod callsub emit_native_swapped b main_after_if_else@9 main_emit_ufixed_route@6: - // arc_28/contract.py:27 + // arc_28/contract.py:33 // @arc4.abimethod() callsub emit_ufixed b main_after_if_else@9 main_after_if_else@9: - // arc_28/contract.py:16 + // arc_28/contract.py:22 // class EventEmitter(ARC4Contract): err @@ -61,7 +61,7 @@ subroutine main: // examples.arc_28.contract.EventEmitter.emit_swapped[routing]() -> void: subroutine emit_swapped: emit_swapped_block@0: - // arc_28/contract.py:17 + // arc_28/contract.py:23 // @arc4.abimethod txna ApplicationArgs 1 a#0 l-load-copy a#0 0 a#0,a#0 (copy) @@ -75,7 +75,7 @@ subroutine emit_swapped: int 8 a#0,b#0,len%1#0,8 == a#0,b#0,eq%1#0 assert // invalid number of bytes for arc4.uint64 a#0,b#0 - // arc_28/contract.py:19 + // arc_28/contract.py:25 // arc4.emit(Swapped(b, a)) l-load b#0 0 a#0,b#0 l-load a#0 1 b#0,a#0 @@ -85,15 +85,15 @@ subroutine emit_swapped: concat event%0#0 l-load-copy event%0#0 0 event%0#0,event%0#0 (copy) log event%0#0 - // arc_28/contract.py:20 + // arc_28/contract.py:26 // arc4.emit("Swapped(uint64,uint64)", b, a) l-load-copy event%0#0 0 event%0#0,event%0#0 (copy) log event%0#0 - // arc_28/contract.py:21 + // arc_28/contract.py:27 // arc4.emit("Swapped", b, a) l-load event%0#0 0 event%0#0 log - // arc_28/contract.py:17 + // arc_28/contract.py:23 // @arc4.abimethod int 1 1 return @@ -102,7 +102,7 @@ subroutine emit_swapped: // examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() -> void: subroutine emit_native_swapped: emit_native_swapped_block@0: - // arc_28/contract.py:23 + // arc_28/contract.py:29 // @arc4.abimethod txna ApplicationArgs 1 tmp%0#0 l-load-copy tmp%0#0 0 tmp%0#0,tmp%0#0 (copy) @@ -120,7 +120,7 @@ subroutine emit_native_swapped: assert // invalid number of bytes for arc4.uint64 a#0,tmp%2#0 l-load tmp%2#0 0 a#0,tmp%2#0 btoi a#0,b#0 - // arc_28/contract.py:25 + // arc_28/contract.py:31 // arc4.emit(NativeSwapped(a=b, b=a)) itob a#0,aggregate%val_as_bytes%0#0 l-load a#0 1 aggregate%val_as_bytes%0#0,a#0 @@ -132,7 +132,7 @@ subroutine emit_native_swapped: l-load aggregate%head%1#0 1 Method(NativeSwapped(uint64,uint64)),aggregate%head%1#0 concat event%0#0 log - // arc_28/contract.py:23 + // arc_28/contract.py:29 // @arc4.abimethod int 1 1 return @@ -141,7 +141,7 @@ subroutine emit_native_swapped: // examples.arc_28.contract.EventEmitter.emit_ufixed[routing]() -> void: subroutine emit_ufixed: emit_ufixed_block@0: - // arc_28/contract.py:27 + // arc_28/contract.py:33 // @arc4.abimethod() txna ApplicationArgs 1 a#0 l-load-copy a#0 0 a#0,a#0 (copy) @@ -155,7 +155,7 @@ subroutine emit_ufixed: int 8 a#0,b#0,len%1#0,8 == a#0,b#0,eq%1#0 assert // invalid number of bytes for arc4.ufixed64x2 a#0,b#0 - // arc_28/contract.py:33 + // arc_28/contract.py:39 // arc4.emit("AnEvent(ufixed256x16,ufixed64x2)", a, b) l-load a#0 1 b#0,a#0 l-load b#0 1 a#0,b#0 @@ -164,7 +164,7 @@ subroutine emit_ufixed: l-load aggregate%head%1#0 1 Method(AnEvent(ufixed256x16,ufixed64x2)),aggregate%head%1#0 concat event%0#0 log - // arc_28/contract.py:27 + // arc_28/contract.py:33 // @arc4.abimethod() int 1 1 return diff --git a/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.504.xstack.opt.mir b/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.504.xstack.opt.mir index 69c93c30ad..42512325f6 100644 --- a/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.504.xstack.opt.mir +++ b/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.504.xstack.opt.mir @@ -2,13 +2,13 @@ // algopy.arc4.ARC4Contract.approval_program() -> uint64: subroutine main: main_block@0: - // arc_28/contract.py:16 + // arc_28/contract.py:22 // class EventEmitter(ARC4Contract): txn NumAppArgs tmp%0#1 bz main___algopy_default_create@10 ; b main_abi_routing@2 main_abi_routing@2: - // arc_28/contract.py:16 + // arc_28/contract.py:22 // class EventEmitter(ARC4Contract): txn OnCompletion tmp%2#0 ! tmp%3#0 @@ -23,25 +23,25 @@ subroutine main: match main_emit_swapped_route@4 main_emit_native_swapped_route@5 main_emit_ufixed_route@6 ; b main_after_if_else@9 main_emit_swapped_route@4: - // arc_28/contract.py:17 + // arc_28/contract.py:23 // @arc4.abimethod callsub emit_swapped b main_after_if_else@9 main_emit_native_swapped_route@5: - // arc_28/contract.py:23 + // arc_28/contract.py:29 // @arc4.abimethod callsub emit_native_swapped b main_after_if_else@9 main_emit_ufixed_route@6: - // arc_28/contract.py:27 + // arc_28/contract.py:33 // @arc4.abimethod() callsub emit_ufixed b main_after_if_else@9 main_after_if_else@9: - // arc_28/contract.py:16 + // arc_28/contract.py:22 // class EventEmitter(ARC4Contract): err @@ -61,7 +61,7 @@ subroutine main: // examples.arc_28.contract.EventEmitter.emit_swapped[routing]() -> void: subroutine emit_swapped: emit_swapped_block@0: - // arc_28/contract.py:17 + // arc_28/contract.py:23 // @arc4.abimethod txna ApplicationArgs 1 a#0 l-load-copy a#0 0 a#0,a#0 (copy) @@ -75,7 +75,7 @@ subroutine emit_swapped: int 8 a#0,b#0,len%1#0,8 == a#0,b#0,eq%1#0 assert // invalid number of bytes for arc4.uint64 a#0,b#0 - // arc_28/contract.py:19 + // arc_28/contract.py:25 // arc4.emit(Swapped(b, a)) l-load b#0 0 a#0,b#0 l-load a#0 1 b#0,a#0 @@ -85,15 +85,15 @@ subroutine emit_swapped: concat event%0#0 l-load-copy event%0#0 0 event%0#0,event%0#0 (copy) log event%0#0 - // arc_28/contract.py:20 + // arc_28/contract.py:26 // arc4.emit("Swapped(uint64,uint64)", b, a) l-load-copy event%0#0 0 event%0#0,event%0#0 (copy) log event%0#0 - // arc_28/contract.py:21 + // arc_28/contract.py:27 // arc4.emit("Swapped", b, a) l-load event%0#0 0 event%0#0 log - // arc_28/contract.py:17 + // arc_28/contract.py:23 // @arc4.abimethod int 1 1 return @@ -102,7 +102,7 @@ subroutine emit_swapped: // examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() -> void: subroutine emit_native_swapped: emit_native_swapped_block@0: - // arc_28/contract.py:23 + // arc_28/contract.py:29 // @arc4.abimethod txna ApplicationArgs 1 tmp%0#0 l-load-copy tmp%0#0 0 tmp%0#0,tmp%0#0 (copy) @@ -120,7 +120,7 @@ subroutine emit_native_swapped: assert // invalid number of bytes for arc4.uint64 a#0,tmp%2#0 l-load tmp%2#0 0 a#0,tmp%2#0 btoi a#0,b#0 - // arc_28/contract.py:25 + // arc_28/contract.py:31 // arc4.emit(NativeSwapped(a=b, b=a)) itob a#0,aggregate%val_as_bytes%0#0 l-load a#0 1 aggregate%val_as_bytes%0#0,a#0 @@ -132,7 +132,7 @@ subroutine emit_native_swapped: l-load aggregate%head%1#0 1 Method(NativeSwapped(uint64,uint64)),aggregate%head%1#0 concat event%0#0 log - // arc_28/contract.py:23 + // arc_28/contract.py:29 // @arc4.abimethod int 1 1 return @@ -141,7 +141,7 @@ subroutine emit_native_swapped: // examples.arc_28.contract.EventEmitter.emit_ufixed[routing]() -> void: subroutine emit_ufixed: emit_ufixed_block@0: - // arc_28/contract.py:27 + // arc_28/contract.py:33 // @arc4.abimethod() txna ApplicationArgs 1 a#0 l-load-copy a#0 0 a#0,a#0 (copy) @@ -155,7 +155,7 @@ subroutine emit_ufixed: int 8 a#0,b#0,len%1#0,8 == a#0,b#0,eq%1#0 assert // invalid number of bytes for arc4.ufixed64x2 a#0,b#0 - // arc_28/contract.py:33 + // arc_28/contract.py:39 // arc4.emit("AnEvent(ufixed256x16,ufixed64x2)", a, b) l-load a#0 1 b#0,a#0 l-load b#0 1 a#0,b#0 @@ -164,7 +164,7 @@ subroutine emit_ufixed: l-load aggregate%head%1#0 1 Method(AnEvent(ufixed256x16,ufixed64x2)),aggregate%head%1#0 concat event%0#0 log - // arc_28/contract.py:27 + // arc_28/contract.py:33 // @arc4.abimethod() int 1 1 return diff --git a/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.505.fstack.mir b/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.505.fstack.mir index 69c93c30ad..42512325f6 100644 --- a/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.505.fstack.mir +++ b/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.505.fstack.mir @@ -2,13 +2,13 @@ // algopy.arc4.ARC4Contract.approval_program() -> uint64: subroutine main: main_block@0: - // arc_28/contract.py:16 + // arc_28/contract.py:22 // class EventEmitter(ARC4Contract): txn NumAppArgs tmp%0#1 bz main___algopy_default_create@10 ; b main_abi_routing@2 main_abi_routing@2: - // arc_28/contract.py:16 + // arc_28/contract.py:22 // class EventEmitter(ARC4Contract): txn OnCompletion tmp%2#0 ! tmp%3#0 @@ -23,25 +23,25 @@ subroutine main: match main_emit_swapped_route@4 main_emit_native_swapped_route@5 main_emit_ufixed_route@6 ; b main_after_if_else@9 main_emit_swapped_route@4: - // arc_28/contract.py:17 + // arc_28/contract.py:23 // @arc4.abimethod callsub emit_swapped b main_after_if_else@9 main_emit_native_swapped_route@5: - // arc_28/contract.py:23 + // arc_28/contract.py:29 // @arc4.abimethod callsub emit_native_swapped b main_after_if_else@9 main_emit_ufixed_route@6: - // arc_28/contract.py:27 + // arc_28/contract.py:33 // @arc4.abimethod() callsub emit_ufixed b main_after_if_else@9 main_after_if_else@9: - // arc_28/contract.py:16 + // arc_28/contract.py:22 // class EventEmitter(ARC4Contract): err @@ -61,7 +61,7 @@ subroutine main: // examples.arc_28.contract.EventEmitter.emit_swapped[routing]() -> void: subroutine emit_swapped: emit_swapped_block@0: - // arc_28/contract.py:17 + // arc_28/contract.py:23 // @arc4.abimethod txna ApplicationArgs 1 a#0 l-load-copy a#0 0 a#0,a#0 (copy) @@ -75,7 +75,7 @@ subroutine emit_swapped: int 8 a#0,b#0,len%1#0,8 == a#0,b#0,eq%1#0 assert // invalid number of bytes for arc4.uint64 a#0,b#0 - // arc_28/contract.py:19 + // arc_28/contract.py:25 // arc4.emit(Swapped(b, a)) l-load b#0 0 a#0,b#0 l-load a#0 1 b#0,a#0 @@ -85,15 +85,15 @@ subroutine emit_swapped: concat event%0#0 l-load-copy event%0#0 0 event%0#0,event%0#0 (copy) log event%0#0 - // arc_28/contract.py:20 + // arc_28/contract.py:26 // arc4.emit("Swapped(uint64,uint64)", b, a) l-load-copy event%0#0 0 event%0#0,event%0#0 (copy) log event%0#0 - // arc_28/contract.py:21 + // arc_28/contract.py:27 // arc4.emit("Swapped", b, a) l-load event%0#0 0 event%0#0 log - // arc_28/contract.py:17 + // arc_28/contract.py:23 // @arc4.abimethod int 1 1 return @@ -102,7 +102,7 @@ subroutine emit_swapped: // examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() -> void: subroutine emit_native_swapped: emit_native_swapped_block@0: - // arc_28/contract.py:23 + // arc_28/contract.py:29 // @arc4.abimethod txna ApplicationArgs 1 tmp%0#0 l-load-copy tmp%0#0 0 tmp%0#0,tmp%0#0 (copy) @@ -120,7 +120,7 @@ subroutine emit_native_swapped: assert // invalid number of bytes for arc4.uint64 a#0,tmp%2#0 l-load tmp%2#0 0 a#0,tmp%2#0 btoi a#0,b#0 - // arc_28/contract.py:25 + // arc_28/contract.py:31 // arc4.emit(NativeSwapped(a=b, b=a)) itob a#0,aggregate%val_as_bytes%0#0 l-load a#0 1 aggregate%val_as_bytes%0#0,a#0 @@ -132,7 +132,7 @@ subroutine emit_native_swapped: l-load aggregate%head%1#0 1 Method(NativeSwapped(uint64,uint64)),aggregate%head%1#0 concat event%0#0 log - // arc_28/contract.py:23 + // arc_28/contract.py:29 // @arc4.abimethod int 1 1 return @@ -141,7 +141,7 @@ subroutine emit_native_swapped: // examples.arc_28.contract.EventEmitter.emit_ufixed[routing]() -> void: subroutine emit_ufixed: emit_ufixed_block@0: - // arc_28/contract.py:27 + // arc_28/contract.py:33 // @arc4.abimethod() txna ApplicationArgs 1 a#0 l-load-copy a#0 0 a#0,a#0 (copy) @@ -155,7 +155,7 @@ subroutine emit_ufixed: int 8 a#0,b#0,len%1#0,8 == a#0,b#0,eq%1#0 assert // invalid number of bytes for arc4.ufixed64x2 a#0,b#0 - // arc_28/contract.py:33 + // arc_28/contract.py:39 // arc4.emit("AnEvent(ufixed256x16,ufixed64x2)", a, b) l-load a#0 1 b#0,a#0 l-load b#0 1 a#0,b#0 @@ -164,7 +164,7 @@ subroutine emit_ufixed: l-load aggregate%head%1#0 1 Method(AnEvent(ufixed256x16,ufixed64x2)),aggregate%head%1#0 concat event%0#0 log - // arc_28/contract.py:27 + // arc_28/contract.py:33 // @arc4.abimethod() int 1 1 return diff --git a/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.506.fstack.opt.mir b/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.506.fstack.opt.mir index 69c93c30ad..42512325f6 100644 --- a/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.506.fstack.opt.mir +++ b/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.506.fstack.opt.mir @@ -2,13 +2,13 @@ // algopy.arc4.ARC4Contract.approval_program() -> uint64: subroutine main: main_block@0: - // arc_28/contract.py:16 + // arc_28/contract.py:22 // class EventEmitter(ARC4Contract): txn NumAppArgs tmp%0#1 bz main___algopy_default_create@10 ; b main_abi_routing@2 main_abi_routing@2: - // arc_28/contract.py:16 + // arc_28/contract.py:22 // class EventEmitter(ARC4Contract): txn OnCompletion tmp%2#0 ! tmp%3#0 @@ -23,25 +23,25 @@ subroutine main: match main_emit_swapped_route@4 main_emit_native_swapped_route@5 main_emit_ufixed_route@6 ; b main_after_if_else@9 main_emit_swapped_route@4: - // arc_28/contract.py:17 + // arc_28/contract.py:23 // @arc4.abimethod callsub emit_swapped b main_after_if_else@9 main_emit_native_swapped_route@5: - // arc_28/contract.py:23 + // arc_28/contract.py:29 // @arc4.abimethod callsub emit_native_swapped b main_after_if_else@9 main_emit_ufixed_route@6: - // arc_28/contract.py:27 + // arc_28/contract.py:33 // @arc4.abimethod() callsub emit_ufixed b main_after_if_else@9 main_after_if_else@9: - // arc_28/contract.py:16 + // arc_28/contract.py:22 // class EventEmitter(ARC4Contract): err @@ -61,7 +61,7 @@ subroutine main: // examples.arc_28.contract.EventEmitter.emit_swapped[routing]() -> void: subroutine emit_swapped: emit_swapped_block@0: - // arc_28/contract.py:17 + // arc_28/contract.py:23 // @arc4.abimethod txna ApplicationArgs 1 a#0 l-load-copy a#0 0 a#0,a#0 (copy) @@ -75,7 +75,7 @@ subroutine emit_swapped: int 8 a#0,b#0,len%1#0,8 == a#0,b#0,eq%1#0 assert // invalid number of bytes for arc4.uint64 a#0,b#0 - // arc_28/contract.py:19 + // arc_28/contract.py:25 // arc4.emit(Swapped(b, a)) l-load b#0 0 a#0,b#0 l-load a#0 1 b#0,a#0 @@ -85,15 +85,15 @@ subroutine emit_swapped: concat event%0#0 l-load-copy event%0#0 0 event%0#0,event%0#0 (copy) log event%0#0 - // arc_28/contract.py:20 + // arc_28/contract.py:26 // arc4.emit("Swapped(uint64,uint64)", b, a) l-load-copy event%0#0 0 event%0#0,event%0#0 (copy) log event%0#0 - // arc_28/contract.py:21 + // arc_28/contract.py:27 // arc4.emit("Swapped", b, a) l-load event%0#0 0 event%0#0 log - // arc_28/contract.py:17 + // arc_28/contract.py:23 // @arc4.abimethod int 1 1 return @@ -102,7 +102,7 @@ subroutine emit_swapped: // examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() -> void: subroutine emit_native_swapped: emit_native_swapped_block@0: - // arc_28/contract.py:23 + // arc_28/contract.py:29 // @arc4.abimethod txna ApplicationArgs 1 tmp%0#0 l-load-copy tmp%0#0 0 tmp%0#0,tmp%0#0 (copy) @@ -120,7 +120,7 @@ subroutine emit_native_swapped: assert // invalid number of bytes for arc4.uint64 a#0,tmp%2#0 l-load tmp%2#0 0 a#0,tmp%2#0 btoi a#0,b#0 - // arc_28/contract.py:25 + // arc_28/contract.py:31 // arc4.emit(NativeSwapped(a=b, b=a)) itob a#0,aggregate%val_as_bytes%0#0 l-load a#0 1 aggregate%val_as_bytes%0#0,a#0 @@ -132,7 +132,7 @@ subroutine emit_native_swapped: l-load aggregate%head%1#0 1 Method(NativeSwapped(uint64,uint64)),aggregate%head%1#0 concat event%0#0 log - // arc_28/contract.py:23 + // arc_28/contract.py:29 // @arc4.abimethod int 1 1 return @@ -141,7 +141,7 @@ subroutine emit_native_swapped: // examples.arc_28.contract.EventEmitter.emit_ufixed[routing]() -> void: subroutine emit_ufixed: emit_ufixed_block@0: - // arc_28/contract.py:27 + // arc_28/contract.py:33 // @arc4.abimethod() txna ApplicationArgs 1 a#0 l-load-copy a#0 0 a#0,a#0 (copy) @@ -155,7 +155,7 @@ subroutine emit_ufixed: int 8 a#0,b#0,len%1#0,8 == a#0,b#0,eq%1#0 assert // invalid number of bytes for arc4.ufixed64x2 a#0,b#0 - // arc_28/contract.py:33 + // arc_28/contract.py:39 // arc4.emit("AnEvent(ufixed256x16,ufixed64x2)", a, b) l-load a#0 1 b#0,a#0 l-load b#0 1 a#0,b#0 @@ -164,7 +164,7 @@ subroutine emit_ufixed: l-load aggregate%head%1#0 1 Method(AnEvent(ufixed256x16,ufixed64x2)),aggregate%head%1#0 concat event%0#0 log - // arc_28/contract.py:27 + // arc_28/contract.py:33 // @arc4.abimethod() int 1 1 return diff --git a/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.507.mir b/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.507.mir index 69c93c30ad..42512325f6 100644 --- a/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.507.mir +++ b/examples/arc_28/out/EventEmitter.ir/EventEmitter.approval.507.mir @@ -2,13 +2,13 @@ // algopy.arc4.ARC4Contract.approval_program() -> uint64: subroutine main: main_block@0: - // arc_28/contract.py:16 + // arc_28/contract.py:22 // class EventEmitter(ARC4Contract): txn NumAppArgs tmp%0#1 bz main___algopy_default_create@10 ; b main_abi_routing@2 main_abi_routing@2: - // arc_28/contract.py:16 + // arc_28/contract.py:22 // class EventEmitter(ARC4Contract): txn OnCompletion tmp%2#0 ! tmp%3#0 @@ -23,25 +23,25 @@ subroutine main: match main_emit_swapped_route@4 main_emit_native_swapped_route@5 main_emit_ufixed_route@6 ; b main_after_if_else@9 main_emit_swapped_route@4: - // arc_28/contract.py:17 + // arc_28/contract.py:23 // @arc4.abimethod callsub emit_swapped b main_after_if_else@9 main_emit_native_swapped_route@5: - // arc_28/contract.py:23 + // arc_28/contract.py:29 // @arc4.abimethod callsub emit_native_swapped b main_after_if_else@9 main_emit_ufixed_route@6: - // arc_28/contract.py:27 + // arc_28/contract.py:33 // @arc4.abimethod() callsub emit_ufixed b main_after_if_else@9 main_after_if_else@9: - // arc_28/contract.py:16 + // arc_28/contract.py:22 // class EventEmitter(ARC4Contract): err @@ -61,7 +61,7 @@ subroutine main: // examples.arc_28.contract.EventEmitter.emit_swapped[routing]() -> void: subroutine emit_swapped: emit_swapped_block@0: - // arc_28/contract.py:17 + // arc_28/contract.py:23 // @arc4.abimethod txna ApplicationArgs 1 a#0 l-load-copy a#0 0 a#0,a#0 (copy) @@ -75,7 +75,7 @@ subroutine emit_swapped: int 8 a#0,b#0,len%1#0,8 == a#0,b#0,eq%1#0 assert // invalid number of bytes for arc4.uint64 a#0,b#0 - // arc_28/contract.py:19 + // arc_28/contract.py:25 // arc4.emit(Swapped(b, a)) l-load b#0 0 a#0,b#0 l-load a#0 1 b#0,a#0 @@ -85,15 +85,15 @@ subroutine emit_swapped: concat event%0#0 l-load-copy event%0#0 0 event%0#0,event%0#0 (copy) log event%0#0 - // arc_28/contract.py:20 + // arc_28/contract.py:26 // arc4.emit("Swapped(uint64,uint64)", b, a) l-load-copy event%0#0 0 event%0#0,event%0#0 (copy) log event%0#0 - // arc_28/contract.py:21 + // arc_28/contract.py:27 // arc4.emit("Swapped", b, a) l-load event%0#0 0 event%0#0 log - // arc_28/contract.py:17 + // arc_28/contract.py:23 // @arc4.abimethod int 1 1 return @@ -102,7 +102,7 @@ subroutine emit_swapped: // examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() -> void: subroutine emit_native_swapped: emit_native_swapped_block@0: - // arc_28/contract.py:23 + // arc_28/contract.py:29 // @arc4.abimethod txna ApplicationArgs 1 tmp%0#0 l-load-copy tmp%0#0 0 tmp%0#0,tmp%0#0 (copy) @@ -120,7 +120,7 @@ subroutine emit_native_swapped: assert // invalid number of bytes for arc4.uint64 a#0,tmp%2#0 l-load tmp%2#0 0 a#0,tmp%2#0 btoi a#0,b#0 - // arc_28/contract.py:25 + // arc_28/contract.py:31 // arc4.emit(NativeSwapped(a=b, b=a)) itob a#0,aggregate%val_as_bytes%0#0 l-load a#0 1 aggregate%val_as_bytes%0#0,a#0 @@ -132,7 +132,7 @@ subroutine emit_native_swapped: l-load aggregate%head%1#0 1 Method(NativeSwapped(uint64,uint64)),aggregate%head%1#0 concat event%0#0 log - // arc_28/contract.py:23 + // arc_28/contract.py:29 // @arc4.abimethod int 1 1 return @@ -141,7 +141,7 @@ subroutine emit_native_swapped: // examples.arc_28.contract.EventEmitter.emit_ufixed[routing]() -> void: subroutine emit_ufixed: emit_ufixed_block@0: - // arc_28/contract.py:27 + // arc_28/contract.py:33 // @arc4.abimethod() txna ApplicationArgs 1 a#0 l-load-copy a#0 0 a#0,a#0 (copy) @@ -155,7 +155,7 @@ subroutine emit_ufixed: int 8 a#0,b#0,len%1#0,8 == a#0,b#0,eq%1#0 assert // invalid number of bytes for arc4.ufixed64x2 a#0,b#0 - // arc_28/contract.py:33 + // arc_28/contract.py:39 // arc4.emit("AnEvent(ufixed256x16,ufixed64x2)", a, b) l-load a#0 1 b#0,a#0 l-load b#0 1 a#0,b#0 @@ -164,7 +164,7 @@ subroutine emit_ufixed: l-load aggregate%head%1#0 1 Method(AnEvent(ufixed256x16,ufixed64x2)),aggregate%head%1#0 concat event%0#0 log - // arc_28/contract.py:27 + // arc_28/contract.py:33 // @arc4.abimethod() int 1 1 return diff --git a/examples/arc_28/out_O2/EventEmitter.approval.puya.map b/examples/arc_28/out_O2/EventEmitter.approval.puya.map index 9ef299c71f..b379102626 100644 --- a/examples/arc_28/out_O2/EventEmitter.approval.puya.map +++ b/examples/arc_28/out_O2/EventEmitter.approval.puya.map @@ -3,7 +3,7 @@ "sources": [ "../contract.py" ], - "mappings": ";;;;;AAeA;;AAAA;;;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;;;;;;;;;;;;;;;;AAAA;;;AAAA;;;;;;;;AAAA;AAWK;;;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAMG;AAAA;;;;;;AAAA;AAAA;AAAA;AANH;AAAA;AAJA;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEa;AAAA;AAAA;AAAA;AAAV;;;;;;AAAA;AAAA;AAAA;AAFH;AAAA;AANA;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEa;AAAA;AAAV;;;;;;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AACA;AAJH;AAAA;;;;;;;;", + "mappings": ";;;;;AAqBA;;AAAA;;;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;;;;;;;;;;;;;;;;AAAA;;;AAAA;;;;;;;;AAAA;AAWK;;;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAMG;AAAA;;;;;;AAAA;AAAA;AAAA;AANH;AAAA;AAJA;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEa;AAAA;AAAA;AAAA;AAAV;;;;;;AAAA;AAAA;AAAA;AAFH;AAAA;AANA;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEa;AAAA;AAAV;;;;;;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AACA;AAJH;AAAA;;;;;;;;", "op_pc_offset": 0, "pc_events": { "54": { diff --git a/examples/arc_28/out_O2/EventEmitter.ir/EventEmitter.approval.400.destructured.ir b/examples/arc_28/out_O2/EventEmitter.ir/EventEmitter.approval.400.destructured.ir index 040477db2b..b88a7993e7 100644 --- a/examples/arc_28/out_O2/EventEmitter.ir/EventEmitter.approval.400.destructured.ir +++ b/examples/arc_28/out_O2/EventEmitter.ir/EventEmitter.approval.400.destructured.ir @@ -2,7 +2,7 @@ main algopy.arc4.ARC4Contract.approval_program: block@0: // L1 let tmp%0#1: uint64 = (txn NumAppArgs) goto tmp%0#1 ? block@2 : block@10 - block@2: // abi_routing_L16 + block@2: // abi_routing_L22 let tmp%2#0: uint64 = (txn OnCompletion) let tmp%3#0: bool = (! tmp%2#0) (assert tmp%3#0) @@ -10,7 +10,7 @@ main algopy.arc4.ARC4Contract.approval_program: (assert tmp%4#0) let tmp%6#0: bytes = (txna ApplicationArgs 0) switch tmp%6#0 {method "emit_swapped(uint64,uint64)void" => block@4, method "emit_native_swapped(uint64,uint64)void" => block@5, method "emit_ufixed(ufixed256x16,ufixed64x2)void" => block@6, * => block@9} - block@4: // emit_swapped_route_L17 + block@4: // emit_swapped_route_L23 let a#0: bytes = (txna ApplicationArgs 1) let len%0#0: uint64 = (len a#0) let eq%0#0: bool = (== len%0#0 8u) @@ -25,7 +25,7 @@ main algopy.arc4.ARC4Contract.approval_program: (log event%0#0) (log event%0#0) exit 1u - block@5: // emit_native_swapped_route_L23 + block@5: // emit_native_swapped_route_L29 let tmp%0#4: bytes = (txna ApplicationArgs 1) let len%0#0: uint64 = (len tmp%0#4) let eq%0#0: bool = (== len%0#0 8u) @@ -42,7 +42,7 @@ main algopy.arc4.ARC4Contract.approval_program: let event%0#0: bytes = (concat method "NativeSwapped(uint64,uint64)" aggregate%head%3#0) (log event%0#0) exit 1u - block@6: // emit_ufixed_route_L27 + block@6: // emit_ufixed_route_L33 let a#0: bytes = (txna ApplicationArgs 1) let len%0#0: uint64 = (len a#0) let eq%0#0: bool = (== len%0#0 32u) @@ -55,7 +55,7 @@ main algopy.arc4.ARC4Contract.approval_program: let event%0#0: bytes = (concat method "AnEvent(ufixed256x16,ufixed64x2)" aggregate%head%5#0) (log event%0#0) exit 1u - block@9: // after_if_else_L16 + block@9: // after_if_else_L22 fail block@10: // __algopy_default_create_L1 let tmp%7#0: uint64 = (txn OnCompletion) diff --git a/examples/arc_28/out_unoptimized/EventEmitter.approval.puya.map b/examples/arc_28/out_unoptimized/EventEmitter.approval.puya.map index 23bcffcbf4..e86d6bcdfb 100644 --- a/examples/arc_28/out_unoptimized/EventEmitter.approval.puya.map +++ b/examples/arc_28/out_unoptimized/EventEmitter.approval.puya.map @@ -3,7 +3,7 @@ "sources": [ "../contract.py" ], - "mappings": ";;;;;;;;;;;;;;;;;;;;AAeA;;AAAA;AAAA;AAAA;;;AAAA;;;AAAA;;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;;;AAAA;;;AAAA;;;AAAA;;;;;;AAAA;;;;;;AAAA;;;;;;AAAA;;AAAA;;;;;;;;AAAA;;;;;;;;;AAAA;AAWK;;;;;;AAJA;;;;;;AANA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;AAAA;AAAA;;;;AAMA;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;AAAA;AAAA;;;;AAIA;;;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAVA;;;;;;AAEa;AAAA;;AAAA;AAAA;;AAAA;AAAV;AAAA;;AAAA;AAAA;AACA;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;AACA;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEH;;;;;;AAEa;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAAV;;;;;;AAAA;;AAAA;AAAA;;AAEH;;;;;;AAMG;AAAA;;AAAA;AAAA;;AAAA;AAAA;;;;;;AAAA;;AAAA;AAAA;", + "mappings": ";;;;;;;;;;;;;;;;;;;;AAqBA;;AAAA;AAAA;AAAA;;;AAAA;;;AAAA;;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;;;AAAA;;;AAAA;;;AAAA;;;;;;AAAA;;;;;;AAAA;;;;;;AAAA;;AAAA;;;;;;;;AAAA;;;;;;;;;AAAA;AAWK;;;;;;AAJA;;;;;;AANA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;AAAA;AAAA;;;;AAMA;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;AAAA;AAAA;;;;AAIA;;;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;AAAA;AAAA;AAVA;;;;;;AAEa;AAAA;;AAAA;AAAA;;AAAA;AAAV;AAAA;;AAAA;AAAA;AACA;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;AACA;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEH;;;;;;AAEa;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAAV;;;;;;AAAA;;AAAA;AAAA;;AAEH;;;;;;AAMG;AAAA;;AAAA;AAAA;;AAAA;AAAA;;;;;;AAAA;;AAAA;AAAA;", "op_pc_offset": 0, "pc_events": { "1": { diff --git a/examples/arc_28/out_unoptimized/EventEmitter.approval.teal b/examples/arc_28/out_unoptimized/EventEmitter.approval.teal index c1b35368c2..f521fd14fa 100644 --- a/examples/arc_28/out_unoptimized/EventEmitter.approval.teal +++ b/examples/arc_28/out_unoptimized/EventEmitter.approval.teal @@ -11,7 +11,7 @@ main_block@0: b main_block@1 main_block@1: - // arc_28/contract.py:16 + // arc_28/contract.py:22 // class EventEmitter(ARC4Contract): txn NumAppArgs intc_0 // 0 @@ -20,7 +20,7 @@ main_block@1: b main_abi_routing@2 main_abi_routing@2: - // arc_28/contract.py:16 + // arc_28/contract.py:22 // class EventEmitter(ARC4Contract): txn OnCompletion intc_0 // NoOp @@ -33,7 +33,7 @@ main_abi_routing@2: b main_call_NoOp@3 main_call_NoOp@3: - // arc_28/contract.py:16 + // arc_28/contract.py:22 // class EventEmitter(ARC4Contract): txna ApplicationArgs 0 pushbytes 0x0a9542cd // method "emit_swapped(uint64,uint64)void" @@ -50,24 +50,24 @@ main_after_if_else@9: b main_after_if_else@11 main_after_if_else@11: - // arc_28/contract.py:16 + // arc_28/contract.py:22 // class EventEmitter(ARC4Contract): err main_emit_ufixed_route@6: - // arc_28/contract.py:27 + // arc_28/contract.py:33 // @arc4.abimethod() callsub emit_ufixed b main_switch_case_next@7 main_emit_native_swapped_route@5: - // arc_28/contract.py:23 + // arc_28/contract.py:29 // @arc4.abimethod callsub emit_native_swapped b main_switch_case_next@7 main_emit_swapped_route@4: - // arc_28/contract.py:17 + // arc_28/contract.py:23 // @arc4.abimethod callsub emit_swapped b main_switch_case_next@7 @@ -99,7 +99,7 @@ emit_swapped: b emit_swapped_block@0 emit_swapped_block@0: - // arc_28/contract.py:17 + // arc_28/contract.py:23 // @arc4.abimethod txna ApplicationArgs 1 dup @@ -123,7 +123,7 @@ emit_native_swapped: b emit_native_swapped_block@0 emit_native_swapped_block@0: - // arc_28/contract.py:23 + // arc_28/contract.py:29 // @arc4.abimethod txna ApplicationArgs 1 dup @@ -149,7 +149,7 @@ emit_ufixed: b emit_ufixed_block@0 emit_ufixed_block@0: - // arc_28/contract.py:27 + // arc_28/contract.py:33 // @arc4.abimethod() txna ApplicationArgs 1 dup @@ -170,14 +170,14 @@ emit_ufixed_block@0: // examples.arc_28.contract.EventEmitter.emit_swapped(a: bytes, b: bytes) -> void: examples.arc_28.contract.EventEmitter.emit_swapped: - // arc_28/contract.py:17-18 + // arc_28/contract.py:23-24 // @arc4.abimethod // def emit_swapped(self, a: arc4.UInt64, b: arc4.UInt64) -> None: proto 2 0 b examples.arc_28.contract.EventEmitter.emit_swapped_block@0 examples.arc_28.contract.EventEmitter.emit_swapped_block@0: - // arc_28/contract.py:19 + // arc_28/contract.py:25 // arc4.emit(Swapped(b, a)) bytec_0 // 0x frame_dig -1 @@ -188,7 +188,7 @@ examples.arc_28.contract.EventEmitter.emit_swapped_block@0: uncover 1 concat log - // arc_28/contract.py:20 + // arc_28/contract.py:26 // arc4.emit("Swapped(uint64,uint64)", b, a) bytec_0 // 0x frame_dig -1 @@ -199,7 +199,7 @@ examples.arc_28.contract.EventEmitter.emit_swapped_block@0: uncover 1 concat log - // arc_28/contract.py:21 + // arc_28/contract.py:27 // arc4.emit("Swapped", b, a) bytec_0 // 0x frame_dig -1 @@ -215,14 +215,14 @@ examples.arc_28.contract.EventEmitter.emit_swapped_block@0: // examples.arc_28.contract.EventEmitter.emit_native_swapped(a: uint64, b: uint64) -> void: examples.arc_28.contract.EventEmitter.emit_native_swapped: - // arc_28/contract.py:23-24 + // arc_28/contract.py:29-30 // @arc4.abimethod // def emit_native_swapped(self, a: UInt64, b: UInt64) -> None: proto 2 0 b examples.arc_28.contract.EventEmitter.emit_native_swapped_block@0 examples.arc_28.contract.EventEmitter.emit_native_swapped_block@0: - // arc_28/contract.py:25 + // arc_28/contract.py:31 // arc4.emit(NativeSwapped(a=b, b=a)) frame_dig -1 itob @@ -241,7 +241,7 @@ examples.arc_28.contract.EventEmitter.emit_native_swapped_block@0: // examples.arc_28.contract.EventEmitter.emit_ufixed(a: bytes, b: bytes) -> void: examples.arc_28.contract.EventEmitter.emit_ufixed: - // arc_28/contract.py:27-32 + // arc_28/contract.py:33-38 // @arc4.abimethod() // def emit_ufixed( // self, @@ -252,7 +252,7 @@ examples.arc_28.contract.EventEmitter.emit_ufixed: b examples.arc_28.contract.EventEmitter.emit_ufixed_block@0 examples.arc_28.contract.EventEmitter.emit_ufixed_block@0: - // arc_28/contract.py:33 + // arc_28/contract.py:39 // arc4.emit("AnEvent(ufixed256x16,ufixed64x2)", a, b) bytec_0 // 0x frame_dig -2 diff --git a/examples/arc_28/out_unoptimized/EventEmitter.ir/EventEmitter.approval.400.destructured.ir b/examples/arc_28/out_unoptimized/EventEmitter.ir/EventEmitter.approval.400.destructured.ir index 584ea0c75c..9d5c955b99 100644 --- a/examples/arc_28/out_unoptimized/EventEmitter.ir/EventEmitter.approval.400.destructured.ir +++ b/examples/arc_28/out_unoptimized/EventEmitter.ir/EventEmitter.approval.400.destructured.ir @@ -1,34 +1,34 @@ main algopy.arc4.ARC4Contract.approval_program: block@0: // L1 goto block@1 - block@1: // L16 + block@1: // L22 let tmp%0#1: uint64 = (txn NumAppArgs) let tmp%1#0: bool = (!= tmp%0#1 0u) goto tmp%1#0 ? block@2 : block@10 - block@2: // abi_routing_L16 + block@2: // abi_routing_L22 let tmp%2#0: uint64 = (txn OnCompletion) let tmp%3#0: bool = (== tmp%2#0 NoOp) (assert tmp%3#0) let tmp%4#0: uint64 = (txn ApplicationID) let tmp%5#0: bool = (!= tmp%4#0 0u) goto tmp%5#0 ? block@3 : block@8 - block@3: // call_NoOp_L16 + block@3: // call_NoOp_L22 let tmp%6#0: bytes = (txna ApplicationArgs 0) switch tmp%6#0 {method "emit_swapped(uint64,uint64)void" => block@4, method "emit_native_swapped(uint64,uint64)void" => block@5, method "emit_ufixed(ufixed256x16,ufixed64x2)void" => block@6, * => block@7} - block@4: // emit_swapped_route_L17 + block@4: // emit_swapped_route_L23 examples.arc_28.contract.EventEmitter.emit_swapped[routing]() goto block@7 - block@5: // emit_native_swapped_route_L23 + block@5: // emit_native_swapped_route_L29 examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() goto block@7 - block@6: // emit_ufixed_route_L27 + block@6: // emit_ufixed_route_L33 examples.arc_28.contract.EventEmitter.emit_ufixed[routing]() goto block@7 - block@7: // switch_case_next_L16 + block@7: // switch_case_next_L22 goto block@9 - block@8: // create_NoOp_L16 + block@8: // create_NoOp_L22 goto block@9 - block@9: // after_if_else_L16 + block@9: // after_if_else_L22 goto block@11 block@10: // __algopy_default_create_L1 let tmp%7#0: uint64 = (txn OnCompletion) @@ -42,14 +42,14 @@ main algopy.arc4.ARC4Contract.approval_program: goto block@14 block@14: // after_inlined_examples.arc_28.contract.EventEmitter.__algopy_default_create_L1 exit 1u - block@11: // after_if_else_L16 + block@11: // after_if_else_L22 exit 0u block@12: // after_inlined_examples.arc_28.contract.EventEmitter.__puya_arc4_router___L1 let tmp%0#0: bool = undefined return tmp%0#0 subroutine examples.arc_28.contract.EventEmitter.emit_swapped[routing]() -> void: - block@0: // L17 + block@0: // L23 let tmp%0#0: bytes = (txna ApplicationArgs 1) let len%0#0: uint64 = (len tmp%0#0) let eq%0#0: bool = (== len%0#0 8u) @@ -64,7 +64,7 @@ subroutine examples.arc_28.contract.EventEmitter.emit_swapped[routing]() -> void exit 1u subroutine examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() -> void: - block@0: // L23 + block@0: // L29 let tmp%0#0: bytes = (txna ApplicationArgs 1) let len%0#0: uint64 = (len tmp%0#0) let eq%0#0: bool = (== len%0#0 8u) @@ -81,7 +81,7 @@ subroutine examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() exit 1u subroutine examples.arc_28.contract.EventEmitter.emit_ufixed[routing]() -> void: - block@0: // L27 + block@0: // L33 let tmp%0#0: bytes = (txna ApplicationArgs 1) let len%0#0: uint64 = (len tmp%0#0) let eq%0#0: bool = (== len%0#0 32u) @@ -96,7 +96,7 @@ subroutine examples.arc_28.contract.EventEmitter.emit_ufixed[routing]() -> void: exit 1u subroutine examples.arc_28.contract.EventEmitter.emit_swapped(a: Encoded(uint64), b: Encoded(uint64)) -> void: - block@0: // L17 + block@0: // L23 let aggregate%head%0#0: bytes = (concat 0x b#0) let aggregate%head%1#0: bytes = (concat aggregate%head%0#0 a#0) let aggregate%as_Encoded(uint64,uint64)%0#0: Encoded(uint64,uint64) = aggregate%head%1#0 @@ -118,7 +118,7 @@ subroutine examples.arc_28.contract.EventEmitter.emit_swapped(a: Encoded(uint64) return subroutine examples.arc_28.contract.EventEmitter.emit_native_swapped(a: uint64, b: uint64) -> void: - block@0: // L23 + block@0: // L29 let aggregate%val_as_bytes%0#0: bytes[8] = (itob b#0) let aggregate%as_Encoded(uint64)%0#0: Encoded(uint64) = aggregate%val_as_bytes%0#0 let aggregate%head%0#0: bytes = (concat 0x aggregate%as_Encoded(uint64)%0#0) @@ -132,7 +132,7 @@ subroutine examples.arc_28.contract.EventEmitter.emit_native_swapped(a: uint64, return subroutine examples.arc_28.contract.EventEmitter.emit_ufixed(a: Encoded(uint256), b: Encoded(uint64)) -> void: - block@0: // L27 + block@0: // L33 let aggregate%head%0#0: bytes = (concat 0x a#0) let aggregate%head%1#0: bytes = (concat aggregate%head%0#0 b#0) let aggregate%as_Encoded(uint256,uint64)%0#0: Encoded(uint256,uint64) = aggregate%head%1#0 diff --git a/examples/arc_28/puya.log b/examples/arc_28/puya.log index 6a93936b05..ce316351a5 100644 --- a/examples/arc_28/puya.log +++ b/examples/arc_28/puya.log @@ -616,7 +616,7 @@ debug: Optimizer: Minimize Box Exist Asserts debug: Optimizer: Constant Reads And Unobserved Writes Elimination debug: Optimizing subroutine examples.arc_28.contract.EventEmitter.emit_swapped[routing] debug: Optimizer: Perform Subroutine Inlining -arc_28/contract.py:17:6 debug: inlining call to examples.arc_28.contract.EventEmitter.emit_swapped in examples.arc_28.contract.EventEmitter.emit_swapped[routing] +arc_28/contract.py:23:6 debug: inlining call to examples.arc_28.contract.EventEmitter.emit_swapped in examples.arc_28.contract.EventEmitter.emit_swapped[routing] debug: Optimizer: Split Parallel Copies debug: Optimizer: Constant Replacer debug: Optimizer: Copy Propagation @@ -638,13 +638,13 @@ debug: Merged linear block@2 into block@0 debug: Optimizer: Remove Linear Jumps debug: Optimizer: Remove Unreachable Blocks debug: Optimizer: Repeated Expression Elimination -debug: Replacing redundant declaration let tmp%1#1: Encoded(uint64,uint64) = bytes_encode<(uint64,uint64)>(b#0, a#0) with copy of existing registers [Register(source_location=arc_28/contract.py:19:18-31, ir_type=Encoded(uint64,uint64), name='tmp%0', version=1)] -debug: Replacing redundant declaration let tmp%2#0: Encoded(uint64,uint64) = bytes_encode<(uint64,uint64)>(b#0, a#0) with copy of existing registers [Register(source_location=arc_28/contract.py:19:18-31, ir_type=Encoded(uint64,uint64), name='tmp%0', version=1)] +debug: Replacing redundant declaration let tmp%1#1: Encoded(uint64,uint64) = bytes_encode<(uint64,uint64)>(b#0, a#0) with copy of existing registers [Register(source_location=arc_28/contract.py:25:18-31, ir_type=Encoded(uint64,uint64), name='tmp%0', version=1)] +debug: Replacing redundant declaration let tmp%2#0: Encoded(uint64,uint64) = bytes_encode<(uint64,uint64)>(b#0, a#0) with copy of existing registers [Register(source_location=arc_28/contract.py:25:18-31, ir_type=Encoded(uint64,uint64), name='tmp%0', version=1)] debug: Found equivalence set: tmp%0#1, tmp%1#1, tmp%2#0 debug: selected tmp%0#1 from equivalence set debug: Copy propagation made 2 modifications -debug: Replacing redundant declaration let event%1#0: bytes = (concat method "Swapped(uint64,uint64)" tmp%0#1) with copy of existing registers [Register(source_location=arc_28/contract.py:19:8-32, ir_type=bytes, name='event%0', version=0)] -debug: Replacing redundant declaration let event%2#0: bytes = (concat method "Swapped(uint64,uint64)" tmp%0#1) with copy of existing registers [Register(source_location=arc_28/contract.py:19:8-32, ir_type=bytes, name='event%0', version=0)] +debug: Replacing redundant declaration let event%1#0: bytes = (concat method "Swapped(uint64,uint64)" tmp%0#1) with copy of existing registers [Register(source_location=arc_28/contract.py:25:8-32, ir_type=bytes, name='event%0', version=0)] +debug: Replacing redundant declaration let event%2#0: bytes = (concat method "Swapped(uint64,uint64)" tmp%0#1) with copy of existing registers [Register(source_location=arc_28/contract.py:25:8-32, ir_type=bytes, name='event%0', version=0)] debug: Found equivalence set: event%0#0, event%1#0, event%2#0 debug: selected event%0#0 from equivalence set debug: Copy propagation made 2 modifications @@ -655,7 +655,7 @@ debug: Optimizer: Minimize Box Exist Asserts debug: Optimizer: Constant Reads And Unobserved Writes Elimination debug: Optimizing subroutine examples.arc_28.contract.EventEmitter.emit_native_swapped[routing] debug: Optimizer: Perform Subroutine Inlining -arc_28/contract.py:23:6 debug: inlining call to examples.arc_28.contract.EventEmitter.emit_native_swapped in examples.arc_28.contract.EventEmitter.emit_native_swapped[routing] +arc_28/contract.py:29:6 debug: inlining call to examples.arc_28.contract.EventEmitter.emit_native_swapped in examples.arc_28.contract.EventEmitter.emit_native_swapped[routing] debug: Optimizer: Split Parallel Copies debug: Optimizer: Constant Replacer debug: Optimizer: Copy Propagation @@ -688,7 +688,7 @@ debug: Optimizer: Minimize Box Exist Asserts debug: Optimizer: Constant Reads And Unobserved Writes Elimination debug: Optimizing subroutine examples.arc_28.contract.EventEmitter.emit_ufixed[routing] debug: Optimizer: Perform Subroutine Inlining -arc_28/contract.py:27:6 debug: inlining call to examples.arc_28.contract.EventEmitter.emit_ufixed in examples.arc_28.contract.EventEmitter.emit_ufixed[routing] +arc_28/contract.py:33:6 debug: inlining call to examples.arc_28.contract.EventEmitter.emit_ufixed in examples.arc_28.contract.EventEmitter.emit_ufixed[routing] debug: Optimizer: Split Parallel Copies debug: Optimizer: Constant Replacer debug: Optimizer: Copy Propagation @@ -730,13 +730,13 @@ debug: Optimizer: Merge Blocks debug: Optimizer: Remove Linear Jumps debug: Optimizer: Remove Unreachable Blocks debug: Optimizer: Repeated Expression Elimination -debug: Replacing redundant declaration let tmp%1#0: Encoded(uint64,uint64) = bytes_encode<(uint64,uint64)>(b#0, a#0) with copy of existing registers [Register(source_location=arc_28/contract.py:19:18-31, ir_type=Encoded(uint64,uint64), name='tmp%0', version=0)] -debug: Replacing redundant declaration let tmp%2#0: Encoded(uint64,uint64) = bytes_encode<(uint64,uint64)>(b#0, a#0) with copy of existing registers [Register(source_location=arc_28/contract.py:19:18-31, ir_type=Encoded(uint64,uint64), name='tmp%0', version=0)] +debug: Replacing redundant declaration let tmp%1#0: Encoded(uint64,uint64) = bytes_encode<(uint64,uint64)>(b#0, a#0) with copy of existing registers [Register(source_location=arc_28/contract.py:25:18-31, ir_type=Encoded(uint64,uint64), name='tmp%0', version=0)] +debug: Replacing redundant declaration let tmp%2#0: Encoded(uint64,uint64) = bytes_encode<(uint64,uint64)>(b#0, a#0) with copy of existing registers [Register(source_location=arc_28/contract.py:25:18-31, ir_type=Encoded(uint64,uint64), name='tmp%0', version=0)] debug: Found equivalence set: tmp%0#0, tmp%1#0, tmp%2#0 debug: selected tmp%0#0 from equivalence set debug: Copy propagation made 2 modifications -debug: Replacing redundant declaration let event%1#0: bytes = (concat method "Swapped(uint64,uint64)" tmp%0#0) with copy of existing registers [Register(source_location=arc_28/contract.py:19:8-32, ir_type=bytes, name='event%0', version=0)] -debug: Replacing redundant declaration let event%2#0: bytes = (concat method "Swapped(uint64,uint64)" tmp%0#0) with copy of existing registers [Register(source_location=arc_28/contract.py:19:8-32, ir_type=bytes, name='event%0', version=0)] +debug: Replacing redundant declaration let event%1#0: bytes = (concat method "Swapped(uint64,uint64)" tmp%0#0) with copy of existing registers [Register(source_location=arc_28/contract.py:25:8-32, ir_type=bytes, name='event%0', version=0)] +debug: Replacing redundant declaration let event%2#0: bytes = (concat method "Swapped(uint64,uint64)" tmp%0#0) with copy of existing registers [Register(source_location=arc_28/contract.py:25:8-32, ir_type=bytes, name='event%0', version=0)] debug: Found equivalence set: event%0#0, event%1#0, event%2#0 debug: selected event%0#0 from equivalence set debug: Copy propagation made 2 modifications @@ -1331,9 +1331,9 @@ debug: Optimizer: Constant Reads And Unobserved Writes Elimination debug: No optimizations performed in pass 1, ending loop debug: removing local static slots in approval program of examples.arc_28.contract.EventEmitter debug: auto reserving slots in algopy.arc4.ARC4Contract.approval_program, [] -arc_28/contract.py:17:6 debug: auto reserving slots in examples.arc_28.contract.EventEmitter.emit_swapped[routing], [] -arc_28/contract.py:23:6 debug: auto reserving slots in examples.arc_28.contract.EventEmitter.emit_native_swapped[routing], [] -arc_28/contract.py:27:6 debug: auto reserving slots in examples.arc_28.contract.EventEmitter.emit_ufixed[routing], [] +arc_28/contract.py:23:6 debug: auto reserving slots in examples.arc_28.contract.EventEmitter.emit_swapped[routing], [] +arc_28/contract.py:29:6 debug: auto reserving slots in examples.arc_28.contract.EventEmitter.emit_native_swapped[routing], [] +arc_28/contract.py:33:6 debug: auto reserving slots in examples.arc_28.contract.EventEmitter.emit_ufixed[routing], [] debug: Slot allocation not required debug: Output IR to arc_28/out/EventEmitter.ir/EventEmitter.approval.300.ssa.slot.ir debug: removing local static slots in clear program of examples.arc_28.contract.EventEmitter @@ -1475,9 +1475,9 @@ debug: Inserted emit_ufixed_block@0.ops[4]: 'l-store-copy a#0 0' debug: Replaced emit_ufixed_block@0.ops[30]: 'v-load a#0' with 'l-load a#0' debug: Found 2 edge set/s for algopy.arc4.ARC4Contract.approval_program debug: optimizing TEAL subroutine ops algopy.arc4.ARC4Contract.approval_program() -> uint64: -arc_28/contract.py:17:6 debug: optimizing TEAL subroutine ops examples.arc_28.contract.EventEmitter.emit_swapped[routing]() -> void: -arc_28/contract.py:23:6 debug: optimizing TEAL subroutine ops examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() -> void: -arc_28/contract.py:27:6 debug: optimizing TEAL subroutine ops examples.arc_28.contract.EventEmitter.emit_ufixed[routing]() -> void: +arc_28/contract.py:23:6 debug: optimizing TEAL subroutine ops examples.arc_28.contract.EventEmitter.emit_swapped[routing]() -> void: +arc_28/contract.py:29:6 debug: optimizing TEAL subroutine ops examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() -> void: +arc_28/contract.py:33:6 debug: optimizing TEAL subroutine ops examples.arc_28.contract.EventEmitter.emit_ufixed[routing]() -> void: debug: optimizing TEAL subroutine blocks algopy.arc4.ARC4Contract.approval_program() -> uint64: debug: replacing `b main_after_if_else@9` with `err` debug: replacing `b main_after_if_else@9` with `err` @@ -1491,11 +1491,11 @@ debug: removing jump-chain block main_emit_ufixed_route@6 debug: branching to main_emit_swapped_route@4 will be replaced with emit_swapped debug: branching to main_emit_native_swapped_route@5 will be replaced with emit_native_swapped debug: branching to main_emit_ufixed_route@6 will be replaced with emit_ufixed -arc_28/contract.py:17:6 debug: optimizing TEAL subroutine blocks examples.arc_28.contract.EventEmitter.emit_swapped[routing]() -> void: +arc_28/contract.py:23:6 debug: optimizing TEAL subroutine blocks examples.arc_28.contract.EventEmitter.emit_swapped[routing]() -> void: debug: inlining single reference block emit_swapped_block@0 into emit_swapped -arc_28/contract.py:23:6 debug: optimizing TEAL subroutine blocks examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() -> void: +arc_28/contract.py:29:6 debug: optimizing TEAL subroutine blocks examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() -> void: debug: inlining single reference block emit_native_swapped_block@0 into emit_native_swapped -arc_28/contract.py:27:6 debug: optimizing TEAL subroutine blocks examples.arc_28.contract.EventEmitter.emit_ufixed[routing]() -> void: +arc_28/contract.py:33:6 debug: optimizing TEAL subroutine blocks examples.arc_28.contract.EventEmitter.emit_ufixed[routing]() -> void: debug: inlining single reference block emit_ufixed_block@0 into emit_ufixed debug: optimizing TEAL subroutine ops algopy.arc4.ARC4Contract.clear_state_program() -> uint64: debug: optimizing TEAL subroutine blocks algopy.arc4.ARC4Contract.clear_state_program() -> uint64: diff --git a/examples/arc_28/puya_O2.log b/examples/arc_28/puya_O2.log index 726dd27cde..e3f390d298 100644 --- a/examples/arc_28/puya_O2.log +++ b/examples/arc_28/puya_O2.log @@ -583,9 +583,9 @@ debug: Optimizer: Constant Reads And Unobserved Writes Elimination debug: Optimizing subroutine examples.arc_28.contract.EventEmitter.__puya_arc4_router__ debug: Optimizer: Perform Subroutine Inlining debug: inlining call to examples.arc_28.contract.EventEmitter.__algopy_default_create in examples.arc_28.contract.EventEmitter.__puya_arc4_router__ -arc_28/contract.py:27:6 debug: inlining call to examples.arc_28.contract.EventEmitter.emit_ufixed[routing] in examples.arc_28.contract.EventEmitter.__puya_arc4_router__ -arc_28/contract.py:23:6 debug: inlining call to examples.arc_28.contract.EventEmitter.emit_native_swapped[routing] in examples.arc_28.contract.EventEmitter.__puya_arc4_router__ -arc_28/contract.py:17:6 debug: inlining call to examples.arc_28.contract.EventEmitter.emit_swapped[routing] in examples.arc_28.contract.EventEmitter.__puya_arc4_router__ +arc_28/contract.py:33:6 debug: inlining call to examples.arc_28.contract.EventEmitter.emit_ufixed[routing] in examples.arc_28.contract.EventEmitter.__puya_arc4_router__ +arc_28/contract.py:29:6 debug: inlining call to examples.arc_28.contract.EventEmitter.emit_native_swapped[routing] in examples.arc_28.contract.EventEmitter.__puya_arc4_router__ +arc_28/contract.py:23:6 debug: inlining call to examples.arc_28.contract.EventEmitter.emit_swapped[routing] in examples.arc_28.contract.EventEmitter.__puya_arc4_router__ debug: Optimizer: Split Parallel Copies debug: Optimizer: Constant Replacer debug: Optimizer: Copy Propagation @@ -641,7 +641,7 @@ debug: Optimizer: Minimize Box Exist Asserts debug: Optimizer: Constant Reads And Unobserved Writes Elimination debug: Optimizing subroutine examples.arc_28.contract.EventEmitter.emit_swapped[routing] debug: Optimizer: Perform Subroutine Inlining -arc_28/contract.py:17:6 debug: inlining call to examples.arc_28.contract.EventEmitter.emit_swapped in examples.arc_28.contract.EventEmitter.emit_swapped[routing] +arc_28/contract.py:23:6 debug: inlining call to examples.arc_28.contract.EventEmitter.emit_swapped in examples.arc_28.contract.EventEmitter.emit_swapped[routing] debug: Optimizer: Split Parallel Copies debug: Optimizer: Constant Replacer debug: Optimizer: Copy Propagation @@ -663,13 +663,13 @@ debug: Merged linear block@2 into block@0 debug: Optimizer: Remove Linear Jumps debug: Optimizer: Remove Unreachable Blocks debug: Optimizer: Repeated Expression Elimination -debug: Replacing redundant declaration let tmp%1#1: Encoded(uint64,uint64) = bytes_encode<(uint64,uint64)>(b#0, a#0) with copy of existing registers [Register(source_location=arc_28/contract.py:19:18-31, ir_type=Encoded(uint64,uint64), name='tmp%0', version=1)] -debug: Replacing redundant declaration let tmp%2#0: Encoded(uint64,uint64) = bytes_encode<(uint64,uint64)>(b#0, a#0) with copy of existing registers [Register(source_location=arc_28/contract.py:19:18-31, ir_type=Encoded(uint64,uint64), name='tmp%0', version=1)] +debug: Replacing redundant declaration let tmp%1#1: Encoded(uint64,uint64) = bytes_encode<(uint64,uint64)>(b#0, a#0) with copy of existing registers [Register(source_location=arc_28/contract.py:25:18-31, ir_type=Encoded(uint64,uint64), name='tmp%0', version=1)] +debug: Replacing redundant declaration let tmp%2#0: Encoded(uint64,uint64) = bytes_encode<(uint64,uint64)>(b#0, a#0) with copy of existing registers [Register(source_location=arc_28/contract.py:25:18-31, ir_type=Encoded(uint64,uint64), name='tmp%0', version=1)] debug: Found equivalence set: tmp%0#1, tmp%1#1, tmp%2#0 debug: selected tmp%0#1 from equivalence set debug: Copy propagation made 2 modifications -debug: Replacing redundant declaration let event%1#0: bytes = (concat method "Swapped(uint64,uint64)" tmp%0#1) with copy of existing registers [Register(source_location=arc_28/contract.py:19:8-32, ir_type=bytes, name='event%0', version=0)] -debug: Replacing redundant declaration let event%2#0: bytes = (concat method "Swapped(uint64,uint64)" tmp%0#1) with copy of existing registers [Register(source_location=arc_28/contract.py:19:8-32, ir_type=bytes, name='event%0', version=0)] +debug: Replacing redundant declaration let event%1#0: bytes = (concat method "Swapped(uint64,uint64)" tmp%0#1) with copy of existing registers [Register(source_location=arc_28/contract.py:25:8-32, ir_type=bytes, name='event%0', version=0)] +debug: Replacing redundant declaration let event%2#0: bytes = (concat method "Swapped(uint64,uint64)" tmp%0#1) with copy of existing registers [Register(source_location=arc_28/contract.py:25:8-32, ir_type=bytes, name='event%0', version=0)] debug: Found equivalence set: event%0#0, event%1#0, event%2#0 debug: selected event%0#0 from equivalence set debug: Copy propagation made 2 modifications @@ -680,7 +680,7 @@ debug: Optimizer: Minimize Box Exist Asserts debug: Optimizer: Constant Reads And Unobserved Writes Elimination debug: Optimizing subroutine examples.arc_28.contract.EventEmitter.emit_native_swapped[routing] debug: Optimizer: Perform Subroutine Inlining -arc_28/contract.py:23:6 debug: inlining call to examples.arc_28.contract.EventEmitter.emit_native_swapped in examples.arc_28.contract.EventEmitter.emit_native_swapped[routing] +arc_28/contract.py:29:6 debug: inlining call to examples.arc_28.contract.EventEmitter.emit_native_swapped in examples.arc_28.contract.EventEmitter.emit_native_swapped[routing] debug: Optimizer: Split Parallel Copies debug: Optimizer: Constant Replacer debug: Optimizer: Copy Propagation @@ -713,7 +713,7 @@ debug: Optimizer: Minimize Box Exist Asserts debug: Optimizer: Constant Reads And Unobserved Writes Elimination debug: Optimizing subroutine examples.arc_28.contract.EventEmitter.emit_ufixed[routing] debug: Optimizer: Perform Subroutine Inlining -arc_28/contract.py:27:6 debug: inlining call to examples.arc_28.contract.EventEmitter.emit_ufixed in examples.arc_28.contract.EventEmitter.emit_ufixed[routing] +arc_28/contract.py:33:6 debug: inlining call to examples.arc_28.contract.EventEmitter.emit_ufixed in examples.arc_28.contract.EventEmitter.emit_ufixed[routing] debug: Optimizer: Split Parallel Copies debug: Optimizer: Constant Replacer debug: Optimizer: Copy Propagation @@ -755,13 +755,13 @@ debug: Optimizer: Merge Blocks debug: Optimizer: Remove Linear Jumps debug: Optimizer: Remove Unreachable Blocks debug: Optimizer: Repeated Expression Elimination -debug: Replacing redundant declaration let tmp%1#0: Encoded(uint64,uint64) = bytes_encode<(uint64,uint64)>(b#0, a#0) with copy of existing registers [Register(source_location=arc_28/contract.py:19:18-31, ir_type=Encoded(uint64,uint64), name='tmp%0', version=0)] -debug: Replacing redundant declaration let tmp%2#0: Encoded(uint64,uint64) = bytes_encode<(uint64,uint64)>(b#0, a#0) with copy of existing registers [Register(source_location=arc_28/contract.py:19:18-31, ir_type=Encoded(uint64,uint64), name='tmp%0', version=0)] +debug: Replacing redundant declaration let tmp%1#0: Encoded(uint64,uint64) = bytes_encode<(uint64,uint64)>(b#0, a#0) with copy of existing registers [Register(source_location=arc_28/contract.py:25:18-31, ir_type=Encoded(uint64,uint64), name='tmp%0', version=0)] +debug: Replacing redundant declaration let tmp%2#0: Encoded(uint64,uint64) = bytes_encode<(uint64,uint64)>(b#0, a#0) with copy of existing registers [Register(source_location=arc_28/contract.py:25:18-31, ir_type=Encoded(uint64,uint64), name='tmp%0', version=0)] debug: Found equivalence set: tmp%0#0, tmp%1#0, tmp%2#0 debug: selected tmp%0#0 from equivalence set debug: Copy propagation made 2 modifications -debug: Replacing redundant declaration let event%1#0: bytes = (concat method "Swapped(uint64,uint64)" tmp%0#0) with copy of existing registers [Register(source_location=arc_28/contract.py:19:8-32, ir_type=bytes, name='event%0', version=0)] -debug: Replacing redundant declaration let event%2#0: bytes = (concat method "Swapped(uint64,uint64)" tmp%0#0) with copy of existing registers [Register(source_location=arc_28/contract.py:19:8-32, ir_type=bytes, name='event%0', version=0)] +debug: Replacing redundant declaration let event%1#0: bytes = (concat method "Swapped(uint64,uint64)" tmp%0#0) with copy of existing registers [Register(source_location=arc_28/contract.py:25:8-32, ir_type=bytes, name='event%0', version=0)] +debug: Replacing redundant declaration let event%2#0: bytes = (concat method "Swapped(uint64,uint64)" tmp%0#0) with copy of existing registers [Register(source_location=arc_28/contract.py:25:8-32, ir_type=bytes, name='event%0', version=0)] debug: Found equivalence set: event%0#0, event%1#0, event%2#0 debug: selected event%0#0 from equivalence set debug: Copy propagation made 2 modifications @@ -842,9 +842,9 @@ debug: marking single-use function examples.arc_28.contract.EventEmitter.emit_uf debug: Optimizing subroutine algopy.arc4.ARC4Contract.approval_program debug: Optimizer: Perform Subroutine Inlining debug: inlining call to examples.arc_28.contract.EventEmitter.__algopy_default_create in algopy.arc4.ARC4Contract.approval_program -arc_28/contract.py:27:6 debug: inlining call to examples.arc_28.contract.EventEmitter.emit_ufixed[routing] in algopy.arc4.ARC4Contract.approval_program -arc_28/contract.py:23:6 debug: inlining call to examples.arc_28.contract.EventEmitter.emit_native_swapped[routing] in algopy.arc4.ARC4Contract.approval_program -arc_28/contract.py:17:6 debug: inlining call to examples.arc_28.contract.EventEmitter.emit_swapped[routing] in algopy.arc4.ARC4Contract.approval_program +arc_28/contract.py:33:6 debug: inlining call to examples.arc_28.contract.EventEmitter.emit_ufixed[routing] in algopy.arc4.ARC4Contract.approval_program +arc_28/contract.py:29:6 debug: inlining call to examples.arc_28.contract.EventEmitter.emit_native_swapped[routing] in algopy.arc4.ARC4Contract.approval_program +arc_28/contract.py:23:6 debug: inlining call to examples.arc_28.contract.EventEmitter.emit_swapped[routing] in algopy.arc4.ARC4Contract.approval_program debug: Optimizer: Split Parallel Copies debug: Optimizer: Constant Replacer debug: Optimizer: Copy Propagation diff --git a/examples/arc_28/puya_unoptimized.log b/examples/arc_28/puya_unoptimized.log index 30b7811b1b..467f1de9f8 100644 --- a/examples/arc_28/puya_unoptimized.log +++ b/examples/arc_28/puya_unoptimized.log @@ -859,12 +859,12 @@ debug: Optimizer: Replace Aggregate Box Ops debug: No optimizations performed in pass 1, ending loop debug: removing local static slots in approval program of examples.arc_28.contract.EventEmitter debug: auto reserving slots in algopy.arc4.ARC4Contract.approval_program, [] -arc_28/contract.py:17:6 debug: auto reserving slots in examples.arc_28.contract.EventEmitter.emit_swapped[routing], [] -arc_28/contract.py:23:6 debug: auto reserving slots in examples.arc_28.contract.EventEmitter.emit_native_swapped[routing], [] -arc_28/contract.py:27:6 debug: auto reserving slots in examples.arc_28.contract.EventEmitter.emit_ufixed[routing], [] -arc_28/contract.py:17:6 debug: auto reserving slots in examples.arc_28.contract.EventEmitter.emit_swapped, [] -arc_28/contract.py:23:6 debug: auto reserving slots in examples.arc_28.contract.EventEmitter.emit_native_swapped, [] -arc_28/contract.py:27:6 debug: auto reserving slots in examples.arc_28.contract.EventEmitter.emit_ufixed, [] +arc_28/contract.py:23:6 debug: auto reserving slots in examples.arc_28.contract.EventEmitter.emit_swapped[routing], [] +arc_28/contract.py:29:6 debug: auto reserving slots in examples.arc_28.contract.EventEmitter.emit_native_swapped[routing], [] +arc_28/contract.py:33:6 debug: auto reserving slots in examples.arc_28.contract.EventEmitter.emit_ufixed[routing], [] +arc_28/contract.py:23:6 debug: auto reserving slots in examples.arc_28.contract.EventEmitter.emit_swapped, [] +arc_28/contract.py:29:6 debug: auto reserving slots in examples.arc_28.contract.EventEmitter.emit_native_swapped, [] +arc_28/contract.py:33:6 debug: auto reserving slots in examples.arc_28.contract.EventEmitter.emit_ufixed, [] debug: Slot allocation not required debug: removing local static slots in clear program of examples.arc_28.contract.EventEmitter debug: auto reserving slots in algopy.arc4.ARC4Contract.clear_state_program, [] @@ -1076,12 +1076,12 @@ debug: Replaced examples.arc_28.contract.EventEmitter.emit_ufixed_block@0.ops[20 debug: Inserted examples.arc_28.contract.EventEmitter.emit_ufixed_block@0.ops[14]: 'l-store-copy tmp%0#0 0' debug: Replaced examples.arc_28.contract.EventEmitter.emit_ufixed_block@0.ops[17]: 'v-load tmp%0#0' with 'l-load tmp%0#0' debug: optimizing TEAL subroutine ops algopy.arc4.ARC4Contract.approval_program() -> uint64: -arc_28/contract.py:17:6 debug: optimizing TEAL subroutine ops examples.arc_28.contract.EventEmitter.emit_swapped[routing]() -> void: -arc_28/contract.py:23:6 debug: optimizing TEAL subroutine ops examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() -> void: -arc_28/contract.py:27:6 debug: optimizing TEAL subroutine ops examples.arc_28.contract.EventEmitter.emit_ufixed[routing]() -> void: -arc_28/contract.py:17:6 debug: optimizing TEAL subroutine ops examples.arc_28.contract.EventEmitter.emit_swapped(a: bytes, b: bytes) -> void: -arc_28/contract.py:23:6 debug: optimizing TEAL subroutine ops examples.arc_28.contract.EventEmitter.emit_native_swapped(a: uint64, b: uint64) -> void: -arc_28/contract.py:27:6 debug: optimizing TEAL subroutine ops examples.arc_28.contract.EventEmitter.emit_ufixed(a: bytes, b: bytes) -> void: +arc_28/contract.py:23:6 debug: optimizing TEAL subroutine ops examples.arc_28.contract.EventEmitter.emit_swapped[routing]() -> void: +arc_28/contract.py:29:6 debug: optimizing TEAL subroutine ops examples.arc_28.contract.EventEmitter.emit_native_swapped[routing]() -> void: +arc_28/contract.py:33:6 debug: optimizing TEAL subroutine ops examples.arc_28.contract.EventEmitter.emit_ufixed[routing]() -> void: +arc_28/contract.py:23:6 debug: optimizing TEAL subroutine ops examples.arc_28.contract.EventEmitter.emit_swapped(a: bytes, b: bytes) -> void: +arc_28/contract.py:29:6 debug: optimizing TEAL subroutine ops examples.arc_28.contract.EventEmitter.emit_native_swapped(a: uint64, b: uint64) -> void: +arc_28/contract.py:33:6 debug: optimizing TEAL subroutine ops examples.arc_28.contract.EventEmitter.emit_ufixed(a: bytes, b: bytes) -> void: debug: optimizing TEAL subroutine ops algopy.arc4.ARC4Contract.clear_state_program() -> uint64: info: Writing arc_28/out_unoptimized/EventEmitter.approval.teal info: Writing arc_28/out_unoptimized/EventEmitter.clear.teal diff --git a/src/puya/arc56.py b/src/puya/arc56.py index 124be9a7ef..a64cd8e11f 100644 --- a/src/puya/arc56.py +++ b/src/puya/arc56.py @@ -230,6 +230,7 @@ def _struct_to_event(structs: _StructAliases, struct: ARC4Struct) -> models.Even name=f.name, type=f.type, struct=structs.resolve(f.struct), + desc=f.desc, ) for f in struct.fields ], diff --git a/src/puya/artifact_metadata.py b/src/puya/artifact_metadata.py index 0339514a7a..e1cb41ffb9 100644 --- a/src/puya/artifact_metadata.py +++ b/src/puya/artifact_metadata.py @@ -17,6 +17,7 @@ class ARC4StructField: name: str type: str struct: str | None + desc: str | None @attrs.frozen(kw_only=True) diff --git a/src/puya/awst/nodes.py b/src/puya/awst/nodes.py index 6ce51398e9..6782bddedd 100644 --- a/src/puya/awst/nodes.py +++ b/src/puya/awst/nodes.py @@ -1046,7 +1046,7 @@ def _validate_values(self, _instance: object, values: Mapping[str, Expression]) if values.keys() != self.wtype.fields.keys(): raise CodeError("invalid argument(s)", self.source_location) for field_name, field_value in self.values.items(): - expected_wtype = self.wtype.fields[field_name] + expected_wtype = self.wtype.fields[field_name].wtype if field_value.wtype != expected_wtype: raise CodeError("invalid argument type(s)", self.source_location) @@ -1168,7 +1168,7 @@ def _wtype_factory(self) -> WType: dataclass_type = self.base.wtype assert isinstance(dataclass_type, wtypes.ARC4Struct | wtypes.WTuple) try: - return dataclass_type.fields[self.name] + return dataclass_type.fields[self.name].wtype except KeyError: raise CodeError(f"invalid field for {dataclass_type}", self.source_location) from None @@ -2391,7 +2391,7 @@ def _validate_values(self, _instance: object, values: Mapping[str, Expression]) raise CodeError("Invalid argument(s)", self.source_location) for field_name, field_value in self.values.items(): expected_wtype = self.wtype.fields[field_name] - if field_value.wtype != expected_wtype: + if field_value.wtype != expected_wtype.wtype: raise CodeError("Invalid argument type(s)", self.source_location) def accept(self, visitor: ExpressionVisitor[T]) -> T: diff --git a/src/puya/awst/wtypes.py b/src/puya/awst/wtypes.py index 1c8ad95c61..804f6d73bc 100644 --- a/src/puya/awst/wtypes.py +++ b/src/puya/awst/wtypes.py @@ -1,11 +1,10 @@ import abc import enum import typing -from collections.abc import Mapping +from collections.abc import Mapping, Sequence from functools import cached_property import attrs -from immutabledict import immutabledict from puya import log from puya.avm import AVMType, TransactionType @@ -333,6 +332,14 @@ def accept[T](self, visitor: WTypeVisitor[T]) -> T: return visitor.visit_reference_array(self) +@typing.final +@attrs.frozen(kw_only=True) +class WTypeField: + name: str = attrs.field() + wtype: WType = attrs.field() + description: str | None = attrs.field(default=None, eq=False) + + @typing.final @attrs.frozen(eq=False) class WTuple(_WTypeInstance): @@ -388,11 +395,14 @@ def _names_validator(self, _attribute: object, names: tuple[str, ...] | None) -> raise CodeError("tuple item names are not unique", self.source_location) @cached_property - def fields(self) -> Mapping[str, WType]: + def fields(self) -> Mapping[str, WTypeField]: """Mapping of item names to types if `names` is defined, otherwise empty.""" if self.names is None: return {} - return dict(zip(self.names, self.types, strict=True)) + return { + name: WTypeField(name=name, wtype=wtype) + for name, wtype in zip(self.names, self.types, strict=True) + } def name_to_index(self, name: str, source_location: SourceLocation) -> int: if self.names is None: @@ -567,18 +577,16 @@ def accept[T](self, visitor: ARC4WTypeVisitor[T]) -> T: @attrs.frozen(kw_only=True) class ARC4Struct(_ARC4WTypeInstance): arc4_alias: None = attrs.field(default=None, init=False) - fields: immutabledict[str, WType] = attrs.field(converter=immutabledict[str, WType]) + _fields: tuple[WTypeField, ...] = attrs.field(converter=tuple[WTypeField, ...]) frozen: bool immutable: bool = attrs.field(init=False) source_location: SourceLocation | None = attrs.field(default=None, eq=False) desc: str | None = None is_aggregate: bool = attrs.field(default=True, init=False) - @fields.validator - def _fields_validator(self, _attribute: object, value: immutabledict[str, WType]) -> None: - unpersistable = [ - field_name for field_name, field_type in value.items() if not field_type.persistable - ] + @_fields.validator + def _fields_validator(self, _attribute: object, value: Sequence[WTypeField]) -> None: + unpersistable = [field.name for field in value if not field.wtype.persistable] if unpersistable: raise CodeError( "invalid ARC-4 Struct declaration," @@ -586,9 +594,22 @@ def _fields_validator(self, _attribute: object, value: immutabledict[str, WType] location=self.source_location, ) + field_names = set() + repeated_field_names = set() + for field in value: + if field.name in field_names: + repeated_field_names.add(field.name) + else: + field_names.add(field.name) + if repeated_field_names: + raise CodeError( + "invalid ARC-4 Struct declaration," + f"the following fields are not unique: {', '.join(repeated_field_names)}" + ) + @immutable.default def _immutable(self) -> bool: - return self.frozen and all(typ.immutable for typ in self.fields.values()) + return self.frozen and all(field.wtype.immutable for field in self.fields.values()) @cached_property def names(self) -> tuple[str, ...]: @@ -596,7 +617,11 @@ def names(self) -> tuple[str, ...]: @cached_property def types(self) -> tuple[WType, ...]: - return tuple(self.fields.values()) + return tuple(field.wtype for field in self.fields.values()) + + @cached_property + def fields(self) -> Mapping[str, WTypeField]: + return {field.name: field for field in self._fields} @typing.override def accept[T](self, visitor: ARC4WTypeVisitor[T]) -> T: diff --git a/src/puya/ir/_contract_metadata.py b/src/puya/ir/_contract_metadata.py index df873f724e..aa07077f68 100644 --- a/src/puya/ir/_contract_metadata.py +++ b/src/puya/ir/_contract_metadata.py @@ -332,9 +332,9 @@ def _extract_structs( if struct.name in struct_results: continue struct_wtypes.extend( - wtype - for wtype in struct.fields.values() - if _is_arc4_struct(wtype) and wtype.name not in struct_results + field.wtype + for field in struct.fields.values() + if _is_arc4_struct(field.wtype) and field.wtype.name not in struct_results ) struct_results[struct.name] = _wtype_to_struct(struct) return dict(sorted(struct_results.items(), key=itemgetter(0))) @@ -396,7 +396,8 @@ def _get_arc4_struct_name(wtype: wtypes.WType) -> str | None: def _wtype_to_struct(s: wtypes.ARC4Struct | wtypes.WTuple) -> models.ARC4Struct: fields = [] assert s.fields - for field_name, field_wtype in s.fields.items(): + for field_name, field in s.fields.items(): + field_wtype = field.wtype if not isinstance(field_wtype, wtypes.ARC4Type): field_wtype = wtype_to_arc4_wtype(field_wtype, None) fields.append( @@ -404,6 +405,7 @@ def _wtype_to_struct(s: wtypes.ARC4Struct | wtypes.WTuple) -> models.ARC4Struct: name=field_name, type=get_arc4_name(field_wtype, use_alias=True), struct=_get_arc4_struct_name(field_wtype), + desc=field.description, ) ) return models.ARC4Struct(fullname=s.name, desc=s.desc, fields=fields) @@ -450,7 +452,10 @@ def visit_emit_fields(self, emit: awst_nodes.EmitFields) -> None: wtype_to_arc4_wtype(arg.wtype, arg.source_location) for arg in emit.values ] - fields = {f"field{idx}": field_type for idx, field_type in enumerate(field_types, start=1)} + fields = [ + wtypes.WTypeField(name=f"field{idx}", wtype=field_type) + for idx, field_type in enumerate(field_types, start=1) + ] struct_wtype = wtypes.ARC4Struct( name=name, diff --git a/src/puya/ir/arc4_types.py b/src/puya/ir/arc4_types.py index 48eb3aaa6b..eaac629e2e 100644 --- a/src/puya/ir/arc4_types.py +++ b/src/puya/ir/arc4_types.py @@ -1,7 +1,6 @@ import typing import attrs -from immutabledict import immutabledict from puya.awst import wtypes from puya.awst.visitors import ARC4WTypeVisitor, WTypeVisitor @@ -70,7 +69,12 @@ def visit_tuple_type(self, wtuple: wtypes.WTuple) -> wtypes.ARC4Type | None: return None arc4_item_types.append(arc4_type) if wtuple.fields: - arc4_fields = dict(zip(wtuple.fields, arc4_item_types, strict=True)) + arc4_fields = [ + wtypes.WTypeField(name=field.name, wtype=new_type, description=field.description) + for (name, field), new_type in zip( + wtuple.fields.items(), arc4_item_types, strict=True + ) + ] return wtypes.ARC4Struct( name=wtuple.name, desc=wtuple.desc, frozen=True, fields=arc4_fields ) @@ -112,10 +116,15 @@ def visit_arc4_static_array(self, wtype: wtypes.ARC4StaticArray) -> wtypes.ARC4T @typing.override def visit_arc4_struct(self, wtype: wtypes.ARC4Struct) -> wtypes.ARC4Type | None: - fields = {name: t.accept(self) for name, t in wtype.fields.items()} - if None in fields.values(): - return None - return attrs.evolve(wtype, fields=immutabledict(fields)) + fields = list[wtypes.WTypeField]() + for field in wtype.fields.values(): + new_type = field.wtype.accept(self) + if new_type is None: + return None + fields.append( + wtypes.WTypeField(name=field.name, wtype=new_type, description=field.description) + ) + return attrs.evolve(wtype, fields=fields) class _ARC4NameWTypeVisitor(ARC4WTypeVisitor[str]): diff --git a/src/puyapy/awst_build/eb/arc4/struct.py b/src/puyapy/awst_build/eb/arc4/struct.py index 2c964ea0c3..c778eb519b 100644 --- a/src/puyapy/awst_build/eb/arc4/struct.py +++ b/src/puyapy/awst_build/eb/arc4/struct.py @@ -55,7 +55,7 @@ def call( values = { field_name: expect.argument_of_type_else_dummy( - field_mapping[field_name], pytype.fields[field_name] + field_mapping[field_name], pytype.fields[field_name].type ).resolve() for field_name in field_mapping } @@ -88,7 +88,7 @@ def member_access(self, name: str, location: SourceLocation) -> NodeBuilder: name=field_name, source_location=location, ) - return builder_for_instance(field, result_expr) + return builder_for_instance(field.type, result_expr) case "copy": return CopyBuilder(self.resolve(), location, self.pytype) case "_replace": @@ -134,13 +134,13 @@ def call( ) base_expr = self.instance.single_eval().resolve() values = dict[str, Expression]() - for field_name, field_pytype in pytype.fields.items(): + for field_name, field in pytype.fields.items(): new_value = field_mapping.get(field_name) if new_value is not None: - item_builder = expect.argument_of_type_else_dummy(new_value, field_pytype) + item_builder = expect.argument_of_type_else_dummy(new_value, field.type) item = item_builder.resolve() else: - field_wtype = field_pytype.checked_wtype(location) + field_wtype = field.type.checked_wtype(location) item = FieldExpression(base=base_expr, name=field_name, source_location=location) if not field_wtype.immutable: logger.error( diff --git a/src/puyapy/awst_build/eb/native/struct.py b/src/puyapy/awst_build/eb/native/struct.py index 6472612816..b30e09c766 100644 --- a/src/puyapy/awst_build/eb/native/struct.py +++ b/src/puyapy/awst_build/eb/native/struct.py @@ -59,7 +59,7 @@ def call( values = { field_name: expect.argument_of_type_else_dummy( - field_mapping[field_name], pytype.fields[field_name] + field_mapping[field_name], pytype.fields[field_name].type ).resolve() for field_name in field_mapping } @@ -90,7 +90,7 @@ def member_access(self, name: str, location: SourceLocation) -> NodeBuilder: name=field_name, source_location=location, ) - return builder_for_instance(field, result_expr) + return builder_for_instance(field.type, result_expr) case "copy": return CopyBuilder(self.resolve(), location, self.pytype) case "_replace": @@ -136,13 +136,13 @@ def call( ) base_expr = self.instance.single_eval().resolve() values = dict[str, Expression]() - for field_name, field_pytype in pytype.fields.items(): + for field_name, field in pytype.fields.items(): new_value = field_mapping.get(field_name) if new_value is not None: - item_builder = expect.argument_of_type_else_dummy(new_value, field_pytype) + item_builder = expect.argument_of_type_else_dummy(new_value, field.type) item = item_builder.resolve() else: - field_wtype = field_pytype.checked_wtype(location) + field_wtype = field.type.checked_wtype(location) item = FieldExpression(base=base_expr, name=field_name, source_location=location) if not field_wtype.immutable: logger.error( diff --git a/src/puyapy/awst_build/eb/tuple.py b/src/puyapy/awst_build/eb/tuple.py index 123a87026c..859774a9fa 100644 --- a/src/puyapy/awst_build/eb/tuple.py +++ b/src/puyapy/awst_build/eb/tuple.py @@ -136,7 +136,7 @@ def call( values = { field_name: expect.argument_of_type_else_dummy( - field_builder, pytype.fields[field_name] + field_builder, pytype.fields[field_name].type ).resolve() for field_name, field_builder in field_mapping.items() } @@ -308,14 +308,14 @@ def to_bytes(self, location: SourceLocation) -> Expression: @typing.override def member_access(self, name: str, location: SourceLocation) -> NodeBuilder: if isinstance(self.pytype, pytypes.NamedTupleType): - item_typ = self.pytype.fields.get(name) - if item_typ is not None: + field = self.pytype.fields.get(name) + if field is not None: item_expr = FieldExpression( base=self.resolve(), name=name, source_location=location, ) - return builder_for_instance(item_typ, item_expr) + return builder_for_instance(field.type, item_expr) elif name == "_replace": return _Replace(self, self.pytype, location) elif name in _NAMED_TUPLE_MEMBERS: @@ -517,13 +517,13 @@ def call( ) base_expr = self.instance.single_eval().resolve() items = list[Expression]() - for idx, (field_name, field_pytype) in enumerate(pytype.fields.items()): + for idx, (field_name, field) in enumerate(pytype.fields.items()): new_value = field_mapping.get(field_name) if new_value is not None: - item_builder = expect.argument_of_type_else_dummy(new_value, field_pytype) + item_builder = expect.argument_of_type_else_dummy(new_value, field.type) item = item_builder.resolve() else: - field_wtype = field_pytype.checked_wtype(location) + field_wtype = field.type.checked_wtype(location) item = TupleItemExpression(base=base_expr, index=idx, source_location=location) if not field_wtype.immutable: logger.error( diff --git a/src/puyapy/awst_build/module.py b/src/puyapy/awst_build/module.py index 03578cf39c..68a6ef3566 100644 --- a/src/puyapy/awst_build/module.py +++ b/src/puyapy/awst_build/module.py @@ -685,23 +685,37 @@ def _process_contract_class_options( def _process_dataclass_like_fields( context: ASTConversionModuleContext, cdef: mypy.nodes.ClassDef, base_type: pytypes.PyType -) -> dict[str, pytypes.PyType] | None: - fields = dict[str, pytypes.PyType]() +) -> list[pytypes.PyTypeField] | None: + fields = list[pytypes.PyTypeField]() has_error = False - for stmt in cdef.defs.body: + stmts = cdef.defs.body + for i, stmt in enumerate(stmts): stmt_loc = context.node_location(stmt) match stmt: case mypy.nodes.ExpressionStmt(expr=mypy.nodes.StrExpr()): # ignore class docstring, already extracted - # TODO: should we capture field "docstrings"? + # field "docstrings" captured when looking at a field pass case mypy.nodes.AssignmentStmt( lvalues=[mypy.nodes.NameExpr(name=field_name)], rvalue=mypy.nodes.TempNode(), type=mypy.types.Type() as mypy_type, ): + # If possible: get the field docs at the next statement + description = None + if i + 1 < len(stmts): + match stmts[i + 1]: + case mypy.nodes.ExpressionStmt( + expr=mypy.nodes.StrExpr() as field_description + ): + description = field_description.value + case _: + pass + pytype = context.type_to_pytype(mypy_type, source_location=stmt_loc) - fields[field_name] = pytype + fields.append( + pytypes.PyTypeField(name=field_name, type=pytype, description=description) + ) if isinstance((maybe_err := pytype.wtype), str): logger.error(maybe_err, location=stmt_loc) has_error = True diff --git a/src/puyapy/awst_build/pytypes.py b/src/puyapy/awst_build/pytypes.py index f82136b3d0..39cf8ebfa5 100644 --- a/src/puyapy/awst_build/pytypes.py +++ b/src/puyapy/awst_build/pytypes.py @@ -12,6 +12,7 @@ from puya import log from puya.avm import TransactionType from puya.awst import wtypes +from puya.awst.wtypes import WTypeField from puya.errors import CodeError, InternalError from puya.parse import SourceLocation from puya.program_refs import ContractReference @@ -345,12 +346,19 @@ def wtype(self) -> wtypes.WTuple | ErrorMessage: ) +@attrs.frozen(kw_only=True, order=False) +class PyTypeField: + name: str = attrs.field() + type: PyType = attrs.field() + description: str | None = attrs.field(default=None, eq=False) + + NamedTupleBaseType: typing.Final[PyType] = _BaseType(name="typing.NamedTuple") @attrs.frozen(kw_only=True, order=False) class NamedTupleType(TupleType, RuntimeType): - fields: immutabledict[str, PyType] = attrs.field(converter=immutabledict) + _fields: tuple[PyTypeField, ...] = attrs.field(converter=tuple[PyTypeField, ...]) items: tuple[PyType, ...] = attrs.field(init=False) generic: None = attrs.field(default=None, init=False) bases: tuple[PyType, ...] = attrs.field(default=(NamedTupleBaseType,), init=False) @@ -360,7 +368,7 @@ class NamedTupleType(TupleType, RuntimeType): @items.default def _items(self) -> tuple[PyType, ...]: - return tuple(self.fields.values()) + return tuple(field.type for field in self.fields.values()) @wtype.default def _wtype(self) -> wtypes.WTuple: @@ -375,6 +383,10 @@ def _wtype(self) -> wtypes.WTuple: desc=self.desc, ) + @cached_property + def fields(self) -> Mapping[str, PyTypeField]: + return {field.name: field for field in self._fields} + @attrs.frozen(order=False) class SequenceType(PyType, abc.ABC): @@ -470,7 +482,7 @@ def wtype(self) -> ErrorMessage: @typing.final @attrs.frozen(init=False, order=False) class StructType(RuntimeType): - fields: immutabledict[str, PyType] = attrs.field(converter=immutabledict) + _fields: tuple[PyTypeField] = attrs.field(converter=tuple[PyTypeField, ...]) frozen: bool wtype: wtypes.ARC4Struct source_location: SourceLocation | None = attrs.field(eq=False) @@ -483,7 +495,11 @@ def names(self) -> tuple[str, ...]: @cached_property def types(self) -> tuple[PyType, ...]: - return tuple(self.fields.values()) + return tuple(field.type for field in self.fields.values()) + + @cached_property + def fields(self) -> Mapping[str, PyTypeField]: + return {field.name: field for field in self._fields} def __init__( self, @@ -491,16 +507,21 @@ def __init__( base: PyType, name: str, desc: str | None, - fields: Mapping[str, PyType], + fields: Sequence[PyTypeField], frozen: bool, source_location: SourceLocation | None, ): if base not in (ARC4StructBaseType, StructBaseType): raise InternalError(f"Unknown struct base type: {base}", source_location) - field_wtypes = { - name: field_typ.checked_wtype(source_location) for name, field_typ in fields.items() - } + field_wtypes = [ + WTypeField( + name=field.name, + wtype=field.type.checked_wtype(source_location), + description=field.description, + ) + for field in fields + ] wtype = wtypes.ARC4Struct( fields=field_wtypes, name=name, @@ -514,7 +535,7 @@ def __init__( name=name, desc=desc, wtype=wtype, - fields=fields, + fields=tuple(fields), frozen=frozen, source_location=source_location, ) @@ -833,24 +854,28 @@ def _name(self) -> str: CompiledContractType: typing.Final = _register_builtin( NamedTupleType( name="algopy._compiled.CompiledContract", - fields={ - "approval_program": GenericTupleType.parameterise([BytesType, BytesType], None), - "clear_state_program": GenericTupleType.parameterise([BytesType, BytesType], None), - "extra_program_pages": UInt64Type, - "global_uints": UInt64Type, - "global_bytes": UInt64Type, - "local_uints": UInt64Type, - "local_bytes": UInt64Type, - }, + fields=( + PyTypeField( + name="approval_program", + type=GenericTupleType.parameterise([BytesType, BytesType], None), + ), + PyTypeField( + name="clear_state_program", + type=GenericTupleType.parameterise([BytesType, BytesType], None), + ), + PyTypeField(name="extra_program_pages", type=UInt64Type), + PyTypeField(name="global_uints", type=UInt64Type), + PyTypeField(name="global_bytes", type=UInt64Type), + PyTypeField(name="local_uints", type=UInt64Type), + PyTypeField(name="local_bytes", type=UInt64Type), + ), source_location=None, ) ) CompiledLogicSigType: typing.Final = _register_builtin( NamedTupleType( name="algopy._compiled.CompiledLogicSig", - fields={ - "account": AccountType, - }, + fields=[PyTypeField(name="account", type=AccountType)], source_location=None, ) ) diff --git a/tests/analyse/reti.awst.json.zip b/tests/analyse/reti.awst.json.zip index f270ec2abe..6d4ddd7238 100644 Binary files a/tests/analyse/reti.awst.json.zip and b/tests/analyse/reti.awst.json.zip differ diff --git a/tests/from_awst/emit/module.awst.json b/tests/from_awst/emit/module.awst.json index b0a5c2f99a..3028aa9600 100644 --- a/tests/from_awst/emit/module.awst.json +++ b/tests/from_awst/emit/module.awst.json @@ -1,2556 +1,2697 @@ [ - { - "_type": "Contract", + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 13, + "end_line": 13, + "comment_lines": 0, + "column": 0, + "end_column": 37 + }, + "id": "tests/approvals/arc-28-events.algo.ts::EventEmitter", + "name": "EventEmitter", + "description": null, + "method_resolution_order": [ + "@algorandfoundation/algorand-typescript/arc4/index.d.ts::Contract", + "@algorandfoundation/algorand-typescript/base-contract.d.ts::BaseContract" + ], + "approval_program": { + "source_location": { + "file": null, + "line": 1, + "end_line": 1, + "comment_lines": 0, + "column": 0, + "end_column": 1 + }, + "args": [], + "return_type": { + "name": "bool", + "immutable": true, + "_type": "WType" + }, + "body": { "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 13, - "end_line": 13, - "column": 0, - "end_column": 37 + "file": null, + "line": 1, + "end_line": 1, + "comment_lines": 0, + "column": 0, + "end_column": 1 }, - "id": "tests/approvals/arc-28-events.algo.ts::EventEmitter", - "name": "EventEmitter", - "description": null, - "method_resolution_order": [ - "@algorandfoundation/algorand-typescript/arc4/index.d.ts::Contract", - "@algorandfoundation/algorand-typescript/base-contract.d.ts::BaseContract" - ], - "approval_program": { - "_type": "ContractMethod", + "body": [ + { "source_location": { + "file": null, + "line": 1, + "end_line": 1, + "comment_lines": 0, + "column": 0, + "end_column": 1 + }, + "value": { + "source_location": { "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 + }, + "_type": "ARC4Router" }, - "args": [], - "return_type": { - "_type": "WType", + "_type": "ReturnStatement" + } + ], + "label": null, + "comment": null, + "_type": "Block" + }, + "documentation": { + "description": null, + "args": {}, + "returns": null + }, + "inline": null, + "pure": false, + "cref": "@algorandfoundation/algorand-typescript/arc4/index.d.ts::Contract", + "member_name": "approvalProgram", + "arc4_method_config": null + }, + "clear_program": { + "source_location": { + "file": null, + "line": 1, + "end_line": 1, + "comment_lines": 0, + "column": 0, + "end_column": 1 + }, + "args": [], + "return_type": { + "name": "bool", + "immutable": true, + "_type": "WType" + }, + "body": { + "source_location": { + "file": null, + "line": 1, + "end_line": 1, + "comment_lines": 0, + "column": 0, + "end_column": 1 + }, + "body": [ + { + "source_location": { + "file": null, + "line": 1, + "end_line": 1, + "comment_lines": 0, + "column": 0, + "end_column": 1 + }, + "value": { + "source_location": { + "file": null, + "line": 1, + "end_line": 1, + "comment_lines": 0, + "column": 0, + "end_column": 1 + }, + "value": true, + "wtype": { "name": "bool", - "immutable": true + "immutable": true, + "_type": "WType" + }, + "_type": "BoolConstant" }, - "body": { - "_type": "Block", + "_type": "ReturnStatement" + } + ], + "label": null, + "comment": null, + "_type": "Block" + }, + "documentation": { + "description": null, + "args": {}, + "returns": null + }, + "inline": null, + "pure": false, + "cref": "@algorandfoundation/algorand-typescript/base-contract.d.ts::BaseContract", + "member_name": "clearStateProgram", + "arc4_method_config": null + }, + "methods": [ + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 14, + "end_line": 14, + "comment_lines": 0, + "column": 2, + "end_column": 33 + }, + "args": [ + { + "name": "a", + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 14, + "end_line": 14, + "comment_lines": 0, + "column": 14, + "end_column": 22 + }, + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + } + }, + { + "name": "b", + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 14, + "end_line": 14, + "comment_lines": 0, + "column": 24, + "end_column": 32 + }, + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + } + } + ], + "return_type": { + "name": "void", + "immutable": true, + "_type": "WType" + }, + "body": { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 14, + "end_line": 44, + "comment_lines": 0, + "column": 34, + "end_column": 3 + }, + "body": [ + { + "expr": { "source_location": { - "file": null, - "line": 1, - "end_line": 1, - "column": 0, - "end_column": 1 + "file": "%DIR%/arc-28-events.algo.ts", + "line": 15, + "end_line": 15, + "comment_lines": 0, + "column": 4, + "end_column": 33 }, - "body": [ + "value": { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 15, + "end_line": 15, + "comment_lines": 0, + "column": 18, + "end_column": 32 + }, + "wtype": { + "name": "tests/approvals/arc-28-events.algo.ts::Swapped", + "_fields": [ + { + "name": "a", + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "description": null + }, + { + "name": "b", + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "description": null + } + ], + "frozen": false, + "source_location": null, + "desc": null, + "_type": "ARC4Struct" + }, + "values": { + "a": { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 15, + "end_line": 15, + "comment_lines": 0, + "column": 23, + "end_column": 24 + }, + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "name": "b", + "_type": "VarExpression" + }, + "b": { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 15, + "end_line": 15, + "comment_lines": 0, + "column": 29, + "end_column": 30 + }, + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "name": "a", + "_type": "VarExpression" + } + }, + "_type": "NewStruct" + }, + "_type": "Emit" + }, + "_type": "ExpressionStatement" + }, + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 17, + "end_line": 17, + "comment_lines": 0, + "column": 10, + "end_column": 37 + }, + "target": { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 17, + "end_line": 17, + "comment_lines": 0, + "column": 10, + "end_column": 11 + }, + "wtype": { + "name": "tests/approvals/arc-28-events.algo.ts::Swapped", + "_fields": [ { - "_type": "ReturnStatement", + "name": "a", + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "description": null + }, + { + "name": "b", + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "description": null + } + ], + "frozen": false, + "source_location": null, + "desc": null, + "_type": "ARC4Struct" + }, + "name": "x", + "_type": "VarExpression" + }, + "value": { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 17, + "end_line": 17, + "comment_lines": 0, + "column": 23, + "end_column": 37 + }, + "wtype": { + "name": "tests/approvals/arc-28-events.algo.ts::Swapped", + "_fields": [ + { + "name": "a", + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "description": null + }, + { + "name": "b", + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "description": null + } + ], + "frozen": false, + "source_location": null, + "desc": null, + "_type": "ARC4Struct" + }, + "values": { + "a": { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 17, + "end_line": 17, + "comment_lines": 0, + "column": 23, + "end_column": 37 + }, + "base": { + "source": { "source_location": { - "file": null, - "line": 1, - "end_line": 1, - "column": 0, - "end_column": 1 + "file": "%DIR%/arc-28-events.algo.ts", + "line": 17, + "end_line": 17, + "comment_lines": 0, + "column": 23, + "end_column": 37 }, - "value": { - "_type": "ARC4Router", + "items": [ + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 17, + "end_line": 17, + "comment_lines": 0, + "column": 28, + "end_column": 29 + }, + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "name": "b", + "_type": "VarExpression" + }, + { "source_location": { - "file": null, - "line": 1, - "end_line": 1, - "column": 0, - "end_column": 1 + "file": "%DIR%/arc-28-events.algo.ts", + "line": 17, + "end_line": 17, + "comment_lines": 0, + "column": 34, + "end_column": 35 + }, + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "name": "a", + "_type": "VarExpression" + } + ], + "wtype": { + "types": [ + { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" } - } - } - ], - "label": null, - "comment": null - }, - "documentation": { - "_type": "MethodDocumentation", - "description": null, - "args": {}, - "returns": null - }, - "inline": null, - "pure": false, - "cref": "@algorandfoundation/algorand-typescript/arc4/index.d.ts::Contract", - "member_name": "approvalProgram", - "arc4_method_config": null - }, - "clear_program": { - "_type": "ContractMethod", - "source_location": { - "file": null, - "line": 1, - "end_line": 1, - "column": 0, - "end_column": 1 + ], + "source_location": null, + "name": "{a:Uint<8>,b:Uint<8>}", + "names": [ + "a", + "b" + ], + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + "_id": 0, + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 17, + "end_line": 17, + "comment_lines": 0, + "column": 23, + "end_column": 37 + }, + "_type": "SingleEvaluation" + }, + "name": "a", + "_type": "FieldExpression" + }, + "b": { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 17, + "end_line": 17, + "comment_lines": 0, + "column": 23, + "end_column": 37 + }, + "base": { + "source": { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 17, + "end_line": 17, + "comment_lines": 0, + "column": 23, + "end_column": 37 + }, + "items": [ + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 17, + "end_line": 17, + "comment_lines": 0, + "column": 28, + "end_column": 29 + }, + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "name": "b", + "_type": "VarExpression" + }, + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 17, + "end_line": 17, + "comment_lines": 0, + "column": 34, + "end_column": 35 + }, + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "name": "a", + "_type": "VarExpression" + } + ], + "wtype": { + "types": [ + { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + } + ], + "source_location": null, + "name": "{a:Uint<8>,b:Uint<8>}", + "names": [ + "a", + "b" + ], + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + "_id": 0, + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 17, + "end_line": 17, + "comment_lines": 0, + "column": 23, + "end_column": 37 + }, + "_type": "SingleEvaluation" + }, + "name": "b", + "_type": "FieldExpression" + } + }, + "_type": "NewStruct" + }, + "_type": "AssignmentStatement" }, - "args": [], - "return_type": { - "_type": "WType", - "name": "bool", - "immutable": true + { + "expr": { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 18, + "end_line": 18, + "comment_lines": 0, + "column": 4, + "end_column": 11 + }, + "value": { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 18, + "end_line": 18, + "comment_lines": 0, + "column": 9, + "end_column": 10 + }, + "wtype": { + "name": "tests/approvals/arc-28-events.algo.ts::Swapped", + "_fields": [ + { + "name": "a", + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "description": null + }, + { + "name": "b", + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "description": null + } + ], + "frozen": false, + "source_location": null, + "desc": null, + "_type": "ARC4Struct" + }, + "name": "x", + "_type": "VarExpression" + }, + "_type": "Emit" + }, + "_type": "ExpressionStatement" }, - "body": { - "_type": "Block", + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 20, + "end_line": 23, + "comment_lines": 0, + "column": 10, + "end_column": 6 + }, + "target": { "source_location": { - "file": null, - "line": 1, - "end_line": 1, + "file": "%DIR%/arc-28-events.algo.ts", + "line": 20, + "end_line": 20, + "comment_lines": 0, + "column": 10, + "end_column": 11 + }, + "wtype": { + "name": "SwappedArc4", + "_fields": [ + { + "name": "a", + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "description": null + }, + { + "name": "b", + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "description": null + } + ], + "frozen": false, + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 11, + "end_line": 11, + "comment_lines": 0, "column": 0, - "end_column": 1 + "end_column": 60 + }, + "desc": null, + "_type": "ARC4Struct" + }, + "name": "y", + "_type": "VarExpression" + }, + "value": { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 20, + "end_line": 23, + "comment_lines": 0, + "column": 14, + "end_column": 6 }, - "body": [ + "wtype": { + "name": "SwappedArc4", + "_fields": [ { - "_type": "ReturnStatement", + "name": "a", + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "description": null + }, + { + "name": "b", + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "description": null + } + ], + "frozen": false, + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 11, + "end_line": 11, + "comment_lines": 0, + "column": 0, + "end_column": 60 + }, + "desc": null, + "_type": "ARC4Struct" + }, + "values": { + "a": { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 20, + "end_line": 23, + "comment_lines": 0, + "column": 14, + "end_column": 6 + }, + "base": { + "source": { "source_location": { - "file": null, - "line": 1, - "end_line": 1, - "column": 0, - "end_column": 1 + "file": "%DIR%/arc-28-events.algo.ts", + "line": 20, + "end_line": 23, + "comment_lines": 0, + "column": 30, + "end_column": 5 }, - "value": { - "_type": "BoolConstant", + "items": [ + { "source_location": { - "file": null, - "line": 1, - "end_line": 1, - "column": 0, - "end_column": 1 + "file": "%DIR%/arc-28-events.algo.ts", + "line": 21, + "end_line": 21, + "comment_lines": 0, + "column": 9, + "end_column": 10 }, "wtype": { - "_type": "WType", - "name": "bool", - "immutable": true + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "value": true - } - } + "name": "b", + "_type": "VarExpression" + }, + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 22, + "end_line": 22, + "comment_lines": 0, + "column": 9, + "end_column": 10 + }, + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "name": "a", + "_type": "VarExpression" + } + ], + "wtype": { + "types": [ + { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + } + ], + "source_location": null, + "name": "ReadonlyObject8F6E91C4", + "names": [ + "a", + "b" + ], + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + "_id": 1, + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 20, + "end_line": 23, + "comment_lines": 0, + "column": 30, + "end_column": 5 + }, + "_type": "SingleEvaluation" + }, + "name": "a", + "_type": "FieldExpression" + }, + "b": { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 20, + "end_line": 23, + "comment_lines": 0, + "column": 14, + "end_column": 6 + }, + "base": { + "source": { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 20, + "end_line": 23, + "comment_lines": 0, + "column": 30, + "end_column": 5 + }, + "items": [ + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 21, + "end_line": 21, + "comment_lines": 0, + "column": 9, + "end_column": 10 + }, + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "name": "b", + "_type": "VarExpression" + }, + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 22, + "end_line": 22, + "comment_lines": 0, + "column": 9, + "end_column": 10 + }, + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "name": "a", + "_type": "VarExpression" + } + ], + "wtype": { + "types": [ + { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + } + ], + "source_location": null, + "name": "ReadonlyObject8F6E91C4", + "names": [ + "a", + "b" + ], + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + "_id": 1, + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 20, + "end_line": 23, + "comment_lines": 0, + "column": 30, + "end_column": 5 + }, + "_type": "SingleEvaluation" + }, + "name": "b", + "_type": "FieldExpression" + } + }, + "_type": "NewStruct" + }, + "_type": "AssignmentStatement" + }, + { + "expr": { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 24, + "end_line": 24, + "comment_lines": 0, + "column": 4, + "end_column": 11 + }, + "value": { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 24, + "end_line": 24, + "comment_lines": 0, + "column": 9, + "end_column": 10 + }, + "wtype": { + "name": "SwappedArc4", + "_fields": [ + { + "name": "a", + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "description": null + }, + { + "name": "b", + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "description": null + } + ], + "frozen": false, + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 11, + "end_line": 11, + "comment_lines": 0, + "column": 0, + "end_column": 60 + }, + "desc": null, + "_type": "ARC4Struct" + }, + "name": "y", + "_type": "VarExpression" + }, + "_type": "Emit" + }, + "_type": "ExpressionStatement" + }, + { + "expr": { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 26, + "end_line": 26, + "comment_lines": 0, + "column": 4, + "end_column": 26 + }, + "signature": "Swapped4", + "values": [ + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 26, + "end_line": 26, + "comment_lines": 0, + "column": 21, + "end_column": 22 + }, + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "name": "b", + "_type": "VarExpression" + }, + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 26, + "end_line": 26, + "comment_lines": 0, + "column": 24, + "end_column": 25 + }, + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "name": "a", + "_type": "VarExpression" + } ], - "label": null, - "comment": null + "_type": "EmitFields" + }, + "_type": "ExpressionStatement" }, - "documentation": { - "_type": "MethodDocumentation", - "description": null, - "args": {}, - "returns": null + { + "expr": { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 28, + "end_line": 28, + "comment_lines": 0, + "column": 4, + "end_column": 39 + }, + "signature": "Swapped5(uint8,uint8)", + "values": [ + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 28, + "end_line": 28, + "comment_lines": 0, + "column": 34, + "end_column": 35 + }, + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "name": "b", + "_type": "VarExpression" + }, + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 28, + "end_line": 28, + "comment_lines": 0, + "column": 37, + "end_column": 38 + }, + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "name": "a", + "_type": "VarExpression" + } + ], + "_type": "EmitFields" + }, + "_type": "ExpressionStatement" }, - "inline": null, - "pure": false, - "cref": "@algorandfoundation/algorand-typescript/base-contract.d.ts::BaseContract", - "member_name": "clearStateProgram", - "arc4_method_config": null - }, - "methods": [ { - "_type": "ContractMethod", + "expr": { "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 14, - "end_line": 14, - "column": 2, - "end_column": 33 + "file": "%DIR%/arc-28-events.algo.ts", + "line": 30, + "end_line": 30, + "comment_lines": 0, + "column": 4, + "end_column": 61 }, - "args": [ - { - "_type": "SubroutineArgument", - "name": "a", + "signature": "Swapped6((uint8,uint8),uint8)", + "values": [ + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 30, + "end_line": 30, + "comment_lines": 0, + "column": 42, + "end_column": 48 + }, + "items": [ + { "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 14, - "end_line": 14, - "column": 14, - "end_column": 22 + "file": "%DIR%/arc-28-events.algo.ts", + "line": 30, + "end_line": 30, + "comment_lines": 0, + "column": 43, + "end_column": 44 }, "wtype": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "name": "b", + "_type": "VarExpression" + }, + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 30, + "end_line": 30, + "comment_lines": 0, + "column": 46, + "end_column": 47 + }, + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "name": "b", + "_type": "VarExpression" + } + ], + "wtype": { + "types": [ + { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" }, - { - "_type": "SubroutineArgument", + "_type": "TupleExpression" + }, + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 30, + "end_line": 30, + "comment_lines": 0, + "column": 59, + "end_column": 60 + }, + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "name": "a", + "_type": "VarExpression" + } + ], + "_type": "EmitFields" + }, + "_type": "ExpressionStatement" + }, + { + "expr": { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 31, + "end_line": 31, + "comment_lines": 0, + "column": 4, + "end_column": 52 + }, + "signature": "Swapped6((uint8,uint8),uint8)", + "values": [ + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 31, + "end_line": 31, + "comment_lines": 0, + "column": 42, + "end_column": 48 + }, + "items": [ + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 31, + "end_line": 31, + "comment_lines": 0, + "column": 43, + "end_column": 44 + }, + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, "name": "b", + "_type": "VarExpression" + }, + { "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 14, - "end_line": 14, - "column": 24, - "end_column": 32 + "file": "%DIR%/arc-28-events.algo.ts", + "line": 31, + "end_line": 31, + "comment_lines": 0, + "column": 46, + "end_column": 47 }, "wtype": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "name": "b", + "_type": "VarExpression" + } + ], + "wtype": { + "types": [ + { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" } - } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 31, + "end_line": 31, + "comment_lines": 0, + "column": 50, + "end_column": 51 + }, + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "name": "a", + "_type": "VarExpression" + } + ], + "_type": "EmitFields" + }, + "_type": "ExpressionStatement" + }, + { + "expr": { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 33, + "end_line": 33, + "comment_lines": 0, + "column": 4, + "end_column": 46 + }, + "signature": "Swapped7(uint8[],uint8)", + "values": [ + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 33, + "end_line": 33, + "comment_lines": 0, + "column": 36, + "end_column": 42 + }, + "items": [ + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 33, + "end_line": 33, + "comment_lines": 0, + "column": 37, + "end_column": 38 + }, + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "name": "b", + "_type": "VarExpression" + }, + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 33, + "end_line": 33, + "comment_lines": 0, + "column": 40, + "end_column": 41 + }, + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "name": "b", + "_type": "VarExpression" + } + ], + "wtype": { + "types": [ + { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 33, + "end_line": 33, + "comment_lines": 0, + "column": 44, + "end_column": 45 + }, + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "name": "a", + "_type": "VarExpression" + } ], - "return_type": { - "_type": "WType", - "name": "void", - "immutable": true + "_type": "EmitFields" + }, + "_type": "ExpressionStatement" + }, + { + "expr": { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 35, + "end_line": 35, + "comment_lines": 0, + "column": 4, + "end_column": 56 }, - "body": { - "_type": "Block", + "signature": "Swapped8(((uint8,uint8)),uint8)", + "values": [ + { "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 14, - "end_line": 44, - "column": 34, - "end_column": 3 + "file": "%DIR%/arc-28-events.algo.ts", + "line": 35, + "end_line": 35, + "comment_lines": 0, + "column": 44, + "end_column": 52 }, - "body": [ - { - "_type": "ExpressionStatement", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 15, - "end_line": 15, - "column": 4, - "end_column": 33 - }, - "expr": { - "_type": "Emit", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 15, - "end_line": 15, - "column": 4, - "end_column": 33 - }, - "value": { - "_type": "NewStruct", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 15, - "end_line": 15, - "column": 18, - "end_column": 32 - }, - "wtype": { - "_type": "ARC4Struct", - "name": "tests/approvals/arc-28-events.algo.ts::Swapped", - "arc4_alias": null, - "fields": { - "a": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "b": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - } - }, - "source_location": null, - "frozen": false, - "desc": null - }, - "values": { - "a": { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 15, - "end_line": 15, - "column": 23, - "end_column": 24 - }, - "wtype": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "name": "b" - }, - "b": { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 15, - "end_line": 15, - "column": 29, - "end_column": 30 - }, - "wtype": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "name": "a" - } - } - } - } + "items": [ + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 35, + "end_line": 35, + "comment_lines": 0, + "column": 45, + "end_column": 51 }, - { - "_type": "AssignmentStatement", + "items": [ + { "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 17, - "end_line": 17, - "column": 10, - "end_column": 37 + "file": "%DIR%/arc-28-events.algo.ts", + "line": 35, + "end_line": 35, + "comment_lines": 0, + "column": 46, + "end_column": 47 }, - "target": { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 17, - "end_line": 17, - "column": 10, - "end_column": 11 - }, - "wtype": { - "_type": "ARC4Struct", - "name": "tests/approvals/arc-28-events.algo.ts::Swapped", - "arc4_alias": null, - "fields": { - "a": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "b": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - } - }, - "source_location": null, - "frozen": false, - "desc": null - }, - "name": "x" + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "value": { - "_type": "NewStruct", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 17, - "end_line": 17, - "column": 23, - "end_column": 37 - }, - "wtype": { - "_type": "ARC4Struct", - "name": "tests/approvals/arc-28-events.algo.ts::Swapped", - "arc4_alias": null, - "fields": { - "a": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "b": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - } - }, - "source_location": null, - "frozen": false, - "desc": null - }, - "values": { - "a": { - "_type": "FieldExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 17, - "end_line": 17, - "column": 23, - "end_column": 37 - }, - "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 17, - "end_line": 17, - "column": 23, - "end_column": 37 - }, - "source": { - "_type": "TupleExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 17, - "end_line": 17, - "column": 23, - "end_column": 37 - }, - "wtype": { - "_type": "WTuple", - "name": "{a:Uint<8>,b:Uint<8>}", - "types": [ - { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - } - ], - "names": ["a", "b"] - }, - "items": [ - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 17, - "end_line": 17, - "column": 28, - "end_column": 29 - }, - "wtype": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "name": "b" - }, - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 17, - "end_line": 17, - "column": 34, - "end_column": 35 - }, - "wtype": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "name": "a" - } - ] - }, - "_id": "0" - }, - "name": "a" - }, - "b": { - "_type": "FieldExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 17, - "end_line": 17, - "column": 23, - "end_column": 37 - }, - "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 17, - "end_line": 17, - "column": 23, - "end_column": 37 - }, - "source": { - "_type": "TupleExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 17, - "end_line": 17, - "column": 23, - "end_column": 37 - }, - "wtype": { - "_type": "WTuple", - "name": "{a:Uint<8>,b:Uint<8>}", - "types": [ - { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - } - ], - "names": ["a", "b"] - }, - "items": [ - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 17, - "end_line": 17, - "column": 28, - "end_column": 29 - }, - "wtype": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "name": "b" - }, - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 17, - "end_line": 17, - "column": 34, - "end_column": 35 - }, - "wtype": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "name": "a" - } - ] - }, - "_id": "0" - }, - "name": "b" - } - } - } - }, - { - "_type": "ExpressionStatement", + "name": "b", + "_type": "VarExpression" + }, + { "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 18, - "end_line": 18, - "column": 4, - "end_column": 11 + "file": "%DIR%/arc-28-events.algo.ts", + "line": 35, + "end_line": 35, + "comment_lines": 0, + "column": 49, + "end_column": 50 }, - "expr": { - "_type": "Emit", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 18, - "end_line": 18, - "column": 4, - "end_column": 11 - }, - "value": { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 18, - "end_line": 18, - "column": 9, - "end_column": 10 - }, - "wtype": { - "_type": "ARC4Struct", - "name": "tests/approvals/arc-28-events.algo.ts::Swapped", - "arc4_alias": null, - "fields": { - "a": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "b": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - } - }, - "source_location": null, - "frozen": false, - "desc": null - }, - "name": "x" - } - } - }, - { - "_type": "AssignmentStatement", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 20, - "end_line": 23, - "column": 10, - "end_column": 6 + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "target": { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 20, - "end_line": 20, - "column": 10, - "end_column": 11 - }, - "wtype": { - "_type": "ARC4Struct", - "name": "SwappedArc4", - "arc4_alias": null, - "fields": { - "a": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "b": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - } - }, - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 11, - "end_line": 11, - "column": 0, - "end_column": 60 - }, - "frozen": false, - "desc": null - }, - "name": "y" + "name": "b", + "_type": "VarExpression" + } + ], + "wtype": { + "types": [ + { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "value": { - "_type": "NewStruct", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 20, - "end_line": 23, - "column": 14, - "end_column": 6 - }, - "wtype": { - "_type": "ARC4Struct", - "name": "SwappedArc4", - "arc4_alias": null, - "fields": { - "a": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "b": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - } - }, - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 11, - "end_line": 11, - "column": 0, - "end_column": 60 - }, - "frozen": false, - "desc": null - }, - "values": { - "a": { - "_type": "FieldExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 20, - "end_line": 23, - "column": 14, - "end_column": 6 - }, - "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 20, - "end_line": 23, - "column": 30, - "end_column": 5 - }, - "source": { - "_type": "TupleExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 20, - "end_line": 23, - "column": 30, - "end_column": 5 - }, - "wtype": { - "_type": "WTuple", - "name": "ReadonlyObject8F6E91C4", - "types": [ - { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - } - ], - "names": ["a", "b"] - }, - "items": [ - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 21, - "end_line": 21, - "column": 9, - "end_column": 10 - }, - "wtype": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "name": "b" - }, - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 22, - "end_line": 22, - "column": 9, - "end_column": 10 - }, - "wtype": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "name": "a" - } - ] - }, - "_id": "1" - }, - "name": "a" - }, - "b": { - "_type": "FieldExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 20, - "end_line": 23, - "column": 14, - "end_column": 6 - }, - "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 20, - "end_line": 23, - "column": 30, - "end_column": 5 - }, - "source": { - "_type": "TupleExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 20, - "end_line": 23, - "column": 30, - "end_column": 5 - }, - "wtype": { - "_type": "WTuple", - "name": "ReadonlyObject8F6E91C4", - "types": [ - { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - } - ], - "names": ["a", "b"] - }, - "items": [ - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 21, - "end_line": 21, - "column": 9, - "end_column": 10 - }, - "wtype": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "name": "b" - }, - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 22, - "end_line": 22, - "column": 9, - "end_column": 10 - }, - "wtype": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "name": "a" - } - ] - }, - "_id": "1" - }, - "name": "b" - } - } + { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" }, + "_type": "TupleExpression" + } + ], + "wtype": { + "types": [ { - "_type": "ExpressionStatement", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 24, - "end_line": 24, - "column": 4, - "end_column": 11 + "types": [ + { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "expr": { - "_type": "Emit", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 24, - "end_line": 24, - "column": 4, - "end_column": 11 - }, - "value": { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 24, - "end_line": 24, - "column": 9, - "end_column": 10 - }, - "wtype": { - "_type": "ARC4Struct", - "name": "SwappedArc4", - "arc4_alias": null, - "fields": { - "a": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "b": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - } - }, - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 11, - "end_line": 11, - "column": 0, - "end_column": 60 - }, - "frozen": false, - "desc": null - }, - "name": "y" - } + { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 35, + "end_line": 35, + "comment_lines": 0, + "column": 54, + "end_column": 55 + }, + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "name": "a", + "_type": "VarExpression" + } + ], + "_type": "EmitFields" + }, + "_type": "ExpressionStatement" + }, + { + "expr": { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 36, + "end_line": 36, + "comment_lines": 0, + "column": 4, + "end_column": 50 + }, + "signature": "Swapped9(uint8[][],uint8)", + "values": [ + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 36, + "end_line": 36, + "comment_lines": 0, + "column": 38, + "end_column": 46 + }, + "items": [ + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 36, + "end_line": 36, + "comment_lines": 0, + "column": 39, + "end_column": 45 }, - { - "_type": "ExpressionStatement", + "items": [ + { "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 26, - "end_line": 26, - "column": 4, - "end_column": 26 + "file": "%DIR%/arc-28-events.algo.ts", + "line": 36, + "end_line": 36, + "comment_lines": 0, + "column": 40, + "end_column": 41 }, - "expr": { - "_type": "EmitFields", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 26, - "end_line": 26, - "column": 4, - "end_column": 26 - }, - "wtype": { - "_type": "WType", - "name": "void", - "immutable": true - }, - "signature": "Swapped4", - "values": [ - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 26, - "end_line": 26, - "column": 21, - "end_column": 22 - }, - "wtype": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "name": "b" - }, - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 26, - "end_line": 26, - "column": 24, - "end_column": 25 - }, - "wtype": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "name": "a" - } - ] - } - }, - { - "_type": "ExpressionStatement", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 28, - "end_line": 28, - "column": 4, - "end_column": 39 + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "expr": { - "_type": "EmitFields", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 28, - "end_line": 28, - "column": 4, - "end_column": 39 - }, - "wtype": { - "_type": "WType", - "name": "void", - "immutable": true - }, - "signature": "Swapped5(uint8,uint8)", - "values": [ - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 28, - "end_line": 28, - "column": 34, - "end_column": 35 - }, - "wtype": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "name": "b" - }, - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 28, - "end_line": 28, - "column": 37, - "end_column": 38 - }, - "wtype": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "name": "a" - } - ] - } - }, - { - "_type": "ExpressionStatement", + "name": "b", + "_type": "VarExpression" + }, + { "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 30, - "end_line": 30, - "column": 4, - "end_column": 61 + "file": "%DIR%/arc-28-events.algo.ts", + "line": 36, + "end_line": 36, + "comment_lines": 0, + "column": 43, + "end_column": 44 }, - "expr": { - "_type": "EmitFields", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 30, - "end_line": 30, - "column": 4, - "end_column": 61 - }, - "wtype": { - "_type": "WType", - "name": "void", - "immutable": true - }, - "signature": "Swapped6((uint8,uint8),uint8)", - "values": [ - { - "_type": "TupleExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 30, - "end_line": 30, - "column": 42, - "end_column": 48 - }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - } - ] - }, - "items": [ - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 30, - "end_line": 30, - "column": 43, - "end_column": 44 - }, - "wtype": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "name": "b" - }, - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 30, - "end_line": 30, - "column": 46, - "end_column": 47 - }, - "wtype": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "name": "b" - } - ] - }, - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 30, - "end_line": 30, - "column": 59, - "end_column": 60 - }, - "wtype": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "name": "a" - } - ] - } - }, - { - "_type": "ExpressionStatement", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 31, - "end_line": 31, - "column": 4, - "end_column": 52 + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "expr": { - "_type": "EmitFields", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 31, - "end_line": 31, - "column": 4, - "end_column": 52 - }, - "wtype": { - "_type": "WType", - "name": "void", - "immutable": true - }, - "signature": "Swapped6((uint8,uint8),uint8)", - "values": [ - { - "_type": "TupleExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 31, - "end_line": 31, - "column": 42, - "end_column": 48 - }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - } - ] - }, - "items": [ - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 31, - "end_line": 31, - "column": 43, - "end_column": 44 - }, - "wtype": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "name": "b" - }, - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 31, - "end_line": 31, - "column": 46, - "end_column": 47 - }, - "wtype": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "name": "b" - } - ] - }, - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 31, - "end_line": 31, - "column": 50, - "end_column": 51 - }, - "wtype": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "name": "a" - } - ] - } - }, - { - "_type": "ExpressionStatement", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 33, - "end_line": 33, - "column": 4, - "end_column": 46 + "name": "b", + "_type": "VarExpression" + } + ], + "wtype": { + "types": [ + { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "expr": { - "_type": "EmitFields", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 33, - "end_line": 33, - "column": 4, - "end_column": 46 - }, - "wtype": { - "_type": "WType", - "name": "void", - "immutable": true - }, - "signature": "Swapped7(uint8[],uint8)", - "values": [ - { - "_type": "TupleExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 33, - "end_line": 33, - "column": 36, - "end_column": 42 - }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - } - ] - }, - "items": [ - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 33, - "end_line": 33, - "column": 37, - "end_column": 38 - }, - "wtype": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "name": "b" - }, - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 33, - "end_line": 33, - "column": 40, - "end_column": 41 - }, - "wtype": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "name": "b" - } - ] - }, - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 33, - "end_line": 33, - "column": 44, - "end_column": 45 - }, - "wtype": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "name": "a" - } - ] + { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" }, + "_type": "TupleExpression" + } + ], + "wtype": { + "types": [ { - "_type": "ExpressionStatement", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 35, - "end_line": 35, - "column": 4, - "end_column": 56 + "types": [ + { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "expr": { - "_type": "EmitFields", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 35, - "end_line": 35, - "column": 4, - "end_column": 56 - }, - "wtype": { - "_type": "WType", - "name": "void", - "immutable": true - }, - "signature": "Swapped8(((uint8,uint8)),uint8)", - "values": [ - { - "_type": "TupleExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 35, - "end_line": 35, - "column": 44, - "end_column": 52 - }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - } - ] - } - ] - }, - "items": [ - { - "_type": "TupleExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 35, - "end_line": 35, - "column": 45, - "end_column": 51 - }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - } - ] - }, - "items": [ - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 35, - "end_line": 35, - "column": 46, - "end_column": 47 - }, - "wtype": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "name": "b" - }, - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 35, - "end_line": 35, - "column": 49, - "end_column": 50 - }, - "wtype": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "name": "b" - } - ] - } - ] - }, - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 35, - "end_line": 35, - "column": 54, - "end_column": 55 - }, - "wtype": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "name": "a" - } - ] + { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 36, + "end_line": 36, + "comment_lines": 0, + "column": 48, + "end_column": 49 + }, + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "name": "a", + "_type": "VarExpression" + } + ], + "_type": "EmitFields" + }, + "_type": "ExpressionStatement" + }, + { + "expr": { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 38, + "end_line": 38, + "comment_lines": 0, + "column": 4, + "end_column": 57 + }, + "signature": "Swapped10((uint8,uint8)[],uint8)", + "values": [ + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 38, + "end_line": 38, + "comment_lines": 0, + "column": 45, + "end_column": 53 + }, + "items": [ + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 38, + "end_line": 38, + "comment_lines": 0, + "column": 46, + "end_column": 52 }, - { - "_type": "ExpressionStatement", + "items": [ + { "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 36, - "end_line": 36, - "column": 4, - "end_column": 50 + "file": "%DIR%/arc-28-events.algo.ts", + "line": 38, + "end_line": 38, + "comment_lines": 0, + "column": 47, + "end_column": 48 }, - "expr": { - "_type": "EmitFields", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 36, - "end_line": 36, - "column": 4, - "end_column": 50 - }, - "wtype": { - "_type": "WType", - "name": "void", - "immutable": true - }, - "signature": "Swapped9(uint8[][],uint8)", - "values": [ - { - "_type": "TupleExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 36, - "end_line": 36, - "column": 38, - "end_column": 46 - }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - } - ] - } - ] - }, - "items": [ - { - "_type": "TupleExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 36, - "end_line": 36, - "column": 39, - "end_column": 45 - }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - } - ] - }, - "items": [ - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 36, - "end_line": 36, - "column": 40, - "end_column": 41 - }, - "wtype": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "name": "b" - }, - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 36, - "end_line": 36, - "column": 43, - "end_column": 44 - }, - "wtype": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "name": "b" - } - ] - } - ] - }, - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 36, - "end_line": 36, - "column": 48, - "end_column": 49 - }, - "wtype": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "name": "a" - } - ] - } - }, - { - "_type": "ExpressionStatement", + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "name": "b", + "_type": "VarExpression" + }, + { "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 38, - "end_line": 38, - "column": 4, - "end_column": 57 + "file": "%DIR%/arc-28-events.algo.ts", + "line": 38, + "end_line": 38, + "comment_lines": 0, + "column": 50, + "end_column": 51 + }, + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "name": "b", + "_type": "VarExpression" + } + ], + "wtype": { + "types": [ + { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "expr": { - "_type": "EmitFields", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 38, - "end_line": 38, - "column": 4, - "end_column": 57 - }, - "wtype": { - "_type": "WType", - "name": "void", - "immutable": true - }, - "signature": "Swapped10((uint8,uint8)[],uint8)", - "values": [ - { - "_type": "TupleExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 38, - "end_line": 38, - "column": 45, - "end_column": 53 - }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - } - ] - } - ] - }, - "items": [ - { - "_type": "TupleExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 38, - "end_line": 38, - "column": 46, - "end_column": 52 - }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - } - ] - }, - "items": [ - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 38, - "end_line": 38, - "column": 47, - "end_column": 48 - }, - "wtype": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "name": "b" - }, - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 38, - "end_line": 38, - "column": 50, - "end_column": 51 - }, - "wtype": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "name": "b" - } - ] - } - ] - }, - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 38, - "end_line": 38, - "column": 55, - "end_column": 56 - }, - "wtype": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "name": "a" - } - ] + { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" }, + "_type": "TupleExpression" + } + ], + "wtype": { + "types": [ { - "_type": "ExpressionStatement", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 39, - "end_line": 39, - "column": 4, - "end_column": 51 + "types": [ + { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "expr": { - "_type": "EmitFields", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 39, - "end_line": 39, - "column": 4, - "end_column": 51 - }, - "wtype": { - "_type": "WType", - "name": "void", - "immutable": true - }, - "signature": "Swapped11((uint8[]),uint8)", - "values": [ - { - "_type": "TupleExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 39, - "end_line": 39, - "column": 39, - "end_column": 47 - }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - } - ] - } - ] - }, - "items": [ - { - "_type": "TupleExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 39, - "end_line": 39, - "column": 40, - "end_column": 46 - }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - } - ] - }, - "items": [ - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 39, - "end_line": 39, - "column": 41, - "end_column": 42 - }, - "wtype": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "name": "b" - }, - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 39, - "end_line": 39, - "column": 44, - "end_column": 45 - }, - "wtype": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "name": "b" - } - ] - } - ] - }, - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 39, - "end_line": 39, - "column": 49, - "end_column": 50 - }, - "wtype": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "name": "a" - } - ] + { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 38, + "end_line": 38, + "comment_lines": 0, + "column": 55, + "end_column": 56 + }, + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "name": "a", + "_type": "VarExpression" + } + ], + "_type": "EmitFields" + }, + "_type": "ExpressionStatement" + }, + { + "expr": { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 39, + "end_line": 39, + "comment_lines": 0, + "column": 4, + "end_column": 51 + }, + "signature": "Swapped11((uint8[]),uint8)", + "values": [ + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 39, + "end_line": 39, + "comment_lines": 0, + "column": 39, + "end_column": 47 + }, + "items": [ + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 39, + "end_line": 39, + "comment_lines": 0, + "column": 40, + "end_column": 46 }, - { - "_type": "AssignmentStatement", + "items": [ + { "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 41, - "end_line": 41, - "column": 10, - "end_column": 32 + "file": "%DIR%/arc-28-events.algo.ts", + "line": 39, + "end_line": 39, + "comment_lines": 0, + "column": 41, + "end_column": 42 }, - "target": { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 41, - "end_line": 41, - "column": 10, - "end_column": 17 - }, - "wtype": { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - "name": "aUint64" + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "value": { - "_type": "ARC4Decode", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 41, - "end_line": 41, - "column": 20, - "end_column": 32 - }, - "wtype": { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - "value": { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 41, - "end_line": 41, - "column": 20, - "end_column": 21 - }, - "wtype": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "name": "a" - }, - "error_message": null - } - }, - { - "_type": "AssignmentStatement", + "name": "b", + "_type": "VarExpression" + }, + { "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 42, - "end_line": 42, - "column": 10, - "end_column": 32 + "file": "%DIR%/arc-28-events.algo.ts", + "line": 39, + "end_line": 39, + "comment_lines": 0, + "column": 44, + "end_column": 45 + }, + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "target": { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 42, - "end_line": 42, - "column": 10, - "end_column": 17 - }, - "wtype": { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - "name": "bUint64" + "name": "b", + "_type": "VarExpression" + } + ], + "wtype": { + "types": [ + { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "value": { - "_type": "ARC4Decode", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 42, - "end_line": 42, - "column": 20, - "end_column": 32 - }, - "wtype": { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - "value": { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 42, - "end_line": 42, - "column": 20, - "end_column": 21 - }, - "wtype": { - "_type": "ARC4UIntN", - "arc4_alias": null, - "n": 8 - }, - "name": "b" - }, - "error_message": null + { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" }, + "_type": "TupleExpression" + } + ], + "wtype": { + "types": [ { - "_type": "ExpressionStatement", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 43, - "end_line": 43, - "column": 4, - "end_column": 67 + "types": [ + { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "expr": { - "_type": "EmitFields", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 43, - "end_line": 43, - "column": 4, - "end_column": 67 - }, - "wtype": { - "_type": "WType", - "name": "void", - "immutable": true - }, - "signature": "Swapped12(uint64[],uint64)", - "values": [ - { - "_type": "TupleExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 43, - "end_line": 43, - "column": 39, - "end_column": 57 - }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "WType", - "name": "uint64", - "immutable": true - } - ] - }, - "items": [ - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 43, - "end_line": 43, - "column": 40, - "end_column": 47 - }, - "wtype": { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - "name": "bUint64" - }, - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 43, - "end_line": 43, - "column": 49, - "end_column": 56 - }, - "wtype": { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - "name": "bUint64" - } - ] - }, - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 43, - "end_line": 43, - "column": 59, - "end_column": 66 - }, - "wtype": { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - "name": "aUint64" - } - ] + { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" } - ], - "label": null, - "comment": null + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 39, + "end_line": 39, + "comment_lines": 0, + "column": 49, + "end_column": 50 + }, + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "name": "a", + "_type": "VarExpression" + } + ], + "_type": "EmitFields" + }, + "_type": "ExpressionStatement" + }, + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 41, + "end_line": 41, + "comment_lines": 0, + "column": 10, + "end_column": 32 + }, + "target": { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 41, + "end_line": 41, + "comment_lines": 0, + "column": 10, + "end_column": 17 }, - "documentation": { - "_type": "MethodDocumentation", - "description": null, - "args": {}, - "returns": null + "wtype": { + "name": "uint64", + "immutable": true, + "_type": "WType" }, - "inline": null, - "pure": false, - "cref": "tests/approvals/arc-28-events.algo.ts::EventEmitter", - "member_name": "emitSwapped", - "arc4_method_config": { - "_type": "ARC4ABIMethodConfig", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 14, - "end_line": 14, - "column": 2, - "end_column": 33 - }, - "allowed_completion_types": [0], - "create": 3, - "name": "emitSwapped", - "resource_encoding": "value", - "readonly": false, - "default_args": {}, - "validate_encoding": null - } + "name": "aUint64", + "_type": "VarExpression" + }, + "value": { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 41, + "end_line": 41, + "comment_lines": 0, + "column": 20, + "end_column": 32 + }, + "wtype": { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + "value": { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 41, + "end_line": 41, + "comment_lines": 0, + "column": 20, + "end_column": 21 + }, + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "name": "a", + "_type": "VarExpression" + }, + "error_message": null, + "_type": "ARC4Decode" + }, + "_type": "AssignmentStatement" }, { - "_type": "ContractMethod", + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 42, + "end_line": 42, + "comment_lines": 0, + "column": 10, + "end_column": 32 + }, + "target": { "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 42, + "end_line": 42, + "comment_lines": 0, + "column": 10, + "end_column": 17 + }, + "wtype": { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + "name": "bUint64", + "_type": "VarExpression" + }, + "value": { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 42, + "end_line": 42, + "comment_lines": 0, + "column": 20, + "end_column": 32 + }, + "wtype": { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + "value": { + "source_location": { "file": "%DIR%/arc-28-events.algo.ts", - "line": 46, - "end_line": 46, - "column": 2, - "end_column": 41 + "line": 42, + "end_line": 42, + "comment_lines": 0, + "column": 20, + "end_column": 21 + }, + "wtype": { + "arc4_alias": null, + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "name": "b", + "_type": "VarExpression" }, - "args": [ - { - "_type": "SubroutineArgument", - "name": "arg0", + "error_message": null, + "_type": "ARC4Decode" + }, + "_type": "AssignmentStatement" + }, + { + "expr": { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 43, + "end_line": 43, + "comment_lines": 0, + "column": 4, + "end_column": 67 + }, + "signature": "Swapped12(uint64[],uint64)", + "values": [ + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 43, + "end_line": 43, + "comment_lines": 0, + "column": 39, + "end_column": 57 + }, + "items": [ + { "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 46, - "end_line": 46, - "column": 13, - "end_column": 25 + "file": "%DIR%/arc-28-events.algo.ts", + "line": 43, + "end_line": 43, + "comment_lines": 0, + "column": 40, + "end_column": 47 }, "wtype": { - "_type": "WType", - "name": "string", - "immutable": true - } - }, - { - "_type": "SubroutineArgument", - "name": "arg1", + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + "name": "bUint64", + "_type": "VarExpression" + }, + { "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 46, - "end_line": 46, - "column": 27, - "end_column": 40 + "file": "%DIR%/arc-28-events.algo.ts", + "line": 43, + "end_line": 43, + "comment_lines": 0, + "column": 49, + "end_column": 56 }, "wtype": { - "_type": "WType", - "name": "bool", - "immutable": true - } - } - ], - "return_type": { - "_type": "WType", - "name": "void", - "immutable": true - }, - "body": { - "_type": "Block", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 46, - "end_line": 49, - "column": 42, - "end_column": 3 - }, - "body": [ + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + "name": "bUint64", + "_type": "VarExpression" + } + ], + "wtype": { + "types": [ { - "_type": "ExpressionStatement", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 47, - "end_line": 47, - "column": 4, - "end_column": 30 - }, - "expr": { - "_type": "EmitFields", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 47, - "end_line": 47, - "column": 4, - "end_column": 30 - }, - "wtype": { - "_type": "WType", - "name": "void", - "immutable": true - }, - "signature": "Custom", - "values": [ - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 47, - "end_line": 47, - "column": 19, - "end_column": 23 - }, - "wtype": { - "_type": "WType", - "name": "string", - "immutable": true - }, - "name": "arg0" - }, - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 47, - "end_line": 47, - "column": 25, - "end_column": 29 - }, - "wtype": { - "_type": "WType", - "name": "bool", - "immutable": true - }, - "name": "arg1" - } - ] - } + "name": "uint64", + "immutable": true, + "_type": "WType" }, { - "_type": "ExpressionStatement", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 48, - "end_line": 48, - "column": 4, - "end_column": 43 - }, - "expr": { - "_type": "EmitFields", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 48, - "end_line": 48, - "column": 4, - "end_column": 43 - }, - "wtype": { - "_type": "WType", - "name": "void", - "immutable": true - }, - "signature": "Custom(string,bool)", - "values": [ - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 48, - "end_line": 48, - "column": 32, - "end_column": 36 - }, - "wtype": { - "_type": "WType", - "name": "string", - "immutable": true - }, - "name": "arg0" - }, - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 48, - "end_line": 48, - "column": 38, - "end_column": 42 - }, - "wtype": { - "_type": "WType", - "name": "bool", - "immutable": true - }, - "name": "arg1" - } - ] - } + "name": "uint64", + "immutable": true, + "_type": "WType" } - ], - "label": null, - "comment": null - }, - "documentation": { - "_type": "MethodDocumentation", - "description": null, - "args": {}, - "returns": null - }, - "inline": null, - "pure": false, - "cref": "tests/approvals/arc-28-events.algo.ts::EventEmitter", - "member_name": "emitCustom", - "arc4_method_config": { - "_type": "ARC4ABIMethodConfig", + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + { "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 46, - "end_line": 46, - "column": 2, - "end_column": 41 - }, - "allowed_completion_types": [0], - "create": 3, - "name": "emitCustom", - "resource_encoding": "value", - "readonly": false, - "default_args": {}, - "validate_encoding": null - } + "file": "%DIR%/arc-28-events.algo.ts", + "line": 43, + "end_line": 43, + "comment_lines": 0, + "column": 59, + "end_column": 66 + }, + "wtype": { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + "name": "aUint64", + "_type": "VarExpression" + } + ], + "_type": "EmitFields" + }, + "_type": "ExpressionStatement" + } + ], + "label": null, + "comment": null, + "_type": "Block" + }, + "documentation": { + "description": null, + "args": {}, + "returns": null + }, + "inline": null, + "pure": false, + "cref": "tests/approvals/arc-28-events.algo.ts::EventEmitter", + "member_name": "emitSwapped", + "arc4_method_config": { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 14, + "end_line": 14, + "comment_lines": 0, + "column": 2, + "end_column": 33 + }, + "allowed_completion_types": [ + 0 + ], + "create": 3, + "name": "emitSwapped", + "resource_encoding": "value", + "readonly": false, + "default_args": {}, + "validate_encoding": null + } + }, + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 46, + "end_line": 46, + "comment_lines": 0, + "column": 2, + "end_column": 41 + }, + "args": [ + { + "name": "arg0", + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 46, + "end_line": 46, + "comment_lines": 0, + "column": 13, + "end_column": 25 + }, + "wtype": { + "name": "string", + "immutable": true, + "_type": "WType" + } + }, + { + "name": "arg1", + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 46, + "end_line": 46, + "comment_lines": 0, + "column": 27, + "end_column": 40 }, + "wtype": { + "name": "bool", + "immutable": true, + "_type": "WType" + } + } + ], + "return_type": { + "name": "void", + "immutable": true, + "_type": "WType" + }, + "body": { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 46, + "end_line": 49, + "comment_lines": 0, + "column": 42, + "end_column": 3 + }, + "body": [ { - "_type": "ContractMethod", + "expr": { "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 51, - "end_line": 51, - "column": 2, - "end_column": 45 + "file": "%DIR%/arc-28-events.algo.ts", + "line": 47, + "end_line": 47, + "comment_lines": 0, + "column": 4, + "end_column": 30 }, - "args": [ - { - "_type": "SubroutineArgument", - "name": "x", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 51, - "end_line": 51, - "column": 19, - "end_column": 27 - }, - "wtype": { - "_type": "BytesWType", - "length": null - } + "signature": "Custom", + "values": [ + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 47, + "end_line": 47, + "comment_lines": 0, + "column": 19, + "end_column": 23 }, - { - "_type": "SubroutineArgument", - "name": "y", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 51, - "end_line": 51, - "column": 29, - "end_column": 44 - }, - "wtype": { - "_type": "ARC4DynamicArray", - "immutable": true, - "arc4_alias": null, - "element_type": { - "_type": "ARC4UIntN", - "arc4_alias": "byte", - "n": 8 - }, - "source_location": null - } - } + "wtype": { + "name": "string", + "immutable": true, + "_type": "WType" + }, + "name": "arg0", + "_type": "VarExpression" + }, + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 47, + "end_line": 47, + "comment_lines": 0, + "column": 25, + "end_column": 29 + }, + "wtype": { + "name": "bool", + "immutable": true, + "_type": "WType" + }, + "name": "arg1", + "_type": "VarExpression" + } ], - "return_type": { - "_type": "WType", - "name": "void", - "immutable": true + "_type": "EmitFields" + }, + "_type": "ExpressionStatement" + }, + { + "expr": { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 48, + "end_line": 48, + "comment_lines": 0, + "column": 4, + "end_column": 43 }, - "body": { - "_type": "Block", + "signature": "Custom(string,bool)", + "values": [ + { "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 51, - "end_line": 54, - "column": 46, - "end_column": 3 + "file": "%DIR%/arc-28-events.algo.ts", + "line": 48, + "end_line": 48, + "comment_lines": 0, + "column": 32, + "end_column": 36 }, - "body": [ - { - "_type": "ExpressionStatement", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 53, - "end_line": 53, - "column": 4, - "end_column": 35 - }, - "expr": { - "_type": "EmitFields", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 53, - "end_line": 53, - "column": 4, - "end_column": 35 - }, - "wtype": { - "_type": "WType", - "name": "void", - "immutable": true - }, - "signature": "DB(byte[],byte[])", - "values": [ - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 53, - "end_line": 53, - "column": 30, - "end_column": 31 - }, - "wtype": { - "_type": "BytesWType", - "length": null - }, - "name": "x" - }, - { - "_type": "VarExpression", - "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 53, - "end_line": 53, - "column": 33, - "end_column": 34 - }, - "wtype": { - "_type": "ARC4DynamicArray", - "immutable": true, - "arc4_alias": null, - "element_type": { - "_type": "ARC4UIntN", - "arc4_alias": "byte", - "n": 8 - }, - "source_location": null - }, - "name": "y" - } - ] - } - } - ], - "label": null, - "comment": null - }, - "documentation": { - "_type": "MethodDocumentation", - "description": null, - "args": {}, - "returns": null - }, - "inline": null, - "pure": false, - "cref": "tests/approvals/arc-28-events.algo.ts::EventEmitter", - "member_name": "emitDynamicBytes", - "arc4_method_config": { - "_type": "ARC4ABIMethodConfig", + "wtype": { + "name": "string", + "immutable": true, + "_type": "WType" + }, + "name": "arg0", + "_type": "VarExpression" + }, + { "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 51, - "end_line": 51, - "column": 2, - "end_column": 45 - }, - "allowed_completion_types": [0], - "create": 3, - "name": "emitDynamicBytes", - "resource_encoding": "value", - "readonly": false, - "default_args": {}, - "validate_encoding": null - } + "file": "%DIR%/arc-28-events.algo.ts", + "line": 48, + "end_line": 48, + "comment_lines": 0, + "column": 38, + "end_column": 42 + }, + "wtype": { + "name": "bool", + "immutable": true, + "_type": "WType" + }, + "name": "arg1", + "_type": "VarExpression" + } + ], + "_type": "EmitFields" + }, + "_type": "ExpressionStatement" + } + ], + "label": null, + "comment": null, + "_type": "Block" + }, + "documentation": { + "description": null, + "args": {}, + "returns": null + }, + "inline": null, + "pure": false, + "cref": "tests/approvals/arc-28-events.algo.ts::EventEmitter", + "member_name": "emitCustom", + "arc4_method_config": { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 46, + "end_line": 46, + "comment_lines": 0, + "column": 2, + "end_column": 41 + }, + "allowed_completion_types": [ + 0 + ], + "create": 3, + "name": "emitCustom", + "resource_encoding": "value", + "readonly": false, + "default_args": {}, + "validate_encoding": null + } + }, + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 51, + "end_line": 51, + "comment_lines": 0, + "column": 2, + "end_column": 45 + }, + "args": [ + { + "name": "x", + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 51, + "end_line": 51, + "comment_lines": 0, + "column": 19, + "end_column": 27 + }, + "wtype": { + "length": null, + "_type": "BytesWType" + } + }, + { + "name": "y", + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 51, + "end_line": 51, + "comment_lines": 0, + "column": 29, + "end_column": 44 }, + "wtype": { + "arc4_alias": null, + "source_location": null, + "immutable": true, + "element_type": { + "arc4_alias": "byte", + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "_type": "ARC4DynamicArray" + } + } + ], + "return_type": { + "name": "void", + "immutable": true, + "_type": "WType" + }, + "body": { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 51, + "end_line": 54, + "comment_lines": 0, + "column": 46, + "end_column": 3 + }, + "body": [ { - "_type": "ContractMethod", + "expr": { "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 13, - "end_line": 13, - "column": 0, - "end_column": 37 + "file": "%DIR%/arc-28-events.algo.ts", + "line": 53, + "end_line": 53, + "comment_lines": 0, + "column": 4, + "end_column": 35 }, - "args": [], - "return_type": { - "_type": "WType", - "name": "void", - "immutable": true - }, - "body": { - "_type": "Block", + "signature": "DB(byte[],byte[])", + "values": [ + { "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 13, - "end_line": 13, - "column": 0, - "end_column": 37 + "file": "%DIR%/arc-28-events.algo.ts", + "line": 53, + "end_line": 53, + "comment_lines": 0, + "column": 30, + "end_column": 31 }, - "body": [], - "label": null, - "comment": null - }, - "documentation": { - "_type": "MethodDocumentation", - "description": "Implicitly generated create method", - "args": {}, - "returns": null - }, - "inline": null, - "pure": false, - "cref": "tests/approvals/arc-28-events.algo.ts::EventEmitter", - "member_name": "__algots__.defaultCreate", - "arc4_method_config": { - "_type": "ARC4BareMethodConfig", + "wtype": { + "length": null, + "_type": "BytesWType" + }, + "name": "x", + "_type": "VarExpression" + }, + { "source_location": { - "file": "%DIR%/arc-28-events.algo.ts", - "line": 13, - "end_line": 13, - "column": 0, - "end_column": 37 + "file": "%DIR%/arc-28-events.algo.ts", + "line": 53, + "end_line": 53, + "comment_lines": 0, + "column": 33, + "end_column": 34 }, - "allowed_completion_types": [0], - "create": 2 - } + "wtype": { + "arc4_alias": null, + "source_location": null, + "immutable": true, + "element_type": { + "arc4_alias": "byte", + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "_type": "ARC4DynamicArray" + }, + "name": "y", + "_type": "VarExpression" + } + ], + "_type": "EmitFields" + }, + "_type": "ExpressionStatement" } - ], - "app_state": [], - "state_totals": { - "_type": "StateTotals", - "global_uints": null, - "local_uints": null, - "global_bytes": null, - "local_bytes": null + ], + "label": null, + "comment": null, + "_type": "Block" + }, + "documentation": { + "description": null, + "args": {}, + "returns": null }, - "reserved_scratch_space": [], - "avm_version": null - } + "inline": null, + "pure": false, + "cref": "tests/approvals/arc-28-events.algo.ts::EventEmitter", + "member_name": "emitDynamicBytes", + "arc4_method_config": { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 51, + "end_line": 51, + "comment_lines": 0, + "column": 2, + "end_column": 45 + }, + "allowed_completion_types": [ + 0 + ], + "create": 3, + "name": "emitDynamicBytes", + "resource_encoding": "value", + "readonly": false, + "default_args": {}, + "validate_encoding": null + } + }, + { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 13, + "end_line": 13, + "comment_lines": 0, + "column": 0, + "end_column": 37 + }, + "args": [], + "return_type": { + "name": "void", + "immutable": true, + "_type": "WType" + }, + "body": { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 13, + "end_line": 13, + "comment_lines": 0, + "column": 0, + "end_column": 37 + }, + "body": [], + "label": null, + "comment": null, + "_type": "Block" + }, + "documentation": { + "description": "Implicitly generated create method", + "args": {}, + "returns": null + }, + "inline": null, + "pure": false, + "cref": "tests/approvals/arc-28-events.algo.ts::EventEmitter", + "member_name": "__algots__.defaultCreate", + "arc4_method_config": { + "source_location": { + "file": "%DIR%/arc-28-events.algo.ts", + "line": 13, + "end_line": 13, + "comment_lines": 0, + "column": 0, + "end_column": 37 + }, + "allowed_completion_types": [ + 0 + ], + "create": 2 + } + } + ], + "app_state": [], + "state_totals": { + "global_uints": null, + "local_uints": null, + "global_bytes": null, + "local_bytes": null + }, + "reserved_scratch_space": [], + "avm_version": null, + "_type": "Contract" + } ] diff --git a/tests/from_awst/itxn_compose/module.awst.json b/tests/from_awst/itxn_compose/module.awst.json index c910f483a9..9ed2ced9ff 100644 --- a/tests/from_awst/itxn_compose/module.awst.json +++ b/tests/from_awst/itxn_compose/module.awst.json @@ -1,10 +1,10 @@ [ { - "_type": "Contract", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 35, "end_line": 35, + "comment_lines": 0, "column": 0, "end_column": 38 }, @@ -17,170 +17,172 @@ "@algorandfoundation/algorand-typescript/base-contract.d.ts::BaseContract" ], "approval_program": { - "_type": "ContractMethod", "source_location": { "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 }, "args": [], "return_type": { - "_type": "WType", "name": "bool", - "immutable": true + "immutable": true, + "_type": "WType" }, "body": { - "_type": "Block", "source_location": { "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 }, "body": [ { - "_type": "IfElse", "source_location": { "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 }, "condition": { - "_type": "Not", "source_location": { "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 }, "expr": { - "_type": "ReinterpretCast", "source_location": { "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 }, "wtype": { - "_type": "WType", "name": "bool", - "immutable": true + "immutable": true, + "_type": "WType" }, "expr": { - "_type": "IntrinsicCall", "source_location": { "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "op_code": "txn", "immediates": [ "ApplicationID" ], - "stack_args": [] - } - } + "stack_args": [], + "_type": "IntrinsicCall" + }, + "_type": "ReinterpretCast" + }, + "_type": "Not" }, "if_branch": { - "_type": "Block", "source_location": { "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 }, "body": [ { - "_type": "ExpressionStatement", - "source_location": { - "file": null, - "line": 1, - "end_line": 1, - "column": 0, - "end_column": 1 - }, "expr": { - "_type": "SubroutineCallExpression", "source_location": { "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 }, "wtype": { - "_type": "WType", "name": "void", - "immutable": true + "immutable": true, + "_type": "WType" }, "target": { - "_type": "InstanceMethodTarget", - "member_name": "constructor" + "member_name": "constructor", + "_type": "InstanceMethodTarget" }, - "args": [] - } + "args": [], + "_type": "SubroutineCallExpression" + }, + "_type": "ExpressionStatement" } ], "label": null, - "comment": null + "comment": null, + "_type": "Block" }, - "else_branch": null + "else_branch": null, + "_type": "IfElse" }, { - "_type": "Block", "source_location": { "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 }, "body": [ { - "_type": "ReturnStatement", "source_location": { "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 }, "value": { - "_type": "ARC4Router", "source_location": { "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 - } - } + }, + "_type": "ARC4Router" + }, + "_type": "ReturnStatement" } ], "label": null, - "comment": null + "comment": null, + "_type": "Block" } ], "label": null, - "comment": null + "comment": null, + "_type": "Block" }, "documentation": { - "_type": "MethodDocumentation", "description": null, "args": {}, "returns": null @@ -192,62 +194,64 @@ "arc4_method_config": null }, "clear_program": { - "_type": "ContractMethod", "source_location": { "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 }, "args": [], "return_type": { - "_type": "WType", "name": "bool", - "immutable": true + "immutable": true, + "_type": "WType" }, "body": { - "_type": "Block", "source_location": { "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 }, "body": [ { - "_type": "ReturnStatement", "source_location": { "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 }, "value": { - "_type": "BoolConstant", "source_location": { "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 }, + "value": true, "wtype": { - "_type": "WType", "name": "bool", - "immutable": true + "immutable": true, + "_type": "WType" }, - "value": true - } + "_type": "BoolConstant" + }, + "_type": "ReturnStatement" } ], "label": null, - "comment": null + "comment": null, + "_type": "Block" }, "documentation": { - "_type": "MethodDocumentation", "description": null, "args": {}, "returns": null @@ -260,112 +264,116 @@ }, "methods": [ { - "_type": "ContractMethod", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 36, "end_line": 37, + "comment_lines": 0, "column": 2, "end_column": 26 }, "args": [ { - "_type": "SubroutineArgument", "name": "greeting", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 37, "end_line": 37, + "comment_lines": 0, "column": 9, "end_column": 25 }, "wtype": { - "_type": "WType", "name": "string", - "immutable": true + "immutable": true, + "_type": "WType" } } ], "return_type": { - "_type": "WType", "name": "void", - "immutable": true + "immutable": true, + "_type": "WType" }, "body": { - "_type": "Block", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 37, "end_line": 39, + "comment_lines": 0, "column": 27, "end_column": 3 }, "body": [ { - "_type": "AssignmentStatement", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 38, "end_line": 38, + "comment_lines": 0, "column": 4, "end_column": 34 }, "target": { - "_type": "AppStateExpression", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 38, "end_line": 38, + "comment_lines": 0, "column": 4, "end_column": 23 }, "wtype": { - "_type": "WType", "name": "string", - "immutable": true + "immutable": true, + "_type": "WType" }, "key": { - "_type": "BytesConstant", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 18, "end_line": 18, + "comment_lines": 0, "column": 2, "end_column": 10 }, + "value": "XL4m_bZKs9", "wtype": { - "_type": "WType", "name": "state_key", - "immutable": true + "immutable": true, + "_type": "WType" }, - "value": "XL4m_bZKs9", - "encoding": "utf8" + "encoding": "utf8", + "_type": "BytesConstant" }, - "exists_assertion_message": "check GlobalState exists" + "exists_assertion_message": "check GlobalState exists", + "_type": "AppStateExpression" }, "value": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 38, "end_line": 38, + "comment_lines": 0, "column": 26, "end_column": 34 }, "wtype": { - "_type": "WType", "name": "string", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "greeting" - } + "name": "greeting", + "_type": "VarExpression" + }, + "_type": "AssignmentStatement" } ], "label": null, - "comment": null + "comment": null, + "_type": "Block" }, "documentation": { - "_type": "MethodDocumentation", "description": null, "args": {}, "returns": null @@ -375,11 +383,11 @@ "cref": "tests/approvals/precompiled-apps.algo.ts::Hello", "member_name": "create", "arc4_method_config": { - "_type": "ARC4ABIMethodConfig", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 36, "end_line": 36, + "comment_lines": 0, "column": 3, "end_column": 58 }, @@ -395,35 +403,35 @@ } }, { - "_type": "ContractMethod", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 20, "end_line": 21, + "comment_lines": 0, "column": 2, "end_column": 10 }, "args": [], "return_type": { - "_type": "WType", "name": "void", - "immutable": true + "immutable": true, + "_type": "WType" }, "body": { - "_type": "Block", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 21, "end_line": 21, + "comment_lines": 0, "column": 11, "end_column": 13 }, "body": [], "label": null, - "comment": null + "comment": null, + "_type": "Block" }, "documentation": { - "_type": "MethodDocumentation", "description": null, "args": {}, "returns": null @@ -433,11 +441,11 @@ "cref": "tests/approvals/precompiled-apps.algo.ts::HelloBase", "member_name": "delete", "arc4_method_config": { - "_type": "ARC4ABIMethodConfig", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 20, "end_line": 20, + "comment_lines": 0, "column": 3, "end_column": 51 }, @@ -453,35 +461,35 @@ } }, { - "_type": "ContractMethod", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 23, "end_line": 24, + "comment_lines": 0, "column": 2, "end_column": 10 }, "args": [], "return_type": { - "_type": "WType", "name": "void", - "immutable": true + "immutable": true, + "_type": "WType" }, "body": { - "_type": "Block", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 24, "end_line": 24, + "comment_lines": 0, "column": 11, "end_column": 13 }, "body": [], "label": null, - "comment": null + "comment": null, + "_type": "Block" }, "documentation": { - "_type": "MethodDocumentation", "description": null, "args": {}, "returns": null @@ -491,11 +499,11 @@ "cref": "tests/approvals/precompiled-apps.algo.ts::HelloBase", "member_name": "update", "arc4_method_config": { - "_type": "ARC4ABIMethodConfig", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 23, "end_line": 23, + "comment_lines": 0, "column": 3, "end_column": 51 }, @@ -511,192 +519,201 @@ } }, { - "_type": "ContractMethod", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 26, "end_line": 26, + "comment_lines": 0, "column": 2, "end_column": 29 }, "args": [ { - "_type": "SubroutineArgument", "name": "name", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 26, "end_line": 26, + "comment_lines": 0, "column": 8, "end_column": 20 }, "wtype": { - "_type": "WType", "name": "string", - "immutable": true + "immutable": true, + "_type": "WType" } } ], "return_type": { - "_type": "WType", "name": "string", - "immutable": true + "immutable": true, + "_type": "WType" }, "body": { - "_type": "Block", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 26, "end_line": 28, + "comment_lines": 0, "column": 30, "end_column": 3 }, "body": [ { - "_type": "ReturnStatement", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 4, "end_column": 43 }, "value": { - "_type": "BytesBinaryOperation", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 11, "end_column": 43 }, - "wtype": { - "_type": "WType", - "name": "string", - "immutable": true - }, "left": { - "_type": "BytesBinaryOperation", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 11, "end_column": 43 }, - "wtype": { - "_type": "WType", - "name": "string", - "immutable": true - }, "left": { - "_type": "BytesBinaryOperation", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 11, "end_column": 43 }, - "wtype": { - "_type": "WType", - "name": "string", - "immutable": true - }, "left": { - "_type": "StringConstant", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 11, "end_column": 43 }, + "value": "", "wtype": { - "_type": "WType", "name": "string", - "immutable": true + "immutable": true, + "_type": "WType" }, - "value": "" + "_type": "StringConstant" }, "op": "+", "right": { - "_type": "AppStateExpression", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 14, "end_column": 33 }, "wtype": { - "_type": "WType", "name": "string", - "immutable": true + "immutable": true, + "_type": "WType" }, "key": { - "_type": "BytesConstant", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 18, "end_line": 18, + "comment_lines": 0, "column": 2, "end_column": 10 }, + "value": "XL4m_bZKs9", "wtype": { - "_type": "WType", "name": "state_key", - "immutable": true + "immutable": true, + "_type": "WType" }, - "value": "XL4m_bZKs9", - "encoding": "utf8" + "encoding": "utf8", + "_type": "BytesConstant" }, - "exists_assertion_message": "check GlobalState exists" - } + "exists_assertion_message": "check GlobalState exists", + "_type": "AppStateExpression" + }, + "wtype": { + "name": "string", + "immutable": true, + "_type": "WType" + }, + "_type": "BytesBinaryOperation" }, "op": "+", "right": { - "_type": "StringConstant", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 11, "end_column": 43 }, + "value": " ", "wtype": { - "_type": "WType", "name": "string", - "immutable": true + "immutable": true, + "_type": "WType" }, - "value": " " - } + "_type": "StringConstant" + }, + "wtype": { + "name": "string", + "immutable": true, + "_type": "WType" + }, + "_type": "BytesBinaryOperation" }, "op": "+", "right": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 37, "end_column": 41 }, "wtype": { - "_type": "WType", "name": "string", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "name" - } - } + "name": "name", + "_type": "VarExpression" + }, + "wtype": { + "name": "string", + "immutable": true, + "_type": "WType" + }, + "_type": "BytesBinaryOperation" + }, + "_type": "ReturnStatement" } ], "label": null, - "comment": null + "comment": null, + "_type": "Block" }, "documentation": { - "_type": "MethodDocumentation", "description": null, "args": {}, "returns": null @@ -706,11 +723,11 @@ "cref": "tests/approvals/precompiled-apps.algo.ts::HelloBase", "member_name": "greet", "arc4_method_config": { - "_type": "ARC4ABIMethodConfig", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 26, "end_line": 26, + "comment_lines": 0, "column": 2, "end_column": 29 }, @@ -726,325 +743,363 @@ } }, { - "_type": "ContractMethod", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 30, "end_line": 30, + "comment_lines": 0, "column": 2, "end_column": 36 }, "args": [ { - "_type": "SubroutineArgument", "name": "a", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 30, "end_line": 30, + "comment_lines": 0, "column": 16, "end_column": 27 }, "wtype": { - "_type": "ARC4Struct", "name": "%DIR%/precompiled-apps.algo.ts::Greeting", - "arc4_alias": null, - "fields": { - "name": { - "_type": "WType", - "name": "string", - "immutable": true + "_fields": [ + { + "name": "name", + "wtype": { + "name": "string", + "immutable": true, + "_type": "WType" + }, + "description": null }, - "termination": { - "_type": "ARC4DynamicArray", - "immutable": true, - "arc4_alias": "string", - "element_type": { - "_type": "ARC4UIntN", - "arc4_alias": "byte", - "n": 8 + { + "name": "termination", + "wtype": { + "arc4_alias": "string", + "source_location": null, + "immutable": true, + "element_type": { + "arc4_alias": "byte", + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "_type": "ARC4DynamicArray" }, - "source_location": null + "description": null } - }, - "source_location": null, + ], "frozen": false, - "desc": null + "source_location": null, + "desc": null, + "_type": "ARC4Struct" } } ], "return_type": { - "_type": "WType", "name": "string", - "immutable": true + "immutable": true, + "_type": "WType" }, "body": { - "_type": "Block", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 30, "end_line": 32, + "comment_lines": 0, "column": 37, "end_column": 3 }, "body": [ { - "_type": "ReturnStatement", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 31, "end_line": 31, + "comment_lines": 0, "column": 4, "end_column": 68 }, "value": { - "_type": "BytesBinaryOperation", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 31, "end_line": 31, + "comment_lines": 0, "column": 11, "end_column": 68 }, - "wtype": { - "_type": "WType", - "name": "string", - "immutable": true - }, "left": { - "_type": "BytesBinaryOperation", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 31, "end_line": 31, + "comment_lines": 0, "column": 11, "end_column": 68 }, - "wtype": { - "_type": "WType", - "name": "string", - "immutable": true - }, "left": { - "_type": "BytesBinaryOperation", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 31, "end_line": 31, + "comment_lines": 0, "column": 11, "end_column": 68 }, - "wtype": { - "_type": "WType", - "name": "string", - "immutable": true - }, "left": { - "_type": "BytesBinaryOperation", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 31, "end_line": 31, + "comment_lines": 0, "column": 11, "end_column": 68 }, - "wtype": { - "_type": "WType", - "name": "string", - "immutable": true - }, "left": { - "_type": "StringConstant", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 31, "end_line": 31, + "comment_lines": 0, "column": 11, "end_column": 68 }, + "value": "", "wtype": { - "_type": "WType", "name": "string", - "immutable": true + "immutable": true, + "_type": "WType" }, - "value": "" + "_type": "StringConstant" }, "op": "+", "right": { - "_type": "AppStateExpression", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 31, "end_line": 31, + "comment_lines": 0, "column": 14, "end_column": 33 }, "wtype": { - "_type": "WType", "name": "string", - "immutable": true + "immutable": true, + "_type": "WType" }, "key": { - "_type": "BytesConstant", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 18, "end_line": 18, + "comment_lines": 0, "column": 2, "end_column": 10 }, + "value": "XL4m_bZKs9", "wtype": { - "_type": "WType", "name": "state_key", - "immutable": true + "immutable": true, + "_type": "WType" }, - "value": "XL4m_bZKs9", - "encoding": "utf8" + "encoding": "utf8", + "_type": "BytesConstant" }, - "exists_assertion_message": "check GlobalState exists" - } + "exists_assertion_message": "check GlobalState exists", + "_type": "AppStateExpression" + }, + "wtype": { + "name": "string", + "immutable": true, + "_type": "WType" + }, + "_type": "BytesBinaryOperation" }, "op": "+", "right": { - "_type": "StringConstant", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 31, "end_line": 31, + "comment_lines": 0, "column": 11, "end_column": 68 }, + "value": " ", "wtype": { - "_type": "WType", "name": "string", - "immutable": true + "immutable": true, + "_type": "WType" }, - "value": " " - } + "_type": "StringConstant" + }, + "wtype": { + "name": "string", + "immutable": true, + "_type": "WType" + }, + "_type": "BytesBinaryOperation" }, "op": "+", "right": { - "_type": "FieldExpression", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 31, "end_line": 31, + "comment_lines": 0, "column": 37, "end_column": 43 }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 31, "end_line": 31, + "comment_lines": 0, "column": 37, "end_column": 38 }, "wtype": { - "_type": "ARC4Struct", "name": "%DIR%/precompiled-apps.algo.ts::Greeting", - "arc4_alias": null, - "fields": { - "name": { - "_type": "WType", - "name": "string", - "immutable": true + "_fields": [ + { + "name": "name", + "wtype": { + "name": "string", + "immutable": true, + "_type": "WType" + }, + "description": null }, - "termination": { - "_type": "ARC4DynamicArray", - "immutable": true, - "arc4_alias": "string", - "element_type": { - "_type": "ARC4UIntN", - "arc4_alias": "byte", - "n": 8 + { + "name": "termination", + "wtype": { + "arc4_alias": "string", + "source_location": null, + "immutable": true, + "element_type": { + "arc4_alias": "byte", + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "_type": "ARC4DynamicArray" }, - "source_location": null + "description": null } - }, - "source_location": null, + ], "frozen": false, - "desc": null + "source_location": null, + "desc": null, + "_type": "ARC4Struct" }, - "name": "a" + "name": "a", + "_type": "VarExpression" }, - "name": "name" - } + "name": "name", + "_type": "FieldExpression" + }, + "wtype": { + "name": "string", + "immutable": true, + "_type": "WType" + }, + "_type": "BytesBinaryOperation" }, "op": "+", "right": { - "_type": "ARC4Decode", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 31, "end_line": 31, + "comment_lines": 0, "column": 46, "end_column": 66 }, "wtype": { - "_type": "WType", "name": "string", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": { - "_type": "FieldExpression", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 31, "end_line": 31, + "comment_lines": 0, "column": 46, "end_column": 59 }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 31, "end_line": 31, + "comment_lines": 0, "column": 46, "end_column": 47 }, "wtype": { - "_type": "ARC4Struct", "name": "%DIR%/precompiled-apps.algo.ts::Greeting", - "arc4_alias": null, - "fields": { - "name": { - "_type": "WType", - "name": "string", - "immutable": true + "_fields": [ + { + "name": "name", + "wtype": { + "name": "string", + "immutable": true, + "_type": "WType" + }, + "description": null }, - "termination": { - "_type": "ARC4DynamicArray", - "immutable": true, - "arc4_alias": "string", - "element_type": { - "_type": "ARC4UIntN", - "arc4_alias": "byte", - "n": 8 + { + "name": "termination", + "wtype": { + "arc4_alias": "string", + "source_location": null, + "immutable": true, + "element_type": { + "arc4_alias": "byte", + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "_type": "ARC4DynamicArray" }, - "source_location": null + "description": null } - }, - "source_location": null, + ], "frozen": false, - "desc": null + "source_location": null, + "desc": null, + "_type": "ARC4Struct" }, - "name": "a" + "name": "a", + "_type": "VarExpression" }, - "name": "termination" + "name": "termination", + "_type": "FieldExpression" }, - "error_message": null - } - } + "error_message": null, + "_type": "ARC4Decode" + }, + "wtype": { + "name": "string", + "immutable": true, + "_type": "WType" + }, + "_type": "BytesBinaryOperation" + }, + "_type": "ReturnStatement" } ], "label": null, - "comment": null + "comment": null, + "_type": "Block" }, "documentation": { - "_type": "MethodDocumentation", "description": null, "args": {}, "returns": null @@ -1054,11 +1109,11 @@ "cref": "tests/approvals/precompiled-apps.algo.ts::HelloBase", "member_name": "sendGreetings", "arc4_method_config": { - "_type": "ARC4ABIMethodConfig", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 30, "end_line": 30, + "comment_lines": 0, "column": 2, "end_column": 36 }, @@ -1074,125 +1129,123 @@ } }, { - "_type": "ContractMethod", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 17, "end_line": 17, + "comment_lines": 0, "column": 0, "end_column": 43 }, "args": [], "return_type": { - "_type": "WType", "name": "void", - "immutable": true + "immutable": true, + "_type": "WType" }, "body": { - "_type": "Block", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 17, "end_line": 17, + "comment_lines": 0, "column": 0, "end_column": 43 }, "body": [ { - "_type": "ExpressionStatement", - "source_location": { - "file": "%DIR%/precompiled-apps.algo.ts", - "line": 17, - "end_line": 17, - "column": 0, - "end_column": 43 - }, "expr": { - "_type": "SubroutineCallExpression", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 17, "end_line": 17, + "comment_lines": 0, "column": 0, "end_column": 43 }, "wtype": { - "_type": "WType", "name": "void", - "immutable": true + "immutable": true, + "_type": "WType" }, "target": { - "_type": "InstanceSuperMethodTarget", - "member_name": "constructor" + "member_name": "constructor", + "_type": "InstanceSuperMethodTarget" }, - "args": [] - } + "args": [], + "_type": "SubroutineCallExpression" + }, + "_type": "ExpressionStatement" }, { - "_type": "AssignmentStatement", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 18, "end_line": 18, + "comment_lines": 0, "column": 2, "end_column": 46 }, "target": { - "_type": "AppStateExpression", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 18, "end_line": 18, + "comment_lines": 0, "column": 2, "end_column": 10 }, "wtype": { - "_type": "WType", "name": "string", - "immutable": true + "immutable": true, + "_type": "WType" }, "key": { - "_type": "BytesConstant", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 18, "end_line": 18, + "comment_lines": 0, "column": 2, "end_column": 10 }, + "value": "XL4m_bZKs9", "wtype": { - "_type": "WType", "name": "state_key", - "immutable": true + "immutable": true, + "_type": "WType" }, - "value": "XL4m_bZKs9", - "encoding": "utf8" + "encoding": "utf8", + "_type": "BytesConstant" }, - "exists_assertion_message": null + "exists_assertion_message": null, + "_type": "AppStateExpression" }, "value": { - "_type": "StringConstant", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 18, "end_line": 18, + "comment_lines": 0, "column": 41, "end_column": 43 }, + "value": "", "wtype": { - "_type": "WType", "name": "string", - "immutable": true + "immutable": true, + "_type": "WType" }, - "value": "" - } + "_type": "StringConstant" + }, + "_type": "AssignmentStatement" } ], "label": null, - "comment": null + "comment": null, + "_type": "Block" }, "documentation": { - "_type": "MethodDocumentation", "description": null, "args": {}, "returns": null @@ -1204,35 +1257,35 @@ "arc4_method_config": null }, { - "_type": "ContractMethod", "source_location": { "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 }, "args": [], "return_type": { - "_type": "WType", "name": "void", - "immutable": true + "immutable": true, + "_type": "WType" }, "body": { - "_type": "Block", "source_location": { "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 }, "body": [], "label": null, - "comment": null + "comment": null, + "_type": "Block" }, "documentation": { - "_type": "MethodDocumentation", "description": null, "args": {}, "returns": null @@ -1246,58 +1299,59 @@ ], "app_state": [ { - "_type": "AppStorageDefinition", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 18, "end_line": 18, + "comment_lines": 0, "column": 2, "end_column": 10 }, "member_name": "greeting", "kind": 1, "storage_wtype": { - "_type": "WType", "name": "string", - "immutable": true + "immutable": true, + "_type": "WType" }, "key_wtype": null, "key": { - "_type": "BytesConstant", "source_location": { "file": "%DIR%/precompiled-apps.algo.ts", "line": 18, "end_line": 18, + "comment_lines": 0, "column": 2, "end_column": 10 }, + "value": "XL4m_bZKs9", "wtype": { - "_type": "WType", "name": "state_key", - "immutable": true + "immutable": true, + "_type": "WType" }, - "value": "XL4m_bZKs9", - "encoding": "utf8" + "encoding": "utf8", + "_type": "BytesConstant" }, "description": null } ], "state_totals": { - "_type": "StateTotals", "global_uints": null, "local_uints": null, "global_bytes": null, "local_bytes": null }, "reserved_scratch_space": [], - "avm_version": null - }, + "avm_version": null, + "_type": "Contract" + }, { - "_type": "Contract", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 18, "end_line": 18, + "comment_lines": 0, "column": 0, "end_column": 40 }, @@ -1309,56 +1363,58 @@ "@algorandfoundation/algorand-typescript/base-contract.d.ts::BaseContract" ], "approval_program": { - "_type": "ContractMethod", "source_location": { "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 }, "args": [], "return_type": { - "_type": "WType", "name": "bool", - "immutable": true + "immutable": true, + "_type": "WType" }, "body": { - "_type": "Block", "source_location": { "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 }, "body": [ { - "_type": "ReturnStatement", "source_location": { "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 }, "value": { - "_type": "ARC4Router", "source_location": { "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 - } - } + }, + "_type": "ARC4Router" + }, + "_type": "ReturnStatement" } ], "label": null, - "comment": null + "comment": null, + "_type": "Block" }, "documentation": { - "_type": "MethodDocumentation", "description": null, "args": {}, "returns": null @@ -1370,62 +1426,64 @@ "arc4_method_config": null }, "clear_program": { - "_type": "ContractMethod", "source_location": { "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 }, "args": [], "return_type": { - "_type": "WType", "name": "bool", - "immutable": true + "immutable": true, + "_type": "WType" }, "body": { - "_type": "Block", "source_location": { "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 }, "body": [ { - "_type": "ReturnStatement", "source_location": { "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 }, "value": { - "_type": "BoolConstant", "source_location": { "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 }, + "value": true, "wtype": { - "_type": "WType", "name": "bool", - "immutable": true + "immutable": true, + "_type": "WType" }, - "value": true - } + "_type": "BoolConstant" + }, + "_type": "ReturnStatement" } ], "label": null, - "comment": null + "comment": null, + "_type": "Block" }, "documentation": { - "_type": "MethodDocumentation", "description": null, "args": {}, "returns": null @@ -1438,133 +1496,126 @@ }, "methods": [ { - "_type": "ContractMethod", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 19, "end_line": 19, + "comment_lines": 0, "column": 2, "end_column": 81 }, "args": [ { - "_type": "SubroutineArgument", "name": "addresses", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 19, "end_line": 19, + "comment_lines": 0, "column": 13, "end_column": 33 }, "wtype": { - "_type": "ARC4DynamicArray", - "immutable": false, "arc4_alias": null, + "source_location": null, + "immutable": false, "element_type": { - "_type": "ARC4StaticArray", - "immutable": true, "arc4_alias": "address", + "source_location": null, + "immutable": true, "element_type": { - "_type": "ARC4UIntN", "arc4_alias": "byte", - "n": 8 + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "source_location": null, - "array_size": 32 + "array_size": 32, + "_type": "ARC4StaticArray" }, - "source_location": null + "_type": "ARC4DynamicArray" } }, { - "_type": "SubroutineArgument", "name": "funds", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 19, "end_line": 19, + "comment_lines": 0, "column": 35, "end_column": 57 }, "wtype": { - "_type": "WGroupTransaction", - "name": "group_transaction_pay", "immutable": true, - "transaction_type": 1 + "transaction_type": 1, + "name": "group_transaction_pay", + "_type": "WGroupTransaction" } }, { - "_type": "SubroutineArgument", "name": "verifier", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 19, "end_line": 19, + "comment_lines": 0, "column": 59, "end_column": 80 }, "wtype": { - "_type": "WType", "name": "application", - "immutable": true + "immutable": true, + "_type": "WType" } } ], "return_type": { - "_type": "WType", "name": "void", - "immutable": true + "immutable": true, + "_type": "WType" }, "body": { - "_type": "Block", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 19, "end_line": 53, + "comment_lines": 0, "column": 82, "end_column": 3 }, "body": [ { - "_type": "ExpressionStatement", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 20, - "end_line": 22, - "column": 4, - "end_column": 6 - }, "expr": { - "_type": "AssertExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 20, "end_line": 22, + "comment_lines": 0, "column": 4, "end_column": 6 }, "condition": { - "_type": "BytesComparisonExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 20, "end_line": 22, + "comment_lines": 0, "column": 4, "end_column": 6 }, "lhs": { - "_type": "IntrinsicCall", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 20, "end_line": 22, + "comment_lines": 0, "column": 4, "end_column": 6 }, "wtype": { - "_type": "WType", "name": "account", - "immutable": true + "immutable": true, + "_type": "WType" }, "op_code": "gtxns", "immediates": [ @@ -1572,173 +1623,180 @@ ], "stack_args": [ { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 20, "end_line": 20, + "comment_lines": 0, "column": 16, "end_column": 21 }, "wtype": { - "_type": "WGroupTransaction", - "name": "group_transaction_pay", "immutable": true, - "transaction_type": 1 + "transaction_type": 1, + "name": "group_transaction_pay", + "_type": "WGroupTransaction" }, - "name": "funds" + "name": "funds", + "_type": "VarExpression" } - ] + ], + "_type": "IntrinsicCall" }, "operator": "==", "rhs": { - "_type": "IntrinsicCall", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 21, "end_line": 21, + "comment_lines": 0, "column": 16, "end_column": 48 }, "wtype": { - "_type": "WType", "name": "account", - "immutable": true + "immutable": true, + "_type": "WType" }, "op_code": "global", "immediates": [ "CurrentApplicationAddress" ], - "stack_args": [] - } + "stack_args": [], + "_type": "IntrinsicCall" + }, + "_type": "BytesComparisonExpression" }, "error_message": "assert target is match for conditions", - "explicit": true - } + "explicit": true, + "log_error": false, + "_type": "AssertExpression" + }, + "_type": "ExpressionStatement" }, { - "_type": "ExpressionStatement", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 23, - "end_line": 23, - "column": 4, - "end_column": 58 - }, "expr": { - "_type": "AssertExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 23, "end_line": 23, + "comment_lines": 0, "column": 4, "end_column": 58 }, "condition": { - "_type": "ReinterpretCast", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 23, "end_line": 23, + "comment_lines": 0, "column": 4, "end_column": 58 }, "wtype": { - "_type": "WType", "name": "bool", - "immutable": true + "immutable": true, + "_type": "WType" }, "expr": { - "_type": "ArrayLength", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 23, "end_line": 23, + "comment_lines": 0, "column": 11, "end_column": 27 }, "array": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 23, "end_line": 23, + "comment_lines": 0, "column": 11, "end_column": 20 }, "wtype": { - "_type": "ARC4DynamicArray", - "immutable": false, "arc4_alias": null, + "source_location": null, + "immutable": false, "element_type": { - "_type": "ARC4StaticArray", - "immutable": true, "arc4_alias": "address", + "source_location": null, + "immutable": true, "element_type": { - "_type": "ARC4UIntN", "arc4_alias": "byte", - "n": 8 + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "source_location": null, - "array_size": 32 + "array_size": 32, + "_type": "ARC4StaticArray" }, - "source_location": null + "_type": "ARC4DynamicArray" }, - "name": "addresses" - } - } + "name": "addresses", + "_type": "VarExpression" + }, + "_type": "ArrayLength" + }, + "_type": "ReinterpretCast" }, "error_message": "must provide some accounts", - "explicit": true - } + "explicit": true, + "log_error": false, + "_type": "AssertExpression" + }, + "_type": "ExpressionStatement" }, { - "_type": "AssignmentStatement", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 24, "end_line": 24, + "comment_lines": 0, "column": 10, "end_column": 57 }, "target": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 24, "end_line": 24, + "comment_lines": 0, "column": 10, "end_column": 15 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "share" + "name": "share", + "_type": "VarExpression" }, "value": { - "_type": "UInt64BinaryOperation", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 24, "end_line": 24, + "comment_lines": 0, "column": 26, "end_column": 57 }, "left": { - "_type": "IntrinsicCall", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 24, "end_line": 24, + "comment_lines": 0, "column": 26, "end_column": 38 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "op_code": "gtxns", "immediates": [ @@ -1746,6402 +1804,6952 @@ ], "stack_args": [ { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 24, "end_line": 24, + "comment_lines": 0, "column": 26, "end_column": 31 }, "wtype": { - "_type": "WGroupTransaction", - "name": "group_transaction_pay", "immutable": true, - "transaction_type": 1 + "transaction_type": 1, + "name": "group_transaction_pay", + "_type": "WGroupTransaction" }, - "name": "funds" + "name": "funds", + "_type": "VarExpression" } - ] + ], + "_type": "IntrinsicCall" }, "op": "//", "right": { - "_type": "ArrayLength", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 24, "end_line": 24, + "comment_lines": 0, "column": 41, "end_column": 57 }, "array": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 24, "end_line": 24, + "comment_lines": 0, "column": 41, "end_column": 50 }, "wtype": { - "_type": "ARC4DynamicArray", - "immutable": false, "arc4_alias": null, + "source_location": null, + "immutable": false, "element_type": { - "_type": "ARC4StaticArray", - "immutable": true, "arc4_alias": "address", + "source_location": null, + "immutable": true, "element_type": { - "_type": "ARC4UIntN", "arc4_alias": "byte", - "n": 8 + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "source_location": null, - "array_size": 32 + "array_size": 32, + "_type": "ARC4StaticArray" }, - "source_location": null + "_type": "ARC4DynamicArray" }, - "name": "addresses" - } - } - } + "name": "addresses", + "_type": "VarExpression" + }, + "_type": "ArrayLength" + }, + "_type": "UInt64BinaryOperation" + }, + "_type": "AssignmentStatement" }, { - "_type": "AssignmentStatement", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 10, "end_column": 36 }, "target": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 26, + "comment_lines": 0, "column": 10, "end_column": 19 }, "wtype": { - "_type": "ARC4Struct", "name": "Object3BB2638B", - "arc4_alias": null, - "fields": { - "type": { - "_type": "WType", - "name": "uint64", - "immutable": true + "_fields": [ + { + "name": "type", + "wtype": { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + "description": null }, - "amount": { - "_type": "WType", - "name": "uint64", - "immutable": true + { + "name": "amount", + "wtype": { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + "description": null }, - "receiver": { - "_type": "BytesWType", - "length": null + { + "name": "receiver", + "wtype": { + "length": null, + "_type": "BytesWType" + }, + "description": null } - }, - "source_location": null, + ], "frozen": false, - "desc": null + "source_location": null, + "desc": null, + "_type": "ARC4Struct" }, - "name": "payFields" + "name": "payFields", + "_type": "VarExpression" }, "value": { - "_type": "NewStruct", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, "wtype": { - "_type": "ARC4Struct", "name": "Object3BB2638B", - "arc4_alias": null, - "fields": { - "type": { - "_type": "WType", - "name": "uint64", - "immutable": true + "_fields": [ + { + "name": "type", + "wtype": { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + "description": null }, - "amount": { - "_type": "WType", - "name": "uint64", - "immutable": true + { + "name": "amount", + "wtype": { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + "description": null }, - "receiver": { - "_type": "BytesWType", - "length": null + { + "name": "receiver", + "wtype": { + "length": null, + "_type": "BytesWType" + }, + "description": null } - }, - "source_location": null, + ], "frozen": false, - "desc": null + "source_location": null, + "desc": null, + "_type": "ARC4Struct" }, "values": { "type": { - "_type": "FieldExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, "source": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, - "wtype": { - "_type": "WTuple", - "name": "{type:TransactionType,amount:uint64,receiver:bytes}", - "types": [ - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "BytesWType", - "length": null - } - ], - "names": [ - "type", - "amount", - "receiver" - ] - }, "items": [ { - "_type": "FieldExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, "source": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, - "wtype": { - "_type": "WTuple", - "name": "{type:TransactionType,amount:uint64,receiver:bytes}", - "types": [ - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "BytesWType", - "length": null - } - ], - "names": [ - "type", - "amount", - "receiver" - ] - }, "items": [ { - "_type": "TupleItemExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 12, "end_column": 35 }, "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, "source": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "BytesWType", - "length": null - } - ] - }, "items": [ { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 12, "end_column": 35 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 1, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" }, { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 28, "end_line": 28, + "comment_lines": 0, "column": 14, "end_column": 19 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "share" + "name": "share", + "_type": "VarExpression" }, { - "_type": "ReinterpretCast", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 34 }, "wtype": { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, "expr": { - "_type": "IndexExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 28 }, - "wtype": { - "_type": "ARC4StaticArray", - "immutable": true, - "arc4_alias": "address", - "element_type": { - "_type": "ARC4UIntN", - "arc4_alias": "byte", - "n": 8 - }, - "source_location": null, - "array_size": 32 - }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 25 }, "wtype": { - "_type": "ARC4DynamicArray", - "immutable": false, "arc4_alias": null, + "source_location": null, + "immutable": false, "element_type": { - "_type": "ARC4StaticArray", - "immutable": true, "arc4_alias": "address", + "source_location": null, + "immutable": true, "element_type": { - "_type": "ARC4UIntN", "arc4_alias": "byte", - "n": 8 + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "source_location": null, - "array_size": 32 + "array_size": 32, + "_type": "ARC4StaticArray" }, - "source_location": null + "_type": "ARC4DynamicArray" }, - "name": "addresses" + "name": "addresses", + "_type": "VarExpression" }, "index": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 26, "end_column": 27 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 0, - "teal_alias": null - } - } + "teal_alias": null, + "_type": "IntegerConstant" + }, + "wtype": { + "arc4_alias": "address", + "source_location": null, + "immutable": true, + "element_type": { + "arc4_alias": "byte", + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "array_size": 32, + "_type": "ARC4StaticArray" + }, + "_type": "IndexExpression" + }, + "_type": "ReinterpretCast" } - ] + ], + "wtype": { + "types": [ + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "length": null, + "_type": "BytesWType" + } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + "_id": 2, + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 }, - "_id": "2" + "_type": "SingleEvaluation" }, - "index": 0 + "index": 0, + "_type": "TupleItemExpression" }, { - "_type": "TupleItemExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 28, "end_line": 28, + "comment_lines": 0, "column": 14, "end_column": 19 }, "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, "source": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "BytesWType", - "length": null - } - ] - }, "items": [ { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 12, "end_column": 35 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 1, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" }, { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 28, "end_line": 28, + "comment_lines": 0, "column": 14, "end_column": 19 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "share" + "name": "share", + "_type": "VarExpression" }, { - "_type": "ReinterpretCast", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 34 }, "wtype": { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, "expr": { - "_type": "IndexExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 28 }, - "wtype": { - "_type": "ARC4StaticArray", - "immutable": true, - "arc4_alias": "address", - "element_type": { - "_type": "ARC4UIntN", - "arc4_alias": "byte", - "n": 8 - }, - "source_location": null, - "array_size": 32 - }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 25 }, "wtype": { - "_type": "ARC4DynamicArray", - "immutable": false, "arc4_alias": null, + "source_location": null, + "immutable": false, "element_type": { - "_type": "ARC4StaticArray", - "immutable": true, "arc4_alias": "address", + "source_location": null, + "immutable": true, "element_type": { - "_type": "ARC4UIntN", "arc4_alias": "byte", - "n": 8 + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "source_location": null, - "array_size": 32 + "array_size": 32, + "_type": "ARC4StaticArray" }, - "source_location": null + "_type": "ARC4DynamicArray" }, - "name": "addresses" + "name": "addresses", + "_type": "VarExpression" }, "index": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 26, "end_column": 27 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 0, - "teal_alias": null - } - } + "teal_alias": null, + "_type": "IntegerConstant" + }, + "wtype": { + "arc4_alias": "address", + "source_location": null, + "immutable": true, + "element_type": { + "arc4_alias": "byte", + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "array_size": 32, + "_type": "ARC4StaticArray" + }, + "_type": "IndexExpression" + }, + "_type": "ReinterpretCast" } - ] + ], + "wtype": { + "types": [ + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "length": null, + "_type": "BytesWType" + } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + "_id": 2, + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 }, - "_id": "2" + "_type": "SingleEvaluation" }, - "index": 1 + "index": 1, + "_type": "TupleItemExpression" }, { - "_type": "TupleItemExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 34 }, "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, "source": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "BytesWType", - "length": null - } - ] - }, "items": [ { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 12, "end_column": 35 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 1, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" }, { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 28, "end_line": 28, + "comment_lines": 0, "column": 14, "end_column": 19 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "share" + "name": "share", + "_type": "VarExpression" }, { - "_type": "ReinterpretCast", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 34 }, "wtype": { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, "expr": { - "_type": "IndexExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 28 }, - "wtype": { - "_type": "ARC4StaticArray", - "immutable": true, - "arc4_alias": "address", - "element_type": { - "_type": "ARC4UIntN", - "arc4_alias": "byte", - "n": 8 - }, - "source_location": null, - "array_size": 32 - }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 25 }, "wtype": { - "_type": "ARC4DynamicArray", - "immutable": false, "arc4_alias": null, + "source_location": null, + "immutable": false, "element_type": { - "_type": "ARC4StaticArray", - "immutable": true, "arc4_alias": "address", + "source_location": null, + "immutable": true, "element_type": { - "_type": "ARC4UIntN", "arc4_alias": "byte", - "n": 8 + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "source_location": null, - "array_size": 32 + "array_size": 32, + "_type": "ARC4StaticArray" }, - "source_location": null + "_type": "ARC4DynamicArray" }, - "name": "addresses" + "name": "addresses", + "_type": "VarExpression" }, "index": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 26, "end_column": 27 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 0, - "teal_alias": null - } - } - } - ] - }, - "_id": "2" - }, - "index": 2 - } - ] - }, - "_id": "1" - }, - "name": "type" - }, - { - "_type": "FieldExpression", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, - "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, - "source": { - "_type": "TupleExpression", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, + "teal_alias": null, + "_type": "IntegerConstant" + }, + "wtype": { + "arc4_alias": "address", + "source_location": null, + "immutable": true, + "element_type": { + "arc4_alias": "byte", + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "array_size": 32, + "_type": "ARC4StaticArray" + }, + "_type": "IndexExpression" + }, + "_type": "ReinterpretCast" + } + ], + "wtype": { + "types": [ + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "length": null, + "_type": "BytesWType" + } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + "_id": 2, + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 + }, + "_type": "SingleEvaluation" + }, + "index": 2, + "_type": "TupleItemExpression" + } + ], "wtype": { - "_type": "WTuple", - "name": "{type:TransactionType,amount:uint64,receiver:bytes}", "types": [ { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" } ], + "source_location": null, + "name": "{type:TransactionType,amount:uint64,receiver:bytes}", "names": [ "type", "amount", "receiver" - ] + ], + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + "_id": 1, + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 + }, + "_type": "SingleEvaluation" + }, + "name": "type", + "_type": "FieldExpression" + }, + { + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 + }, + "base": { + "source": { + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 }, "items": [ { - "_type": "TupleItemExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 12, "end_column": 35 }, "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, "source": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "BytesWType", - "length": null - } - ] - }, "items": [ { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 12, "end_column": 35 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 1, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" }, { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 28, "end_line": 28, + "comment_lines": 0, "column": 14, "end_column": 19 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "share" + "name": "share", + "_type": "VarExpression" }, { - "_type": "ReinterpretCast", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 34 }, "wtype": { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, "expr": { - "_type": "IndexExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 28 }, - "wtype": { - "_type": "ARC4StaticArray", - "immutable": true, - "arc4_alias": "address", - "element_type": { - "_type": "ARC4UIntN", - "arc4_alias": "byte", - "n": 8 - }, - "source_location": null, - "array_size": 32 - }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 25 }, "wtype": { - "_type": "ARC4DynamicArray", - "immutable": false, "arc4_alias": null, + "source_location": null, + "immutable": false, "element_type": { - "_type": "ARC4StaticArray", - "immutable": true, "arc4_alias": "address", + "source_location": null, + "immutable": true, "element_type": { - "_type": "ARC4UIntN", "arc4_alias": "byte", - "n": 8 + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "source_location": null, - "array_size": 32 + "array_size": 32, + "_type": "ARC4StaticArray" }, - "source_location": null + "_type": "ARC4DynamicArray" }, - "name": "addresses" + "name": "addresses", + "_type": "VarExpression" }, "index": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 26, "end_column": 27 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 0, - "teal_alias": null - } - } + "teal_alias": null, + "_type": "IntegerConstant" + }, + "wtype": { + "arc4_alias": "address", + "source_location": null, + "immutable": true, + "element_type": { + "arc4_alias": "byte", + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "array_size": 32, + "_type": "ARC4StaticArray" + }, + "_type": "IndexExpression" + }, + "_type": "ReinterpretCast" } - ] + ], + "wtype": { + "types": [ + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "length": null, + "_type": "BytesWType" + } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + "_id": 2, + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 }, - "_id": "2" + "_type": "SingleEvaluation" }, - "index": 0 + "index": 0, + "_type": "TupleItemExpression" }, { - "_type": "TupleItemExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 28, "end_line": 28, + "comment_lines": 0, "column": 14, "end_column": 19 }, "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, "source": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "BytesWType", - "length": null - } - ] - }, "items": [ { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 12, "end_column": 35 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 1, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" }, { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 28, "end_line": 28, + "comment_lines": 0, "column": 14, "end_column": 19 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "share" + "name": "share", + "_type": "VarExpression" }, { - "_type": "ReinterpretCast", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 34 }, "wtype": { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, "expr": { - "_type": "IndexExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 28 }, - "wtype": { - "_type": "ARC4StaticArray", - "immutable": true, - "arc4_alias": "address", - "element_type": { - "_type": "ARC4UIntN", - "arc4_alias": "byte", - "n": 8 - }, - "source_location": null, - "array_size": 32 - }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 25 }, "wtype": { - "_type": "ARC4DynamicArray", - "immutable": false, "arc4_alias": null, + "source_location": null, + "immutable": false, "element_type": { - "_type": "ARC4StaticArray", - "immutable": true, "arc4_alias": "address", + "source_location": null, + "immutable": true, "element_type": { - "_type": "ARC4UIntN", "arc4_alias": "byte", - "n": 8 + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "source_location": null, - "array_size": 32 + "array_size": 32, + "_type": "ARC4StaticArray" }, - "source_location": null + "_type": "ARC4DynamicArray" }, - "name": "addresses" + "name": "addresses", + "_type": "VarExpression" }, "index": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 26, "end_column": 27 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 0, - "teal_alias": null - } - } + "teal_alias": null, + "_type": "IntegerConstant" + }, + "wtype": { + "arc4_alias": "address", + "source_location": null, + "immutable": true, + "element_type": { + "arc4_alias": "byte", + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "array_size": 32, + "_type": "ARC4StaticArray" + }, + "_type": "IndexExpression" + }, + "_type": "ReinterpretCast" } - ] + ], + "wtype": { + "types": [ + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "length": null, + "_type": "BytesWType" + } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" }, - "_id": "2" + "_id": 2, + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 + }, + "_type": "SingleEvaluation" }, - "index": 1 + "index": 1, + "_type": "TupleItemExpression" }, { - "_type": "TupleItemExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 34 }, "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, "source": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "BytesWType", - "length": null - } - ] - }, "items": [ { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 12, "end_column": 35 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 1, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" }, { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 28, "end_line": 28, + "comment_lines": 0, "column": 14, "end_column": 19 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "share" + "name": "share", + "_type": "VarExpression" }, { - "_type": "ReinterpretCast", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 34 }, "wtype": { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, "expr": { - "_type": "IndexExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 28 }, - "wtype": { - "_type": "ARC4StaticArray", - "immutable": true, - "arc4_alias": "address", - "element_type": { - "_type": "ARC4UIntN", - "arc4_alias": "byte", - "n": 8 - }, - "source_location": null, - "array_size": 32 - }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 25 }, "wtype": { - "_type": "ARC4DynamicArray", - "immutable": false, "arc4_alias": null, + "source_location": null, + "immutable": false, "element_type": { - "_type": "ARC4StaticArray", - "immutable": true, "arc4_alias": "address", + "source_location": null, + "immutable": true, "element_type": { - "_type": "ARC4UIntN", "arc4_alias": "byte", - "n": 8 + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "source_location": null, - "array_size": 32 + "array_size": 32, + "_type": "ARC4StaticArray" }, - "source_location": null + "_type": "ARC4DynamicArray" }, - "name": "addresses" + "name": "addresses", + "_type": "VarExpression" }, "index": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 26, "end_column": 27 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 0, - "teal_alias": null - } - } + "teal_alias": null, + "_type": "IntegerConstant" + }, + "wtype": { + "arc4_alias": "address", + "source_location": null, + "immutable": true, + "element_type": { + "arc4_alias": "byte", + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "array_size": 32, + "_type": "ARC4StaticArray" + }, + "_type": "IndexExpression" + }, + "_type": "ReinterpretCast" } - ] + ], + "wtype": { + "types": [ + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "length": null, + "_type": "BytesWType" + } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + "_id": 2, + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 }, - "_id": "2" + "_type": "SingleEvaluation" }, - "index": 2 + "index": 2, + "_type": "TupleItemExpression" } - ] + ], + "wtype": { + "types": [ + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "length": null, + "_type": "BytesWType" + } + ], + "source_location": null, + "name": "{type:TransactionType,amount:uint64,receiver:bytes}", + "names": [ + "type", + "amount", + "receiver" + ], + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + "_id": 1, + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 }, - "_id": "1" + "_type": "SingleEvaluation" }, - "name": "amount" + "name": "amount", + "_type": "FieldExpression" }, { - "_type": "FieldExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, "source": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, - "wtype": { - "_type": "WTuple", - "name": "{type:TransactionType,amount:uint64,receiver:bytes}", - "types": [ - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "BytesWType", - "length": null - } - ], - "names": [ - "type", - "amount", - "receiver" - ] - }, "items": [ { - "_type": "TupleItemExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 12, "end_column": 35 }, "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, "source": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "BytesWType", - "length": null - } - ] - }, "items": [ { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 12, "end_column": 35 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 1, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" }, { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 28, "end_line": 28, + "comment_lines": 0, "column": 14, "end_column": 19 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "share" + "name": "share", + "_type": "VarExpression" }, { - "_type": "ReinterpretCast", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 34 }, "wtype": { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, "expr": { - "_type": "IndexExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 28 }, - "wtype": { - "_type": "ARC4StaticArray", - "immutable": true, - "arc4_alias": "address", - "element_type": { - "_type": "ARC4UIntN", - "arc4_alias": "byte", - "n": 8 - }, - "source_location": null, - "array_size": 32 - }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 25 }, "wtype": { - "_type": "ARC4DynamicArray", - "immutable": false, "arc4_alias": null, + "source_location": null, + "immutable": false, "element_type": { - "_type": "ARC4StaticArray", - "immutable": true, "arc4_alias": "address", + "source_location": null, + "immutable": true, "element_type": { - "_type": "ARC4UIntN", "arc4_alias": "byte", - "n": 8 + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "source_location": null, - "array_size": 32 + "array_size": 32, + "_type": "ARC4StaticArray" }, - "source_location": null + "_type": "ARC4DynamicArray" }, - "name": "addresses" + "name": "addresses", + "_type": "VarExpression" }, "index": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 26, "end_column": 27 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 0, - "teal_alias": null - } - } + "teal_alias": null, + "_type": "IntegerConstant" + }, + "wtype": { + "arc4_alias": "address", + "source_location": null, + "immutable": true, + "element_type": { + "arc4_alias": "byte", + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "array_size": 32, + "_type": "ARC4StaticArray" + }, + "_type": "IndexExpression" + }, + "_type": "ReinterpretCast" } - ] + ], + "wtype": { + "types": [ + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "length": null, + "_type": "BytesWType" + } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + "_id": 2, + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 }, - "_id": "2" + "_type": "SingleEvaluation" }, - "index": 0 + "index": 0, + "_type": "TupleItemExpression" }, { - "_type": "TupleItemExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 28, "end_line": 28, + "comment_lines": 0, "column": 14, "end_column": 19 }, "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, "source": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "BytesWType", - "length": null - } - ] - }, "items": [ { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 12, "end_column": 35 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 1, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" }, { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 28, "end_line": 28, + "comment_lines": 0, "column": 14, "end_column": 19 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "share" + "name": "share", + "_type": "VarExpression" }, { - "_type": "ReinterpretCast", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 34 }, "wtype": { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, "expr": { - "_type": "IndexExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 28 }, - "wtype": { - "_type": "ARC4StaticArray", - "immutable": true, - "arc4_alias": "address", - "element_type": { - "_type": "ARC4UIntN", - "arc4_alias": "byte", - "n": 8 - }, - "source_location": null, - "array_size": 32 - }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 25 }, "wtype": { - "_type": "ARC4DynamicArray", - "immutable": false, "arc4_alias": null, + "source_location": null, + "immutable": false, "element_type": { - "_type": "ARC4StaticArray", - "immutable": true, "arc4_alias": "address", + "source_location": null, + "immutable": true, "element_type": { - "_type": "ARC4UIntN", "arc4_alias": "byte", - "n": 8 + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "source_location": null, - "array_size": 32 + "array_size": 32, + "_type": "ARC4StaticArray" }, - "source_location": null + "_type": "ARC4DynamicArray" }, - "name": "addresses" + "name": "addresses", + "_type": "VarExpression" }, "index": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 26, "end_column": 27 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 0, - "teal_alias": null - } - } + "teal_alias": null, + "_type": "IntegerConstant" + }, + "wtype": { + "arc4_alias": "address", + "source_location": null, + "immutable": true, + "element_type": { + "arc4_alias": "byte", + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "array_size": 32, + "_type": "ARC4StaticArray" + }, + "_type": "IndexExpression" + }, + "_type": "ReinterpretCast" } - ] + ], + "wtype": { + "types": [ + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "length": null, + "_type": "BytesWType" + } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + "_id": 2, + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 }, - "_id": "2" + "_type": "SingleEvaluation" }, - "index": 1 + "index": 1, + "_type": "TupleItemExpression" }, { - "_type": "TupleItemExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 34 }, "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, "source": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "BytesWType", - "length": null - } - ] - }, "items": [ { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 12, "end_column": 35 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 1, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" }, { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 28, "end_line": 28, + "comment_lines": 0, "column": 14, "end_column": 19 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "share" + "name": "share", + "_type": "VarExpression" }, { - "_type": "ReinterpretCast", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 34 }, "wtype": { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, "expr": { - "_type": "IndexExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 28 }, - "wtype": { - "_type": "ARC4StaticArray", - "immutable": true, - "arc4_alias": "address", - "element_type": { - "_type": "ARC4UIntN", - "arc4_alias": "byte", - "n": 8 - }, - "source_location": null, - "array_size": 32 - }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 25 }, "wtype": { - "_type": "ARC4DynamicArray", - "immutable": false, "arc4_alias": null, + "source_location": null, + "immutable": false, "element_type": { - "_type": "ARC4StaticArray", - "immutable": true, "arc4_alias": "address", + "source_location": null, + "immutable": true, "element_type": { - "_type": "ARC4UIntN", "arc4_alias": "byte", - "n": 8 + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "source_location": null, - "array_size": 32 + "array_size": 32, + "_type": "ARC4StaticArray" }, - "source_location": null + "_type": "ARC4DynamicArray" }, - "name": "addresses" + "name": "addresses", + "_type": "VarExpression" }, "index": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 26, "end_column": 27 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 0, - "teal_alias": null - } - } + "teal_alias": null, + "_type": "IntegerConstant" + }, + "wtype": { + "arc4_alias": "address", + "source_location": null, + "immutable": true, + "element_type": { + "arc4_alias": "byte", + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "array_size": 32, + "_type": "ARC4StaticArray" + }, + "_type": "IndexExpression" + }, + "_type": "ReinterpretCast" } - ] + ], + "wtype": { + "types": [ + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "length": null, + "_type": "BytesWType" + } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + "_id": 2, + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 }, - "_id": "2" + "_type": "SingleEvaluation" }, - "index": 2 + "index": 2, + "_type": "TupleItemExpression" } - ] + ], + "wtype": { + "types": [ + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "length": null, + "_type": "BytesWType" + } + ], + "source_location": null, + "name": "{type:TransactionType,amount:uint64,receiver:bytes}", + "names": [ + "type", + "amount", + "receiver" + ], + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + "_id": 1, + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 }, - "_id": "1" + "_type": "SingleEvaluation" }, - "name": "receiver" + "name": "receiver", + "_type": "FieldExpression" } - ] + ], + "wtype": { + "types": [ + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "length": null, + "_type": "BytesWType" + } + ], + "source_location": null, + "name": "{type:TransactionType,amount:uint64,receiver:bytes}", + "names": [ + "type", + "amount", + "receiver" + ], + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + "_id": 0, + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 }, - "_id": "0" + "_type": "SingleEvaluation" }, - "name": "type" + "name": "type", + "_type": "FieldExpression" }, "amount": { - "_type": "FieldExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, "source": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, - "wtype": { - "_type": "WTuple", - "name": "{type:TransactionType,amount:uint64,receiver:bytes}", - "types": [ - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "BytesWType", - "length": null - } - ], - "names": [ - "type", - "amount", - "receiver" - ] - }, "items": [ { - "_type": "FieldExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, "source": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, - "wtype": { - "_type": "WTuple", - "name": "{type:TransactionType,amount:uint64,receiver:bytes}", - "types": [ - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "BytesWType", - "length": null - } - ], - "names": [ - "type", - "amount", - "receiver" - ] - }, "items": [ { - "_type": "TupleItemExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 12, "end_column": 35 }, "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, "source": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "BytesWType", - "length": null - } - ] - }, "items": [ { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 12, "end_column": 35 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 1, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" }, { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 28, "end_line": 28, + "comment_lines": 0, "column": 14, "end_column": 19 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "share" + "name": "share", + "_type": "VarExpression" }, { - "_type": "ReinterpretCast", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 34 }, "wtype": { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, "expr": { - "_type": "IndexExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 28 }, - "wtype": { - "_type": "ARC4StaticArray", - "immutable": true, - "arc4_alias": "address", - "element_type": { - "_type": "ARC4UIntN", - "arc4_alias": "byte", - "n": 8 - }, - "source_location": null, - "array_size": 32 - }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 25 }, "wtype": { - "_type": "ARC4DynamicArray", - "immutable": false, "arc4_alias": null, + "source_location": null, + "immutable": false, "element_type": { - "_type": "ARC4StaticArray", - "immutable": true, "arc4_alias": "address", + "source_location": null, + "immutable": true, "element_type": { - "_type": "ARC4UIntN", "arc4_alias": "byte", - "n": 8 + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "source_location": null, - "array_size": 32 + "array_size": 32, + "_type": "ARC4StaticArray" }, - "source_location": null + "_type": "ARC4DynamicArray" }, - "name": "addresses" + "name": "addresses", + "_type": "VarExpression" }, "index": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 26, "end_column": 27 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 0, - "teal_alias": null - } - } + "teal_alias": null, + "_type": "IntegerConstant" + }, + "wtype": { + "arc4_alias": "address", + "source_location": null, + "immutable": true, + "element_type": { + "arc4_alias": "byte", + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "array_size": 32, + "_type": "ARC4StaticArray" + }, + "_type": "IndexExpression" + }, + "_type": "ReinterpretCast" } - ] + ], + "wtype": { + "types": [ + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "length": null, + "_type": "BytesWType" + } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + "_id": 2, + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 }, - "_id": "2" + "_type": "SingleEvaluation" }, - "index": 0 + "index": 0, + "_type": "TupleItemExpression" }, { - "_type": "TupleItemExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 28, "end_line": 28, + "comment_lines": 0, "column": 14, "end_column": 19 }, "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, "source": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "BytesWType", - "length": null - } - ] - }, "items": [ { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 12, "end_column": 35 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 1, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" }, { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 28, "end_line": 28, + "comment_lines": 0, "column": 14, "end_column": 19 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "share" + "name": "share", + "_type": "VarExpression" }, { - "_type": "ReinterpretCast", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 34 }, "wtype": { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, "expr": { - "_type": "IndexExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 28 }, - "wtype": { - "_type": "ARC4StaticArray", - "immutable": true, - "arc4_alias": "address", - "element_type": { - "_type": "ARC4UIntN", - "arc4_alias": "byte", - "n": 8 - }, - "source_location": null, - "array_size": 32 - }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 25 }, "wtype": { - "_type": "ARC4DynamicArray", - "immutable": false, "arc4_alias": null, + "source_location": null, + "immutable": false, "element_type": { - "_type": "ARC4StaticArray", - "immutable": true, "arc4_alias": "address", + "source_location": null, + "immutable": true, "element_type": { - "_type": "ARC4UIntN", "arc4_alias": "byte", - "n": 8 + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "source_location": null, - "array_size": 32 + "array_size": 32, + "_type": "ARC4StaticArray" }, - "source_location": null + "_type": "ARC4DynamicArray" }, - "name": "addresses" + "name": "addresses", + "_type": "VarExpression" }, "index": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 26, "end_column": 27 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 0, - "teal_alias": null - } - } + "teal_alias": null, + "_type": "IntegerConstant" + }, + "wtype": { + "arc4_alias": "address", + "source_location": null, + "immutable": true, + "element_type": { + "arc4_alias": "byte", + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "array_size": 32, + "_type": "ARC4StaticArray" + }, + "_type": "IndexExpression" + }, + "_type": "ReinterpretCast" } - ] + ], + "wtype": { + "types": [ + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "length": null, + "_type": "BytesWType" + } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + "_id": 2, + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 }, - "_id": "2" + "_type": "SingleEvaluation" }, - "index": 1 + "index": 1, + "_type": "TupleItemExpression" }, { - "_type": "TupleItemExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 34 }, "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, "source": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "BytesWType", - "length": null - } - ] - }, "items": [ { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 12, "end_column": 35 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 1, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" }, { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 28, "end_line": 28, + "comment_lines": 0, "column": 14, "end_column": 19 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "share" + "name": "share", + "_type": "VarExpression" }, { - "_type": "ReinterpretCast", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 34 }, "wtype": { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, "expr": { - "_type": "IndexExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 28 }, - "wtype": { - "_type": "ARC4StaticArray", - "immutable": true, - "arc4_alias": "address", - "element_type": { - "_type": "ARC4UIntN", - "arc4_alias": "byte", - "n": 8 - }, - "source_location": null, - "array_size": 32 - }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 25 }, "wtype": { - "_type": "ARC4DynamicArray", - "immutable": false, "arc4_alias": null, + "source_location": null, + "immutable": false, "element_type": { - "_type": "ARC4StaticArray", - "immutable": true, "arc4_alias": "address", + "source_location": null, + "immutable": true, "element_type": { - "_type": "ARC4UIntN", "arc4_alias": "byte", - "n": 8 + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "source_location": null, - "array_size": 32 + "array_size": 32, + "_type": "ARC4StaticArray" }, - "source_location": null + "_type": "ARC4DynamicArray" }, - "name": "addresses" + "name": "addresses", + "_type": "VarExpression" }, "index": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 26, "end_column": 27 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 0, - "teal_alias": null - } - } + "teal_alias": null, + "_type": "IntegerConstant" + }, + "wtype": { + "arc4_alias": "address", + "source_location": null, + "immutable": true, + "element_type": { + "arc4_alias": "byte", + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "array_size": 32, + "_type": "ARC4StaticArray" + }, + "_type": "IndexExpression" + }, + "_type": "ReinterpretCast" } - ] + ], + "wtype": { + "types": [ + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "length": null, + "_type": "BytesWType" + } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + "_id": 2, + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 }, - "_id": "2" + "_type": "SingleEvaluation" }, - "index": 2 + "index": 2, + "_type": "TupleItemExpression" } - ] + ], + "wtype": { + "types": [ + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "length": null, + "_type": "BytesWType" + } + ], + "source_location": null, + "name": "{type:TransactionType,amount:uint64,receiver:bytes}", + "names": [ + "type", + "amount", + "receiver" + ], + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" }, - "_id": "1" + "_id": 1, + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 + }, + "_type": "SingleEvaluation" }, - "name": "type" + "name": "type", + "_type": "FieldExpression" }, { - "_type": "FieldExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, "source": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, - "wtype": { - "_type": "WTuple", - "name": "{type:TransactionType,amount:uint64,receiver:bytes}", - "types": [ - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "BytesWType", - "length": null - } - ], - "names": [ - "type", - "amount", - "receiver" - ] - }, "items": [ { - "_type": "TupleItemExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 12, "end_column": 35 }, "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, "source": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "BytesWType", - "length": null - } - ] - }, "items": [ { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 12, "end_column": 35 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 1, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" }, { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 28, "end_line": 28, + "comment_lines": 0, "column": 14, "end_column": 19 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "share" + "name": "share", + "_type": "VarExpression" }, { - "_type": "ReinterpretCast", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 34 }, "wtype": { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, "expr": { - "_type": "IndexExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 28 }, - "wtype": { - "_type": "ARC4StaticArray", - "immutable": true, - "arc4_alias": "address", - "element_type": { - "_type": "ARC4UIntN", - "arc4_alias": "byte", - "n": 8 - }, - "source_location": null, - "array_size": 32 - }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 25 }, "wtype": { - "_type": "ARC4DynamicArray", - "immutable": false, "arc4_alias": null, + "source_location": null, + "immutable": false, "element_type": { - "_type": "ARC4StaticArray", - "immutable": true, "arc4_alias": "address", + "source_location": null, + "immutable": true, "element_type": { - "_type": "ARC4UIntN", "arc4_alias": "byte", - "n": 8 + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "source_location": null, - "array_size": 32 + "array_size": 32, + "_type": "ARC4StaticArray" }, - "source_location": null + "_type": "ARC4DynamicArray" }, - "name": "addresses" + "name": "addresses", + "_type": "VarExpression" }, "index": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 26, "end_column": 27 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 0, - "teal_alias": null - } - } + "teal_alias": null, + "_type": "IntegerConstant" + }, + "wtype": { + "arc4_alias": "address", + "source_location": null, + "immutable": true, + "element_type": { + "arc4_alias": "byte", + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "array_size": 32, + "_type": "ARC4StaticArray" + }, + "_type": "IndexExpression" + }, + "_type": "ReinterpretCast" } - ] + ], + "wtype": { + "types": [ + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "length": null, + "_type": "BytesWType" + } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + "_id": 2, + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 }, - "_id": "2" + "_type": "SingleEvaluation" }, - "index": 0 + "index": 0, + "_type": "TupleItemExpression" }, { - "_type": "TupleItemExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 28, "end_line": 28, + "comment_lines": 0, "column": 14, "end_column": 19 }, "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, "source": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "BytesWType", - "length": null - } - ] - }, "items": [ { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 12, "end_column": 35 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 1, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" }, { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 28, "end_line": 28, + "comment_lines": 0, "column": 14, "end_column": 19 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "share" + "name": "share", + "_type": "VarExpression" }, { - "_type": "ReinterpretCast", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 34 }, "wtype": { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, "expr": { - "_type": "IndexExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 28 }, - "wtype": { - "_type": "ARC4StaticArray", - "immutable": true, - "arc4_alias": "address", - "element_type": { - "_type": "ARC4UIntN", - "arc4_alias": "byte", - "n": 8 - }, - "source_location": null, - "array_size": 32 - }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 25 }, "wtype": { - "_type": "ARC4DynamicArray", - "immutable": false, "arc4_alias": null, + "source_location": null, + "immutable": false, "element_type": { - "_type": "ARC4StaticArray", - "immutable": true, "arc4_alias": "address", + "source_location": null, + "immutable": true, "element_type": { - "_type": "ARC4UIntN", "arc4_alias": "byte", - "n": 8 + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "source_location": null, - "array_size": 32 + "array_size": 32, + "_type": "ARC4StaticArray" }, - "source_location": null + "_type": "ARC4DynamicArray" }, - "name": "addresses" + "name": "addresses", + "_type": "VarExpression" }, "index": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 26, "end_column": 27 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 0, - "teal_alias": null - } - } + "teal_alias": null, + "_type": "IntegerConstant" + }, + "wtype": { + "arc4_alias": "address", + "source_location": null, + "immutable": true, + "element_type": { + "arc4_alias": "byte", + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "array_size": 32, + "_type": "ARC4StaticArray" + }, + "_type": "IndexExpression" + }, + "_type": "ReinterpretCast" } - ] + ], + "wtype": { + "types": [ + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "length": null, + "_type": "BytesWType" + } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + "_id": 2, + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 }, - "_id": "2" + "_type": "SingleEvaluation" }, - "index": 1 + "index": 1, + "_type": "TupleItemExpression" }, { - "_type": "TupleItemExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 34 }, "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, "source": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "BytesWType", - "length": null - } - ] - }, "items": [ { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 12, "end_column": 35 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 1, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" }, { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 28, "end_line": 28, + "comment_lines": 0, "column": 14, "end_column": 19 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "share" + "name": "share", + "_type": "VarExpression" }, { - "_type": "ReinterpretCast", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 34 }, "wtype": { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, "expr": { - "_type": "IndexExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 28 }, - "wtype": { - "_type": "ARC4StaticArray", - "immutable": true, - "arc4_alias": "address", - "element_type": { - "_type": "ARC4UIntN", - "arc4_alias": "byte", - "n": 8 - }, - "source_location": null, - "array_size": 32 - }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 25 }, "wtype": { - "_type": "ARC4DynamicArray", - "immutable": false, "arc4_alias": null, + "source_location": null, + "immutable": false, "element_type": { - "_type": "ARC4StaticArray", - "immutable": true, "arc4_alias": "address", + "source_location": null, + "immutable": true, "element_type": { - "_type": "ARC4UIntN", "arc4_alias": "byte", - "n": 8 + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "source_location": null, - "array_size": 32 + "array_size": 32, + "_type": "ARC4StaticArray" }, - "source_location": null + "_type": "ARC4DynamicArray" }, - "name": "addresses" + "name": "addresses", + "_type": "VarExpression" }, "index": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 26, "end_column": 27 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 0, - "teal_alias": null - } - } + "teal_alias": null, + "_type": "IntegerConstant" + }, + "wtype": { + "arc4_alias": "address", + "source_location": null, + "immutable": true, + "element_type": { + "arc4_alias": "byte", + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "array_size": 32, + "_type": "ARC4StaticArray" + }, + "_type": "IndexExpression" + }, + "_type": "ReinterpretCast" } - ] + ], + "wtype": { + "types": [ + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "length": null, + "_type": "BytesWType" + } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + "_id": 2, + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 }, - "_id": "2" + "_type": "SingleEvaluation" }, - "index": 2 + "index": 2, + "_type": "TupleItemExpression" } - ] + ], + "wtype": { + "types": [ + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "length": null, + "_type": "BytesWType" + } + ], + "source_location": null, + "name": "{type:TransactionType,amount:uint64,receiver:bytes}", + "names": [ + "type", + "amount", + "receiver" + ], + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + "_id": 1, + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 }, - "_id": "1" + "_type": "SingleEvaluation" }, - "name": "amount" + "name": "amount", + "_type": "FieldExpression" }, { - "_type": "FieldExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, "source": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, - "wtype": { - "_type": "WTuple", - "name": "{type:TransactionType,amount:uint64,receiver:bytes}", - "types": [ - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "BytesWType", - "length": null - } - ], - "names": [ - "type", - "amount", - "receiver" - ] - }, "items": [ { - "_type": "TupleItemExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 12, "end_column": 35 }, "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, "source": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "BytesWType", - "length": null - } - ] - }, "items": [ { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 12, "end_column": 35 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 1, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" }, { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 28, "end_line": 28, + "comment_lines": 0, "column": 14, "end_column": 19 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "share" + "name": "share", + "_type": "VarExpression" }, { - "_type": "ReinterpretCast", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 34 }, "wtype": { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, "expr": { - "_type": "IndexExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 28 }, - "wtype": { - "_type": "ARC4StaticArray", - "immutable": true, - "arc4_alias": "address", - "element_type": { - "_type": "ARC4UIntN", - "arc4_alias": "byte", - "n": 8 - }, - "source_location": null, - "array_size": 32 - }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 25 }, "wtype": { - "_type": "ARC4DynamicArray", - "immutable": false, "arc4_alias": null, + "source_location": null, + "immutable": false, "element_type": { - "_type": "ARC4StaticArray", - "immutable": true, "arc4_alias": "address", + "source_location": null, + "immutable": true, "element_type": { - "_type": "ARC4UIntN", "arc4_alias": "byte", - "n": 8 + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "source_location": null, - "array_size": 32 + "array_size": 32, + "_type": "ARC4StaticArray" }, - "source_location": null + "_type": "ARC4DynamicArray" }, - "name": "addresses" + "name": "addresses", + "_type": "VarExpression" }, "index": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 26, "end_column": 27 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 0, - "teal_alias": null - } - } + "teal_alias": null, + "_type": "IntegerConstant" + }, + "wtype": { + "arc4_alias": "address", + "source_location": null, + "immutable": true, + "element_type": { + "arc4_alias": "byte", + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "array_size": 32, + "_type": "ARC4StaticArray" + }, + "_type": "IndexExpression" + }, + "_type": "ReinterpretCast" } - ] + ], + "wtype": { + "types": [ + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "length": null, + "_type": "BytesWType" + } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + "_id": 2, + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 }, - "_id": "2" + "_type": "SingleEvaluation" }, - "index": 0 + "index": 0, + "_type": "TupleItemExpression" }, { - "_type": "TupleItemExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 28, "end_line": 28, + "comment_lines": 0, "column": 14, "end_column": 19 }, "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, "source": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "BytesWType", - "length": null - } - ] - }, "items": [ { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 12, "end_column": 35 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 1, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" }, { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 28, "end_line": 28, + "comment_lines": 0, "column": 14, "end_column": 19 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "share" + "name": "share", + "_type": "VarExpression" }, { - "_type": "ReinterpretCast", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 34 }, "wtype": { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, "expr": { - "_type": "IndexExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 28 }, - "wtype": { - "_type": "ARC4StaticArray", - "immutable": true, - "arc4_alias": "address", - "element_type": { - "_type": "ARC4UIntN", - "arc4_alias": "byte", - "n": 8 - }, - "source_location": null, - "array_size": 32 - }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 25 }, "wtype": { - "_type": "ARC4DynamicArray", - "immutable": false, "arc4_alias": null, + "source_location": null, + "immutable": false, "element_type": { - "_type": "ARC4StaticArray", - "immutable": true, "arc4_alias": "address", + "source_location": null, + "immutable": true, "element_type": { - "_type": "ARC4UIntN", "arc4_alias": "byte", - "n": 8 + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "source_location": null, - "array_size": 32 + "array_size": 32, + "_type": "ARC4StaticArray" }, - "source_location": null + "_type": "ARC4DynamicArray" }, - "name": "addresses" + "name": "addresses", + "_type": "VarExpression" }, "index": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 26, "end_column": 27 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 0, - "teal_alias": null - } - } + "teal_alias": null, + "_type": "IntegerConstant" + }, + "wtype": { + "arc4_alias": "address", + "source_location": null, + "immutable": true, + "element_type": { + "arc4_alias": "byte", + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "array_size": 32, + "_type": "ARC4StaticArray" + }, + "_type": "IndexExpression" + }, + "_type": "ReinterpretCast" } - ] + ], + "wtype": { + "types": [ + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "length": null, + "_type": "BytesWType" + } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" }, - "_id": "2" + "_id": 2, + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 + }, + "_type": "SingleEvaluation" }, - "index": 1 + "index": 1, + "_type": "TupleItemExpression" }, { - "_type": "TupleItemExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 34 }, "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, "source": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "BytesWType", - "length": null - } - ] - }, "items": [ { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 12, "end_column": 35 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 1, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" }, { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 28, "end_line": 28, + "comment_lines": 0, "column": 14, "end_column": 19 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "share" + "name": "share", + "_type": "VarExpression" }, { - "_type": "ReinterpretCast", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 34 }, "wtype": { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, "expr": { - "_type": "IndexExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 28 }, - "wtype": { - "_type": "ARC4StaticArray", - "immutable": true, - "arc4_alias": "address", - "element_type": { - "_type": "ARC4UIntN", - "arc4_alias": "byte", - "n": 8 - }, - "source_location": null, - "array_size": 32 - }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 25 }, "wtype": { - "_type": "ARC4DynamicArray", - "immutable": false, "arc4_alias": null, + "source_location": null, + "immutable": false, "element_type": { - "_type": "ARC4StaticArray", - "immutable": true, "arc4_alias": "address", + "source_location": null, + "immutable": true, "element_type": { - "_type": "ARC4UIntN", "arc4_alias": "byte", - "n": 8 + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "source_location": null, - "array_size": 32 + "array_size": 32, + "_type": "ARC4StaticArray" }, - "source_location": null + "_type": "ARC4DynamicArray" }, - "name": "addresses" + "name": "addresses", + "_type": "VarExpression" }, "index": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 26, "end_column": 27 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 0, - "teal_alias": null - } - } + "teal_alias": null, + "_type": "IntegerConstant" + }, + "wtype": { + "arc4_alias": "address", + "source_location": null, + "immutable": true, + "element_type": { + "arc4_alias": "byte", + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "array_size": 32, + "_type": "ARC4StaticArray" + }, + "_type": "IndexExpression" + }, + "_type": "ReinterpretCast" } - ] + ], + "wtype": { + "types": [ + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "length": null, + "_type": "BytesWType" + } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" }, - "_id": "2" + "_id": 2, + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 + }, + "_type": "SingleEvaluation" }, - "index": 2 + "index": 2, + "_type": "TupleItemExpression" } - ] + ], + "wtype": { + "types": [ + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "length": null, + "_type": "BytesWType" + } + ], + "source_location": null, + "name": "{type:TransactionType,amount:uint64,receiver:bytes}", + "names": [ + "type", + "amount", + "receiver" + ], + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" }, - "_id": "1" + "_id": 1, + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 + }, + "_type": "SingleEvaluation" }, - "name": "receiver" + "name": "receiver", + "_type": "FieldExpression" } - ] + ], + "wtype": { + "types": [ + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "length": null, + "_type": "BytesWType" + } + ], + "source_location": null, + "name": "{type:TransactionType,amount:uint64,receiver:bytes}", + "names": [ + "type", + "amount", + "receiver" + ], + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" }, - "_id": "0" + "_id": 0, + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 + }, + "_type": "SingleEvaluation" }, - "name": "amount" + "name": "amount", + "_type": "FieldExpression" }, "receiver": { - "_type": "FieldExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, "source": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, - "wtype": { - "_type": "WTuple", - "name": "{type:TransactionType,amount:uint64,receiver:bytes}", - "types": [ - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "BytesWType", - "length": null - } - ], - "names": [ - "type", - "amount", - "receiver" - ] - }, "items": [ { - "_type": "FieldExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, "source": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, - "wtype": { - "_type": "WTuple", - "name": "{type:TransactionType,amount:uint64,receiver:bytes}", - "types": [ - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "BytesWType", - "length": null - } - ], - "names": [ - "type", - "amount", - "receiver" - ] - }, "items": [ { - "_type": "TupleItemExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 12, "end_column": 35 }, "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, "source": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "BytesWType", - "length": null - } - ] - }, "items": [ { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 12, "end_column": 35 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 1, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" }, { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 28, "end_line": 28, + "comment_lines": 0, "column": 14, "end_column": 19 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "share" + "name": "share", + "_type": "VarExpression" }, { - "_type": "ReinterpretCast", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 34 }, "wtype": { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, "expr": { - "_type": "IndexExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 28 }, - "wtype": { - "_type": "ARC4StaticArray", - "immutable": true, - "arc4_alias": "address", - "element_type": { - "_type": "ARC4UIntN", - "arc4_alias": "byte", - "n": 8 - }, - "source_location": null, - "array_size": 32 - }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 25 }, "wtype": { - "_type": "ARC4DynamicArray", - "immutable": false, "arc4_alias": null, + "source_location": null, + "immutable": false, "element_type": { - "_type": "ARC4StaticArray", - "immutable": true, "arc4_alias": "address", + "source_location": null, + "immutable": true, "element_type": { - "_type": "ARC4UIntN", "arc4_alias": "byte", - "n": 8 + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "source_location": null, - "array_size": 32 + "array_size": 32, + "_type": "ARC4StaticArray" }, - "source_location": null + "_type": "ARC4DynamicArray" }, - "name": "addresses" + "name": "addresses", + "_type": "VarExpression" }, "index": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 26, "end_column": 27 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 0, - "teal_alias": null - } - } + "teal_alias": null, + "_type": "IntegerConstant" + }, + "wtype": { + "arc4_alias": "address", + "source_location": null, + "immutable": true, + "element_type": { + "arc4_alias": "byte", + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "array_size": 32, + "_type": "ARC4StaticArray" + }, + "_type": "IndexExpression" + }, + "_type": "ReinterpretCast" } - ] + ], + "wtype": { + "types": [ + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "length": null, + "_type": "BytesWType" + } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" }, - "_id": "2" + "_id": 2, + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 + }, + "_type": "SingleEvaluation" }, - "index": 0 + "index": 0, + "_type": "TupleItemExpression" }, { - "_type": "TupleItemExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 28, "end_line": 28, + "comment_lines": 0, "column": 14, "end_column": 19 }, "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, "source": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "BytesWType", - "length": null - } - ] - }, "items": [ { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 12, "end_column": 35 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 1, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" }, { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 28, "end_line": 28, + "comment_lines": 0, "column": 14, "end_column": 19 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "share" + "name": "share", + "_type": "VarExpression" }, { - "_type": "ReinterpretCast", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 34 }, "wtype": { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, "expr": { - "_type": "IndexExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 28 }, - "wtype": { - "_type": "ARC4StaticArray", - "immutable": true, - "arc4_alias": "address", - "element_type": { - "_type": "ARC4UIntN", - "arc4_alias": "byte", - "n": 8 - }, - "source_location": null, - "array_size": 32 - }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 25 }, "wtype": { - "_type": "ARC4DynamicArray", - "immutable": false, "arc4_alias": null, + "source_location": null, + "immutable": false, "element_type": { - "_type": "ARC4StaticArray", - "immutable": true, "arc4_alias": "address", + "source_location": null, + "immutable": true, "element_type": { - "_type": "ARC4UIntN", "arc4_alias": "byte", - "n": 8 + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "source_location": null, - "array_size": 32 + "array_size": 32, + "_type": "ARC4StaticArray" }, - "source_location": null + "_type": "ARC4DynamicArray" }, - "name": "addresses" + "name": "addresses", + "_type": "VarExpression" }, "index": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 26, "end_column": 27 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 0, - "teal_alias": null - } - } + "teal_alias": null, + "_type": "IntegerConstant" + }, + "wtype": { + "arc4_alias": "address", + "source_location": null, + "immutable": true, + "element_type": { + "arc4_alias": "byte", + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "array_size": 32, + "_type": "ARC4StaticArray" + }, + "_type": "IndexExpression" + }, + "_type": "ReinterpretCast" } - ] + ], + "wtype": { + "types": [ + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "length": null, + "_type": "BytesWType" + } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + "_id": 2, + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 }, - "_id": "2" + "_type": "SingleEvaluation" }, - "index": 1 + "index": 1, + "_type": "TupleItemExpression" }, { - "_type": "TupleItemExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 34 }, "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, "source": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "BytesWType", - "length": null - } - ] - }, "items": [ { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 12, "end_column": 35 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 1, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" }, { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 28, "end_line": 28, + "comment_lines": 0, "column": 14, "end_column": 19 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "share" + "name": "share", + "_type": "VarExpression" }, { - "_type": "ReinterpretCast", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 34 }, "wtype": { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, "expr": { - "_type": "IndexExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 28 }, - "wtype": { - "_type": "ARC4StaticArray", - "immutable": true, - "arc4_alias": "address", - "element_type": { - "_type": "ARC4UIntN", - "arc4_alias": "byte", - "n": 8 - }, - "source_location": null, - "array_size": 32 - }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 25 }, "wtype": { - "_type": "ARC4DynamicArray", - "immutable": false, "arc4_alias": null, + "source_location": null, + "immutable": false, "element_type": { - "_type": "ARC4StaticArray", - "immutable": true, "arc4_alias": "address", + "source_location": null, + "immutable": true, "element_type": { - "_type": "ARC4UIntN", "arc4_alias": "byte", - "n": 8 + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "source_location": null, - "array_size": 32 + "array_size": 32, + "_type": "ARC4StaticArray" }, - "source_location": null + "_type": "ARC4DynamicArray" }, - "name": "addresses" + "name": "addresses", + "_type": "VarExpression" }, "index": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 26, "end_column": 27 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 0, - "teal_alias": null - } - } + "teal_alias": null, + "_type": "IntegerConstant" + }, + "wtype": { + "arc4_alias": "address", + "source_location": null, + "immutable": true, + "element_type": { + "arc4_alias": "byte", + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "array_size": 32, + "_type": "ARC4StaticArray" + }, + "_type": "IndexExpression" + }, + "_type": "ReinterpretCast" } - ] + ], + "wtype": { + "types": [ + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "length": null, + "_type": "BytesWType" + } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" }, - "_id": "2" + "_id": 2, + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 + }, + "_type": "SingleEvaluation" }, - "index": 2 + "index": 2, + "_type": "TupleItemExpression" } - ] + ], + "wtype": { + "types": [ + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "length": null, + "_type": "BytesWType" + } + ], + "source_location": null, + "name": "{type:TransactionType,amount:uint64,receiver:bytes}", + "names": [ + "type", + "amount", + "receiver" + ], + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + "_id": 1, + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 }, - "_id": "1" + "_type": "SingleEvaluation" }, - "name": "type" + "name": "type", + "_type": "FieldExpression" }, { - "_type": "FieldExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, "source": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, - "wtype": { - "_type": "WTuple", - "name": "{type:TransactionType,amount:uint64,receiver:bytes}", - "types": [ - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "BytesWType", - "length": null - } - ], - "names": [ - "type", - "amount", - "receiver" - ] - }, "items": [ { - "_type": "TupleItemExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 12, "end_column": 35 }, "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, "source": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "BytesWType", - "length": null - } - ] - }, "items": [ { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 12, "end_column": 35 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 1, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" }, { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 28, "end_line": 28, + "comment_lines": 0, "column": 14, "end_column": 19 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "share" + "name": "share", + "_type": "VarExpression" }, { - "_type": "ReinterpretCast", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 34 }, "wtype": { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, "expr": { - "_type": "IndexExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 28 }, - "wtype": { - "_type": "ARC4StaticArray", - "immutable": true, - "arc4_alias": "address", - "element_type": { - "_type": "ARC4UIntN", - "arc4_alias": "byte", - "n": 8 - }, - "source_location": null, - "array_size": 32 - }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 25 }, "wtype": { - "_type": "ARC4DynamicArray", - "immutable": false, "arc4_alias": null, + "source_location": null, + "immutable": false, "element_type": { - "_type": "ARC4StaticArray", - "immutable": true, "arc4_alias": "address", + "source_location": null, + "immutable": true, "element_type": { - "_type": "ARC4UIntN", "arc4_alias": "byte", - "n": 8 + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "source_location": null, - "array_size": 32 + "array_size": 32, + "_type": "ARC4StaticArray" }, - "source_location": null + "_type": "ARC4DynamicArray" }, - "name": "addresses" + "name": "addresses", + "_type": "VarExpression" }, "index": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 26, "end_column": 27 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 0, - "teal_alias": null - } - } + "teal_alias": null, + "_type": "IntegerConstant" + }, + "wtype": { + "arc4_alias": "address", + "source_location": null, + "immutable": true, + "element_type": { + "arc4_alias": "byte", + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "array_size": 32, + "_type": "ARC4StaticArray" + }, + "_type": "IndexExpression" + }, + "_type": "ReinterpretCast" } - ] + ], + "wtype": { + "types": [ + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "length": null, + "_type": "BytesWType" + } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + "_id": 2, + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 }, - "_id": "2" + "_type": "SingleEvaluation" }, - "index": 0 + "index": 0, + "_type": "TupleItemExpression" }, { - "_type": "TupleItemExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 28, "end_line": 28, + "comment_lines": 0, "column": 14, "end_column": 19 }, "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, "source": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "BytesWType", - "length": null - } - ] - }, "items": [ { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 12, "end_column": 35 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 1, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" }, { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 28, "end_line": 28, + "comment_lines": 0, "column": 14, "end_column": 19 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "share" + "name": "share", + "_type": "VarExpression" }, { - "_type": "ReinterpretCast", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 34 }, "wtype": { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, "expr": { - "_type": "IndexExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 28 }, - "wtype": { - "_type": "ARC4StaticArray", - "immutable": true, - "arc4_alias": "address", - "element_type": { - "_type": "ARC4UIntN", - "arc4_alias": "byte", - "n": 8 - }, - "source_location": null, - "array_size": 32 - }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 25 }, "wtype": { - "_type": "ARC4DynamicArray", - "immutable": false, "arc4_alias": null, + "source_location": null, + "immutable": false, "element_type": { - "_type": "ARC4StaticArray", - "immutable": true, "arc4_alias": "address", + "source_location": null, + "immutable": true, "element_type": { - "_type": "ARC4UIntN", "arc4_alias": "byte", - "n": 8 + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "source_location": null, - "array_size": 32 + "array_size": 32, + "_type": "ARC4StaticArray" }, - "source_location": null + "_type": "ARC4DynamicArray" }, - "name": "addresses" + "name": "addresses", + "_type": "VarExpression" }, "index": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 26, "end_column": 27 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" + }, + "value": 0, + "teal_alias": null, + "_type": "IntegerConstant" + }, + "wtype": { + "arc4_alias": "address", + "source_location": null, + "immutable": true, + "element_type": { + "arc4_alias": "byte", + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "value": 0, - "teal_alias": null - } - } + "array_size": 32, + "_type": "ARC4StaticArray" + }, + "_type": "IndexExpression" + }, + "_type": "ReinterpretCast" } - ] + ], + "wtype": { + "types": [ + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "length": null, + "_type": "BytesWType" + } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + "_id": 2, + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 }, - "_id": "2" + "_type": "SingleEvaluation" }, - "index": 1 + "index": 1, + "_type": "TupleItemExpression" }, { - "_type": "TupleItemExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 34 }, "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, "source": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "BytesWType", - "length": null - } - ] - }, "items": [ { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 12, "end_column": 35 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 1, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" }, { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 28, "end_line": 28, + "comment_lines": 0, "column": 14, "end_column": 19 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "share" + "name": "share", + "_type": "VarExpression" }, { - "_type": "ReinterpretCast", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 34 }, "wtype": { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, "expr": { - "_type": "IndexExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 28 }, - "wtype": { - "_type": "ARC4StaticArray", - "immutable": true, - "arc4_alias": "address", - "element_type": { - "_type": "ARC4UIntN", - "arc4_alias": "byte", - "n": 8 - }, - "source_location": null, - "array_size": 32 - }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 25 }, "wtype": { - "_type": "ARC4DynamicArray", - "immutable": false, "arc4_alias": null, + "source_location": null, + "immutable": false, "element_type": { - "_type": "ARC4StaticArray", - "immutable": true, "arc4_alias": "address", + "source_location": null, + "immutable": true, "element_type": { - "_type": "ARC4UIntN", "arc4_alias": "byte", - "n": 8 + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "source_location": null, - "array_size": 32 + "array_size": 32, + "_type": "ARC4StaticArray" }, - "source_location": null + "_type": "ARC4DynamicArray" }, - "name": "addresses" + "name": "addresses", + "_type": "VarExpression" }, "index": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 26, "end_column": 27 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 0, - "teal_alias": null - } - } + "teal_alias": null, + "_type": "IntegerConstant" + }, + "wtype": { + "arc4_alias": "address", + "source_location": null, + "immutable": true, + "element_type": { + "arc4_alias": "byte", + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "array_size": 32, + "_type": "ARC4StaticArray" + }, + "_type": "IndexExpression" + }, + "_type": "ReinterpretCast" } - ] + ], + "wtype": { + "types": [ + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "length": null, + "_type": "BytesWType" + } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + "_id": 2, + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 }, - "_id": "2" + "_type": "SingleEvaluation" }, - "index": 2 + "index": 2, + "_type": "TupleItemExpression" } - ] + ], + "wtype": { + "types": [ + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "length": null, + "_type": "BytesWType" + } + ], + "source_location": null, + "name": "{type:TransactionType,amount:uint64,receiver:bytes}", + "names": [ + "type", + "amount", + "receiver" + ], + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + "_id": 1, + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 }, - "_id": "1" + "_type": "SingleEvaluation" }, - "name": "amount" + "name": "amount", + "_type": "FieldExpression" }, { - "_type": "FieldExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, "source": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, - "wtype": { - "_type": "WTuple", - "name": "{type:TransactionType,amount:uint64,receiver:bytes}", - "types": [ - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "BytesWType", - "length": null - } - ], - "names": [ - "type", - "amount", - "receiver" - ] - }, "items": [ { - "_type": "TupleItemExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 12, "end_column": 35 }, "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, "source": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "BytesWType", - "length": null - } - ] - }, "items": [ { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 12, "end_column": 35 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 1, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" }, { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 28, "end_line": 28, + "comment_lines": 0, "column": 14, "end_column": 19 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "share" + "name": "share", + "_type": "VarExpression" }, { - "_type": "ReinterpretCast", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 34 }, "wtype": { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, "expr": { - "_type": "IndexExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 28 }, - "wtype": { - "_type": "ARC4StaticArray", - "immutable": true, - "arc4_alias": "address", - "element_type": { - "_type": "ARC4UIntN", - "arc4_alias": "byte", - "n": 8 - }, - "source_location": null, - "array_size": 32 - }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 25 }, "wtype": { - "_type": "ARC4DynamicArray", - "immutable": false, "arc4_alias": null, + "source_location": null, + "immutable": false, "element_type": { - "_type": "ARC4StaticArray", - "immutable": true, "arc4_alias": "address", + "source_location": null, + "immutable": true, "element_type": { - "_type": "ARC4UIntN", "arc4_alias": "byte", - "n": 8 + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "source_location": null, - "array_size": 32 + "array_size": 32, + "_type": "ARC4StaticArray" }, - "source_location": null + "_type": "ARC4DynamicArray" }, - "name": "addresses" + "name": "addresses", + "_type": "VarExpression" }, "index": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 26, "end_column": 27 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 0, - "teal_alias": null - } - } + "teal_alias": null, + "_type": "IntegerConstant" + }, + "wtype": { + "arc4_alias": "address", + "source_location": null, + "immutable": true, + "element_type": { + "arc4_alias": "byte", + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "array_size": 32, + "_type": "ARC4StaticArray" + }, + "_type": "IndexExpression" + }, + "_type": "ReinterpretCast" } - ] + ], + "wtype": { + "types": [ + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "length": null, + "_type": "BytesWType" + } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" }, - "_id": "2" + "_id": 2, + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 + }, + "_type": "SingleEvaluation" }, - "index": 0 + "index": 0, + "_type": "TupleItemExpression" }, { - "_type": "TupleItemExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 28, "end_line": 28, + "comment_lines": 0, "column": 14, "end_column": 19 }, "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, "source": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "BytesWType", - "length": null - } - ] - }, "items": [ { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 12, "end_column": 35 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 1, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" }, { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 28, "end_line": 28, + "comment_lines": 0, "column": 14, "end_column": 19 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "share" + "name": "share", + "_type": "VarExpression" }, { - "_type": "ReinterpretCast", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 34 }, "wtype": { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, "expr": { - "_type": "IndexExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", - "line": 29, - "end_line": 29, - "column": 16, - "end_column": 28 - }, - "wtype": { - "_type": "ARC4StaticArray", - "immutable": true, - "arc4_alias": "address", - "element_type": { - "_type": "ARC4UIntN", - "arc4_alias": "byte", - "n": 8 - }, - "source_location": null, - "array_size": 32 + "line": 29, + "end_line": 29, + "comment_lines": 0, + "column": 16, + "end_column": 28 }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 25 }, "wtype": { - "_type": "ARC4DynamicArray", - "immutable": false, "arc4_alias": null, + "source_location": null, + "immutable": false, "element_type": { - "_type": "ARC4StaticArray", - "immutable": true, "arc4_alias": "address", + "source_location": null, + "immutable": true, "element_type": { - "_type": "ARC4UIntN", "arc4_alias": "byte", - "n": 8 + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "source_location": null, - "array_size": 32 + "array_size": 32, + "_type": "ARC4StaticArray" }, - "source_location": null + "_type": "ARC4DynamicArray" }, - "name": "addresses" + "name": "addresses", + "_type": "VarExpression" }, "index": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 26, "end_column": 27 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 0, - "teal_alias": null - } - } + "teal_alias": null, + "_type": "IntegerConstant" + }, + "wtype": { + "arc4_alias": "address", + "source_location": null, + "immutable": true, + "element_type": { + "arc4_alias": "byte", + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "array_size": 32, + "_type": "ARC4StaticArray" + }, + "_type": "IndexExpression" + }, + "_type": "ReinterpretCast" } - ] + ], + "wtype": { + "types": [ + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "length": null, + "_type": "BytesWType" + } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + "_id": 2, + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 }, - "_id": "2" + "_type": "SingleEvaluation" }, - "index": 1 + "index": 1, + "_type": "TupleItemExpression" }, { - "_type": "TupleItemExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 34 }, "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 26, - "end_line": 30, - "column": 22, - "end_column": 5 - }, "source": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 26, "end_line": 30, + "comment_lines": 0, "column": 22, "end_column": 5 }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "WType", - "name": "uint64", - "immutable": true - }, - { - "_type": "BytesWType", - "length": null - } - ] - }, "items": [ { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 27, "end_line": 27, + "comment_lines": 0, "column": 12, "end_column": 35 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 1, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" }, { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 28, "end_line": 28, + "comment_lines": 0, "column": 14, "end_column": 19 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "share" + "name": "share", + "_type": "VarExpression" }, { - "_type": "ReinterpretCast", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 34 }, "wtype": { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, "expr": { - "_type": "IndexExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 28 }, - "wtype": { - "_type": "ARC4StaticArray", - "immutable": true, - "arc4_alias": "address", - "element_type": { - "_type": "ARC4UIntN", - "arc4_alias": "byte", - "n": 8 - }, - "source_location": null, - "array_size": 32 - }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 16, "end_column": 25 }, "wtype": { - "_type": "ARC4DynamicArray", - "immutable": false, "arc4_alias": null, + "source_location": null, + "immutable": false, "element_type": { - "_type": "ARC4StaticArray", - "immutable": true, "arc4_alias": "address", + "source_location": null, + "immutable": true, "element_type": { - "_type": "ARC4UIntN", "arc4_alias": "byte", - "n": 8 + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "source_location": null, - "array_size": 32 + "array_size": 32, + "_type": "ARC4StaticArray" }, - "source_location": null + "_type": "ARC4DynamicArray" }, - "name": "addresses" + "name": "addresses", + "_type": "VarExpression" }, "index": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 29, "end_line": 29, + "comment_lines": 0, "column": 26, "end_column": 27 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 0, - "teal_alias": null - } - } + "teal_alias": null, + "_type": "IntegerConstant" + }, + "wtype": { + "arc4_alias": "address", + "source_location": null, + "immutable": true, + "element_type": { + "arc4_alias": "byte", + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "array_size": 32, + "_type": "ARC4StaticArray" + }, + "_type": "IndexExpression" + }, + "_type": "ReinterpretCast" } - ] + ], + "wtype": { + "types": [ + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "length": null, + "_type": "BytesWType" + } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + "_id": 2, + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 }, - "_id": "2" + "_type": "SingleEvaluation" }, - "index": 2 + "index": 2, + "_type": "TupleItemExpression" } - ] + ], + "wtype": { + "types": [ + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "length": null, + "_type": "BytesWType" + } + ], + "source_location": null, + "name": "{type:TransactionType,amount:uint64,receiver:bytes}", + "names": [ + "type", + "amount", + "receiver" + ], + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + "_id": 1, + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 }, - "_id": "1" + "_type": "SingleEvaluation" }, - "name": "receiver" + "name": "receiver", + "_type": "FieldExpression" } - ] + ], + "wtype": { + "types": [ + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + { + "length": null, + "_type": "BytesWType" + } + ], + "source_location": null, + "name": "{type:TransactionType,amount:uint64,receiver:bytes}", + "names": [ + "type", + "amount", + "receiver" + ], + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + "_id": 0, + "source_location": { + "file": "%DIR%/itxn-compose.algo.ts", + "line": 26, + "end_line": 30, + "comment_lines": 0, + "column": 22, + "end_column": 5 }, - "_id": "0" + "_type": "SingleEvaluation" }, - "name": "receiver" + "name": "receiver", + "_type": "FieldExpression" } - } - } + }, + "_type": "NewStruct" + }, + "_type": "AssignmentStatement" }, { - "_type": "ExpressionStatement", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 31, - "end_line": 31, - "column": 4, - "end_column": 32 - }, "expr": { - "_type": "SetInnerTransactionFields", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 31, "end_line": 31, + "comment_lines": 0, "column": 4, "end_column": 32 }, "itxns": [ { - "_type": "CreateInnerTransaction", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 31, "end_line": 31, + "comment_lines": 0, "column": 4, "end_column": 32 }, "wtype": { - "_type": "WInnerTransactionFields", - "name": "inner_transaction_fields_pay", "immutable": true, - "transaction_type": 1 + "transaction_type": 1, + "name": "inner_transaction_fields_pay", + "_type": "WInnerTransactionFields" }, "fields": { "Fee": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 31, "end_line": 31, + "comment_lines": 0, "column": 4, "end_column": 32 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 0, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" }, "TypeEnum": { - "_type": "FieldExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 31, "end_line": 31, + "comment_lines": 0, "column": 4, "end_column": 32 }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 31, "end_line": 31, + "comment_lines": 0, "column": 22, "end_column": 31 }, "wtype": { - "_type": "ARC4Struct", "name": "Object3BB2638B", - "arc4_alias": null, - "fields": { - "type": { - "_type": "WType", - "name": "uint64", - "immutable": true + "_fields": [ + { + "name": "type", + "wtype": { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + "description": null }, - "amount": { - "_type": "WType", - "name": "uint64", - "immutable": true + { + "name": "amount", + "wtype": { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + "description": null }, - "receiver": { - "_type": "BytesWType", - "length": null + { + "name": "receiver", + "wtype": { + "length": null, + "_type": "BytesWType" + }, + "description": null } - }, - "source_location": null, + ], "frozen": false, - "desc": null + "source_location": null, + "desc": null, + "_type": "ARC4Struct" }, - "name": "payFields" + "name": "payFields", + "_type": "VarExpression" }, - "name": "type" + "name": "type", + "_type": "FieldExpression" }, "Amount": { - "_type": "FieldExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 31, "end_line": 31, + "comment_lines": 0, "column": 4, "end_column": 32 }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 31, "end_line": 31, + "comment_lines": 0, "column": 22, "end_column": 31 }, "wtype": { - "_type": "ARC4Struct", "name": "Object3BB2638B", - "arc4_alias": null, - "fields": { - "type": { - "_type": "WType", - "name": "uint64", - "immutable": true + "_fields": [ + { + "name": "type", + "wtype": { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + "description": null }, - "amount": { - "_type": "WType", - "name": "uint64", - "immutable": true + { + "name": "amount", + "wtype": { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + "description": null }, - "receiver": { - "_type": "BytesWType", - "length": null + { + "name": "receiver", + "wtype": { + "length": null, + "_type": "BytesWType" + }, + "description": null } - }, - "source_location": null, + ], "frozen": false, - "desc": null + "source_location": null, + "desc": null, + "_type": "ARC4Struct" }, - "name": "payFields" + "name": "payFields", + "_type": "VarExpression" }, - "name": "amount" + "name": "amount", + "_type": "FieldExpression" }, "Receiver": { - "_type": "ReinterpretCast", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 31, "end_line": 31, + "comment_lines": 0, "column": 4, "end_column": 32 }, "wtype": { - "_type": "WType", "name": "account", - "immutable": true + "immutable": true, + "_type": "WType" }, "expr": { - "_type": "FieldExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 31, "end_line": 31, + "comment_lines": 0, "column": 4, "end_column": 32 }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 31, "end_line": 31, + "comment_lines": 0, "column": 22, "end_column": 31 }, "wtype": { - "_type": "ARC4Struct", "name": "Object3BB2638B", - "arc4_alias": null, - "fields": { - "type": { - "_type": "WType", - "name": "uint64", - "immutable": true + "_fields": [ + { + "name": "type", + "wtype": { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + "description": null }, - "amount": { - "_type": "WType", - "name": "uint64", - "immutable": true + { + "name": "amount", + "wtype": { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + "description": null }, - "receiver": { - "_type": "BytesWType", - "length": null + { + "name": "receiver", + "wtype": { + "length": null, + "_type": "BytesWType" + }, + "description": null } - }, - "source_location": null, + ], "frozen": false, - "desc": null + "source_location": null, + "desc": null, + "_type": "ARC4Struct" }, - "name": "payFields" + "name": "payFields", + "_type": "VarExpression" }, - "name": "receiver" - } + "name": "receiver", + "_type": "FieldExpression" + }, + "_type": "ReinterpretCast" } - } + }, + "_type": "CreateInnerTransaction" } ], - "start_with_begin": true - } + "start_with_begin": true, + "_type": "SetInnerTransactionFields" + }, + "_type": "ExpressionStatement" }, { - "_type": "Block", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 32, "end_line": 32, + "comment_lines": 0, "column": 4, "end_column": 48 }, "body": [ { - "_type": "ForInLoop", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 32, "end_line": 32, + "comment_lines": 0, "column": 4, "end_column": 48 }, "sequence": { - "_type": "Range", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 32, "end_line": 32, + "comment_lines": 0, "column": 20, "end_column": 47 }, "start": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 32, "end_line": 32, + "comment_lines": 0, "column": 27, "end_column": 28 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 1, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" }, "stop": { - "_type": "ArrayLength", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 32, "end_line": 32, + "comment_lines": 0, "column": 30, "end_column": 46 }, "array": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 32, "end_line": 32, + "comment_lines": 0, "column": 30, "end_column": 39 }, "wtype": { - "_type": "ARC4DynamicArray", - "immutable": false, "arc4_alias": null, + "source_location": null, + "immutable": false, "element_type": { - "_type": "ARC4StaticArray", - "immutable": true, "arc4_alias": "address", + "source_location": null, + "immutable": true, "element_type": { - "_type": "ARC4UIntN", "arc4_alias": "byte", - "n": 8 + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "source_location": null, - "array_size": 32 + "array_size": 32, + "_type": "ARC4StaticArray" }, - "source_location": null + "_type": "ARC4DynamicArray" }, - "name": "addresses" - } + "name": "addresses", + "_type": "VarExpression" + }, + "_type": "ArrayLength" }, "step": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 32, "end_line": 32, + "comment_lines": 0, "column": 20, "end_column": 47 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 1, - "teal_alias": null - } + "teal_alias": null, + "_type": "IntegerConstant" + }, + "_type": "Range" }, "items": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 32, "end_line": 32, + "comment_lines": 0, "column": 9, "end_column": 16 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "temp" + "name": "temp", + "_type": "VarExpression" }, "loop_body": { - "_type": "Block", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 32, "end_line": 32, + "comment_lines": 0, "column": 4, "end_column": 48 }, "body": [ { - "_type": "AssignmentStatement", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 32, "end_line": 32, + "comment_lines": 0, "column": 9, "end_column": 16 }, "target": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 32, "end_line": 32, + "comment_lines": 0, "column": 15, "end_column": 16 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "i" + "name": "i", + "_type": "VarExpression" }, "value": { - "_type": "Copy", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 32, "end_line": 32, + "comment_lines": 0, "column": 9, - "end_column": 16 - }, - "wtype": { - "_type": "WType", - "name": "uint64", - "immutable": true + "end_column": 16 }, "value": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 32, "end_line": 32, + "comment_lines": 0, "column": 9, "end_column": 16 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "temp" - } - } + "name": "temp", + "_type": "VarExpression" + }, + "wtype": { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + "_type": "Copy" + }, + "_type": "AssignmentStatement" }, { - "_type": "Block", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 32, "end_line": 38, + "comment_lines": 0, "column": 49, "end_column": 5 }, "body": [ { - "_type": "AssignmentStatement", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 33, "end_line": 33, + "comment_lines": 0, "column": 12, "end_column": 31 }, "target": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 33, "end_line": 33, + "comment_lines": 0, "column": 12, "end_column": 16 }, "wtype": { - "_type": "ARC4StaticArray", - "immutable": true, "arc4_alias": "address", + "source_location": null, + "immutable": true, "element_type": { - "_type": "ARC4UIntN", "arc4_alias": "byte", - "n": 8 + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "source_location": null, - "array_size": 32 + "array_size": 32, + "_type": "ARC4StaticArray" }, - "name": "addr" + "name": "addr", + "_type": "VarExpression" }, "value": { - "_type": "IndexExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 33, "end_line": 33, + "comment_lines": 0, "column": 19, "end_column": 31 }, - "wtype": { - "_type": "ARC4StaticArray", - "immutable": true, - "arc4_alias": "address", - "element_type": { - "_type": "ARC4UIntN", - "arc4_alias": "byte", - "n": 8 - }, - "source_location": null, - "array_size": 32 - }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 33, "end_line": 33, + "comment_lines": 0, "column": 19, "end_column": 28 }, "wtype": { - "_type": "ARC4DynamicArray", - "immutable": false, "arc4_alias": null, + "source_location": null, + "immutable": false, "element_type": { - "_type": "ARC4StaticArray", - "immutable": true, "arc4_alias": "address", + "source_location": null, + "immutable": true, "element_type": { - "_type": "ARC4UIntN", "arc4_alias": "byte", - "n": 8 + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "source_location": null, - "array_size": 32 + "array_size": 32, + "_type": "ARC4StaticArray" }, - "source_location": null + "_type": "ARC4DynamicArray" }, - "name": "addresses" + "name": "addresses", + "_type": "VarExpression" }, "index": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 33, "end_line": 33, + "comment_lines": 0, "column": 29, "end_column": 30 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "i" - } - } + "name": "i", + "_type": "VarExpression" + }, + "wtype": { + "arc4_alias": "address", + "source_location": null, + "immutable": true, + "element_type": { + "arc4_alias": "byte", + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "array_size": 32, + "_type": "ARC4StaticArray" + }, + "_type": "IndexExpression" + }, + "_type": "AssignmentStatement" }, { - "_type": "ExpressionStatement", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 34, - "end_line": 37, - "column": 6, - "end_column": 8 - }, "expr": { - "_type": "SetInnerTransactionFields", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 34, "end_line": 37, + "comment_lines": 0, "column": 6, "end_column": 8 }, "itxns": [ { - "_type": "CreateInnerTransaction", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 34, "end_line": 37, + "comment_lines": 0, "column": 6, "end_column": 8 }, "wtype": { - "_type": "WInnerTransactionFields", - "name": "inner_transaction_fields_pay", "immutable": true, - "transaction_type": 1 + "transaction_type": 1, + "name": "inner_transaction_fields_pay", + "_type": "WInnerTransactionFields" }, "fields": { "Fee": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 34, "end_line": 37, + "comment_lines": 0, "column": 6, "end_column": 8 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 0, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" }, "TypeEnum": { - "_type": "FieldExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 35, "end_line": 35, + "comment_lines": 0, "column": 8, "end_column": 20 }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 35, "end_line": 35, + "comment_lines": 0, "column": 11, "end_column": 20 }, "wtype": { - "_type": "ARC4Struct", "name": "Object3BB2638B", - "arc4_alias": null, - "fields": { - "type": { - "_type": "WType", - "name": "uint64", - "immutable": true + "_fields": [ + { + "name": "type", + "wtype": { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + "description": null }, - "amount": { - "_type": "WType", - "name": "uint64", - "immutable": true + { + "name": "amount", + "wtype": { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + "description": null }, - "receiver": { - "_type": "BytesWType", - "length": null + { + "name": "receiver", + "wtype": { + "length": null, + "_type": "BytesWType" + }, + "description": null } - }, - "source_location": null, + ], "frozen": false, - "desc": null + "source_location": null, + "desc": null, + "_type": "ARC4Struct" }, - "name": "payFields" + "name": "payFields", + "_type": "VarExpression" }, - "name": "type" + "name": "type", + "_type": "FieldExpression" }, "Amount": { - "_type": "FieldExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 35, "end_line": 35, + "comment_lines": 0, "column": 8, "end_column": 20 }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 35, "end_line": 35, + "comment_lines": 0, "column": 11, "end_column": 20 }, "wtype": { - "_type": "ARC4Struct", "name": "Object3BB2638B", - "arc4_alias": null, - "fields": { - "type": { - "_type": "WType", - "name": "uint64", - "immutable": true + "_fields": [ + { + "name": "type", + "wtype": { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + "description": null }, - "amount": { - "_type": "WType", - "name": "uint64", - "immutable": true + { + "name": "amount", + "wtype": { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + "description": null }, - "receiver": { - "_type": "BytesWType", - "length": null + { + "name": "receiver", + "wtype": { + "length": null, + "_type": "BytesWType" + }, + "description": null } - }, - "source_location": null, + ], "frozen": false, - "desc": null + "source_location": null, + "desc": null, + "_type": "ARC4Struct" }, - "name": "payFields" + "name": "payFields", + "_type": "VarExpression" }, - "name": "amount" + "name": "amount", + "_type": "FieldExpression" }, "Receiver": { - "_type": "ReinterpretCast", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 36, "end_line": 36, + "comment_lines": 0, "column": 18, "end_column": 28 }, "wtype": { - "_type": "WType", "name": "account", - "immutable": true + "immutable": true, + "_type": "WType" }, "expr": { - "_type": "ReinterpretCast", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 36, "end_line": 36, + "comment_lines": 0, "column": 18, "end_column": 28 }, "wtype": { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, "expr": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 36, "end_line": 36, + "comment_lines": 0, "column": 18, "end_column": 22 }, "wtype": { - "_type": "ARC4StaticArray", - "immutable": true, "arc4_alias": "address", + "source_location": null, + "immutable": true, "element_type": { - "_type": "ARC4UIntN", "arc4_alias": "byte", - "n": 8 + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "source_location": null, - "array_size": 32 + "array_size": 32, + "_type": "ARC4StaticArray" }, - "name": "addr" - } - } + "name": "addr", + "_type": "VarExpression" + }, + "_type": "ReinterpretCast" + }, + "_type": "ReinterpretCast" } - } + }, + "_type": "CreateInnerTransaction" } ], - "start_with_begin": false - } + "start_with_begin": false, + "_type": "SetInnerTransactionFields" + }, + "_type": "ExpressionStatement" } ], "label": null, - "comment": null + "comment": null, + "_type": "Block" } ], "label": null, - "comment": null - } + "comment": null, + "_type": "Block" + }, + "_type": "ForInLoop" } ], "label": null, - "comment": null + "comment": null, + "_type": "Block" }, { - "_type": "ExpressionStatement", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 40, - "end_line": 44, - "column": 4, - "end_column": 6 - }, "expr": { - "_type": "SetInnerTransactionFields", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 40, "end_line": 44, + "comment_lines": 0, "column": 4, "end_column": 6 }, "itxns": [ { - "_type": "CreateInnerTransaction", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 40, "end_line": 44, + "comment_lines": 0, "column": 4, "end_column": 6 }, "wtype": { - "_type": "WInnerTransactionFields", - "name": "inner_transaction_fields", "immutable": true, - "transaction_type": null + "transaction_type": null, + "name": "inner_transaction_fields", + "_type": "WInnerTransactionFields" }, "fields": { "Fee": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 40, "end_line": 44, + "comment_lines": 0, "column": 4, "end_column": 6 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 0, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" }, "TypeEnum": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 41, "end_line": 41, + "comment_lines": 0, "column": 12, "end_column": 43 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 6, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" }, "ApplicationArgs": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 42, "end_line": 42, + "comment_lines": 0, "column": 15, "end_column": 47 }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "BytesWType", - "length": 4 - } - ] - }, "items": [ { - "_type": "MethodConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 42, "end_line": 42, + "comment_lines": 0, "column": 16, "end_column": 46 }, "wtype": { - "_type": "BytesWType", - "length": 4 + "length": 4, + "_type": "BytesWType" }, "value": { - "_type": "MethodSignatureString", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 42, "end_line": 42, + "comment_lines": 0, "column": 16, "end_column": 46 }, "value": "verify()void" - } + }, + "_type": "MethodConstant" } - ] + ], + "wtype": { + "types": [ + { + "length": 4, + "_type": "BytesWType" + } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" }, "ApplicationID": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 43, "end_line": 43, + "comment_lines": 0, "column": 13, "end_column": 21 }, "wtype": { - "_type": "WType", "name": "application", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "verifier" + "name": "verifier", + "_type": "VarExpression" } - } + }, + "_type": "CreateInnerTransaction" } ], - "start_with_begin": false - } + "start_with_begin": false, + "_type": "SetInnerTransactionFields" + }, + "_type": "ExpressionStatement" }, { - "_type": "ExpressionStatement", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 46, - "end_line": 50, - "column": 4, - "end_column": 5 - }, "expr": { - "_type": "SetInnerTransactionFields", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 46, "end_line": 50, + "comment_lines": 0, "column": 4, "end_column": 5 }, "itxns": [ { - "_type": "CreateInnerTransaction", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 47, "end_line": 49, + "comment_lines": 0, "column": 6, "end_column": 8 }, "wtype": { - "_type": "WInnerTransactionFields", - "name": "inner_transaction_fields_acfg", "immutable": true, - "transaction_type": 3 + "transaction_type": 3, + "name": "inner_transaction_fields_acfg", + "_type": "WInnerTransactionFields" }, "fields": { "Fee": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 47, "end_line": 49, + "comment_lines": 0, "column": 6, "end_column": 8 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 0, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" }, "TypeEnum": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 47, "end_line": 49, + "comment_lines": 0, "column": 6, "end_column": 8 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 3, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" }, "ConfigAssetName": { - "_type": "BytesConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 48, "end_line": 48, + "comment_lines": 0, "column": 19, "end_column": 24 }, + "value": "VPaz", "wtype": { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, - "value": "VPaz", - "encoding": "utf8" + "encoding": "utf8", + "_type": "BytesConstant" } - } + }, + "_type": "CreateInnerTransaction" } ], - "start_with_begin": false - } + "start_with_begin": false, + "_type": "SetInnerTransactionFields" + }, + "_type": "ExpressionStatement" }, { - "_type": "ExpressionStatement", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 52, - "end_line": 52, - "column": 4, - "end_column": 24 - }, "expr": { - "_type": "IntrinsicCall", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 52, "end_line": 52, + "comment_lines": 0, "column": 4, "end_column": 24 }, "wtype": { - "_type": "WType", "name": "void", - "immutable": true + "immutable": true, + "_type": "WType" }, "op_code": "itxn_submit", "immediates": [], - "stack_args": [] - } + "stack_args": [], + "_type": "IntrinsicCall" + }, + "_type": "ExpressionStatement" } ], "label": null, - "comment": null + "comment": null, + "_type": "Block" }, "documentation": { - "_type": "MethodDocumentation", "description": null, "args": {}, "returns": null @@ -8151,11 +8759,11 @@ "cref": "tests/approvals/itxn-compose.algo.ts::ItxnComposeAlgo", "member_name": "distribute", "arc4_method_config": { - "_type": "ARC4ABIMethodConfig", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 19, "end_line": 19, + "comment_lines": 0, "column": 2, "end_column": 81 }, @@ -8171,123 +8779,129 @@ } }, { - "_type": "ContractMethod", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 54, "end_line": 54, + "comment_lines": 0, "column": 2, "end_column": 33 }, "args": [ { - "_type": "SubroutineArgument", "name": "count", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 54, "end_line": 54, + "comment_lines": 0, "column": 19, "end_column": 32 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" } } ], "return_type": { - "_type": "WType", "name": "void", - "immutable": true + "immutable": true, + "_type": "WType" }, "body": { - "_type": "Block", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 54, "end_line": 66, + "comment_lines": 0, "column": 34, "end_column": 3 }, "body": [ { - "_type": "AssignmentStatement", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 55, "end_line": 55, + "comment_lines": 0, "column": 10, "end_column": 36 }, "target": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 55, "end_line": 55, + "comment_lines": 0, "column": 10, "end_column": 15 }, "wtype": { - "_type": "WTuple", - "name": "@algorandfoundation/algorand-typescript/compiled.d.ts::CompiledContract", "types": [ { - "_type": "WTuple", - "name": "tuple", "types": [ { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" } - ] + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" }, { - "_type": "WTuple", - "name": "tuple", "types": [ { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" } - ] + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" } ], + "source_location": null, + "name": "@algorandfoundation/algorand-typescript/compiled.d.ts::CompiledContract", "names": [ "approvalProgram", "clearStateProgram", @@ -8296,77 +8910,86 @@ "globalBytes", "localUints", "localBytes" - ] + ], + "desc": null, + "_type": "WTuple" }, - "name": "hello" + "name": "hello", + "_type": "VarExpression" }, "value": { - "_type": "CompiledContract", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 55, "end_line": 55, + "comment_lines": 0, "column": 18, "end_column": 36 }, "wtype": { - "_type": "WTuple", - "name": "@algorandfoundation/algorand-typescript/compiled.d.ts::CompiledContract", "types": [ { - "_type": "WTuple", - "name": "tuple", "types": [ { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" } - ] + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" }, { - "_type": "WTuple", - "name": "tuple", "types": [ { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" } - ] + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" } ], + "source_location": null, + "name": "@algorandfoundation/algorand-typescript/compiled.d.ts::CompiledContract", "names": [ "approvalProgram", "clearStateProgram", @@ -8375,240 +8998,239 @@ "globalBytes", "localUints", "localBytes" - ] + ], + "desc": null, + "_type": "WTuple" }, "contract": "tests/approvals/precompiled-apps.algo.ts::Hello", "allocation_overrides": {}, "prefix": null, - "template_variables": {} - } + "template_variables": {}, + "_type": "CompiledContract" + }, + "_type": "AssignmentStatement" }, { - "_type": "AssignmentStatement", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 56, "end_line": 56, + "comment_lines": 0, "column": 10, "end_column": 69 }, "target": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 56, "end_line": 56, + "comment_lines": 0, "column": 10, "end_column": 15 }, "wtype": { - "_type": "WType", "name": "application", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "appId" + "name": "appId", + "_type": "VarExpression" }, "value": { - "_type": "InnerTransactionField", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 56, "end_line": 56, + "comment_lines": 0, "column": 18, "end_column": 69 }, "wtype": { - "_type": "WType", "name": "application", - "immutable": true + "immutable": true, + "_type": "WType" }, "itxn": { - "_type": "FieldExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 56, "end_line": 56, + "comment_lines": 0, "column": 18, "end_column": 58 }, "base": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 56, "end_line": 56, + "comment_lines": 0, "column": 18, "end_column": 53 }, - "wtype": { - "_type": "WTuple", - "name": "TypedApplicationCallResponseType", - "types": [ - { - "_type": "WInnerTransaction", - "name": "inner_transaction_appl", - "immutable": true, - "transaction_type": 6 - } - ], - "names": [ - "itxn" - ] - }, "items": [ { - "_type": "SubmitInnerTransaction", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 56, "end_line": 56, + "comment_lines": 0, "column": 18, "end_column": 53 }, "itxns": [ { - "_type": "CreateInnerTransaction", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 56, "end_line": 56, + "comment_lines": 0, "column": 18, "end_column": 53 }, "wtype": { - "_type": "WInnerTransactionFields", - "name": "inner_transaction_fields_appl", "immutable": true, - "transaction_type": 6 + "transaction_type": 6, + "name": "inner_transaction_fields_appl", + "_type": "WInnerTransactionFields" }, "fields": { "Fee": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 56, "end_line": 56, + "comment_lines": 0, "column": 18, "end_column": 53 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 0, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" }, "TypeEnum": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 56, "end_line": 56, + "comment_lines": 0, "column": 18, "end_column": 53 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 6, - "teal_alias": "appl" + "teal_alias": "appl", + "_type": "IntegerConstant" }, "OnCompletion": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 56, "end_line": 56, + "comment_lines": 0, "column": 18, "end_column": 53 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 0, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" }, "ApprovalProgramPages": { - "_type": "FieldExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 56, "end_line": 56, + "comment_lines": 0, "column": 18, "end_column": 53 }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 56, "end_line": 56, + "comment_lines": 0, "column": 18, "end_column": 23 }, "wtype": { - "_type": "WTuple", - "name": "@algorandfoundation/algorand-typescript/compiled.d.ts::CompiledContract", "types": [ { - "_type": "WTuple", - "name": "tuple", "types": [ { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" } - ] + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" }, { - "_type": "WTuple", - "name": "tuple", "types": [ { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" } - ] + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" } ], + "source_location": null, + "name": "@algorandfoundation/algorand-typescript/compiled.d.ts::CompiledContract", "names": [ "approvalProgram", "clearStateProgram", @@ -8617,88 +9239,98 @@ "globalBytes", "localUints", "localBytes" - ] + ], + "desc": null, + "_type": "WTuple" }, - "name": "hello" + "name": "hello", + "_type": "VarExpression" }, - "name": "approvalProgram" + "name": "approvalProgram", + "_type": "FieldExpression" }, "ClearStateProgramPages": { - "_type": "FieldExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 56, "end_line": 56, + "comment_lines": 0, "column": 18, "end_column": 53 }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 56, "end_line": 56, + "comment_lines": 0, "column": 18, "end_column": 23 }, "wtype": { - "_type": "WTuple", - "name": "@algorandfoundation/algorand-typescript/compiled.d.ts::CompiledContract", "types": [ { - "_type": "WTuple", - "name": "tuple", "types": [ { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" } - ] + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" }, { - "_type": "WTuple", - "name": "tuple", "types": [ { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" } - ] + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" } ], + "source_location": null, + "name": "@algorandfoundation/algorand-typescript/compiled.d.ts::CompiledContract", "names": [ "approvalProgram", "clearStateProgram", @@ -8707,88 +9339,98 @@ "globalBytes", "localUints", "localBytes" - ] + ], + "desc": null, + "_type": "WTuple" }, - "name": "hello" + "name": "hello", + "_type": "VarExpression" }, - "name": "clearStateProgram" + "name": "clearStateProgram", + "_type": "FieldExpression" }, "GlobalNumUint": { - "_type": "FieldExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 56, "end_line": 56, + "comment_lines": 0, "column": 18, "end_column": 53 }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 56, "end_line": 56, + "comment_lines": 0, "column": 18, "end_column": 23 }, "wtype": { - "_type": "WTuple", - "name": "@algorandfoundation/algorand-typescript/compiled.d.ts::CompiledContract", "types": [ { - "_type": "WTuple", - "name": "tuple", "types": [ { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" } - ] + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" }, { - "_type": "WTuple", - "name": "tuple", "types": [ { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" } - ] + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" } ], + "source_location": null, + "name": "@algorandfoundation/algorand-typescript/compiled.d.ts::CompiledContract", "names": [ "approvalProgram", "clearStateProgram", @@ -8797,88 +9439,98 @@ "globalBytes", "localUints", "localBytes" - ] + ], + "desc": null, + "_type": "WTuple" }, - "name": "hello" + "name": "hello", + "_type": "VarExpression" }, - "name": "globalUints" + "name": "globalUints", + "_type": "FieldExpression" }, "GlobalNumByteSlice": { - "_type": "FieldExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 56, "end_line": 56, + "comment_lines": 0, "column": 18, "end_column": 53 }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 56, "end_line": 56, + "comment_lines": 0, "column": 18, "end_column": 23 }, "wtype": { - "_type": "WTuple", - "name": "@algorandfoundation/algorand-typescript/compiled.d.ts::CompiledContract", "types": [ { - "_type": "WTuple", - "name": "tuple", "types": [ { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" } - ] + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" }, { - "_type": "WTuple", - "name": "tuple", "types": [ { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" } - ] + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" } ], + "source_location": null, + "name": "@algorandfoundation/algorand-typescript/compiled.d.ts::CompiledContract", "names": [ "approvalProgram", "clearStateProgram", @@ -8887,88 +9539,98 @@ "globalBytes", "localUints", "localBytes" - ] + ], + "desc": null, + "_type": "WTuple" }, - "name": "hello" + "name": "hello", + "_type": "VarExpression" }, - "name": "globalBytes" + "name": "globalBytes", + "_type": "FieldExpression" }, "LocalNumByteSlice": { - "_type": "FieldExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 56, "end_line": 56, + "comment_lines": 0, "column": 18, "end_column": 53 }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 56, "end_line": 56, + "comment_lines": 0, "column": 18, "end_column": 23 }, "wtype": { - "_type": "WTuple", - "name": "@algorandfoundation/algorand-typescript/compiled.d.ts::CompiledContract", "types": [ { - "_type": "WTuple", - "name": "tuple", "types": [ { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" } - ] + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" }, { - "_type": "WTuple", - "name": "tuple", "types": [ { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" } - ] + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" } ], + "source_location": null, + "name": "@algorandfoundation/algorand-typescript/compiled.d.ts::CompiledContract", "names": [ "approvalProgram", "clearStateProgram", @@ -8977,88 +9639,98 @@ "globalBytes", "localUints", "localBytes" - ] + ], + "desc": null, + "_type": "WTuple" }, - "name": "hello" + "name": "hello", + "_type": "VarExpression" }, - "name": "localBytes" + "name": "localBytes", + "_type": "FieldExpression" }, "LocalNumUint": { - "_type": "FieldExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 56, "end_line": 56, + "comment_lines": 0, "column": 18, "end_column": 53 }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 56, "end_line": 56, + "comment_lines": 0, "column": 18, "end_column": 23 }, "wtype": { - "_type": "WTuple", - "name": "@algorandfoundation/algorand-typescript/compiled.d.ts::CompiledContract", "types": [ { - "_type": "WTuple", - "name": "tuple", "types": [ { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" } - ] + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" }, { - "_type": "WTuple", - "name": "tuple", "types": [ { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" } - ] + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" } ], + "source_location": null, + "name": "@algorandfoundation/algorand-typescript/compiled.d.ts::CompiledContract", "names": [ "approvalProgram", "clearStateProgram", @@ -9067,88 +9739,98 @@ "globalBytes", "localUints", "localBytes" - ] + ], + "desc": null, + "_type": "WTuple" }, - "name": "hello" + "name": "hello", + "_type": "VarExpression" }, - "name": "localUints" + "name": "localUints", + "_type": "FieldExpression" }, "ExtraProgramPages": { - "_type": "FieldExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 56, "end_line": 56, + "comment_lines": 0, "column": 18, "end_column": 53 }, "base": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 56, "end_line": 56, + "comment_lines": 0, "column": 18, "end_column": 23 }, "wtype": { - "_type": "WTuple", - "name": "@algorandfoundation/algorand-typescript/compiled.d.ts::CompiledContract", "types": [ { - "_type": "WTuple", - "name": "tuple", "types": [ { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" } - ] + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" }, { - "_type": "WTuple", - "name": "tuple", "types": [ { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" }, { - "_type": "BytesWType", - "length": null + "length": null, + "_type": "BytesWType" } - ] + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" } ], + "source_location": null, + "name": "@algorandfoundation/algorand-typescript/compiled.d.ts::CompiledContract", "names": [ "approvalProgram", "clearStateProgram", @@ -9157,862 +9839,927 @@ "globalBytes", "localUints", "localBytes" - ] + ], + "desc": null, + "_type": "WTuple" }, - "name": "hello" + "name": "hello", + "_type": "VarExpression" }, - "name": "extraProgramPages" + "name": "extraProgramPages", + "_type": "FieldExpression" }, "ApplicationArgs": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 56, "end_line": 56, + "comment_lines": 0, "column": 18, "end_column": 53 }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "BytesWType", - "length": 4 - }, - { - "_type": "ARC4DynamicArray", - "immutable": true, - "arc4_alias": "string", - "element_type": { - "_type": "ARC4UIntN", - "arc4_alias": "byte", - "n": 8 - }, - "source_location": null - } - ] - }, "items": [ { - "_type": "MethodConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 56, "end_line": 56, + "comment_lines": 0, "column": 18, "end_column": 53 }, "wtype": { - "_type": "BytesWType", - "length": 4 + "length": 4, + "_type": "BytesWType" }, "value": { - "_type": "MethodSignature", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 56, "end_line": 56, + "comment_lines": 0, "column": 18, "end_column": 53 }, "name": "helloCreate", "arg_types": [ { - "_type": "WType", "name": "string", - "immutable": true + "immutable": true, + "_type": "WType" } ], "return_type": { - "_type": "WType", "name": "void", - "immutable": true + "immutable": true, + "_type": "WType" }, "resource_encoding": "value" - } + }, + "_type": "MethodConstant" }, { - "_type": "ARC4Encode", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 56, "end_line": 56, + "comment_lines": 0, "column": 45, "end_column": 49 }, - "wtype": { - "_type": "ARC4DynamicArray", - "immutable": true, - "arc4_alias": "string", - "element_type": { - "_type": "ARC4UIntN", - "arc4_alias": "byte", - "n": 8 - }, - "source_location": null - }, "value": { - "_type": "StringConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 56, "end_line": 56, + "comment_lines": 0, "column": 45, "end_column": 49 }, + "value": "Hi", "wtype": { - "_type": "WType", "name": "string", - "immutable": true + "immutable": true, + "_type": "WType" + }, + "_type": "StringConstant" + }, + "wtype": { + "arc4_alias": "string", + "source_location": null, + "immutable": true, + "element_type": { + "arc4_alias": "byte", + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "value": "Hi" + "_type": "ARC4DynamicArray" }, - "error_message": null + "error_message": null, + "_type": "ARC4Encode" } - ] + ], + "wtype": { + "types": [ + { + "length": 4, + "_type": "BytesWType" + }, + { + "arc4_alias": "string", + "source_location": null, + "immutable": true, + "element_type": { + "arc4_alias": "byte", + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "_type": "ARC4DynamicArray" + } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" } - } + }, + "_type": "CreateInnerTransaction" } - ] + ], + "_type": "SubmitInnerTransaction" } - ] + ], + "wtype": { + "types": [ + { + "immutable": true, + "transaction_type": 6, + "name": "inner_transaction_appl", + "_type": "WInnerTransaction" + } + ], + "source_location": null, + "name": "TypedApplicationCallResponseType", + "names": [ + "itxn" + ], + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" }, - "name": "itxn" + "name": "itxn", + "_type": "FieldExpression" }, "field": "CreatedApplicationID", - "array_index": null - } + "array_index": null, + "_type": "InnerTransactionField" + }, + "_type": "AssignmentStatement" }, { - "_type": "Block", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 58, "end_line": 58, + "comment_lines": 0, "column": 4, "end_column": 34 }, "body": [ { - "_type": "ForInLoop", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 58, "end_line": 58, + "comment_lines": 0, "column": 4, "end_column": 34 }, "sequence": { - "_type": "Range", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 58, "end_line": 58, + "comment_lines": 0, "column": 20, "end_column": 33 }, "start": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 58, "end_line": 58, + "comment_lines": 0, "column": 20, "end_column": 33 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 0, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" }, "stop": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 58, "end_line": 58, + "comment_lines": 0, "column": 27, "end_column": 32 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "count" + "name": "count", + "_type": "VarExpression" }, "step": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 58, "end_line": 58, + "comment_lines": 0, "column": 20, "end_column": 33 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 1, - "teal_alias": null - } + "teal_alias": null, + "_type": "IntegerConstant" + }, + "_type": "Range" }, "items": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 58, "end_line": 58, + "comment_lines": 0, "column": 9, "end_column": 16 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "temp" + "name": "temp", + "_type": "VarExpression" }, "loop_body": { - "_type": "Block", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 58, "end_line": 58, + "comment_lines": 0, "column": 4, "end_column": 34 }, "body": [ { - "_type": "AssignmentStatement", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 58, "end_line": 58, + "comment_lines": 0, "column": 9, "end_column": 16 }, "target": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 58, "end_line": 58, + "comment_lines": 0, "column": 15, "end_column": 16 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "i" + "name": "i", + "_type": "VarExpression" }, "value": { - "_type": "Copy", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 58, "end_line": 58, + "comment_lines": 0, "column": 9, "end_column": 16 }, - "wtype": { - "_type": "WType", - "name": "uint64", - "immutable": true - }, "value": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 58, "end_line": 58, + "comment_lines": 0, "column": 9, "end_column": 16 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "temp" - } - } + "name": "temp", + "_type": "VarExpression" + }, + "wtype": { + "name": "uint64", + "immutable": true, + "_type": "WType" + }, + "_type": "Copy" + }, + "_type": "AssignmentStatement" }, { - "_type": "Block", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 58, "end_line": 64, + "comment_lines": 0, "column": 35, "end_column": 5 }, "body": [ { - "_type": "IfElse", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 59, "end_line": 59, + "comment_lines": 0, "column": 6, "end_column": 18 }, "condition": { - "_type": "NumericComparisonExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 59, "end_line": 59, + "comment_lines": 0, "column": 10, "end_column": 17 }, "lhs": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 59, "end_line": 59, + "comment_lines": 0, "column": 10, "end_column": 11 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "i" + "name": "i", + "_type": "VarExpression" }, "operator": "==", "rhs": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 59, "end_line": 59, + "comment_lines": 0, "column": 16, "end_column": 17 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 0, - "teal_alias": null - } + "teal_alias": null, + "_type": "IntegerConstant" + }, + "_type": "NumericComparisonExpression" }, "if_branch": { - "_type": "Block", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 59, "end_line": 61, + "comment_lines": 0, "column": 19, "end_column": 7 }, "body": [ { - "_type": "Block", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 59, "end_line": 61, + "comment_lines": 0, "column": 19, "end_column": 7 }, "body": [ { - "_type": "ExpressionStatement", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 60, - "end_line": 60, - "column": 8, - "end_column": 81 - }, "expr": { - "_type": "SetInnerTransactionFields", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 60, "end_line": 60, + "comment_lines": 0, "column": 8, "end_column": 81 }, "itxns": [ { - "_type": "CreateInnerTransaction", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 60, "end_line": 60, + "comment_lines": 0, "column": 8, "end_column": 81 }, "wtype": { - "_type": "WInnerTransactionFields", - "name": "inner_transaction_fields_appl", "immutable": true, - "transaction_type": 6 + "transaction_type": 6, + "name": "inner_transaction_fields_appl", + "_type": "WInnerTransactionFields" }, "fields": { "Fee": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 60, "end_line": 60, + "comment_lines": 0, "column": 8, "end_column": 81 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 0, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" }, "TypeEnum": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 60, "end_line": 60, + "comment_lines": 0, "column": 8, "end_column": 81 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 6, - "teal_alias": "appl" + "teal_alias": "appl", + "_type": "IntegerConstant" }, "ApplicationID": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 60, "end_line": 60, + "comment_lines": 0, "column": 59, "end_column": 64 }, "wtype": { - "_type": "WType", "name": "application", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "appId" + "name": "appId", + "_type": "VarExpression" }, "ApplicationArgs": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 60, "end_line": 60, + "comment_lines": 0, "column": 8, "end_column": 81 }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "BytesWType", - "length": 4 - }, - { - "_type": "ARC4DynamicArray", - "immutable": true, - "arc4_alias": "string", - "element_type": { - "_type": "ARC4UIntN", - "arc4_alias": "byte", - "n": 8 - }, - "source_location": null - } - ] - }, "items": [ { - "_type": "MethodConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 60, "end_line": 60, + "comment_lines": 0, "column": 8, "end_column": 81 }, "wtype": { - "_type": "BytesWType", - "length": 4 + "length": 4, + "_type": "BytesWType" }, "value": { - "_type": "MethodSignature", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 60, "end_line": 60, + "comment_lines": 0, "column": 8, "end_column": 81 }, "name": "greet", "arg_types": [ { - "_type": "WType", "name": "string", - "immutable": true + "immutable": true, + "_type": "WType" } ], "return_type": { - "_type": "WType", "name": "string", - "immutable": true + "immutable": true, + "_type": "WType" }, "resource_encoding": "value" - } + }, + "_type": "MethodConstant" }, { - "_type": "ARC4Encode", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 60, "end_line": 60, + "comment_lines": 0, "column": 73, "end_column": 77 }, - "wtype": { - "_type": "ARC4DynamicArray", - "immutable": true, - "arc4_alias": "string", - "element_type": { - "_type": "ARC4UIntN", - "arc4_alias": "byte", - "n": 8 - }, - "source_location": null - }, "value": { - "_type": "StringConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 60, "end_line": 60, + "comment_lines": 0, "column": 73, "end_column": 77 }, + "value": "ho", "wtype": { - "_type": "WType", "name": "string", - "immutable": true + "immutable": true, + "_type": "WType" + }, + "_type": "StringConstant" + }, + "wtype": { + "arc4_alias": "string", + "source_location": null, + "immutable": true, + "element_type": { + "arc4_alias": "byte", + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "value": "ho" + "_type": "ARC4DynamicArray" }, - "error_message": null + "error_message": null, + "_type": "ARC4Encode" } - ] + ], + "wtype": { + "types": [ + { + "length": 4, + "_type": "BytesWType" + }, + { + "arc4_alias": "string", + "source_location": null, + "immutable": true, + "element_type": { + "arc4_alias": "byte", + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "_type": "ARC4DynamicArray" + } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" } - } + }, + "_type": "CreateInnerTransaction" } ], - "start_with_begin": true - } + "start_with_begin": true, + "_type": "SetInnerTransactionFields" + }, + "_type": "ExpressionStatement" } ], "label": null, - "comment": null + "comment": null, + "_type": "Block" } ], "label": null, - "comment": null + "comment": null, + "_type": "Block" }, "else_branch": { - "_type": "Block", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 61, "end_line": 63, + "comment_lines": 0, "column": 13, "end_column": 7 }, "body": [ { - "_type": "Block", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 61, "end_line": 63, + "comment_lines": 0, "column": 13, "end_column": 7 }, "body": [ { - "_type": "ExpressionStatement", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 62, - "end_line": 62, - "column": 8, - "end_column": 80 - }, "expr": { - "_type": "SetInnerTransactionFields", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 62, "end_line": 62, + "comment_lines": 0, "column": 8, "end_column": 80 }, "itxns": [ { - "_type": "CreateInnerTransaction", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 62, "end_line": 62, + "comment_lines": 0, "column": 8, "end_column": 80 }, "wtype": { - "_type": "WInnerTransactionFields", - "name": "inner_transaction_fields_appl", "immutable": true, - "transaction_type": 6 + "transaction_type": 6, + "name": "inner_transaction_fields_appl", + "_type": "WInnerTransactionFields" }, "fields": { "Fee": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 62, "end_line": 62, + "comment_lines": 0, "column": 8, "end_column": 80 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 0, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" }, "TypeEnum": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 62, "end_line": 62, + "comment_lines": 0, "column": 8, "end_column": 80 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 6, - "teal_alias": "appl" + "teal_alias": "appl", + "_type": "IntegerConstant" }, "ApplicationID": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 62, "end_line": 62, + "comment_lines": 0, "column": 58, "end_column": 63 }, "wtype": { - "_type": "WType", "name": "application", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "appId" + "name": "appId", + "_type": "VarExpression" }, "ApplicationArgs": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 62, "end_line": 62, + "comment_lines": 0, "column": 8, "end_column": 80 }, - "wtype": { - "_type": "WTuple", - "name": "tuple", - "types": [ - { - "_type": "BytesWType", - "length": 4 - }, - { - "_type": "ARC4DynamicArray", - "immutable": true, - "arc4_alias": "string", - "element_type": { - "_type": "ARC4UIntN", - "arc4_alias": "byte", - "n": 8 - }, - "source_location": null - } - ] - }, "items": [ { - "_type": "MethodConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 62, "end_line": 62, + "comment_lines": 0, "column": 8, "end_column": 80 }, "wtype": { - "_type": "BytesWType", - "length": 4 + "length": 4, + "_type": "BytesWType" }, "value": { - "_type": "MethodSignature", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 62, "end_line": 62, + "comment_lines": 0, "column": 8, "end_column": 80 }, "name": "greet", "arg_types": [ { - "_type": "WType", "name": "string", - "immutable": true + "immutable": true, + "_type": "WType" } ], "return_type": { - "_type": "WType", "name": "string", - "immutable": true + "immutable": true, + "_type": "WType" }, "resource_encoding": "value" - } + }, + "_type": "MethodConstant" }, { - "_type": "ARC4Encode", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 62, "end_line": 62, + "comment_lines": 0, "column": 72, "end_column": 76 }, - "wtype": { - "_type": "ARC4DynamicArray", - "immutable": true, - "arc4_alias": "string", - "element_type": { - "_type": "ARC4UIntN", - "arc4_alias": "byte", - "n": 8 - }, - "source_location": null - }, "value": { - "_type": "StringConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 62, "end_line": 62, + "comment_lines": 0, "column": 72, "end_column": 76 }, + "value": "ho", "wtype": { - "_type": "WType", "name": "string", - "immutable": true + "immutable": true, + "_type": "WType" + }, + "_type": "StringConstant" + }, + "wtype": { + "arc4_alias": "string", + "source_location": null, + "immutable": true, + "element_type": { + "arc4_alias": "byte", + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" }, - "value": "ho" + "_type": "ARC4DynamicArray" }, - "error_message": null + "error_message": null, + "_type": "ARC4Encode" } - ] + ], + "wtype": { + "types": [ + { + "length": 4, + "_type": "BytesWType" + }, + { + "arc4_alias": "string", + "source_location": null, + "immutable": true, + "element_type": { + "arc4_alias": "byte", + "n": 8, + "source_location": null, + "_type": "ARC4UIntN" + }, + "_type": "ARC4DynamicArray" + } + ], + "source_location": null, + "name": "tuple", + "names": null, + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" } - } + }, + "_type": "CreateInnerTransaction" } ], - "start_with_begin": false - } + "start_with_begin": false, + "_type": "SetInnerTransactionFields" + }, + "_type": "ExpressionStatement" } ], "label": null, - "comment": null + "comment": null, + "_type": "Block" } ], "label": null, - "comment": null - } + "comment": null, + "_type": "Block" + }, + "_type": "IfElse" } ], "label": null, - "comment": null + "comment": null, + "_type": "Block" } ], "label": null, - "comment": null - } + "comment": null, + "_type": "Block" + }, + "_type": "ForInLoop" } ], "label": null, - "comment": null + "comment": null, + "_type": "Block" }, { - "_type": "ExpressionStatement", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 65, - "end_line": 65, - "column": 4, - "end_column": 24 - }, "expr": { - "_type": "IntrinsicCall", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 65, "end_line": 65, + "comment_lines": 0, "column": 4, "end_column": 24 }, "wtype": { - "_type": "WType", "name": "void", - "immutable": true + "immutable": true, + "_type": "WType" }, "op_code": "itxn_submit", "immediates": [], - "stack_args": [] - } + "stack_args": [], + "_type": "IntrinsicCall" + }, + "_type": "ExpressionStatement" } ], "label": null, - "comment": null + "comment": null, + "_type": "Block" }, "documentation": { - "_type": "MethodDocumentation", "description": null, "args": {}, "returns": null @@ -10022,11 +10769,11 @@ "cref": "tests/approvals/itxn-compose.algo.ts::ItxnComposeAlgo", "member_name": "conditionalBegin", "arc4_method_config": { - "_type": "ARC4ABIMethodConfig", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 54, "end_line": 54, + "comment_lines": 0, "column": 2, "end_column": 33 }, @@ -10042,35 +10789,35 @@ } }, { - "_type": "ContractMethod", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 18, "end_line": 18, + "comment_lines": 0, "column": 0, "end_column": 40 }, "args": [], "return_type": { - "_type": "WType", "name": "void", - "immutable": true + "immutable": true, + "_type": "WType" }, "body": { - "_type": "Block", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 18, "end_line": 18, + "comment_lines": 0, "column": 0, "end_column": 40 }, "body": [], "label": null, - "comment": null + "comment": null, + "_type": "Block" }, "documentation": { - "_type": "MethodDocumentation", "description": "Implicitly generated create method", "args": {}, "returns": null @@ -10080,11 +10827,11 @@ "cref": "tests/approvals/itxn-compose.algo.ts::ItxnComposeAlgo", "member_name": "__algots__.defaultCreate", "arc4_method_config": { - "_type": "ARC4BareMethodConfig", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 18, "end_line": 18, + "comment_lines": 0, "column": 0, "end_column": 40 }, @@ -10097,21 +10844,21 @@ ], "app_state": [], "state_totals": { - "_type": "StateTotals", "global_uints": null, "local_uints": null, "global_bytes": null, "local_bytes": null }, "reserved_scratch_space": [], - "avm_version": null + "avm_version": null, + "_type": "Contract" }, { - "_type": "Contract", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 69, "end_line": 69, + "comment_lines": 0, "column": 0, "end_column": 41 }, @@ -10123,56 +10870,58 @@ "@algorandfoundation/algorand-typescript/base-contract.d.ts::BaseContract" ], "approval_program": { - "_type": "ContractMethod", "source_location": { "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 }, "args": [], "return_type": { - "_type": "WType", "name": "bool", - "immutable": true + "immutable": true, + "_type": "WType" }, "body": { - "_type": "Block", "source_location": { "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 }, "body": [ { - "_type": "ReturnStatement", "source_location": { "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 }, "value": { - "_type": "ARC4Router", "source_location": { "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 - } - } + }, + "_type": "ARC4Router" + }, + "_type": "ReturnStatement" } ], "label": null, - "comment": null + "comment": null, + "_type": "Block" }, "documentation": { - "_type": "MethodDocumentation", "description": null, "args": {}, "returns": null @@ -10184,62 +10933,64 @@ "arc4_method_config": null }, "clear_program": { - "_type": "ContractMethod", "source_location": { "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 }, "args": [], "return_type": { - "_type": "WType", "name": "bool", - "immutable": true + "immutable": true, + "_type": "WType" }, "body": { - "_type": "Block", "source_location": { "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 }, "body": [ { - "_type": "ReturnStatement", "source_location": { "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 }, "value": { - "_type": "BoolConstant", "source_location": { "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 }, + "value": true, "wtype": { - "_type": "WType", "name": "bool", - "immutable": true + "immutable": true, + "_type": "WType" }, - "value": true - } + "_type": "BoolConstant" + }, + "_type": "ReturnStatement" } ], "label": null, - "comment": null + "comment": null, + "_type": "Block" }, "documentation": { - "_type": "MethodDocumentation", "description": null, "args": {}, "returns": null @@ -10252,248 +11003,250 @@ }, "methods": [ { - "_type": "ContractMethod", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 70, "end_line": 70, + "comment_lines": 0, "column": 2, "end_column": 10 }, "args": [], "return_type": { - "_type": "WType", "name": "void", - "immutable": true + "immutable": true, + "_type": "WType" }, "body": { - "_type": "Block", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 70, "end_line": 75, + "comment_lines": 0, "column": 11, "end_column": 3 }, "body": [ { - "_type": "AssignmentStatement", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 71, "end_line": 71, + "comment_lines": 0, "column": 13, "end_column": 26 }, "target": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 71, "end_line": 71, + "comment_lines": 0, "column": 13, "end_column": 14 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "i" + "name": "i", + "_type": "VarExpression" }, "value": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 71, "end_line": 71, + "comment_lines": 0, "column": 25, "end_column": 26 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 0, - "teal_alias": null - } + "teal_alias": null, + "_type": "IntegerConstant" + }, + "_type": "AssignmentStatement" }, { - "_type": "WhileLoop", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 71, "end_line": 71, + "comment_lines": 0, "column": 4, "end_column": 52 }, "condition": { - "_type": "NumericComparisonExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 71, "end_line": 71, + "comment_lines": 0, "column": 28, "end_column": 46 }, "lhs": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 71, "end_line": 71, + "comment_lines": 0, "column": 28, "end_column": 29 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "i" + "name": "i", + "_type": "VarExpression" }, "operator": "<", "rhs": { - "_type": "IntrinsicCall", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 71, "end_line": 71, + "comment_lines": 0, "column": 32, "end_column": 46 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "op_code": "txn", "immediates": [ "GroupIndex" ], - "stack_args": [] - } + "stack_args": [], + "_type": "IntrinsicCall" + }, + "_type": "NumericComparisonExpression" }, "loop_body": { - "_type": "Block", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 71, "end_line": 71, + "comment_lines": 0, "column": 4, "end_column": 52 }, "body": [ { - "_type": "Block", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 71, "end_line": 74, + "comment_lines": 0, "column": 53, "end_column": 5 }, "body": [ { - "_type": "AssignmentStatement", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 72, "end_line": 72, + "comment_lines": 0, "column": 12, "end_column": 37 }, "target": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 72, "end_line": 72, + "comment_lines": 0, "column": 12, "end_column": 15 }, "wtype": { - "_type": "WGroupTransaction", - "name": "group_transaction", "immutable": true, - "transaction_type": null + "transaction_type": null, + "name": "group_transaction", + "_type": "WGroupTransaction" }, - "name": "txn" + "name": "txn", + "_type": "VarExpression" }, "value": { - "_type": "GroupTransactionReference", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 72, "end_line": 72, + "comment_lines": 0, "column": 18, "end_column": 37 }, - "wtype": { - "_type": "WGroupTransaction", - "name": "group_transaction", - "immutable": true, - "transaction_type": null - }, "index": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 72, "end_line": 72, + "comment_lines": 0, "column": 35, "end_column": 36 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "i" - } - } + "name": "i", + "_type": "VarExpression" + }, + "wtype": { + "immutable": true, + "transaction_type": null, + "name": "group_transaction", + "_type": "WGroupTransaction" + }, + "_type": "GroupTransactionReference" + }, + "_type": "AssignmentStatement" }, { - "_type": "ExpressionStatement", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 73, - "end_line": 73, - "column": 6, - "end_column": 69 - }, "expr": { - "_type": "AssertExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 73, "end_line": 73, + "comment_lines": 0, "column": 6, "end_column": 69 }, "condition": { - "_type": "NumericComparisonExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 73, "end_line": 73, + "comment_lines": 0, "column": 13, "end_column": 49 }, "lhs": { - "_type": "IntrinsicCall", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 73, "end_line": 73, + "comment_lines": 0, "column": 13, "end_column": 21 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "op_code": "gtxns", "immediates": [ @@ -10501,114 +11254,120 @@ ], "stack_args": [ { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 73, "end_line": 73, + "comment_lines": 0, "column": 13, "end_column": 16 }, "wtype": { - "_type": "WGroupTransaction", - "name": "group_transaction", "immutable": true, - "transaction_type": null + "transaction_type": null, + "name": "group_transaction", + "_type": "WGroupTransaction" }, - "name": "txn" + "name": "txn", + "_type": "VarExpression" } - ] + ], + "_type": "IntrinsicCall" }, "operator": "==", "rhs": { - "_type": "ReinterpretCast", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 73, "end_line": 73, + "comment_lines": 0, "column": 26, "end_column": 49 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "expr": { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 73, "end_line": 73, + "comment_lines": 0, "column": 26, "end_column": 49 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, "value": 1, - "teal_alias": null - } - } + "teal_alias": null, + "_type": "IntegerConstant" + }, + "_type": "ReinterpretCast" + }, + "_type": "NumericComparisonExpression" }, "error_message": "Txn must be pay", - "explicit": true - } + "explicit": true, + "log_error": false, + "_type": "AssertExpression" + }, + "_type": "ExpressionStatement" } ], "label": null, - "comment": null + "comment": null, + "_type": "Block" }, { - "_type": "ExpressionStatement", - "source_location": { - "file": "%DIR%/itxn-compose.algo.ts", - "line": 71, - "end_line": 71, - "column": 48, - "end_column": 51 - }, "expr": { - "_type": "UInt64PostfixUnaryOperation", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 71, "end_line": 71, + "comment_lines": 0, "column": 48, "end_column": 51 }, "op": "++", "target": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 71, "end_line": 71, + "comment_lines": 0, "column": 48, "end_column": 49 }, "wtype": { - "_type": "WType", "name": "uint64", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "i" - } - } + "name": "i", + "_type": "VarExpression" + }, + "_type": "UInt64PostfixUnaryOperation" + }, + "_type": "ExpressionStatement" } ], "label": null, - "comment": null - } + "comment": null, + "_type": "Block" + }, + "_type": "WhileLoop" } ], "label": null, - "comment": null + "comment": null, + "_type": "Block" }, "documentation": { - "_type": "MethodDocumentation", "description": null, "args": {}, "returns": null @@ -10618,11 +11377,11 @@ "cref": "tests/approvals/itxn-compose.algo.ts::VerifierContract", "member_name": "verify", "arc4_method_config": { - "_type": "ARC4ABIMethodConfig", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 70, "end_line": 70, + "comment_lines": 0, "column": 2, "end_column": 10 }, @@ -10638,35 +11397,35 @@ } }, { - "_type": "ContractMethod", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 69, "end_line": 69, + "comment_lines": 0, "column": 0, "end_column": 41 }, "args": [], "return_type": { - "_type": "WType", "name": "void", - "immutable": true + "immutable": true, + "_type": "WType" }, "body": { - "_type": "Block", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 69, "end_line": 69, + "comment_lines": 0, "column": 0, "end_column": 41 }, "body": [], "label": null, - "comment": null + "comment": null, + "_type": "Block" }, "documentation": { - "_type": "MethodDocumentation", "description": "Implicitly generated create method", "args": {}, "returns": null @@ -10676,11 +11435,11 @@ "cref": "tests/approvals/itxn-compose.algo.ts::VerifierContract", "member_name": "__algots__.defaultCreate", "arc4_method_config": { - "_type": "ARC4BareMethodConfig", "source_location": { "file": "%DIR%/itxn-compose.algo.ts", "line": 69, "end_line": 69, + "comment_lines": 0, "column": 0, "end_column": 41 }, @@ -10693,13 +11452,13 @@ ], "app_state": [], "state_totals": { - "_type": "StateTotals", "global_uints": null, "local_uints": null, "global_bytes": null, "local_bytes": null }, "reserved_scratch_space": [], - "avm_version": null + "avm_version": null, + "_type": "Contract" } ] diff --git a/tests/from_awst/ops_should_be_mutated/module.awst.json b/tests/from_awst/ops_should_be_mutated/module.awst.json index 243e473bc1..ce00a8a805 100644 --- a/tests/from_awst/ops_should_be_mutated/module.awst.json +++ b/tests/from_awst/ops_should_be_mutated/module.awst.json @@ -1,10 +1,10 @@ [ { - "_type": "Contract", "source_location": { "file": "%DIR%/tests/approvals/mutable-object.algo.ts", "line": 3, "end_line": 3, + "comment_lines": 0, "column": 0, "end_column": 49 }, @@ -16,599 +16,514 @@ "@algorandfoundation/algorand-typescript/base-contract.d.ts::BaseContract" ], "approval_program": { - "_type": "ContractMethod", "source_location": { - "_type": "SourceLocation", "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 }, "args": [], "return_type": { - "_type": "WType", "name": "bool", - "immutable": true + "immutable": true, + "_type": "WType" }, "body": { - "_type": "Block", "source_location": { - "_type": "SourceLocation", "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 }, "body": [ { - "_type": "ReturnStatement", "source_location": { - "_type": "SourceLocation", "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 }, "value": { - "_type": "ARC4Router", "source_location": { - "_type": "SourceLocation", "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 }, - "wtype": { - "_type": "WType", - "name": "bool", - "immutable": true - } - } + "_type": "ARC4Router" + }, + "_type": "ReturnStatement" } ], "label": null, - "comment": null + "comment": null, + "_type": "Block" }, "documentation": { - "_type": "MethodDocumentation", "description": null, "args": {}, "returns": null }, "inline": null, + "pure": false, "cref": "@algorandfoundation/algorand-typescript/arc4/index.d.ts::Contract", "member_name": "approvalProgram", "arc4_method_config": null }, "clear_program": { - "_type": "ContractMethod", "source_location": { - "_type": "SourceLocation", "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 }, "args": [], "return_type": { - "_type": "WType", "name": "bool", - "immutable": true + "immutable": true, + "_type": "WType" }, "body": { - "_type": "Block", "source_location": { - "_type": "SourceLocation", "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 }, "body": [ { - "_type": "ReturnStatement", "source_location": { - "_type": "SourceLocation", "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 }, "value": { - "_type": "BoolConstant", "source_location": { - "_type": "SourceLocation", "file": null, "line": 1, "end_line": 1, + "comment_lines": 0, "column": 0, "end_column": 1 }, + "value": true, "wtype": { - "_type": "WType", "name": "bool", - "immutable": true + "immutable": true, + "_type": "WType" }, - "value": true - } + "_type": "BoolConstant" + }, + "_type": "ReturnStatement" } ], "label": null, - "comment": null + "comment": null, + "_type": "Block" }, "documentation": { - "_type": "MethodDocumentation", "description": null, "args": {}, "returns": null }, "inline": null, + "pure": false, "cref": "@algorandfoundation/algorand-typescript/base-contract.d.ts::BaseContract", "member_name": "clearStateProgram", "arc4_method_config": null }, "methods": [ { - "_type": "ContractMethod", "source_location": { "file": "%DIR%/tests/approvals/mutable-object.algo.ts", "line": 6, "end_line": 6, + "comment_lines": 0, "column": 2, "end_column": 31 }, "args": [ { - "_type": "SubroutineArgument", "name": "key", "source_location": { "file": "%DIR%/tests/approvals/mutable-object.algo.ts", "line": 6, "end_line": 6, + "comment_lines": 0, "column": 19, "end_column": 30 }, "wtype": { - "_type": "WType", "name": "string", - "immutable": true + "immutable": true, + "_type": "WType" } } ], "return_type": { - "_type": "WType", "name": "void", - "immutable": true + "immutable": true, + "_type": "WType" }, "body": { - "_type": "Block", "source_location": { "file": "%DIR%/tests/approvals/mutable-object.algo.ts", "line": 6, "end_line": 10, + "comment_lines": 0, "column": 32, "end_column": 3 }, "body": [ { - "_type": "ExpressionStatement", - "source_location": { - "file": "%DIR%/tests/approvals/mutable-object.algo.ts", - "line": 7, - "end_line": 9, - "column": 4, - "end_column": 5 - }, "expr": { - "_type": "CommaExpression", "source_location": { "file": "%DIR%/tests/approvals/mutable-object.algo.ts", "line": 7, "end_line": 9, + "comment_lines": 0, "column": 4, "end_column": 5 }, - "wtype": { - "_type": "ARC4Struct", - "name": "{lastValidRound:UintN<64>}", - "immutable": false, - "arc4_alias": null, - "fields": { - "lastValidRound": { - "_type": "ARC4UIntN", - "name": "arc4.uint64", - "immutable": true, - "arc4_alias": null, - "n": 64 - } - }, - "source_location": null, - "frozen": false, - "desc": null - }, "expressions": [ { - "_type": "AssignmentExpression", "source_location": { "file": "%DIR%/tests/approvals/mutable-object.algo.ts", "line": 7, "end_line": 9, + "comment_lines": 0, "column": 4, "end_column": 5 }, - "wtype": { - "_type": "ARC4Struct", - "name": "PluginInfo", - "immutable": false, - "arc4_alias": null, - "fields": { - "lastValidRound": { - "_type": "ARC4UIntN", - "name": "arc4.uint64", - "immutable": true, - "arc4_alias": null, - "n": 64 - } - }, - "source_location": null, - "frozen": false, - "desc": null - }, "target": { - "_type": "BoxValueExpression", "source_location": { "file": "%DIR%/tests/approvals/mutable-object.algo.ts", "line": 7, "end_line": 7, + "comment_lines": 0, "column": 22, "end_column": 27 }, "wtype": { - "_type": "ARC4Struct", "name": "PluginInfo", - "immutable": false, - "arc4_alias": null, - "fields": { - "lastValidRound": { - "_type": "ARC4UIntN", - "name": "arc4.uint64", - "immutable": true, - "arc4_alias": null, - "n": 64 + "_fields": [ + { + "name": "lastValidRound", + "wtype": { + "arc4_alias": null, + "n": 64, + "source_location": null, + "_type": "ARC4UIntN" + }, + "description": null } - }, - "source_location": null, + ], "frozen": false, - "desc": null + "source_location": null, + "desc": null, + "_type": "ARC4Struct" }, "key": { - "_type": "BoxPrefixedKeyExpression", "source_location": { "file": "%DIR%/tests/approvals/mutable-object.algo.ts", "line": 4, "end_line": 4, + "comment_lines": 0, "column": 52, "end_column": 61 }, - "wtype": { - "_type": "WType", - "name": "box_key", - "immutable": true - }, "prefix": { - "_type": "BytesConstant", "source_location": { "file": "%DIR%/tests/approvals/mutable-object.algo.ts", "line": 4, "end_line": 4, + "comment_lines": 0, "column": 52, "end_column": 61 }, + "value": "aBOvFX>M}", "wtype": { - "_type": "WType", "name": "box_key", - "immutable": true + "immutable": true, + "_type": "WType" }, - "value": "aBOvFX>M}", - "encoding": "utf8" + "encoding": "utf8", + "_type": "BytesConstant" }, "key": { - "_type": "VarExpression", "source_location": { "file": "%DIR%/tests/approvals/mutable-object.algo.ts", "line": 7, "end_line": 7, + "comment_lines": 0, "column": 17, "end_column": 20 }, "wtype": { - "_type": "WType", "name": "string", - "immutable": true + "immutable": true, + "_type": "WType" }, - "name": "key" - } + "name": "key", + "_type": "VarExpression" + }, + "_type": "BoxPrefixedKeyExpression" }, - "exists_assertion_message": "Box must have value" + "exists_assertion_message": "Box must have value", + "_type": "BoxValueExpression" }, "value": { - "_type": "NewStruct", "source_location": { "file": "%DIR%/tests/approvals/mutable-object.algo.ts", "line": 7, "end_line": 9, + "comment_lines": 0, "column": 30, "end_column": 5 }, "wtype": { - "_type": "ARC4Struct", "name": "PluginInfo", - "immutable": false, - "arc4_alias": null, - "fields": { - "lastValidRound": { - "_type": "ARC4UIntN", - "name": "arc4.uint64", - "immutable": true, - "arc4_alias": null, - "n": 64 + "_fields": [ + { + "name": "lastValidRound", + "wtype": { + "arc4_alias": null, + "n": 64, + "source_location": null, + "_type": "ARC4UIntN" + }, + "description": null } - }, - "source_location": null, + ], "frozen": false, - "desc": null + "source_location": null, + "desc": null, + "_type": "ARC4Struct" }, "values": { "lastValidRound": { - "_type": "FieldExpression", "source_location": { "file": "%DIR%/tests/approvals/mutable-object.algo.ts", "line": 7, "end_line": 9, + "comment_lines": 0, "column": 30, "end_column": 5 }, - "wtype": { - "_type": "ARC4UIntN", - "name": "arc4.uint64", - "immutable": true, - "arc4_alias": null, - "n": 64 - }, "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/tests/approvals/mutable-object.algo.ts", - "line": 7, - "end_line": 9, - "column": 30, - "end_column": 5 - }, - "wtype": { - "_type": "WTuple", - "name": "{lastValidRound:UintN<64>}", - "immutable": true, - "types": [ - { - "_type": "ARC4UIntN", - "name": "arc4.uint64", - "immutable": true, - "arc4_alias": null, - "n": 64 - } - ], - "names": [ - "lastValidRound" - ] - }, "source": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/tests/approvals/mutable-object.algo.ts", "line": 7, "end_line": 9, + "comment_lines": 0, "column": 30, "end_column": 5 }, - "wtype": { - "_type": "WTuple", - "name": "{lastValidRound:UintN<64>}", - "immutable": true, - "types": [ - { - "_type": "ARC4UIntN", - "name": "arc4.uint64", - "immutable": true, - "arc4_alias": null, - "n": 64 - } - ], - "names": [ - "lastValidRound" - ] - }, "items": [ { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/tests/approvals/mutable-object.algo.ts", "line": 8, "end_line": 8, + "comment_lines": 0, "column": 22, "end_column": 41 }, "wtype": { - "_type": "ARC4UIntN", - "name": "arc4.uint64", - "immutable": true, "arc4_alias": null, - "n": 64 + "n": 64, + "source_location": null, + "_type": "ARC4UIntN" }, "value": 1, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" } - ] + ], + "wtype": { + "types": [ + { + "arc4_alias": null, + "n": 64, + "source_location": null, + "_type": "ARC4UIntN" + } + ], + "source_location": null, + "name": "{lastValidRound:UintN<64>}", + "names": [ + "lastValidRound" + ], + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" + }, + "_id": 0, + "source_location": { + "file": "%DIR%/tests/approvals/mutable-object.algo.ts", + "line": 7, + "end_line": 9, + "comment_lines": 0, + "column": 30, + "end_column": 5 }, - "_id": "0" + "_type": "SingleEvaluation" }, - "name": "lastValidRound" + "name": "lastValidRound", + "_type": "FieldExpression" } - } - } + }, + "_type": "NewStruct" + }, + "_type": "AssignmentExpression" }, { - "_type": "NewStruct", "source_location": { "file": "%DIR%/tests/approvals/mutable-object.algo.ts", "line": 7, "end_line": 9, + "comment_lines": 0, "column": 30, "end_column": 5 }, "wtype": { - "_type": "ARC4Struct", "name": "{lastValidRound:UintN<64>}", - "immutable": false, - "arc4_alias": null, - "fields": { - "lastValidRound": { - "_type": "ARC4UIntN", - "name": "arc4.uint64", - "immutable": true, - "arc4_alias": null, - "n": 64 + "_fields": [ + { + "name": "lastValidRound", + "wtype": { + "arc4_alias": null, + "n": 64, + "source_location": null, + "_type": "ARC4UIntN" + }, + "description": null } - }, - "source_location": null, + ], "frozen": false, - "desc": null + "source_location": null, + "desc": null, + "_type": "ARC4Struct" }, "values": { "lastValidRound": { - "_type": "FieldExpression", "source_location": { "file": "%DIR%/tests/approvals/mutable-object.algo.ts", "line": 7, "end_line": 9, + "comment_lines": 0, "column": 30, "end_column": 5 }, - "wtype": { - "_type": "ARC4UIntN", - "name": "arc4.uint64", - "immutable": true, - "arc4_alias": null, - "n": 64 - }, "base": { - "_type": "SingleEvaluation", - "source_location": { - "file": "%DIR%/tests/approvals/mutable-object.algo.ts", - "line": 7, - "end_line": 9, - "column": 30, - "end_column": 5 - }, - "wtype": { - "_type": "WTuple", - "name": "{lastValidRound:UintN<64>}", - "immutable": true, - "types": [ - { - "_type": "ARC4UIntN", - "name": "arc4.uint64", - "immutable": true, - "arc4_alias": null, - "n": 64 - } - ], - "names": [ - "lastValidRound" - ] - }, "source": { - "_type": "TupleExpression", "source_location": { "file": "%DIR%/tests/approvals/mutable-object.algo.ts", "line": 7, "end_line": 9, + "comment_lines": 0, "column": 30, "end_column": 5 }, - "wtype": { - "_type": "WTuple", - "name": "{lastValidRound:UintN<64>}", - "immutable": true, - "types": [ - { - "_type": "ARC4UIntN", - "name": "arc4.uint64", - "immutable": true, - "arc4_alias": null, - "n": 64 - } - ], - "names": [ - "lastValidRound" - ] - }, "items": [ { - "_type": "IntegerConstant", "source_location": { "file": "%DIR%/tests/approvals/mutable-object.algo.ts", "line": 8, "end_line": 8, + "comment_lines": 0, "column": 22, "end_column": 41 }, "wtype": { - "_type": "ARC4UIntN", - "name": "arc4.uint64", - "immutable": true, "arc4_alias": null, - "n": 64 + "n": 64, + "source_location": null, + "_type": "ARC4UIntN" }, "value": 1, - "teal_alias": null + "teal_alias": null, + "_type": "IntegerConstant" } - ] + ], + "wtype": { + "types": [ + { + "arc4_alias": null, + "n": 64, + "source_location": null, + "_type": "ARC4UIntN" + } + ], + "source_location": null, + "name": "{lastValidRound:UintN<64>}", + "names": [ + "lastValidRound" + ], + "desc": null, + "_type": "WTuple" + }, + "_type": "TupleExpression" }, - "_id": "0" + "_id": 0, + "source_location": { + "file": "%DIR%/tests/approvals/mutable-object.algo.ts", + "line": 7, + "end_line": 9, + "comment_lines": 0, + "column": 30, + "end_column": 5 + }, + "_type": "SingleEvaluation" }, - "name": "lastValidRound" + "name": "lastValidRound", + "_type": "FieldExpression" } - } + }, + "_type": "NewStruct" } - ] - } + ], + "_type": "CommaExpression" + }, + "_type": "ExpressionStatement" } ], "label": null, - "comment": null + "comment": null, + "_type": "Block" }, "documentation": { - "_type": "MethodDocumentation", "description": null, "args": {}, "returns": null }, "inline": null, + "pure": false, "cref": "tests/approvals/mutable-object.algo.ts::MutableObjectDemo", "member_name": "setPlugin", "arc4_method_config": { - "_type": "ARC4ABIMethodConfig", "source_location": { "file": "%DIR%/tests/approvals/mutable-object.algo.ts", "line": 6, "end_line": 6, + "comment_lines": 0, "column": 2, "end_column": 31 }, @@ -617,53 +532,56 @@ ], "create": 3, "name": "setPlugin", + "resource_encoding": "value", "readonly": false, - "default_args": {} + "default_args": {}, + "validate_encoding": null } }, { - "_type": "ContractMethod", "source_location": { "file": "%DIR%/tests/approvals/mutable-object.algo.ts", "line": 3, "end_line": 3, + "comment_lines": 0, "column": 0, "end_column": 49 }, "args": [], "return_type": { - "_type": "WType", "name": "void", - "immutable": true + "immutable": true, + "_type": "WType" }, "body": { - "_type": "Block", "source_location": { "file": "%DIR%/tests/approvals/mutable-object.algo.ts", "line": 3, "end_line": 3, + "comment_lines": 0, "column": 0, "end_column": 49 }, "body": [], "label": null, - "comment": null + "comment": null, + "_type": "Block" }, "documentation": { - "_type": "MethodDocumentation", "description": "Implicitly generated create method", "args": {}, "returns": null }, "inline": null, + "pure": false, "cref": "tests/approvals/mutable-object.algo.ts::MutableObjectDemo", "member_name": "__algots__.defaultCreate", "arc4_method_config": { - "_type": "ARC4BareMethodConfig", "source_location": { "file": "%DIR%/tests/approvals/mutable-object.algo.ts", "line": 3, "end_line": 3, + "comment_lines": 0, "column": 0, "end_column": 49 }, @@ -676,67 +594,69 @@ ], "app_state": [ { - "_type": "AppStorageDefinition", "source_location": { "file": "%DIR%/tests/approvals/mutable-object.algo.ts", "line": 4, "end_line": 4, + "comment_lines": 0, "column": 2, "end_column": 9 }, "member_name": "plugins", "kind": 3, "storage_wtype": { - "_type": "ARC4Struct", "name": "PluginInfo", - "immutable": false, - "arc4_alias": null, - "fields": { - "lastValidRound": { - "_type": "ARC4UIntN", - "name": "arc4.uint64", - "immutable": true, - "arc4_alias": null, - "n": 64 + "_fields": [ + { + "name": "lastValidRound", + "wtype": { + "arc4_alias": null, + "n": 64, + "source_location": null, + "_type": "ARC4UIntN" + }, + "description": null } - }, - "source_location": null, + ], "frozen": false, - "desc": null + "source_location": null, + "desc": null, + "_type": "ARC4Struct" }, "key_wtype": { - "_type": "WType", "name": "string", - "immutable": true + "immutable": true, + "_type": "WType" }, "key": { - "_type": "BytesConstant", "source_location": { "file": "%DIR%/tests/approvals/mutable-object.algo.ts", "line": 4, "end_line": 4, + "comment_lines": 0, "column": 52, "end_column": 61 }, + "value": "aBOvFX>M}", "wtype": { - "_type": "WType", "name": "box_key", - "immutable": true + "immutable": true, + "_type": "WType" }, - "value": "aBOvFX>M}", - "encoding": "utf8" + "encoding": "utf8", + "_type": "BytesConstant" }, "description": null } ], "state_totals": { - "_type": "StateTotals", "global_uints": null, "local_uints": null, "global_bytes": null, "local_bytes": null }, "reserved_scratch_space": [], - "avm_version": null + "avm_version": null, + "_type": "Contract" } -] +] \ No newline at end of file