@zemyth/raise-sdk 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -7,7 +7,7 @@ import { Connection, PublicKey, Keypair, TransactionSignature } from '@solana/we
7
7
  export { Connection, Keypair, PublicKey } from '@solana/web3.js';
8
8
  import { TokenomicsInput } from './instructions/index.cjs';
9
9
  export { MAX_DEADLINE_DURATION_SECONDS, MIN_DEADLINE_DURATION_SECONDS_DEV, MIN_DEADLINE_DURATION_SECONDS_PROD, acceptAdmin, addSubAllocation, approvePivot, approveProject, calculateDeadline, cancelInvestment, cancelRoundInvestment, checkAbandonment, claimEarlyTokens, claimExitWindowRefund, claimFounderEarlyTokens, claimFounderMilestoneTokens, claimFounderMsInstantTokens, claimFounderMsVestedTokens, claimInvestorTokens, claimMilestoneFunds, claimMilestoneInstantTokens, claimMilestoneVestedTokens, claimMissedUnlock, claimRefund, claimRoundEarlyTokens, claimRoundInstantTokens, claimRoundMilestoneFunds, claimRoundVestedTokens, claimSubAllocationTokens, claimTokens, claimVestedTokens, completeDistribution, createMilestone, depositTokens, distributeTokens, executeAllocationChange, extendMilestoneDeadline, finalizePivot, finalizeRoundVoting, finalizeVoting, forceCompleteDistribution, initializeAdmin, initializeFounderVesting, initializeProject, initializeSubAllocationVesting, invest, investInRound, minDeadline, openFundingRound, proposeAllocationChange, proposePivot, releaseHoldback, reportScam, resubmitMilestone, setMilestoneDeadline, setTgeDate, submitForApproval, submitMilestone, submitRoundMilestone, symbolToBytes, transferAdmin, validateDeadline, voteAllocationChange, voteOnMilestone, voteOnRoundMilestone, withdrawFromPivot } from './instructions/index.cjs';
10
- export { GOVERNANCE, InvestmentTier, NFT, SEEDS, TIER_CONSTRAINTS, TIER_MINIMUMS, TIER_TOKEN_MULTIPLIERS, TIER_VOTE_MULTIPLIERS, TIMING, TOKENOMICS, USDC, VALIDATION, findTierIndex, getTierFromAmount, getTokenMultiplier, getVoteMultiplier } from './constants/index.cjs';
10
+ export { GOVERNANCE, InvestmentTier, NFT, SEEDS, TIER_CONSTRAINTS, TIER_MINIMUMS, TIER_TOKEN_MULTIPLIERS, TIER_VOTE_MULTIPLIERS, TIMING, TIMING_DEV, TIMING_PRODUCTION, TOKENOMICS, USDC, VALIDATION, findTierIndex, getTierFromAmount, getTimingConstants, getTokenMultiplier, getVoteMultiplier } from './constants/index.cjs';
11
11
  export { getAdminConfigPDA, getEscrowPDA, getFounderVaultPDA, getFounderVestingPDA, getFundingRoundPDA, getFutureRoundTokenVaultPDA, getFutureRoundVaultPDA, getInvestmentPDA, getInvestorVaultPDA, getLpTokenVaultPDA, getLpUsdcVaultPDA, getMilestonePDA, getNftMintPDA, getPivotProposalPDA, getProgramAuthorityPDA, getProjectPDA, getProjectPDAs, getRoundEscrowPDA, getRoundInvestmentPDA, getRoundInvestorMilestoneVestingPDA, getRoundMilestonePDA, getRoundNftMintPDA, getScamReportPDA, getTgeEscrowPDA, getTokenMintPDA, getTokenVaultPDA, getTokenomicsPDA, getTreasuryVaultPDA, getVaultAuthorityPDA, getVotePDA } from './pdas/index.cjs';
12
12
  export { EARLY_TOKEN_COOLING_PERIOD_SECONDS, EARLY_TOKEN_COOLING_PERIOD_SECONDS_DEV, EARLY_TOKEN_RELEASE_BPS, accountExists, calculateEarlyTokenAmount, calculateRemainingAllocation, canClaimEarlyTokens, canClaimFounderEarlyTokens, canClaimFounderMilestoneTokens, canClaimRoundEarlyTokens, fetchAdminConfig, fetchAllFundingRounds, fetchAllInvestments, fetchAllMilestones, fetchAllVotes, fetchFundingRound, fetchFutureRoundVault, fetchInvestment, fetchMilestone, fetchPivotProposal, fetchProject, fetchProjectByPda, fetchRoundInvestment, fetchRoundInvestorMilestoneVesting, fetchRoundMilestone, fetchTgeEscrow, fetchVote, requiresBurnForRefund } from './accounts/index.cjs';
13
13
  export { ERROR_CODES, ERROR_MESSAGES, RaiseError, getErrorMessage, isRaiseError, parseError } from './errors/index.cjs';
@@ -140,7 +140,7 @@ declare class RaiseClient {
140
140
  approveProject(args: {
141
141
  projectId: BN;
142
142
  usdcMint: PublicKey;
143
- }, adminKeypair: Keypair): Promise<string>;
143
+ }, adminKeypair?: Keypair): Promise<string>;
144
144
  createMilestone(args: {
145
145
  projectId: BN;
146
146
  milestoneIndex: number;
package/dist/index.d.ts CHANGED
@@ -7,7 +7,7 @@ import { Connection, PublicKey, Keypair, TransactionSignature } from '@solana/we
7
7
  export { Connection, Keypair, PublicKey } from '@solana/web3.js';
8
8
  import { TokenomicsInput } from './instructions/index.js';
9
9
  export { MAX_DEADLINE_DURATION_SECONDS, MIN_DEADLINE_DURATION_SECONDS_DEV, MIN_DEADLINE_DURATION_SECONDS_PROD, acceptAdmin, addSubAllocation, approvePivot, approveProject, calculateDeadline, cancelInvestment, cancelRoundInvestment, checkAbandonment, claimEarlyTokens, claimExitWindowRefund, claimFounderEarlyTokens, claimFounderMilestoneTokens, claimFounderMsInstantTokens, claimFounderMsVestedTokens, claimInvestorTokens, claimMilestoneFunds, claimMilestoneInstantTokens, claimMilestoneVestedTokens, claimMissedUnlock, claimRefund, claimRoundEarlyTokens, claimRoundInstantTokens, claimRoundMilestoneFunds, claimRoundVestedTokens, claimSubAllocationTokens, claimTokens, claimVestedTokens, completeDistribution, createMilestone, depositTokens, distributeTokens, executeAllocationChange, extendMilestoneDeadline, finalizePivot, finalizeRoundVoting, finalizeVoting, forceCompleteDistribution, initializeAdmin, initializeFounderVesting, initializeProject, initializeSubAllocationVesting, invest, investInRound, minDeadline, openFundingRound, proposeAllocationChange, proposePivot, releaseHoldback, reportScam, resubmitMilestone, setMilestoneDeadline, setTgeDate, submitForApproval, submitMilestone, submitRoundMilestone, symbolToBytes, transferAdmin, validateDeadline, voteAllocationChange, voteOnMilestone, voteOnRoundMilestone, withdrawFromPivot } from './instructions/index.js';
10
- export { GOVERNANCE, InvestmentTier, NFT, SEEDS, TIER_CONSTRAINTS, TIER_MINIMUMS, TIER_TOKEN_MULTIPLIERS, TIER_VOTE_MULTIPLIERS, TIMING, TOKENOMICS, USDC, VALIDATION, findTierIndex, getTierFromAmount, getTokenMultiplier, getVoteMultiplier } from './constants/index.js';
10
+ export { GOVERNANCE, InvestmentTier, NFT, SEEDS, TIER_CONSTRAINTS, TIER_MINIMUMS, TIER_TOKEN_MULTIPLIERS, TIER_VOTE_MULTIPLIERS, TIMING, TIMING_DEV, TIMING_PRODUCTION, TOKENOMICS, USDC, VALIDATION, findTierIndex, getTierFromAmount, getTimingConstants, getTokenMultiplier, getVoteMultiplier } from './constants/index.js';
11
11
  export { getAdminConfigPDA, getEscrowPDA, getFounderVaultPDA, getFounderVestingPDA, getFundingRoundPDA, getFutureRoundTokenVaultPDA, getFutureRoundVaultPDA, getInvestmentPDA, getInvestorVaultPDA, getLpTokenVaultPDA, getLpUsdcVaultPDA, getMilestonePDA, getNftMintPDA, getPivotProposalPDA, getProgramAuthorityPDA, getProjectPDA, getProjectPDAs, getRoundEscrowPDA, getRoundInvestmentPDA, getRoundInvestorMilestoneVestingPDA, getRoundMilestonePDA, getRoundNftMintPDA, getScamReportPDA, getTgeEscrowPDA, getTokenMintPDA, getTokenVaultPDA, getTokenomicsPDA, getTreasuryVaultPDA, getVaultAuthorityPDA, getVotePDA } from './pdas/index.js';
12
12
  export { EARLY_TOKEN_COOLING_PERIOD_SECONDS, EARLY_TOKEN_COOLING_PERIOD_SECONDS_DEV, EARLY_TOKEN_RELEASE_BPS, accountExists, calculateEarlyTokenAmount, calculateRemainingAllocation, canClaimEarlyTokens, canClaimFounderEarlyTokens, canClaimFounderMilestoneTokens, canClaimRoundEarlyTokens, fetchAdminConfig, fetchAllFundingRounds, fetchAllInvestments, fetchAllMilestones, fetchAllVotes, fetchFundingRound, fetchFutureRoundVault, fetchInvestment, fetchMilestone, fetchPivotProposal, fetchProject, fetchProjectByPda, fetchRoundInvestment, fetchRoundInvestorMilestoneVesting, fetchRoundMilestone, fetchTgeEscrow, fetchVote, requiresBurnForRefund } from './accounts/index.js';
13
13
  export { ERROR_CODES, ERROR_MESSAGES, RaiseError, getErrorMessage, isRaiseError, parseError } from './errors/index.js';
@@ -140,7 +140,7 @@ declare class RaiseClient {
140
140
  approveProject(args: {
141
141
  projectId: BN;
142
142
  usdcMint: PublicKey;
143
- }, adminKeypair: Keypair): Promise<string>;
143
+ }, adminKeypair?: Keypair): Promise<string>;
144
144
  createMilestone(args: {
145
145
  projectId: BN;
146
146
  milestoneIndex: number;
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { BN, AnchorError } from '@coral-xyz/anchor';
2
2
  export { BN } from '@coral-xyz/anchor';
3
- import { PublicKey, ComputeBudgetProgram, SystemProgram, SYSVAR_INSTRUCTIONS_PUBKEY, SYSVAR_RENT_PUBKEY, SYSVAR_CLOCK_PUBKEY } from '@solana/web3.js';
3
+ import { PublicKey, Keypair, ComputeBudgetProgram, SystemProgram, SYSVAR_INSTRUCTIONS_PUBKEY, SYSVAR_RENT_PUBKEY, SYSVAR_CLOCK_PUBKEY } from '@solana/web3.js';
4
4
  export { Connection, Keypair, PublicKey } from '@solana/web3.js';
5
5
  import { getAssociatedTokenAddressSync, TOKEN_PROGRAM_ID, ASSOCIATED_TOKEN_PROGRAM_ID } from '@solana/spl-token';
6
6
 
@@ -46,10 +46,10 @@ var VALIDATION = {
46
46
  /** Maximum pivot justification length */
47
47
  MAX_PIVOT_JUSTIFICATION_LEN: 512
48
48
  };
49
- var TIMING = {
50
- /** Production voting period (14 days) */
49
+ var TIMING_PRODUCTION = {
50
+ /** Voting period (14 days) */
51
51
  VOTING_PERIOD_SECONDS: 1209600,
52
- /** Production hold period (7 days) */
52
+ /** Hold period (7 days) */
53
53
  HOLD_PERIOD_SECONDS: 604800,
54
54
  /** Inactivity timeout (90 days) */
55
55
  INACTIVITY_TIMEOUT_SECONDS: 7776e3,
@@ -59,13 +59,49 @@ var TIMING = {
59
59
  REFUND_WINDOW_SECONDS: 1209600,
60
60
  /** Pivot withdrawal window (7 days) */
61
61
  PIVOT_WITHDRAWAL_WINDOW_SECONDS: 604800,
62
- /** Minimum TGE date (15 days from now) */
63
- TGE_MIN_DAYS: 1296e3,
64
- /** Maximum TGE date (90 days from now) */
65
- TGE_MAX_DAYS: 7776e3,
66
- /** Post-TGE holdback period (30 days) */
67
- POST_TGE_HOLDBACK_DAYS: 2592e3
62
+ /** Early token cooling period (24 hours) */
63
+ EARLY_TOKEN_COOLING_PERIOD: 86400,
64
+ /** Exit window period (7 days) */
65
+ EXIT_WINDOW_PERIOD: 604800,
66
+ /** Wallet update timelock (7 days) */
67
+ WALLET_UPDATE_TIMELOCK: 604800,
68
+ /** Minimum deadline duration (7 days) */
69
+ MIN_DEADLINE_DURATION_SECONDS: 604800,
70
+ /** Maximum deadline duration (90 days) */
71
+ MAX_DEADLINE_DURATION_SECONDS: 90 * 24 * 60 * 60,
72
+ /** Deadline grace period (90 days) */
73
+ DEADLINE_GRACE_PERIOD_SECONDS: 7776e3
68
74
  };
75
+ var TIMING_DEV = {
76
+ /** Voting period (60 seconds) */
77
+ VOTING_PERIOD_SECONDS: 60,
78
+ /** Hold period (1 second) */
79
+ HOLD_PERIOD_SECONDS: 1,
80
+ /** Inactivity timeout (10 seconds) */
81
+ INACTIVITY_TIMEOUT_SECONDS: 10,
82
+ /** Abandonment timeout (60 seconds) */
83
+ ABANDONMENT_TIMEOUT_SECONDS: 60,
84
+ /** Refund window (2 minutes) */
85
+ REFUND_WINDOW_SECONDS: 120,
86
+ /** Pivot withdrawal window (10 seconds) */
87
+ PIVOT_WITHDRAWAL_WINDOW_SECONDS: 10,
88
+ /** Early token cooling period (10 seconds) */
89
+ EARLY_TOKEN_COOLING_PERIOD: 10,
90
+ /** Exit window period (20 seconds) */
91
+ EXIT_WINDOW_PERIOD: 20,
92
+ /** Wallet update timelock (60 seconds) */
93
+ WALLET_UPDATE_TIMELOCK: 60,
94
+ /** Minimum deadline duration (60 seconds) */
95
+ MIN_DEADLINE_DURATION_SECONDS: 60,
96
+ /** Maximum deadline duration (90 days) */
97
+ MAX_DEADLINE_DURATION_SECONDS: 90 * 24 * 60 * 60,
98
+ /** Deadline grace period (5 seconds) */
99
+ DEADLINE_GRACE_PERIOD_SECONDS: 5
100
+ };
101
+ function getTimingConstants(isDev = false) {
102
+ return isDev ? TIMING_DEV : TIMING_PRODUCTION;
103
+ }
104
+ var TIMING = TIMING_PRODUCTION;
69
105
  var TIER_CONSTRAINTS = {
70
106
  /** Minimum number of tiers */
71
107
  MIN_TIERS: 1,
@@ -1153,7 +1189,8 @@ async function submitForApproval(program, projectId, founder) {
1153
1189
  founder
1154
1190
  }).rpc();
1155
1191
  }
1156
- async function approveProject(program, args, adminKeypair) {
1192
+ async function approveProject(program, args, admin) {
1193
+ const adminPubkey = admin instanceof Keypair ? admin.publicKey : admin;
1157
1194
  const projectPda = getProjectPDA(args.projectId, program.programId);
1158
1195
  const tokenomicsPda = getTokenomicsPDA(projectPda, program.programId);
1159
1196
  const tokenVaultPda = getTokenVaultPDA(projectPda, program.programId);
@@ -1169,7 +1206,7 @@ async function approveProject(program, args, adminKeypair) {
1169
1206
  const computeBudgetIx = ComputeBudgetProgram.setComputeUnitLimit({
1170
1207
  units: 4e5
1171
1208
  });
1172
- return getMethods(program).approveProject().accountsPartial({
1209
+ let builder = getMethods(program).approveProject().accountsPartial({
1173
1210
  project: projectPda,
1174
1211
  tokenomics: tokenomicsPda,
1175
1212
  tokenVault: tokenVaultPda,
@@ -1183,9 +1220,13 @@ async function approveProject(program, args, adminKeypair) {
1183
1220
  futureRoundTokenVault: futureRoundTokenVaultPda,
1184
1221
  futureRoundVault: futureRoundVaultPda,
1185
1222
  usdcMint: args.usdcMint,
1186
- authority: adminKeypair.publicKey,
1187
- payer: adminKeypair.publicKey
1188
- }).preInstructions([computeBudgetIx]).signers([adminKeypair]).rpc();
1223
+ authority: adminPubkey,
1224
+ payer: adminPubkey
1225
+ }).preInstructions([computeBudgetIx]);
1226
+ if (admin instanceof Keypair) {
1227
+ builder = builder.signers([admin]);
1228
+ }
1229
+ return builder.rpc();
1189
1230
  }
1190
1231
  async function createMilestone(program, args, founder) {
1191
1232
  const projectPda = getProjectPDA(args.projectId, program.programId);
@@ -2444,7 +2485,7 @@ var RaiseClient = class _RaiseClient {
2444
2485
  return approveProject(
2445
2486
  this.program,
2446
2487
  args,
2447
- adminKeypair
2488
+ adminKeypair ?? this.walletPublicKey
2448
2489
  );
2449
2490
  }
2450
2491
  // ===========================================================================
@@ -3828,6 +3869,6 @@ function shortenPublicKey(pubkey, chars = 4) {
3828
3869
  return `${str.slice(0, chars)}...${str.slice(-chars)}`;
3829
3870
  }
3830
3871
 
3831
- export { EARLY_TOKEN_COOLING_PERIOD_SECONDS, EARLY_TOKEN_COOLING_PERIOD_SECONDS_DEV, EARLY_TOKEN_RELEASE_BPS, ERROR_CODES, ERROR_MESSAGES, EVENT_NAMES, FundingRoundState, GOVERNANCE, InvestmentTier, MAX_DEADLINE_DURATION_SECONDS, MIN_DEADLINE_DURATION_SECONDS_DEV, MIN_DEADLINE_DURATION_SECONDS_PROD, MilestoneState, NFT, PivotState, ProjectState, RaiseClient, RaiseError, SEEDS, TIER_CONSTRAINTS, TIER_MINIMUMS, TIER_TOKEN_MULTIPLIERS, TIER_VOTE_MULTIPLIERS, TIMING, TOKENOMICS, USDC, VALIDATION, VoteChoice, acceptAdmin, accountExists, addSubAllocation, approvePivot, approveProject, bigIntToBN, bnToBigInt, bnToNumber, bpsToPercent, calculateDeadline, calculateEarlyTokenAmount, calculateRemainingAllocation, canClaimEarlyTokens, canClaimFounderEarlyTokens, canClaimFounderMilestoneTokens, canClaimRoundEarlyTokens, cancelInvestment, cancelRoundInvestment, checkAbandonment, claimEarlyTokens, claimExitWindowRefund, claimFounderEarlyTokens, claimFounderMilestoneTokens, claimFounderMsInstantTokens, claimFounderMsVestedTokens, claimInvestorTokens, claimMilestoneFunds, claimMilestoneInstantTokens, claimMilestoneVestedTokens, claimMissedUnlock, claimRefund, claimRoundEarlyTokens, claimRoundInstantTokens, claimRoundMilestoneFunds, claimRoundVestedTokens, claimSubAllocationTokens, claimTokens, claimVestedTokens, completeDistribution, confirmTransaction, createMilestone, depositTokens, distributeTokens, executeAllocationChange, extendMilestoneDeadline, fetchAdminConfig, fetchAllFundingRounds, fetchAllInvestments, fetchAllMilestones, fetchAllVotes, fetchFundingRound, fetchFutureRoundVault, fetchInvestment, fetchMilestone, fetchPivotProposal, fetchProject, fetchProjectByPda, fetchRoundInvestment, fetchRoundInvestorMilestoneVesting, fetchRoundMilestone, fetchTgeEscrow, fetchVote, filterEventsByName, finalizePivot, finalizeRoundVoting, finalizeVoting, findEvent, findTierIndex, forceCompleteDistribution, formatDuration, getAdminConfigPDA, getCurrentTimestamp, getErrorMessage, getEscrowPDA, getFounderVaultPDA, getFounderVestingPDA, getFundingRoundPDA, getFutureRoundTokenVaultPDA, getFutureRoundVaultPDA, getInvestmentPDA, getInvestorVaultPDA, getLpTokenVaultPDA, getLpUsdcVaultPDA, getMilestonePDA, getNftMintPDA, getPivotProposalPDA, getProgramAuthorityPDA, getProjectPDA, getProjectPDAs, getRoundEscrowPDA, getRoundInvestmentPDA, getRoundInvestorMilestoneVestingPDA, getRoundMilestonePDA, getRoundNftMintPDA, getScamReportPDA, getTgeEscrowPDA, getTierFromAmount, getTokenMintPDA, getTokenMultiplier, getTokenVaultPDA, getTokenomicsPDA, getTransactionWithRetry, getTreasuryVaultPDA, getVaultAuthorityPDA, getVoteMultiplier, getVotePDA, hasTimestampPassed, initializeAdmin, initializeFounderVesting, initializeProject, initializeSubAllocationVesting, invest, investInRound, isRaiseError, isValidPublicKey, minDeadline, openFundingRound, parseError, percentToBps, percentageOf, proposeAllocationChange, proposePivot, releaseHoldback, reportScam, requiresBurnForRefund, resubmitMilestone, setMilestoneDeadline, setTgeDate, shortenPublicKey, submitForApproval, submitMilestone, submitRoundMilestone, symbolToBytes, timeRemaining, timestampToDate, transferAdmin, validateDeadline, validateMetadataUri, validateMilestonePercentages, voteAllocationChange, voteOnMilestone, voteOnRoundMilestone, withdrawFromPivot };
3872
+ export { EARLY_TOKEN_COOLING_PERIOD_SECONDS, EARLY_TOKEN_COOLING_PERIOD_SECONDS_DEV, EARLY_TOKEN_RELEASE_BPS, ERROR_CODES, ERROR_MESSAGES, EVENT_NAMES, FundingRoundState, GOVERNANCE, InvestmentTier, MAX_DEADLINE_DURATION_SECONDS, MIN_DEADLINE_DURATION_SECONDS_DEV, MIN_DEADLINE_DURATION_SECONDS_PROD, MilestoneState, NFT, PivotState, ProjectState, RaiseClient, RaiseError, SEEDS, TIER_CONSTRAINTS, TIER_MINIMUMS, TIER_TOKEN_MULTIPLIERS, TIER_VOTE_MULTIPLIERS, TIMING, TIMING_DEV, TIMING_PRODUCTION, TOKENOMICS, USDC, VALIDATION, VoteChoice, acceptAdmin, accountExists, addSubAllocation, approvePivot, approveProject, bigIntToBN, bnToBigInt, bnToNumber, bpsToPercent, calculateDeadline, calculateEarlyTokenAmount, calculateRemainingAllocation, canClaimEarlyTokens, canClaimFounderEarlyTokens, canClaimFounderMilestoneTokens, canClaimRoundEarlyTokens, cancelInvestment, cancelRoundInvestment, checkAbandonment, claimEarlyTokens, claimExitWindowRefund, claimFounderEarlyTokens, claimFounderMilestoneTokens, claimFounderMsInstantTokens, claimFounderMsVestedTokens, claimInvestorTokens, claimMilestoneFunds, claimMilestoneInstantTokens, claimMilestoneVestedTokens, claimMissedUnlock, claimRefund, claimRoundEarlyTokens, claimRoundInstantTokens, claimRoundMilestoneFunds, claimRoundVestedTokens, claimSubAllocationTokens, claimTokens, claimVestedTokens, completeDistribution, confirmTransaction, createMilestone, depositTokens, distributeTokens, executeAllocationChange, extendMilestoneDeadline, fetchAdminConfig, fetchAllFundingRounds, fetchAllInvestments, fetchAllMilestones, fetchAllVotes, fetchFundingRound, fetchFutureRoundVault, fetchInvestment, fetchMilestone, fetchPivotProposal, fetchProject, fetchProjectByPda, fetchRoundInvestment, fetchRoundInvestorMilestoneVesting, fetchRoundMilestone, fetchTgeEscrow, fetchVote, filterEventsByName, finalizePivot, finalizeRoundVoting, finalizeVoting, findEvent, findTierIndex, forceCompleteDistribution, formatDuration, getAdminConfigPDA, getCurrentTimestamp, getErrorMessage, getEscrowPDA, getFounderVaultPDA, getFounderVestingPDA, getFundingRoundPDA, getFutureRoundTokenVaultPDA, getFutureRoundVaultPDA, getInvestmentPDA, getInvestorVaultPDA, getLpTokenVaultPDA, getLpUsdcVaultPDA, getMilestonePDA, getNftMintPDA, getPivotProposalPDA, getProgramAuthorityPDA, getProjectPDA, getProjectPDAs, getRoundEscrowPDA, getRoundInvestmentPDA, getRoundInvestorMilestoneVestingPDA, getRoundMilestonePDA, getRoundNftMintPDA, getScamReportPDA, getTgeEscrowPDA, getTierFromAmount, getTimingConstants, getTokenMintPDA, getTokenMultiplier, getTokenVaultPDA, getTokenomicsPDA, getTransactionWithRetry, getTreasuryVaultPDA, getVaultAuthorityPDA, getVoteMultiplier, getVotePDA, hasTimestampPassed, initializeAdmin, initializeFounderVesting, initializeProject, initializeSubAllocationVesting, invest, investInRound, isRaiseError, isValidPublicKey, minDeadline, openFundingRound, parseError, percentToBps, percentageOf, proposeAllocationChange, proposePivot, releaseHoldback, reportScam, requiresBurnForRefund, resubmitMilestone, setMilestoneDeadline, setTgeDate, shortenPublicKey, submitForApproval, submitMilestone, submitRoundMilestone, symbolToBytes, timeRemaining, timestampToDate, transferAdmin, validateDeadline, validateMetadataUri, validateMilestonePercentages, voteAllocationChange, voteOnMilestone, voteOnRoundMilestone, withdrawFromPivot };
3832
3873
  //# sourceMappingURL=index.js.map
3833
3874
  //# sourceMappingURL=index.js.map