InjectiveLabs / cw-injective

Apache License 2.0
22 stars 24 forks source link

Create enums or aliases for chain enum types #52

Closed gorgos closed 1 year ago

gorgos commented 2 years ago

We currently pass in i32 for chain enum types like the order type or cancellation strategy. Wonder if we instead could use a Rust enum type or use some kind of alias to actually know what the i32 stands for.

gorgos commented 1 year ago

Order type was changed in https://github.com/InjectiveLabs/cw-injective/pull/105, now cancellation strategy is still missing and maybe a few others. Worth checking all the code.