Skip to content

Commit 8ad37db

Browse files
chore: support vector testnet
1 parent b542351 commit 8ad37db

File tree

10 files changed

+990
-318
lines changed

10 files changed

+990
-318
lines changed

bootstrap/configs/main.tf

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,16 @@ resource "kubernetes_config_map" "node-config" {
2828
name = local.cm_name
2929
}
3030

31-
data = {
31+
data = var.network != "vector-testnet" ? {
3232
"config.json" = "${file("${path.module}/${var.network}/config.json")}"
3333
"db-sync-config.json" = "${file("${path.module}/${var.network}/db-sync-config.json")}"
34+
} : {
35+
"config.yaml" = "${file("${path.module}/${var.network}/config.yaml")}"
36+
"db-sync-config.json" = "${file("${path.module}/${var.network}/db-sync-config.json")}"
37+
"byron.json" = "${file("${path.module}/${var.network}/byron.json")}"
38+
"alonzo.json" = "${file("${path.module}/${var.network}/alonzo.json")}"
39+
"shelley.json" = "${file("${path.module}/${var.network}/shelley.json")}"
40+
"conway.json" = "${file("${path.module}/${var.network}/conway.json")}"
3441
}
3542
}
3643

bootstrap/configs/mainnet/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,4 @@
100100
"scRotation": null
101101
}
102102
]
103-
}
103+
}
Lines changed: 365 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,365 @@
1+
{
2+
"lovelacePerUTxOWord": 34482,
3+
"executionPrices": {
4+
"prSteps": 0.0000721,
5+
"prMem": 0.0577
6+
},
7+
"maxTxExUnits": {
8+
"exUnitsMem": 16000000,
9+
"exUnitsSteps": 10000000000
10+
},
11+
"maxBlockExUnits": {
12+
"exUnitsMem": 80000000,
13+
"exUnitsSteps": 40000000000
14+
},
15+
"maxValueSize": 5000,
16+
"collateralPercentage": 150,
17+
"maxCollateralInputs": 3,
18+
"costModels": {
19+
"PlutusV1": {
20+
"sha2_256-memory-arguments": 4,
21+
"equalsString-cpu-arguments-constant": 1000,
22+
"cekDelayCost-exBudgetMemory": 100,
23+
"lessThanEqualsByteString-cpu-arguments-intercept": 103599,
24+
"divideInteger-memory-arguments-minimum": 1,
25+
"appendByteString-cpu-arguments-slope": 621,
26+
"blake2b-cpu-arguments-slope": 29175,
27+
"iData-cpu-arguments": 150000,
28+
"encodeUtf8-cpu-arguments-slope": 1000,
29+
"unBData-cpu-arguments": 150000,
30+
"multiplyInteger-cpu-arguments-intercept": 61516,
31+
"cekConstCost-exBudgetMemory": 100,
32+
"nullList-cpu-arguments": 150000,
33+
"equalsString-cpu-arguments-intercept": 150000,
34+
"trace-cpu-arguments": 150000,
35+
"mkNilData-memory-arguments": 32,
36+
"lengthOfByteString-cpu-arguments": 150000,
37+
"cekBuiltinCost-exBudgetCPU": 29773,
38+
"bData-cpu-arguments": 150000,
39+
"subtractInteger-cpu-arguments-slope": 0,
40+
"unIData-cpu-arguments": 150000,
41+
"consByteString-memory-arguments-intercept": 0,
42+
"divideInteger-memory-arguments-slope": 1,
43+
"divideInteger-cpu-arguments-model-arguments-slope": 118,
44+
"listData-cpu-arguments": 150000,
45+
"headList-cpu-arguments": 150000,
46+
"chooseData-memory-arguments": 32,
47+
"equalsInteger-cpu-arguments-intercept": 136542,
48+
"sha3_256-cpu-arguments-slope": 82363,
49+
"sliceByteString-cpu-arguments-slope": 5000,
50+
"unMapData-cpu-arguments": 150000,
51+
"lessThanInteger-cpu-arguments-intercept": 179690,
52+
"mkCons-cpu-arguments": 150000,
53+
"appendString-memory-arguments-intercept": 0,
54+
"modInteger-cpu-arguments-model-arguments-slope": 118,
55+
"ifThenElse-cpu-arguments": 1,
56+
"mkNilPairData-cpu-arguments": 150000,
57+
"lessThanEqualsInteger-cpu-arguments-intercept": 145276,
58+
"addInteger-memory-arguments-slope": 1,
59+
"chooseList-memory-arguments": 32,
60+
"constrData-memory-arguments": 32,
61+
"decodeUtf8-cpu-arguments-intercept": 150000,
62+
"equalsData-memory-arguments": 1,
63+
"subtractInteger-memory-arguments-slope": 1,
64+
"appendByteString-memory-arguments-intercept": 0,
65+
"lengthOfByteString-memory-arguments": 4,
66+
"headList-memory-arguments": 32,
67+
"listData-memory-arguments": 32,
68+
"consByteString-cpu-arguments-intercept": 150000,
69+
"unIData-memory-arguments": 32,
70+
"remainderInteger-memory-arguments-minimum": 1,
71+
"bData-memory-arguments": 32,
72+
"lessThanByteString-cpu-arguments-slope": 248,
73+
"encodeUtf8-memory-arguments-intercept": 0,
74+
"cekStartupCost-exBudgetCPU": 100,
75+
"multiplyInteger-memory-arguments-intercept": 0,
76+
"unListData-memory-arguments": 32,
77+
"remainderInteger-cpu-arguments-model-arguments-slope": 118,
78+
"cekVarCost-exBudgetCPU": 29773,
79+
"remainderInteger-memory-arguments-slope": 1,
80+
"cekForceCost-exBudgetCPU": 29773,
81+
"sha2_256-cpu-arguments-slope": 29175,
82+
"equalsInteger-memory-arguments": 1,
83+
"indexByteString-memory-arguments": 1,
84+
"addInteger-memory-arguments-intercept": 1,
85+
"chooseUnit-cpu-arguments": 150000,
86+
"sndPair-cpu-arguments": 150000,
87+
"cekLamCost-exBudgetCPU": 29773,
88+
"fstPair-cpu-arguments": 150000,
89+
"quotientInteger-memory-arguments-minimum": 1,
90+
"decodeUtf8-cpu-arguments-slope": 1000,
91+
"lessThanInteger-memory-arguments": 1,
92+
"lessThanEqualsInteger-cpu-arguments-slope": 1366,
93+
"fstPair-memory-arguments": 32,
94+
"modInteger-memory-arguments-intercept": 0,
95+
"unConstrData-cpu-arguments": 150000,
96+
"lessThanEqualsInteger-memory-arguments": 1,
97+
"chooseUnit-memory-arguments": 32,
98+
"sndPair-memory-arguments": 32,
99+
"addInteger-cpu-arguments-intercept": 197209,
100+
"decodeUtf8-memory-arguments-slope": 8,
101+
"equalsData-cpu-arguments-intercept": 150000,
102+
"mapData-cpu-arguments": 150000,
103+
"mkPairData-cpu-arguments": 150000,
104+
"quotientInteger-cpu-arguments-constant": 148000,
105+
"consByteString-memory-arguments-slope": 1,
106+
"cekVarCost-exBudgetMemory": 100,
107+
"indexByteString-cpu-arguments": 150000,
108+
"unListData-cpu-arguments": 150000,
109+
"equalsInteger-cpu-arguments-slope": 1326,
110+
"cekStartupCost-exBudgetMemory": 100,
111+
"subtractInteger-cpu-arguments-intercept": 197209,
112+
"divideInteger-cpu-arguments-model-arguments-intercept": 425507,
113+
"divideInteger-memory-arguments-intercept": 0,
114+
"cekForceCost-exBudgetMemory": 100,
115+
"blake2b-cpu-arguments-intercept": 2477736,
116+
"remainderInteger-cpu-arguments-constant": 148000,
117+
"tailList-cpu-arguments": 150000,
118+
"encodeUtf8-cpu-arguments-intercept": 150000,
119+
"equalsString-cpu-arguments-slope": 1000,
120+
"lessThanByteString-memory-arguments": 1,
121+
"multiplyInteger-cpu-arguments-slope": 11218,
122+
"appendByteString-cpu-arguments-intercept": 396231,
123+
"lessThanEqualsByteString-cpu-arguments-slope": 248,
124+
"modInteger-memory-arguments-slope": 1,
125+
"addInteger-cpu-arguments-slope": 0,
126+
"equalsData-cpu-arguments-slope": 10000,
127+
"decodeUtf8-memory-arguments-intercept": 0,
128+
"chooseList-cpu-arguments": 150000,
129+
"constrData-cpu-arguments": 150000,
130+
"equalsByteString-memory-arguments": 1,
131+
"cekApplyCost-exBudgetCPU": 29773,
132+
"quotientInteger-memory-arguments-slope": 1,
133+
"verifySignature-cpu-arguments-intercept": 3345831,
134+
"unMapData-memory-arguments": 32,
135+
"mkCons-memory-arguments": 32,
136+
"sliceByteString-memory-arguments-slope": 1,
137+
"sha3_256-memory-arguments": 4,
138+
"ifThenElse-memory-arguments": 1,
139+
"mkNilPairData-memory-arguments": 32,
140+
"equalsByteString-cpu-arguments-slope": 247,
141+
"appendString-cpu-arguments-intercept": 150000,
142+
"quotientInteger-cpu-arguments-model-arguments-slope": 118,
143+
"cekApplyCost-exBudgetMemory": 100,
144+
"equalsString-memory-arguments": 1,
145+
"multiplyInteger-memory-arguments-slope": 1,
146+
"cekBuiltinCost-exBudgetMemory": 100,
147+
"remainderInteger-memory-arguments-intercept": 0,
148+
"sha2_256-cpu-arguments-intercept": 2477736,
149+
"remainderInteger-cpu-arguments-model-arguments-intercept": 425507,
150+
"lessThanEqualsByteString-memory-arguments": 1,
151+
"tailList-memory-arguments": 32,
152+
"mkNilData-cpu-arguments": 150000,
153+
"chooseData-cpu-arguments": 150000,
154+
"unBData-memory-arguments": 32,
155+
"blake2b-memory-arguments": 4,
156+
"iData-memory-arguments": 32,
157+
"nullList-memory-arguments": 32,
158+
"cekDelayCost-exBudgetCPU": 29773,
159+
"subtractInteger-memory-arguments-intercept": 1,
160+
"lessThanByteString-cpu-arguments-intercept": 103599,
161+
"consByteString-cpu-arguments-slope": 1000,
162+
"appendByteString-memory-arguments-slope": 1,
163+
"trace-memory-arguments": 32,
164+
"divideInteger-cpu-arguments-constant": 148000,
165+
"cekConstCost-exBudgetCPU": 29773,
166+
"encodeUtf8-memory-arguments-slope": 8,
167+
"quotientInteger-cpu-arguments-model-arguments-intercept": 425507,
168+
"mapData-memory-arguments": 32,
169+
"appendString-cpu-arguments-slope": 1000,
170+
"modInteger-cpu-arguments-constant": 148000,
171+
"verifySignature-cpu-arguments-slope": 1,
172+
"unConstrData-memory-arguments": 32,
173+
"quotientInteger-memory-arguments-intercept": 0,
174+
"equalsByteString-cpu-arguments-constant": 150000,
175+
"sliceByteString-memory-arguments-intercept": 0,
176+
"mkPairData-memory-arguments": 32,
177+
"equalsByteString-cpu-arguments-intercept": 112536,
178+
"appendString-memory-arguments-slope": 1,
179+
"lessThanInteger-cpu-arguments-slope": 497,
180+
"modInteger-cpu-arguments-model-arguments-intercept": 425507,
181+
"modInteger-memory-arguments-minimum": 1,
182+
"sha3_256-cpu-arguments-intercept": 0,
183+
"verifySignature-memory-arguments": 1,
184+
"cekLamCost-exBudgetMemory": 100,
185+
"sliceByteString-cpu-arguments-intercept": 150000
186+
},
187+
"PlutusV2": [
188+
205665,
189+
812,
190+
1,
191+
1,
192+
1000,
193+
571,
194+
0,
195+
1,
196+
1000,
197+
24177,
198+
4,
199+
1,
200+
1000,
201+
32,
202+
117366,
203+
10475,
204+
4,
205+
23000,
206+
100,
207+
23000,
208+
100,
209+
23000,
210+
100,
211+
23000,
212+
100,
213+
23000,
214+
100,
215+
23000,
216+
100,
217+
100,
218+
100,
219+
23000,
220+
100,
221+
19537,
222+
32,
223+
175354,
224+
32,
225+
46417,
226+
4,
227+
221973,
228+
511,
229+
0,
230+
1,
231+
89141,
232+
32,
233+
497525,
234+
14068,
235+
4,
236+
2,
237+
196500,
238+
453240,
239+
220,
240+
0,
241+
1,
242+
1,
243+
1000,
244+
28662,
245+
4,
246+
2,
247+
245000,
248+
216773,
249+
62,
250+
1,
251+
1060367,
252+
12586,
253+
1,
254+
208512,
255+
421,
256+
1,
257+
187000,
258+
1000,
259+
52998,
260+
1,
261+
80436,
262+
32,
263+
43249,
264+
32,
265+
1000,
266+
32,
267+
80556,
268+
1,
269+
57667,
270+
4,
271+
1000,
272+
10,
273+
197145,
274+
156,
275+
1,
276+
197145,
277+
156,
278+
1,
279+
204924,
280+
473,
281+
1,
282+
208896,
283+
511,
284+
1,
285+
52467,
286+
32,
287+
64832,
288+
32,
289+
65493,
290+
32,
291+
22558,
292+
32,
293+
16563,
294+
32,
295+
76511,
296+
32,
297+
196500,
298+
453240,
299+
220,
300+
0,
301+
1,
302+
1,
303+
69522,
304+
11687,
305+
0,
306+
1,
307+
60091,
308+
32,
309+
196500,
310+
453240,
311+
220,
312+
0,
313+
1,
314+
1,
315+
196500,
316+
453240,
317+
220,
318+
0,
319+
1,
320+
1,
321+
1159724,
322+
392670,
323+
0,
324+
2,
325+
806990,
326+
30482,
327+
4,
328+
1927926,
329+
82523,
330+
4,
331+
265318,
332+
0,
333+
4,
334+
0,
335+
85931,
336+
32,
337+
205665,
338+
812,
339+
1,
340+
1,
341+
41182,
342+
32,
343+
212342,
344+
32,
345+
31220,
346+
32,
347+
32696,
348+
32,
349+
43357,
350+
32,
351+
32247,
352+
32,
353+
38314,
354+
32,
355+
35892428,
356+
10,
357+
9462713,
358+
1021,
359+
10,
360+
38887044,
361+
32947,
362+
10
363+
]
364+
}
365+
}

0 commit comments

Comments
 (0)