chore: make all src files in index protocol-agnostic