@portkey/graphql 2.15.11-alpha.0 → 2.15.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.
- package/dist/commonjs/index.d.ts +0 -1
- package/dist/commonjs/index.js +0 -1
- package/dist/esm/index.d.ts +0 -1
- package/dist/esm/index.js +0 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/commonjs/dappSecurity/client/index.d.ts +0 -3
- package/dist/commonjs/dappSecurity/client/index.js +0 -14
- package/dist/commonjs/dappSecurity/client/provider.d.ts +0 -3
- package/dist/commonjs/dappSecurity/client/provider.js +0 -15
- package/dist/commonjs/dappSecurity/hooks/index.d.ts +0 -4
- package/dist/commonjs/dappSecurity/hooks/index.js +0 -22
- package/dist/commonjs/dappSecurity/index.d.ts +0 -1
- package/dist/commonjs/dappSecurity/index.js +0 -17
- package/dist/commonjs/dappSecurity/queries/index.d.ts +0 -1
- package/dist/commonjs/dappSecurity/queries/index.js +0 -18
- package/dist/commonjs/dappSecurity/request/index.d.ts +0 -2
- package/dist/commonjs/dappSecurity/request/index.js +0 -11
- package/dist/commonjs/dappSecurity/types/common.d.ts +0 -5
- package/dist/commonjs/dappSecurity/types/common.js +0 -2
- package/dist/commonjs/dappSecurity/types/index.d.ts +0 -25
- package/dist/commonjs/dappSecurity/types/index.js +0 -17
- package/dist/esm/dappSecurity/client/index.d.ts +0 -3
- package/dist/esm/dappSecurity/client/index.js +0 -10
- package/dist/esm/dappSecurity/client/provider.d.ts +0 -3
- package/dist/esm/dappSecurity/client/provider.js +0 -11
- package/dist/esm/dappSecurity/hooks/index.d.ts +0 -4
- package/dist/esm/dappSecurity/hooks/index.js +0 -17
- package/dist/esm/dappSecurity/index.d.ts +0 -1
- package/dist/esm/dappSecurity/index.js +0 -1
- package/dist/esm/dappSecurity/queries/index.d.ts +0 -1
- package/dist/esm/dappSecurity/queries/index.js +0 -15
- package/dist/esm/dappSecurity/request/index.d.ts +0 -2
- package/dist/esm/dappSecurity/request/index.js +0 -7
- package/dist/esm/dappSecurity/types/common.d.ts +0 -5
- package/dist/esm/dappSecurity/types/common.js +0 -1
- package/dist/esm/dappSecurity/types/index.d.ts +0 -25
- package/dist/esm/dappSecurity/types/index.js +0 -1
- package/dist/types/dappSecurity/client/index.d.ts +0 -4
- package/dist/types/dappSecurity/client/index.d.ts.map +0 -1
- package/dist/types/dappSecurity/client/provider.d.ts +0 -4
- package/dist/types/dappSecurity/client/provider.d.ts.map +0 -1
- package/dist/types/dappSecurity/hooks/index.d.ts +0 -5
- package/dist/types/dappSecurity/hooks/index.d.ts.map +0 -1
- package/dist/types/dappSecurity/index.d.ts +0 -2
- package/dist/types/dappSecurity/index.d.ts.map +0 -1
- package/dist/types/dappSecurity/queries/index.d.ts +0 -2
- package/dist/types/dappSecurity/queries/index.d.ts.map +0 -1
- package/dist/types/dappSecurity/request/index.d.ts +0 -3
- package/dist/types/dappSecurity/request/index.d.ts.map +0 -1
- package/dist/types/dappSecurity/types/common.d.ts +0 -6
- package/dist/types/dappSecurity/types/common.d.ts.map +0 -1
- package/dist/types/dappSecurity/types/index.d.ts +0 -26
- package/dist/types/dappSecurity/types/index.d.ts.map +0 -1
package/dist/commonjs/index.d.ts
CHANGED
package/dist/commonjs/index.js
CHANGED
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
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
|
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"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@portkey/graphql",
|
3
|
-
"version": "2.15.11
|
3
|
+
"version": "2.15.11",
|
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.15.11
|
41
|
+
"@portkey/types": "^2.15.11",
|
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": "c036f678e678fd9c451a7e704d671defaa9d0fbf"
|
56
56
|
}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getGraphQLClient = exports.graphQLClientMap = void 0;
|
4
|
-
const provider_1 = require("./provider");
|
5
|
-
exports.graphQLClientMap = {};
|
6
|
-
const getGraphQLClient = (graphqlUrl) => {
|
7
|
-
if (exports.graphQLClientMap[graphqlUrl]) {
|
8
|
-
return exports.graphQLClientMap[graphqlUrl];
|
9
|
-
}
|
10
|
-
const client = (0, provider_1.graphQLClientProvider)(graphqlUrl);
|
11
|
-
exports.graphQLClientMap[graphqlUrl] = client;
|
12
|
-
return client;
|
13
|
-
};
|
14
|
-
exports.getGraphQLClient = getGraphQLClient;
|
@@ -1,15 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.graphQLClientProvider = void 0;
|
4
|
-
const client_1 = require("@apollo/client");
|
5
|
-
const graphQLClientProvider = (graphqlUrl, defaultOptions = {}) => new client_1.ApolloClient({
|
6
|
-
cache: new client_1.InMemoryCache(),
|
7
|
-
queryDeduplication: false,
|
8
|
-
defaultOptions: Object.assign({ watchQuery: {
|
9
|
-
fetchPolicy: 'cache-and-network',
|
10
|
-
}, query: {
|
11
|
-
fetchPolicy: 'network-only',
|
12
|
-
} }, defaultOptions),
|
13
|
-
link: new client_1.HttpLink({ uri: graphqlUrl }),
|
14
|
-
});
|
15
|
-
exports.graphQLClientProvider = graphQLClientProvider;
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import { TGraphQLParamsType } from '../types';
|
2
|
-
import { getContractUpgradeTime } from '../request';
|
3
|
-
export declare const useGraphQLClient: (isMainnet: boolean) => import("../types").TGraphQLClient;
|
4
|
-
export declare const useGetContractUpgradeTime: (isMainnet: boolean) => (params: TGraphQLParamsType<typeof getContractUpgradeTime>) => import("../types").TCommonGraphQLResult<import("../types").TGetContractUpgradeTimeResult>;
|
@@ -1,22 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.useGetContractUpgradeTime = exports.useGraphQLClient = void 0;
|
4
|
-
const client_1 = require("../client");
|
5
|
-
const react_1 = require("react");
|
6
|
-
const request_1 = require("../request");
|
7
|
-
const AWAKEN_GRAPHQL_URL_MAP = {
|
8
|
-
test: 'https://test-indexer-api.aefinder.io/api/app/graphql/genesisapp',
|
9
|
-
mainnet: 'https://indexer-api.aefinder.io/api/app/graphql/genesisapp',
|
10
|
-
};
|
11
|
-
const useGraphQLClient = (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.useGraphQLClient = useGraphQLClient;
|
18
|
-
const useGetContractUpgradeTime = (isMainnet) => {
|
19
|
-
const client = (0, exports.useGraphQLClient)(isMainnet);
|
20
|
-
return (0, react_1.useCallback)((params) => (0, request_1.getContractUpgradeTime)(client, params), [client]);
|
21
|
-
};
|
22
|
-
exports.useGetContractUpgradeTime = useGetContractUpgradeTime;
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './hooks';
|
@@ -1,17 +0,0 @@
|
|
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);
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const CONTRACT_UPGRADE_TIME_QUERY: import("@apollo/client").DocumentNode;
|
@@ -1,18 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.CONTRACT_UPGRADE_TIME_QUERY = void 0;
|
4
|
-
const client_1 = require("@apollo/client");
|
5
|
-
exports.CONTRACT_UPGRADE_TIME_QUERY = (0, client_1.gql) `
|
6
|
-
query contractList($input: GetContractInfoDto) {
|
7
|
-
contractList(input: $input) {
|
8
|
-
totalCount
|
9
|
-
items {
|
10
|
-
metadata {
|
11
|
-
block {
|
12
|
-
blockTime
|
13
|
-
}
|
14
|
-
}
|
15
|
-
}
|
16
|
-
}
|
17
|
-
}
|
18
|
-
`;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getContractUpgradeTime = void 0;
|
4
|
-
const queries_1 = require("../queries");
|
5
|
-
const getContractUpgradeTime = (client, params) => {
|
6
|
-
return client.query({
|
7
|
-
query: queries_1.CONTRACT_UPGRADE_TIME_QUERY,
|
8
|
-
variables: params,
|
9
|
-
});
|
10
|
-
};
|
11
|
-
exports.getContractUpgradeTime = getContractUpgradeTime;
|
@@ -1,5 +0,0 @@
|
|
1
|
-
import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
|
2
|
-
import { TCommonGraphQLResult } from '.';
|
3
|
-
export type TGraphQLClient = ApolloClient<NormalizedCacheObject>;
|
4
|
-
export type TGraphQLParamsType<T> = T extends (...arg: infer P) => any ? P[1] : T;
|
5
|
-
export type TGraphQLFunc<T, R> = (client: TGraphQLClient, params: T) => TCommonGraphQLResult<R>;
|
@@ -1,25 +0,0 @@
|
|
1
|
-
import { ApolloQueryResult } from '@apollo/client';
|
2
|
-
export * from './common';
|
3
|
-
export type TCommonGraphQLResult<T> = Promise<ApolloQueryResult<T>>;
|
4
|
-
export type TGetContractUpgradeTimeParams = {
|
5
|
-
input: {
|
6
|
-
chainId: string;
|
7
|
-
address: string;
|
8
|
-
skipCount: number;
|
9
|
-
maxResultCount: number;
|
10
|
-
};
|
11
|
-
};
|
12
|
-
export type TGetContractUpgradeTimeResult = {
|
13
|
-
contractList: {
|
14
|
-
items: IContractInfoDto[];
|
15
|
-
};
|
16
|
-
};
|
17
|
-
export type IContractInfoDto = {
|
18
|
-
metadata: IMetadataDto;
|
19
|
-
};
|
20
|
-
export type IMetadataDto = {
|
21
|
-
block: IBlockMetadataDto;
|
22
|
-
};
|
23
|
-
export type IBlockMetadataDto = {
|
24
|
-
blockTime: string;
|
25
|
-
};
|
@@ -1,17 +0,0 @@
|
|
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("./common"), exports);
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { graphQLClientProvider } from './provider.js';
|
2
|
-
export const graphQLClientMap = {};
|
3
|
-
export const getGraphQLClient = (graphqlUrl) => {
|
4
|
-
if (graphQLClientMap[graphqlUrl]) {
|
5
|
-
return graphQLClientMap[graphqlUrl];
|
6
|
-
}
|
7
|
-
const client = graphQLClientProvider(graphqlUrl);
|
8
|
-
graphQLClientMap[graphqlUrl] = client;
|
9
|
-
return client;
|
10
|
-
};
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { ApolloClient, InMemoryCache, HttpLink } from '@apollo/client';
|
2
|
-
export const graphQLClientProvider = (graphqlUrl, defaultOptions = {}) => new ApolloClient({
|
3
|
-
cache: new InMemoryCache(),
|
4
|
-
queryDeduplication: false,
|
5
|
-
defaultOptions: Object.assign({ watchQuery: {
|
6
|
-
fetchPolicy: 'cache-and-network',
|
7
|
-
}, query: {
|
8
|
-
fetchPolicy: 'network-only',
|
9
|
-
} }, defaultOptions),
|
10
|
-
link: new HttpLink({ uri: graphqlUrl }),
|
11
|
-
});
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import { TGraphQLParamsType } from '../types/index.js';
|
2
|
-
import { getContractUpgradeTime } from '../request/index.js';
|
3
|
-
export declare const useGraphQLClient: (isMainnet: boolean) => import("../types").TGraphQLClient;
|
4
|
-
export declare const useGetContractUpgradeTime: (isMainnet: boolean) => (params: TGraphQLParamsType<typeof getContractUpgradeTime>) => import("../types").TCommonGraphQLResult<import("../types").TGetContractUpgradeTimeResult>;
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import { getGraphQLClient } from '../client/index.js';
|
2
|
-
import { useCallback, useMemo } from 'react';
|
3
|
-
import { getContractUpgradeTime } from '../request/index.js';
|
4
|
-
const AWAKEN_GRAPHQL_URL_MAP = {
|
5
|
-
test: 'https://test-indexer-api.aefinder.io/api/app/graphql/genesisapp',
|
6
|
-
mainnet: 'https://indexer-api.aefinder.io/api/app/graphql/genesisapp',
|
7
|
-
};
|
8
|
-
export const useGraphQLClient = (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 useGetContractUpgradeTime = (isMainnet) => {
|
15
|
-
const client = useGraphQLClient(isMainnet);
|
16
|
-
return useCallback((params) => getContractUpgradeTime(client, params), [client]);
|
17
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './hooks/index.js';
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './hooks/index.js';
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const CONTRACT_UPGRADE_TIME_QUERY: import("@apollo/client").DocumentNode;
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import { gql } from '@apollo/client';
|
2
|
-
export const CONTRACT_UPGRADE_TIME_QUERY = gql `
|
3
|
-
query contractList($input: GetContractInfoDto) {
|
4
|
-
contractList(input: $input) {
|
5
|
-
totalCount
|
6
|
-
items {
|
7
|
-
metadata {
|
8
|
-
block {
|
9
|
-
blockTime
|
10
|
-
}
|
11
|
-
}
|
12
|
-
}
|
13
|
-
}
|
14
|
-
}
|
15
|
-
`;
|
@@ -1,5 +0,0 @@
|
|
1
|
-
import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
|
2
|
-
import { TCommonGraphQLResult } from '.';
|
3
|
-
export type TGraphQLClient = ApolloClient<NormalizedCacheObject>;
|
4
|
-
export type TGraphQLParamsType<T> = T extends (...arg: infer P) => any ? P[1] : T;
|
5
|
-
export type TGraphQLFunc<T, R> = (client: TGraphQLClient, params: T) => TCommonGraphQLResult<R>;
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,25 +0,0 @@
|
|
1
|
-
import { ApolloQueryResult } from '@apollo/client';
|
2
|
-
export * from './common.js';
|
3
|
-
export type TCommonGraphQLResult<T> = Promise<ApolloQueryResult<T>>;
|
4
|
-
export type TGetContractUpgradeTimeParams = {
|
5
|
-
input: {
|
6
|
-
chainId: string;
|
7
|
-
address: string;
|
8
|
-
skipCount: number;
|
9
|
-
maxResultCount: number;
|
10
|
-
};
|
11
|
-
};
|
12
|
-
export type TGetContractUpgradeTimeResult = {
|
13
|
-
contractList: {
|
14
|
-
items: IContractInfoDto[];
|
15
|
-
};
|
16
|
-
};
|
17
|
-
export type IContractInfoDto = {
|
18
|
-
metadata: IMetadataDto;
|
19
|
-
};
|
20
|
-
export type IMetadataDto = {
|
21
|
-
block: IBlockMetadataDto;
|
22
|
-
};
|
23
|
-
export type IBlockMetadataDto = {
|
24
|
-
blockTime: string;
|
25
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './common.js';
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/dappSecurity/client/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG1C,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAM,CAAC;AAEnE,eAAO,MAAM,gBAAgB,eAAgB,MAAM,mBAOlD,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../../src/dappSecurity/client/provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyC,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACvF,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,eAAO,MAAM,qBAAqB,eAAgB,MAAM,mBAAkB,cAAc,mBAcpF,CAAC"}
|
@@ -1,5 +0,0 @@
|
|
1
|
-
import { TGraphQLParamsType } from '../types';
|
2
|
-
import { getContractUpgradeTime } from '../request';
|
3
|
-
export declare const useGraphQLClient: (isMainnet: boolean) => import("../types").TGraphQLClient;
|
4
|
-
export declare const useGetContractUpgradeTime: (isMainnet: boolean) => (params: TGraphQLParamsType<typeof getContractUpgradeTime>) => import("../types").TCommonGraphQLResult<import("../types").TGetContractUpgradeTimeResult>;
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/dappSecurity/hooks/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAOpD,eAAO,MAAM,gBAAgB,cAAe,OAAO,sCAKlD,CAAC;AAEF,eAAO,MAAM,yBAAyB,cAAe,OAAO,cAG/C,mBAAmB,6BAA6B,CAAC,8FAG7D,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dappSecurity/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/dappSecurity/queries/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,2BAA2B,uCAavC,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/dappSecurity/request/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,6BAA6B,EAAE,6BAA6B,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAEtG,eAAO,MAAM,sBAAsB,EAAE,YAAY,CAAC,6BAA6B,EAAE,6BAA6B,CAQ7G,CAAC"}
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import { ApolloClient, NormalizedCacheObject } from '@apollo/client';
|
2
|
-
import { TCommonGraphQLResult } from '.';
|
3
|
-
export type TGraphQLClient = ApolloClient<NormalizedCacheObject>;
|
4
|
-
export type TGraphQLParamsType<T> = T extends (...arg: infer P) => any ? P[1] : T;
|
5
|
-
export type TGraphQLFunc<T, R> = (client: TGraphQLClient, params: T) => TCommonGraphQLResult<R>;
|
6
|
-
//# sourceMappingURL=common.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/dappSecurity/types/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAEzC,MAAM,MAAM,cAAc,GAAG,YAAY,CAAC,qBAAqB,CAAC,CAAC;AAEjE,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,MAAM,MAAM,YAAY,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,CAAC,KAAK,oBAAoB,CAAC,CAAC,CAAC,CAAC"}
|
@@ -1,26 +0,0 @@
|
|
1
|
-
import { ApolloQueryResult } from '@apollo/client';
|
2
|
-
export * from './common';
|
3
|
-
export type TCommonGraphQLResult<T> = Promise<ApolloQueryResult<T>>;
|
4
|
-
export type TGetContractUpgradeTimeParams = {
|
5
|
-
input: {
|
6
|
-
chainId: string;
|
7
|
-
address: string;
|
8
|
-
skipCount: number;
|
9
|
-
maxResultCount: number;
|
10
|
-
};
|
11
|
-
};
|
12
|
-
export type TGetContractUpgradeTimeResult = {
|
13
|
-
contractList: {
|
14
|
-
items: IContractInfoDto[];
|
15
|
-
};
|
16
|
-
};
|
17
|
-
export type IContractInfoDto = {
|
18
|
-
metadata: IMetadataDto;
|
19
|
-
};
|
20
|
-
export type IMetadataDto = {
|
21
|
-
block: IBlockMetadataDto;
|
22
|
-
};
|
23
|
-
export type IBlockMetadataDto = {
|
24
|
-
blockTime: string;
|
25
|
-
};
|
26
|
-
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/dappSecurity/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD,cAAc,UAAU,CAAC;AAEzB,MAAM,MAAM,oBAAoB,CAAC,CAAC,IAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC;AAEpE,MAAM,MAAM,6BAA6B,GAAG;IAC1C,KAAK,EAAE;QACL,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,MAAM,CAAC;QAClB,cAAc,EAAE,MAAM,CAAC;KACxB,CAAC;CACH,CAAC;AACF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,YAAY,EAAE;QACZ,KAAK,EAAE,gBAAgB,EAAE,CAAC;KAC3B,CAAC;CACH,CAAC;AACF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,YAAY,CAAC;CACxB,CAAC;AACF,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,iBAAiB,CAAC;CAC1B,CAAC;AACF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}
|