From e6f06bd2fb7f41e540f6121fde8de8edcc1a92b6 Mon Sep 17 00:00:00 2001 From: Leechael Yim Date: Thu, 14 Dec 2023 14:18:24 +0800 Subject: [PATCH 1/2] chore: add new templates --- src/commands/init.ts | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/commands/init.ts b/src/commands/init.ts index 9d87ec0..4b85a87 100644 --- a/src/commands/init.ts +++ b/src/commands/init.ts @@ -9,11 +9,23 @@ import simpleGit from 'simple-git' const TEMPLATE_ALIASES: Record = { '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.', }, } From 42c62ad8766063ed02489e0ef81876a19c60052f Mon Sep 17 00:00:00 2001 From: Leechael Yim Date: Thu, 14 Dec 2023 14:28:59 +0800 Subject: [PATCH 2/2] chore: use colon --- src/commands/init.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/init.ts b/src/commands/init.ts index 4b85a87..fe7d749 100644 --- a/src/commands/init.ts +++ b/src/commands/init.ts @@ -105,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, } }),