Skip to content

Commit

Permalink
Merge pull request #449 from algorandfoundation/dev
Browse files Browse the repository at this point in the history
0.87.0
  • Loading branch information
joe-p authored Mar 12, 2024
2 parents 90024a6 + 937bb59 commit ee4ba01
Show file tree
Hide file tree
Showing 390 changed files with 1,267 additions and 1,340 deletions.
10 changes: 5 additions & 5 deletions FEATURES.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
| ABI Type | TEALScript |
| --- | --- |
| `address` | `Address` |
| `uintN` | `uint64`, `uint32`, `uint16`, `uint8`, `uint128`, `uint256`, or `uint<N>` |
| `uintN` | `uint64`, `uint32`, `uint16`, `uint8`, `uint128`, `uint256`, or `uint<N>`. `AssetID` and `AppID` are encoded as `uint64` |
| `bool` | `boolean` |
| `ufixedNxM` | `ufixed<N, M>` |
| `T[]` | `T[]` |
| `T[N]` | `StaticArray<T, N>`, `bytes32`, or `bytes64` |
| `T[N]` | `StaticArray<T, N>`. `bytes32`, `bytes64`, or `bytes<N> for static byte arrays` |
| `[T1, T2, ..., TN]` | `[T1, T2, ..., TN]` or `{keyone: T1, keytwo: T2, ..., keyN: TN}` |
| `string` | `string` |
| `application` | `Application` |
| `asset` | `Asset` |
| `account` | `Account` |
| `application` | `AppReference` |
| `asset` | `AssetReference` |
| `account` | `AccountReference` |
| `txn` | `Txn` |
| `pay` | `PayTxn` |
| `keyreg` | `KeyRegTxn` |
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Calculator extends Contract {
* @param b
* @returns The sum of a and b
*/
private getSum(a: number, b: number): number {
private getSum(a: uint64, b: uint64): uint64 {
return a + b;
}

Expand All @@ -36,7 +36,7 @@ class Calculator extends Contract {
* @param b
* @returns The difference between a and b.
*/
private getDifference(a: number, b: number): number {
private getDifference(a: uint64, b: uint64): uint64 {
return a >= b ? a - b : b - a;
}

Expand All @@ -49,8 +49,8 @@ class Calculator extends Contract {
*
* @returns The result of the operation
*/
doMath(a: number, b: number, operation: string): number {
let result: number;
doMath(a: uint64, b: uint64, operation: string): uint64 {
let result: uint64;

if (operation === 'sum') {
result = this.getSum(a, b);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma version 10

// This TEAL was generated by TEALScript v0.86.0
// This TEAL was generated by TEALScript v0.87.0
// https://github.com/algorandfoundation/TEALScript

// This contract is compliant with and/or implements the following ARCs: [ ARC4 ]
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/arc72/artifacts/ARC72.approval.teal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma version 10

// This TEAL was generated by TEALScript v0.86.0
// This TEAL was generated by TEALScript v0.87.0
// https://github.com/algorandfoundation/TEALScript

// This contract is compliant with and/or implements the following ARCs: [ ARC4 ]
Expand Down
2 changes: 1 addition & 1 deletion examples/arc72/artifacts/ARC72.arc32.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/arc75/artifacts/ARC75.approval.teal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma version 10

// This TEAL was generated by TEALScript v0.86.0
// This TEAL was generated by TEALScript v0.87.0
// https://github.com/algorandfoundation/TEALScript

// This contract is compliant with and/or implements the following ARCs: [ ARC4 ]
Expand Down
2 changes: 1 addition & 1 deletion examples/arc75/artifacts/ARC75.arc32.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma version 10

// This TEAL was generated by TEALScript v0.86.0
// This TEAL was generated by TEALScript v0.87.0
// https://github.com/algorandfoundation/TEALScript

// This contract is compliant with and/or implements the following ARCs: [ ARC4 ]
Expand Down
2 changes: 1 addition & 1 deletion examples/auction/tealscript_artifacts/Auction.arc32.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/big_box/artifacts/BigBox.approval.teal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma version 10

// This TEAL was generated by TEALScript v0.86.0
// This TEAL was generated by TEALScript v0.87.0
// https://github.com/algorandfoundation/TEALScript

// This contract is compliant with and/or implements the following ARCs: [ ARC4 ]
Expand Down
2 changes: 1 addition & 1 deletion examples/big_box/artifacts/BigBox.arc32.json

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions examples/calculator/artifacts/Calculator.approval.teal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma version 10

// This TEAL was generated by TEALScript v0.86.0
// This TEAL was generated by TEALScript v0.87.0
// https://github.com/algorandfoundation/TEALScript

// This contract is compliant with and/or implements the following ARCs: [ ARC4 ]
Expand All @@ -21,7 +21,7 @@ switch *call_NoOp *NOT_IMPLEMENTED *NOT_IMPLEMENTED *NOT_IMPLEMENTED *NOT_IMPLEM
*NOT_IMPLEMENTED:
err

// getSum(a: number, b: number): number
// getSum(a: uint64, b: uint64): uint64
//
// Calculates the sum of two numbers
//
Expand All @@ -33,12 +33,12 @@ getSum:

// examples/calculator/calculator.algo.ts:13
// return a + b;
frame_dig -1 // a: number
frame_dig -2 // b: number
frame_dig -1 // a: uint64
frame_dig -2 // b: uint64
+
retsub

// getDifference(a: number, b: number): number
// getDifference(a: uint64, b: uint64): uint64
//
// Calculates the difference between two numbers
//
Expand All @@ -50,18 +50,18 @@ getDifference:

// examples/calculator/calculator.algo.ts:24
// return a >= b ? a - b : b - a;
frame_dig -1 // a: number
frame_dig -2 // b: number
frame_dig -1 // a: uint64
frame_dig -2 // b: uint64
>=
bz *ternary0_false
frame_dig -1 // a: number
frame_dig -2 // b: number
frame_dig -1 // a: uint64
frame_dig -2 // b: uint64
-
b *ternary0_end

*ternary0_false:
frame_dig -2 // b: number
frame_dig -1 // a: number
frame_dig -2 // b: uint64
frame_dig -1 // a: uint64
-

*ternary0_end:
Expand Down Expand Up @@ -92,7 +92,7 @@ getDifference:
int 1
return

// doMath(a: number, b: number, operation: string): number
// doMath(a: uint64, b: uint64, operation: string): uint64
//
// A method that takes two numbers and does either addition or subtraction
//
Expand All @@ -118,10 +118,10 @@ doMath:
// *if0_consequent
// examples/calculator/calculator.algo.ts:40
// result = this.getSum(a, b)
frame_dig -2 // b: number
frame_dig -1 // a: number
frame_dig -2 // b: uint64
frame_dig -1 // a: uint64
callsub getSum
frame_bury 0 // result: number
frame_bury 0 // result: uint64
b *if0_end

*if0_elseif1_condition:
Expand All @@ -135,10 +135,10 @@ doMath:
// *if0_elseif1_consequent
// examples/calculator/calculator.algo.ts:42
// result = this.getDifference(a, b)
frame_dig -2 // b: number
frame_dig -1 // a: number
frame_dig -2 // b: uint64
frame_dig -1 // a: uint64
callsub getDifference
frame_bury 0 // result: number
frame_bury 0 // result: uint64
b *if0_end

*if0_else:
Expand All @@ -147,7 +147,7 @@ doMath:
*if0_end:
// examples/calculator/calculator.algo.ts:45
// return result;
frame_dig 0 // result: number
frame_dig 0 // result: uint64

// set the subroutine return value
frame_bury 0
Expand Down
2 changes: 1 addition & 1 deletion examples/calculator/artifacts/Calculator.arc32.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
}
},
"source": {
"approval": "I3ByYWdtYSB2ZXJzaW9uIDEwCgovLyBUaGlzIFRFQUwgd2FzIGdlbmVyYXRlZCBieSBURUFMU2NyaXB0IHYwLjg2LjAKLy8gaHR0cHM6Ly9naXRodWIuY29tL2FsZ29yYW5kZm91bmRhdGlvbi9URUFMU2NyaXB0CgovLyBUaGlzIGNvbnRyYWN0IGlzIGNvbXBsaWFudCB3aXRoIGFuZC9vciBpbXBsZW1lbnRzIHRoZSBmb2xsb3dpbmcgQVJDczogWyBBUkM0IF0KCi8vIFRoZSBmb2xsb3dpbmcgdGVuIGxpbmVzIG9mIFRFQUwgaGFuZGxlIGluaXRpYWwgcHJvZ3JhbSBmbG93Ci8vIFRoaXMgcGF0dGVybiBpcyB1c2VkIHRvIG1ha2UgaXQgZWFzeSBmb3IgYW55b25lIHRvIHBhcnNlIHRoZSBzdGFydCBvZiB0aGU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YgoKKmFiaV9yb3V0ZV9jcmVhdGVBcHBsaWNhdGlvbjoKCWludCAxCglyZXR1cm4KCipjcmVhdGVfTm9PcDoKCW1ldGhvZCAiY3JlYXRlQXBwbGljYXRpb24oKXZvaWQiCgl0eG5hIEFwcGxpY2F0aW9uQXJncyAwCgltYXRjaCAqYWJpX3JvdXRlX2NyZWF0ZUFwcGxpY2F0aW9uCgllcnIKCipjYWxsX05vT3A6CgltZXRob2QgImRvTWF0aCh1aW50NjQsdWludDY0LHN0cmluZyl1aW50NjQiCgl0eG5hIEFwcGxpY2F0aW9uQXJncyAwCgltYXRjaCAqYWJpX3JvdXRlX2RvTWF0aAoJZXJy",
"clear": "I3ByYWdtYSB2ZXJzaW9uIDEw"
},
"contract": {
Expand Down
8 changes: 4 additions & 4 deletions examples/calculator/calculator.algo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Calculator extends Contract {
* @param b
* @returns The sum of a and b
*/
private getSum(a: number, b: number): number {
private getSum(a: uint64, b: uint64): uint64 {
return a + b;
}

Expand All @@ -20,7 +20,7 @@ class Calculator extends Contract {
* @param b
* @returns The difference between a and b.
*/
private getDifference(a: number, b: number): number {
private getDifference(a: uint64, b: uint64): uint64 {
return a >= b ? a - b : b - a;
}

Expand All @@ -33,8 +33,8 @@ class Calculator extends Contract {
*
* @returns The result of the operation
*/
doMath(a: number, b: number, operation: string): number {
let result: number;
doMath(a: uint64, b: uint64, operation: string): uint64 {
let result: uint64;

if (operation === 'sum') {
result = this.getSum(a, b);
Expand Down
2 changes: 1 addition & 1 deletion examples/itxns/artifacts/FactoryCaller.approval.teal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma version 10

// This TEAL was generated by TEALScript v0.86.0
// This TEAL was generated by TEALScript v0.87.0
// https://github.com/algorandfoundation/TEALScript

// This contract is compliant with and/or implements the following ARCs: [ ARC4 ]
Expand Down
Loading

0 comments on commit ee4ba01

Please sign in to comment.