Wow, this isn't a simple one, is it? On the one hand, you were sort of e pedestrian. On the other hand...you sort of weren't, and you weren't in a crosswalk. Sorting out who's at fault is far beyond me, but I do think that what you did, while possibly legal, wasn't prudent. A bike's a vehicle -- when it's in a travel lane, it's supposed to be traveling, or maybe stopped, but in any case behaving like a vehicle. Walking your bike out into a travel lane and then mounting is taking an unnecessary risk. If you can see a block in either direction and there's no traffic coming, it's no biggie, but that wasn't the case here, and that was the source of the problem. In the future, I'd suggest mounting at the curb so that by the time you're in a travel lane, you're ready to move with the traffic.