Skip to content

Commit

Permalink
Add deployed programs to ci/client
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed Aug 7, 2020
1 parent 075e1b3 commit 3fed892
Show file tree
Hide file tree
Showing 10 changed files with 54 additions and 26 deletions.
31 changes: 26 additions & 5 deletions ci/client/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 8 additions & 3 deletions ci/client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
[package]
name = "test-client"
version = "0.1.0"
authors = ["Jack May <[email protected]>"]
version = "1.0.0"
publish = false
authors = ["Solana Maintainers <[email protected]>"]
repository = "https://github.com/solana-labs/solana-program-library"
license = "Apache-2.0"
edition = "2018"


# Used to ensure that SPL programs are buildable by external clients

[dependencies]
solana-sdk = "1.2.19"
spl-memo = { path = "../../memo" }
spl-token = { path = "../../token" }
spl-memo_1_0 = { path = "../../deployed/memo-1.0", package = "spl-memo" }
spl-token_1_0 = { path = "../../deployed/token-1.0", package = "spl-token" }
spl-token-swap = { path = "../../token-swap" }

18 changes: 10 additions & 8 deletions ci/client/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
fn main() {
let sdk_dep = solana_sdk::signature::Signature::default();
println!("Yes have some sdk_dep {:?}", sdk_dep);
let memo_dep = spl_memo::id();
println!("Yes have some memo_dep {:?}", memo_dep);
let token_dep = spl_token::id();
println!("Yes have some token_dep {:?}", token_dep);
let token_swap_dep = spl_token_swap::id();
println!("Yes have some token_swap_dep {:?}", token_swap_dep);
println!("Yes have some sdk_dep {:?}", solana_sdk::signature::Signature::default());

// Under development
println!("Yes have some memo_dep 1.1 {:?}", spl_memo_1_1::id());
println!("Yes have some token_dep 1.1 {:?}", spl_token_1_1::id());
println!("Yes have some token_swap_dep 1.0 {:?}", spl_token_swap_1_0::id());

// Deployed
println!("Yes have some memo_dep 1.0 {:?}", spl_memo_1_0::id());
println!("Yes have some token_dep 1.0 {:?}", spl_token_1_0::id());
}
2 changes: 1 addition & 1 deletion deployed/memo-1.0/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ default = ["solana-sdk/default"]
solana-sdk = { version = "1.2.17", default-features = false, optional = true }

[lib]
name = "spl_memo"
name = "spl_memo_1_0"
crate-type = ["cdylib", "lib"]
2 changes: 1 addition & 1 deletion deployed/token-1.0/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ rand = { version = "0.7.0"}
cbindgen = "=0.14.2"

[lib]
name = "spl_token"
name = "spl_token_1_0"
crate-type = ["cdylib", "lib"]
2 changes: 1 addition & 1 deletion memo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ default = ["solana-sdk/default"]
solana-sdk = { version = "1.2.17", default-features = false, optional = true }

[lib]
name = "spl_memo"
name = "spl_memo_1_1"
crate-type = ["cdylib", "lib"]
2 changes: 1 addition & 1 deletion token-swap/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions token-swap/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

[package]
name = "spl-token-swap"
version = "0.1.0"
version = "1.0.0-pre1"
description = "Solana Program Library Token Swap"
authors = ["Solana Maintainers <[email protected]>"]
repository = "https://github.com/solana-labs/solana-program-library"
Expand All @@ -22,7 +22,7 @@ num-derive = "0.3"
num-traits = "0.2"
remove_dir_all = "=0.5.0"
solana-sdk = { version = "1.2.17", default-features = false, optional = true }
spl-token = { path = "../token", default-features = false, optional = true }
spl-token = { path = "../deployed/token-1.0", default-features = false, optional = true }
thiserror = "1.0"

[dev-dependencies]
Expand All @@ -32,5 +32,5 @@ rand = { version = "0.7.0"}
cbindgen = "=0.14.2"

[lib]
name = "spl_token_swap"
name = "spl_token_swap_1_0"
crate-type = ["cdylib", "lib"]
2 changes: 1 addition & 1 deletion token/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ rand = { version = "0.7.0"}
cbindgen = "=0.14.2"

[lib]
name = "spl_token"
name = "spl_token_1_1"
crate-type = ["cdylib", "lib"]
4 changes: 2 additions & 2 deletions token/inc/token.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
#include <stdlib.h>

#define TOKEN_MAJOR_VERSION 1
#define TOKEN_MINOR_VERSION 0
#define TOKEN_PATCH_VERSION 6
#define TOKEN_MINOR_VERSION 1
#define TOKEN_PATCH_VERSION 0

/**
* There are 10^9 lamports in one SOL
Expand Down

0 comments on commit 3fed892

Please sign in to comment.