SequenceEnforcer repository with code generated using the soon to be release Solnet.Anchor from the anchor IDL.
Solnet.SequenceEnforcer.Examples contains small exemple how to create and submit instructions.
Note: all the code in Solnet.SequenceEnforcer is generated. For this specific case, a few optimizations could be done:
- In the SequenceEnforcerProgram methods, allocate a smaller _data buffer with stackalloc (these ixs are 80 bytes for set & reset, 105+Encoding.UTF8.GetByteCount(sym) bytes for acc initialization)
- ResetSequenceNumberAccounts & CheckAndSetSequenceNumberAccounts could be collapsed into single class
- Removal of SequenceEnforcerClient.SendCheckAndSetSequenceNumberAsync if not used
- Have the PDA derivation function abstracted away as a (static) method in the client
This code was generated using net6.0, but should work as is in net5.0.
Consider supporting us:
- Sol Address: oaksGKfwkFZwCniyCF35ZVxHDPexQ3keXNTiLa7RCSp
- Mango Ref Link
- Hugo - Maintainer - murlokito - @hoakbuilds
- Tiago - Maintainer - tiago - @qtmoses
This project is licensed under the MIT License - see the LICENSE file for details