Skip to content

Commit

Permalink
Update deploy scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
HashWarlock committed Jan 29, 2024
1 parent 153e03b commit 35ddff4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
14 changes: 9 additions & 5 deletions scripts/mumbai/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,15 @@ async function main() {
const consumer = await TestLensApiConsumerContract.deploy(attestor);
await consumer.deployed();
const finalMessage = dedent`
🎉 Your Consumer Contract has been deployed, check it out here: https://mumbai.polygonscan.com/address/${consumer.address}
You also need to set up the consumer contract address in your .env file:
MUMBAI_CONSUMER_CONTRACT_ADDRESS=${consumer.address}
🎉 Your Consumer Contract has been deployed successfully 🎉
address ${consumer.address}
Check it out here: https://mumbai.polygonscan.com/address/${consumer.address}
You can continue deploying the default Phat Contract with the following command:
npx @phala/fn upload -b --mode dev --consumerAddress=${consumer.address} --coreSettings=--coreSettings=https://api-v2-mumbai-live.lens.dev/
`
console.log(`\n${finalMessage}\n`);

Expand Down
14 changes: 9 additions & 5 deletions scripts/polygon/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,15 @@ async function main() {
const consumer = await TestLensApiConsumerContract.deploy(attestor);
await consumer.deployed();
const finalMessage = dedent`
🎉 Your Consumer Contract has been deployed, check it out here: https://polygonscan.com/address/${consumer.address}
You also need to set up the consumer contract address in your .env file:
POLYGON_CONSUMER_CONTRACT_ADDRESS=${consumer.address}
🎉 Your Consumer Contract has been deployed successfully 🎉
address ${consumer.address}
Check it out here: https://polygonscan.com/address/${consumer.address}
You can continue deploying the default Phat Contract with the following command:
npx @phala/fn upload -b --mode=production --consumerAddress=${consumer.address} --coreSettings=--coreSettings=https://api-v2.lens.dev/
`
console.log(`\n${finalMessage}\n`);

Expand Down

0 comments on commit 35ddff4

Please sign in to comment.