Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/opdoc/opdoc.go
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ func create(file string) *os.File {
}

func main() {
const docVersion = uint64(11)
const docVersion = uint64(12)

opGroups := make(map[string][]string, len(logic.OpSpecs))
for grp, names := range logic.OpGroups {
Expand Down
27 changes: 15 additions & 12 deletions data/transactions/logic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ In order to maintain existing semantics for previously written
programs, AVM code is versioned. When new opcodes are introduced, or
behavior is changed, a new version is introduced. Programs carrying
old versions are executed with their original semantics. In the AVM
bytecode, the version is an incrementing integer, currently 6, and
bytecode, the version is an incrementing integer, currently 12, and
denoted vX throughout this document.

## Execution Modes
Expand Down Expand Up @@ -500,6 +500,7 @@ these results may contain leading zero bytes.
| `keccak256` | Keccak256 hash of value A, yields [32]byte |
| `sha512_256` | SHA512_256 hash of value A, yields [32]byte |
| `sha3_256` | SHA3_256 hash of value A, yields [32]byte |
| `falcon_verify` | for (data A, compressed-format signature B, pubkey C) verify the signature of data against the pubkey => {0 or 1} |
| `ed25519verify` | for (data A, signature B, pubkey C) verify the signature of ("ProgData" \|\| program_hash \|\| data) against the pubkey => {0 or 1} |
| `ed25519verify_bare` | for (data A, signature B, pubkey C) verify the signature of the data against the pubkey => {0 or 1} |
| `ecdsa_verify v` | for (data A, signature B, C and pubkey D, E) verify the signature of the data against the pubkey => {0 or 1} |
Expand Down Expand Up @@ -630,6 +631,7 @@ Some of these have immediate data in the byte or bytes after the opcode.
| 63 | StateProofPK | [64]byte | v6 | State proof public key |
| 65 | NumApprovalProgramPages | uint64 | v7 | Number of Approval Program pages |
| 67 | NumClearStateProgramPages | uint64 | v7 | Number of ClearState Program pages |
| 68 | RejectVersion | uint64 | v12 | Application version for which the txn must reject |

##### Array Fields
| Index | Name | Type | In | Notes |
Expand Down Expand Up @@ -706,17 +708,18 @@ Asset fields include `AssetHolding` and `AssetParam` fields that are used in the

App fields used in the `app_params_get` opcode.

| Index | Name | Type | Notes |
| - | ------ | -- | --------- |
| 0 | AppApprovalProgram | []byte | Bytecode of Approval Program |
| 1 | AppClearStateProgram | []byte | Bytecode of Clear State Program |
| 2 | AppGlobalNumUint | uint64 | Number of uint64 values allowed in Global State |
| 3 | AppGlobalNumByteSlice | uint64 | Number of byte array values allowed in Global State |
| 4 | AppLocalNumUint | uint64 | Number of uint64 values allowed in Local State |
| 5 | AppLocalNumByteSlice | uint64 | Number of byte array values allowed in Local State |
| 6 | AppExtraProgramPages | uint64 | Number of Extra Program Pages of code space |
| 7 | AppCreator | address | Creator address |
| 8 | AppAddress | address | Address for which this application has authority |
| Index | Name | Type | In | Notes |
| - | ------ | -- | - | --------- |
| 0 | AppApprovalProgram | []byte | | Bytecode of Approval Program |
| 1 | AppClearStateProgram | []byte | | Bytecode of Clear State Program |
| 2 | AppGlobalNumUint | uint64 | | Number of uint64 values allowed in Global State |
| 3 | AppGlobalNumByteSlice | uint64 | | Number of byte array values allowed in Global State |
| 4 | AppLocalNumUint | uint64 | | Number of uint64 values allowed in Local State |
| 5 | AppLocalNumByteSlice | uint64 | | Number of byte array values allowed in Local State |
| 6 | AppExtraProgramPages | uint64 | | Number of Extra Program Pages of code space |
| 7 | AppCreator | address | | Creator address |
| 8 | AppAddress | address | | Address for which this application has authority |
| 9 | AppVersion | uint64 | v12 | Version of the app, incremented each time the approval or clear program changes |


**Account Fields**
Expand Down
2 changes: 1 addition & 1 deletion data/transactions/logic/README_in.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ In order to maintain existing semantics for previously written
programs, AVM code is versioned. When new opcodes are introduced, or
behavior is changed, a new version is introduced. Programs carrying
old versions are executed with their original semantics. In the AVM
bytecode, the version is an incrementing integer, currently 6, and
bytecode, the version is an incrementing integer, currently 12, and
denoted vX throughout this document.

## Execution Modes
Expand Down
Loading
Loading