@streamflow/stream 3.0.0-test.0 → 3.0.0-test.1
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/StreamClient.js +8 -8
- package/dist/utils.js +1 -1
- package/package.json +1 -1
package/dist/StreamClient.js
CHANGED
|
@@ -163,11 +163,11 @@ var StreamClient = /** @class */ (function () {
|
|
|
163
163
|
partnerTokens = _g.sent();
|
|
164
164
|
ixs.push((0, instructions_1.createStreamInstruction)({
|
|
165
165
|
start: new spl_token_1.u64(start),
|
|
166
|
-
depositedAmount: depositedAmount,
|
|
166
|
+
depositedAmount: new spl_token_1.u64(depositedAmount),
|
|
167
167
|
period: new spl_token_1.u64(period),
|
|
168
|
-
amountPerPeriod: amountPerPeriod,
|
|
168
|
+
amountPerPeriod: new spl_token_1.u64(amountPerPeriod),
|
|
169
169
|
cliff: new spl_token_1.u64(cliff),
|
|
170
|
-
cliffAmount: cliffAmount,
|
|
170
|
+
cliffAmount: new spl_token_1.u64(cliffAmount),
|
|
171
171
|
cancelableBySender: cancelableBySender,
|
|
172
172
|
cancelableByRecipient: cancelableByRecipient,
|
|
173
173
|
automaticWithdrawal: automaticWithdrawal,
|
|
@@ -280,11 +280,11 @@ var StreamClient = /** @class */ (function () {
|
|
|
280
280
|
partnerTokens = _h.sent();
|
|
281
281
|
ixs.push((0, instructions_1.createStreamInstruction)({
|
|
282
282
|
start: new spl_token_1.u64(start),
|
|
283
|
-
depositedAmount: recipient.depositedAmount,
|
|
283
|
+
depositedAmount: new spl_token_1.u64(recipient.depositedAmount),
|
|
284
284
|
period: new spl_token_1.u64(period),
|
|
285
|
-
amountPerPeriod: amountPerPeriod,
|
|
285
|
+
amountPerPeriod: new spl_token_1.u64(amountPerPeriod),
|
|
286
286
|
cliff: new spl_token_1.u64(cliff),
|
|
287
|
-
cliffAmount: cliffAmount,
|
|
287
|
+
cliffAmount: new spl_token_1.u64(cliffAmount),
|
|
288
288
|
cancelableBySender: cancelableBySender,
|
|
289
289
|
cancelableByRecipient: cancelableByRecipient,
|
|
290
290
|
automaticWithdrawal: automaticWithdrawal,
|
|
@@ -403,7 +403,7 @@ var StreamClient = /** @class */ (function () {
|
|
|
403
403
|
return [4 /*yield*/, ata(data.mint, data.partner)];
|
|
404
404
|
case 3:
|
|
405
405
|
partnerTokens = _c.sent();
|
|
406
|
-
ixs.push((0, instructions_1.withdrawStreamInstruction)(amount, this.programId, {
|
|
406
|
+
ixs.push((0, instructions_1.withdrawStreamInstruction)(new spl_token_1.u64(amount), this.programId, {
|
|
407
407
|
authority: invoker.publicKey,
|
|
408
408
|
recipient: invoker.publicKey,
|
|
409
409
|
recipientTokens: data.recipientTokens,
|
|
@@ -584,7 +584,7 @@ var StreamClient = /** @class */ (function () {
|
|
|
584
584
|
return [4 /*yield*/, ata(mint, partner)];
|
|
585
585
|
case 3:
|
|
586
586
|
partnerTokens = _d.sent();
|
|
587
|
-
ixs.push((0, instructions_1.topupStreamInstruction)(amount, this.programId, {
|
|
587
|
+
ixs.push((0, instructions_1.topupStreamInstruction)(new spl_token_1.u64(amount), this.programId, {
|
|
588
588
|
sender: invoker.publicKey,
|
|
589
589
|
senderTokens: senderTokens,
|
|
590
590
|
metadata: streamPublicKey,
|
package/dist/utils.js
CHANGED
|
@@ -100,7 +100,7 @@ exports.formatDecodedStream = formatDecodedStream;
|
|
|
100
100
|
*/
|
|
101
101
|
var getBN = function (value, decimals) {
|
|
102
102
|
return value > (Math.pow(2, 53) - 1) / Math.pow(10, decimals)
|
|
103
|
-
? new spl_token_1.u64(
|
|
103
|
+
? new spl_token_1.u64(value).mul(new spl_token_1.u64(Math.pow(10, decimals)))
|
|
104
104
|
: new spl_token_1.u64(value * Math.pow(10, decimals));
|
|
105
105
|
};
|
|
106
106
|
exports.getBN = getBN;
|
package/package.json
CHANGED