forked from solana-labs/solana-program-library
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a crate, relax solana dependencies in crate (solana-labs#118)
- Loading branch information
Showing
23 changed files
with
131 additions
and
46 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
members = [ | ||
"token-lending/cli", | ||
"token-lending/program", | ||
"token-lending/sdk", | ||
] | ||
|
||
[profile.dev] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
[package] | ||
name = "solend-sdk" | ||
version = "0.1.0" | ||
description = "Solend Sdk" | ||
authors = ["Solend Maintainers <maintainers@solend.fi>"] | ||
repository = "https://github.com/solendprotocol/solana-program-library" | ||
license = "Apache-2.0" | ||
edition = "2018" | ||
|
||
[dependencies] | ||
arrayref = "0.3.6" | ||
bytemuck = "1.5.1" | ||
num-derive = "0.3" | ||
num-traits = "0.2" | ||
pyth-sdk-solana = "0.7.0" | ||
solana-program = ">=1.9, < 1.15" | ||
spl-token = { version = "3.2.0", features=["no-entrypoint"] } | ||
static_assertions = "1.1.0" | ||
thiserror = "1.0" | ||
uint = "=0.9.1" | ||
|
||
[dev-dependencies] | ||
assert_matches = "1.5.0" | ||
base64 = "0.13" | ||
log = "0.4.14" | ||
proptest = "1.0" | ||
solana-sdk = ">=1.9, < 1.15" | ||
serde = "1.0" | ||
serde_yaml = "0.8" | ||
|
||
[lib] | ||
crate-type = ["cdylib", "lib"] | ||
|
||
[profile.release] | ||
lto = "fat" | ||
codegen-units = 1 | ||
|
||
[profile.release.build-override] | ||
opt-level = 3 | ||
incremental = false | ||
codegen-units = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#![deny(missing_docs)] | ||
|
||
//! A lending program for the Solana blockchain. | ||
pub mod error; | ||
pub mod instruction; | ||
pub mod math; | ||
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"); | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.