@streamflow/stream 3.0.7 → 3.0.8
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/instructions.js +11 -2
- package/package.json +1 -1
package/dist/instructions.js
CHANGED
|
@@ -85,6 +85,7 @@ var createStreamInstruction = function (data, programId, accounts) {
|
|
|
85
85
|
bufferData = buffer_1.Buffer.concat([
|
|
86
86
|
buffer_1.Buffer.from(js_sha256_1.sha256.digest("global:create")).slice(0, 8),
|
|
87
87
|
bufferData,
|
|
88
|
+
buffer_1.Buffer.alloc(10)
|
|
88
89
|
]);
|
|
89
90
|
return new web3_js_1.TransactionInstruction({
|
|
90
91
|
keys: keys,
|
|
@@ -119,6 +120,7 @@ var withdrawStreamInstruction = function (amount, programId, _a) {
|
|
|
119
120
|
data = buffer_1.Buffer.concat([
|
|
120
121
|
buffer_1.Buffer.from(js_sha256_1.sha256.digest("global:withdraw")).slice(0, 8),
|
|
121
122
|
data,
|
|
123
|
+
buffer_1.Buffer.alloc(10)
|
|
122
124
|
]);
|
|
123
125
|
return new web3_js_1.TransactionInstruction({
|
|
124
126
|
keys: keys,
|
|
@@ -148,7 +150,10 @@ var cancelStreamInstruction = function (programId, _a) {
|
|
|
148
150
|
{ pubkey: mint, isSigner: false, isWritable: false },
|
|
149
151
|
{ pubkey: tokenProgram, isSigner: false, isWritable: false },
|
|
150
152
|
];
|
|
151
|
-
var data = buffer_1.Buffer.
|
|
153
|
+
var data = buffer_1.Buffer.concat([
|
|
154
|
+
buffer_1.Buffer.from(js_sha256_1.sha256.digest("global:cancel")).slice(0, 8),
|
|
155
|
+
buffer_1.Buffer.alloc(10),
|
|
156
|
+
]);
|
|
152
157
|
return new web3_js_1.TransactionInstruction({
|
|
153
158
|
keys: keys,
|
|
154
159
|
programId: programId,
|
|
@@ -169,7 +174,10 @@ var transferStreamInstruction = function (programId, _a) {
|
|
|
169
174
|
{ pubkey: associatedTokenProgram, isSigner: false, isWritable: false },
|
|
170
175
|
{ pubkey: systemProgram, isSigner: false, isWritable: false },
|
|
171
176
|
];
|
|
172
|
-
var data = buffer_1.Buffer.
|
|
177
|
+
var data = buffer_1.Buffer.concat([
|
|
178
|
+
buffer_1.Buffer.from(js_sha256_1.sha256.digest("global:transfer_recipient")).slice(0, 8),
|
|
179
|
+
buffer_1.Buffer.alloc(10),
|
|
180
|
+
]);
|
|
173
181
|
return new web3_js_1.TransactionInstruction({
|
|
174
182
|
keys: keys,
|
|
175
183
|
programId: programId,
|
|
@@ -204,6 +212,7 @@ var topupStreamInstruction = function (amount, programId, _a) {
|
|
|
204
212
|
data = buffer_1.Buffer.concat([
|
|
205
213
|
buffer_1.Buffer.from(js_sha256_1.sha256.digest("global:topup")).slice(0, 8),
|
|
206
214
|
data,
|
|
215
|
+
buffer_1.Buffer.alloc(10)
|
|
207
216
|
]);
|
|
208
217
|
return new web3_js_1.TransactionInstruction({
|
|
209
218
|
keys: keys,
|
package/package.json
CHANGED