forked from solana-labs/solana-program-library
-
Notifications
You must be signed in to change notification settings - Fork 81
Expand file tree
/
Copy pathlib.rs
More file actions
40 lines (32 loc) · 1.2 KB
/
lib.rs
File metadata and controls
40 lines (32 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#![deny(missing_docs)]
//! A lending program for the Solana blockchain.
pub mod error;
pub mod instruction;
pub mod math;
pub mod offchain_utils;
pub mod oracles;
pub mod state;
// Export current sdk types for downstream users building with a different sdk version
pub use solana_program;
/// mainnet program id
pub mod solend_mainnet {
solana_program::declare_id!("So1endDq2YkqhipRh3WViPa8hdiSpxWy6z3Z6tMCpAo");
}
/// devnet program id
pub mod solend_devnet {
solana_program::declare_id!("So1endDq2YkqhipRh3WViPa8hdiSpxWy6z3Z6tMCpAo");
}
/// Canonical null pubkey. Prints out as "nu11111111111111111111111111111111111111111"
pub const NULL_PUBKEY: solana_program::pubkey::Pubkey =
solana_program::pubkey::Pubkey::new_from_array([
11, 193, 238, 216, 208, 116, 241, 195, 55, 212, 76, 22, 75, 202, 40, 216, 76, 206, 27, 169,
138, 64, 177, 28, 19, 90, 156, 0, 0, 0, 0, 0,
]);
/// Mainnet program id for Switchboard v2.
pub mod switchboard_v2_mainnet {
solana_program::declare_id!("SW1TCH7qEPTdLsDHRgPuMQjbQxKdH2aBStViMFnt64f");
}
/// Devnet program id for Switchboard v2.
pub mod switchboard_v2_devnet {
solana_program::declare_id!("2TfB33aLaneQb5TNVwyDz3jSZXS6jdW2ARw1Dgf84XCG");
}