forked from algorand/go-algorand
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Summary This PR contains the changes needed to support TEAL 3: 1. Add consensus upgrade support for TEAL 3, Merkle root transaction hash and initial rewards calculation fix. This consensus upgrade would be combined with V25 so that mainnet would make a single upgrade from v24 -> v26. 2. Added support for the following new opcodes: * assert * min_balance * getbit * setbit * getbyte * setbyte * swap * select * dig * stxn * stxna * pushbytes * pushint 3. Added support for the following txn fields: * ForeignAssets * NumForeignAssets * ForeignApps * NumForeignApps * GlobalStateInts * GlobalStateByteslices * LocalStateInts * LocalStateByteslices 4. Added support for new global field: CreatorAddress ## Test Plan Unit tests were updated.
- Loading branch information
1 parent
d8d59c6
commit 7213113
Showing
32 changed files
with
2,467 additions
and
1,490 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,33 @@ | ||
all: TEAL_opcodes.md wat.md fields_string.go | ||
all: TEAL_opcodes.md README.md fields_string.go | ||
|
||
# Location of algorandfoundation/specs repo. (Optional) | ||
SPECS := ../../../../specs | ||
# Location of algorand/docs repo. (Optional) | ||
DOCS := ../../../../docs | ||
|
||
TEAL_opcodes.md: fields_string.go ../../../cmd/opdoc/opdoc.go eval.go assembler.go doc.go opcodes.go | ||
go run ../../../cmd/opdoc/opdoc.go ../../../cmd/opdoc/tmLanguage.go | ||
@if [ -e $(SPECS)/dev/TEAL_opcodes.md ]; then \ | ||
sed '/^$$/q' $(SPECS)/dev/TEAL_opcodes.md | cat - TEAL_opcodes.md > opcodes.spec; \ | ||
mv opcodes.spec $(SPECS)/dev/TEAL_opcodes.md; \ | ||
echo "TEAL_opcodes.md updated in specs repo"; \ | ||
fi | ||
@if [ -e $(DOCS)/docs/reference/teal/opcodes.md ]; then \ | ||
sed 's/^# /title: /g' TEAL_opcodes.md > $(DOCS)/docs/reference/teal/opcodes.md; \ | ||
echo "opcodes.md updated in docs repo"; \ | ||
fi | ||
|
||
fields_string.go: fields.go | ||
go generate | ||
|
||
wat.md: TEAL_opcodes.md README_in.md | ||
README.md: TEAL_opcodes.md README_in.md | ||
python merge.py > README.md | ||
@if [ -e $(SPECS)/dev/TEAL.md ]; then \ | ||
sed '/^$$/q' $(SPECS)/dev/TEAL.md | cat - README.md > teal.spec; \ | ||
mv teal.spec $(SPECS)/dev/TEAL.md; \ | ||
echo "TEAL.md updated in specs repo"; \ | ||
fi | ||
@if [ -e $(DOCS)/docs/reference/teal/specification.md ]; then \ | ||
sed 's/^# /title: /g' README.md > $(DOCS)/docs/reference/teal/specification.md; \ | ||
echo "specification.md updated in docs repo"; \ | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.