@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.
- 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
package/dist/cjs/index.cjs
CHANGED
|
@@ -1774,13 +1774,7 @@ var BaseDistributorClient = class {
|
|
|
1774
1774
|
return { distributorPublicKey, ixs };
|
|
1775
1775
|
}
|
|
1776
1776
|
async create(data, extParams) {
|
|
1777
|
-
const
|
|
1778
|
-
common.invariant(invoker, "Invoker's PublicKey is not available, check passed wallet adapter!");
|
|
1779
|
-
const { ixs, distributorPublicKey } = await solana.createAndEstimateTransaction(
|
|
1780
|
-
(params) => this.prepareCreateInstructions(data, { ...params, invoker: extParams.invoker }),
|
|
1781
|
-
extParams,
|
|
1782
|
-
(q) => q.ixs
|
|
1783
|
-
);
|
|
1777
|
+
const { ixs, distributorPublicKey } = await this.prepareCreateInstructions(data, extParams);
|
|
1784
1778
|
const { tx, hash, context } = await solana.prepareTransaction(this.connection, ixs, extParams.invoker.publicKey);
|
|
1785
1779
|
const signature = await wrappedSignAndExecuteTransaction(
|
|
1786
1780
|
this.connection,
|
|
@@ -1800,10 +1794,7 @@ var BaseDistributorClient = class {
|
|
|
1800
1794
|
};
|
|
1801
1795
|
}
|
|
1802
1796
|
async claim(data, extParams) {
|
|
1803
|
-
const ixs = await
|
|
1804
|
-
(params) => this.prepareClaimInstructions(data, { ...params, invoker: extParams.invoker }),
|
|
1805
|
-
extParams
|
|
1806
|
-
);
|
|
1797
|
+
const ixs = await this.prepareClaimInstructions(data, extParams);
|
|
1807
1798
|
const { tx, hash, context } = await solana.prepareTransaction(this.connection, ixs, extParams.invoker.publicKey);
|
|
1808
1799
|
const signature = await wrappedSignAndExecuteTransaction(
|
|
1809
1800
|
this.connection,
|
|
@@ -1874,10 +1865,7 @@ var BaseDistributorClient = class {
|
|
|
1874
1865
|
return ixs;
|
|
1875
1866
|
}
|
|
1876
1867
|
async closeClaim(data, extParams) {
|
|
1877
|
-
const ixs = await
|
|
1878
|
-
(params) => this.prepareCloseClaimInstructions(data, { ...params, invoker: extParams.invoker }),
|
|
1879
|
-
extParams
|
|
1880
|
-
);
|
|
1868
|
+
const ixs = await this.prepareCloseClaimInstructions(data, extParams);
|
|
1881
1869
|
const { tx, hash, context } = await solana.prepareTransaction(this.connection, ixs, extParams.invoker.publicKey);
|
|
1882
1870
|
const signature = await wrappedSignAndExecuteTransaction(
|
|
1883
1871
|
this.connection,
|
|
@@ -1956,10 +1944,7 @@ var BaseDistributorClient = class {
|
|
|
1956
1944
|
return ixs;
|
|
1957
1945
|
}
|
|
1958
1946
|
async clawback(data, extParams) {
|
|
1959
|
-
const ixs = await
|
|
1960
|
-
(params) => this.prepareClawbackInstructions(data, { ...params, invoker: extParams.invoker }),
|
|
1961
|
-
extParams
|
|
1962
|
-
);
|
|
1947
|
+
const ixs = await this.prepareClawbackInstructions(data, extParams);
|
|
1963
1948
|
const { tx, hash, context } = await solana.prepareTransaction(this.connection, ixs, extParams.invoker.publicKey);
|
|
1964
1949
|
const signature = await wrappedSignAndExecuteTransaction(
|
|
1965
1950
|
this.connection,
|