@chipi-stack/chipi-react 13.2.0 → 13.4.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/hooks.d.mts +2 -273
- package/dist/hooks.d.ts +2 -273
- package/dist/hooks.js +0 -172
- package/dist/hooks.js.map +1 -1
- package/dist/hooks.mjs +1 -169
- package/dist/hooks.mjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +0 -172
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -170
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/hooks.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateWalletParams, CreateWalletResponse, GetWalletParams, GetWalletResponse, ChainToken, GetTokenBalanceResponse, WalletType, WalletData, SessionKeyData, SessionDataResponse, CreateSessionKeyParams, SessionConfig, Call, MigrateWalletToPasskeyParams, TransferHookInput, ApproveHookInput, GetTransactionListQuery, PaginatedResponse, Transaction, CreateSkuPurchaseParams, GetSkuListQuery, Sku,
|
|
1
|
+
import { CreateWalletParams, CreateWalletResponse, GetWalletParams, GetWalletResponse, ChainToken, GetTokenBalanceResponse, WalletType, WalletData, SessionKeyData, SessionDataResponse, CreateSessionKeyParams, SessionConfig, Call, MigrateWalletToPasskeyParams, TransferHookInput, ApproveHookInput, GetTransactionListQuery, PaginatedResponse, Transaction, CreateSkuPurchaseParams, GetSkuListQuery, Sku, CallAnyContractParams, RecordSendTransactionParams, GetTokenBalanceParams, AddSessionKeyParams, RevokeSessionKeyParams, GetSessionDataParams, ExecuteWithSessionParams } from '@chipi-stack/types';
|
|
2
2
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
3
3
|
import { UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
4
4
|
|
|
@@ -1220,42 +1220,6 @@ declare function useGetSku(input?: GetSkuInput): {
|
|
|
1220
1220
|
promise: Promise<Sku>;
|
|
1221
1221
|
};
|
|
1222
1222
|
|
|
1223
|
-
type StakeVesuUsdcInput = {
|
|
1224
|
-
params: StakeVesuUsdcHookInputParams;
|
|
1225
|
-
bearerToken: string;
|
|
1226
|
-
};
|
|
1227
|
-
/**
|
|
1228
|
-
* Hook for staking USDC in Vesu protocol
|
|
1229
|
-
*/
|
|
1230
|
-
declare function useStakeVesuUsdc(): {
|
|
1231
|
-
stakeVesuUsdc: (params: StakeVesuUsdcInput) => void;
|
|
1232
|
-
stakeVesuUsdcAsync: (params: StakeVesuUsdcInput) => Promise<string>;
|
|
1233
|
-
data: string | undefined;
|
|
1234
|
-
isLoading: boolean;
|
|
1235
|
-
isError: boolean;
|
|
1236
|
-
error: Error | null;
|
|
1237
|
-
isSuccess: boolean;
|
|
1238
|
-
reset: () => void;
|
|
1239
|
-
};
|
|
1240
|
-
|
|
1241
|
-
type WithdrawVesuUsdcInput = {
|
|
1242
|
-
params: WithdrawVesuUsdcHookInputParams;
|
|
1243
|
-
bearerToken: string;
|
|
1244
|
-
};
|
|
1245
|
-
/**
|
|
1246
|
-
* Hook for withdrawing USDC from Vesu protocol
|
|
1247
|
-
*/
|
|
1248
|
-
declare function useWithdrawVesuUsdc(): {
|
|
1249
|
-
withdrawVesuUsdc: (params: WithdrawVesuUsdcInput) => void;
|
|
1250
|
-
withdrawVesuUsdcAsync: (params: WithdrawVesuUsdcInput) => Promise<string>;
|
|
1251
|
-
data: string | undefined;
|
|
1252
|
-
isLoading: boolean;
|
|
1253
|
-
isError: boolean;
|
|
1254
|
-
error: Error | null;
|
|
1255
|
-
isSuccess: boolean;
|
|
1256
|
-
reset: () => void;
|
|
1257
|
-
};
|
|
1258
|
-
|
|
1259
1223
|
type CallAnyContractInput = {
|
|
1260
1224
|
params: CallAnyContractParams;
|
|
1261
1225
|
bearerToken: string;
|
|
@@ -1464,241 +1428,6 @@ declare function useGetTokenBalance(input?: GetTokenBalanceInput): {
|
|
|
1464
1428
|
promise: Promise<GetTokenBalanceResponse>;
|
|
1465
1429
|
};
|
|
1466
1430
|
|
|
1467
|
-
type GetUserInput = {
|
|
1468
|
-
params?: GetUserParams;
|
|
1469
|
-
getBearerToken?: () => Promise<string | null | undefined>;
|
|
1470
|
-
queryOptions?: Omit<UseQueryOptions<User, Error>, "queryKey" | "queryFn">;
|
|
1471
|
-
};
|
|
1472
|
-
declare function useGetUser(input?: GetUserInput): {
|
|
1473
|
-
fetchUser: (input: GetUserInput) => Promise<User & {
|
|
1474
|
-
chipiWallets?: WalletData[];
|
|
1475
|
-
}>;
|
|
1476
|
-
data: User & {
|
|
1477
|
-
chipiWallets?: WalletData[];
|
|
1478
|
-
};
|
|
1479
|
-
error: Error;
|
|
1480
|
-
isError: true;
|
|
1481
|
-
isPending: false;
|
|
1482
|
-
isLoading: false;
|
|
1483
|
-
isLoadingError: false;
|
|
1484
|
-
isRefetchError: true;
|
|
1485
|
-
isSuccess: false;
|
|
1486
|
-
isPlaceholderData: false;
|
|
1487
|
-
status: "error";
|
|
1488
|
-
dataUpdatedAt: number;
|
|
1489
|
-
errorUpdatedAt: number;
|
|
1490
|
-
failureCount: number;
|
|
1491
|
-
failureReason: Error | null;
|
|
1492
|
-
errorUpdateCount: number;
|
|
1493
|
-
isFetched: boolean;
|
|
1494
|
-
isFetchedAfterMount: boolean;
|
|
1495
|
-
isFetching: boolean;
|
|
1496
|
-
isInitialLoading: boolean;
|
|
1497
|
-
isPaused: boolean;
|
|
1498
|
-
isRefetching: boolean;
|
|
1499
|
-
isStale: boolean;
|
|
1500
|
-
isEnabled: boolean;
|
|
1501
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<User & {
|
|
1502
|
-
chipiWallets?: WalletData[];
|
|
1503
|
-
}, Error>>;
|
|
1504
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
1505
|
-
promise: Promise<User & {
|
|
1506
|
-
chipiWallets?: WalletData[];
|
|
1507
|
-
}>;
|
|
1508
|
-
} | {
|
|
1509
|
-
fetchUser: (input: GetUserInput) => Promise<User & {
|
|
1510
|
-
chipiWallets?: WalletData[];
|
|
1511
|
-
}>;
|
|
1512
|
-
data: User & {
|
|
1513
|
-
chipiWallets?: WalletData[];
|
|
1514
|
-
};
|
|
1515
|
-
error: null;
|
|
1516
|
-
isError: false;
|
|
1517
|
-
isPending: false;
|
|
1518
|
-
isLoading: false;
|
|
1519
|
-
isLoadingError: false;
|
|
1520
|
-
isRefetchError: false;
|
|
1521
|
-
isSuccess: true;
|
|
1522
|
-
isPlaceholderData: false;
|
|
1523
|
-
status: "success";
|
|
1524
|
-
dataUpdatedAt: number;
|
|
1525
|
-
errorUpdatedAt: number;
|
|
1526
|
-
failureCount: number;
|
|
1527
|
-
failureReason: Error | null;
|
|
1528
|
-
errorUpdateCount: number;
|
|
1529
|
-
isFetched: boolean;
|
|
1530
|
-
isFetchedAfterMount: boolean;
|
|
1531
|
-
isFetching: boolean;
|
|
1532
|
-
isInitialLoading: boolean;
|
|
1533
|
-
isPaused: boolean;
|
|
1534
|
-
isRefetching: boolean;
|
|
1535
|
-
isStale: boolean;
|
|
1536
|
-
isEnabled: boolean;
|
|
1537
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<User & {
|
|
1538
|
-
chipiWallets?: WalletData[];
|
|
1539
|
-
}, Error>>;
|
|
1540
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
1541
|
-
promise: Promise<User & {
|
|
1542
|
-
chipiWallets?: WalletData[];
|
|
1543
|
-
}>;
|
|
1544
|
-
} | {
|
|
1545
|
-
fetchUser: (input: GetUserInput) => Promise<User & {
|
|
1546
|
-
chipiWallets?: WalletData[];
|
|
1547
|
-
}>;
|
|
1548
|
-
data: undefined;
|
|
1549
|
-
error: Error;
|
|
1550
|
-
isError: true;
|
|
1551
|
-
isPending: false;
|
|
1552
|
-
isLoading: false;
|
|
1553
|
-
isLoadingError: true;
|
|
1554
|
-
isRefetchError: false;
|
|
1555
|
-
isSuccess: false;
|
|
1556
|
-
isPlaceholderData: false;
|
|
1557
|
-
status: "error";
|
|
1558
|
-
dataUpdatedAt: number;
|
|
1559
|
-
errorUpdatedAt: number;
|
|
1560
|
-
failureCount: number;
|
|
1561
|
-
failureReason: Error | null;
|
|
1562
|
-
errorUpdateCount: number;
|
|
1563
|
-
isFetched: boolean;
|
|
1564
|
-
isFetchedAfterMount: boolean;
|
|
1565
|
-
isFetching: boolean;
|
|
1566
|
-
isInitialLoading: boolean;
|
|
1567
|
-
isPaused: boolean;
|
|
1568
|
-
isRefetching: boolean;
|
|
1569
|
-
isStale: boolean;
|
|
1570
|
-
isEnabled: boolean;
|
|
1571
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<User & {
|
|
1572
|
-
chipiWallets?: WalletData[];
|
|
1573
|
-
}, Error>>;
|
|
1574
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
1575
|
-
promise: Promise<User & {
|
|
1576
|
-
chipiWallets?: WalletData[];
|
|
1577
|
-
}>;
|
|
1578
|
-
} | {
|
|
1579
|
-
fetchUser: (input: GetUserInput) => Promise<User & {
|
|
1580
|
-
chipiWallets?: WalletData[];
|
|
1581
|
-
}>;
|
|
1582
|
-
data: undefined;
|
|
1583
|
-
error: null;
|
|
1584
|
-
isError: false;
|
|
1585
|
-
isPending: true;
|
|
1586
|
-
isLoading: true;
|
|
1587
|
-
isLoadingError: false;
|
|
1588
|
-
isRefetchError: false;
|
|
1589
|
-
isSuccess: false;
|
|
1590
|
-
isPlaceholderData: false;
|
|
1591
|
-
status: "pending";
|
|
1592
|
-
dataUpdatedAt: number;
|
|
1593
|
-
errorUpdatedAt: number;
|
|
1594
|
-
failureCount: number;
|
|
1595
|
-
failureReason: Error | null;
|
|
1596
|
-
errorUpdateCount: number;
|
|
1597
|
-
isFetched: boolean;
|
|
1598
|
-
isFetchedAfterMount: boolean;
|
|
1599
|
-
isFetching: boolean;
|
|
1600
|
-
isInitialLoading: boolean;
|
|
1601
|
-
isPaused: boolean;
|
|
1602
|
-
isRefetching: boolean;
|
|
1603
|
-
isStale: boolean;
|
|
1604
|
-
isEnabled: boolean;
|
|
1605
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<User & {
|
|
1606
|
-
chipiWallets?: WalletData[];
|
|
1607
|
-
}, Error>>;
|
|
1608
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
1609
|
-
promise: Promise<User & {
|
|
1610
|
-
chipiWallets?: WalletData[];
|
|
1611
|
-
}>;
|
|
1612
|
-
} | {
|
|
1613
|
-
fetchUser: (input: GetUserInput) => Promise<User & {
|
|
1614
|
-
chipiWallets?: WalletData[];
|
|
1615
|
-
}>;
|
|
1616
|
-
data: undefined;
|
|
1617
|
-
error: null;
|
|
1618
|
-
isError: false;
|
|
1619
|
-
isPending: true;
|
|
1620
|
-
isLoadingError: false;
|
|
1621
|
-
isRefetchError: false;
|
|
1622
|
-
isSuccess: false;
|
|
1623
|
-
isPlaceholderData: false;
|
|
1624
|
-
status: "pending";
|
|
1625
|
-
dataUpdatedAt: number;
|
|
1626
|
-
errorUpdatedAt: number;
|
|
1627
|
-
failureCount: number;
|
|
1628
|
-
failureReason: Error | null;
|
|
1629
|
-
errorUpdateCount: number;
|
|
1630
|
-
isFetched: boolean;
|
|
1631
|
-
isFetchedAfterMount: boolean;
|
|
1632
|
-
isFetching: boolean;
|
|
1633
|
-
isLoading: boolean;
|
|
1634
|
-
isInitialLoading: boolean;
|
|
1635
|
-
isPaused: boolean;
|
|
1636
|
-
isRefetching: boolean;
|
|
1637
|
-
isStale: boolean;
|
|
1638
|
-
isEnabled: boolean;
|
|
1639
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<User & {
|
|
1640
|
-
chipiWallets?: WalletData[];
|
|
1641
|
-
}, Error>>;
|
|
1642
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
1643
|
-
promise: Promise<User & {
|
|
1644
|
-
chipiWallets?: WalletData[];
|
|
1645
|
-
}>;
|
|
1646
|
-
} | {
|
|
1647
|
-
fetchUser: (input: GetUserInput) => Promise<User & {
|
|
1648
|
-
chipiWallets?: WalletData[];
|
|
1649
|
-
}>;
|
|
1650
|
-
data: User & {
|
|
1651
|
-
chipiWallets?: WalletData[];
|
|
1652
|
-
};
|
|
1653
|
-
isError: false;
|
|
1654
|
-
error: null;
|
|
1655
|
-
isPending: false;
|
|
1656
|
-
isLoading: false;
|
|
1657
|
-
isLoadingError: false;
|
|
1658
|
-
isRefetchError: false;
|
|
1659
|
-
isSuccess: true;
|
|
1660
|
-
isPlaceholderData: true;
|
|
1661
|
-
status: "success";
|
|
1662
|
-
dataUpdatedAt: number;
|
|
1663
|
-
errorUpdatedAt: number;
|
|
1664
|
-
failureCount: number;
|
|
1665
|
-
failureReason: Error | null;
|
|
1666
|
-
errorUpdateCount: number;
|
|
1667
|
-
isFetched: boolean;
|
|
1668
|
-
isFetchedAfterMount: boolean;
|
|
1669
|
-
isFetching: boolean;
|
|
1670
|
-
isInitialLoading: boolean;
|
|
1671
|
-
isPaused: boolean;
|
|
1672
|
-
isRefetching: boolean;
|
|
1673
|
-
isStale: boolean;
|
|
1674
|
-
isEnabled: boolean;
|
|
1675
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<User & {
|
|
1676
|
-
chipiWallets?: WalletData[];
|
|
1677
|
-
}, Error>>;
|
|
1678
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
1679
|
-
promise: Promise<User & {
|
|
1680
|
-
chipiWallets?: WalletData[];
|
|
1681
|
-
}>;
|
|
1682
|
-
};
|
|
1683
|
-
|
|
1684
|
-
type CreateUserInput = {
|
|
1685
|
-
params: CreateUserParams;
|
|
1686
|
-
bearerToken: string;
|
|
1687
|
-
};
|
|
1688
|
-
/**
|
|
1689
|
-
* Hook for creating a new user
|
|
1690
|
-
*/
|
|
1691
|
-
declare function useCreateUser(): {
|
|
1692
|
-
createUser: (input: CreateUserInput) => void;
|
|
1693
|
-
createUserAsync: (input: CreateUserInput) => Promise<User>;
|
|
1694
|
-
data: User | undefined;
|
|
1695
|
-
isLoading: boolean;
|
|
1696
|
-
isError: boolean;
|
|
1697
|
-
error: Error | null;
|
|
1698
|
-
isSuccess: boolean;
|
|
1699
|
-
reset: () => void;
|
|
1700
|
-
};
|
|
1701
|
-
|
|
1702
1431
|
/**
|
|
1703
1432
|
* Hook for creating a session keypair locally.
|
|
1704
1433
|
*
|
|
@@ -1896,4 +1625,4 @@ declare function useExecuteWithSession(): {
|
|
|
1896
1625
|
reset: () => void;
|
|
1897
1626
|
};
|
|
1898
1627
|
|
|
1899
|
-
export { type ChipiWalletData, type SessionState, type SessionWallet, type UseChipiSessionConfig, type UseChipiSessionReturn, type UseChipiWalletConfig, type UseChipiWalletReturn, useAddSessionKeyToContract, useApprove, useCallAnyContract, useChipiSession, useChipiWallet, useCreateSessionKey,
|
|
1628
|
+
export { type ChipiWalletData, type SessionState, type SessionWallet, type UseChipiSessionConfig, type UseChipiSessionReturn, type UseChipiWalletConfig, type UseChipiWalletReturn, useAddSessionKeyToContract, useApprove, useCallAnyContract, useChipiSession, useChipiWallet, useCreateSessionKey, useCreateWallet, useExecuteWithSession, useGetSessionData, useGetSku, useGetSkuList, useGetSkuPurchase, useGetTokenBalance, useGetTransactionList, useGetWallet, useMigrateWalletToPasskey, usePurchaseSku, useRecordSendTransaction, useRevokeSessionKey, useTransfer };
|
package/dist/hooks.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateWalletParams, CreateWalletResponse, GetWalletParams, GetWalletResponse, ChainToken, GetTokenBalanceResponse, WalletType, WalletData, SessionKeyData, SessionDataResponse, CreateSessionKeyParams, SessionConfig, Call, MigrateWalletToPasskeyParams, TransferHookInput, ApproveHookInput, GetTransactionListQuery, PaginatedResponse, Transaction, CreateSkuPurchaseParams, GetSkuListQuery, Sku,
|
|
1
|
+
import { CreateWalletParams, CreateWalletResponse, GetWalletParams, GetWalletResponse, ChainToken, GetTokenBalanceResponse, WalletType, WalletData, SessionKeyData, SessionDataResponse, CreateSessionKeyParams, SessionConfig, Call, MigrateWalletToPasskeyParams, TransferHookInput, ApproveHookInput, GetTransactionListQuery, PaginatedResponse, Transaction, CreateSkuPurchaseParams, GetSkuListQuery, Sku, CallAnyContractParams, RecordSendTransactionParams, GetTokenBalanceParams, AddSessionKeyParams, RevokeSessionKeyParams, GetSessionDataParams, ExecuteWithSessionParams } from '@chipi-stack/types';
|
|
2
2
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
3
3
|
import { UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
4
4
|
|
|
@@ -1220,42 +1220,6 @@ declare function useGetSku(input?: GetSkuInput): {
|
|
|
1220
1220
|
promise: Promise<Sku>;
|
|
1221
1221
|
};
|
|
1222
1222
|
|
|
1223
|
-
type StakeVesuUsdcInput = {
|
|
1224
|
-
params: StakeVesuUsdcHookInputParams;
|
|
1225
|
-
bearerToken: string;
|
|
1226
|
-
};
|
|
1227
|
-
/**
|
|
1228
|
-
* Hook for staking USDC in Vesu protocol
|
|
1229
|
-
*/
|
|
1230
|
-
declare function useStakeVesuUsdc(): {
|
|
1231
|
-
stakeVesuUsdc: (params: StakeVesuUsdcInput) => void;
|
|
1232
|
-
stakeVesuUsdcAsync: (params: StakeVesuUsdcInput) => Promise<string>;
|
|
1233
|
-
data: string | undefined;
|
|
1234
|
-
isLoading: boolean;
|
|
1235
|
-
isError: boolean;
|
|
1236
|
-
error: Error | null;
|
|
1237
|
-
isSuccess: boolean;
|
|
1238
|
-
reset: () => void;
|
|
1239
|
-
};
|
|
1240
|
-
|
|
1241
|
-
type WithdrawVesuUsdcInput = {
|
|
1242
|
-
params: WithdrawVesuUsdcHookInputParams;
|
|
1243
|
-
bearerToken: string;
|
|
1244
|
-
};
|
|
1245
|
-
/**
|
|
1246
|
-
* Hook for withdrawing USDC from Vesu protocol
|
|
1247
|
-
*/
|
|
1248
|
-
declare function useWithdrawVesuUsdc(): {
|
|
1249
|
-
withdrawVesuUsdc: (params: WithdrawVesuUsdcInput) => void;
|
|
1250
|
-
withdrawVesuUsdcAsync: (params: WithdrawVesuUsdcInput) => Promise<string>;
|
|
1251
|
-
data: string | undefined;
|
|
1252
|
-
isLoading: boolean;
|
|
1253
|
-
isError: boolean;
|
|
1254
|
-
error: Error | null;
|
|
1255
|
-
isSuccess: boolean;
|
|
1256
|
-
reset: () => void;
|
|
1257
|
-
};
|
|
1258
|
-
|
|
1259
1223
|
type CallAnyContractInput = {
|
|
1260
1224
|
params: CallAnyContractParams;
|
|
1261
1225
|
bearerToken: string;
|
|
@@ -1464,241 +1428,6 @@ declare function useGetTokenBalance(input?: GetTokenBalanceInput): {
|
|
|
1464
1428
|
promise: Promise<GetTokenBalanceResponse>;
|
|
1465
1429
|
};
|
|
1466
1430
|
|
|
1467
|
-
type GetUserInput = {
|
|
1468
|
-
params?: GetUserParams;
|
|
1469
|
-
getBearerToken?: () => Promise<string | null | undefined>;
|
|
1470
|
-
queryOptions?: Omit<UseQueryOptions<User, Error>, "queryKey" | "queryFn">;
|
|
1471
|
-
};
|
|
1472
|
-
declare function useGetUser(input?: GetUserInput): {
|
|
1473
|
-
fetchUser: (input: GetUserInput) => Promise<User & {
|
|
1474
|
-
chipiWallets?: WalletData[];
|
|
1475
|
-
}>;
|
|
1476
|
-
data: User & {
|
|
1477
|
-
chipiWallets?: WalletData[];
|
|
1478
|
-
};
|
|
1479
|
-
error: Error;
|
|
1480
|
-
isError: true;
|
|
1481
|
-
isPending: false;
|
|
1482
|
-
isLoading: false;
|
|
1483
|
-
isLoadingError: false;
|
|
1484
|
-
isRefetchError: true;
|
|
1485
|
-
isSuccess: false;
|
|
1486
|
-
isPlaceholderData: false;
|
|
1487
|
-
status: "error";
|
|
1488
|
-
dataUpdatedAt: number;
|
|
1489
|
-
errorUpdatedAt: number;
|
|
1490
|
-
failureCount: number;
|
|
1491
|
-
failureReason: Error | null;
|
|
1492
|
-
errorUpdateCount: number;
|
|
1493
|
-
isFetched: boolean;
|
|
1494
|
-
isFetchedAfterMount: boolean;
|
|
1495
|
-
isFetching: boolean;
|
|
1496
|
-
isInitialLoading: boolean;
|
|
1497
|
-
isPaused: boolean;
|
|
1498
|
-
isRefetching: boolean;
|
|
1499
|
-
isStale: boolean;
|
|
1500
|
-
isEnabled: boolean;
|
|
1501
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<User & {
|
|
1502
|
-
chipiWallets?: WalletData[];
|
|
1503
|
-
}, Error>>;
|
|
1504
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
1505
|
-
promise: Promise<User & {
|
|
1506
|
-
chipiWallets?: WalletData[];
|
|
1507
|
-
}>;
|
|
1508
|
-
} | {
|
|
1509
|
-
fetchUser: (input: GetUserInput) => Promise<User & {
|
|
1510
|
-
chipiWallets?: WalletData[];
|
|
1511
|
-
}>;
|
|
1512
|
-
data: User & {
|
|
1513
|
-
chipiWallets?: WalletData[];
|
|
1514
|
-
};
|
|
1515
|
-
error: null;
|
|
1516
|
-
isError: false;
|
|
1517
|
-
isPending: false;
|
|
1518
|
-
isLoading: false;
|
|
1519
|
-
isLoadingError: false;
|
|
1520
|
-
isRefetchError: false;
|
|
1521
|
-
isSuccess: true;
|
|
1522
|
-
isPlaceholderData: false;
|
|
1523
|
-
status: "success";
|
|
1524
|
-
dataUpdatedAt: number;
|
|
1525
|
-
errorUpdatedAt: number;
|
|
1526
|
-
failureCount: number;
|
|
1527
|
-
failureReason: Error | null;
|
|
1528
|
-
errorUpdateCount: number;
|
|
1529
|
-
isFetched: boolean;
|
|
1530
|
-
isFetchedAfterMount: boolean;
|
|
1531
|
-
isFetching: boolean;
|
|
1532
|
-
isInitialLoading: boolean;
|
|
1533
|
-
isPaused: boolean;
|
|
1534
|
-
isRefetching: boolean;
|
|
1535
|
-
isStale: boolean;
|
|
1536
|
-
isEnabled: boolean;
|
|
1537
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<User & {
|
|
1538
|
-
chipiWallets?: WalletData[];
|
|
1539
|
-
}, Error>>;
|
|
1540
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
1541
|
-
promise: Promise<User & {
|
|
1542
|
-
chipiWallets?: WalletData[];
|
|
1543
|
-
}>;
|
|
1544
|
-
} | {
|
|
1545
|
-
fetchUser: (input: GetUserInput) => Promise<User & {
|
|
1546
|
-
chipiWallets?: WalletData[];
|
|
1547
|
-
}>;
|
|
1548
|
-
data: undefined;
|
|
1549
|
-
error: Error;
|
|
1550
|
-
isError: true;
|
|
1551
|
-
isPending: false;
|
|
1552
|
-
isLoading: false;
|
|
1553
|
-
isLoadingError: true;
|
|
1554
|
-
isRefetchError: false;
|
|
1555
|
-
isSuccess: false;
|
|
1556
|
-
isPlaceholderData: false;
|
|
1557
|
-
status: "error";
|
|
1558
|
-
dataUpdatedAt: number;
|
|
1559
|
-
errorUpdatedAt: number;
|
|
1560
|
-
failureCount: number;
|
|
1561
|
-
failureReason: Error | null;
|
|
1562
|
-
errorUpdateCount: number;
|
|
1563
|
-
isFetched: boolean;
|
|
1564
|
-
isFetchedAfterMount: boolean;
|
|
1565
|
-
isFetching: boolean;
|
|
1566
|
-
isInitialLoading: boolean;
|
|
1567
|
-
isPaused: boolean;
|
|
1568
|
-
isRefetching: boolean;
|
|
1569
|
-
isStale: boolean;
|
|
1570
|
-
isEnabled: boolean;
|
|
1571
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<User & {
|
|
1572
|
-
chipiWallets?: WalletData[];
|
|
1573
|
-
}, Error>>;
|
|
1574
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
1575
|
-
promise: Promise<User & {
|
|
1576
|
-
chipiWallets?: WalletData[];
|
|
1577
|
-
}>;
|
|
1578
|
-
} | {
|
|
1579
|
-
fetchUser: (input: GetUserInput) => Promise<User & {
|
|
1580
|
-
chipiWallets?: WalletData[];
|
|
1581
|
-
}>;
|
|
1582
|
-
data: undefined;
|
|
1583
|
-
error: null;
|
|
1584
|
-
isError: false;
|
|
1585
|
-
isPending: true;
|
|
1586
|
-
isLoading: true;
|
|
1587
|
-
isLoadingError: false;
|
|
1588
|
-
isRefetchError: false;
|
|
1589
|
-
isSuccess: false;
|
|
1590
|
-
isPlaceholderData: false;
|
|
1591
|
-
status: "pending";
|
|
1592
|
-
dataUpdatedAt: number;
|
|
1593
|
-
errorUpdatedAt: number;
|
|
1594
|
-
failureCount: number;
|
|
1595
|
-
failureReason: Error | null;
|
|
1596
|
-
errorUpdateCount: number;
|
|
1597
|
-
isFetched: boolean;
|
|
1598
|
-
isFetchedAfterMount: boolean;
|
|
1599
|
-
isFetching: boolean;
|
|
1600
|
-
isInitialLoading: boolean;
|
|
1601
|
-
isPaused: boolean;
|
|
1602
|
-
isRefetching: boolean;
|
|
1603
|
-
isStale: boolean;
|
|
1604
|
-
isEnabled: boolean;
|
|
1605
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<User & {
|
|
1606
|
-
chipiWallets?: WalletData[];
|
|
1607
|
-
}, Error>>;
|
|
1608
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
1609
|
-
promise: Promise<User & {
|
|
1610
|
-
chipiWallets?: WalletData[];
|
|
1611
|
-
}>;
|
|
1612
|
-
} | {
|
|
1613
|
-
fetchUser: (input: GetUserInput) => Promise<User & {
|
|
1614
|
-
chipiWallets?: WalletData[];
|
|
1615
|
-
}>;
|
|
1616
|
-
data: undefined;
|
|
1617
|
-
error: null;
|
|
1618
|
-
isError: false;
|
|
1619
|
-
isPending: true;
|
|
1620
|
-
isLoadingError: false;
|
|
1621
|
-
isRefetchError: false;
|
|
1622
|
-
isSuccess: false;
|
|
1623
|
-
isPlaceholderData: false;
|
|
1624
|
-
status: "pending";
|
|
1625
|
-
dataUpdatedAt: number;
|
|
1626
|
-
errorUpdatedAt: number;
|
|
1627
|
-
failureCount: number;
|
|
1628
|
-
failureReason: Error | null;
|
|
1629
|
-
errorUpdateCount: number;
|
|
1630
|
-
isFetched: boolean;
|
|
1631
|
-
isFetchedAfterMount: boolean;
|
|
1632
|
-
isFetching: boolean;
|
|
1633
|
-
isLoading: boolean;
|
|
1634
|
-
isInitialLoading: boolean;
|
|
1635
|
-
isPaused: boolean;
|
|
1636
|
-
isRefetching: boolean;
|
|
1637
|
-
isStale: boolean;
|
|
1638
|
-
isEnabled: boolean;
|
|
1639
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<User & {
|
|
1640
|
-
chipiWallets?: WalletData[];
|
|
1641
|
-
}, Error>>;
|
|
1642
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
1643
|
-
promise: Promise<User & {
|
|
1644
|
-
chipiWallets?: WalletData[];
|
|
1645
|
-
}>;
|
|
1646
|
-
} | {
|
|
1647
|
-
fetchUser: (input: GetUserInput) => Promise<User & {
|
|
1648
|
-
chipiWallets?: WalletData[];
|
|
1649
|
-
}>;
|
|
1650
|
-
data: User & {
|
|
1651
|
-
chipiWallets?: WalletData[];
|
|
1652
|
-
};
|
|
1653
|
-
isError: false;
|
|
1654
|
-
error: null;
|
|
1655
|
-
isPending: false;
|
|
1656
|
-
isLoading: false;
|
|
1657
|
-
isLoadingError: false;
|
|
1658
|
-
isRefetchError: false;
|
|
1659
|
-
isSuccess: true;
|
|
1660
|
-
isPlaceholderData: true;
|
|
1661
|
-
status: "success";
|
|
1662
|
-
dataUpdatedAt: number;
|
|
1663
|
-
errorUpdatedAt: number;
|
|
1664
|
-
failureCount: number;
|
|
1665
|
-
failureReason: Error | null;
|
|
1666
|
-
errorUpdateCount: number;
|
|
1667
|
-
isFetched: boolean;
|
|
1668
|
-
isFetchedAfterMount: boolean;
|
|
1669
|
-
isFetching: boolean;
|
|
1670
|
-
isInitialLoading: boolean;
|
|
1671
|
-
isPaused: boolean;
|
|
1672
|
-
isRefetching: boolean;
|
|
1673
|
-
isStale: boolean;
|
|
1674
|
-
isEnabled: boolean;
|
|
1675
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<User & {
|
|
1676
|
-
chipiWallets?: WalletData[];
|
|
1677
|
-
}, Error>>;
|
|
1678
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
1679
|
-
promise: Promise<User & {
|
|
1680
|
-
chipiWallets?: WalletData[];
|
|
1681
|
-
}>;
|
|
1682
|
-
};
|
|
1683
|
-
|
|
1684
|
-
type CreateUserInput = {
|
|
1685
|
-
params: CreateUserParams;
|
|
1686
|
-
bearerToken: string;
|
|
1687
|
-
};
|
|
1688
|
-
/**
|
|
1689
|
-
* Hook for creating a new user
|
|
1690
|
-
*/
|
|
1691
|
-
declare function useCreateUser(): {
|
|
1692
|
-
createUser: (input: CreateUserInput) => void;
|
|
1693
|
-
createUserAsync: (input: CreateUserInput) => Promise<User>;
|
|
1694
|
-
data: User | undefined;
|
|
1695
|
-
isLoading: boolean;
|
|
1696
|
-
isError: boolean;
|
|
1697
|
-
error: Error | null;
|
|
1698
|
-
isSuccess: boolean;
|
|
1699
|
-
reset: () => void;
|
|
1700
|
-
};
|
|
1701
|
-
|
|
1702
1431
|
/**
|
|
1703
1432
|
* Hook for creating a session keypair locally.
|
|
1704
1433
|
*
|
|
@@ -1896,4 +1625,4 @@ declare function useExecuteWithSession(): {
|
|
|
1896
1625
|
reset: () => void;
|
|
1897
1626
|
};
|
|
1898
1627
|
|
|
1899
|
-
export { type ChipiWalletData, type SessionState, type SessionWallet, type UseChipiSessionConfig, type UseChipiSessionReturn, type UseChipiWalletConfig, type UseChipiWalletReturn, useAddSessionKeyToContract, useApprove, useCallAnyContract, useChipiSession, useChipiWallet, useCreateSessionKey,
|
|
1628
|
+
export { type ChipiWalletData, type SessionState, type SessionWallet, type UseChipiSessionConfig, type UseChipiSessionReturn, type UseChipiWalletConfig, type UseChipiWalletReturn, useAddSessionKeyToContract, useApprove, useCallAnyContract, useChipiSession, useChipiWallet, useCreateSessionKey, useCreateWallet, useExecuteWithSession, useGetSessionData, useGetSku, useGetSkuList, useGetSkuPurchase, useGetTokenBalance, useGetTransactionList, useGetWallet, useMigrateWalletToPasskey, usePurchaseSku, useRecordSendTransaction, useRevokeSessionKey, useTransfer };
|