@streamflow/distributor 8.0.0-alpha.p287.5172056 → 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.
- package/dist/cjs/index.cjs +4 -19
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/solana/index.cjs +4 -19
- package/dist/cjs/solana/index.cjs.map +1 -1
- package/dist/esm/index.js +5 -20
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/solana/index.js +5 -20
- package/dist/esm/solana/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -1746,13 +1746,7 @@ var BaseDistributorClient = class {
|
|
|
1746
1746
|
return { distributorPublicKey, ixs };
|
|
1747
1747
|
}
|
|
1748
1748
|
async create(data, extParams) {
|
|
1749
|
-
const
|
|
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
|
|
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
|
|
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
|
|
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,
|