([account, alloc]: [string, GenesisAccountAlloc])
| 160 | |
| 161 | const allocs: Record<Address, GenesisAccountAlloc> = {} |
| 162 | const insert = ([account, alloc]: [string, GenesisAccountAlloc]) => { |
| 163 | if (account in allocs) { |
| 164 | throw new Error(`Duplicate account: ${account}`) |
| 165 | } |
| 166 | allocs[schemaAddress.parse(account)] = alloc |
| 167 | } |
| 168 | |
| 169 | Object.entries(await buildNativeFiatTokenGenesisAllocs(ctx, nativeFiatToken)).forEach(insert) |
| 170 | Object.entries(await buildProtocolConfigGenesisAllocs(ctx, protocolConfig)).forEach(insert) |