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

Function slotForUint256Map

scripts/genesis/types.ts:138–139  ·  view source on GitHub ↗
(slotIndex: bigint, key: bigint)

Source from the content-addressed store, hash-verified

136 * https://docs.soliditylang.org/en/latest/internals/layout_in_storage.html#mappings-and-dynamic-arrays
137 */
138export const slotForUint256Map = (slotIndex: bigint, key: bigint): Bytes32 =>
139 keccak256(encodePacked(['uint256', 'uint256'], [key, slotIndex]))
140
141/**
142 * The same as slotForUint256Map, but convert address to bigint first.

Callers 2

slotForAddressMapFunction · 0.85
slotForBytes32MapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected