Skip to content

Commit

Permalink
Merge pull request #3 from kailash-bitpack/SKIT-285
Browse files Browse the repository at this point in the history
added 1.27 version for storekit apis
  • Loading branch information
r4881t authored Aug 22, 2023
2 parents 22a9714 + fe88701 commit ab3e0c2
Show file tree
Hide file tree
Showing 157 changed files with 8,118 additions and 1,456 deletions.
74 changes: 66 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ import {
DappAvailableOnPlatformEnum,
StoreRegistryApi,
DappCategoryEnum,
DappWithDevCreds
DappWithDevCreds,
DeveloperProfilesApi,
} from '@merokudao/storekit-sdk';

const baseURL = process.env.STOREKIT_API_URL as string | 'https://api.meroku.store';
Expand All @@ -56,13 +57,7 @@ const dAppRegistryAPI = new DAppRegistryApi(
);

// Get the dApps list
const dApps: Dapp[] = await dAppRegistryAPI.getDAppV1();

// Search for dApps using a search string
const dApps: Dapp[] = await dAppRegistryAPI.getDAppV1("nft marketplace");

// Optionally provide filters for search
const dApps: Dapp[] = await dAppRegistryAPI.getDAppV1("nft marketplace", chainId: 137);
const dApps: Dapp[] = await dAppRegistryAPI.searchDapps();
```


Expand Down Expand Up @@ -193,3 +188,66 @@ Gets the title of the registry
```typescript
const title: string = await featuredApi.getStoreTitleV1()
```

# AppStores

```typescript
const storeApi = new StoreRegistryApi()
```

APis to interact with appStore's

## Get/Search appStore's

```typescript
const stores = await storeApi.searchStores()
```

## Search store by storeId/key

```typescript
const stores = await storeApi.searchStoresByStoreId('kailash')
```
## Get appStore's by owner address

```typescript
const stores = await storeApi.searchStoresByOwnerAddress('0xA0B867319e3fBb15181D118097b1069C6380222E')
```

## Search for Autocomplete appStore's search

```typescript
const stores = await storeApi.autocompleteStores('unstoppable')
```


# Developers

```typescript
const developerApi = new DeveloperProfilesApi()
```

APis to interact with developer's

## Get/Search developer's

```typescript
const developers = await developerApi.searchDeveloperProfile()
```

## Search store by storeId/key

```typescript
const developers = await developerApi.searchDeveloperByDevId('kai.dev')
```
## Get developer's by owner address

```typescript
const developers = await developerApi.searchDeveloperByOwnerAddress('0xA0B867319e3fBb15181D118097b1069C6380222E')
```

## Search for Autocomplete developer's search

```typescript
const developers = await developerApi.autocompleteDeveloper('kai')
```
3 changes: 2 additions & 1 deletion api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Meroku API Documentation
* Open API specs for Meroku APIs. These APIs are required to inteact with the registry in a safe, easy way. The recommended way to use in a project is to use the npm package published at [@merokudao/storekit-sdk](https://www.npmjs.com/package/@merokudao/storekit-sdk). This npmjs package is a wrapper around the api. You would still want to use the APIs if you're building on a different platform. # Authentication - To learn more on Authentication and the benefits of using higher rate limit, [read this Meroku.xyz blog post](https://meroku.xyz/2023/06/08/meroku-api-updates/). - To request an API key [fill this developer access form](https://form.jotform.com/231576486954067) - You can try this UI without getting any API Key as well # Learn More - [How to build a dApp Store using Meroku APIs](https://docs.meroku.org/dapp-store-kit-docs/for-dapp-store-builders#api--sdk-1) - [Meroku Blog](https://meroku.xyz) # Support - [Support Discourse Group](https://meroku.discourse.group) # Stay Connected - [Follow us on Github](https://github.com/merokudao) - [Follow us on Twitter](https://twitter.com/MerokuStore)
*
* OpenAPI spec version: 1.21
* OpenAPI spec version: 1.27
*
*
* NOTE: This class is auto generated by the swagger code generator program.
Expand All @@ -13,6 +13,7 @@
*/export * from './apis/analytics-api';
export * from './apis/dapp-registry-api';
export * from './apis/deprecated-apiapi';
export * from './apis/developer-profiles-api';
export * from './apis/domain-verification-api';
export * from './apis/featured-section-api';
export * from './apis/store-registry-api';
Expand Down
2 changes: 1 addition & 1 deletion apis/analytics-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Meroku API Documentation
* Open API specs for Meroku APIs. These APIs are required to inteact with the registry in a safe, easy way. The recommended way to use in a project is to use the npm package published at [@merokudao/storekit-sdk](https://www.npmjs.com/package/@merokudao/storekit-sdk). This npmjs package is a wrapper around the api. You would still want to use the APIs if you're building on a different platform. # Authentication - To learn more on Authentication and the benefits of using higher rate limit, [read this Meroku.xyz blog post](https://meroku.xyz/2023/06/08/meroku-api-updates/). - To request an API key [fill this developer access form](https://form.jotform.com/231576486954067) - You can try this UI without getting any API Key as well # Learn More - [How to build a dApp Store using Meroku APIs](https://docs.meroku.org/dapp-store-kit-docs/for-dapp-store-builders#api--sdk-1) - [Meroku Blog](https://meroku.xyz) # Support - [Support Discourse Group](https://meroku.discourse.group) # Stay Connected - [Follow us on Github](https://github.com/merokudao) - [Follow us on Twitter](https://twitter.com/MerokuStore)
*
* OpenAPI spec version: 1.21
* OpenAPI spec version: 1.27
*
*
* NOTE: This class is auto generated by the swagger code generator program.
Expand Down
Loading

0 comments on commit ab3e0c2

Please sign in to comment.