hyperledger-solang / solang-aqd

Apache License 2.0
2 stars 1 forks source link

Refactor `borsh_encoding.rs` in `aqd-solana-contracts` #9

Open tareknaser opened 1 year ago

tareknaser commented 1 year ago

The file crates/aqd-utils/src/borsh_encoding.rs has been directly copied from solang. Although solang exposes the discriminator function, it doesn't expose BorshToken.

To reduce reliance on solang—a significant dependency—and aim for a more lightweight aqd crate, it's essential to reconsider the structure of aqd. The objective is to for solang to depend on aqd-solana instead. This adjustment would be feasible when solana crates don't cause dependency conflicts with solang.

More about solana crates dependency issue: #5