Skip to content

Commit 1b0fa91

Browse files
committed
init: Add NEAR to --help
1 parent 896e1ac commit 1b0fa91

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/commands/init.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ const { abiEvents } = require('../scaffold/schema')
1919
const Protocol = require('../protocols')
2020

2121
const protocolChoices = Array.from(Protocol.availableProtocols().keys())
22-
const ethereumNetworkChoices = Protocol.availableNetworks().get('ethereum')
2322

2423
const HELP = `
2524
${chalk.bold('graph init')} [options] [subgraph-name] [directory]
@@ -41,11 +40,18 @@ ${chalk.dim('Choose mode with one of:')}
4140
4241
${chalk.dim('Options for --from-contract:')}
4342
43+
--contract-name Name of the contract (default: Contract)
44+
--index-events Index contract events as entities
45+
46+
${chalk.dim.underline('Ethereum:')}
47+
4448
--abi <path> Path to the contract ABI (default: download from Etherscan)
45-
--network <${ethereumNetworkChoices.join('|')}>
49+
--network <${Protocol.availableNetworks().get('ethereum').join('|')}>
50+
Selects the network the contract is deployed to
51+
${chalk.dim.underline('NEAR:')}
52+
53+
--network <${Protocol.availableNetworks().get('near').join('|')}>
4654
Selects the network the contract is deployed to
47-
--index-events Index contract events as entities
48-
--contract-name Name of the contract (default: Contract)
4955
`
5056

5157
const processInitForm = async (

0 commit comments

Comments
 (0)