@sage-protocol/sdk 0.2.8 → 0.2.9

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.
@@ -14,7 +14,7 @@ var require_package = __commonJS({
14
14
  "package.json"(exports, module) {
15
15
  module.exports = {
16
16
  name: "@sage-protocol/sdk",
17
- version: "0.2.8",
17
+ version: "0.2.9",
18
18
  description: "Backend-agnostic SDK for interacting with the Sage Protocol (governance, SubDAOs, tokens).",
19
19
  main: "dist/index.cjs",
20
20
  module: "dist/index.mjs",
@@ -72,7 +72,6 @@ var require_package = __commonJS({
72
72
  },
73
73
  dependencies: {
74
74
  "@merit-systems/echo-typescript-sdk": "^1.0.17",
75
- "@whetstone-research/doppler-sdk": "^0.0.1-alpha.40",
76
75
  ai: "^5.0.52",
77
76
  axios: "^1.11.0",
78
77
  ethers: "^6.15.0",
@@ -164,8 +163,14 @@ var require_abi = __commonJS({
164
163
  "function createSubDAOOperatorWithStableAdvanced(string name, string description, uint8 accessModel, uint256 minStakeAmount, address operatorExecutor, address operatorAdmin, bool anyoneExec, bool governorProposer, (uint256 value,uint256 deadline,uint8 v,bytes32 r,bytes32 s) permit) returns (address subDAO, address registry)",
165
164
  "function createSubDAOOperator(string name, string description, uint8 accessModel, uint256 minStakeAmount, uint256 burnAmount, address operatorExecutor, address operatorAdmin) returns (address subDAO, address registry)",
166
165
  "function createSubDAOOperatorAdvanced(string name, string description, uint8 accessModel, uint256 minStakeAmount, uint256 burnAmount, address operatorExecutor, address operatorAdmin, bool anyoneExec, bool governorProposer) returns (address subDAO, address registry)",
166
+ // Forking (legacy overloads forward with maxForkFee=type(uint256).max)
167
167
  "function createForkedSubDAO(string newName, string newDescription, string originalName, address originalSubDAO, address forker, bool copyLibrary) returns (address subDAO, address registry)",
168
- "function createForkedSubDAOWithStable(string newName, string newDescription, string originalName, address originalSubDAO, address forker, uint64 authorizationNonce, (uint256 value,uint256 deadline,uint8 v,bytes32 r,bytes32 s) permit, bool copyLibrary) returns (address subDAO, address registry)"
168
+ // Forking (preferred: explicit maxForkFee slippage cap)
169
+ "function createForkedSubDAO(string newName, string newDescription, string originalName, address originalSubDAO, address forker, uint256 maxForkFee, bool copyLibrary) returns (address subDAO, address registry)",
170
+ // Stable-fee forking (legacy overloads forward with maxForkFee=type(uint256).max)
171
+ "function createForkedSubDAOWithStable(string newName, string newDescription, string originalName, address originalSubDAO, address forker, uint64 authorizationNonce, (uint256 value,uint256 deadline,uint8 v,bytes32 r,bytes32 s) permit, bool copyLibrary) returns (address subDAO, address registry)",
172
+ // Stable-fee forking (preferred: explicit maxForkFee slippage cap)
173
+ "function createForkedSubDAOWithStable(string newName, string newDescription, string originalName, address originalSubDAO, address forker, uint64 authorizationNonce, (uint256 value,uint256 deadline,uint8 v,bytes32 r,bytes32 s) permit, uint256 maxForkFee, bool copyLibrary) returns (address subDAO, address registry)"
169
174
  ];
170
175
  var TemplateModule = [
171
176
  "function getActiveTemplates() view returns (uint256[])",
@@ -176,13 +181,11 @@ var require_abi = __commonJS({
176
181
  "function maxCreationBurn() view returns (uint256)"
177
182
  ];
178
183
  var LibraryRegistry = [
179
- "function libraryByDAO(address) view returns (string manifestCID, address lastUpdater, uint256 lastUpdated, string version, address forkedFromDAO, uint256 sxxxForkFee, uint256 nonce)",
184
+ "function libraryByDAO(address) view returns (string manifestCID, address lastUpdater, uint256 lastUpdated, string version, uint256 nonce)",
180
185
  "function daoTimelock(address) view returns (address)",
181
- "function getLibrary(address) view returns (tuple(string manifestCID, address lastUpdater, uint256 lastUpdated, string version, address forkedFromDAO, uint256 sxxxForkFee, uint256 nonce))",
186
+ "function getLibrary(address) view returns (tuple(string manifestCID, address lastUpdater, uint256 lastUpdated, string version, uint256 nonce))",
182
187
  "function getLibraryIds(address dao) view returns (bytes32[] memory)",
183
- "function getLibraryStream(address dao, string libraryId) view returns (tuple(string manifestCID, address lastUpdater, uint256 lastUpdated, string version, address forkedFromDAO, uint256 sxxxForkFee, uint256 nonce))",
184
- "function getLibraryForkFee(address dao) view returns (uint256)",
185
- "function setLibraryForkFee(address dao, uint256 fee)",
188
+ "function getLibraryStream(address dao, string libraryId) view returns (tuple(string manifestCID, address lastUpdater, uint256 lastUpdated, string version, uint256 nonce))",
186
189
  "function updateLibrary(address dao, string manifestCID, string version)",
187
190
  "function updateLibraryCAS(address dao, string manifestCID, string version, uint256 expectedNonce)",
188
191
  "function updateLibraryStream(address dao, string libraryId, string manifestCID, string version)",
@@ -301,9 +304,6 @@ var require_abi = __commonJS({
301
304
  "function getForkBurnDiscount(address) view returns (uint256)",
302
305
  "function totalBurned() view returns (uint256)"
303
306
  ];
304
- var PersonalLibraryFacet = [
305
- "function createPersonalRegistry(uint8 policy) returns (address)"
306
- ];
307
307
  var PersonalMarketplace = [
308
308
  "function setPrice(bytes32 key, uint256 price)",
309
309
  "function purchase(address creator, bytes32 key, uint256 expectedPrice, uint256 deadline)"
@@ -330,7 +330,7 @@ var require_abi = __commonJS({
330
330
  "function setMerkleRoot(uint256 proposalId, bytes32 root)",
331
331
  "function finalize(uint256 proposalId)",
332
332
  "function claim(uint256 proposalId, address account, uint256 amount, bytes32[] proof)",
333
- "function getBoost(uint256 proposalId) view returns (uint256 totalPool, uint256 totalClaimed, bytes32 merkleRoot, bool active, bool finalized, address creator)",
333
+ "function getBoost(uint256 proposalId) view returns (uint256 totalPool, uint256 totalClaimed, bytes32 merkleRoot, uint256 expiresAt, bool active, bool finalized, address creator)",
334
334
  "function claimed(uint256 proposalId, address account) view returns (bool)",
335
335
  "event BoostCreated(uint256 indexed proposalId, address indexed creator, uint256 totalPool)",
336
336
  "event MerkleRootSet(uint256 indexed proposalId, bytes32 merkleRoot)",
@@ -428,7 +428,7 @@ var require_abi = __commonJS({
428
428
  "function weth() view returns (address)",
429
429
  "function timeBuffer() view returns (uint256)",
430
430
  "function reservePrice() view returns (uint256)",
431
- "function minBidIncrementPercentage() view returns (uint256)",
431
+ "function minBidIncrementBps() view returns (uint256)",
432
432
  "function duration() view returns (uint256)",
433
433
  "function mintTierId() view returns (uint256)",
434
434
  "function defaultTokenURI() view returns (string)",
@@ -438,7 +438,7 @@ var require_abi = __commonJS({
438
438
  "function paused() view returns (bool)",
439
439
  "function setTimeBuffer(uint256 _timeBuffer)",
440
440
  "function setReservePrice(uint256 _reservePrice)",
441
- "function setMinBidIncrementPercentage(uint256 _minBidIncrementPercentage)",
441
+ "function setMinBidIncrementBps(uint256 _minBidIncrementBps)",
442
442
  "function setDuration(uint256 _duration)",
443
443
  "function setMintTierId(uint256 _tierId)",
444
444
  "function setDefaultTokenURI(string _uri)",
@@ -451,7 +451,7 @@ var require_abi = __commonJS({
451
451
  "event AuctionSettled(uint256 indexed nftId, address winner, uint256 amount)",
452
452
  "event AuctionTimeBufferUpdated(uint256 timeBuffer)",
453
453
  "event AuctionReservePriceUpdated(uint256 reservePrice)",
454
- "event AuctionMinBidIncrementPercentageUpdated(uint256 minBidIncrementPercentage)",
454
+ "event AuctionMinBidIncrementBpsUpdated(uint256 minBidIncrementBps)",
455
455
  "event AuctionDurationUpdated(uint256 duration)"
456
456
  ];
457
457
  var SimpleBountySystem = [
@@ -461,10 +461,8 @@ var require_abi = __commonJS({
461
461
  // Bounty Creation
462
462
  "function createBounty(string title, string description, string ipfsCID, uint256 reward, uint256 deadline) returns (uint256)",
463
463
  "function createBountyAdvanced(string title, string description, string ipfsCID, uint256 reward, uint256 deadline, uint256 votingDuration, uint8 mode, uint8 libraryAction, address assignee, string libraryKey) returns (uint256)",
464
- // Submission & Claiming
465
- "function claimBounty(uint256 bountyId)",
464
+ // Submission
466
465
  "function submitEntry(uint256 bountyId, string promptIPFS, string deliverableIPFS) returns (uint256)",
467
- "function completeBounty(uint256 bountyId, string deliverableIPFS)",
468
466
  // Voting (COMPETITIVE mode)
469
467
  "function startVoting(uint256 bountyId)",
470
468
  "function vote(uint256 bountyId, uint256 submissionId)",
@@ -543,7 +541,6 @@ var require_abi = __commonJS({
543
541
  Timelock,
544
542
  ERC20Votes,
545
543
  SXXX,
546
- PersonalLibraryFacet,
547
544
  PersonalMarketplace,
548
545
  PersonalLicenseReceipt,
549
546
  TreasuryWrapper,