@dodoex/api 3.0.1 → 3.0.3-morph.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/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/types/chainConfig/chain.d.ts +2 -1
- package/dist/types/gql/gql.d.ts +4 -0
- package/dist/types/gql/graphql.d.ts +33 -8
- package/dist/types/services/system/SystemApi.d.ts +3 -0
- package/dist/types/services/system/graphqlQuery.d.ts +3 -0
- package/package.json +2 -2
package/dist/types/gql/gql.d.ts
CHANGED
|
@@ -74,3 +74,7 @@ export declare function graphql(source: '\n query FetchNoticeCenterTransactio
|
|
|
74
74
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
75
75
|
*/
|
|
76
76
|
export declare function graphql(source: '\n query FetchLiquidityLpPartnerRewards(\n $where: LiquidityLpPartnerRewardsInput\n ) {\n liquidity_getLpPartnerRewards(where: $where) {\n partnerInfos {\n partner\n logo\n introduction\n link\n theme\n sort\n platform\n extra\n }\n partnerRewards {\n chainId\n pool\n partner\n reward\n type\n }\n }\n }\n '): typeof import('./graphql').FetchLiquidityLpPartnerRewardsDocument;
|
|
77
|
+
/**
|
|
78
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
79
|
+
*/
|
|
80
|
+
export declare function graphql(source: '\n query FetchUserprofileReward($where: UserprofileReward_filter) {\n userprofile_reward(where: $where) {\n name_key\n token_address\n contract_address\n token_symbol\n locking\n version\n merkle {\n index\n amout\n proof\n }\n }\n }\n '): typeof import('./graphql').FetchUserprofileRewardDocument;
|
|
@@ -6154,6 +6154,9 @@ export type LiquidityHistory_Filter = {
|
|
|
6154
6154
|
};
|
|
6155
6155
|
export type LiquidityHistory_OrderBy = 'amount' | 'balance' | 'baseAmountChange' | 'baseReserve' | 'baseTokenPrice' | 'block' | 'chain' | 'from' | 'hash' | 'id' | 'lpToken' | 'lpTokenTotalSupply' | 'pair' | 'quoteAmountChange' | 'quoteReserve' | 'quoteTokenPrice' | 'timestamp' | 'type' | 'updatedAt' | 'user';
|
|
6156
6156
|
export type LiquidityLp = {
|
|
6157
|
+
baseTokenAmount?: Maybe<Scalars['String']['output']>;
|
|
6158
|
+
baseTokenAmountInMining?: Maybe<Scalars['String']['output']>;
|
|
6159
|
+
baseTokenPrice?: Maybe<Scalars['String']['output']>;
|
|
6157
6160
|
id?: Maybe<Scalars['String']['output']>;
|
|
6158
6161
|
liquidityTokenBalance?: Maybe<Scalars['String']['output']>;
|
|
6159
6162
|
liquidityTokenInMining?: Maybe<Scalars['String']['output']>;
|
|
@@ -6163,6 +6166,9 @@ export type LiquidityLp = {
|
|
|
6163
6166
|
/** Share in the pool */
|
|
6164
6167
|
poolShare?: Maybe<Scalars['String']['output']>;
|
|
6165
6168
|
priceRange?: Maybe<LiquidityLpPriceRange>;
|
|
6169
|
+
quoteTokenAmount?: Maybe<Scalars['String']['output']>;
|
|
6170
|
+
quoteTokenAmountInMining?: Maybe<Scalars['String']['output']>;
|
|
6171
|
+
quoteTokenPrice?: Maybe<Scalars['String']['output']>;
|
|
6166
6172
|
tickLower?: Maybe<LiquidityTick>;
|
|
6167
6173
|
tickUpper?: Maybe<LiquidityTick>;
|
|
6168
6174
|
/** AMM V3 info */
|
|
@@ -6198,13 +6204,13 @@ export type LiquidityLpPartnerRewardsResult = {
|
|
|
6198
6204
|
};
|
|
6199
6205
|
export type LiquidityLpPriceRange = {
|
|
6200
6206
|
/** token0 lower price */
|
|
6201
|
-
token0LowerPrice: Scalars['
|
|
6207
|
+
token0LowerPrice: Scalars['String']['output'];
|
|
6202
6208
|
/** token0 upper price */
|
|
6203
|
-
token0UpperPrice: Scalars['
|
|
6209
|
+
token0UpperPrice: Scalars['String']['output'];
|
|
6204
6210
|
/** token1 lower price */
|
|
6205
|
-
token1LowerPrice: Scalars['
|
|
6211
|
+
token1LowerPrice: Scalars['String']['output'];
|
|
6206
6212
|
/** token1 upper price */
|
|
6207
|
-
token1UpperPrice: Scalars['
|
|
6213
|
+
token1UpperPrice: Scalars['String']['output'];
|
|
6208
6214
|
};
|
|
6209
6215
|
export type LiquidityLpToken = {
|
|
6210
6216
|
/** token decimals */
|
|
@@ -18635,10 +18641,10 @@ export type FetchMyLiquidityListQuery = {
|
|
|
18635
18641
|
tokenId?: string | null;
|
|
18636
18642
|
outOfRange?: boolean | null;
|
|
18637
18643
|
priceRange?: {
|
|
18638
|
-
token0LowerPrice:
|
|
18639
|
-
token0UpperPrice:
|
|
18640
|
-
token1LowerPrice:
|
|
18641
|
-
token1UpperPrice:
|
|
18644
|
+
token0LowerPrice: string;
|
|
18645
|
+
token0UpperPrice: string;
|
|
18646
|
+
token1LowerPrice: string;
|
|
18647
|
+
token1UpperPrice: string;
|
|
18642
18648
|
} | null;
|
|
18643
18649
|
tickLower?: {
|
|
18644
18650
|
id: string;
|
|
@@ -19051,6 +19057,24 @@ export type FetchLiquidityLpPartnerRewardsQuery = {
|
|
|
19051
19057
|
} | null> | null;
|
|
19052
19058
|
} | null;
|
|
19053
19059
|
};
|
|
19060
|
+
export type FetchUserprofileRewardQueryVariables = Exact<{
|
|
19061
|
+
where?: InputMaybe<UserprofileReward_Filter>;
|
|
19062
|
+
}>;
|
|
19063
|
+
export type FetchUserprofileRewardQuery = {
|
|
19064
|
+
userprofile_reward?: Array<{
|
|
19065
|
+
name_key?: string | null;
|
|
19066
|
+
token_address?: string | null;
|
|
19067
|
+
contract_address?: string | null;
|
|
19068
|
+
token_symbol?: string | null;
|
|
19069
|
+
locking?: string | null;
|
|
19070
|
+
version?: string | null;
|
|
19071
|
+
merkle?: {
|
|
19072
|
+
index?: string | null;
|
|
19073
|
+
amout?: string | null;
|
|
19074
|
+
proof?: Array<string | null> | null;
|
|
19075
|
+
} | null;
|
|
19076
|
+
}> | null;
|
|
19077
|
+
};
|
|
19054
19078
|
export declare class TypedDocumentString<TResult, TVariables> extends String implements DocumentTypeDecoration<TResult, TVariables> {
|
|
19055
19079
|
private value;
|
|
19056
19080
|
__meta__?: Record<string, any> | undefined;
|
|
@@ -19077,3 +19101,4 @@ export declare const FetchPoolPairListDocument: TypedDocumentString<FetchPoolPai
|
|
|
19077
19101
|
export declare const FetchUserSwapOrderHistoriesDocument: TypedDocumentString<FetchUserSwapOrderHistoriesQuery, FetchUserSwapOrderHistoriesQueryVariables>;
|
|
19078
19102
|
export declare const FetchNoticeCenterTransactionListDocument: TypedDocumentString<FetchNoticeCenterTransactionListQuery, FetchNoticeCenterTransactionListQueryVariables>;
|
|
19079
19103
|
export declare const FetchLiquidityLpPartnerRewardsDocument: TypedDocumentString<FetchLiquidityLpPartnerRewardsQuery, FetchLiquidityLpPartnerRewardsQueryVariables>;
|
|
19104
|
+
export declare const FetchUserprofileRewardDocument: TypedDocumentString<FetchUserprofileRewardQuery, FetchUserprofileRewardQueryVariables>;
|
|
@@ -7,5 +7,8 @@ export declare class SystemApi {
|
|
|
7
7
|
fetchLiquidityLpPartnerRewards: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchLiquidityLpPartnerRewardsQuery, import("../../gql/graphql").Exact<{
|
|
8
8
|
where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").LiquidityLpPartnerRewardsInput>;
|
|
9
9
|
}>>;
|
|
10
|
+
fetchUserprofileReward: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchUserprofileRewardQuery, import("../../gql/graphql").Exact<{
|
|
11
|
+
where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").UserprofileReward_Filter>;
|
|
12
|
+
}>>;
|
|
10
13
|
};
|
|
11
14
|
}
|
|
@@ -5,4 +5,7 @@ export declare const systemGraphqlQuery: {
|
|
|
5
5
|
fetchLiquidityLpPartnerRewards: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchLiquidityLpPartnerRewardsQuery, import("../../gql/graphql").Exact<{
|
|
6
6
|
where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").LiquidityLpPartnerRewardsInput>;
|
|
7
7
|
}>>;
|
|
8
|
+
fetchUserprofileReward: import("../../gql/graphql").TypedDocumentString<import("../../gql/graphql").FetchUserprofileRewardQuery, import("../../gql/graphql").Exact<{
|
|
9
|
+
where?: import("../../gql/graphql").InputMaybe<import("../../gql/graphql").UserprofileReward_Filter>;
|
|
10
|
+
}>>;
|
|
8
11
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dodoex/api",
|
|
3
|
-
"version": "3.0.1",
|
|
3
|
+
"version": "3.0.3-morph.1",
|
|
4
4
|
"description": "DODO API Kit",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"schema:compile": "export $(cat .env | xargs) && env graphql-codegen",
|
|
19
19
|
"schema:watch": "export $(cat .env | xargs) && env graphql-codegen -w",
|
|
20
20
|
"prerelease": "yarn run build",
|
|
21
|
-
"publish-sample": "npm publish --access public",
|
|
22
21
|
"release": "semantic-release",
|
|
23
22
|
"release:local": "np --any-branch --no-cleanup --no-tests",
|
|
23
|
+
"release.npm-publish": "npm publish --access public",
|
|
24
24
|
"release.npm-publish-beta": "npm publish --tag beta"
|
|
25
25
|
},
|
|
26
26
|
"author": "",
|