@streamflow/common 7.0.0-alpha.5 → 7.0.0-alpha.7
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/solana/utils.js
CHANGED
|
@@ -24,7 +24,7 @@ exports.buildSendThrottler = buildSendThrottler;
|
|
|
24
24
|
* @return {Promise<Account[]>} - Array of resulting accounts.
|
|
25
25
|
*/
|
|
26
26
|
async function getProgramAccounts(connection, wallet, offset, programId) {
|
|
27
|
-
|
|
27
|
+
const programAccounts = await connection?.getProgramAccounts(programId, {
|
|
28
28
|
filters: [
|
|
29
29
|
{
|
|
30
30
|
memcmp: {
|
|
@@ -34,6 +34,7 @@ async function getProgramAccounts(connection, wallet, offset, programId) {
|
|
|
34
34
|
},
|
|
35
35
|
],
|
|
36
36
|
});
|
|
37
|
+
return [...programAccounts];
|
|
37
38
|
}
|
|
38
39
|
exports.getProgramAccounts = getProgramAccounts;
|
|
39
40
|
/**
|
|
@@ -30,6 +30,10 @@ export interface ThrottleParams {
|
|
|
30
30
|
sendRate?: number;
|
|
31
31
|
sendThrottler?: PQueue;
|
|
32
32
|
}
|
|
33
|
+
export interface IProgramAccount<T> {
|
|
34
|
+
publicKey: PublicKey;
|
|
35
|
+
account: T;
|
|
36
|
+
}
|
|
33
37
|
export declare class TransactionFailedError extends Error {
|
|
34
38
|
constructor(m: string);
|
|
35
39
|
}
|
package/dist/esm/solana/utils.js
CHANGED
|
@@ -17,7 +17,7 @@ export const buildSendThrottler = (sendRate) => {
|
|
|
17
17
|
* @return {Promise<Account[]>} - Array of resulting accounts.
|
|
18
18
|
*/
|
|
19
19
|
export async function getProgramAccounts(connection, wallet, offset, programId) {
|
|
20
|
-
|
|
20
|
+
const programAccounts = await connection?.getProgramAccounts(programId, {
|
|
21
21
|
filters: [
|
|
22
22
|
{
|
|
23
23
|
memcmp: {
|
|
@@ -27,6 +27,7 @@ export async function getProgramAccounts(connection, wallet, offset, programId)
|
|
|
27
27
|
},
|
|
28
28
|
],
|
|
29
29
|
});
|
|
30
|
+
return [...programAccounts];
|
|
30
31
|
}
|
|
31
32
|
/**
|
|
32
33
|
* Utility function to check if the transaction initiator is a Wallet object
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamflow/common",
|
|
3
|
-
"version": "7.0.0-alpha.
|
|
3
|
+
"version": "7.0.0-alpha.7",
|
|
4
4
|
"description": "Common utilities and types used by streamflow packages.",
|
|
5
5
|
"homepage": "https://github.com/streamflow-finance/js-sdk/",
|
|
6
6
|
"main": "./dist/esm/index.js",
|
|
@@ -27,19 +27,19 @@
|
|
|
27
27
|
"lint-config": "eslint --print-config",
|
|
28
28
|
"prepublishOnly": "npm run lint && npm run build"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "cfa8d5784c12bd5dd40ff454043f6a796a161049",
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@streamflow/eslint-config": "7.0.0-alpha.
|
|
32
|
+
"@streamflow/eslint-config": "7.0.0-alpha.7",
|
|
33
33
|
"date-fns": "2.28.0",
|
|
34
34
|
"typescript": "^4.9.5"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@coral-xyz/borsh": "
|
|
37
|
+
"@coral-xyz/borsh": "0.30.1",
|
|
38
38
|
"@solana/buffer-layout": "4.0.1 ",
|
|
39
39
|
"@solana/spl-token": "0.3.6",
|
|
40
40
|
"@solana/wallet-adapter-base": "0.9.19",
|
|
41
|
-
"@solana/web3.js": "1.
|
|
42
|
-
"aptos": "1.
|
|
41
|
+
"@solana/web3.js": "1.90.2",
|
|
42
|
+
"aptos": "1.21.0",
|
|
43
43
|
"bignumber.js": "^9.1.2",
|
|
44
44
|
"borsh": "^2.0.0",
|
|
45
45
|
"bs58": "5.0.0",
|