Add initial working

This commit is contained in:
Wietse Wind
2023-10-01 02:17:39 +02:00
parent f99d2efc5f
commit 6cbb0630fd
9 changed files with 377 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
const ledgerIndexToFolders = ledgerIndex => {
return Math.floor(ledgerIndex / Math.pow(10, 6)) + '/'
+ Math.floor((ledgerIndex % Math.pow(10, 6)) / Math.pow(10, 3)) + '/'
+ ledgerIndex % Math.pow(10, 6) % Math.pow(10, 3)
}
export {
ledgerIndexToFolders
}