Skip to content

thesixnetwork/precompile

Repository files navigation

FACTORY AND PRECOMPILE CONTRACTs

COMPILE

forge compile

DEPLOY FACTORY

bash init.sh

SIX SECTION

Deploy NFT Token and MINT NFT

forge script script/ERC721.s.sol:DeployScript --rpc-url http://35.247.160.241:8545 --private-key $PRIVATE_KEY --optimize --broadcast --slow 

Deploy NFT Schema and Create metadata

cd typescript
  1. Deploy schema
yarn ts-node  ./scripts/CreateSchema.s.ts
  1. Create Metadata
yarn ts-node  ./scripts/CreateMetadata.s.ts

Perform Action

  1. 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 
  1. 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 
  1. Perfomr action
forge script script/ActionRouter.s.sol:ActionScript --rpc-url http:localhost:8545 --private-key $PRIVATE_KEY --broadcast

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published