- Add
op???()
toeval.go
- Add unit tests to
eval_test.go
- In the case of non-integer Immediate arguments:
- Added
assembleBase???
inassembler.go
- Added
dis???
inassembler.go
- Pass the stateful test
data/transactions/logic/evalStateful_test.go
by providing a special TEAL sequence in thespecialCmd
map - Add enum to
fields.go
and modifiedgo:generate
comment - Ran
go generate
inside ofdata/transactions/logic
to modifyfields_string.go
- Added
This file contains hidden or 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
# # NOTE - BEFORE RUNNING SCRIPT YOU SHOULD PROBABLY run | |
# the following in your shell so that the host can be added properly to ssh: | |
# sftp user@host | |
# # REQUIREMENTS # # | |
# pip install pandas | |
# pip install pgpy | |
# pip install psycopg2 | |
# pip install pycrypto | |
# pip install pysftp |
This file contains hidden or 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
type aStruct struct { | |
aSlice []byte | |
} | |
func BenchmarkStructSwapping(b *testing.B) { | |
ssize := 500 | |
b.Run("naive", func(b *testing.B) { | |
theStructs := make([]aStruct, b.N*2) | |
for i := 0; i < b.N; i++ { |
This file contains hidden or 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
>>> progx = '#pragma version 5\ncallsub sub0\nint 1\nreturn\nsub0: // _impl\nint 0\nstore 0\nsub0_l1:\nload 0\nint 10\n<\nbz sub0_l3\nbyte "a"\nlog\nload 0\nint 1\n+\nstore 0\nb sub0_l1\nsub0_l3:\nretsub' | |
>>> progy = '#pragma version 5\ncallsub sub0\nint 1\nreturn\nsub0: // <lambda>\nint 0\nstore 0\nsub0_l1:\nload 0\nint 10\n<\nbz sub0_l3\nbyte "a"\nlog\nload 0\nint 1\n+\nstore 0\nb sub0_l1\nsub0_l3:\nretsub' | |
>>> td1 = TEALDiff(progx, progy) | |
>>> td1.assert_equals(msg=td1.first_diff()) | |
# ... no problems ... | |
>>> td2 = TEALDiff(progx, progy, strip_comments=False) | |
>>> td2.assert_equals(td2.first_diff()) | |
--------------------------------------------------------------------------- |
This file contains hidden or 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
[ | |
{ | |
"spin(application,application)(byte[3],byte[17],byte[17],byte[17])": [ | |
{ "appl": "appl" }, | |
{ "appl": "appl" }, | |
{ "appl": "appl" } | |
] | |
}, | |
{ | |
"spin(application,application)(byte[3],byte[17],byte[17],byte[17])": [ |
This file contains hidden or 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
from collections import OrderedDict | |
from copy import deepcopy | |
import json | |
from typing import List, Union | |
L, R = "left", "right" | |
def deep_diff( |
This file contains hidden or 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
# includes indexer-v-algod (cf. my json_diff gist) | |
nightly-setup: | |
cd third_party/go-algorand && git pull origin master | |
nightly-teardown: | |
git submodule update | |
indexer-v-algod-swagger: | |
pytest -sv parity |
This file contains hidden or 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
{ | |
"error": "", | |
"protocol-version": "future", | |
"txns": [ | |
{ | |
"app-call-messages": [ | |
"ApprovalProgram", | |
"PASS" | |
], | |
"app-call-trace": [ |
This file contains hidden or 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
set export | |
set shell := ["zsh", "-cu"] | |
NETWORKS := `echo $HOME` + "/networks" | |
# NAME := "indexerboxes" | |
NAME := "niftynetwork" | |
TEMP_NETWORK := NETWORKS + "/" + NAME | |
# GO_ALGORAND := "../../.." | |
GO_ALGORAND := ".." | |
NODE_TEMPLATE := GO_ALGORAND + "/test/testdata/nettemplates/OneNodeFuture.json" |
This file contains hidden or 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
# notable query params: | |
# * no auth token for this public, read-only information | |
# * json response type | |
# * specialized star-info (to get fields such as `starred_at`) | |
# page=3 has been specified | |
# per_page=70 has been specified (max of 100) | |
curl -H "Accept: application/vnd.github.v3+json" \ | |
-H "Accept: application/vnd.github.v3.star+json" \ | |
"https://api.github.com/repos/algorand/pyteal/stargazers?page=3&per_page=70" | grep starred_at |