@bluxcc/core 0.2.4 → 0.2.6

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/README.md CHANGED
@@ -31,6 +31,7 @@ npm i @bluxcc/core
31
31
  <script>
32
32
  Blux.createConfig({
33
33
  appName: 'My App',
34
+ appId: 'GET_FROM_BLUX_DASHBOARD',
34
35
  networks: [Blux.core.networks.mainnet],
35
36
  });
36
37
 
@@ -45,6 +46,7 @@ import { blux, core, createConfig } from '@bluxcc/core';
45
46
 
46
47
  createConfig({
47
48
  appName: 'My App',
49
+ appId: 'GET_FROM_BLUX_DASHBOARD',
48
50
  networks: [core.networks.mainnet],
49
51
  });
50
52
 
@@ -61,4 +63,3 @@ For support, licensing, or inquiries, reach out via:
61
63
  - **X (Twitter)**: [@BluxOfficial](https://twitter.com/BluxOfficial)
62
64
 
63
65
  Follow for more updates at [X (Twitter)](https://twitter.com/BluxOfficial).
64
-
@@ -8,4 +8,12 @@ export declare const BitGetLogo: ({ fill }: {
8
8
  fill?: string;
9
9
  }) => import("react/jsx-runtime").JSX.Element;
10
10
  export declare const OneKeyLogo: () => import("react/jsx-runtime").JSX.Element;
11
+ export declare const CactusLinkLogo: ({ fill }: {
12
+ fill?: string;
13
+ }) => import("react/jsx-runtime").JSX.Element;
14
+ export declare const FordefiLogo: () => import("react/jsx-runtime").JSX.Element;
15
+ export declare const TrezorLogo: ({ fill }: {
16
+ fill?: string;
17
+ }) => import("react/jsx-runtime").JSX.Element;
11
18
  export declare const MoonPayLogo: () => import("react/jsx-runtime").JSX.Element;
19
+ export declare const PasskeyFingerLogo: () => import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,11 @@
1
1
  import React from 'react';
2
+ export type TxAction = 'send' | 'receive' | 'swap' | 'multi' | 'other';
2
3
  export type TxDetail = {
3
4
  hash: string;
4
5
  date: string;
5
6
  title: string;
6
7
  description: string;
8
+ action?: TxAction;
7
9
  };
8
10
  interface TransactionProps {
9
11
  tx: TxDetail;
@@ -1,3 +1,4 @@
1
+ import { IAsset } from '../types';
1
2
  export declare const XLM: {
2
3
  assetIssuer: string;
3
4
  assetCode: string;
@@ -16,3 +17,10 @@ export declare const TESTNET_USDC: {
16
17
  assetBalance: string;
17
18
  assetType: string;
18
19
  };
20
+ export declare const MAINNET_EURC: {
21
+ assetIssuer: string;
22
+ assetCode: string;
23
+ assetBalance: string;
24
+ assetType: string;
25
+ };
26
+ export declare const getSuggestedAssets: (networkPassphrase: string) => IAsset[];
package/dist/enums.d.ts CHANGED
@@ -11,7 +11,10 @@ export declare enum SupportedWallet {
11
11
  Klever = "Klever",
12
12
  Ledger = "Ledger",
13
13
  Bitget = "Bitget",
14
- Onekey = "Onekey"
14
+ Onekey = "Onekey",
15
+ CactusLink = "Cactus Link",
16
+ Fordefi = "Fordefi",
17
+ Trezor = "Trezor"
15
18
  }
16
19
  export declare enum StellarNetwork {
17
20
  PUBLIC = "Public Global Stellar Network ; September 2015",
@@ -22,6 +25,8 @@ export declare enum StellarNetwork {
22
25
  }
23
26
  export declare enum Route {
24
27
  ONBOARDING = "ONBOARDING",// View for selecting a wallet
28
+ PASSKEY_ONBOARDING = "PASSKEY_ONBOARDING",
29
+ SOCIALS_ONBOARDING = "SOCIALS_ONBOARDING",// Social (OAuth) login popup flow
25
30
  WRONG_NETWORK = "WRONG_NETWORK",// View for selecting a wallet
26
31
  WAITING = "WAITING",// View for connection process
27
32
  SUCCESSFUL = "SUCCESSFUL",// View for connection success process
@@ -16,6 +16,8 @@ export { getStrictSendPaths } from './getStrictSendPaths';
16
16
  export { getTradeAggregation } from './getTradeAggregation';
17
17
  export { getTrades } from './getTrades';
18
18
  export { getTransactions } from './getTransactions';
19
+ export { readContracts } from './readContracts';
20
+ export { writeContract } from './writeContract';
19
21
  export { networks } from './networks';
20
22
  export { switchNetwork } from './switchNetwork';
21
23
  export { type Numberish, numberish, ToScVal } from './toScVal';
@@ -1,2 +1,6 @@
1
+ import { rpc } from '@stellar/stellar-sdk';
1
2
  import { IContractCall, ReadContractsOptions } from '../utils';
2
- export declare const readContracts: (calls: IContractCall[], options?: ReadContractsOptions) => Promise<any[]>;
3
+ export declare const readContracts: (calls: IContractCall[], options?: ReadContractsOptions) => Promise<never[] | {
4
+ raws: (rpc.Api.SimulateTransactionSuccessResponse | rpc.Api.SimulateTransactionRestoreResponse | undefined)[];
5
+ values: any[];
6
+ }>;
@@ -0,0 +1,2 @@
1
+ import { IContractCall, WriteContractsOptions } from '../utils';
2
+ export declare const writeContract: (call: IContractCall, options?: WriteContractsOptions) => Promise<unknown>;
@@ -1,2 +1,2 @@
1
- import { TranslationKey } from "../constants/locales";
1
+ import { TranslationKey } from '../constants/locales';
2
2
  export declare const useLang: () => (key: TranslationKey, vars?: Record<string, string>) => string;
@@ -0,0 +1,3 @@
1
+ import { IAsset } from '../types';
2
+ declare const useMaxAmount: (asset: IAsset) => string;
3
+ export default useMaxAmount;