Skip to content

Commit 86622f7

Browse files
committed
add module graph
1 parent fa42dad commit 86622f7

File tree

5 files changed

+486
-100
lines changed

5 files changed

+486
-100
lines changed

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,13 @@ mockery: $(mockery) ## Install mockery.
124124
rm-mocked:
125125
grep -rl "^// Code generated by mockery" | grep .go$ | xargs -r rm
126126

127+
.PHONY: modgraph
128+
modgraph:
129+
go install github.com/jmank88/[email protected]
130+
./scripts/modgraph.sh > go.md
131+
127132
.PHONY: generate
128-
generate: mockery gomods
133+
generate: mockery gomods modgraph
129134
gomods -w go generate -x ./...
130135
mockery
131136

go.md

Lines changed: 345 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,345 @@
1+
# smartcontractkit Go modules
2+
## Main module
3+
```mermaid
4+
flowchart LR
5+
6+
chain-selectors
7+
click chain-selectors href "https://github.com/smartcontractkit/chain-selectors"
8+
chainlink-ccip --> chainlink-common
9+
chainlink-ccip --> chainlink-protos/rmn/v1.6/go
10+
click chainlink-ccip href "https://github.com/smartcontractkit/chainlink-ccip"
11+
chainlink-ccip/chains/solana --> chainlink-ccip
12+
click chainlink-ccip/chains/solana href "https://github.com/smartcontractkit/chainlink-ccip"
13+
chainlink-ccip/chains/solana/gobindings
14+
click chainlink-ccip/chains/solana/gobindings href "https://github.com/smartcontractkit/chainlink-ccip"
15+
chainlink-common --> chain-selectors
16+
chainlink-common --> chainlink-common/pkg/chipingress
17+
chainlink-common --> chainlink-protos/billing/go
18+
chainlink-common --> chainlink-protos/cre/go
19+
chainlink-common --> chainlink-protos/storage-service
20+
chainlink-common --> chainlink-protos/workflows/go
21+
chainlink-common --> freeport
22+
chainlink-common --> grpc-proxy
23+
chainlink-common --> libocr
24+
click chainlink-common href "https://github.com/smartcontractkit/chainlink-common"
25+
chainlink-common/pkg/chipingress
26+
click chainlink-common/pkg/chipingress href "https://github.com/smartcontractkit/chainlink-common"
27+
chainlink-common/pkg/monitoring --> chainlink-common
28+
click chainlink-common/pkg/monitoring href "https://github.com/smartcontractkit/chainlink-common"
29+
chainlink-framework/capabilities --> chainlink-common
30+
click chainlink-framework/capabilities href "https://github.com/smartcontractkit/chainlink-framework"
31+
chainlink-framework/metrics --> chainlink-common
32+
click chainlink-framework/metrics href "https://github.com/smartcontractkit/chainlink-framework"
33+
chainlink-framework/multinode --> chainlink-framework/metrics
34+
click chainlink-framework/multinode href "https://github.com/smartcontractkit/chainlink-framework"
35+
chainlink-protos/billing/go
36+
click chainlink-protos/billing/go href "https://github.com/smartcontractkit/chainlink-protos"
37+
chainlink-protos/cre/go
38+
click chainlink-protos/cre/go href "https://github.com/smartcontractkit/chainlink-protos"
39+
chainlink-protos/rmn/v1.6/go
40+
click chainlink-protos/rmn/v1.6/go href "https://github.com/smartcontractkit/chainlink-protos"
41+
chainlink-protos/storage-service
42+
click chainlink-protos/storage-service href "https://github.com/smartcontractkit/chainlink-protos"
43+
chainlink-protos/workflows/go
44+
click chainlink-protos/workflows/go href "https://github.com/smartcontractkit/chainlink-protos"
45+
chainlink-solana --> chainlink-ccip/chains/solana
46+
chainlink-solana --> chainlink-ccip/chains/solana/gobindings
47+
chainlink-solana --> chainlink-common/pkg/monitoring
48+
chainlink-solana --> chainlink-framework/capabilities
49+
chainlink-solana --> chainlink-framework/multinode
50+
click chainlink-solana href "https://github.com/smartcontractkit/chainlink-solana"
51+
freeport
52+
click freeport href "https://github.com/smartcontractkit/freeport"
53+
grpc-proxy
54+
click grpc-proxy href "https://github.com/smartcontractkit/grpc-proxy"
55+
libocr
56+
click libocr href "https://github.com/smartcontractkit/libocr"
57+
58+
subgraph chainlink-ccip-repo[chainlink-ccip]
59+
chainlink-ccip
60+
chainlink-ccip/chains/solana
61+
chainlink-ccip/chains/solana/gobindings
62+
end
63+
click chainlink-ccip-repo href "https://github.com/smartcontractkit/chainlink-ccip"
64+
65+
subgraph chainlink-common-repo[chainlink-common]
66+
chainlink-common
67+
chainlink-common/pkg/chipingress
68+
chainlink-common/pkg/monitoring
69+
end
70+
click chainlink-common-repo href "https://github.com/smartcontractkit/chainlink-common"
71+
72+
subgraph chainlink-framework-repo[chainlink-framework]
73+
chainlink-framework/capabilities
74+
chainlink-framework/metrics
75+
chainlink-framework/multinode
76+
end
77+
click chainlink-framework-repo href "https://github.com/smartcontractkit/chainlink-framework"
78+
79+
subgraph chainlink-protos-repo[chainlink-protos]
80+
chainlink-protos/billing/go
81+
chainlink-protos/cre/go
82+
chainlink-protos/rmn/v1.6/go
83+
chainlink-protos/storage-service
84+
chainlink-protos/workflows/go
85+
end
86+
click chainlink-protos-repo href "https://github.com/smartcontractkit/chainlink-protos"
87+
88+
classDef outline stroke-dasharray:6,fill:none;
89+
class chainlink-ccip-repo,chainlink-common-repo,chainlink-framework-repo,chainlink-protos-repo outline
90+
```
91+
## All modules
92+
```mermaid
93+
flowchart LR
94+
95+
ccip-contract-examples/chains/evm
96+
click ccip-contract-examples/chains/evm href "https://github.com/smartcontractkit/ccip-contract-examples"
97+
ccip-owner-contracts
98+
click ccip-owner-contracts href "https://github.com/smartcontractkit/ccip-owner-contracts"
99+
chain-selectors
100+
click chain-selectors href "https://github.com/smartcontractkit/chain-selectors"
101+
chainlink-aptos --> chainlink-common
102+
click chainlink-aptos href "https://github.com/smartcontractkit/chainlink-aptos"
103+
chainlink-automation --> chainlink-common
104+
click chainlink-automation href "https://github.com/smartcontractkit/chainlink-automation"
105+
chainlink-ccip --> chainlink-common
106+
chainlink-ccip --> chainlink-protos/rmn/v1.6/go
107+
click chainlink-ccip href "https://github.com/smartcontractkit/chainlink-ccip"
108+
chainlink-ccip/chains/solana --> chainlink-ccip
109+
chainlink-ccip/chains/solana --> chainlink-ccip/chains/solana/gobindings
110+
click chainlink-ccip/chains/solana href "https://github.com/smartcontractkit/chainlink-ccip"
111+
chainlink-ccip/chains/solana/gobindings
112+
click chainlink-ccip/chains/solana/gobindings href "https://github.com/smartcontractkit/chainlink-ccip"
113+
chainlink-common --> chain-selectors
114+
chainlink-common --> chainlink-common/pkg/chipingress
115+
chainlink-common --> chainlink-protos/billing/go
116+
chainlink-common --> chainlink-protos/cre/go
117+
chainlink-common --> chainlink-protos/storage-service
118+
chainlink-common --> freeport
119+
chainlink-common --> grpc-proxy
120+
chainlink-common --> libocr
121+
click chainlink-common href "https://github.com/smartcontractkit/chainlink-common"
122+
chainlink-common/pkg/chipingress
123+
click chainlink-common/pkg/chipingress href "https://github.com/smartcontractkit/chainlink-common"
124+
chainlink-common/pkg/monitoring --> chainlink-common
125+
click chainlink-common/pkg/monitoring href "https://github.com/smartcontractkit/chainlink-common"
126+
chainlink-common/pkg/values
127+
click chainlink-common/pkg/values href "https://github.com/smartcontractkit/chainlink-common"
128+
chainlink-data-streams --> chainlink-common
129+
click chainlink-data-streams href "https://github.com/smartcontractkit/chainlink-data-streams"
130+
chainlink-deployments-framework --> ccip-owner-contracts
131+
chainlink-deployments-framework --> chainlink-protos/chainlink-catalog
132+
chainlink-deployments-framework --> chainlink-protos/job-distributor
133+
chainlink-deployments-framework --> chainlink-testing-framework/seth
134+
chainlink-deployments-framework --> chainlink-tron/relayer
135+
chainlink-deployments-framework --> mcms
136+
click chainlink-deployments-framework href "https://github.com/smartcontractkit/chainlink-deployments-framework"
137+
chainlink-evm --> chainlink-evm/gethwrappers
138+
chainlink-evm --> chainlink-framework/capabilities
139+
chainlink-evm --> chainlink-framework/chains
140+
chainlink-evm --> chainlink-protos/svr
141+
chainlink-evm --> chainlink-tron/relayer
142+
click chainlink-evm href "https://github.com/smartcontractkit/chainlink-evm"
143+
chainlink-evm/gethwrappers
144+
click chainlink-evm/gethwrappers href "https://github.com/smartcontractkit/chainlink-evm"
145+
chainlink-feeds --> chainlink-common
146+
click chainlink-feeds href "https://github.com/smartcontractkit/chainlink-feeds"
147+
chainlink-framework/capabilities --> chainlink-common
148+
click chainlink-framework/capabilities href "https://github.com/smartcontractkit/chainlink-framework"
149+
chainlink-framework/chains --> chainlink-framework/multinode
150+
click chainlink-framework/chains href "https://github.com/smartcontractkit/chainlink-framework"
151+
chainlink-framework/metrics --> chainlink-common
152+
click chainlink-framework/metrics href "https://github.com/smartcontractkit/chainlink-framework"
153+
chainlink-framework/multinode --> chainlink-framework/metrics
154+
click chainlink-framework/multinode href "https://github.com/smartcontractkit/chainlink-framework"
155+
chainlink-protos/billing/go --> chainlink-protos/workflows/go
156+
click chainlink-protos/billing/go href "https://github.com/smartcontractkit/chainlink-protos"
157+
chainlink-protos/chainlink-catalog
158+
click chainlink-protos/chainlink-catalog href "https://github.com/smartcontractkit/chainlink-protos"
159+
chainlink-protos/cre/go
160+
click chainlink-protos/cre/go href "https://github.com/smartcontractkit/chainlink-protos"
161+
chainlink-protos/job-distributor
162+
click chainlink-protos/job-distributor href "https://github.com/smartcontractkit/chainlink-protos"
163+
chainlink-protos/orchestrator --> wsrpc
164+
click chainlink-protos/orchestrator href "https://github.com/smartcontractkit/chainlink-protos"
165+
chainlink-protos/rmn/v1.6/go
166+
click chainlink-protos/rmn/v1.6/go href "https://github.com/smartcontractkit/chainlink-protos"
167+
chainlink-protos/storage-service
168+
click chainlink-protos/storage-service href "https://github.com/smartcontractkit/chainlink-protos"
169+
chainlink-protos/svr
170+
click chainlink-protos/svr href "https://github.com/smartcontractkit/chainlink-protos"
171+
chainlink-protos/workflows/go
172+
click chainlink-protos/workflows/go href "https://github.com/smartcontractkit/chainlink-protos"
173+
chainlink-solana --> chainlink-ccip/chains/solana
174+
chainlink-solana --> chainlink-common/pkg/monitoring
175+
chainlink-solana --> chainlink-framework/capabilities
176+
chainlink-solana --> chainlink-framework/multinode
177+
click chainlink-solana href "https://github.com/smartcontractkit/chainlink-solana"
178+
chainlink-solana/integration-tests --> chainlink/integration-tests
179+
click chainlink-solana/integration-tests href "https://github.com/smartcontractkit/chainlink-solana"
180+
chainlink-testing-framework/framework
181+
click chainlink-testing-framework/framework href "https://github.com/smartcontractkit/chainlink-testing-framework"
182+
chainlink-testing-framework/havoc
183+
click chainlink-testing-framework/havoc href "https://github.com/smartcontractkit/chainlink-testing-framework"
184+
chainlink-testing-framework/lib --> chainlink-testing-framework/parrot
185+
chainlink-testing-framework/lib --> chainlink-testing-framework/seth
186+
click chainlink-testing-framework/lib href "https://github.com/smartcontractkit/chainlink-testing-framework"
187+
chainlink-testing-framework/lib/grafana
188+
click chainlink-testing-framework/lib/grafana href "https://github.com/smartcontractkit/chainlink-testing-framework"
189+
chainlink-testing-framework/parrot
190+
click chainlink-testing-framework/parrot href "https://github.com/smartcontractkit/chainlink-testing-framework"
191+
chainlink-testing-framework/sentinel
192+
click chainlink-testing-framework/sentinel href "https://github.com/smartcontractkit/chainlink-testing-framework"
193+
chainlink-testing-framework/seth
194+
click chainlink-testing-framework/seth href "https://github.com/smartcontractkit/chainlink-testing-framework"
195+
chainlink-testing-framework/wasp
196+
click chainlink-testing-framework/wasp href "https://github.com/smartcontractkit/chainlink-testing-framework"
197+
chainlink-ton --> chainlink-ccip
198+
click chainlink-ton href "https://github.com/smartcontractkit/chainlink-ton"
199+
chainlink-ton/deployment
200+
click chainlink-ton/deployment href "https://github.com/smartcontractkit/chainlink-ton"
201+
chainlink-tron/relayer --> chainlink-common
202+
chainlink-tron/relayer --> chainlink-common/pkg/values
203+
click chainlink-tron/relayer href "https://github.com/smartcontractkit/chainlink-tron"
204+
chainlink/deployment --> ccip-contract-examples/chains/evm
205+
chainlink/deployment --> chainlink-deployments-framework
206+
chainlink/deployment --> chainlink-testing-framework/lib
207+
chainlink/deployment --> chainlink-ton/deployment
208+
chainlink/deployment --> chainlink/v2
209+
click chainlink/deployment href "https://github.com/smartcontractkit/chainlink"
210+
chainlink/integration-tests --> chainlink-testing-framework/havoc
211+
chainlink/integration-tests --> chainlink-testing-framework/lib/grafana
212+
chainlink/integration-tests --> chainlink-testing-framework/sentinel
213+
chainlink/integration-tests --> chainlink-testing-framework/wasp
214+
chainlink/integration-tests --> chainlink/deployment
215+
click chainlink/integration-tests href "https://github.com/smartcontractkit/chainlink"
216+
chainlink/v2 --> chainlink-aptos
217+
chainlink/v2 --> chainlink-automation
218+
chainlink/v2 --> chainlink-data-streams
219+
chainlink/v2 --> chainlink-evm
220+
chainlink/v2 --> chainlink-feeds
221+
chainlink/v2 --> chainlink-protos/orchestrator
222+
chainlink/v2 --> chainlink-solana
223+
chainlink/v2 --> chainlink-ton
224+
chainlink/v2 --> cre-sdk-go
225+
chainlink/v2 --> cre-sdk-go/capabilities/networking/http
226+
chainlink/v2 --> cre-sdk-go/capabilities/scheduler/cron
227+
chainlink/v2 --> smdkg
228+
chainlink/v2 --> tdh2/go/ocr2/decryptionplugin
229+
click chainlink/v2 href "https://github.com/smartcontractkit/chainlink"
230+
cre-sdk-go
231+
click cre-sdk-go href "https://github.com/smartcontractkit/cre-sdk-go"
232+
cre-sdk-go/capabilities/networking/http
233+
click cre-sdk-go/capabilities/networking/http href "https://github.com/smartcontractkit/cre-sdk-go"
234+
cre-sdk-go/capabilities/scheduler/cron
235+
click cre-sdk-go/capabilities/scheduler/cron href "https://github.com/smartcontractkit/cre-sdk-go"
236+
freeport
237+
click freeport href "https://github.com/smartcontractkit/freeport"
238+
grpc-proxy
239+
click grpc-proxy href "https://github.com/smartcontractkit/grpc-proxy"
240+
libocr
241+
click libocr href "https://github.com/smartcontractkit/libocr"
242+
mcms --> chainlink-aptos
243+
mcms --> chainlink-ccip/chains/solana
244+
mcms --> chainlink-testing-framework/framework
245+
click mcms href "https://github.com/smartcontractkit/mcms"
246+
smdkg --> libocr
247+
smdkg --> tdh2/go/tdh2
248+
click smdkg href "https://github.com/smartcontractkit/smdkg"
249+
tdh2/go/ocr2/decryptionplugin --> libocr
250+
tdh2/go/ocr2/decryptionplugin --> tdh2/go/tdh2
251+
click tdh2/go/ocr2/decryptionplugin href "https://github.com/smartcontractkit/tdh2"
252+
tdh2/go/tdh2
253+
click tdh2/go/tdh2 href "https://github.com/smartcontractkit/tdh2"
254+
wsrpc
255+
click wsrpc href "https://github.com/smartcontractkit/wsrpc"
256+
257+
subgraph chainlink-repo[chainlink]
258+
chainlink/deployment
259+
chainlink/integration-tests
260+
chainlink/v2
261+
end
262+
click chainlink-repo href "https://github.com/smartcontractkit/chainlink"
263+
264+
subgraph chainlink-ccip-repo[chainlink-ccip]
265+
chainlink-ccip
266+
chainlink-ccip/chains/solana
267+
chainlink-ccip/chains/solana/gobindings
268+
end
269+
click chainlink-ccip-repo href "https://github.com/smartcontractkit/chainlink-ccip"
270+
271+
subgraph chainlink-common-repo[chainlink-common]
272+
chainlink-common
273+
chainlink-common/pkg/chipingress
274+
chainlink-common/pkg/monitoring
275+
chainlink-common/pkg/values
276+
end
277+
click chainlink-common-repo href "https://github.com/smartcontractkit/chainlink-common"
278+
279+
subgraph chainlink-evm-repo[chainlink-evm]
280+
chainlink-evm
281+
chainlink-evm/gethwrappers
282+
end
283+
click chainlink-evm-repo href "https://github.com/smartcontractkit/chainlink-evm"
284+
285+
subgraph chainlink-framework-repo[chainlink-framework]
286+
chainlink-framework/capabilities
287+
chainlink-framework/chains
288+
chainlink-framework/metrics
289+
chainlink-framework/multinode
290+
end
291+
click chainlink-framework-repo href "https://github.com/smartcontractkit/chainlink-framework"
292+
293+
subgraph chainlink-protos-repo[chainlink-protos]
294+
chainlink-protos/billing/go
295+
chainlink-protos/chainlink-catalog
296+
chainlink-protos/cre/go
297+
chainlink-protos/job-distributor
298+
chainlink-protos/orchestrator
299+
chainlink-protos/rmn/v1.6/go
300+
chainlink-protos/storage-service
301+
chainlink-protos/svr
302+
chainlink-protos/workflows/go
303+
end
304+
click chainlink-protos-repo href "https://github.com/smartcontractkit/chainlink-protos"
305+
306+
subgraph chainlink-solana-repo[chainlink-solana]
307+
chainlink-solana
308+
chainlink-solana/integration-tests
309+
end
310+
click chainlink-solana-repo href "https://github.com/smartcontractkit/chainlink-solana"
311+
312+
subgraph chainlink-testing-framework-repo[chainlink-testing-framework]
313+
chainlink-testing-framework/framework
314+
chainlink-testing-framework/havoc
315+
chainlink-testing-framework/lib
316+
chainlink-testing-framework/lib/grafana
317+
chainlink-testing-framework/parrot
318+
chainlink-testing-framework/sentinel
319+
chainlink-testing-framework/seth
320+
chainlink-testing-framework/wasp
321+
end
322+
click chainlink-testing-framework-repo href "https://github.com/smartcontractkit/chainlink-testing-framework"
323+
324+
subgraph chainlink-ton-repo[chainlink-ton]
325+
chainlink-ton
326+
chainlink-ton/deployment
327+
end
328+
click chainlink-ton-repo href "https://github.com/smartcontractkit/chainlink-ton"
329+
330+
subgraph cre-sdk-go-repo[cre-sdk-go]
331+
cre-sdk-go
332+
cre-sdk-go/capabilities/networking/http
333+
cre-sdk-go/capabilities/scheduler/cron
334+
end
335+
click cre-sdk-go-repo href "https://github.com/smartcontractkit/cre-sdk-go"
336+
337+
subgraph tdh2-repo[tdh2]
338+
tdh2/go/ocr2/decryptionplugin
339+
tdh2/go/tdh2
340+
end
341+
click tdh2-repo href "https://github.com/smartcontractkit/tdh2"
342+
343+
classDef outline stroke-dasharray:6,fill:none;
344+
class chainlink-repo,chainlink-ccip-repo,chainlink-common-repo,chainlink-evm-repo,chainlink-framework-repo,chainlink-protos-repo,chainlink-solana-repo,chainlink-testing-framework-repo,chainlink-ton-repo,cre-sdk-go-repo,tdh2-repo outline
345+
```

0 commit comments

Comments
 (0)