Skip to content

Commit

Permalink
update FEATURES.md
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-p committed Mar 4, 2024
1 parent 9b64e5a commit a540e79
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 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
11 changes: 6 additions & 5 deletions scripts/generateFeatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,17 @@ lines.push(...['', '## ABI Types', '| ABI Type | TEALScript |', '| --- | --- |']

const types = {
'`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

0 comments on commit a540e79

Please sign in to comment.