Merging fuels-types
and fuels-core
#915
Closed
segfault-magnet
started this conversation in
General
Replies: 2 comments 3 replies
-
👍 |
Beta Was this translation helpful? Give feedback.
1 reply
-
If we merge |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Through various refactors/features
fuels-core
has become rather empty as of late. There are only 4 files left in it besideslib.rs
:As for the encoders, its
UnresolvedBytes
have migrated tofuels-types
with the predicates pr. So a bit of it has already gone.Function selection resolving will probably be moved to
fuel-abi-types
in one of the upcoming refactors @hal3e and I are doing.Utils has one helper function for the function selector resolving.
As for encoding/decoding, being split from
fuels-types
causes problems for us. We can't deriveTryFrom
for our custom-sdk-provided-types living over infuels-types
since that would cause a circular dependency where we needtry_from_bytes
in thefuels-core
lib.rs
butfuels-core
needsfuels-types
.Both
fuels-core
andfuels-types
can be wasm compatible.Due to all of the above, I suggest we merge the two crates into one. Either under a new name or we just call it
fuels-core
.Beta Was this translation helpful? Give feedback.
All reactions