forked from oxheadalpha/teztnets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TezosChain.ts
726 lines (650 loc) · 23.3 KB
/
TezosChain.ts
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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
import * as pulumi from "@pulumi/pulumi";
import * as k8s from "@pulumi/kubernetes";
import * as awsx from "@pulumi/awsx";
import * as aws from "@pulumi/aws";
import * as cronParser from "cron-parser";
import { createCertValidation } from "./route53";
import { publicReadPolicyForBucket } from "./s3";
import { TezosImageResolver } from "./TezosImageResolver";
import * as docker from "@pulumi/docker";
import * as fs from 'fs';
import * as YAML from 'yaml';
const mime = require("mime");
export interface TezosHelmParameters {
readonly helmValues: any;
}
export interface TezosInitParameters {
getName(): string;
getChainName(): string;
getDescription(): string;
getHumanName(): string;
isPeriodic(): boolean;
isMaskedFromMainPage(): boolean;
getContainerImage(): string | pulumi.Output<string>;
getDnsName(): string;
getCategory(): string;
getPeers(): string[];
getContracts(): string[];
getCommitments(): string;
getChartRepo(): string;
getChartRepoVersion(): string;
getChartPath(): string;
getPrivateBakingKey(): string;
getPrivateNonbakingKey(): string;
getNumberOfFaucetAccounts(): number;
getFaucetSeed(): string;
getFaucetRecaptchaSiteKey(): string;
getFaucetRecaptchaSecretKey(): string;
}
export interface TezosParamsInitializer {
readonly name?: string;
readonly chainName?: string;
readonly description?: string;
readonly humanName?: string;
readonly schedule?: string;
readonly category?: string;
readonly containerImage?: string | pulumi.Output<string>;
readonly dnsName?: string;
readonly bootstrapPeers?: string[];
readonly bootstrapContracts?: string[];
readonly bootstrapCommitments?: string;
readonly chartRepo?: string;
readonly chartRepoVersion?: string;
readonly chartPath?: string;
readonly privateBakingKey?: string;
readonly privateNonbakingKey?: string;
readonly yamlFile?: string;
readonly numberOfFaucetAccounts?: number;
readonly maskedFromMainPage?: boolean;
readonly faucetSeed?: string;
readonly faucetRecaptchaSiteKey?: string;
readonly faucetRecaptchaSecretKey?: string;
}
export class TezosChainParametersBuilder implements TezosHelmParameters, TezosInitParameters {
private _helmValues: any;
private _name: string;
private _description: string;
private _humanName: string;
private _periodic: boolean;
private _dnsName: string;
private _category: string;
private _publicBootstrapPeers: string[];
private _bootstrapContracts: string[];
private _bootstrapCommitments: string;
private _chartRepo: string;
private _chartRepoVersion: string;
private _chartPath: string;
private _numberOfFaucetAccounts: number;
private _maskedFromMainPage: boolean;
private _faucetSeed: string;
private _faucetRecaptchaSiteKey: string;
private _faucetRecaptchaSecretKey: string;
constructor(params: TezosParamsInitializer = {}) {
this._name = params.name || params.dnsName || '';
this._description = params.description || '';
this._humanName = params.humanName || '';
this._dnsName = params.dnsName || params.name || '';
this._category = params.category || '';
this._publicBootstrapPeers = params.bootstrapPeers || [];
this._bootstrapContracts = params.bootstrapContracts || [];
this._bootstrapCommitments = params.bootstrapCommitments || '';
this._chartRepo = params.chartRepo || '';
this._chartRepoVersion = params.chartRepoVersion || '';
this._chartPath = params.chartPath || '';
this._periodic = false;
this._maskedFromMainPage = params.maskedFromMainPage || false;
this._numberOfFaucetAccounts = params.numberOfFaucetAccounts || 0;
this._faucetSeed = params.faucetSeed || '';
this._faucetRecaptchaSiteKey = params.faucetRecaptchaSiteKey || '';
this._faucetRecaptchaSecretKey = params.faucetRecaptchaSecretKey || '';
this._helmValues = {};
if (params.yamlFile) {
this.fromFile(params.yamlFile);
}
if (params.schedule) {
this.schedule(params.schedule);
}
if (params.chainName) {
this.chainName(params.chainName);
}
if (params.containerImage) {
this.containerImage(params.containerImage);
}
if (params.privateBakingKey) {
this.privateBakingKey(params.privateBakingKey);
}
if (params.privateNonbakingKey) {
this.privateNonbakingKey(params.privateNonbakingKey);
}
}
public fromYaml(yaml: string): TezosChainParametersBuilder {
this._helmValues = YAML.parse(yaml);
return this;
}
public fromFile(yamlPath: string): TezosChainParametersBuilder {
this.fromYaml(fs.readFileSync(yamlPath, 'utf8'));
return this;
}
public name(name: string): TezosChainParametersBuilder {
this._name = name;
this._dnsName = this._dnsName || name;
return this;
}
public getName(): string {
return this._name;
}
public chainName(chainName: string): TezosChainParametersBuilder {
this._helmValues["node_config_network"]["chain_name"] = chainName;
return this;
}
public timestamp(timestamp: string): TezosChainParametersBuilder {
this._helmValues["node_config_network"]["genesis"]["timestamp"] = timestamp;
return this;
}
public getChainName(): string {
return this._helmValues["node_config_network"]["chain_name"];
}
public containerImage(containerImage: string | pulumi.Output<String>): TezosChainParametersBuilder {
this._helmValues["images"]["octez"] = containerImage
return this;
}
public getContainerImage(): string {
return this._helmValues["images"]["octez"];
}
public dnsName(dnsName: string): TezosChainParametersBuilder {
this._dnsName = dnsName;
this._name = this._name || dnsName;
return this;
}
public getDnsName(): string | any {
return this._dnsName;
}
public getCategory(): string | any {
return this._category;
}
public description(description: string): TezosChainParametersBuilder {
this._description = description;
return this;
}
public getDescription(): string | any {
return this._description;
}
public getHumanName(): string | any {
return this._humanName;
}
public isMaskedFromMainPage(): boolean {
return this._maskedFromMainPage;
}
public isPeriodic(): boolean {
return this._periodic;
}
public schedule(cronExpr: string): TezosChainParametersBuilder {
const deployDate = new Date(cronParser.parseExpression(cronExpr, {utc: true}).prev().toLocaleString());
const imageResolver = new TezosImageResolver();
this.containerImage(pulumi.output(imageResolver.getLatestTagAsync(deployDate))
.apply(tag => `${imageResolver.image}:${tag}`));
this.name(`${this.getDnsName().toLowerCase()}-${deployDate.toISOString().split('T')[0]}`);
this.chainName(`TEZOS-${this.getDnsName().toUpperCase()}-${deployDate.toISOString()}`);
this.timestamp(deployDate.toISOString());
this._periodic = true;
return this;
}
public peers(peers: string[]): TezosChainParametersBuilder {
this._publicBootstrapPeers = peers;
return this;
}
public peer(peer: string): TezosChainParametersBuilder {
this._publicBootstrapPeers.push(peer);
return this;
}
public getPeers(): string[] {
return this._publicBootstrapPeers;
}
public contracts(contracts: string[]): TezosChainParametersBuilder {
this._bootstrapContracts = contracts;
return this;
}
public contract(contract: string): TezosChainParametersBuilder {
this._bootstrapContracts.push(contract);
return this;
}
public getContracts(): string[] {
return this._bootstrapContracts;
}
public commitments(commitments: string): TezosChainParametersBuilder {
this._bootstrapCommitments = commitments;
return this;
}
public getCommitments(): string {
return this._bootstrapCommitments;
}
public getNumberOfFaucetAccounts(): number {
return this._numberOfFaucetAccounts;
}
public getFaucetSeed(): string {
return this._faucetSeed;
}
public getFaucetRecaptchaSiteKey(): string {
return this._faucetRecaptchaSiteKey;
}
public getFaucetRecaptchaSecretKey(): string {
return this._faucetRecaptchaSecretKey;
}
public chartRepo(chartRepo: string): TezosChainParametersBuilder {
this._chartRepo = chartRepo;
return this;
}
public chartRepoVersion(chartRepoVersion: string): TezosChainParametersBuilder {
this._chartRepoVersion = chartRepoVersion;
return this;
}
public chartPath(chartPath: string): TezosChainParametersBuilder {
this._chartPath = chartPath;
return this;
}
public getChartRepo(): string {
return this._chartRepo;
}
public getChartRepoVersion(): string {
return this._chartRepoVersion;
}
public getChartPath(): string {
return this._chartPath;
}
public privateBakingKey(privateBakingKey: string): TezosChainParametersBuilder {
this._helmValues["accounts"]["oxheadbaker"]["key"] = privateBakingKey;
return this;
}
public getPrivateBakingKey(): string {
return this._helmValues["accounts"]["oxheadbaker"]["key"];
}
public privateNonbakingKey(privateNonbakingKey: string): TezosChainParametersBuilder {
this._helmValues["accounts"]["tqfree"]["key"] = privateNonbakingKey;
return this;
}
public getPrivateNonbakingKey(): string {
return this._helmValues["accounts"]["tqfree"]["key"];
}
public get helmValues(): string {
return this._helmValues;
}
}
/**
* Deploy a tezos-k8s topology in a k8s cluster.
* Supports either local charts or charts from a repo
*/
export class TezosChain extends pulumi.ComponentResource {
readonly params: TezosHelmParameters & TezosInitParameters;
readonly provider: k8s.Provider;
readonly repo: awsx.ecr.Repository;
// readonly ns: k8s.core.v1.Namespace;
// readonly chain: k8s.helm.v2.Chart;
/**
* Deploys a private chain on a Kubernetes cluster.
* @param name The name of the Pulumi resource.
* @param params Helm chart values and chain bootstrap parameters
* @param provider The Kubernetes cluster to deploy it into.
* @param repo The container repository where to push the custom images for this chain.
*/
constructor(params: TezosHelmParameters & TezosInitParameters,
provider: k8s.Provider,
repo: awsx.ecr.Repository,
opts?: pulumi.ResourceOptions) {
const inputs: pulumi.Inputs = {
options: opts,
};
const name = params.getName();
super("pulumi-contrib:components:TezosChain", name, inputs, opts);
this.params = params;
this.provider = provider;
this.repo = repo;
var ns = new k8s.core.v1.Namespace(name,
{ metadata: { name: name, } },
{ provider: this.provider }
);
if (("activation" in params.helmValues) && (params.getContracts() || params.getCommitments())) {
const activationBucket = new aws.s3.Bucket(`${name}-activation-bucket`);
const bucketPolicy = new aws.s3.BucketPolicy(`${name}-activation-bucket-policy`, {
bucket: activationBucket.bucket,
policy: activationBucket.bucket.apply(publicReadPolicyForBucket)
});
params.helmValues["activation"]["bootstrap_contract_urls"] = [];
if (params.getContracts()) {
params.getContracts().forEach(function (contractFile: any) {
const bucketObject = new aws.s3.BucketObject(`${name}-${contractFile}`, {
bucket: activationBucket.bucket,
key: contractFile,
source: new pulumi.asset.FileAsset(`bootstrap_contracts/${contractFile}`),
contentType: mime.getType(contractFile),
acl: 'public-read'
});
params.helmValues["activation"]["bootstrap_contract_urls"].push(pulumi.interpolate `https://${activationBucket.bucketRegionalDomainName}/${contractFile}`);
})
}
if (params.getCommitments()) {
const commitmentFile = params.getCommitments();
const bucketObject = new aws.s3.BucketObject(`${name}-${commitmentFile}`, {
bucket: activationBucket.bucket,
key: commitmentFile,
source: new pulumi.asset.FileAsset(`bootstrap_commitments/${commitmentFile}`),
contentType: mime.getType(commitmentFile),
acl: 'public-read'
});
params.helmValues["activation"]["commitments_url"] = pulumi.interpolate`https://${activationBucket.bucketRegionalDomainName}/${commitmentFile}`;
}
}
// Hosted zones should really be owned by pulumi. Then we could
// reference them instead of hardcoding strings.
const teztnetsHostedZone = "teztnets.xyz"
const teztnetsDomain = `${name}.${teztnetsHostedZone}`
const defaultResourceOptions: pulumi.ResourceOptions = { parent: this }
const registry = repo.repository.registryId.apply(async id => {
let credentials = await aws.ecr.getCredentials({
registryId: id
}, {
...defaultResourceOptions,
async: true,
});
let decodedCredentials = Buffer.from(credentials.authorizationToken, "base64").toString();
let [username, password] = decodedCredentials.split(":");
if (!password || !username) {
throw new Error("Invalid credentials");
}
return {
registry: credentials.proxyEndpoint.replace("https://",""),
username: username,
password: password,
};
})
let _cacheFrom: docker.CacheFrom = {}
// RPC Ingress
const rpcDomain = `rpc.${teztnetsDomain}`
const rpcCert = new aws.acm.Certificate(
`${rpcDomain}-cert`,
{
validationMethod: "DNS",
domainName: rpcDomain,
},
{ parent: this }
)
const { certValidation } = createCertValidation(
{
cert: rpcCert,
targetDomain: rpcDomain,
hostedZone: teztnetsHostedZone,
},
{ parent: this }
)
const rpcIngName = `${rpcDomain}-ingress`
const rpc_ingress = new k8s.networking.v1beta1.Ingress(
rpcIngName,
{
metadata: {
namespace: ns.metadata.name,
name: rpcIngName,
annotations: {
"kubernetes.io/ingress.class": "alb",
"alb.ingress.kubernetes.io/scheme": "internet-facing",
"alb.ingress.kubernetes.io/healthcheck-path":
"/chains/main/chain_id",
"alb.ingress.kubernetes.io/healthcheck-port": "8732",
"alb.ingress.kubernetes.io/listen-ports":
'[{"HTTP": 80}, {"HTTPS":443}]',
"ingress.kubernetes.io/force-ssl-redirect": "true",
"alb.ingress.kubernetes.io/actions.ssl-redirect":
'{"Type": "redirect", "RedirectConfig": { "Protocol": "HTTPS", "Port": "443", "StatusCode": "HTTP_301"}}',
// Prevent pulumi erroring if ingress doesn't resolve immediately
"pulumi.com/skipAwait": "true",
},
labels: { app: "tezos-node" },
},
spec: {
rules: [
{
host: rpcDomain,
http: {
paths: [
{
path: "/*",
backend: {
serviceName: "ssl-redirect",
servicePort: "use-annotation",
},
},
{
path: "/*",
backend: {
serviceName: "tezos-node-rpc",
servicePort: "rpc",
},
},
],
},
},
],
},
},
{ provider, parent: this, dependsOn: certValidation }
)
let tezosK8sImages;
let pulumiTaggedImages;
if (params.getChartRepo() == '') {
// assume tezos-k8s submodule present; build custom images, and deploy custom chart from path
//make list of images to build in case we are using submodules
const defaultHelmValuesFile = fs.readFileSync(`${params.getChartPath()}/charts/tezos/values.yaml`, 'utf8');
const defaultHelmValues = YAML.parse(defaultHelmValuesFile);
tezosK8sImages = defaultHelmValues["tezos_k8s_images"];
// do not build zerotier for now since it takes times and it is not used in tqinfra
delete tezosK8sImages["zerotier"];
// build faucet container
tezosK8sImages["faucet"] = "faucet:dev";
}
let faucetConfig;
if (params.getNumberOfFaucetAccounts() > 0 && "activation" in params.helmValues) {
// deploy a faucet website
faucetConfig = {
seed: `${params.getFaucetSeed()}-${params.getChainName()}`,
number_of_accounts: params.getNumberOfFaucetAccounts(),
}
params.helmValues["activation"]["faucet"] = faucetConfig;
}
if (params.getChartRepo() == '') {
// assume tezos-k8s submodule present; build custom images, and deploy custom chart from path
pulumiTaggedImages = Object.entries(tezosK8sImages).reduce(
(obj: { [index: string]: any }, [key, value]) => {
let dockerBuild: docker.DockerBuild = {
dockerfile: `${params.getChartPath()}/${key}/Dockerfile`,
cacheFrom: _cacheFrom,
context: `${params.getChartPath()}/${key}`
};
obj[key] = docker.buildAndPushImage((value as string).replace(/:.*/, ""), dockerBuild, repo.repository.repositoryUrl, this, () => registry);
return obj
},
{}
)
params.helmValues["tezos_k8s_images"] = pulumiTaggedImages
const chain = new k8s.helm.v2.Chart(
name,
{
namespace: ns.metadata.name,
path: `${params.getChartPath()}/charts/tezos`,
values: params.helmValues,
},
{ providers: { kubernetes: this.provider } }
);
} else {
// deploy from helm repo with public images
const chain = new k8s.helm.v2.Chart(
name,
{
namespace: ns.metadata.name,
chart: 'tezos-chain',
version: params.getChartRepoVersion(),
fetchOpts:
{
repo: params.getChartRepo(),
},
values: params.helmValues,
},
{ providers: { kubernetes: this.provider } }
);
}
new k8s.core.v1.Service(
`${name}-p2p-lb`,
{
metadata: {
namespace: ns.metadata.name,
name: name,
annotations: {
"service.beta.kubernetes.io/aws-load-balancer-type": "nlb-ip",
"service.beta.kubernetes.io/aws-load-balancer-scheme": "internet-facing",
"external-dns.alpha.kubernetes.io/hostname": teztnetsDomain,
},
},
spec: {
ports: [
{
port: 9732,
targetPort: 9732,
protocol: "TCP",
},
],
selector: { node_class: "tezos-baking-node" },
type: "LoadBalancer",
},
},
{ provider: this.provider }
)
if (params.getNumberOfFaucetAccounts() > 0 && "activation" in params.helmValues) {
// deploy a faucet website
let faucetChartValues: any = {
namespace: ns.metadata.name,
values: {
recaptcha_keys: {
siteKey: params.getFaucetRecaptchaSiteKey(),
secretKey: params.getFaucetRecaptchaSecretKey(),
},
activation: {
faucet: faucetConfig,
},
},
};
if (params.getChartRepo() == '') {
// deploy from submodule
faucetChartValues["values"]["tezos_k8s_images"] = pulumiTaggedImages;
faucetChartValues["path"] = `${params.getChartPath()}/charts/tezos-faucet`;
} else {
// deploy from helm repo with public images
faucetChartValues["chart"] = 'tezos-faucet';
faucetChartValues["version"] = params.getChartRepoVersion();
faucetChartValues["fetchOpts"] = {
repo: params.getChartRepo(),
};
}
new k8s.helm.v2.Chart(
`${name}-faucet`,
faucetChartValues,
{ providers: { kubernetes: this.provider } }
)
const faucetDomain = `faucet.${teztnetsDomain}`
const faucetCert = new aws.acm.Certificate(
`${faucetDomain}-cert`,
{
validationMethod: "DNS",
domainName: faucetDomain,
},
{ parent: this }
)
const { certValidation } = createCertValidation(
{
cert: faucetCert,
targetDomain: faucetDomain,
hostedZone: teztnetsHostedZone,
},
{ parent: this }
)
const ingressName = `${faucetDomain}-ingress`
new k8s.networking.v1beta1.Ingress(
ingressName,
{
metadata: {
namespace: ns.metadata.name,
name: ingressName,
annotations: {
"kubernetes.io/ingress.class": "alb",
"alb.ingress.kubernetes.io/scheme": "internet-facing",
"alb.ingress.kubernetes.io/healthcheck-path": "/",
"alb.ingress.kubernetes.io/healthcheck-port": "8081",
"alb.ingress.kubernetes.io/listen-ports": '[{"HTTP": 80}, {"HTTPS":443}]',
"ingress.kubernetes.io/force-ssl-redirect": "true",
"alb.ingress.kubernetes.io/actions.ssl-redirect":
'{"Type": "redirect", "RedirectConfig": { "Protocol": "HTTPS", "Port": "443", "StatusCode": "HTTP_301"}}',
},
labels: { app: "faucet" },
},
spec: {
rules: [
{
host: faucetDomain,
http: {
paths: [
{
path: "/*",
backend: {
serviceName: "ssl-redirect",
servicePort: "use-annotation",
},
},
{
path: "/*",
backend: {
serviceName: "faucet",
servicePort: "http",
},
},
],
},
},
],
},
},
{ provider, parent: this, dependsOn: certValidation }
)
}
}
getChainName(): string {
return this.params.getChainName();
}
getCategory(): string {
return this.params.getCategory();
}
getDescription(): string {
return this.params.getDescription();
}
getNetworkUrl(baseUrl?: string, relativeUrl?: string): string {
if ("activation_account_name" in this.params.helmValues["node_config_network"]) {
baseUrl = baseUrl || 'https://teztnets.xyz';
relativeUrl = relativeUrl || this.params.getName();
return `${baseUrl}/${relativeUrl}`;
}
// network config hardcoded in binary, pass the name instead of URL
return this.params.getName();
}
getDockerBuild(): string {
return this.params.helmValues["images"]["octez"];
}
getProtocols(): Array<{level: number, replacement_protocol: string}> {
let protocols: Array<{level: number, replacement_protocol: string}> = []
if ("activation" in this.params.helmValues) {
protocols.push({level: 0, replacement_protocol: this.params.helmValues["activation"]["protocol_hash"]});
}
if ("user_activated_upgrades" in this.params.helmValues["node_config_network"]) {
//protocols.concat(this.params.helmValues["node_config_network"]["user_activated_upgrades"]);
protocols = protocols.concat(this.params.helmValues["node_config_network"]["user_activated_upgrades"]);
}
return protocols;
}
getLastBakingDaemon(): string {
return this.params.helmValues["protocols"].slice(-1)[0]["command"];
}
}