MCPcopy Create free account

hub / github.com/RohanKapurDEV/sudoswap-sol / functions

Functions50 in github.com/RohanKapurDEV/sudoswap-sol

↓ 17 callersFunctionhandler
(ctx: Context<ClosePair>)
programs/nftamm/src/instructions/close_pair.rs:36
↓ 6 callersFunctionvalidate_nft
Custom function to validate nft belongs to a specified collection and is verified
programs/nftamm/src/utils.rs:51
↓ 4 callersMethodaccounts
(ctx: &Context<ClosePair>)
programs/nftamm/src/instructions/close_pair.rs:24
↓ 3 callersFunctionassert_metadata_valid
Function taken from auction house contract
programs/nftamm/src/utils.rs:15
↓ 1 callersFunctionassert_derivation
Function taken from auction house contract
programs/nftamm/src/utils.rs:33
↓ 1 callersFunctionassert_keys_equal
Function taken from auction house contract
programs/nftamm/src/utils.rs:42
Functionaccept_pair_authority
Set the current_authority of a [state::PairAuthority] to it's pending_authority
programs/nftamm/src/lib.rs:35
Methodaccounts
(ctx: &Context<SwapNftTradePair>)
programs/nftamm/src/instructions/swap_nft_trade_pair.rs:116
Methodaccounts
(ctx: &Context<SwapTokenTradePair>)
programs/nftamm/src/instructions/swap_token_trade_pair.rs:120
Methodaccounts
(ctx: &Context<WithdrawQuoteToken>, amount_to_withdraw: u64)
programs/nftamm/src/instructions/withdraw_quote_token.rs:52
Methodaccounts
(ctx: &Context<WithdrawNft>)
programs/nftamm/src/instructions/withdraw_nft.rs:76
Methodaccounts
(ctx: &Context<WithdrawFee>, amount: u64)
programs/nftamm/src/instructions/withdraw_fee.rs:57
Methodaccounts
(ctx: &Context<TradeTokenPair>)
programs/nftamm/src/instructions/trade_token_pair.rs:102
Methodaccounts
(ctx: &Context<InitializePair>, pair_type: u8, bonding_curve: u8)
programs/nftamm/src/instructions/initialize_pair.rs:59
Methodaccounts
(ctx: &Context<FundNftPair>)
programs/nftamm/src/instructions/fund_nft_pair.rs:61
Methodaccounts
(ctx: &Context<TradeNftPair>)
programs/nftamm/src/instructions/trade_nft_pair.rs:106
Functioncalculate_royalty_fee
Helper function to calculate the total royalty fees for a given nft
programs/nftamm/src/utils.rs:105
Functionchange_delta
Set the delta of a [state::Pair] to new_delta
programs/nftamm/src/lib.rs:87
Functionchange_fee
Set the fee of a [state::Pair] to new_fee
programs/nftamm/src/lib.rs:92
Functionchange_spot_price
Set the spot_price of a [state::Pair] to new_spot_price
programs/nftamm/src/lib.rs:97
Functionclose_pair
Close a token_pair
programs/nftamm/src/lib.rs:102
Functionfund_nft_pair
Fund a nft [state::Pair]
programs/nftamm/src/lib.rs:66
Functionfund_token_pair
Fund a token [state::Pair]
programs/nftamm/src/lib.rs:61
Functionhandler
(ctx: Context<SwapNftTradePair>)
programs/nftamm/src/instructions/swap_nft_trade_pair.rs:157
Functionhandler
(ctx: Context<ChangeSpotPrice>, new_spot_price: u64)
programs/nftamm/src/instructions/change_spot_price.rs:15
Functionhandler
Handler to initialize a pair authority.
programs/nftamm/src/instructions/initialize_pair_authority.rs:20
Functionhandler
(ctx: Context<SwapTokenTradePair>)
programs/nftamm/src/instructions/swap_token_trade_pair.rs:161
Functionhandler
(ctx: Context<WithdrawQuoteToken>, amount_to_withdraw: u64)
programs/nftamm/src/instructions/withdraw_quote_token.rs:64
Functionhandler
(ctx: Context<WithdrawNft>)
programs/nftamm/src/instructions/withdraw_nft.rs:95
Functionhandler
(ctx: Context<TransferPairAuthority>)
programs/nftamm/src/instructions/transfer_pair_authority.rs:18
Functionhandler
(ctx: Context<ChangeDelta>, new_delta: u64)
programs/nftamm/src/instructions/change_delta.rs:15
Functionhandler
(ctx: Context<WithdrawFee>, amount: u64)
programs/nftamm/src/instructions/withdraw_fee.rs:69
Functionhandler
(ctx: Context<ChangeFee>, new_fee: u16)
programs/nftamm/src/instructions/change_fee.rs:15
Functionhandler
(ctx: Context<TradeTokenPair>)
programs/nftamm/src/instructions/trade_token_pair.rs:143
Functionhandler
( ctx: Context<InitializePair>, pair_type: u8, bonding_curve: u8, delta: u64, fee: u16,
programs/nftamm/src/instructions/initialize_pair.rs:97
Functionhandler
(ctx: Context<FundTokenPair>, amount_to_send: u64)
programs/nftamm/src/instructions/fund_token_pair.rs:45
Functionhandler
(ctx: Context<FundNftPair>)
programs/nftamm/src/instructions/fund_nft_pair.rs:80
Functionhandler
(ctx: Context<AcceptPairAuthority>)
programs/nftamm/src/instructions/accept_pair_authority.rs:15
Functionhandler
(ctx: Context<TradeNftPair>)
programs/nftamm/src/instructions/trade_nft_pair.rs:152
Functionhonor_royalties
Helper function to honor NFT royalties for a given NFT
programs/nftamm/src/utils.rs:121
Functioninitialize_pair
Initialize a new [state::Pair]
programs/nftamm/src/lib.rs:40
Functioninitialize_pair_authority
Initialize a new [state::PairAuthority]
programs/nftamm/src/lib.rs:22
Functionswap_nft_trade_pair
(ctx: Context<SwapNftTradePair>)
programs/nftamm/src/lib.rs:82
Functionswap_token_trade_pair
(ctx: Context<SwapTokenTradePair>)
programs/nftamm/src/lib.rs:78
Functiontrade_nft_pair
(ctx: Context<TradeNftPair>)
programs/nftamm/src/lib.rs:74
Functiontrade_token_pair
(ctx: Context<TradeTokenPair>)
programs/nftamm/src/lib.rs:70
Functiontransfer_pair_authority
Set the pending_authority of a [state::PairAuthority]
programs/nftamm/src/lib.rs:30
Functionwithdraw_fee
Withdraw a token from a [state::Pair]'s fee account- Pair creator only
programs/nftamm/src/lib.rs:120
Functionwithdraw_nft
Withdraw an nft from a [state::PairMetadata] and close the account - Pair creator only
programs/nftamm/src/lib.rs:107
Functionwithdraw_quote_token
Withdraw a token from a [state::Pair]'s token_account - Pair creator only
programs/nftamm/src/lib.rs:112