Skip to content

Commit

Permalink
deprecation reason
Browse files Browse the repository at this point in the history
  • Loading branch information
ahangsu committed Aug 24, 2022
1 parent ca4ed19 commit 0607aaf
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions algosdk/logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@


def sanity_check_program(program):
"""
Performs heuristic program validation:
check if passed in bytes are Algorand address, or they are B64 encoded, rather than Teal bytes
Args:
program (bytes): compiled program
"""

def is_ascii_printable(program_bytes):
return all(
map(
Expand Down Expand Up @@ -46,7 +54,12 @@ def is_ascii_printable(program_bytes):

def check_program(program, args=None):
"""
NOTE: This class is deprecated
NOTE: This class is deprecated:
`langspec.json` can no longer correctly to depicting the cost model (as of 2022.08.22),
also to minimize the work in updating SDKs per AVM release,
we are deprecating`langspec.json` across all SDKs.
The behavior of method `checkProgram` relies on `langspec.json`.
Thus, this method is being deprecated.
Performs program checking for max length and cost
Expand All @@ -66,8 +79,14 @@ def check_program(program, args=None):

def read_program(program, args=None):
"""
NOTE: This class is deprecated
NOTE: This class is deprecated:
`langspec.json` can no longer correctly to depicting the cost model (as of 2022.08.22),
also to minimize the work in updating SDKs per AVM release,
we are deprecating`langspec.json` across all SDKs.
The behavior of method `checkProgram` relies on `langspec.json`.
Thus, this method is being deprecated.
"""

global spec, opcodes
intcblock_opcode = 32
bytecblock_opcode = 38
Expand Down

0 comments on commit 0607aaf

Please sign in to comment.