Skip to content

Commit eec24c0

Browse files
committed
near: Remove dynamic (template) data sources (will not be supported at first)
1 parent dbdab1e commit eec24c0

File tree

3 files changed

+2
-56
lines changed

3 files changed

+2
-56
lines changed

manifest-schema.graphql

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ union DataSource =
1010
EthereumContractDataSource |
1111
NearContractDataSource
1212

13-
union DataSourceTemplate =
14-
EthereumContractDataSourceTemplate |
15-
NearContractDataSourceTemplate
13+
union DataSourceTemplate = EthereumContractDataSourceTemplate
1614

1715
type EthereumContractDataSource {
1816
kind: String!
@@ -125,13 +123,6 @@ type EthereumContractDataSourceTemplate {
125123
mapping: EthereumContractMapping!
126124
}
127125

128-
type NearContractDataSourceTemplate {
129-
kind: String!
130-
name: String!
131-
network: String
132-
mapping: NearContractMapping!
133-
}
134-
135126
type EthereumContractSourceTemplate {
136127
abi: String!
137128
}

src/protocols/index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
const immutable = require('immutable')
22
const EthereumTypeGenerator = require('./ethereum/type-generator')
33
const EthereumTemplateCodeGen = require('./ethereum/codegen/template')
4-
const NearTemplateCodeGen = require('./near/codegen/template')
54
const EthereumABI = require('./ethereum/abi')
65
const EthereumSubgraph = require('./ethereum/subgraph')
76
const NearSubgraph = require('./near/subgraph')
@@ -63,11 +62,9 @@ module.exports = class Protocol {
6362
case 'ethereum':
6463
case 'ethereum/contract':
6564
return new EthereumTemplateCodeGen(template)
66-
case 'near':
67-
return new NearTemplateCodeGen(template)
6865
default:
6966
throw new Error(
70-
`Data sources with kind '${this.name}' are not supported yet`,
67+
`Template data sources with kind '${this.name}' are not supported yet`,
7168
)
7269
}
7370
}

src/protocols/near/codegen/template.js

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)