Split solana_sdk.h (#19172)
This commit is contained in:
@ -2,8 +2,9 @@
|
||||
* @brief Example C-based BPF program that prints out the parameters
|
||||
* passed to it
|
||||
*/
|
||||
#include <solana_sdk.h>
|
||||
#include <deserialize_deprecated.h>
|
||||
#include <sol/types.h>
|
||||
#include <sol/log.h>
|
||||
#include <sol/deserialize_deprecated.h>
|
||||
|
||||
extern uint64_t entrypoint(const uint8_t *input) {
|
||||
SolAccountInfo ka[1];
|
||||
|
@ -2,7 +2,12 @@
|
||||
* @brief Example C-based BPF program that tests cross-program invocations
|
||||
*/
|
||||
#include "../invoked/instruction.h"
|
||||
#include <solana_sdk.h>
|
||||
#include <sol/entrypoint.h>
|
||||
#include <sol/cpi.h>
|
||||
#include <sol/pubkey.h>
|
||||
#include <sol/log.h>
|
||||
#include <sol/assert.h>
|
||||
#include <sol/deserialize.h>
|
||||
|
||||
static const uint8_t TEST_SUCCESS = 1;
|
||||
static const uint8_t TEST_PRIVILEGE_ESCALATION_SIGNER = 2;
|
||||
|
@ -2,7 +2,7 @@
|
||||
* @brief Instruction definitions for the invoked program
|
||||
*/
|
||||
|
||||
#include <solana_sdk.h>
|
||||
#include <sol/types.h>
|
||||
|
||||
const uint8_t VERIFY_TRANSLATIONS = 0;
|
||||
const uint8_t RETURN_ERROR = 1;
|
||||
|
@ -2,7 +2,8 @@
|
||||
* @brief Example C based BPF program that prints out the parameters
|
||||
* passed to it
|
||||
*/
|
||||
#include <solana_sdk.h>
|
||||
#include <sol/deserialize.h>
|
||||
|
||||
|
||||
extern uint64_t entrypoint(const uint8_t *input) {
|
||||
SolAccountInfo ka[1];
|
||||
|
@ -1,7 +1,11 @@
|
||||
/**
|
||||
* @brief SHA256 Syscall test
|
||||
*/
|
||||
#include <solana_sdk.h>
|
||||
#include <sol/sha.h>
|
||||
#include <sol/keccak.h>
|
||||
#include <sol/blake3.h>
|
||||
#include <sol/string.h>
|
||||
#include <sol/assert.h>
|
||||
|
||||
extern uint64_t entrypoint(const uint8_t *input) {
|
||||
|
||||
|
Reference in New Issue
Block a user