-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #71 from algorand-devrel/dev
0.25.0
- Loading branch information
Showing
17 changed files
with
452 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
tests/contracts/artifacts/ABITestEmptyStaticArray.abi.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"name": "ABITestEmptyStaticArray", | ||
"desc": "", | ||
"methods": [ | ||
{ | ||
"name": "emptyStaticArray", | ||
"args": [], | ||
"desc": "", | ||
"returns": { | ||
"type": "uint16[3]", | ||
"desc": "" | ||
} | ||
} | ||
] | ||
} |
53 changes: 53 additions & 0 deletions
53
tests/contracts/artifacts/ABITestEmptyStaticArray.approval.teal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#pragma version 8 | ||
b main | ||
|
||
abi_route_emptyStaticArray: | ||
txn OnCompletion | ||
int NoOp | ||
== | ||
txn ApplicationID | ||
int 0 | ||
!= | ||
&& | ||
assert | ||
byte 0x | ||
callsub emptyStaticArray | ||
int 1 | ||
return | ||
|
||
emptyStaticArray: | ||
proto 1 0 | ||
|
||
// tests/contracts/abi.algo.ts:809 | ||
// a: StaticArray<uint<16>, 3> = [] | ||
byte 0x000000000000 | ||
frame_bury -1 // a: uint16[3] | ||
|
||
// tests/contracts/abi.algo.ts:811 | ||
// return a; | ||
frame_dig -1 // a: uint16[3] | ||
byte 0x151f7c75 | ||
swap | ||
concat | ||
log | ||
retsub | ||
|
||
main: | ||
txn NumAppArgs | ||
bnz route_abi | ||
|
||
// default createApplication | ||
txn ApplicationID | ||
int 0 | ||
== | ||
txn OnCompletion | ||
int NoOp | ||
== | ||
&& | ||
return | ||
|
||
route_abi: | ||
method "emptyStaticArray()uint16[3]" | ||
txna ApplicationArgs 0 | ||
match abi_route_emptyStaticArray | ||
err |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#pragma version 8 | ||
int 1 | ||
return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"hints": { | ||
"emptyStaticArray()uint16[3]": { | ||
"call_config": { | ||
"no_op": "CALL" | ||
} | ||
} | ||
}, | ||
"bare_call_config": { | ||
"no_op": "CREATE" | ||
}, | ||
"schema": { | ||
"local": { | ||
"declared": {}, | ||
"reserved": {} | ||
}, | ||
"global": { | ||
"declared": {}, | ||
"reserved": {} | ||
} | ||
}, | ||
"state": { | ||
"global": { | ||
"num_byte_slices": 0, | ||
"num_uints": 0 | ||
}, | ||
"local": { | ||
"num_byte_slices": 0, | ||
"num_uints": 0 | ||
} | ||
}, | ||
"source": { | ||
"approval": "I3ByYWdtYSB2ZXJzaW9uIDgKCWIgbWFpbgoKYWJpX3JvdXRlX2VtcHR5U3RhdGljQXJyYXk6Cgl0eG4gT25Db21wbGV0aW9uCglpbnQgTm9PcAoJPT0KCXR4biBBcHBsaWNhdGlvbklECglpbnQgMAoJIT0KCSYmCglhc3NlcnQKCWJ5dGUgMHgKCWNhbGxzdWIgZW1wdHlTdGF0aWNBcnJheQoJaW50IDEKCXJldHVybgoKZW1wdHlTdGF0aWNBcnJheToKCXByb3RvIDEgMAoKCS8vIHRlc3RzL2NvbnRyYWN0cy9hYmkuYWxnby50czo4MDkKCS8vIGE6IFN0YXRpY0FycmF5PHVpbnQ8MTY+LCAzPiA9IFtdCglieXRlIDB4MDAwMDAwMDAwMDAwCglmcmFtZV9idXJ5IC0xIC8vIGE6IHVpbnQxNlszXQoKCS8vIHRlc3RzL2NvbnRyYWN0cy9hYmkuYWxnby50czo4MTEKCS8vIHJldHVybiBhOwoJZnJhbWVfZGlnIC0xIC8vIGE6IHVpbnQxNlszXQoJYnl0ZSAweDE1MWY3Yzc1Cglzd2FwCgljb25jYXQKCWxvZwoJcmV0c3ViCgptYWluOgoJdHhuIE51bUFwcEFyZ3MKCWJueiByb3V0ZV9hYmkKCgkvLyBkZWZhdWx0IGNyZWF0ZUFwcGxpY2F0aW9uCgl0eG4gQXBwbGljYXRpb25JRAoJaW50IDAKCT09Cgl0eG4gT25Db21wbGV0aW9uCglpbnQgTm9PcAoJPT0KCSYmCglyZXR1cm4KCnJvdXRlX2FiaToKCW1ldGhvZCAiZW1wdHlTdGF0aWNBcnJheSgpdWludDE2WzNdIgoJdHhuYSBBcHBsaWNhdGlvbkFyZ3MgMAoJbWF0Y2ggYWJpX3JvdXRlX2VtcHR5U3RhdGljQXJyYXkKCWVycg==", | ||
"clear": "I3ByYWdtYSB2ZXJzaW9uIDgKaW50IDEKcmV0dXJu" | ||
}, | ||
"contract": { | ||
"name": "ABITestEmptyStaticArray", | ||
"desc": "", | ||
"methods": [ | ||
{ | ||
"name": "emptyStaticArray", | ||
"args": [], | ||
"desc": "", | ||
"returns": { | ||
"type": "uint16[3]", | ||
"desc": "" | ||
} | ||
} | ||
] | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
tests/contracts/artifacts/ABITestPartialStaticArray.abi.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"name": "ABITestPartialStaticArray", | ||
"desc": "", | ||
"methods": [ | ||
{ | ||
"name": "partialStaticArray", | ||
"args": [], | ||
"desc": "", | ||
"returns": { | ||
"type": "uint16[3]", | ||
"desc": "" | ||
} | ||
} | ||
] | ||
} |
57 changes: 57 additions & 0 deletions
57
tests/contracts/artifacts/ABITestPartialStaticArray.approval.teal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#pragma version 8 | ||
b main | ||
|
||
abi_route_partialStaticArray: | ||
txn OnCompletion | ||
int NoOp | ||
== | ||
txn ApplicationID | ||
int 0 | ||
!= | ||
&& | ||
assert | ||
byte 0x | ||
callsub partialStaticArray | ||
int 1 | ||
return | ||
|
||
partialStaticArray: | ||
proto 1 0 | ||
|
||
// tests/contracts/abi.algo.ts:817 | ||
// a: StaticArray<uint<16>, 3> = [1] | ||
int 1 | ||
itob | ||
extract 6 0 | ||
byte 0x00000000 | ||
concat | ||
frame_bury -1 // a: uint16[3] | ||
|
||
// tests/contracts/abi.algo.ts:819 | ||
// return a; | ||
frame_dig -1 // a: uint16[3] | ||
byte 0x151f7c75 | ||
swap | ||
concat | ||
log | ||
retsub | ||
|
||
main: | ||
txn NumAppArgs | ||
bnz route_abi | ||
|
||
// default createApplication | ||
txn ApplicationID | ||
int 0 | ||
== | ||
txn OnCompletion | ||
int NoOp | ||
== | ||
&& | ||
return | ||
|
||
route_abi: | ||
method "partialStaticArray()uint16[3]" | ||
txna ApplicationArgs 0 | ||
match abi_route_partialStaticArray | ||
err |
3 changes: 3 additions & 0 deletions
3
tests/contracts/artifacts/ABITestPartialStaticArray.clear.teal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#pragma version 8 | ||
int 1 | ||
return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"hints": { | ||
"partialStaticArray()uint16[3]": { | ||
"call_config": { | ||
"no_op": "CALL" | ||
} | ||
} | ||
}, | ||
"bare_call_config": { | ||
"no_op": "CREATE" | ||
}, | ||
"schema": { | ||
"local": { | ||
"declared": {}, | ||
"reserved": {} | ||
}, | ||
"global": { | ||
"declared": {}, | ||
"reserved": {} | ||
} | ||
}, | ||
"state": { | ||
"global": { | ||
"num_byte_slices": 0, | ||
"num_uints": 0 | ||
}, | ||
"local": { | ||
"num_byte_slices": 0, | ||
"num_uints": 0 | ||
} | ||
}, | ||
"source": { | ||
"approval": "I3ByYWdtYSB2ZXJzaW9uIDgKCWIgbWFpbgoKYWJpX3JvdXRlX3BhcnRpYWxTdGF0aWNBcnJheToKCXR4biBPbkNvbXBsZXRpb24KCWludCBOb09wCgk9PQoJdHhuIEFwcGxpY2F0aW9uSUQKCWludCAwCgkhPQoJJiYKCWFzc2VydAoJYnl0ZSAweAoJY2FsbHN1YiBwYXJ0aWFsU3RhdGljQXJyYXkKCWludCAxCglyZXR1cm4KCnBhcnRpYWxTdGF0aWNBcnJheToKCXByb3RvIDEgMAoKCS8vIHRlc3RzL2NvbnRyYWN0cy9hYmkuYWxnby50czo4MTcKCS8vIGE6IFN0YXRpY0FycmF5PHVpbnQ8MTY+LCAzPiA9IFsxXQoJaW50IDEKCWl0b2IKCWV4dHJhY3QgNiAwCglieXRlIDB4MDAwMDAwMDAKCWNvbmNhdAoJZnJhbWVfYnVyeSAtMSAvLyBhOiB1aW50MTZbM10KCgkvLyB0ZXN0cy9jb250cmFjdHMvYWJpLmFsZ28udHM6ODE5CgkvLyByZXR1cm4gYTsKCWZyYW1lX2RpZyAtMSAvLyBhOiB1aW50MTZbM10KCWJ5dGUgMHgxNTFmN2M3NQoJc3dhcAoJY29uY2F0Cglsb2cKCXJldHN1YgoKbWFpbjoKCXR4biBOdW1BcHBBcmdzCglibnogcm91dGVfYWJpCgoJLy8gZGVmYXVsdCBjcmVhdGVBcHBsaWNhdGlvbgoJdHhuIEFwcGxpY2F0aW9uSUQKCWludCAwCgk9PQoJdHhuIE9uQ29tcGxldGlvbgoJaW50IE5vT3AKCT09CgkmJgoJcmV0dXJuCgpyb3V0ZV9hYmk6CgltZXRob2QgInBhcnRpYWxTdGF0aWNBcnJheSgpdWludDE2WzNdIgoJdHhuYSBBcHBsaWNhdGlvbkFyZ3MgMAoJbWF0Y2ggYWJpX3JvdXRlX3BhcnRpYWxTdGF0aWNBcnJheQoJZXJy", | ||
"clear": "I3ByYWdtYSB2ZXJzaW9uIDgKaW50IDEKcmV0dXJu" | ||
}, | ||
"contract": { | ||
"name": "ABITestPartialStaticArray", | ||
"desc": "", | ||
"methods": [ | ||
{ | ||
"name": "partialStaticArray", | ||
"args": [], | ||
"desc": "", | ||
"returns": { | ||
"type": "uint16[3]", | ||
"desc": "" | ||
} | ||
} | ||
] | ||
} | ||
} |
Oops, something went wrong.