@reef-chain/react-lib 2.0.0 → 2.0.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.
@@ -302,7 +302,7 @@ export declare const POOL_FEES_GQL = "\n query poolFee(\n $address: String!\
302
302
  export declare const POOL_GQL = "\n query pool($address: String!) {\n poolById(id: $address) {\n id\n token1 {\n id\n decimals\n name\n symbol\n iconUrl\n }\n token2 {\n id\n decimals\n name\n symbol\n iconUrl\n }\n decimals\n }\n }\n";
303
303
  export declare const POOL_CURRENT_RESERVES_GQL = "\n query poolEvent($address: String!) {\n poolEvents(\n where: { pool: { id_eq: $address }, type_eq: Sync }\n orderBy: timestamp_DESC\n limit: 1\n ) {\n reserved1\n reserved2\n }\n }\n";
304
304
  export declare const POOLS_RESERVES_GQL = "\n query poolsReserves($tokens: [String!]!) {\n poolsReserves(tokens: $tokens) {\n token1\n token2\n reserved1\n reserved2\n }\n }\n";
305
- export declare const POOL_TRANSACTIONS_GQL = "\n subscription transactions(\n $search: String!\n $type: [PoolType!]\n $offset: Int!\n $limit: Int!\n ) {\n poolEvents(\n limit: $limit, \n offset: $offset, \n orderBy: timestamp_DESC, \n where: {\n pool: {\n id_containsInsensitive: $search, \n AND: { verified_eq: true }\n }, \n AND: {type_in: $type}\n }\n ) {\n id\n amount1\n amount2\n amountIn1\n amountIn2\n senderAddress\n toAddress\n blockHeight\n indexInBlock\n timestamp\n type\n pool {\n token1 {\n decimals\n symbol\n }\n token2 {\n decimals\n symbol\n }\n }\n signerAddress\n }\n }\n";
305
+ export declare const POOL_TRANSACTIONS_GQL = "\n query transactions(\n $search: String!\n $type: [PoolType!]\n $offset: Int!\n $limit: Int!\n ) {\n poolEvents(\n limit: $limit, \n offset: $offset, \n orderBy: timestamp_DESC, \n where: {\n pool: {\n id_containsInsensitive: $search, \n AND: { verified_eq: true }\n }, \n AND: {type_in: $type}\n }\n ) {\n id\n amount1\n amount2\n amountIn1\n amountIn2\n senderAddress\n toAddress\n blockHeight\n indexInBlock\n timestamp\n type\n pool {\n token1 {\n decimals\n symbol\n }\n token2 {\n decimals\n symbol\n }\n }\n signerAddress\n }\n }\n";
306
306
  export declare const POOL_TRANSACTION_COUNT_GQL = "\n query transactionCount(\n $search: String!\n $type: [PoolType!]\n ) {\n poolEventsConnection(\n orderBy: timestamp_DESC, \n where: {\n pool: {\n id_containsInsensitive: $search, \n AND: { verified_eq: true }\n }, \n AND: {type_in: $type}\n }\n ) {\n totalCount\n }\n }\n";
307
307
  type Time = 'Day' | 'Hour' | 'Minute';
308
308
  export declare const POOL_DAY_TVL_GQL: string;
@@ -14,3 +14,5 @@ export * from './usePoolStats';
14
14
  export * from './usePoolData';
15
15
  export * from './usePoolLists';
16
16
  export * from './useAllNfts';
17
+ export * from './useInitReefState';
18
+ export * from './useTransactionHistory';
@@ -1,2 +1,17 @@
1
- import { State, StateOptions } from '../appState/util';
2
- export declare const useInitReefState: (applicationDisplayName: string, options?: StateOptions) => State;
1
+ import { Provider } from '@reef-chain/evm-provider';
2
+ import { Network } from '../components';
3
+ import { ReefSigner } from '../state';
4
+ interface State {
5
+ error: {
6
+ code?: number;
7
+ message: string;
8
+ url?: string;
9
+ } | undefined;
10
+ loading: boolean;
11
+ provider: Provider | undefined;
12
+ network: Network;
13
+ signers: ReefSigner[];
14
+ selectedReefSigner?: ReefSigner;
15
+ }
16
+ export declare const useInitReefState: (applicationDisplayName: string, options: any) => State;
17
+ export {};
@@ -0,0 +1,11 @@
1
+ import { InjectedAccountWithMeta, InjectedExtension } from '@reef-defi/extension-inject/types';
2
+ export declare const useInjectExtension: (appDisplayName: string) => [
3
+ InjectedAccountWithMeta[],
4
+ InjectedExtension | undefined,
5
+ boolean,
6
+ {
7
+ code?: number;
8
+ message: string;
9
+ url?: string;
10
+ } | undefined
11
+ ];
@@ -0,0 +1,4 @@
1
+ import { TokenTransfer } from '../state';
2
+ type UseTxHistory = TokenTransfer[];
3
+ export declare const useTxHistory: () => UseTxHistory;
4
+ export {};
package/dist/index.d.ts CHANGED
@@ -6,5 +6,4 @@ export * as rpc from './rpc';
6
6
  export * as hooks from './hooks';
7
7
  export * as utils from './utils';
8
8
  export * as store from './store';
9
- export * as graphql from './graphql';
10
9
  export * as Components from './components';