Skip to content

Commit

Permalink
[GMS-1133] Update naming for blockchain data API types (#1048)
Browse files Browse the repository at this point in the history
Co-authored-by: Allan Almeida <allan.almeida@immutable.com>
  • Loading branch information
allan-almeida and allan-almeida-imtbl authored Oct 24, 2023
1 parent f4a1155 commit f6ab1e6
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 26 deletions.
6 changes: 3 additions & 3 deletions packages/blockchain-data/sample-app/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Environment, ImmutableConfiguration } from '@imtbl/config';
import {
BlockchainData,
BlockchainDataModuleConfiguration,
ChainsApi,
ChainsTypes,
} from '@imtbl/blockchain-data';
import { PageLayout } from '@/components/PageLayout';
import { capitalizeFirstLetter } from '@/utils';
Expand Down Expand Up @@ -406,7 +406,7 @@ const endpointDomains = {
};

export default function Home() {
const [response, setResponse] = useState<ChainsApi.ListChainsResult | null>(
const [response, setResponse] = useState<ChainsTypes.ListChainsResult | null>(
null,
);

Expand All @@ -428,7 +428,7 @@ export default function Home() {
const client = new BlockchainData(config);

try {
const request: ChainsApi.ListChainsRequest = {};
const request: ChainsTypes.ListChainsRequest = {};
const response = await client.listChains(request);
setResponse(response);
} catch (error) {
Expand Down
28 changes: 14 additions & 14 deletions packages/blockchain-data/sdk/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {
mr,
ActivitiesApi,
ChainsApi,
CollectionsApi,
MetadataApi,
NFTOwnersApi,
NFTsApi,
TokensApi,
ActivitiesTypes,
ChainsTypes,
CollectionsTypes,
MetadataTypes,
NFTOwnersTypes,
NFTsTypes,
TokensTypes,
} from '@imtbl/generated-clients';
import { APIError } from './types/errors';
import { BlockchainData } from './blockchain-data';
Expand All @@ -15,13 +15,13 @@ import { BlockchainDataModuleConfiguration } from './config';
type ActivityType = mr.ActivityType;

export {
ActivitiesApi,
ChainsApi,
CollectionsApi,
MetadataApi,
NFTOwnersApi,
NFTsApi,
TokensApi,
ActivitiesTypes,
ChainsTypes,
CollectionsTypes,
MetadataTypes,
NFTOwnersTypes,
NFTsTypes,
TokensTypes,
APIError,
BlockchainData,
BlockchainDataModuleConfiguration,
Expand Down
18 changes: 9 additions & 9 deletions packages/internal/generated-clients/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
export * as imx from './imx';
export * as mr from './multi-rollup';

export * as ActivitiesApi from './multi-rollup/domain/activities-api-types';
export * as ChainsApi from './multi-rollup/domain/chains-api-types';
export * as CollectionsApi from './multi-rollup/domain/collections-api-types';
export * as MetadataApi from './multi-rollup/domain/metadata-api-types';
export * as NFTOwnersApi from './multi-rollup/domain/nft-owners-api-types';
export * as NFTsApi from './multi-rollup/domain/nfts-api-types';
export * as OrdersApi from './multi-rollup/domain/orders-api-types';
export * as PassportApi from './multi-rollup/domain/passport-api-types';
export * as TokensApi from './multi-rollup/domain/tokens-api-types';
export * as ActivitiesTypes from './multi-rollup/domain/activities-api-types';
export * as ChainsTypes from './multi-rollup/domain/chains-api-types';
export * as CollectionsTypes from './multi-rollup/domain/collections-api-types';
export * as MetadataTypes from './multi-rollup/domain/metadata-api-types';
export * as NFTOwnersTypes from './multi-rollup/domain/nft-owners-api-types';
export * as NFTsTypes from './multi-rollup/domain/nfts-api-types';
export * as OrdersTypes from './multi-rollup/domain/orders-api-types';
export * as PassportTypes from './multi-rollup/domain/passport-api-types';
export * as TokensTypes from './multi-rollup/domain/tokens-api-types';

export { ImxApiClients } from './imx-api-clients';
export { MultiRollupApiClients } from './mr-api-clients';
Expand Down

0 comments on commit f6ab1e6

Please sign in to comment.