Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
oops
  • Loading branch information
spsjvc committed Aug 14, 2024
commit 616c28c8c7965efde623a27a93471120516303cd
162 changes: 9 additions & 153 deletions src/contracts/SequencerInbox/v1.1.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
export const sequencerInboxABI = [
{
inputs: [
{ internalType: 'uint256', name: '_maxDataSize', type: 'uint256' },
{ internalType: 'contract IReader4844', name: 'reader4844_', type: 'address' },
{ internalType: 'bool', name: '_isUsingFeeToken', type: 'bool' },
],
stateMutability: 'nonpayable',
type: 'constructor',
},
{ inputs: [], name: 'AlreadyInit', type: 'error' },
{
inputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
name: 'AlreadyValidDASKeyset',
type: 'error',
},
{ inputs: [], name: 'BadMaxTimeVariation', type: 'error' },
{ inputs: [], name: 'BadPostUpgradeInit', type: 'error' },
{
inputs: [
{ internalType: 'uint256', name: 'stored', type: 'uint256' },
Expand All @@ -24,7 +13,7 @@ export const sequencerInboxABI = [
name: 'BadSequencerNumber',
type: 'error',
},
{ inputs: [], name: 'DataBlobsNotSupported', type: 'error' },
{ inputs: [], name: 'DataNotAuthenticated', type: 'error' },
{
inputs: [
{ internalType: 'uint256', name: 'dataLength', type: 'uint256' },
Expand All @@ -35,34 +24,16 @@ export const sequencerInboxABI = [
},
{ inputs: [], name: 'DelayedBackwards', type: 'error' },
{ inputs: [], name: 'DelayedTooFar', type: 'error' },
{ inputs: [], name: 'Deprecated', type: 'error' },
{ inputs: [], name: 'ForceIncludeBlockTooSoon', type: 'error' },
{ inputs: [], name: 'ForceIncludeTimeTooSoon', type: 'error' },
{ inputs: [], name: 'HadZeroInit', type: 'error' },
{ inputs: [], name: 'IncorrectMessagePreimage', type: 'error' },
{
inputs: [{ internalType: 'string', name: 'name', type: 'string' }],
name: 'InitParamZero',
type: 'error',
},
{
inputs: [{ internalType: 'bytes1', name: '', type: 'bytes1' }],
name: 'InvalidHeaderFlag',
type: 'error',
},
{ inputs: [], name: 'MissingDataHashes', type: 'error' },
{ inputs: [], name: 'NativeTokenMismatch', type: 'error' },
{
inputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
name: 'NoSuchKeyset',
type: 'error',
},
{ inputs: [], name: 'NotBatchPoster', type: 'error' },
{
inputs: [{ internalType: 'address', name: '', type: 'address' }],
name: 'NotBatchPosterManager',
type: 'error',
},
{ inputs: [], name: 'NotForked', type: 'error' },
{ inputs: [], name: 'NotOrigin', type: 'error' },
{
Expand All @@ -73,7 +44,6 @@ export const sequencerInboxABI = [
name: 'NotOwner',
type: 'error',
},
{ inputs: [], name: 'RollupNotChanged', type: 'error' },
{
anonymous: false,
inputs: [
Expand Down Expand Up @@ -131,13 +101,13 @@ export const sequencerInboxABI = [
{ internalType: 'uint64', name: 'maxBlockNumber', type: 'uint64' },
],
indexed: false,
internalType: 'struct IBridge.TimeBounds',
internalType: 'struct ISequencerInbox.TimeBounds',
name: 'timeBounds',
type: 'tuple',
},
{
indexed: false,
internalType: 'enum IBridge.BatchDataLocation',
internalType: 'enum ISequencerInbox.BatchDataLocation',
name: 'dataLocation',
type: 'uint8',
},
Expand All @@ -154,55 +124,20 @@ export const sequencerInboxABI = [
name: 'SetValidKeyset',
type: 'event',
},
{
inputs: [],
name: 'BROTLI_MESSAGE_HEADER_FLAG',
outputs: [{ internalType: 'bytes1', name: '', type: 'bytes1' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'DAS_MESSAGE_HEADER_FLAG',
outputs: [{ internalType: 'bytes1', name: '', type: 'bytes1' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'DATA_AUTHENTICATED_FLAG',
outputs: [{ internalType: 'bytes1', name: '', type: 'bytes1' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'DATA_BLOB_HEADER_FLAG',
outputs: [{ internalType: 'bytes1', name: '', type: 'bytes1' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'HEADER_LENGTH',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'TREE_DAS_MESSAGE_HEADER_FLAG',
outputs: [{ internalType: 'bytes1', name: '', type: 'bytes1' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'ZERO_HEAVY_MESSAGE_HEADER_FLAG',
outputs: [{ internalType: 'bytes1', name: '', type: 'bytes1' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [
{ internalType: 'uint256', name: 'sequenceNumber', type: 'uint256' },
Expand All @@ -220,26 +155,13 @@ export const sequencerInboxABI = [
{
inputs: [
{ internalType: 'uint256', name: 'sequenceNumber', type: 'uint256' },
{ internalType: 'bytes', name: 'data', type: 'bytes' },
{ internalType: 'uint256', name: 'afterDelayedMessagesRead', type: 'uint256' },
{ internalType: 'contract IGasRefunder', name: 'gasRefunder', type: 'address' },
{ internalType: 'uint256', name: 'prevMessageCount', type: 'uint256' },
{ internalType: 'uint256', name: 'newMessageCount', type: 'uint256' },
],
name: 'addSequencerL2BatchFromBlobs',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{ internalType: 'uint256', name: '', type: 'uint256' },
{ internalType: 'bytes', name: '', type: 'bytes' },
{ internalType: 'uint256', name: '', type: 'uint256' },
{ internalType: 'contract IGasRefunder', name: '', type: 'address' },
],
name: 'addSequencerL2BatchFromOrigin',
outputs: [],
stateMutability: 'pure',
stateMutability: 'nonpayable',
type: 'function',
},
{
Expand All @@ -263,13 +185,6 @@ export const sequencerInboxABI = [
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'batchPosterManager',
outputs: [{ internalType: 'address', name: '', type: 'address' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'bridge',
Expand Down Expand Up @@ -349,60 +264,25 @@ export const sequencerInboxABI = [
stateMutability: 'view',
type: 'function',
},
{
inputs: [{ internalType: 'address', name: '', type: 'address' }],
name: 'isSequencer',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'isUsingFeeToken',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [{ internalType: 'bytes32', name: 'ksHash', type: 'bytes32' }],
name: 'isValidKeysetHash',
outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'maxDataSize',
outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'maxTimeVariation',
outputs: [
{ internalType: 'uint256', name: '', type: 'uint256' },
{ internalType: 'uint256', name: '', type: 'uint256' },
{ internalType: 'uint256', name: '', type: 'uint256' },
{ internalType: 'uint256', name: '', type: 'uint256' },
{ internalType: 'uint256', name: 'delayBlocks', type: 'uint256' },
{ internalType: 'uint256', name: 'futureBlocks', type: 'uint256' },
{ internalType: 'uint256', name: 'delaySeconds', type: 'uint256' },
{ internalType: 'uint256', name: 'futureSeconds', type: 'uint256' },
],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'postUpgradeInit',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [],
name: 'reader4844',
outputs: [{ internalType: 'contract IReader4844', name: '', type: 'address' }],
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'removeDelayAfterFork',
Expand All @@ -417,13 +297,6 @@ export const sequencerInboxABI = [
stateMutability: 'view',
type: 'function',
},
{
inputs: [{ internalType: 'address', name: 'newBatchPosterManager', type: 'address' }],
name: 'setBatchPosterManager',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{ internalType: 'address', name: 'addr', type: 'address' },
Expand All @@ -434,16 +307,6 @@ export const sequencerInboxABI = [
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{ internalType: 'address', name: 'addr', type: 'address' },
{ internalType: 'bool', name: 'isSequencer_', type: 'bool' },
],
name: 'setIsSequencer',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
{
inputs: [
{
Expand Down Expand Up @@ -477,11 +340,4 @@ export const sequencerInboxABI = [
stateMutability: 'view',
type: 'function',
},
{
inputs: [],
name: 'updateRollupAddress',
outputs: [],
stateMutability: 'nonpayable',
type: 'function',
},
] as const;