-
Notifications
You must be signed in to change notification settings - Fork 527
Enhancement: Add missing ArgEnum fields, tweaks to immediate note #4903
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -280,7 +280,7 @@ The notation J,K indicates that two uint64 values J and K are interpreted as a u | |
|
|
||
| ## bytecblock bytes ... | ||
|
|
||
| - Opcode: 0x26 {varuint count} [({varuint value length} bytes), ...] | ||
| - Opcode: 0x26 {varuint count} [({varuint length} bytes), ...] | ||
| - Stack: ... → ... | ||
| - prepare block of byte-array constants for use by bytec | ||
|
|
||
|
|
@@ -318,7 +318,7 @@ The notation J,K indicates that two uint64 values J and K are interpreted as a u | |
|
|
||
| ## arg n | ||
|
|
||
| - Opcode: 0x2c {uint8 arg index N} | ||
| - Opcode: 0x2c {uint8 arg index} | ||
| - Stack: ... → ..., []byte | ||
| - Nth LogicSig argument | ||
| - Mode: Signature | ||
|
|
@@ -811,7 +811,7 @@ When A is a uint64, index 0 is the least significant bit. Setting bit 3 to 1 on | |
|
|
||
| ## json_ref r | ||
|
|
||
| - Opcode: 0x5f {uint8 return type} | ||
| - Opcode: 0x5f {uint8 return type index} | ||
| - Stack: ..., A: []byte, B: []byte → ..., any | ||
| - key B's value, of type R, from a [valid](jsonspec.md) utf-8 encoded json object A | ||
| - **Cost**: 25 + 2 per 7 bytes of A | ||
|
|
@@ -1059,7 +1059,7 @@ pushint args are not added to the intcblock during assembly processes | |
|
|
||
| ## pushbytess bytes ... | ||
|
|
||
| - Opcode: 0x82 {varuint count} [({varuint value length} bytes), ...] | ||
| - Opcode: 0x82 {varuint count} [({varuint length} bytes), ...] | ||
| - Stack: ... → ..., [N items] | ||
| - push sequences of immediate byte arrays to stack (first byte array being deepest) | ||
| - Availability: v8 | ||
|
|
@@ -1548,7 +1548,7 @@ For boxes that exceed 4,096 bytes, consider `box_create`, `box_extract`, and `bo | |
|
|
||
| ## block f | ||
|
|
||
| - Opcode: 0xd1 {uint8 block field} | ||
| - Opcode: 0xd1 {uint8 block field index} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm ok with this change (and similar, above) I suppose, but don't love it. The word "index" helps to convey that the encoding here is a number that is an index into an arbitrary list of fields, defined elsewhere. Without it, a reasonable person could ask, "What do you mean, how do I encode a field?" On the other hand, it's not as though having the word index there makes it obvious what's going on.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. open to other suggestions, |
||
| - Stack: ..., A: uint64 → ..., any | ||
| - field F of block A. Fail unless A falls between txn.LastValid-1002 and txn.FirstValid (exclusive) | ||
| - Availability: v7 | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.