-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifest.template.yaml
174 lines (171 loc) · 5.15 KB
/
manifest.template.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
specVersion: 0.0.2
description: Verified is a decentralized financial services network for payments, investments and financing.
{{#if graft}}
graft:
base: {{graft.base}}
block: {{graft.block}}
{{/if}}
repository: https://github.com/verified-network/verified-graph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Factory
network: {{network}}
source:
address: '{{Factory.address}}'
abi: Factory
startBlock: {{Factory.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
file: ./src/mappings/factory.ts
entities:
- Issuer
- Token
- Security
abis:
- name: Factory
file: ./abis/Factory.json
- name: Security
file: ./abis/Security.json
eventHandlers:
- event: IssuerCreated(indexed address,bytes32,bytes32)
handler: handleIssuerCreated
- event: securitiesAdded(indexed address,address,bytes32,bytes32)
handler: handleTokenCreated
- kind: ethereum/contract
name: Client
network: {{network}}
source:
address: '{{Client.address}}'
abi: Client
startBlock: {{Client.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
file: ./src/mappings/client.ts
entities:
- Manager
- Client
abis:
- name: Client
file: ./abis/Client.json
eventHandlers:
- event: ManagerAdded(address,indexed address,bytes32,bytes32,bytes32)
handler: handleManagerCreated
- event: ManagerRemoved(address,indexed address,bytes32,bytes32)
handler: handleManagerRemoved
- event: UserAdded(address,bytes32,bytes32,bytes32,uint256)
handler: handleUserCreated
- kind: ethereum/contract
name: PrimaryIssueManager
network: {{network}}
source:
address: '{{PrimaryIssueManager.address}}'
abi: PrimaryIssueManager
startBlock: {{PrimaryIssueManager.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
file: ./src/mappings/client.ts
entities:
- Subscribers
- LiquidityProviders
- Pools
abis:
- name: PrimaryIssueManager
file: ./abis/PrimaryIssueManager.json
eventHandlers:
- event: marketmakers(address,address,address);
handler: handleMarketmakers
- event: subscribers(address,address,bytes32,address);
handler: handlePrimaryInvestors
- event: platforms(address);
handler: handlePools
- kind: ethereum/contract
name: SecondaryIssueManager
network: {{network}}
source:
address: '{{SecondaryIssueManager.address}}'
abi: SecondaryIssueManager
startBlock: {{SecondaryIssueManager.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
file: ./src/mappings/client.ts
entities:
- Trades
- Subscribers
- Pools
abis:
- name: SecondaryIssueManager
file: ./abis/SecondaryIssueManager.json
eventHandlers:
- event: tradeSettled(address,address,uint256,address,uint256,address);
handler: handleTradeSettled
- event: subscribers(address,address,bytes32,tuple);
handler: handleSecondaryInvestors
templates:
- kind: ethereum/contract
name: Cash
network: {{network}}
source:
abi: Cash
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- User
- CashIssues
- CashDeposited
- CashRedemptions
- CashTransfers
- Currency
abis:
- name: Cash
file: ./abis/Cash.json
eventHandlers:
- event: CashIssued(indexed address,bytes32,uint256)
handler: handleCashIssued
- event: CashRedeemed(indexed address,bytes32,uint256)
handler: handleCashRedeemed
- event: CashIssueRequest(indexed address,bytes32,uint256)
handler: handleCashDeposits
- event: CashTransfer(indexed address,indexed address,bytes32,uint256)
handler: handleCashTransfer
file: ./src/cash.ts
- kind: ethereum/contract
name: Bond
network: {{network}}
source:
abi: Bond
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- User
- BondIssues
- BondPurchases
- BondRedemptions
- BondIssueRequests
- Currency
abis:
- name: Bond
file: ./abis/Bond.json
eventHandlers:
- event: BondIssued(indexed address,bytes32,uint256,address)
handler: handleBondIssued
- event: BondRedeemed(indexed address,bytes32,uint256,address)
handler: handleBondRedeemed
- event: BondPurchased(indexed address,bytes32,uint256,address)
handler: handleBondPurchased
- event: BondIssueRequest(indexed address,bytes32,uint256)
handler: handleBondIssueRequest
file: ./src/bond.ts