File tree Expand file tree Collapse file tree 3 files changed +2
-56
lines changed Expand file tree Collapse file tree 3 files changed +2
-56
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,7 @@ union DataSource =
10
10
EthereumContractDataSource |
11
11
NearContractDataSource
12
12
13
- union DataSourceTemplate =
14
- EthereumContractDataSourceTemplate |
15
- NearContractDataSourceTemplate
13
+ union DataSourceTemplate = EthereumContractDataSourceTemplate
16
14
17
15
type EthereumContractDataSource {
18
16
kind : String !
@@ -125,13 +123,6 @@ type EthereumContractDataSourceTemplate {
125
123
mapping : EthereumContractMapping !
126
124
}
127
125
128
- type NearContractDataSourceTemplate {
129
- kind : String !
130
- name : String !
131
- network : String
132
- mapping : NearContractMapping !
133
- }
134
-
135
126
type EthereumContractSourceTemplate {
136
127
abi : String !
137
128
}
Original file line number Diff line number Diff line change 1
1
const immutable = require ( 'immutable' )
2
2
const EthereumTypeGenerator = require ( './ethereum/type-generator' )
3
3
const EthereumTemplateCodeGen = require ( './ethereum/codegen/template' )
4
- const NearTemplateCodeGen = require ( './near/codegen/template' )
5
4
const EthereumABI = require ( './ethereum/abi' )
6
5
const EthereumSubgraph = require ( './ethereum/subgraph' )
7
6
const NearSubgraph = require ( './near/subgraph' )
@@ -63,11 +62,9 @@ module.exports = class Protocol {
63
62
case 'ethereum' :
64
63
case 'ethereum/contract' :
65
64
return new EthereumTemplateCodeGen ( template )
66
- case 'near' :
67
- return new NearTemplateCodeGen ( template )
68
65
default :
69
66
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` ,
71
68
)
72
69
}
73
70
}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments