@reef-chain/react-lib 2.0.0 → 2.0.2-alpha1
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/graphql/pools.d.ts +1 -1
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/useInitReefState.d.ts +17 -2
- package/dist/hooks/useInjectExtension.d.ts +11 -0
- package/dist/hooks/useTransactionHistory.d.ts +4 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +4 -3
- package/dist/index.modern.js.map +1 -1
- package/dist/utils/index.d.ts +0 -1
- package/package.json +6 -5
- package/dist/appState/accountState.d.ts +0 -15
- package/dist/appState/accountStateUtil.d.ts +0 -6
- package/dist/appState/nftTokenState.d.ts +0 -12
- package/dist/appState/tokenState.d.ts +0 -13
- package/dist/graphql/apollo.d.ts +0 -15
- package/dist/graphql/evmEvents.d.ts +0 -6
- package/dist/graphql/gql.d.ts +0 -3
- package/dist/graphql/index.d.ts +0 -1
- package/dist/hooks/useLoadSigners.d.ts +0 -11
- package/dist/hooks/useReefPriceInterval.d.ts +0 -2
package/dist/graphql/pools.d.ts
CHANGED
|
@@ -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
|
|
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;
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,2 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
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
|
+
];
|