Bump all native programs up a level

Don't categorize programs by a single backend.
This commit is contained in:
Greg Fitzgerald
2019-03-02 20:31:57 -07:00
committed by Grimes
parent e1a1296b9b
commit 037fcf6b3d
51 changed files with 52 additions and 52 deletions

View File

@@ -0,0 +1,18 @@
[package]
name = "solana-failure"
version = "0.12.0"
description = "Solana failure program"
authors = ["Solana Maintainers <maintainers@solana.com>"]
repository = "https://github.com/solana-labs/solana"
license = "Apache-2.0"
homepage = "https://solana.com/"
edition = "2018"
[dependencies]
solana-sdk = { path = "../../sdk", version = "0.12.0" }
log = "0.4.2"
[lib]
name = "failure"
crate-type = ["cdylib"]

View File

@@ -0,0 +1,14 @@
use solana_sdk::account::KeyedAccount;
use solana_sdk::native_program::ProgramError;
use solana_sdk::pubkey::Pubkey;
use solana_sdk::solana_entrypoint;
solana_entrypoint!(entrypoint);
fn entrypoint(
_program_id: &Pubkey,
_keyed_accounts: &mut [KeyedAccount],
_data: &[u8],
_tick_height: u64,
) -> Result<(), ProgramError> {
Err(ProgramError::GenericError)
}