cybercongress / cw-cyber

core semantic libs
11 stars 6 forks source link

Upgrade 0.16 -> 1.0.0-beta #2

Closed webmaster128 closed 2 years ago

webmaster128 commented 2 years ago

This is an upgrade PR that solves the type issues with the new generic parameter for the custom query request.

It is based on commit 342d91d599fc1c07b4ca02c37e828735fb780286 intentionally to allow me to see the full 0.16.0 -> 1.0.0-beta diff for the MIGRATING guide.

Ethan's suggestion to add the following aliases probably makes sense, but is a matter of taste and optional:

type Deps<'a> = cosmwasm_std::Deps<'a, CyberQueryWrapper>;
type DepsMut<'a> = cosmwasm_std::DepsMut<'a, CyberQueryWrapper>;

Feel free to pick from here or just close.