@streamflow/stream 9.0.3 → 9.0.4
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 +14 -4
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/solana/index.cjs +14 -4
- package/dist/cjs/solana/index.cjs.map +1 -1
- package/dist/esm/index.js +14 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/solana/index.js +14 -4
- package/dist/esm/solana/index.js.map +1 -1
- package/package.json +4 -4
package/dist/cjs/index.cjs
CHANGED
|
@@ -6181,10 +6181,20 @@ var SolanaStreamClient = class extends BaseStreamClient {
|
|
|
6181
6181
|
const accounts = await this.connection.getProgramAccounts(this.programId, {
|
|
6182
6182
|
filters
|
|
6183
6183
|
});
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6184
|
+
const mapped = await Promise.all(
|
|
6185
|
+
accounts.map(async ({ pubkey, account }) => {
|
|
6186
|
+
const stream = decodeStream(account.data);
|
|
6187
|
+
if (this.isAlignedUnlock(pubkey, stream.sender)) {
|
|
6188
|
+
const alignedProxy = await this.alignedProxyProgram.account.contract.fetch(
|
|
6189
|
+
deriveContractPDA(this.alignedProxyProgram.programId, pubkey)
|
|
6190
|
+
);
|
|
6191
|
+
common.invariant(alignedProxy, "Couldn't get aligned proxy account info");
|
|
6192
|
+
return { publicKey: pubkey, account: new AlignedContract(stream, alignedProxy) };
|
|
6193
|
+
}
|
|
6194
|
+
return { publicKey: pubkey, account: new Contract2(stream) };
|
|
6195
|
+
})
|
|
6196
|
+
);
|
|
6197
|
+
return mapped;
|
|
6188
6198
|
}
|
|
6189
6199
|
/**
|
|
6190
6200
|
* Attempts updating the stream auto withdrawal params and amount per period
|