Pledges may be foreclosed in the manner prescribed in the contract of pledge; or if no manner is prescribed, or the manner prescribed is insufficient, the provisions of this chapter shall apply so far as consistent with the contract of pledge and the law of this state.
SDCL 21-54-2