Deployment
Deployment Scripts
Using the provided deployment scripts:
The protocol and an example application architecture can be deployed using the deployment scripts in the script directory. Run the following commands from the root of the repo to do the deployment:
(add the —rpc-url argument to the end of each of the forge commands to point the scripts to the chain you would like to deploy on)
This process can be automated by running the DeployExampleApplication.sh script.
Contracts Deployed
The following is the list of contracts deployed by each of the above sripts:
Application_Deploy_01_AppManager.s.sol:
- ApplicationAppManager (AppManager example)
- ApplicationHandler (ProtocolApplicationHandler example)
Application_Deploy_02_ApplicationFT1.s.sol:
- ApplicationERC20 (ApplicationERC20 example)
- HandlerDiamond
Application_Deploy_04_ApplicationNFT.s.sol:
- ApplicationERC721AdminOrOwnerMint (ApplicationERC721 example)
- HandlerDiamond
Application_Deploy_05_Oracle.s.sol
- OracleApproved
- OracleDenied
Application_Deploy_06_Pricing.s.sol
- ApplicationERC20Pricing (ProtocolERC20Pricing example)
- ApplicationERC721Pricing (ProtocolERC721Pricing example)