Skip to content

Commit

Permalink
Converted variable functionality into classes that can hold state ins…
Browse files Browse the repository at this point in the history
…tead of passing around state needed to allow for simpler resolution of variables.

State is now reflected in a VariableContext object that is contract specific and is stored by variable objects.
Add Encode variable type to allow function calls to be provided in yml - allows proxy constructor to call logic contract function to initialize.
  • Loading branch information
derekpierre committed Nov 2, 2023
1 parent 73ecedc commit 00a0b6f
Show file tree
Hide file tree
Showing 2 changed files with 265 additions and 159 deletions.
5 changes: 0 additions & 5 deletions deployment/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@
DEPLOYMENT_DIR = Path(deployment.__file__).parent
CONSTRUCTOR_PARAMS_DIR = DEPLOYMENT_DIR / "constructor_params"
ARTIFACTS_DIR = DEPLOYMENT_DIR / "artifacts"
VARIABLE_PREFIX = "$"
SPECIAL_VARIABLE_DELIMITER = ":"
HEX_PREFIX = "0x"
BYTES_PREFIX = "bytes"
DEPLOYER_INDICATOR = "deployer"
OZ_DEPENDENCY = project.dependencies["openzeppelin"]["5.0.0"]

#
Expand Down
Loading

0 comments on commit 00a0b6f

Please sign in to comment.