@graphprotocol/graph-cli 0.52.1-alpha-20230718210510-d7a5634 → 0.52.1-alpha-20230718212224-9d21810
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/dist/commands/add.js +16 -13
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/commands/add.js
CHANGED
|
@@ -66,20 +66,23 @@ class AddCommand extends core_1.Command {
|
|
|
66
66
|
startBlock || (startBlock = Number(await (0, abi_1.loadStartBlockForContract)(network, address)).toString());
|
|
67
67
|
}
|
|
68
68
|
catch (error) {
|
|
69
|
-
//
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
69
|
+
// we cannot ask user to do prompt in test environment
|
|
70
|
+
if (process.env.NODE_ENV !== 'test') {
|
|
71
|
+
// If we can't get the start block, we'll just leave it out of the manifest
|
|
72
|
+
const { startBlock: userInputStartBlock } = await gluegun_1.prompt.ask([
|
|
73
|
+
{
|
|
74
|
+
type: 'input',
|
|
75
|
+
name: 'startBlock',
|
|
76
|
+
message: 'Start Block',
|
|
77
|
+
initial: '0',
|
|
78
|
+
validate: value => parseInt(value) >= 0,
|
|
79
|
+
result(value) {
|
|
80
|
+
return value;
|
|
81
|
+
},
|
|
79
82
|
},
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
+
]);
|
|
84
|
+
startBlock = userInputStartBlock;
|
|
85
|
+
}
|
|
83
86
|
}
|
|
84
87
|
await (0, scaffold_1.writeABI)(ethabi, contractName);
|
|
85
88
|
const { collisionEntities, onlyCollisions, abiData } = updateEventNamesOnCollision(ethabi, entities, contractName, mergeEntities);
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED