1local2m = import 'baedeker-library/mixin/spec.libsonnet',3;45function(relay_spec)67local relay = {8 name: 'relay',9 bin: 'bin/polkadot',10 validatorIdAssignment: 'staking',11 spec: {Genesis:{12 chain: relay_spec,13 modify:: m.genericRelay($, hrmp = [14 15 16 ]),17 }},18 nodes: {19 [name]: {20 bin: $.bin,21 wantedKeys: 'relay',22 },23 for name in ['alice', 'bob', 'charlie', 'dave', 'eve']24 },25};2627local opal = {28 name: 'opal',29 bin: 'bin/unique',30 paraId: 1001,31 spec: {Genesis:{32 modify:: m.genericPara($),33 }},34 nodes: {35 [name]: {36 bin: $.bin,37 wantedKeys: 'para',38 },39 for name in ['alice', 'bob']40 },41};4243local westmint = {44 name: 'westmint',45 bin: 'bin/cumulus',46 paraId: 1002,47 spec: {Genesis:{48 chain: 'westmint-local',49 modify:: m.genericPara($),50 }},51 nodes: {52 [name]: {53 bin: $.bin,54 wantedKeys: 'para',55 },56 for name in ['alice', 'bob']57 },58};5960relay + {61 parachains: {62 [para.name]: para,63 for para in [opal, westmint]64 },65}