forked from forbole/big-dipper-2.0-cosmos
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
713/handle action errors (forbole#714)
- Loading branch information
Showing
10 changed files
with
1,346 additions
and
1,180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 34 additions & 2 deletions
36
src/graphql/account.graphql → src/graphql/account_actions.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,75 @@ | ||
|
||
query Account($address: String!, $validatorAddress: String!) { | ||
export const AccountCommissionDocument = /* GraphQL */` | ||
query AccountCommission($validatorAddress: String!) { | ||
commission: action_validator_commission_amount(address: $validatorAddress) { | ||
coins | ||
} | ||
} | ||
`; | ||
|
||
export const AccountWithdrawalAddressDocument = /* GraphQL */` | ||
query AccountWithdrawalAddress($address: String!) { | ||
withdrawalAddress: action_delegator_withdraw_address(address: $address) { | ||
address | ||
} | ||
} | ||
`; | ||
|
||
export const AccountBalancesDocument = /* GraphQL */` | ||
query AccountBalances($address: String!) { | ||
accountBalances: action_account_balance(address: $address) { | ||
coins | ||
} | ||
} | ||
`; | ||
|
||
export const AccountDelegationBalanceDocument = /* GraphQL */` | ||
query AccountDelegationBalance($address: String!) { | ||
delegationBalance: action_delegation_total(address: $address) { | ||
coins | ||
} | ||
} | ||
`; | ||
|
||
export const AccountUnbondingBalanceDocument = /* GraphQL */` | ||
query AccountUnbondingBalance($address: String!) { | ||
unbondingBalance: action_unbonding_delegation_total(address: $address) { | ||
coins | ||
} | ||
} | ||
`; | ||
|
||
export const AccountDelegationRewardsDocument = /* GraphQL */` | ||
query AccountDelegationRewards($address: String!) { | ||
delegationRewards: action_delegation_reward(address: $address) { | ||
validatorAddress: validator_address | ||
coins | ||
} | ||
} | ||
`; | ||
|
||
export const AccountDelegationsDocument = /* GraphQL */` | ||
query AccountDelegations($address: String!, $offset: Int = 0, $limit: Int = 10) { | ||
delegations: action_delegation(address: $address, limit: $limit, offset: $offset, count_total: true){ | ||
delegations | ||
pagination | ||
} | ||
} | ||
`; | ||
|
||
export const AccountRedelegationsDocument = /* GraphQL */` | ||
query AccountRedelegations($address: String!, $offset: Int = 0, $limit: Int = 10) { | ||
redelegations: action_redelegation(address: $address, limit: $limit, offset: $offset, count_total: true){ | ||
redelegations | ||
pagination | ||
} | ||
} | ||
`; | ||
|
||
export const AccountUndelegationsDocument = /* GraphQL */` | ||
query AccountUndelegations($address: String!, $offset: Int = 0, $limit: Int = 10) { | ||
undelegations: action_unbonding_delegation(address: $address, limit: $limit, offset: $offset, count_total: true){ | ||
undelegations: unbonding_delegations | ||
pagination | ||
} | ||
} | ||
`; |
Oops, something went wrong.