forge compile
bash init.sh
forge script script/ERC721.s.sol:DeployScript --rpc-url http://35.247.160.241:8545 --private-key $PRIVATE_KEY --optimize --broadcast --slow
cd typescript
- Deploy schema
yarn ts-node ./scripts/CreateSchema.s.ts
- Create Metadata
yarn ts-node ./scripts/CreateMetadata.s.ts
- Deploy Action Router. You can deploy your action router or use existing router
forge script script/ActionRouter.s.sol:DeployRouter --rpc-url http://35.247.160.241:8545 --private-key $PRIVATE_KEY --broadcast --optimize
- Allow Action Router to perform action
forge script script/Executor.s.sol:AddRouterExecutor --rpc-url http://35.247.160.241:8545 --private-key $PRIVATE_KEY --broadcast
(optional or use your own)
forge script script/Executor.s.sol:AddExecutor --rpc-url http://35.247.160.241:8545 --private-key $PRIVATE_KEY --broadcast
- Perfomr action
forge script script/ActionRouter.s.sol:ActionScript --rpc-url http:localhost:8545 --private-key $PRIVATE_KEY --broadcast