1 unstable release

0.1.0 May 2, 2024

#7 in #cpi

Download history 170/week @ 2024-04-28 23/week @ 2024-05-05 55/week @ 2024-05-12 35/week @ 2024-05-19 1/week @ 2024-05-26 13/week @ 2024-06-02 30/week @ 2024-06-09 8/week @ 2024-06-16 2/week @ 2024-06-23

53 downloads per month
Used in nitrate

Apache-2.0

31KB
412 lines

nitrate-program

Types and helper functions for programs using nitrate entrypoint.

  • account_info: Account representation.
  • cpi: Helper types to create cross-program invocations using sol_invoke_signed_c.
  • system: Helper functions to invoke solana_program::system_program.

Getting started

The types are used as part of the nitrate crate:

cargo add nitrate

[!IMPORTANT] You need to use the custom entrypoint! defined on the crate in order to use the types included in this crate.

License

Copyright (c) 2024 nifty-oss maintainers
Copyright (c) 2024 Magnetar Fields

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

This crate is based on solana-nostd-entrypoint.

Dependencies

~17–26MB
~434K SLoC