-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: api changes to
core
and react
packages
- Loading branch information
Showing
115 changed files
with
1,907 additions
and
1,429 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
"@abstract-money/core": major | ||
"@abstract-money/react": major | ||
"wagemos-cosmoskit-nextjs": patch | ||
"wagemos-graz-nextjs": patch | ||
"@abstract-money/cli": patch | ||
--- | ||
|
||
Changed the API for `react` and `core` packages. Previously `core` package had unnecessary `args:{}` wrapping, now it doesn't. Also, `query` and `mutation` fields were added to the `react` package to have a clear separation of concerns, as well as fixed inconsistent API around `chainName` and types. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# Generated file. Do not edit directly. | ||
actions/** | ||
clients/** | ||
utils/** | ||
legacy/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 7 additions & 8 deletions
15
packages/core/src/actions/account/public/get-account-base-addresses-from-api.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
packages/core/src/actions/account/public/get-cosm-wasm-client.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 9 additions & 10 deletions
19
packages/core/src/actions/account/public/get-manager-query-client-from-api.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,23 @@ | ||
import { CosmWasmClient } from '@cosmjs/cosmwasm-stargate' | ||
import { VersionControlTypes } from '../../../codegen/abstract' | ||
import { WithArgs } from '../../../types/with-args' | ||
import { getManagerQueryClient } from '../../public/get-manager-query-client' | ||
import { getAccountBaseAddressesFromApi } from './get-account-base-addresses-from-api' | ||
|
||
export type GetManagerQueryClientFromApiParameters = WithArgs<{ | ||
export type GetManagerQueryClientFromApiParameters = { | ||
accountId: VersionControlTypes.AccountId | ||
cosmWasmClient: CosmWasmClient | ||
apiUrl: string | ||
}> | ||
} | ||
export async function getManagerQueryClientFromApi({ | ||
args: { accountId, cosmWasmClient, apiUrl }, | ||
accountId, | ||
cosmWasmClient, | ||
apiUrl, | ||
}: GetManagerQueryClientFromApiParameters) { | ||
const { managerAddress } = await getAccountBaseAddressesFromApi({ | ||
args: { | ||
accountId, | ||
cosmWasmClient, | ||
apiUrl, | ||
}, | ||
accountId, | ||
cosmWasmClient, | ||
apiUrl, | ||
}) | ||
|
||
return getManagerQueryClient({ args: { cosmWasmClient, managerAddress } }) | ||
return getManagerQueryClient({ cosmWasmClient, managerAddress }) | ||
} |
18 changes: 9 additions & 9 deletions
18
packages/core/src/actions/account/public/get-module-address.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.