Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions programs/cardinal-paid-claim-approver/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ pub enum ErrorCode {
InvalidPaymentMint,
#[msg("Invalid mint")]
InvalidMint,
#[msg("Cardinal Protocols are shutting down. Please read latest twitter post for more information")]
ProtocolsShutdown,
}
2 changes: 2 additions & 0 deletions programs/cardinal-paid-claim-approver/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ pub mod cardinal_paid_claim_approver {
use super::*;

pub fn init(ctx: Context<InitCtx>, ix: InitIx) -> Result<()> {
return Err(error!(errors::ErrorCode::ProtocolsShutdown));
init::handler(ctx, ix)
}

pub fn pay<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, PayCtx<'info>>) -> Result<()> {
return Err(error!(errors::ErrorCode::ProtocolsShutdown));
pay::handler(ctx)
}

Expand Down
2 changes: 2 additions & 0 deletions programs/cardinal-time-invalidator/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,6 @@ pub enum ErrorCode {
InvalidMint,
#[msg("Invalid new max expiration")]
InvalidNewMaxExpiration,
#[msg("Cardinal Protocols are shutting down. Please read latest twitter post for more information")]
ProtocolsShutdown,
}
2 changes: 2 additions & 0 deletions programs/cardinal-time-invalidator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ pub mod cardinal_time_invalidator {
}

pub fn extend_expiration<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, ExtendExpirationCtx<'info>>, seconds_to_add: u64) -> Result<()> {
return Err(error!(errors::ErrorCode::ProtocolsShutdown));
extend_expiration::handler(ctx, seconds_to_add)
}

Expand All @@ -24,6 +25,7 @@ pub mod cardinal_time_invalidator {
}

pub fn update_max_expiration(ctx: Context<UpdateMaxExpirationCtx>, ix: UpdateMaxExpirationIx) -> Result<()> {
return Err(error!(errors::ErrorCode::ProtocolsShutdown));
update_max_expiration::handler(ctx, ix)
}

Expand Down
2 changes: 2 additions & 0 deletions programs/cardinal-token-manager/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,6 @@ pub enum ErrorCode {
CannotMigrateDelegatedToken,
#[msg("Invalid return target")]
InvalidReturnTarget,
#[msg("Cardinal Protocols are shutting down. Please read latest twitter post for more information")]
ProtocolsShutdown,
}
4 changes: 4 additions & 0 deletions programs/cardinal-token-manager/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ pub mod cardinal_token_manager {
use super::*;

pub fn init(ctx: Context<InitCtx>, ix: InitIx) -> Result<()> {
return Err(error!(errors::ErrorCode::ProtocolsShutdown));
init::handler(ctx, ix)
}

Expand Down Expand Up @@ -45,10 +46,12 @@ pub mod cardinal_token_manager {
}

pub fn claim_receipt_mint(ctx: Context<ClaimReceiptMintCtx>, name: String) -> Result<()> {
return Err(error!(errors::ErrorCode::ProtocolsShutdown));
claim_receipt_mint::handler(ctx, name)
}

pub fn issue<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, IssueCtx<'info>>) -> Result<()> {
return Err(error!(errors::ErrorCode::ProtocolsShutdown));
issue::handler(ctx)
}

Expand All @@ -57,6 +60,7 @@ pub mod cardinal_token_manager {
}

pub fn claim<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, ClaimCtx<'info>>) -> Result<()> {
return Err(error!(errors::ErrorCode::ProtocolsShutdown));
claim::handler(ctx)
}

Expand Down
2 changes: 2 additions & 0 deletions programs/cardinal-transfer-authority/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,6 @@ pub enum ErrorCode {
InvalidRemainingAccountsSize,
#[msg("Invalid payer payment token account")]
InvalidPayerPaymentTokenAccount,
#[msg("Cardinal Protocols are shutting down. Please read latest twitter post for more information")]
ProtocolsShutdown,
}
5 changes: 5 additions & 0 deletions programs/cardinal-transfer-authority/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ pub mod cardinal_transfer_authority {

// transfer authority
pub fn init_transfer_authority(ctx: Context<InitTransferAuthorityCtx>, ix: InitTransferAuthorityIx) -> Result<()> {
return Err(error!(errors::ErrorCode::ProtocolsShutdown));
transfer_authority::init_transfer_authority::handler(ctx, ix)
}

Expand All @@ -31,14 +32,17 @@ pub mod cardinal_transfer_authority {

// listing
pub fn create_listing(ctx: Context<CreateListingCtx>, ix: CreateListingIx) -> Result<()> {
return Err(error!(errors::ErrorCode::ProtocolsShutdown));
listing::create_listing::handler(ctx, ix)
}

pub fn update_listing(ctx: Context<UpdateListingCtx>, ix: UpdateListingIx) -> Result<()> {
return Err(error!(errors::ErrorCode::ProtocolsShutdown));
listing::update_listing::handler(ctx, ix)
}

pub fn accept_listing<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, AcceptListingCtx<'info>>, ix: AcceptListingIx) -> Result<()> {
return Err(error!(errors::ErrorCode::ProtocolsShutdown));
listing::accept_listing::handler(ctx, ix)
}

Expand All @@ -48,6 +52,7 @@ pub mod cardinal_transfer_authority {

// marketplace
pub fn init_marketplace(ctx: Context<InitMarketplaceCtx>, ix: InitMarketplaceIx) -> Result<()> {
return Err(error!(errors::ErrorCode::ProtocolsShutdown));
marketplace::init_marketplace::handler(ctx, ix)
}

Expand Down
2 changes: 2 additions & 0 deletions programs/cardinal-use-invalidator/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,6 @@ pub enum ErrorCode {
InvalidMint,
#[msg("Invalid issuer")]
InvalidIssuer,
#[msg("Cardinal Protocols are shutting down. Please read latest twitter post for more information")]
ProtocolsShutdown,
}
3 changes: 3 additions & 0 deletions programs/cardinal-use-invalidator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,17 @@ pub mod cardinal_use_invalidator {
use super::*;

pub fn init(ctx: Context<InitCtx>, ix: InitIx) -> Result<()> {
return Err(error!(errors::ErrorCode::ProtocolsShutdown));
init::handler(ctx, ix)
}

pub fn increment_usages(ctx: Context<IncrementUsagesCtx>, num_usages: u64) -> Result<()> {
return Err(error!(errors::ErrorCode::ProtocolsShutdown));
increment_usages::handler(ctx, num_usages)
}

pub fn extend_usages<'key, 'accounts, 'remaining, 'info>(ctx: Context<'key, 'accounts, 'remaining, 'info, ExtendUsagesCtx<'info>>, payment_amount: u64) -> Result<()> {
return Err(error!(errors::ErrorCode::ProtocolsShutdown));
extend_usages::handler(ctx, payment_amount)
}

Expand Down
10 changes: 10 additions & 0 deletions src/idl/cardinal_paid_claim_approver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,11 @@ export type CardinalPaidClaimApprover = {
code: 6010;
name: "InvalidMint";
msg: "Invalid mint";
},
{
code: 6011;
name: "ProtocolsShutdown";
msg: "Cardinal Protocols are shutting down. Please read latest twitter post for more information";
}
];
};
Expand Down Expand Up @@ -503,5 +508,10 @@ export const IDL: CardinalPaidClaimApprover = {
name: "InvalidMint",
msg: "Invalid mint",
},
{
code: 6011,
name: "ProtocolsShutdown",
msg: "Cardinal Protocols are shutting down. Please read latest twitter post for more information",
},
],
};
5 changes: 5 additions & 0 deletions src/idl/cardinal_paid_claim_approver_idl.json
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,11 @@
"code": 6010,
"name": "InvalidMint",
"msg": "Invalid mint"
},
{
"code": 6011,
"name": "ProtocolsShutdown",
"msg": "Cardinal Protocols are shutting down. Please read latest twitter post for more information"
}
]
}
10 changes: 10 additions & 0 deletions src/idl/cardinal_time_invalidator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,11 @@ export type CardinalTimeInvalidator = {
code: 6018;
name: "InvalidNewMaxExpiration";
msg: "Invalid new max expiration";
},
{
code: 6019;
name: "ProtocolsShutdown";
msg: "Cardinal Protocols are shutting down. Please read latest twitter post for more information";
}
];
};
Expand Down Expand Up @@ -901,5 +906,10 @@ export const IDL: CardinalTimeInvalidator = {
name: "InvalidNewMaxExpiration",
msg: "Invalid new max expiration",
},
{
code: 6019,
name: "ProtocolsShutdown",
msg: "Cardinal Protocols are shutting down. Please read latest twitter post for more information",
},
],
};
5 changes: 5 additions & 0 deletions src/idl/cardinal_time_invalidator_idl.json
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,11 @@
"code": 6018,
"name": "InvalidNewMaxExpiration",
"msg": "Invalid new max expiration"
},
{
"code": 6019,
"name": "ProtocolsShutdown",
"msg": "Cardinal Protocols are shutting down. Please read latest twitter post for more information"
}
]
}
10 changes: 10 additions & 0 deletions src/idl/cardinal_token_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1345,6 +1345,11 @@ export type CardinalTokenManager = {
code: 6039;
name: "InvalidReturnTarget";
msg: "Invalid return target";
},
{
code: 6040;
name: "ProtocolsShutdown";
msg: "Cardinal Protocols are shutting down. Please read latest twitter post for more information";
}
];
};
Expand Down Expand Up @@ -2697,5 +2702,10 @@ export const IDL: CardinalTokenManager = {
name: "InvalidReturnTarget",
msg: "Invalid return target",
},
{
code: 6040,
name: "ProtocolsShutdown",
msg: "Cardinal Protocols are shutting down. Please read latest twitter post for more information",
},
],
};
5 changes: 5 additions & 0 deletions src/idl/cardinal_token_manager_idl.json
Original file line number Diff line number Diff line change
Expand Up @@ -1345,6 +1345,11 @@
"code": 6039,
"name": "InvalidReturnTarget",
"msg": "Invalid return target"
},
{
"code": 6040,
"name": "ProtocolsShutdown",
"msg": "Cardinal Protocols are shutting down. Please read latest twitter post for more information"
}
]
}
10 changes: 10 additions & 0 deletions src/idl/cardinal_transfer_authority.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1060,6 +1060,11 @@ export type CardinalTransferAuthority = {
code: 6026;
name: "InvalidPayerPaymentTokenAccount";
msg: "Invalid payer payment token account";
},
{
code: 6027;
name: "ProtocolsShutdown";
msg: "Cardinal Protocols are shutting down. Please read latest twitter post for more information";
}
];
};
Expand Down Expand Up @@ -2127,5 +2132,10 @@ export const IDL: CardinalTransferAuthority = {
name: "InvalidPayerPaymentTokenAccount",
msg: "Invalid payer payment token account",
},
{
code: 6027,
name: "ProtocolsShutdown",
msg: "Cardinal Protocols are shutting down. Please read latest twitter post for more information",
},
],
};
5 changes: 5 additions & 0 deletions src/idl/cardinal_transfer_authority_idl.json
Original file line number Diff line number Diff line change
Expand Up @@ -1060,6 +1060,11 @@
"code": 6026,
"name": "InvalidPayerPaymentTokenAccount",
"msg": "Invalid payer payment token account"
},
{
"code": 6027,
"name": "ProtocolsShutdown",
"msg": "Cardinal Protocols are shutting down. Please read latest twitter post for more information"
}
]
}
10 changes: 10 additions & 0 deletions src/idl/cardinal_use_invalidator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,11 @@ export type CardinalUseInvalidator = {
code: 6015;
name: "InvalidIssuer";
msg: "Invalid issuer";
},
{
code: 6016;
name: "ProtocolsShutdown";
msg: "Cardinal Protocols are shutting down. Please read latest twitter post for more information";
}
];
};
Expand Down Expand Up @@ -817,5 +822,10 @@ export const IDL: CardinalUseInvalidator = {
name: "InvalidIssuer",
msg: "Invalid issuer",
},
{
code: 6016,
name: "ProtocolsShutdown",
msg: "Cardinal Protocols are shutting down. Please read latest twitter post for more information",
},
],
};
5 changes: 5 additions & 0 deletions src/idl/cardinal_use_invalidator_idl.json
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,11 @@
"code": 6015,
"name": "InvalidIssuer",
"msg": "Invalid issuer"
},
{
"code": 6016,
"name": "ProtocolsShutdown",
"msg": "Cardinal Protocols are shutting down. Please read latest twitter post for more information"
}
]
}