createTokenBridge-ethers
Type Aliases
CreateTokenBridgeGetInputsResult
type CreateTokenBridgeGetInputsResult: object;
Type declaration
Member | Type |
---|---|
gasPrice | bigint |
inbox | Address |
maxGasForContracts | bigint |
retryableFee | bigint |
Source
src/createTokenBridge-ethers.ts:27
Functions
createTokenBridgeGetInputs()
function createTokenBridgeGetInputs<TParentChain, TOrbitChain>(
l1DeployerAddress: string,
l1PublicClient: object,
l2PublicClient: object,
l1TokenBridgeCreatorAddress: string,
rollupAddress: string,
retryableGasOverrides?: TransactionRequestRetryableGasOverrides): Promise<CreateTokenBridgeGetInputsResult>
Type parameters
Type parameter |
---|
TParentChain extends undefined | Chain <undefined | ChainFormatters > |
TOrbitChain extends undefined | Chain <undefined | ChainFormatters > |
Parameters
Parameter | Type |
---|---|
l1DeployerAddress | string |
l1PublicClient | object |
l2PublicClient | object |
l1TokenBridgeCreatorAddress | string |
rollupAddress | string |
retryableGasOverrides ? | TransactionRequestRetryableGasOverrides |
Returns
Promise
<CreateTokenBridgeGetInputsResult
>
Source
src/createTokenBridge-ethers.ts:34
getEstimateForSettingGateway()
function getEstimateForSettingGateway<TParentChain, TOrbitChain>(
l1ChainOwnerAddress: `0x${string}`,
l1UpgradeExecutorAddress: `0x${string}`,
l1GatewayRouterAddress: `0x${string}`,
setGatewaysCalldata: `0x${string}`,
parentChainPublicClient: object,
orbitChainPublicClient: object): Promise<object>
Type parameters
Type parameter |
---|
TParentChain extends undefined | Chain <undefined | ChainFormatters > |
TOrbitChain extends undefined | Chain <undefined | ChainFormatters > |
Parameters
Parameter | Type |
---|---|
l1ChainOwnerAddress | `0x${string}` |
l1UpgradeExecutorAddress | `0x${string}` |
l1GatewayRouterAddress | `0x${string}` |
setGatewaysCalldata | `0x${string}` |
parentChainPublicClient | object |
orbitChainPublicClient | object |
Returns
Promise
<object
>
Member | Type | Value |
---|---|---|
deposit | bigint | ... |
gasLimit | bigint | ... |
maxFeePerGas | bigint | ... |
maxSubmissionCost | bigint | ... |