@reown/appkit-controllers 1.8.1-open-send.0 → 1.8.1-open-send.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/src/controllers/SendController.js.map +1 -1
- package/dist/esm/src/utils/BalanceUtil.js +5 -6
- package/dist/esm/src/utils/BalanceUtil.js.map +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/dist/types/src/controllers/SendController.d.ts +4 -3
- package/dist/types/src/utils/BalanceUtil.d.ts +3 -3
- package/package.json +3 -3
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { type Balance, type
|
|
1
|
+
import { type Balance, type ChainNamespace } from '@reown/appkit-common';
|
|
2
2
|
export interface TxParams {
|
|
3
3
|
receiverAddress: string;
|
|
4
4
|
sendTokenAmount: number;
|
|
5
5
|
decimals: string;
|
|
6
6
|
}
|
|
7
7
|
export interface SendInputArguments {
|
|
8
|
-
caipAsset: CaipAsset;
|
|
9
8
|
amount: string;
|
|
10
|
-
|
|
9
|
+
assetAddress: string;
|
|
10
|
+
namespace: ChainNamespace;
|
|
11
|
+
chainId: string | number;
|
|
11
12
|
to: string;
|
|
12
13
|
}
|
|
13
14
|
export interface ContractWriteParams {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { type CaipAddress, type
|
|
1
|
+
import { type CaipAddress, type CaipNetwork, type CaipNetworkId } from '@reown/appkit-common';
|
|
2
2
|
import type { BlockchainApiBalanceResponse } from './TypeUtil.js';
|
|
3
3
|
interface FetchER20BalanceParams {
|
|
4
4
|
caipAddress: CaipAddress;
|
|
5
|
-
|
|
5
|
+
assetAddress: string;
|
|
6
6
|
caipNetworkId: CaipNetworkId;
|
|
7
7
|
}
|
|
8
8
|
export declare const BalanceUtil: {
|
|
@@ -25,7 +25,7 @@ export declare const BalanceUtil: {
|
|
|
25
25
|
* which appear inconsistently. This filter prevents them from being displayed.
|
|
26
26
|
*/
|
|
27
27
|
filterLowQualityTokens(balances: BlockchainApiBalanceResponse["balances"]): import("@reown/appkit-common").Balance[];
|
|
28
|
-
fetchERC20Balance({ caipAddress,
|
|
28
|
+
fetchERC20Balance({ caipAddress, assetAddress, caipNetworkId }: FetchER20BalanceParams): Promise<{
|
|
29
29
|
name: string | undefined;
|
|
30
30
|
symbol: string | undefined;
|
|
31
31
|
decimals: number | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reown/appkit-controllers",
|
|
3
|
-
"version": "1.8.1-open-send.0",
|
|
3
|
+
"version": "1.8.1-open-send.1.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/esm/exports/index.js",
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"@walletconnect/universal-provider": "2.21.7",
|
|
57
57
|
"valtio": "2.1.5",
|
|
58
58
|
"viem": ">=2.33.3",
|
|
59
|
-
"@reown/appkit-common": "1.8.1-open-send.0",
|
|
60
|
-
"@reown/appkit-wallet": "1.8.1-open-send.0"
|
|
59
|
+
"@reown/appkit-common": "1.8.1-open-send.1.0",
|
|
60
|
+
"@reown/appkit-wallet": "1.8.1-open-send.1.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@vitest/coverage-v8": "2.1.9",
|