Skip to content

bmresearch/SequenceEnforcer

Repository files navigation

Solnet.SequenceEnforcer

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

Requirements

This code was generated using net6.0, but should work as is in net5.0.

Support

Consider supporting us:

  • Sol Address: oaksGKfwkFZwCniyCF35ZVxHDPexQ3keXNTiLa7RCSp
  • Mango Ref Link

Contributors

License

This project is licensed under the MIT License - see the LICENSE file for details

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published