Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RohanKapurDEV/sudoswap-sol
/ functions
Functions
50 in github.com/RohanKapurDEV/sudoswap-sol
⨍
Functions
50
◇
Types & classes
21
↓ 17 callers
Function
handler
(ctx: Context<ClosePair>)
programs/nftamm/src/instructions/close_pair.rs:36
↓ 6 callers
Function
validate_nft
Custom function to validate nft belongs to a specified collection and is verified
programs/nftamm/src/utils.rs:51
↓ 4 callers
Method
accounts
(ctx: &Context<ClosePair>)
programs/nftamm/src/instructions/close_pair.rs:24
↓ 3 callers
Function
assert_metadata_valid
Function taken from auction house contract
programs/nftamm/src/utils.rs:15
↓ 1 callers
Function
assert_derivation
Function taken from auction house contract
programs/nftamm/src/utils.rs:33
↓ 1 callers
Function
assert_keys_equal
Function taken from auction house contract
programs/nftamm/src/utils.rs:42
Function
accept_pair_authority
Set the current_authority of a [state::PairAuthority] to it's pending_authority
programs/nftamm/src/lib.rs:35
Method
accounts
(ctx: &Context<SwapNftTradePair>)
programs/nftamm/src/instructions/swap_nft_trade_pair.rs:116
Method
accounts
(ctx: &Context<SwapTokenTradePair>)
programs/nftamm/src/instructions/swap_token_trade_pair.rs:120
Method
accounts
(ctx: &Context<WithdrawQuoteToken>, amount_to_withdraw: u64)
programs/nftamm/src/instructions/withdraw_quote_token.rs:52
Method
accounts
(ctx: &Context<WithdrawNft>)
programs/nftamm/src/instructions/withdraw_nft.rs:76
Method
accounts
(ctx: &Context<WithdrawFee>, amount: u64)
programs/nftamm/src/instructions/withdraw_fee.rs:57
Method
accounts
(ctx: &Context<TradeTokenPair>)
programs/nftamm/src/instructions/trade_token_pair.rs:102
Method
accounts
(ctx: &Context<InitializePair>, pair_type: u8, bonding_curve: u8)
programs/nftamm/src/instructions/initialize_pair.rs:59
Method
accounts
(ctx: &Context<FundNftPair>)
programs/nftamm/src/instructions/fund_nft_pair.rs:61
Method
accounts
(ctx: &Context<TradeNftPair>)
programs/nftamm/src/instructions/trade_nft_pair.rs:106
Function
calculate_royalty_fee
Helper function to calculate the total royalty fees for a given nft
programs/nftamm/src/utils.rs:105
Function
change_delta
Set the delta of a [state::Pair] to new_delta
programs/nftamm/src/lib.rs:87
Function
change_fee
Set the fee of a [state::Pair] to new_fee
programs/nftamm/src/lib.rs:92
Function
change_spot_price
Set the spot_price of a [state::Pair] to new_spot_price
programs/nftamm/src/lib.rs:97
Function
close_pair
Close a token_pair
programs/nftamm/src/lib.rs:102
Function
fund_nft_pair
Fund a nft [state::Pair]
programs/nftamm/src/lib.rs:66
Function
fund_token_pair
Fund a token [state::Pair]
programs/nftamm/src/lib.rs:61
Function
handler
(ctx: Context<SwapNftTradePair>)
programs/nftamm/src/instructions/swap_nft_trade_pair.rs:157
Function
handler
(ctx: Context<ChangeSpotPrice>, new_spot_price: u64)
programs/nftamm/src/instructions/change_spot_price.rs:15
Function
handler
Handler to initialize a pair authority.
programs/nftamm/src/instructions/initialize_pair_authority.rs:20
Function
handler
(ctx: Context<SwapTokenTradePair>)
programs/nftamm/src/instructions/swap_token_trade_pair.rs:161
Function
handler
(ctx: Context<WithdrawQuoteToken>, amount_to_withdraw: u64)
programs/nftamm/src/instructions/withdraw_quote_token.rs:64
Function
handler
(ctx: Context<WithdrawNft>)
programs/nftamm/src/instructions/withdraw_nft.rs:95
Function
handler
(ctx: Context<TransferPairAuthority>)
programs/nftamm/src/instructions/transfer_pair_authority.rs:18
Function
handler
(ctx: Context<ChangeDelta>, new_delta: u64)
programs/nftamm/src/instructions/change_delta.rs:15
Function
handler
(ctx: Context<WithdrawFee>, amount: u64)
programs/nftamm/src/instructions/withdraw_fee.rs:69
Function
handler
(ctx: Context<ChangeFee>, new_fee: u16)
programs/nftamm/src/instructions/change_fee.rs:15
Function
handler
(ctx: Context<TradeTokenPair>)
programs/nftamm/src/instructions/trade_token_pair.rs:143
Function
handler
( ctx: Context<InitializePair>, pair_type: u8, bonding_curve: u8, delta: u64, fee: u16,
programs/nftamm/src/instructions/initialize_pair.rs:97
Function
handler
(ctx: Context<FundTokenPair>, amount_to_send: u64)
programs/nftamm/src/instructions/fund_token_pair.rs:45
Function
handler
(ctx: Context<FundNftPair>)
programs/nftamm/src/instructions/fund_nft_pair.rs:80
Function
handler
(ctx: Context<AcceptPairAuthority>)
programs/nftamm/src/instructions/accept_pair_authority.rs:15
Function
handler
(ctx: Context<TradeNftPair>)
programs/nftamm/src/instructions/trade_nft_pair.rs:152
Function
honor_royalties
Helper function to honor NFT royalties for a given NFT
programs/nftamm/src/utils.rs:121
Function
initialize_pair
Initialize a new [state::Pair]
programs/nftamm/src/lib.rs:40
Function
initialize_pair_authority
Initialize a new [state::PairAuthority]
programs/nftamm/src/lib.rs:22
Function
swap_nft_trade_pair
(ctx: Context<SwapNftTradePair>)
programs/nftamm/src/lib.rs:82
Function
swap_token_trade_pair
(ctx: Context<SwapTokenTradePair>)
programs/nftamm/src/lib.rs:78
Function
trade_nft_pair
(ctx: Context<TradeNftPair>)
programs/nftamm/src/lib.rs:74
Function
trade_token_pair
(ctx: Context<TradeTokenPair>)
programs/nftamm/src/lib.rs:70
Function
transfer_pair_authority
Set the pending_authority of a [state::PairAuthority]
programs/nftamm/src/lib.rs:30
Function
withdraw_fee
Withdraw a token from a [state::Pair]'s fee account- Pair creator only
programs/nftamm/src/lib.rs:120
Function
withdraw_nft
Withdraw an nft from a [state::PairMetadata] and close the account - Pair creator only
programs/nftamm/src/lib.rs:107
Function
withdraw_quote_token
Withdraw a token from a [state::Pair]'s token_account - Pair creator only
programs/nftamm/src/lib.rs:112