(options?: z.infer<typeof LocalDevAccountCreator.optionsSchema>)
| 140 | mnemonic: string |
| 141 | |
| 142 | constructor(options?: z.infer<typeof LocalDevAccountCreator.optionsSchema>) { |
| 143 | const { |
| 144 | numValidators = 5, |
| 145 | numExtraAccounts = 0, |
| 146 | numExtraMinters = 0, |
| 147 | overridePublicKeys = defaultOverridePublicKeys(), |
| 148 | votingPowers, |
| 149 | } = options ? LocalDevAccountCreator.optionsSchema.parse(options) : {} |
| 150 | this.numValidators = numValidators |
| 151 | this.numExtraAccounts = numExtraAccounts |
| 152 | this.numExtraMinters = numExtraMinters |
| 153 | this.overridePublicKeys = parseOverridePublicKeys(overridePublicKeys) |
| 154 | if (votingPowers && votingPowers.length !== numValidators) { |
| 155 | throw new Error(`votingPowers length (${votingPowers.length}) must match numValidators (${numValidators})`) |
| 156 | } |
| 157 | this.votingPowers = votingPowers |
| 158 | this.mnemonic = 'test test test test test test test test test test test junk' |
| 159 | } |
| 160 | |
| 161 | // Default accounts, BIP44: m/44'/60'/0'/0/{0~9} |
| 162 | defaultAccounts = () => |
nothing calls this directly
no test coverage detected