difftreelog
ci give money to alice on fork
in: master
2 files changed
.docker/forkless-config/fork.jsonnetdiffbeforeafterboth8 if sourceRaw[key] != null8 if sourceRaw[key] != null9};9};101011local typeNames = (import './typeNames.jsonnet')(sourceChain);1211local13local12auraKeys = [14auraKeys = [13 // AuraExt.Authorities, we don't have aura pallet enabled for some reason, to refer using cql api15 // AuraExt.Authorities, we don't have aura pallet enabled for some reason, to refer using cql api45 if std.all(std.map(function(prefix) !std.startsWith(key, prefix), unwantedPrefixes))47 if std.all(std.map(function(prefix) !std.startsWith(key, prefix), unwantedPrefixes))46};48};47495048local originalRaw = rawSpec.genesis.raw.top;51local originalRaw = rawSpec.genesis.raw.top;49local outSpec = rawSpec {52local outSpec = rawSpec {50 genesis+: {53 genesis+: {51 raw+: {54 raw+: {52 top: cleanupRaw(raw) {55 top: cleanupRaw(raw) {53 [key]: originalRaw[key]56 [key]: originalRaw[key]54 for key in wantedKeys57 for key in wantedKeys58 if std.objectHas(originalRaw, key)55 },59 },56 },60 },57 },61 },58};62};6364local65 aliceAccount = sourceChain.System._encodeKey.Account(['0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d']),66 totalIssuance = sourceChain.Balances._encodeKey.TotalIssuance([]),67 unique = cql.calc(["10", "18", "**"]),68 Munique = cql.calc([unique, "10", "6", "**", "*"]),69;7059outSpec71outSpec {72 genesis+: {73 raw+: {74 top+: {75 [totalIssuance]: cql.calc([76 Munique,77 if std.objectHas(super, totalIssuance) then sourceChain._decode(typeNames.u128, super[totalIssuance]) else '0',78 if std.objectHas(super, aliceAccount) then sourceChain._decode(typeNames.AccountInfo, super[aliceAccount]).data.free else '0',79 '-', '+',80 ]),81 [aliceAccount]: sourceChain._encode(typeNames.AccountInfo, {82 nonce: 0,83 consumers: 3,84 providers: 1,85 sufficients: 0,86 data: {87 free: Munique,88 reserved: "0",89 misc_frozen: "0",90 fee_frozen: "0",91 },92 },)93 },94 },95 },96}6097.docker/forkless-config/typeNames.jsonnetdiffbeforeafterbothno changes