Variable L1MessengerContractConst
L1MessengerContract: Contract<readonly [{
anonymous: false;
inputs: readonly [{
indexed: false;
internalType: "bytes32";
name: "_bytecodeHash";
type: "bytes32";
}];
name: "BytecodeL1PublicationRequested";
type: "event";
}, {
anonymous: false;
inputs: readonly [{
indexed: true;
internalType: "address";
name: "_sender";
type: "address";
}, {
indexed: true;
internalType: "bytes32";
name: "_hash";
type: "bytes32";
}, {
indexed: false;
internalType: "bytes";
name: "_message";
type: "bytes";
}];
name: "L1MessageSent";
type: "event";
}, {
anonymous: false;
inputs: readonly [{
components: readonly [{
internalType: "uint8";
name: "l2ShardId";
type: "uint8";
}, {
internalType: "bool";
name: "isService";
type: "bool";
}, {
internalType: "uint16";
name: "txNumberInBlock";
type: "uint16";
}, {
internalType: "address";
name: "sender";
type: "address";
}, {
internalType: "bytes32";
name: "key";
type: "bytes32";
}, {
internalType: "bytes32";
name: "value";
type: "bytes32";
}];
indexed: false;
internalType: "struct L2ToL1Log";
name: "_l2log";
type: "tuple";
}];
name: "L2ToL1LogSent";
type: "event";
}, {
inputs: readonly [{
internalType: "bytes32";
name: "_bytecodeHash";
type: "bytes32";
}];
name: "requestBytecodeL1Publication";
outputs: readonly [];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
internalType: "bool";
name: "_isService";
type: "bool";
}, {
internalType: "bytes32";
name: "_key";
type: "bytes32";
}, {
internalType: "bytes32";
name: "_value";
type: "bytes32";
}];
name: "sendL2ToL1Log";
outputs: readonly [{
internalType: "uint256";
name: "logIdInMerkleTree";
type: "uint256";
}];
stateMutability: "nonpayable";
type: "function";
}, {
inputs: readonly [{
internalType: "bytes";
name: "_message";
type: "bytes";
}];
name: "sendToL1";
outputs: readonly [{
internalType: "bytes32";
name: "";
type: "bytes32";
}];
stateMutability: "nonpayable";
type: "function";
}]> = ...
The web3.js Contract instance for the
IL1Messenger
interface, which is utilized for sending messages from the L2 to L1.