aptos-core
aptos-core copied to clipboard
feat: expose more BCS helpers
Description
Add more BCS helpers and expose them. This would simplify the usage of BCS. e.g.
const serializer = new Serializer();
serializer.serializeU32(123);
const bytes = serializer.getBytes();
can be reduced to
const bytes = bcsSerializeU32(123);
Test Plan
Added unit tests
Are there deserialize matching functions too?
These bcsSerializeXXXX are used when submitting transactions. We can add some deserialization helpers if needed when we deserialize the payloads from Daniel's new BCS endpoints.
:white_check_mark: Forge test success on 3009de26a44767cf8c59f90baac564df70c3067f
all up : 4958 TPS, 2223 ms latency, 3000 ms p99 latency,no expired txns
- Grafana dashboard
- Validator 0 logs
- Humio Logs
- Test runner output
- Test run 1 is land-blocking