@sage-protocol/sdk 0.1.21 → 0.1.24

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/README.md CHANGED
@@ -28,7 +28,7 @@ const provider = sdk.getProvider({ rpcUrl: 'https://base-sepolia.publicnode.com'
28
28
  // Discover SubDAOs deployed by the latest factory
29
29
  const subdaos = await sdk.subdao.discoverSubDAOs({
30
30
  provider,
31
- factoryAddress: '0x396Ac71fa8145a89a38B02a7235798c1cD350966',
31
+ factoryAddress: '0x8C529DB96728409dD79A115c03e9f8F69629f86f',
32
32
  fromBlock: 0,
33
33
  });
34
34
 
@@ -405,7 +405,7 @@ const mapped = await sdk.factory.getSubDAORegistry({ provider, factory, subdao }
405
405
 
406
406
  Registry preflight as timelock
407
407
  ```js
408
- const { to, data } = sdk.library.buildUpdateLibraryForSubDAOTx({ registry, subdao, manifestCID, promptCount, libraryId: 'main' });
408
+ const { to, data } = sdk.library.buildUpdateLibraryTx({ registry, subdao, manifestCID, version: '1.0.0' });
409
409
  const sim = await sdk.library.simulateAsTimelock({ provider, registry, to, data, timelock });
410
410
  if (!sim.ok) throw new Error(`registry preflight failed: ${sim.error?.message}`);
411
411
  ```