openbook-dex / openbook-v2

openbook-v2 monorepo, contains solana program and ts client
Other
165 stars 96 forks source link

Add a default `programId` to ts client #182

Closed metaproph3t closed 1 year ago

metaproph3t commented 1 year ago

Caveat emptor, this is a non-backwards-compatible change. But I think it makes the interface a little simpler, since you don't have to dig up the OpenBook program ID.

Alternatively, we could put programId after opts, if we think that there's a higher probability of someone changing the opts than the programId

binyebarwe commented 1 year ago

Please request me as a reviewer next time once the PR is ready :)

metaproph3t commented 1 year ago

Will do!