Skip to content

Commit a540e79

Browse files
committed
update FEATURES.md
1 parent 9b64e5a commit a540e79

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

FEATURES.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
| ABI Type | TEALScript |
1313
| --- | --- |
1414
| `address` | `Address` |
15-
| `uintN` | `uint64`, `uint32`, `uint16`, `uint8`, `uint128`, `uint256`, or `uint<N>` |
15+
| `uintN` | `uint64`, `uint32`, `uint16`, `uint8`, `uint128`, `uint256`, or `uint<N>`. `AssetID` and `AppID` are encoded as `uint64` |
1616
| `bool` | `boolean` |
1717
| `ufixedNxM` | `ufixed<N, M>` |
1818
| `T[]` | `T[]` |
19-
| `T[N]` | `StaticArray<T, N>`, `bytes32`, or `bytes64` |
19+
| `T[N]` | `StaticArray<T, N>`. `bytes32`, `bytes64`, or `bytes<N> for static byte arrays` |
2020
| `[T1, T2, ..., TN]` | `[T1, T2, ..., TN]` or `{keyone: T1, keytwo: T2, ..., keyN: TN}` |
2121
| `string` | `string` |
22-
| `application` | `Application` |
23-
| `asset` | `Asset` |
24-
| `account` | `Account` |
22+
| `application` | `AppReference` |
23+
| `asset` | `AssetReference` |
24+
| `account` | `AccountReference` |
2525
| `txn` | `Txn` |
2626
| `pay` | `PayTxn` |
2727
| `keyreg` | `KeyRegTxn` |

scripts/generateFeatures.ts

+6-5
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,17 @@ lines.push(...['', '## ABI Types', '| ABI Type | TEALScript |', '| --- | --- |']
3737

3838
const types = {
3939
'`address`': '`Address`',
40-
'`uintN`': '`uint64`, `uint32`, `uint16`, `uint8`, `uint128`, `uint256`, or `uint<N>`',
40+
'`uintN`':
41+
'`uint64`, `uint32`, `uint16`, `uint8`, `uint128`, `uint256`, or `uint<N>`. `AssetID` and `AppID` are encoded as `uint64`',
4142
'`bool`': '`boolean`',
4243
'`ufixedNxM`': '`ufixed<N, M>`',
4344
'`T[]`': '`T[]`',
44-
'`T[N]`': '`StaticArray<T, N>`, `bytes32`, or `bytes64`',
45+
'`T[N]`': '`StaticArray<T, N>`. `bytes32`, `bytes64`, or `bytes<N> for static byte arrays`',
4546
'`[T1, T2, ..., TN]`': '`[T1, T2, ..., TN]` or `{keyone: T1, keytwo: T2, ..., keyN: TN}`',
4647
'`string`': '`string`',
47-
'`application`': '`Application`',
48-
'`asset`': '`Asset`',
49-
'`account`': '`Account`',
48+
'`application`': '`AppReference`',
49+
'`asset`': '`AssetReference`',
50+
'`account`': '`AccountReference`',
5051
'`txn`': '`Txn`',
5152
'`pay`': '`PayTxn`',
5253
'`keyreg`': '`KeyRegTxn`',

0 commit comments

Comments
 (0)