@portkey/graphql 2.19.0-alpha.8 → 2.20.0-alpha.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.
- package/dist/commonjs/awaken/client/index.d.ts +3 -0
- package/dist/commonjs/awaken/client/index.js +14 -0
- package/dist/commonjs/awaken/hooks/index.d.ts +5 -0
- package/dist/commonjs/awaken/hooks/index.js +27 -0
- package/dist/commonjs/awaken/index.d.ts +1 -0
- package/dist/commonjs/awaken/index.js +17 -0
- package/dist/commonjs/awaken/queries/index.d.ts +2 -0
- package/dist/commonjs/awaken/queries/index.js +25 -0
- package/dist/commonjs/awaken/request/index.d.ts +3 -0
- package/dist/commonjs/awaken/request/index.js +18 -0
- package/dist/commonjs/awaken/types/index.d.ts +40 -0
- package/dist/commonjs/awaken/types/index.js +2 -0
- package/dist/commonjs/index.d.ts +1 -0
- package/dist/commonjs/index.js +1 -0
- package/dist/commonjs/types/index.d.ts +1 -0
- package/dist/esm/awaken/client/index.d.ts +3 -0
- package/dist/esm/awaken/client/index.js +10 -0
- package/dist/esm/awaken/hooks/index.d.ts +5 -0
- package/dist/esm/awaken/hooks/index.js +21 -0
- package/dist/esm/awaken/index.d.ts +1 -0
- package/dist/esm/awaken/index.js +1 -0
- package/dist/esm/awaken/queries/index.d.ts +2 -0
- package/dist/esm/awaken/queries/index.js +22 -0
- package/dist/esm/awaken/request/index.d.ts +3 -0
- package/dist/esm/awaken/request/index.js +13 -0
- package/dist/esm/awaken/types/index.d.ts +40 -0
- package/dist/esm/awaken/types/index.js +1 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/types/awaken/client/index.d.ts +4 -0
- package/dist/types/awaken/client/index.d.ts.map +1 -0
- package/dist/types/awaken/hooks/index.d.ts +6 -0
- package/dist/types/awaken/hooks/index.d.ts.map +1 -0
- package/dist/types/awaken/index.d.ts +2 -0
- package/dist/types/awaken/index.d.ts.map +1 -0
- package/dist/types/awaken/queries/index.d.ts +3 -0
- package/dist/types/awaken/queries/index.d.ts.map +1 -0
- package/dist/types/awaken/request/index.d.ts +4 -0
- package/dist/types/awaken/request/index.d.ts.map +1 -0
- package/dist/types/awaken/types/index.d.ts +41 -0
- package/dist/types/awaken/types/index.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/types/index.d.ts.map +1 -1
- package/package.json +3 -3
@@ -0,0 +1,14 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getGraphQLClient = exports.graphQLClientMap = void 0;
|
4
|
+
const client_1 = require("../../client");
|
5
|
+
exports.graphQLClientMap = {};
|
6
|
+
const getGraphQLClient = (graphqlUrl) => {
|
7
|
+
if (exports.graphQLClientMap[graphqlUrl]) {
|
8
|
+
return exports.graphQLClientMap[graphqlUrl];
|
9
|
+
}
|
10
|
+
const client = (0, client_1.getGraphQLClientProvider)(graphqlUrl);
|
11
|
+
exports.graphQLClientMap[graphqlUrl] = client;
|
12
|
+
return client;
|
13
|
+
};
|
14
|
+
exports.getGraphQLClient = getGraphQLClient;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { getLimitOrderRemainingUnfilled, getPairReserve } from '../request';
|
2
|
+
import { TGraphQLParamsType } from '../../types';
|
3
|
+
export declare const useAwakenGraphQLClient: (isMainnet: boolean) => import("../../types").IGraphQLClient;
|
4
|
+
export declare const useGetLimitOrderRemainingUnfilled: (isMainnet: boolean) => (params: TGraphQLParamsType<typeof getLimitOrderRemainingUnfilled>) => import("../types").TCommonGraphQLResult<import("../types").TGetLimitOrderRemainingUnfilledResult>;
|
5
|
+
export declare const useGetPairReserve: (isMainnet: boolean) => (params: TGraphQLParamsType<typeof getPairReserve>) => import("../types").TCommonGraphQLResult<import("../types").TGetPairReserveResult>;
|
@@ -0,0 +1,27 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.useGetPairReserve = exports.useGetLimitOrderRemainingUnfilled = exports.useAwakenGraphQLClient = void 0;
|
4
|
+
const request_1 = require("../request");
|
5
|
+
const client_1 = require("../client");
|
6
|
+
const react_1 = require("react");
|
7
|
+
const AWAKEN_GRAPHQL_URL_MAP = {
|
8
|
+
test: 'https://test-indexer-api.aefinder.io/api/app/graphql/awaken',
|
9
|
+
mainnet: 'https://indexer-api.aefinder.io/api/app/graphql/awaken',
|
10
|
+
};
|
11
|
+
const useAwakenGraphQLClient = (isMainnet) => {
|
12
|
+
return (0, react_1.useMemo)(() => {
|
13
|
+
const url = isMainnet ? AWAKEN_GRAPHQL_URL_MAP['mainnet'] : AWAKEN_GRAPHQL_URL_MAP['test'];
|
14
|
+
return (0, client_1.getGraphQLClient)(url);
|
15
|
+
}, [isMainnet]);
|
16
|
+
};
|
17
|
+
exports.useAwakenGraphQLClient = useAwakenGraphQLClient;
|
18
|
+
const useGetLimitOrderRemainingUnfilled = (isMainnet) => {
|
19
|
+
const client = (0, exports.useAwakenGraphQLClient)(isMainnet);
|
20
|
+
return (0, react_1.useCallback)((params) => (0, request_1.getLimitOrderRemainingUnfilled)(client, params), [client]);
|
21
|
+
};
|
22
|
+
exports.useGetLimitOrderRemainingUnfilled = useGetLimitOrderRemainingUnfilled;
|
23
|
+
const useGetPairReserve = (isMainnet) => {
|
24
|
+
const client = (0, exports.useAwakenGraphQLClient)(isMainnet);
|
25
|
+
return (0, react_1.useCallback)((params) => (0, request_1.getPairReserve)(client, params), [client]);
|
26
|
+
};
|
27
|
+
exports.useGetPairReserve = useGetPairReserve;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './hooks';
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./hooks"), exports);
|
@@ -0,0 +1,25 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PAIR_RESERVE_QUERY = exports.LIMIT_ORDER_REMAINING_UNFILLED_QUERY = void 0;
|
4
|
+
const client_1 = require("@apollo/client");
|
5
|
+
exports.LIMIT_ORDER_REMAINING_UNFILLED_QUERY = (0, client_1.gql) `
|
6
|
+
query limitOrderRemainingUnfilled($dto: GetLimitOrderRemainingUnfilledDto!) {
|
7
|
+
limitOrderRemainingUnfilled(dto: $dto) {
|
8
|
+
value
|
9
|
+
orderCount
|
10
|
+
}
|
11
|
+
}
|
12
|
+
`;
|
13
|
+
exports.PAIR_RESERVE_QUERY = (0, client_1.gql) `
|
14
|
+
query pairReserve($dto: GetPairReserveDto!) {
|
15
|
+
pairReserve(dto: $dto) {
|
16
|
+
syncRecords {
|
17
|
+
pairAddress
|
18
|
+
symbolA
|
19
|
+
symbolB
|
20
|
+
reserveA
|
21
|
+
reserveB
|
22
|
+
}
|
23
|
+
}
|
24
|
+
}
|
25
|
+
`;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getPairReserve = exports.getLimitOrderRemainingUnfilled = void 0;
|
4
|
+
const queries_1 = require("../queries");
|
5
|
+
const getLimitOrderRemainingUnfilled = (client, params) => {
|
6
|
+
return client.query({
|
7
|
+
query: queries_1.LIMIT_ORDER_REMAINING_UNFILLED_QUERY,
|
8
|
+
variables: params,
|
9
|
+
});
|
10
|
+
};
|
11
|
+
exports.getLimitOrderRemainingUnfilled = getLimitOrderRemainingUnfilled;
|
12
|
+
const getPairReserve = (client, params) => {
|
13
|
+
return client.query({
|
14
|
+
query: queries_1.PAIR_RESERVE_QUERY,
|
15
|
+
variables: params,
|
16
|
+
});
|
17
|
+
};
|
18
|
+
exports.getPairReserve = getPairReserve;
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import { ApolloQueryResult } from '@apollo/client';
|
2
|
+
import { IGraphQLClient } from '../../types';
|
3
|
+
export type TCommonGraphQLResult<T> = Promise<ApolloQueryResult<T>>;
|
4
|
+
export type TPairReserveItem = {
|
5
|
+
pairAddress: string;
|
6
|
+
symbolA: string;
|
7
|
+
symbolB: string;
|
8
|
+
reserveA: string;
|
9
|
+
reserveB: string;
|
10
|
+
};
|
11
|
+
export type TGetLimitOrderRemainingUnfilledParams = {
|
12
|
+
dto: {
|
13
|
+
chainId: string;
|
14
|
+
makerAddress: string;
|
15
|
+
tokenSymbol: string;
|
16
|
+
};
|
17
|
+
};
|
18
|
+
export type TGetLimitOrderRemainingUnfilledResult = {
|
19
|
+
limitOrderRemainingUnfilled: {
|
20
|
+
value: string;
|
21
|
+
orderCount: number;
|
22
|
+
};
|
23
|
+
};
|
24
|
+
export type TGetLimitOrderRemainingUnfilled = (client: IGraphQLClient, params: TGetLimitOrderRemainingUnfilledParams) => TCommonGraphQLResult<TGetLimitOrderRemainingUnfilledResult>;
|
25
|
+
export type TGetPairReserveParams = {
|
26
|
+
dto: {
|
27
|
+
chainId: string;
|
28
|
+
symbolA: string;
|
29
|
+
symbolB: string;
|
30
|
+
};
|
31
|
+
};
|
32
|
+
export type TGetPairReserveResult = {
|
33
|
+
pairReserve: {
|
34
|
+
syncRecords: TPairReserveItem[];
|
35
|
+
};
|
36
|
+
};
|
37
|
+
export type TGetPairReserve = (client: IGraphQLClient, params: TGetPairReserveParams) => TCommonGraphQLResult<TGetPairReserveResult>;
|
38
|
+
export type TGetActivityDetailParams = {
|
39
|
+
id: number;
|
40
|
+
};
|
package/dist/commonjs/index.d.ts
CHANGED
package/dist/commonjs/index.js
CHANGED
@@ -0,0 +1,10 @@
|
|
1
|
+
import { getGraphQLClientProvider } from '../../client.js';
|
2
|
+
export const graphQLClientMap = {};
|
3
|
+
export const getGraphQLClient = (graphqlUrl) => {
|
4
|
+
if (graphQLClientMap[graphqlUrl]) {
|
5
|
+
return graphQLClientMap[graphqlUrl];
|
6
|
+
}
|
7
|
+
const client = getGraphQLClientProvider(graphqlUrl);
|
8
|
+
graphQLClientMap[graphqlUrl] = client;
|
9
|
+
return client;
|
10
|
+
};
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { getLimitOrderRemainingUnfilled, getPairReserve } from '../request/index.js';
|
2
|
+
import { TGraphQLParamsType } from '../../types/index.js';
|
3
|
+
export declare const useAwakenGraphQLClient: (isMainnet: boolean) => import("../../types").IGraphQLClient;
|
4
|
+
export declare const useGetLimitOrderRemainingUnfilled: (isMainnet: boolean) => (params: TGraphQLParamsType<typeof getLimitOrderRemainingUnfilled>) => import("../types").TCommonGraphQLResult<import("../types").TGetLimitOrderRemainingUnfilledResult>;
|
5
|
+
export declare const useGetPairReserve: (isMainnet: boolean) => (params: TGraphQLParamsType<typeof getPairReserve>) => import("../types").TCommonGraphQLResult<import("../types").TGetPairReserveResult>;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { getLimitOrderRemainingUnfilled, getPairReserve } from '../request/index.js';
|
2
|
+
import { getGraphQLClient } from '../client/index.js';
|
3
|
+
import { useCallback, useMemo } from 'react';
|
4
|
+
const AWAKEN_GRAPHQL_URL_MAP = {
|
5
|
+
test: 'https://test-indexer-api.aefinder.io/api/app/graphql/awaken',
|
6
|
+
mainnet: 'https://indexer-api.aefinder.io/api/app/graphql/awaken',
|
7
|
+
};
|
8
|
+
export const useAwakenGraphQLClient = (isMainnet) => {
|
9
|
+
return useMemo(() => {
|
10
|
+
const url = isMainnet ? AWAKEN_GRAPHQL_URL_MAP['mainnet'] : AWAKEN_GRAPHQL_URL_MAP['test'];
|
11
|
+
return getGraphQLClient(url);
|
12
|
+
}, [isMainnet]);
|
13
|
+
};
|
14
|
+
export const useGetLimitOrderRemainingUnfilled = (isMainnet) => {
|
15
|
+
const client = useAwakenGraphQLClient(isMainnet);
|
16
|
+
return useCallback((params) => getLimitOrderRemainingUnfilled(client, params), [client]);
|
17
|
+
};
|
18
|
+
export const useGetPairReserve = (isMainnet) => {
|
19
|
+
const client = useAwakenGraphQLClient(isMainnet);
|
20
|
+
return useCallback((params) => getPairReserve(client, params), [client]);
|
21
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './hooks/index.js';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './hooks/index.js';
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { gql } from '@apollo/client';
|
2
|
+
export const LIMIT_ORDER_REMAINING_UNFILLED_QUERY = gql `
|
3
|
+
query limitOrderRemainingUnfilled($dto: GetLimitOrderRemainingUnfilledDto!) {
|
4
|
+
limitOrderRemainingUnfilled(dto: $dto) {
|
5
|
+
value
|
6
|
+
orderCount
|
7
|
+
}
|
8
|
+
}
|
9
|
+
`;
|
10
|
+
export const PAIR_RESERVE_QUERY = gql `
|
11
|
+
query pairReserve($dto: GetPairReserveDto!) {
|
12
|
+
pairReserve(dto: $dto) {
|
13
|
+
syncRecords {
|
14
|
+
pairAddress
|
15
|
+
symbolA
|
16
|
+
symbolB
|
17
|
+
reserveA
|
18
|
+
reserveB
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
`;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { LIMIT_ORDER_REMAINING_UNFILLED_QUERY, PAIR_RESERVE_QUERY } from '../queries/index.js';
|
2
|
+
export const getLimitOrderRemainingUnfilled = (client, params) => {
|
3
|
+
return client.query({
|
4
|
+
query: LIMIT_ORDER_REMAINING_UNFILLED_QUERY,
|
5
|
+
variables: params,
|
6
|
+
});
|
7
|
+
};
|
8
|
+
export const getPairReserve = (client, params) => {
|
9
|
+
return client.query({
|
10
|
+
query: PAIR_RESERVE_QUERY,
|
11
|
+
variables: params,
|
12
|
+
});
|
13
|
+
};
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import { ApolloQueryResult } from '@apollo/client';
|
2
|
+
import { IGraphQLClient } from '../../types/index.js';
|
3
|
+
export type TCommonGraphQLResult<T> = Promise<ApolloQueryResult<T>>;
|
4
|
+
export type TPairReserveItem = {
|
5
|
+
pairAddress: string;
|
6
|
+
symbolA: string;
|
7
|
+
symbolB: string;
|
8
|
+
reserveA: string;
|
9
|
+
reserveB: string;
|
10
|
+
};
|
11
|
+
export type TGetLimitOrderRemainingUnfilledParams = {
|
12
|
+
dto: {
|
13
|
+
chainId: string;
|
14
|
+
makerAddress: string;
|
15
|
+
tokenSymbol: string;
|
16
|
+
};
|
17
|
+
};
|
18
|
+
export type TGetLimitOrderRemainingUnfilledResult = {
|
19
|
+
limitOrderRemainingUnfilled: {
|
20
|
+
value: string;
|
21
|
+
orderCount: number;
|
22
|
+
};
|
23
|
+
};
|
24
|
+
export type TGetLimitOrderRemainingUnfilled = (client: IGraphQLClient, params: TGetLimitOrderRemainingUnfilledParams) => TCommonGraphQLResult<TGetLimitOrderRemainingUnfilledResult>;
|
25
|
+
export type TGetPairReserveParams = {
|
26
|
+
dto: {
|
27
|
+
chainId: string;
|
28
|
+
symbolA: string;
|
29
|
+
symbolB: string;
|
30
|
+
};
|
31
|
+
};
|
32
|
+
export type TGetPairReserveResult = {
|
33
|
+
pairReserve: {
|
34
|
+
syncRecords: TPairReserveItem[];
|
35
|
+
};
|
36
|
+
};
|
37
|
+
export type TGetPairReserve = (client: IGraphQLClient, params: TGetPairReserveParams) => TCommonGraphQLResult<TGetPairReserveResult>;
|
38
|
+
export type TGetActivityDetailParams = {
|
39
|
+
id: number;
|
40
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/awaken/client/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAM,CAAC;AAEnE,eAAO,MAAM,gBAAgB,eAAgB,MAAM,mBAOlD,CAAC"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { getLimitOrderRemainingUnfilled, getPairReserve } from '../request';
|
2
|
+
import { TGraphQLParamsType } from '../../types';
|
3
|
+
export declare const useAwakenGraphQLClient: (isMainnet: boolean) => import("../../types").IGraphQLClient;
|
4
|
+
export declare const useGetLimitOrderRemainingUnfilled: (isMainnet: boolean) => (params: TGraphQLParamsType<typeof getLimitOrderRemainingUnfilled>) => import("../types").TCommonGraphQLResult<import("../types").TGetLimitOrderRemainingUnfilledResult>;
|
5
|
+
export declare const useGetPairReserve: (isMainnet: boolean) => (params: TGraphQLParamsType<typeof getPairReserve>) => import("../types").TCommonGraphQLResult<import("../types").TGetPairReserveResult>;
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/awaken/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAG5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAOjD,eAAO,MAAM,sBAAsB,cAAe,OAAO,yCAKxD,CAAC;AAEF,eAAO,MAAM,iCAAiC,cAAe,OAAO,cAGvD,mBAAmB,qCAAqC,CAAC,sGAIrE,CAAC;AAEF,eAAO,MAAM,iBAAiB,cAAe,OAAO,cAEtB,mBAAmB,qBAAqB,CAAC,sFACtE,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/awaken/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/awaken/queries/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oCAAoC,uCAOhD,CAAC;AAEF,eAAO,MAAM,kBAAkB,uCAY9B,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/awaken/request/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,+BAA+B,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE5E,eAAO,MAAM,8BAA8B,EAAE,+BAK5C,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,eAK5B,CAAC"}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import { ApolloQueryResult } from '@apollo/client';
|
2
|
+
import { IGraphQLClient } from '../../types';
|
3
|
+
export type TCommonGraphQLResult<T> = Promise<ApolloQueryResult<T>>;
|
4
|
+
export type TPairReserveItem = {
|
5
|
+
pairAddress: string;
|
6
|
+
symbolA: string;
|
7
|
+
symbolB: string;
|
8
|
+
reserveA: string;
|
9
|
+
reserveB: string;
|
10
|
+
};
|
11
|
+
export type TGetLimitOrderRemainingUnfilledParams = {
|
12
|
+
dto: {
|
13
|
+
chainId: string;
|
14
|
+
makerAddress: string;
|
15
|
+
tokenSymbol: string;
|
16
|
+
};
|
17
|
+
};
|
18
|
+
export type TGetLimitOrderRemainingUnfilledResult = {
|
19
|
+
limitOrderRemainingUnfilled: {
|
20
|
+
value: string;
|
21
|
+
orderCount: number;
|
22
|
+
};
|
23
|
+
};
|
24
|
+
export type TGetLimitOrderRemainingUnfilled = (client: IGraphQLClient, params: TGetLimitOrderRemainingUnfilledParams) => TCommonGraphQLResult<TGetLimitOrderRemainingUnfilledResult>;
|
25
|
+
export type TGetPairReserveParams = {
|
26
|
+
dto: {
|
27
|
+
chainId: string;
|
28
|
+
symbolA: string;
|
29
|
+
symbolB: string;
|
30
|
+
};
|
31
|
+
};
|
32
|
+
export type TGetPairReserveResult = {
|
33
|
+
pairReserve: {
|
34
|
+
syncRecords: TPairReserveItem[];
|
35
|
+
};
|
36
|
+
};
|
37
|
+
export type TGetPairReserve = (client: IGraphQLClient, params: TGetPairReserveParams) => TCommonGraphQLResult<TGetPairReserveResult>;
|
38
|
+
export type TGetActivityDetailParams = {
|
39
|
+
id: number;
|
40
|
+
};
|
41
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/awaken/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,MAAM,MAAM,oBAAoB,CAAC,CAAC,IAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC;AAEpE,MAAM,MAAM,gBAAgB,GAAG;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,qCAAqC,GAAG;IAClD,GAAG,EAAE;QACH,OAAO,EAAE,MAAM,CAAC;QAChB,YAAY,EAAE,MAAM,CAAC;QACrB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;CACH,CAAC;AACF,MAAM,MAAM,qCAAqC,GAAG;IAClD,2BAA2B,EAAE;QAC3B,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;CACH,CAAC;AACF,MAAM,MAAM,+BAA+B,GAAG,CAC5C,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,qCAAqC,KAC1C,oBAAoB,CAAC,qCAAqC,CAAC,CAAC;AAEjE,MAAM,MAAM,qBAAqB,GAAG;IAClC,GAAG,EAAE;QACH,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG;IAClC,WAAW,EAAE;QACX,WAAW,EAAE,gBAAgB,EAAE,CAAC;KACjC,CAAC;CACH,CAAC;AACF,MAAM,MAAM,eAAe,GAAG,CAC5B,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,qBAAqB,KAC1B,oBAAoB,CAAC,qBAAqB,CAAC,CAAC;AAEjD,MAAM,MAAM,wBAAwB,GAAG;IACrC,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC"}
|
@@ -5,5 +5,6 @@ export declare abstract class BaseGraphQL<T extends IGraphQLClient = IGraphQLCli
|
|
5
5
|
protected readonly _client: T;
|
6
6
|
constructor(client: T);
|
7
7
|
}
|
8
|
+
export type TGraphQLParamsType<T> = T extends (...arg: infer P) => any ? P[1] : T;
|
8
9
|
export * from './did';
|
9
10
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAErE,MAAM,WAAW,cAAe,SAAQ,YAAY,CAAC,qBAAqB,CAAC;CAAG;AAE9E,8BAAsB,WAAW,CAAC,CAAC,SAAS,cAAc,GAAG,cAAc;IACzE,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC;gBAEX,MAAM,EAAE,CAAC;CAG7B;AAED,cAAc,OAAO,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAErE,MAAM,WAAW,cAAe,SAAQ,YAAY,CAAC,qBAAqB,CAAC;CAAG;AAE9E,8BAAsB,WAAW,CAAC,CAAC,SAAS,cAAc,GAAG,cAAc;IACzE,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC;gBAEX,MAAM,EAAE,CAAC;CAG7B;AAED,MAAM,MAAM,kBAAkB,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,GAAG,EAAE,MAAM,CAAC,KAAK,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AAElF,cAAc,OAAO,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@portkey/graphql",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.20.0-alpha.1",
|
4
4
|
"description": "",
|
5
5
|
"main": "./dist/commonjs/index.js",
|
6
6
|
"module": "./dist/esm/index.js",
|
@@ -38,7 +38,7 @@
|
|
38
38
|
},
|
39
39
|
"dependencies": {
|
40
40
|
"@apollo/client": "^3.7.3",
|
41
|
-
"@portkey/types": "^2.
|
41
|
+
"@portkey/types": "^2.20.0-alpha.1",
|
42
42
|
"graphql": "^16.6.0",
|
43
43
|
"subscriptions-transport-ws": "^0.11.0"
|
44
44
|
},
|
@@ -52,5 +52,5 @@
|
|
52
52
|
"ts-node": "^10.9.1",
|
53
53
|
"typescript": "^4.9.4"
|
54
54
|
},
|
55
|
-
"gitHead": "
|
55
|
+
"gitHead": "987298c37e3281d3fa4a47477b930e3106b3249f"
|
56
56
|
}
|