StorageReadback.fetch_store: def of stelliferous@0.0.2.0 Import: import stelliferous@0.0.2.0/proofs/storage_readback.bend as StorageReadback Lines 49-55 of stelliferous@0.0.2.0/proofs/storage_readback.bend: https://jend.leeeet.dev/read.txt?path=stelliferous@0.0.2.0/proofs/storage_readback.bend&start_line=49&end_line=55 import Base import stelliferous@0.0.2.0/proofs/storage_tree_model.bend as Tree def fetch_store(~Element: Data,tree: Tree.Tree,+capacity: U32,+index: U32,+value: Element) -> {Tree.fetch(Element,Tree.store(Element,tree,capacity,index,value),capacity,index) == value : Element}: match tree: case Tree.Leaf{old}: {==} case Tree.Node{+left,+right}: fetch_node(~Element,left,right,capacity,index,value,U32.is_lt(index,U32.shr(capacity)),{==}, fetch_store(~Element,left,U32.shr(capacity),index,value),fetch_store(~Element,right,U32.shr(capacity),(index - U32.shr(capacity) : U32),value)) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_lt https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.shr https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.sub https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/proofs/storage_readback.bend&name=fetch_node https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/proofs/storage_tree_model.bend&name=Tree https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/proofs/storage_tree_model.bend&name=fetch https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/proofs/storage_tree_model.bend&name=store