@reown/appkit-utils 1.7.14-wallet-button-fix.0 → 1.7.14

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.
@@ -1,3 +1,4 @@
1
1
  export * from '../src/solana/SolanaConstantsUtil.js';
2
2
  export * from '../src/solana/SolanaHelpersUtils.js';
3
+ export * from '../src/solana/SolanaTransactionUtil.js';
3
4
  export type * from '../src/solana/SolanaTypesUtil.js';
@@ -19,7 +19,7 @@ export declare const ErrorUtil: {
19
19
  shortMessage: string;
20
20
  longMessage: string;
21
21
  };
22
- INVALID_APP_CONFIGURATION: {
22
+ ORIGIN_NOT_ALLOWED: {
23
23
  shortMessage: string;
24
24
  longMessage: () => string;
25
25
  };
@@ -16,3 +16,8 @@ export declare const SolConstantsUtil: {
16
16
  };
17
17
  readonly LAMPORTS_PER_SOL: 1000000000;
18
18
  };
19
+ export declare const SPL_COMPUTE_BUDGET_CONSTANTS: {
20
+ readonly UNIT_PRICE_MICRO_LAMPORTS: 20000000;
21
+ readonly UNIT_LIMIT_TRANSFER_ONLY: 300000;
22
+ readonly UNIT_LIMIT_WITH_ATA_CREATION: 400000;
23
+ };
@@ -0,0 +1,3 @@
1
+ import { Transaction } from '@solana/web3.js';
2
+ import type { SPLTokenTransactionArgs } from './SolanaTypesUtil.js';
3
+ export declare function createSPLTokenTransaction({ provider, to, amount, tokenMint, connection }: SPLTokenTransactionArgs): Promise<Transaction>;
@@ -73,3 +73,10 @@ export type Metadata = {
73
73
  };
74
74
  export type AnyTransaction = SolanaWeb3Transaction | VersionedTransaction;
75
75
  export type GetActiveChain = () => CaipNetwork | undefined;
76
+ export type SPLTokenTransactionArgs = {
77
+ provider: Provider;
78
+ connection: Connection;
79
+ to: string;
80
+ amount: number;
81
+ tokenMint: string;
82
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reown/appkit-utils",
3
- "version": "1.7.14-wallet-button-fix.0",
3
+ "version": "1.7.14",
4
4
  "sideEffects": false,
5
5
  "type": "module",
6
6
  "main": "./dist/esm/exports/index.js",
@@ -53,10 +53,10 @@
53
53
  "@walletconnect/universal-provider": "2.21.3",
54
54
  "valtio": "2.1.5",
55
55
  "viem": ">=2.31.3",
56
- "@reown/appkit-common": "1.7.14-wallet-button-fix.0",
57
- "@reown/appkit-controllers": "1.7.14-wallet-button-fix.0",
58
- "@reown/appkit-polyfills": "1.7.14-wallet-button-fix.0",
59
- "@reown/appkit-wallet": "1.7.14-wallet-button-fix.0"
56
+ "@reown/appkit-common": "1.7.14",
57
+ "@reown/appkit-controllers": "1.7.14",
58
+ "@reown/appkit-polyfills": "1.7.14",
59
+ "@reown/appkit-wallet": "1.7.14"
60
60
  },
61
61
  "devDependencies": {
62
62
  "bs58": "6.0.0",
@@ -69,7 +69,8 @@
69
69
  "@solana/wallet-adapter-base": "0.9.26",
70
70
  "@vitest/coverage-v8": "2.1.9",
71
71
  "vitest": "3.1.3",
72
- "@walletconnect/types": "2.21.2"
72
+ "@walletconnect/types": "2.21.2",
73
+ "@solana/spl-token": "0.4.13"
73
74
  },
74
75
  "peerDependencies": {
75
76
  "valtio": "2.1.5"