@graphprotocol/graph-cli 0.30.1 → 0.30.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphprotocol/graph-cli",
3
- "version": "0.30.1",
3
+ "version": "0.30.2",
4
4
  "license": "(Apache-2.0 OR MIT)",
5
5
  "description": "CLI for building for and deploying to The Graph",
6
6
  "dependencies": {
@@ -33,7 +33,6 @@ const generateScaffold = async (
33
33
  subgraphName,
34
34
  indexEvents,
35
35
  contractName = 'Contract',
36
- dataSourceName,
37
36
  node,
38
37
  },
39
38
  spinner,
@@ -48,7 +47,6 @@ const generateScaffold = async (
48
47
  network,
49
48
  contractName,
50
49
  subgraphName,
51
- dataSourceName,
52
50
  node,
53
51
  })
54
52
 
@@ -179,7 +179,7 @@ const processInitForm = async (
179
179
  //
180
180
  // protocols that don't support contract
181
181
  // - arweave
182
- // - tendermint
182
+ // - cosmos
183
183
  {
184
184
  type: 'input',
185
185
  name: 'contract',
@@ -718,7 +718,6 @@ const initSubgraphFromContract = async (
718
718
  contract,
719
719
  indexEvents,
720
720
  contractName,
721
- dataSourceName,
722
721
  node,
723
722
  studio,
724
723
  product,
@@ -773,7 +772,6 @@ const initSubgraphFromContract = async (
773
772
  contract,
774
773
  indexEvents,
775
774
  contractName,
776
- dataSourceName,
777
775
  node,
778
776
  },
779
777
  spinner,
@@ -8,7 +8,7 @@ const mapping = () => `
8
8
  - ExampleEntity
9
9
  blockHandlers:
10
10
  - handler: handleBlock
11
- file: ./src/mapping.ts`
11
+ file: ./src/contract.ts`
12
12
 
13
13
  module.exports = {
14
14
  source,
@@ -7,7 +7,7 @@ const protocol = new Protocol('cosmos')
7
7
  const scaffoldOptions = {
8
8
  protocol,
9
9
  network: 'cosmoshub-4',
10
- dataSourceName: 'CosmosHub'
10
+ contractName: 'CosmosHub'
11
11
  }
12
12
 
13
13
  const scaffold = new Scaffold(scaffoldOptions)
@@ -33,7 +33,7 @@ dataSources:
33
33
  - ExampleEntity
34
34
  blockHandlers:
35
35
  - handler: handleBlock
36
- file: ./src/mapping.ts
36
+ file: ./src/contract.ts
37
37
  `)
38
38
  })
39
39
 
@@ -76,8 +76,7 @@ const scaffoldOptions = {
76
76
  abi: TEST_ABI,
77
77
  contract: '0xf87e31492faf9a91b02ee0deaad50d51d56d5d4d',
78
78
  network: 'kovan',
79
- contractName: 'Contract',
80
- dataSourceName: 'Contract'
79
+ contractName: 'Contract'
81
80
  }
82
81
 
83
82
  const scaffold = new Scaffold(scaffoldOptions)
@@ -26,7 +26,6 @@ module.exports = class Scaffold {
26
26
  this.network = options.network
27
27
  this.contractName = options.contractName
28
28
  this.subgraphName = options.subgraphName
29
- this.dataSourceName = options.dataSourceName
30
29
  this.node = options.node
31
30
  }
32
31
 
@@ -68,7 +67,7 @@ schema:
68
67
  file: ./schema.graphql
69
68
  dataSources:
70
69
  - kind: ${this.protocol.name}
71
- name: ${this.dataSourceName}
70
+ name: ${this.contractName}
72
71
  network: ${this.network}
73
72
  source: ${protocolManifest.source(this)}
74
73
  mapping: ${protocolManifest.mapping(this)}
@@ -8,8 +8,7 @@ const scaffoldOptions = {
8
8
  protocol,
9
9
  contract: 'abc.def.near',
10
10
  network: 'near-mainnet',
11
- contractName: 'Contract',
12
- dataSourceName: 'Contract'
11
+ contractName: 'Contract'
13
12
  }
14
13
 
15
14
  const scaffold = new Scaffold(scaffoldOptions)