MCPcopy Create free account
hub / github.com/circlefin/arc-node / parseExtra

Function parseExtra

scripts/hardhat/tasks/query-fee.ts:75–80  ·  view source on GitHub ↗
(extraData: Hex)

Source from the content-addressed store, hash-verified

73 const endBlockHeight = block.number
74
75 const parseExtra = (extraData: Hex) => {
76 if (/^0x[0-9a-fA-F]{16}$/.test(extraData)) {
77 return fromHex(extraData, 'bigint')
78 }
79 return undefined
80 }
81 const dumpFeeValues = (info: Awaited<ReturnType<typeof getNextBaseFee>>) => {
82 console.log(
83 `${info.block.number} baseFee=${info.block.baseFeePerGas}, gasUsed/limit=${info.block.gasUsed}/${info.block.gasLimit}, hash=${info.block.hash}

Callers 2

dumpFeeValuesFunction · 0.85
query-fee.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected