@ecency/sdk 2.3.98 → 2.3.99
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/browser/index.d.ts
CHANGED
|
@@ -7484,10 +7484,18 @@ interface IncomingRcResponse {
|
|
|
7484
7484
|
list: IncomingRcDelegation[];
|
|
7485
7485
|
}
|
|
7486
7486
|
|
|
7487
|
+
/**
|
|
7488
|
+
* One incoming HP delegation, as the received-delegation queries return it.
|
|
7489
|
+
*
|
|
7490
|
+
* `vesting_shares` is the legacy "n.nnnnnn VESTS" string. `timestamp` is
|
|
7491
|
+
* optional: the balance-api rows these are built from carry a block number
|
|
7492
|
+
* but no time, so it is absent there; only rows from the old Ecency endpoint
|
|
7493
|
+
* ever had it.
|
|
7494
|
+
*/
|
|
7487
7495
|
interface ReceivedVestingShare {
|
|
7488
7496
|
delegatee: string;
|
|
7489
7497
|
delegator: string;
|
|
7490
|
-
timestamp
|
|
7498
|
+
timestamp?: string;
|
|
7491
7499
|
vesting_shares: string;
|
|
7492
7500
|
}
|
|
7493
7501
|
|
|
@@ -7736,6 +7744,15 @@ declare function getIncomingRcQueryOptions(username: string | undefined): _tanst
|
|
|
7736
7744
|
};
|
|
7737
7745
|
};
|
|
7738
7746
|
|
|
7747
|
+
/**
|
|
7748
|
+
* Who delegates HP to `username`, largest first.
|
|
7749
|
+
*
|
|
7750
|
+
* Read from the HAF balance-api through {@link getAccountDelegationsQueryOptions}
|
|
7751
|
+
* (fetched via the shared query client, so a page showing the totals and the
|
|
7752
|
+
* list makes one request), not from the Ecency notification database any more.
|
|
7753
|
+
* The return shape is unchanged apart from `timestamp`, which balance-api does
|
|
7754
|
+
* not carry.
|
|
7755
|
+
*/
|
|
7739
7756
|
declare function getReceivedVestingSharesQueryOptions(username: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<ReceivedVestingShare[], Error, ReceivedVestingShare[], string[]>, "queryFn"> & {
|
|
7740
7757
|
queryFn?: _tanstack_react_query.QueryFunction<ReceivedVestingShare[], string[], never> | undefined;
|
|
7741
7758
|
} & {
|
|
@@ -8154,6 +8171,12 @@ declare function getHivePowerDelegatesInfiniteQueryOptions(username: string, lim
|
|
|
8154
8171
|
};
|
|
8155
8172
|
};
|
|
8156
8173
|
|
|
8174
|
+
/**
|
|
8175
|
+
* The same list as {@link getReceivedVestingSharesQueryOptions} under the key
|
|
8176
|
+
* the wallet's HP asset views use. Both read the HAF balance-api through the
|
|
8177
|
+
* shared account-delegations query, so neither depends on the Ecency
|
|
8178
|
+
* notification database.
|
|
8179
|
+
*/
|
|
8157
8180
|
declare function getHivePowerDelegatingsQueryOptions(username: string): _tanstack_react_query.OmitKeyof<_tanstack_react_query.UseQueryOptions<ReceivedVestingShare[], Error, ReceivedVestingShare[], string[]>, "queryFn"> & {
|
|
8158
8181
|
queryFn?: _tanstack_react_query.QueryFunction<ReceivedVestingShare[], string[], never> | undefined;
|
|
8159
8182
|
} & {
|