@streamflow/distributor 8.0.0-alpha.p287.84ff30f → 8.0.0

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.
@@ -1746,13 +1746,7 @@ var BaseDistributorClient = class {
1746
1746
  return { distributorPublicKey, ixs };
1747
1747
  }
1748
1748
  async create(data, extParams) {
1749
- const invoker = extParams.invoker.publicKey;
1750
- common.invariant(invoker, "Invoker's PublicKey is not available, check passed wallet adapter!");
1751
- const { ixs, distributorPublicKey } = await solana.createAndEstimateTransaction(
1752
- (params) => this.prepareCreateInstructions(data, { ...params, invoker: extParams.invoker }),
1753
- extParams,
1754
- (q) => q.ixs
1755
- );
1749
+ const { ixs, distributorPublicKey } = await this.prepareCreateInstructions(data, extParams);
1756
1750
  const { tx, hash, context } = await solana.prepareTransaction(this.connection, ixs, extParams.invoker.publicKey);
1757
1751
  const signature = await wrappedSignAndExecuteTransaction(
1758
1752
  this.connection,
@@ -1772,10 +1766,7 @@ var BaseDistributorClient = class {
1772
1766
  };
1773
1767
  }
1774
1768
  async claim(data, extParams) {
1775
- const ixs = await solana.createAndEstimateTransaction(
1776
- (params) => this.prepareClaimInstructions(data, { ...params, invoker: extParams.invoker }),
1777
- extParams
1778
- );
1769
+ const ixs = await this.prepareClaimInstructions(data, extParams);
1779
1770
  const { tx, hash, context } = await solana.prepareTransaction(this.connection, ixs, extParams.invoker.publicKey);
1780
1771
  const signature = await wrappedSignAndExecuteTransaction(
1781
1772
  this.connection,
@@ -1846,10 +1837,7 @@ var BaseDistributorClient = class {
1846
1837
  return ixs;
1847
1838
  }
1848
1839
  async closeClaim(data, extParams) {
1849
- const ixs = await solana.createAndEstimateTransaction(
1850
- (params) => this.prepareCloseClaimInstructions(data, { ...params, invoker: extParams.invoker }),
1851
- extParams
1852
- );
1840
+ const ixs = await this.prepareCloseClaimInstructions(data, extParams);
1853
1841
  const { tx, hash, context } = await solana.prepareTransaction(this.connection, ixs, extParams.invoker.publicKey);
1854
1842
  const signature = await wrappedSignAndExecuteTransaction(
1855
1843
  this.connection,
@@ -1928,10 +1916,7 @@ var BaseDistributorClient = class {
1928
1916
  return ixs;
1929
1917
  }
1930
1918
  async clawback(data, extParams) {
1931
- const ixs = await solana.createAndEstimateTransaction(
1932
- (params) => this.prepareClawbackInstructions(data, { ...params, invoker: extParams.invoker }),
1933
- extParams
1934
- );
1919
+ const ixs = await this.prepareClawbackInstructions(data, extParams);
1935
1920
  const { tx, hash, context } = await solana.prepareTransaction(this.connection, ixs, extParams.invoker.publicKey);
1936
1921
  const signature = await wrappedSignAndExecuteTransaction(
1937
1922
  this.connection,