Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const contracts = yield select(
data.views.userDefinedTypes.contractDefinitions
);
debug("contracts %O", contracts);
const referenceDeclarations = yield select(data.views.referenceDeclarations);
const userDefinedTypes = yield select(data.views.userDefinedTypes);
debug("referenceDeclarations %O", referenceDeclarations);
const storageAllocations = Codec.Storage.Allocate.getStorageAllocations(
referenceDeclarations,
contracts
);
debug("storageAllocations %O", storageAllocations);
const memoryAllocations = Codec.Memory.Allocate.getMemoryAllocations(
referenceDeclarations
);
const calldataAllocations = Codec.AbiData.Allocate.getAbiAllocations(
userDefinedTypes
);
yield put(
actions.allocate(storageAllocations, memoryAllocations, calldataAllocations)
);
}