- Consolidated duplicate UndoManagers to single instance - Fixed connection promise to only resolve on 'connected' status - Fixed WebSocketProvider import (WebsocketProvider) - Added proper doc.destroy() cleanup - Renamed isPresenceInitialized property to avoid conflict Co-Authored-By: Paperclip <noreply@paperclip.ing>
22 lines
697 B
TypeScript
22 lines
697 B
TypeScript
// https://github.com/ethereum/EIPs/blob/master/EIPS/eip-4844.md#parameters
|
|
|
|
/** Blob limit per transaction. */
|
|
const blobsPerTransaction = 6
|
|
|
|
/** The number of bytes in a BLS scalar field element. */
|
|
export const bytesPerFieldElement = 32
|
|
|
|
/** The number of field elements in a blob. */
|
|
export const fieldElementsPerBlob = 4096
|
|
|
|
/** The number of bytes in a blob. */
|
|
export const bytesPerBlob = bytesPerFieldElement * fieldElementsPerBlob
|
|
|
|
/** Blob bytes limit per transaction. */
|
|
export const maxBytesPerTransaction =
|
|
bytesPerBlob * blobsPerTransaction -
|
|
// terminator byte (0x80).
|
|
1 -
|
|
// zero byte (0x00) appended to each field element.
|
|
1 * fieldElementsPerBlob * blobsPerTransaction
|