tentacles 0.1.1

Client for the tentacles program
Documentation
use anchor_lang::prelude::*;

pub mod utils;
pub mod error;
pub mod state;
pub mod process;

use state::*;

declare_id!("6gswY98TSzTsTWY96ZBtKAVhfsYuwp62kQ1Wgop8BnHf");

#[program]
pub mod tentacles {
    use super::*;

    /*
      Initializes a new split wallet on chain, total shares and name of wallet are passed in as parameters
     */
    pub fn initialize_wallet(ctx: Context<InitializeWallet>, name: String, total_shares: u64, bump: u8) -> Result<()> {
        process::initialize_wallet(ctx, name, total_shares, bump)
    }

    pub fn add_member(ctx: Context<AddMember>, shares: u64) -> Result<()> {
        process::add_member(ctx, shares)
    }

    pub fn distribute<'info>(ctx: Context<'_, '_, '_, 'info, Distribute<'info>>, member_pubkey: Pubkey) -> Result<()> {
        process::distribute(ctx, member_pubkey)
    }
}