@aintivirus-ai/mixer-sdk 1.0.5 → 1.0.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.
|
@@ -15,7 +15,7 @@ export declare class AintiVirusEVMSubgraph {
|
|
|
15
15
|
/**
|
|
16
16
|
* Convenience helper when you don't know the Protocol entity id.
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
getProtocolData(): Promise<ProtocolState | null>;
|
|
19
19
|
/**
|
|
20
20
|
* Mixer pools (mode + fixed amount).
|
|
21
21
|
*/
|
|
@@ -64,8 +64,8 @@ class AintiVirusEVMSubgraph {
|
|
|
64
64
|
/**
|
|
65
65
|
* Convenience helper when you don't know the Protocol entity id.
|
|
66
66
|
*/
|
|
67
|
-
async
|
|
68
|
-
const data = await this.request(queries_1.QUERIES.
|
|
67
|
+
async getProtocolData() {
|
|
68
|
+
const data = await this.request(queries_1.QUERIES.protocolData);
|
|
69
69
|
const p = data.protocols?.[0];
|
|
70
70
|
if (!p)
|
|
71
71
|
return null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const QUERIES: {
|
|
2
2
|
readonly protocol: "\n query GetProtocol($id: ID!) {\n protocol(id: $id) {\n id\n feeRate\n relayerFeeRate\n factoryAddress\n stakingAddress\n nextSeasonDuration\n currentSeasonId\n totalDeposited\n totalWithdrawn\n depositCount\n withdrawalCount\n totalStaked\n totalClaimed\n updatedBlockNumber\n updatedBlockTimestamp\n updatedTransactionHash\n }\n }\n ";
|
|
3
|
-
readonly
|
|
3
|
+
readonly protocolData: "\n query GetProtocolData {\n protocols(first: 1, orderBy: updatedBlockTimestamp, orderDirection: desc) {\n id\n feeRate\n relayerFeeRate\n factoryAddress\n stakingAddress\n nextSeasonDuration\n currentSeasonId\n totalDeposited\n totalWithdrawn\n depositCount\n withdrawalCount\n totalStaked\n totalClaimed\n updatedBlockNumber\n updatedBlockTimestamp\n updatedTransactionHash\n }\n }\n ";
|
|
4
4
|
readonly mixerPools: "\n query GetMixerPools(\n $first: Int!,\n $skip: Int!,\n $where: MixerPool_filter,\n $orderBy: MixerPool_orderBy!,\n $orderDirection: OrderDirection!\n ) {\n mixerPools(\n first: $first,\n skip: $skip,\n where: $where,\n orderBy: $orderBy,\n orderDirection: $orderDirection\n ) {\n id\n mode\n amount\n address\n deployedBlockNumber\n deployedBlockTimestamp\n deployedTransactionHash\n totalDeposited\n totalWithdrawn\n depositCount\n withdrawalCount\n }\n }\n ";
|
|
5
5
|
readonly mixerPoolById: "\n query GetMixerPool($id: ID!) {\n mixerPool(id: $id) {\n id\n mode\n amount\n address\n deployedBlockNumber\n deployedBlockTimestamp\n deployedTransactionHash\n totalDeposited\n totalWithdrawn\n depositCount\n withdrawalCount\n }\n }\n ";
|
|
6
6
|
readonly deposits: "\n query GetDeposits(\n $first: Int!,\n $skip: Int!,\n $where: Deposit_filter,\n $orderBy: Deposit_orderBy!,\n $orderDirection: OrderDirection!\n ) {\n deposits(\n first: $first,\n skip: $skip,\n where: $where,\n orderBy: $orderBy,\n orderDirection: $orderDirection\n ) {\n id\n pool { id }\n commitment\n blockNumber\n blockTimestamp\n transactionHash\n }\n }\n ";
|
package/package.json
CHANGED