@use-glyph/sdk-react 1.2.10 → 1.2.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.
@@ -2,9 +2,21 @@ export type ActivityBlockExplorerItem = {
2
2
  url: string;
3
3
  text: string;
4
4
  };
5
+ export declare enum DB_OFFCHAIN_TX_TYPE {
6
+ FUND = "FUND",
7
+ SWAP = "SWAP",
8
+ WITHDRAW = "WITHDRAW"
9
+ }
10
+ export declare enum DB_ONCHAIN_TX_TYPE {
11
+ SEND = "SEND",
12
+ RECEIVE = "RECEIVE",
13
+ TRANSFER = "TRANSFER",
14
+ PAY = "PAY"
15
+ }
16
+ export type ActivityType = DB_OFFCHAIN_TX_TYPE | DB_ONCHAIN_TX_TYPE;
5
17
  export type ActivityItem = {
6
18
  id: string;
7
- type: "fund" | "send";
19
+ type: ActivityType;
8
20
  type_text: string;
9
21
  status: string;
10
22
  status_text: string | null;
@@ -22,7 +34,9 @@ export type ActivityGroup = {
22
34
  label: string;
23
35
  transactions: ActivityItem[];
24
36
  };
25
- export declare function useActivity(pageSize?: number): {
37
+ export declare function useActivity(pageSize?: number, filter?: {
38
+ types: ActivityType[];
39
+ }): {
26
40
  transactionGroups: ActivityGroup[];
27
41
  fetchTransactions: (reset?: boolean) => Promise<ActivityGroup[] | null>;
28
42
  loadMore: () => Promise<boolean>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@use-glyph/sdk-react",
3
- "version": "1.2.10",
3
+ "version": "1.2.11",
4
4
  "type": "module",
5
5
  "license": "GLYPH-1.0",
6
6
  "sideEffects": false,