@streamflow/stream 7.0.0-alpha.10 → 7.0.0-alpha.11
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.
|
@@ -101,7 +101,7 @@ class SolanaStreamClient extends BaseStreamClient_js_1.BaseStreamClient {
|
|
|
101
101
|
const partnerTokens = await (0, solana_1.ata)(mintPublicKey, partnerPublicKey, tokenProgramId);
|
|
102
102
|
if (isNative) {
|
|
103
103
|
const totalFee = await this.getTotalFee({
|
|
104
|
-
address:
|
|
104
|
+
address: partnerPublicKey.toString(),
|
|
105
105
|
});
|
|
106
106
|
const totalAmount = (0, utils_js_2.calculateTotalAmountToDeposit)(depositedAmount, totalFee);
|
|
107
107
|
ixs.push(...(await (0, solana_1.prepareWrappedAccount)(this.connection, sender.publicKey, totalAmount)));
|
|
@@ -192,7 +192,7 @@ class SolanaStreamClient extends BaseStreamClient_js_1.BaseStreamClient {
|
|
|
192
192
|
computeLimit,
|
|
193
193
|
});
|
|
194
194
|
if (isNative) {
|
|
195
|
-
const totalFee = await this.getTotalFee({ address:
|
|
195
|
+
const totalFee = await this.getTotalFee({ address: partnerPublicKey.toString() });
|
|
196
196
|
const totalAmount = (0, utils_js_2.calculateTotalAmountToDeposit)(depositedAmount, totalFee);
|
|
197
197
|
ixs.push(...(await (0, solana_1.prepareWrappedAccount)(this.connection, sender.publicKey, totalAmount)));
|
|
198
198
|
}
|
|
@@ -76,7 +76,7 @@ export class SolanaStreamClient extends BaseStreamClient {
|
|
|
76
76
|
const partnerTokens = await ata(mintPublicKey, partnerPublicKey, tokenProgramId);
|
|
77
77
|
if (isNative) {
|
|
78
78
|
const totalFee = await this.getTotalFee({
|
|
79
|
-
address:
|
|
79
|
+
address: partnerPublicKey.toString(),
|
|
80
80
|
});
|
|
81
81
|
const totalAmount = calculateTotalAmountToDeposit(depositedAmount, totalFee);
|
|
82
82
|
ixs.push(...(await prepareWrappedAccount(this.connection, sender.publicKey, totalAmount)));
|
|
@@ -167,7 +167,7 @@ export class SolanaStreamClient extends BaseStreamClient {
|
|
|
167
167
|
computeLimit,
|
|
168
168
|
});
|
|
169
169
|
if (isNative) {
|
|
170
|
-
const totalFee = await this.getTotalFee({ address:
|
|
170
|
+
const totalFee = await this.getTotalFee({ address: partnerPublicKey.toString() });
|
|
171
171
|
const totalAmount = calculateTotalAmountToDeposit(depositedAmount, totalFee);
|
|
172
172
|
ixs.push(...(await prepareWrappedAccount(this.connection, sender.publicKey, totalAmount)));
|
|
173
173
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamflow/stream",
|
|
3
|
-
"version": "7.0.0-alpha.
|
|
3
|
+
"version": "7.0.0-alpha.11",
|
|
4
4
|
"description": "JavaScript SDK to interact with Streamflow protocol.",
|
|
5
5
|
"homepage": "https://github.com/streamflow-finance/js-sdk/",
|
|
6
6
|
"main": "./dist/esm/index.js",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"lint": "eslint --fix .",
|
|
43
43
|
"prepublishOnly": "npm run lint && npm test && npm run build"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "679b809cff3ff71f90122bbe985da3f35834452e",
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@streamflow/eslint-config": "7.0.0-alpha.
|
|
47
|
+
"@streamflow/eslint-config": "7.0.0-alpha.11",
|
|
48
48
|
"@types/ethereum-checksum-address": "^0.0.0",
|
|
49
49
|
"date-fns": "2.28.0",
|
|
50
50
|
"typescript": "^5.3.3"
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@solana/spl-token": "0.3.6",
|
|
58
58
|
"@solana/wallet-adapter-base": "0.9.19",
|
|
59
59
|
"@solana/web3.js": "1.90.2",
|
|
60
|
-
"@streamflow/common": "7.0.0-alpha.
|
|
60
|
+
"@streamflow/common": "7.0.0-alpha.11",
|
|
61
61
|
"@suiet/wallet-kit": "0.2.22",
|
|
62
62
|
"aptos": "1.21.0",
|
|
63
63
|
"bignumber.js": "^9.1.2",
|