Variable BridgehubContractConst
BridgehubContract: Contract<readonly [{
anonymous: false;
inputs: readonly [{
indexed: true;
internalType: "address";
name: "oldAdmin";
type: "address";
}, {
indexed: true;
internalType: "address";
name: "newAdmin";
type: "address";
}];
name: "NewAdmin";
type: "event";
}, {
anonymous: false;
inputs: readonly [{
indexed: true;
internalType: "uint256";
name: "chainId";
type: "uint256";
}, {
indexed: false;
internalType: "address";
name: "stateTransitionManager";
type: "address";
}, {
indexed: true;
internalType: "address";
name: "chainGovernance";
type: "address";
}];
name: "NewChain";
type: "event";
}, {
anonymous: false;
inputs: readonly [{
indexed: true;
internalType: "address";
name: "oldPendingAdmin";
type: "address";
}, {
indexed: true;
internalType: "address";
name: "newPendingAdmin";
type: "address";
}];
name: "NewPendingAdmin";
type: "event";
}, {
inputs: readonly [];
name: "acceptAdmin";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
internalType: "address";
name: "_stateTransitionManager";
type: "address";
}];
name: "addStateTransitionManager";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
internalType: "address";
name: "_token";
type: "address";
}];
name: "addToken";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
internalType: "uint256";
name: "_chainId";
type: "uint256";
}];
name: "baseToken";
outputs: readonly [{
internalType: "address";
name: "";
type: "address";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "uint256";
name: "_chainId";
type: "uint256";
}, {
internalType: "address";
name: "_stateTransitionManager";
type: "address";
}, {
internalType: "address";
name: "_baseToken";
type: "address";
}, {
internalType: "uint256";
name: "_salt";
type: "uint256";
}, {
internalType: "address";
name: "_admin";
type: "address";
}, {
internalType: "bytes";
name: "_initData";
type: "bytes";
}];
name: "createNewChain";
outputs: readonly [{
internalType: "uint256";
name: "chainId";
type: "uint256";
}];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
internalType: "uint256";
name: "_chainId";
type: "uint256";
}];
name: "getStateTransition";
outputs: readonly [{
internalType: "address";
name: "";
type: "address";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "uint256";
name: "_chainId";
type: "uint256";
}, {
internalType: "uint256";
name: "_gasPrice";
type: "uint256";
}, {
internalType: "uint256";
name: "_l2GasLimit";
type: "uint256";
}, {
internalType: "uint256";
name: "_l2GasPerPubdataByteLimit";
type: "uint256";
}];
name: "l2TransactionBaseCost";
outputs: readonly [{
internalType: "uint256";
name: "";
type: "uint256";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "uint256";
name: "_chainId";
type: "uint256";
}, {
internalType: "bytes32";
name: "_l2TxHash";
type: "bytes32";
}, {
internalType: "uint256";
name: "_l2BatchNumber";
type: "uint256";
}, {
internalType: "uint256";
name: "_l2MessageIndex";
type: "uint256";
}, {
internalType: "uint16";
name: "_l2TxNumberInBatch";
type: "uint16";
}, {
internalType: "bytes32[]";
name: "_merkleProof";
type: "bytes32[]";
}, {
internalType: "enum TxStatus";
name: "_status";
type: "uint8";
}];
name: "proveL1ToL2TransactionStatus";
outputs: readonly [{
internalType: "bool";
name: "";
type: "bool";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "uint256";
name: "_chainId";
type: "uint256";
}, {
internalType: "uint256";
name: "_batchNumber";
type: "uint256";
}, {
internalType: "uint256";
name: "_index";
type: "uint256";
}, {
components: readonly [{
internalType: "uint8";
name: "l2ShardId";
type: "uint8";
}, {
internalType: "bool";
name: "isService";
type: "bool";
}, {
internalType: "uint16";
name: "txNumberInBatch";
type: "uint16";
}, {
internalType: "address";
name: "sender";
type: "address";
}, {
internalType: "bytes32";
name: "key";
type: "bytes32";
}, {
internalType: "bytes32";
name: "value";
type: "bytes32";
}];
internalType: "struct L2Log";
name: "_log";
type: "tuple";
}, {
internalType: "bytes32[]";
name: "_proof";
type: "bytes32[]";
}];
name: "proveL2LogInclusion";
outputs: readonly [{
internalType: "bool";
name: "";
type: "bool";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "uint256";
name: "_chainId";
type: "uint256";
}, {
internalType: "uint256";
name: "_batchNumber";
type: "uint256";
}, {
internalType: "uint256";
name: "_index";
type: "uint256";
}, {
components: readonly [{
internalType: "uint16";
name: "txNumberInBatch";
type: "uint16";
}, {
internalType: "address";
name: "sender";
type: "address";
}, {
internalType: "bytes";
name: "data";
type: "bytes";
}];
internalType: "struct L2Message";
name: "_message";
type: "tuple";
}, {
internalType: "bytes32[]";
name: "_proof";
type: "bytes32[]";
}];
name: "proveL2MessageInclusion";
outputs: readonly [{
internalType: "bool";
name: "";
type: "bool";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "address";
name: "_stateTransitionManager";
type: "address";
}];
name: "removeStateTransitionManager";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
components: readonly [{
internalType: "uint256";
name: "chainId";
type: "uint256";
}, {
internalType: "uint256";
name: "mintValue";
type: "uint256";
}, {
internalType: "address";
name: "l2Contract";
type: "address";
}, {
internalType: "uint256";
name: "l2Value";
type: "uint256";
}, {
internalType: "bytes";
name: "l2Calldata";
type: "bytes";
}, {
internalType: "uint256";
name: "l2GasLimit";
type: "uint256";
}, {
internalType: "uint256";
name: "l2GasPerPubdataByteLimit";
type: "uint256";
}, {
internalType: "bytes[]";
name: "factoryDeps";
type: "bytes[]";
}, {
internalType: "address";
name: "refundRecipient";
type: "address";
}];
internalType: "struct L2TransactionRequestDirect";
name: "_request";
type: "tuple";
}];
name: "requestL2TransactionDirect";
outputs: readonly [{
internalType: "bytes32";
name: "canonicalTxHash";
type: "bytes32";
}];
stateMutability: "payable";
type: "function";
}, {
inputs: readonly [{
components: readonly [{
internalType: "uint256";
name: "chainId";
type: "uint256";
}, {
internalType: "uint256";
name: "mintValue";
type: "uint256";
}, {
internalType: "uint256";
name: "l2Value";
type: "uint256";
}, {
internalType: "uint256";
name: "l2GasLimit";
type: "uint256";
}, {
internalType: "uint256";
name: "l2GasPerPubdataByteLimit";
type: "uint256";
}, {
internalType: "address";
name: "refundRecipient";
type: "address";
}, {
internalType: "address";
name: "secondBridgeAddress";
type: "address";
}, {
internalType: "uint256";
name: "secondBridgeValue";
type: "uint256";
}, {
internalType: "bytes";
name: "secondBridgeCalldata";
type: "bytes";
}];
internalType: "struct L2TransactionRequestTwoBridgesOuter";
name: "_request";
type: "tuple";
}];
name: "requestL2TransactionTwoBridges";
outputs: readonly [{
internalType: "bytes32";
name: "canonicalTxHash";
type: "bytes32";
}];
stateMutability: "payable";
type: "function";
}, {
inputs: readonly [{
internalType: "address";
name: "_newPendingAdmin";
type: "address";
}];
name: "setPendingAdmin";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
internalType: "address";
name: "_sharedBridge";
type: "address";
}];
name: "setSharedBridge";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [];
name: "sharedBridge";
outputs: readonly [{
internalType: "contract IL1SharedBridge";
name: "";
type: "address";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "uint256";
name: "_chainId";
type: "uint256";
}];
name: "stateTransitionManager";
outputs: readonly [{
internalType: "address";
name: "";
type: "address";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "address";
name: "_stateTransitionManager";
type: "address";
}];
name: "stateTransitionManagerIsRegistered";
outputs: readonly [{
internalType: "bool";
name: "";
type: "bool";
}];
stateMutability: "view";
type: "function";
}, {
inputs: readonly [{
internalType: "address";
name: "_baseToken";
type: "address";
}];
name: "tokenIsRegistered";
outputs: readonly [{
internalType: "bool";
name: "";
type: "bool";
}];
stateMutability: "view";
type: "function";
}]> = ...
The ABI of the
Bridgehub
interface.