MCPcopy Create free account
hub / github.com/circlefin/arc-node / constructor

Method constructor

scripts/genesis/AccountCreator.ts:142–159  ·  view source on GitHub ↗
(options?: z.infer<typeof LocalDevAccountCreator.optionsSchema>)

Source from the content-addressed store, hash-verified

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 = () =>

Callers

nothing calls this directly

Calls 3

parseOverridePublicKeysFunction · 0.85
parseMethod · 0.45

Tested by

no test coverage detected