Core Functions
createFeeVault
Creates a fee vault. Function- The
payer
andfeeVault
is required to sign the transaction. UserShare
is an array of objects withaddress
andshare
.- Minimum: At least 2 users must be included
- Maximum: No more than 5 users can be included
createFeeVaultPda
Creates a fee vault PDA. Function- The
payer
andbase
is required to sign the transaction. UserShare
is an array of objects withaddress
andshare
.- Minimum: At least 2 users must be included
- Maximum: No more than 5 users can be included
fundFeeVault
Funds the fee vault. Function- The
funder
is required to sign the transaction.
claimUserFee
Claims the fee for the user. Function- The
payer
anduser
is required to sign the transaction.
State Functions
getFeeVault
Get the fee vault state. Function- This function returns the fee vault state.
Helper Functions
deriveFeeVaultPdaAddress
Derive the fee vault PDA address. Function- This function returns the PDA address of the fee vault.
convertToLamportsBN
Convert to lamports in BN type. Function- This function returns the lamports in BN type.