Skip to content

Commit

Permalink
Use freeze feature from mpl_token_metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbogle committed Feb 4, 2022
1 parent a384f73 commit b5d9477
Show file tree
Hide file tree
Showing 16 changed files with 172 additions and 59 deletions.
105 changes: 74 additions & 31 deletions 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 programs/cardinal-paid-claim-approver/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cardinal-paid-claim-approver"
version = "0.0.3"
version = "0.0.4"
description = "Cardinal paid claim approver"
edition = "2021"
homepage = "https://cardinal.so"
Expand All @@ -25,8 +25,8 @@ anchor-spl = "0.20.1"
spl-associated-token-account = "1.0.2"
spl-token = { version = "3.1.1", features = ["no-entrypoint"] }
solana-program = "1.8.1"
cardinal-token-manager = { version = "^0.0.3", path = "../cardinal-token-manager", features = ["cpi"] }
cardinal-payment-manager = { version = "^0.0.3", path = "../cardinal-payment-manager", features = ["cpi"] }
cardinal-token-manager = { version = "^0.0.4", path = "../cardinal-token-manager", features = ["cpi"] }
cardinal-payment-manager = { version = "^0.0.4", path = "../cardinal-payment-manager", features = ["cpi"] }

[dev-dependencies]
proptest = { version = "1.0" }
4 changes: 2 additions & 2 deletions programs/cardinal-payment-manager/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cardinal-payment-manager"
version = "0.0.3"
version = "0.0.4"
description = "Cardinal paid claim approver"
edition = "2021"
homepage = "https://cardinal.so"
Expand All @@ -25,7 +25,7 @@ anchor-spl = "0.20.1"
spl-associated-token-account = "1.0.2"
spl-token = { version = "3.1.1", features = ["no-entrypoint"] }
solana-program = "1.8.1"
cardinal-token-manager = { version = "^0.0.3", path = "../cardinal-token-manager", features = ["cpi"] }
cardinal-token-manager = { version = "^0.0.4", path = "../cardinal-token-manager", features = ["cpi"] }

[dev-dependencies]
proptest = { version = "1.0" }
4 changes: 2 additions & 2 deletions programs/cardinal-rent-receipt/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cardinal-rent-receipt"
version = "0.0.3"
version = "0.0.4"
description = "Cardinal paid claim approver"
edition = "2021"
homepage = "https://cardinal.so"
Expand All @@ -25,7 +25,7 @@ anchor-spl = "0.20.1"
spl-associated-token-account = "1.0.2"
spl-token = { version = "3.1.1", features = ["no-entrypoint"] }
solana-program = "1.8.1"
cardinal-token-manager = { version = "^0.0.3", path = "../cardinal-token-manager", features = ["cpi"] }
cardinal-token-manager = { version = "^0.0.4", path = "../cardinal-token-manager", features = ["cpi"] }

[dev-dependencies]
proptest = { version = "1.0" }
2 changes: 1 addition & 1 deletion programs/cardinal-rent-receipt/src/instructions/claim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ pub fn handler(ctx: Context<ClaimCtx>, bump: u8, receipt_token_manager_bump: u8)
system_program: ctx.accounts.system_program.to_account_info(),
};
let issue_ctx = CpiContext::new(ctx.accounts.cardinal_token_manager.to_account_info(), cpi_accounts).with_signer(rent_receipt_signer);
cardinal_token_manager::cpi::issue(issue_ctx, IssueIx{amount: 1, kind: TokenManagerKind::Authority as u8})?;
cardinal_token_manager::cpi::issue(issue_ctx, IssueIx{amount: 1, kind: TokenManagerKind::Managed as u8})?;

let cpi_accounts = cardinal_token_manager::cpi::accounts::ClaimCtx {
token_manager: ctx.accounts.receipt_token_manager.to_account_info(),
Expand Down
4 changes: 2 additions & 2 deletions programs/cardinal-rental-counter/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cardinal-rental-counter"
version = "0.0.3"
version = "0.0.4"
description = "Cardinal paid claim approver"
edition = "2021"
homepage = "https://cardinal.so"
Expand All @@ -25,7 +25,7 @@ anchor-spl = "0.20.1"
spl-associated-token-account = "1.0.2"
spl-token = { version = "3.1.1", features = ["no-entrypoint"] }
solana-program = "1.8.1"
cardinal-token-manager = { version = "^0.0.3", path = "../cardinal-token-manager", features = ["cpi"] }
cardinal-token-manager = { version = "^0.0.4", path = "../cardinal-token-manager", features = ["cpi"] }

[dev-dependencies]
proptest = { version = "1.0" }
4 changes: 2 additions & 2 deletions programs/cardinal-time-invalidator/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cardinal-time-invalidator"
version = "0.0.3"
version = "0.0.4"
description = "Program for a invalidating token managers based on time"
edition = "2021"
homepage = "https://cardinal.so"
Expand All @@ -25,7 +25,7 @@ anchor-spl = "0.20.1"
spl-associated-token-account = "1.0.2"
spl-token = { version = "3.1.1", features = ["no-entrypoint"] }
solana-program = "1.8.1"
cardinal-token-manager = { version = "^0.0.3", path = "../cardinal-token-manager", features = ["cpi"] }
cardinal-token-manager = { version = "^0.0.4", path = "../cardinal-token-manager", features = ["cpi"] }

[dev-dependencies]
proptest = { version = "1.0" }
3 changes: 2 additions & 1 deletion programs/cardinal-token-manager/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cardinal-token-manager"
version = "0.0.3"
version = "0.0.4"
description = "Cardinal token manager"
edition = "2021"
homepage = "https://cardinal.so"
Expand All @@ -25,6 +25,7 @@ anchor-spl = "0.20.1"
spl-associated-token-account = "1.0.2"
spl-token = { version = "3.1.1", features = ["no-entrypoint"] }
solana-program = "1.8.1"
mpl-token-metadata = { version = "1.2.2", features = ["no-entrypoint"] }
vipers = "1.5.7"

[dev-dependencies]
Expand Down
Loading

0 comments on commit b5d9477

Please sign in to comment.