scripts: replace hardcoded variables with import from global vars #7
Labels
DRAFT
For draft PRs that are awaiting additional commits before merging
type: chore
General chores, refactors, and other todo items.
type: enhancement
Updating an existing feature
Task to be completed
store hardcoded address variables in a global
OnchainData.sol
file and pull from them as neededScope of work
script files rely on hardcoded onchain data and is chain dependent. instead of managing hardcoded vars in each file, which often overlap, create a global contract, for example
/utils/OnchainData.sol
that can be imported where these variables are neededAdditional context
example of what I'd like to avoid when possible:
![image](https://private-user-images.githubusercontent.com/40550502/352884020-b70d5a15-d5d7-493f-805d-3f18857f5cb8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4MzI5ODEsIm5iZiI6MTczODgzMjY4MSwicGF0aCI6Ii80MDU1MDUwMi8zNTI4ODQwMjAtYjcwZDVhMTUtZDVkNy00OTNmLTgwNWQtM2YxODg1N2Y1Y2I4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA2VDA5MDQ0MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ0NDE4ZTVmNDg1ZTkwM2RjZWIwNTA5Mzg5YmNmYzYzN2UxMWI1ZjViZGIyNGU1ODA5YjYwZTFiYTk5ZDZjYzUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.IYGuDU43tY8GsqMuppH605BkAGrV4vnx_OgjKG7vEc8)
The text was updated successfully, but these errors were encountered: