@ledgerhq/coin-aptos
Version:
Ledger Aptos Coin integration
49 lines • 1.46 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetCurrentDelegatorBalancesData = exports.GetAccountTransactionsDataGt = exports.GetAccountTransactionsData = void 0;
const client_1 = require("@apollo/client");
exports.GetAccountTransactionsData = (0, client_1.gql) `
query GetAccountTransactionsData($address: String, $limit: Int, $offset: Int) {
account_transactions(
where: { account_address: { _eq: $address } }
limit: $limit
offset: $offset
) {
transaction_version
__typename
}
}
`;
exports.GetAccountTransactionsDataGt = (0, client_1.gql) `
query GetAccountTransactionsDataGt($address: String, $limit: Int, $gt: bigint, $offset: Int) {
account_transactions(
where: { account_address: { _eq: $address }, transaction_version: { _gt: $gt } }
limit: $limit
offset: $offset
) {
transaction_version
__typename
}
}
`;
exports.GetCurrentDelegatorBalancesData = (0, client_1.gql) `
query GetCurrentDelegatorBalances {
current_delegator_balances(distinct_on: pool_address) {
current_pool_balance {
total_coins
operator_commission_percentage
staking_pool_address
total_shares
}
shares
delegator_address
staking_pool_metadata {
operator_aptos_name {
domain_with_suffix
is_active
}
}
}
}
`;
//# sourceMappingURL=queries.js.map