createRollupPrepareDeploymentParamsConfig
Type Aliases
CreateRollupPrepareDeploymentParamsConfigParams
type CreateRollupPrepareDeploymentParamsConfigParams: Prettify<RequiredParams & object & OptionalParams>;
Source
src/createRollupPrepareDeploymentParamsConfig.ts:24
CreateRollupPrepareDeploymentParamsConfigResult
type CreateRollupPrepareDeploymentParamsConfigResult: CreateRollupFunctionInputs[0]["config"];
Source
src/createRollupPrepareDeploymentParamsConfig.ts:15
Functions
createRollupPrepareDeploymentParamsConfig()
function createRollupPrepareDeploymentParamsConfig<TChain>(client: Client<Transport<string, Record<string, any>, EIP1193RequestFn<undefined>>, TChain, undefined | Account<`0x${string}`>, undefined, undefined | object>, params: object): CreateRollupPrepareDeploymentParamsConfigResult
Creates the configuration object to be used with createRollup.
Type parameters
Type parameter |
---|
TChain extends undefined | Chain <undefined | ChainFormatters > |
Parameters
Parameter | Type | Description |
---|---|---|
client | Client <Transport <string , Record <string , any >, EIP1193RequestFn <undefined >>, TChain , undefined | Account <`0x${string}`>, undefined , undefined | object > | Parent chain client |
params | object | Chain configuration parameters |
params.baseStake | undefined | bigint | |
params.chainConfig ? | ChainConfig | |
params.chainId | bigint | |
params.confirmPeriodBlocks | undefined | bigint | |
params.extraChallengeTimeBlocks | undefined | bigint | |
params.genesisBlockNum | undefined | bigint | |
params.loserStakeEscrow | undefined | `0x${string}` | |
params.owner | `0x${string}` | |
params.sequencerInboxMaxTimeVariation | undefined | object | |
params.stakeToken | undefined | `0x${string}` | |
params.wasmModuleRoot | undefined | `0x${string}` |
Returns
CreateRollupPrepareDeploymentParamsConfigResult
CreateRollupPrepareDeploymentParamsConfigResult
See
- https://docs.arbitrum.io/launch-orbit-chain/how-tos/customize-deployment-configuration
- https://docs.arbitrum.io/launch-orbit-chain/reference/additional-configuration-parameters
Example
const config = createRollupPrepareDeploymentParamsConfig(parentPublicClient, {
chainId: BigInt(chainId),
owner: deployer.address,
chainConfig: prepareChainConfig({
chainId,
arbitrum: {
InitialChainOwner: deployer.address,
DataAvailabilityCommittee: true,
},
}),
});