Skip to content

Commit

Permalink
chore: update package versions and enhance GraphQL types for brand si…
Browse files Browse the repository at this point in the history
…te announcements and banners
  • Loading branch information
yrjkqq committed Jan 13, 2025
1 parent fb47aaa commit f4590a2
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/dodoex-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dodoex/api",
"version": "3.0.3-morph.4",
"version": "3.0.3-morph.5",
"description": "DODO API Kit",
"source": "src/index.ts",
"types": "dist/types/index.d.ts",
Expand Down
63 changes: 63 additions & 0 deletions packages/dodoex-api/src/gql/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1164,6 +1164,57 @@ export type Block_Height = {
number_gte?: InputMaybe<Scalars['Int']['input']>;
};

export type Brand_Site_AnnouncementBrandSiteAnnouncement = {
brand?: Maybe<Scalars['String']['output']>;
endAt?: Maybe<Scalars['String']['output']>;
id?: Maybe<Scalars['Int']['output']>;
lastPublishTime?: Maybe<Scalars['String']['output']>;
metadata?: Maybe<Brand_Site_AnnouncementMetadata>;
sort?: Maybe<Scalars['Int']['output']>;
startAt?: Maybe<Scalars['String']['output']>;
title?: Maybe<Scalars['String']['output']>;
type?: Maybe<Scalars['Int']['output']>;
url?: Maybe<Scalars['String']['output']>;
};

export type Brand_Site_AnnouncementBrandSiteAnnouncementList = {
lastPublishId?: Maybe<Scalars['Int']['output']>;
lastPublishTime?: Maybe<Scalars['String']['output']>;
list?: Maybe<Array<Maybe<Brand_Site_AnnouncementBrandSiteAnnouncement>>>;
};

export type Brand_Site_AnnouncementMetadata = {
background?: Maybe<Scalars['String']['output']>;
buttonType?: Maybe<Scalars['String']['output']>;
icon?: Maybe<Scalars['String']['output']>;
landingPageDisplay?: Maybe<Scalars['Boolean']['output']>;
theme?: Maybe<Scalars['String']['output']>;
};

export type Brand_Site_Announcementqueryilter = {
brand?: InputMaybe<Scalars['String']['input']>;
lang?: InputMaybe<Scalars['String']['input']>;
refreshNow?: InputMaybe<Scalars['Boolean']['input']>;
};

export type Brand_Site_BannerBrandSiteBanner = {
bannerImg?: Maybe<Scalars['String']['output']>;
brand?: Maybe<Scalars['String']['output']>;
chainId?: Maybe<Scalars['Int']['output']>;
describe?: Maybe<Scalars['String']['output']>;
id?: Maybe<Scalars['Int']['output']>;
position?: Maybe<Scalars['String']['output']>;
title?: Maybe<Scalars['String']['output']>;
url?: Maybe<Scalars['String']['output']>;
};

export type Brand_Site_Bannerqueryilter = {
brand?: InputMaybe<Scalars['String']['input']>;
chainId?: InputMaybe<Scalars['Int']['input']>;
position?: InputMaybe<Scalars['String']['input']>;
refreshNow?: InputMaybe<Scalars['Boolean']['input']>;
};

export type BrowserChainInput = {
chains: Array<InputMaybe<Scalars['Int']['input']>>;
};
Expand Down Expand Up @@ -12067,6 +12118,10 @@ export type Query = {
bidHistory?: Maybe<BidHistory>;
bidPosition?: Maybe<BidPosition>;
bidPositions: Array<BidPosition>;
brand_site_announcement_list?: Maybe<Brand_Site_AnnouncementBrandSiteAnnouncementList>;
brand_site_banner_list?: Maybe<
Array<Maybe<Brand_Site_BannerBrandSiteBanner>>
>;
/** 获取 RPC 节点,缓存1分钟,每分钟重新排序;排序规则:可访问 > 响应速度 > 区块高度 */
browser_getRpc: Scalars['JSON']['output'];
chart_getOhlcv2Chart: Array<Maybe<Array<Maybe<Scalars['String']['output']>>>>;
Expand Down Expand Up @@ -12734,6 +12789,14 @@ export type QueryBidPositionsArgs = {
where?: InputMaybe<BidPosition_Filter>;
};

export type QueryBrand_Site_Announcement_ListArgs = {
where?: InputMaybe<Brand_Site_Announcementqueryilter>;
};

export type QueryBrand_Site_Banner_ListArgs = {
where?: InputMaybe<Brand_Site_Bannerqueryilter>;
};

export type QueryBrowser_GetRpcArgs = {
where: BrowserChainInput;
};
Expand Down
4 changes: 2 additions & 2 deletions packages/dodoex-widgets/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dodoex/widgets",
"version": "3.0.2-beta.2",
"version": "3.0.2-beta.3",
"description": "DODO Widgets",
"source": "src/index.tsx",
"types": "dist/types/index.d.ts",
Expand Down Expand Up @@ -58,7 +58,7 @@
},
"dependencies": {
"@babel/runtime": "^7.17.0",
"@dodoex/api": "3.0.3-morph.4",
"@dodoex/api": "3.0.3-morph.5",
"@dodoex/components": "3.0.1",
"@dodoex/contract-request": "^1.3.0",
"@dodoex/dodo-contract-request": "^1.9.0-alpha.3",
Expand Down
2 changes: 2 additions & 0 deletions packages/dodoex-widgets/src/widgets/PoolWidget/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,11 @@ export function convertFetchLiquidityToOperateData(
creator: pair.creator,
baseLpToken: {
id: pair.baseLpToken?.id as string,
decimals: Number(pair.baseLpToken?.decimals ?? 18),
},
quoteLpToken: {
id: pair.quoteLpToken?.id as string,
decimals: Number(pair.quoteLpToken?.decimals ?? 18),
},
lpFeeRate: lqData?.pair?.lpFeeRate,
};
Expand Down

0 comments on commit f4590a2

Please sign in to comment.