Conversation
alessio
left a comment
There was a problem hiding this comment.
Good progress. We need doc strings though
alessio
left a comment
There was a problem hiding this comment.
EntityID could be replaced by sdk.Uint altogether
|
Re: The goal of the Let me know if this isn't enough of a reason to keep the standalone type and I'll remove it. |
f906c8a to
3293c06
Compare
Note that the files in `storeutils` now return generic `error` objects rather than `sdk.Error`s. This is done in an effort to decouple them from the DEX codebase. To transform the error objects back into `sdk.Error`s that are meaningful to the DEX, I've created some wrapper functions in `types/errs/errs.go` that convert the `error` objects into the DEC-appropriate `sdk.Error`.
3293c06 to
5396c82
Compare
storeutil/operations.go
Outdated
| ) | ||
|
|
||
| var ( | ||
| ErrNotFound = errors.New("not found") |
There was a problem hiding this comment.
| ErrNotFound = errors.New("not found") | |
| ErrorStoreKeyNotFound = errors.New("key not found") |
storeutil/operations.go
Outdated
|
|
||
| var ( | ||
| ErrNotFound = errors.New("not found") | ||
| ErrAlreadyExists = errors.New("already exists") |
There was a problem hiding this comment.
| ErrAlreadyExists = errors.New("already exists") | |
| ErrorKeyExists = errors.New("key exists") |
alessio
left a comment
There was a problem hiding this comment.
Just a couple of variable renames then this is good to go
Note that the files in
storeutilsnow return genericerrorobjects rather thansdk.Errors. This is donein an effort to decouple them from the DEX codebase. To transform the error objects back into
sdk.Errorsthat are meaningful to the DEX, I've created some wrapper functions in
types/errs/errs.gothat convertthe
errorobjects into the DEC-appropriatesdk.Error.