bitcore-node
Version:
A blockchain indexing node with extended capabilities using bitcore
248 lines (245 loc) • 4.09 kB
text/typescript
import { AbiItem } from 'web3-utils';
export const OPGasPriceOracleAddress = '0x420000000000000000000000000000000000000F';
export const OPGasPriceOracleAbi: AbiItem[] = [
{
type: 'function',
name: 'DECIMALS',
inputs: [],
outputs: [
{
name: '',
type: 'uint256',
internalType: 'uint256'
}
],
stateMutability: 'view'
},
{
type: 'function',
name: 'baseFee',
inputs: [],
outputs: [
{
name: '',
type: 'uint256',
internalType: 'uint256'
}
],
stateMutability: 'view'
},
{
type: 'function',
name: 'baseFeeScalar',
inputs: [],
outputs: [
{
name: '',
type: 'uint32',
internalType: 'uint32'
}
],
stateMutability: 'view'
},
{
type: 'function',
name: 'blobBaseFee',
inputs: [],
outputs: [
{
name: '',
type: 'uint256',
internalType: 'uint256'
}
],
stateMutability: 'view'
},
{
type: 'function',
name: 'blobBaseFeeScalar',
inputs: [],
outputs: [
{
name: '',
type: 'uint32',
internalType: 'uint32'
}
],
stateMutability: 'view'
},
{
type: 'function',
name: 'decimals',
inputs: [],
outputs: [
{
name: '',
type: 'uint256',
internalType: 'uint256'
}
],
stateMutability: 'pure'
},
{
type: 'function',
name: 'gasPrice',
inputs: [],
outputs: [
{
name: '',
type: 'uint256',
internalType: 'uint256'
}
],
stateMutability: 'view'
},
{
type: 'function',
name: 'getL1Fee',
inputs: [
{
name: '_data',
type: 'bytes',
internalType: 'bytes'
}
],
outputs: [
{
name: '',
type: 'uint256',
internalType: 'uint256'
}
],
stateMutability: 'view'
},
{
type: 'function',
name: 'getL1FeeUpperBound',
inputs: [
{
name: '_unsignedTxSize',
type: 'uint256',
internalType: 'uint256'
}
],
outputs: [
{
name: '',
type: 'uint256',
internalType: 'uint256'
}
],
stateMutability: 'view'
},
{
type: 'function',
name: 'getL1GasUsed',
inputs: [
{
name: '_data',
type: 'bytes',
internalType: 'bytes'
}
],
outputs: [
{
name: '',
type: 'uint256',
internalType: 'uint256'
}
],
stateMutability: 'view'
},
{
type: 'function',
name: 'isEcotone',
inputs: [],
outputs: [
{
name: '',
type: 'bool',
internalType: 'bool'
}
],
stateMutability: 'view'
},
{
type: 'function',
name: 'isFjord',
inputs: [],
outputs: [
{
name: '',
type: 'bool',
internalType: 'bool'
}
],
stateMutability: 'view'
},
{
type: 'function',
name: 'l1BaseFee',
inputs: [],
outputs: [
{
name: '',
type: 'uint256',
internalType: 'uint256'
}
],
stateMutability: 'view'
},
{
type: 'function',
name: 'overhead',
inputs: [],
outputs: [
{
name: '',
type: 'uint256',
internalType: 'uint256'
}
],
stateMutability: 'view'
},
{
type: 'function',
name: 'scalar',
inputs: [],
outputs: [
{
name: '',
type: 'uint256',
internalType: 'uint256'
}
],
stateMutability: 'view'
},
{
type: 'function',
name: 'setEcotone',
inputs: [],
outputs: [],
stateMutability: 'nonpayable'
},
{
type: 'function',
name: 'setFjord',
inputs: [],
outputs: [],
stateMutability: 'nonpayable'
},
{
type: 'function',
name: 'version',
inputs: [],
outputs: [
{
name: '',
type: 'string',
internalType: 'string'
}
],
stateMutability: 'view'
}
]
;