DeployContractOptionsBase
For the complete documentation index, see llms.txt
Midnight.js API Reference v4.0.4
Midnight.js API Reference / @midnight-ntwrk/midnight-js-contracts / DeployContractOptionsBase
Type Alias: DeployContractOptionsBase<C>
DeployContractOptionsBase<
C> =ContractConstructorOptionsWithArguments<C> &object
Base type for configuration for deployContract; identical to
ContractConstructorOptionsWithArguments except the signingKey is
now optional, since deployContract will generate a fresh signing key
in the event that signingKey is undefined.
Type Declaration
additionalCoinEncPublicKeyMappings?
readonlyoptionaladditionalCoinEncPublicKeyMappings?:ReadonlyMap<CoinPublicKey,EncPublicKey>
An optional mapping of CoinPublicKey to EncPublicKey that can be used to resolve encryption keys for coins created in the contract constructor. This is useful in cases where the constructor creates outputs to addresses that don't belong to the current user.
signingKey?
readonlyoptionalsigningKey?:SigningKey
The signing key to add as the to-be-deployed contract's maintenance authority. If undefined, a new signing key is sampled and used as the CMA then stored in the private state provider under the newly deployed contract's address. Otherwise, the passed signing key is added as the CMA. The second case is useful when you want to use the same CMA for two different contracts.
Type Parameters
C
C extends Contract.Any