Skip to content

Helper functions to make it easy to call Marinade from an Solana Program

Notifications You must be signed in to change notification settings

jackrieck/marinade-onchain-helper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Marinade Finance on-chain CPI helper

This Rust lib will simplify integrating CPI calls by giving out the structure account and invoke signed function

Usage

add to your .toml file

marinade-onchain-helper = { git = "https://github.com/marinade-finance/marinade-onchain-helper" }

Add to the begining of your file use (remove unused functions):

use marinade_onchain_helper::{
    cpi_context_accounts::{
        MarinadeDeposit, 
        MarinadeDepositStakeAccount, 
        MarinadeLiquidUnstake
    },
    cpi_util::{
        invoke_signed,
    }
};

About

Helper functions to make it easy to call Marinade from an Solana Program

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%