-
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.
Merge branch 'mainline' into believathon
- Loading branch information
Showing
24 changed files
with
167 additions
and
29 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,5 @@ | ||
--- | ||
"@abstract-money/core": patch | ||
--- | ||
|
||
Ensure that hostChainNameToName doesn't throw |
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
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,6 +1,6 @@ | ||
{ | ||
"name": "@abstract-money/actions-xion", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Abstraxion utils", | ||
"author": "adairrr <[email protected]>", | ||
"license": "MIT", | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@abstract-money/core", | ||
"version": "3.4.1", | ||
"version": "3.4.2", | ||
"description": "Typings for Abstract smart contracts", | ||
"homepage": "https://github.com/AbstractSDK/abstract.js#readme", | ||
"author": "adairrr <[email protected]>", | ||
|
30 changes: 30 additions & 0 deletions
30
packages/core/src/actions/account/public/get-adapter-authorized-addresses.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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { CosmWasmClient } from '@cosmjs/cosmwasm-stargate' | ||
|
||
import { AdapterQueryMsgBuilder } from '@abstract-money/core' | ||
import { RegistryTypes } from '../../../codegen/abstract' | ||
import { getAccountAddressFromApi } from './get-account-address-from-api' | ||
|
||
export type GetAdapterAuthorizedAddresses = { | ||
cosmWasmClient: CosmWasmClient | ||
apiUrl: string | ||
accountId: RegistryTypes.AccountId | ||
adapterAddress: string | ||
} | ||
|
||
export async function getAdapterAuthorizedAddresses({ | ||
cosmWasmClient, | ||
accountId, | ||
adapterAddress, | ||
apiUrl, | ||
}: GetAdapterAuthorizedAddresses) { | ||
const account = await getAccountAddressFromApi({ | ||
accountId, | ||
cosmWasmClient, | ||
apiUrl, | ||
}) | ||
|
||
return await cosmWasmClient.queryContractSmart( | ||
adapterAddress, | ||
AdapterQueryMsgBuilder.authorizedAddresses(account), | ||
) | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@abstract-money/provider-cosmoskit", | ||
"version": "10.0.4", | ||
"version": "10.0.5", | ||
"description": "Provider for CosmosKit", | ||
"homepage": "https://github.com/AbstractSDK/abstract.js#readme", | ||
"author": "dalechyn <[email protected]>", | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@abstract-money/provider-graz", | ||
"version": "11.0.1", | ||
"version": "11.0.2", | ||
"description": "Provider for Graz", | ||
"homepage": "https://github.com/AbstractSDK/abstract.js#readme", | ||
"author": "dalechyn <[email protected]>", | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@abstract-money/provider-xion", | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"description": "Provider for Xion", | ||
"homepage": "https://github.com/AbstractSDK/abstract.js#readme", | ||
"author": "adair <[email protected]>", | ||
|
Oops, something went wrong.