Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore added templates #25

Merged
merged 2 commits into from
Dec 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions src/commands/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,23 @@ import simpleGit from 'simple-git'
const TEMPLATE_ALIASES: Record<string, { url: string; description: string }> = {
'phat-contract-starter-kit': {
url: 'https://github.com/Phala-Network/phat-contract-starter-kit',
description: 'The Phat Contract Starter Kit',
description: 'Send data from any API to your smart contract with Javascript.',
},
'lensapi-oracle-consumer-contract': {
url: 'https://github.com/Phala-Network/lensapi-oracle-consumer-contract',
description: 'Polygon Consumer Contract for LensAPI Oracle',
description: 'Send data from Lens API to your smart contract to empower your Web3 Social dApp.',
},
'vrf-oracle': {
url: 'https://github.com/Phala-Network/template-vrf',
description: 'TEE-guarded Verifiable Random Function template to bring randomness to your smart contract.',
},
'airstack-phat-contract': {
url: 'https://github.com/Phala-Network/airstack-phat-contract',
description: 'Request an account’s data from Airstack’s API to compute trust score and send to your Web3 dApp on-chain.',
},
'thegraph-phat-contract': {
url: 'https://github.com/Phala-Network/the-graph-phat-contract',
description: 'Connect your subgraphs from The Graph to your on-chain dApps via Phat Contract.',
},
}

Expand Down Expand Up @@ -93,7 +105,7 @@ export default class Init extends Command {

choices: Object.entries(TEMPLATE_ALIASES).map(([name, { description }]) => {
return {
name: `${name}. ${chalk.dim(description)}`,
name: `${name}: ${chalk.dim(description)}`,
value: name,
}
}),
Expand Down
Loading