Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Abstract App Module Plugin #112

Draft
wants to merge 25 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
28335f3
Initial abstract-app class
adairrr Apr 14, 2023
1b9cf55
Abstract App query interface
adairrr Apr 15, 2023
e380fee
Add query factory to abstract app
adairrr Apr 16, 2023
8f87074
Abstract app types
adairrr Apr 16, 2023
e7eaf04
Abstract app query clients
adairrr May 21, 2023
c926307
AppExecuteInterface
adairrr May 21, 2023
fe66c65
Missing extends in IAppClient
adairrr May 21, 2023
cbb72b9
Abstract app execute client
adairrr May 21, 2023
17557cb
App execute client
adairrr May 21, 2023
6ebed01
Lint the message composer
adairrr May 21, 2023
97d5ab0
Update message builder with abstract
adairrr May 21, 2023
67195cb
Merge 'main'
adairrr May 21, 2023
3777a4b
Clean up abstract app client
adairrr May 21, 2023
3172021
Merge branch 'underscoreFunds' into feature/abstractApp
adairrr May 21, 2023
a3a62aa
Merge branch 'underscoreFunds' into feature/abstractApp
adairrr May 21, 2023
c04b24c
Update react query generation with abstract app
adairrr May 21, 2023
22a40f1
Rely on msg builder for abstract-app
adairrr May 21, 2023
9880c32
Abstract app readme
adairrr May 21, 2023
814b353
Extract from execute msg in appclient
adairrr May 21, 2023
9d3e56b
Update ts-codegen tests
adairrr May 21, 2023
2898bf5
Union _moduleAddress with undefined
adairrr May 21, 2023
2d1640b
Add clientPrefix option to abstractApp
adairrr May 30, 2023
3dd3d78
Merge branch 'main' into feature/abstractApp
NoahSaso Jul 10, 2023
338bbed
Changed wasm-ast-types package name back to npm.
NoahSaso Jul 10, 2023
ea8122e
number to AbstractAccountId and update tests
adairrr Oct 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 22 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,12 +271,32 @@ cosmwasm-ts-codegen generate \
--out ./ts \
--name MyContractName
```
#### Message Composer Options
#### Message Builder Options

| option | description |
-------------| ------------------------------ | ------------------------------------------------------------------- |
| `msgBuilder.enabled` | enable the msgBilder plugin |
| `msgBuilder.enabled` | enable the msgBuilder plugin |

### Abstract App

Generate a client for an app-module using the created using the [Abstract SDK](https://docs.abstract.money). This plugin will generate a `AppQueryClient` for queries as well as a `AppClient` for queries and mutations.
This client will be injected as the client for the `react-query` and `message-composer` plugins, if enabled. It is NOT currently compatible with the `recoil` plugin.

#### Abstract App via CLI

```sh
cosmwasm-ts-codegen generate \
--plugin abstract-app \
--schema ./schema \
--out ./ts \
--name MyAppModuleName
```
#### Abstract App Options

| option | description |
-------------|-------------------------------| ------------------------------------------------------------------- |
| `abstractApp.enabled` | enable the abstractApp plugin |
| `abstractApp.clientPrefix` | prefix the client name, defaults to `App` |

### Bundles

Expand Down
Loading