@zemyth/raise-sdk 0.1.3 → 0.1.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zemyth/raise-sdk",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "TypeScript SDK for the Raise Solana program - decentralized venture funding platform",
5
5
  "author": "Raise Team",
6
6
  "license": "MIT",
@@ -94,7 +94,11 @@
94
94
  "dev": "tsup --watch",
95
95
  "clean": "rm -rf dist",
96
96
  "typecheck": "tsc --noEmit",
97
- "prepublishOnly": "npm run build"
97
+ "prepublishOnly": "npm run build",
98
+ "release": "./scripts/release.sh patch",
99
+ "release:patch": "./scripts/release.sh patch",
100
+ "release:minor": "./scripts/release.sh minor",
101
+ "release:major": "./scripts/release.sh major"
98
102
  },
99
103
  "peerDependencies": {
100
104
  "@coral-xyz/anchor": "^0.32.0",
package/src/client.ts CHANGED
@@ -939,6 +939,21 @@ export class RaiseClient {
939
939
  );
940
940
  }
941
941
 
942
+ async claimExitWindowRefund(args: {
943
+ projectId: BN;
944
+ nftMint: PublicKey;
945
+ investorNftAccount: PublicKey;
946
+ escrowTokenAccount: PublicKey;
947
+ investorTokenAccount: PublicKey;
948
+ milestoneAccounts?: PublicKey[];
949
+ }): Promise<string> {
950
+ return instructions.claimExitWindowRefund(
951
+ this.program,
952
+ args,
953
+ this.walletPublicKey
954
+ );
955
+ }
956
+
942
957
  // ===========================================================================
943
958
  // Sub-Allocation Vesting Instructions
944
959
  // ===========================================================================
package/src/index.ts CHANGED
@@ -186,6 +186,22 @@ export {
186
186
  claimRoundInstantTokens,
187
187
  claimRoundVestedTokens,
188
188
  claimRoundEarlyTokens,
189
+ // Per-Milestone Token Claims (Investor)
190
+ claimEarlyTokens,
191
+ claimMilestoneInstantTokens,
192
+ claimMilestoneVestedTokens,
193
+ // Per-Milestone Token Claims (Founder)
194
+ claimFounderEarlyTokens,
195
+ claimFounderMilestoneTokens,
196
+ claimFounderMsInstantTokens,
197
+ claimFounderMsVestedTokens,
198
+ // Dynamic Tokenomics (Sub-Allocations)
199
+ addSubAllocation,
200
+ proposeAllocationChange,
201
+ voteAllocationChange,
202
+ executeAllocationChange,
203
+ initializeSubAllocationVesting,
204
+ claimSubAllocationTokens,
189
205
  } from './instructions/index.js';
190
206
 
191
207
  // =============================================================================