Two recent grants totaling more than $1.2 million will pay to build a new dock for visiting boaters and to plan the replacement and enlargement of the dilapidated fishing pier at the Oceanside Harbor.