Skip to content

Commit

Permalink
updated metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
clockworkgr committed May 29, 2024
1 parent 3fddf98 commit abeea07
Show file tree
Hide file tree
Showing 55 changed files with 972 additions and 949 deletions.
191 changes: 109 additions & 82 deletions hasura/metadata/actions.graphql
Original file line number Diff line number Diff line change
@@ -1,81 +1,103 @@
type Query {
action_account_balance(
address: String!
height: Int
): ActionBalance

action_delegation_reward(
address: String!
height: Int
): [ActionDelegationReward]

action_delegator_withdraw_address(
address: String!
): ActionAddress!

action_delegation(
address: String!
height: Int
offset: Int
limit: Int
count_total: Boolean
): ActionDelegationResponse

action_delegation_total(
address: String!
height: Int
): ActionBalance

action_redelegation(
address: String!
height: Int
offset: Int
limit: Int
count_total: Boolean
): ActionRedelegationResponse

action_unbonding_delegation(
address: String!
height: Int
offset: Int
limit: Int
count_total: Boolean
): ActionUnbondingDelegationResponse

action_unbonding_delegation_total(
address: String!
height: Int
): ActionBalance

action_validator_commission_amount(
address: String!
): ActionValidatorCommissionAmount

action_validator_delegations(
address: String!
offset: Int
limit: Int
count_total: Boolean
): ActionDelegationResponse

action_validator_redelegations_from(
address: String!
height: Int
offset: Int
limit: Int
count_total: Boolean
): ActionRedelegationResponse

action_validator_unbonding_delegations(
address: String!
offset: Int
limit: Int
count_total: Boolean
): ActionUnbondingDelegationResponse
action_account_balance(
address: String!
height: Int
): ActionBalance
}

type Query {
action_delegation(
address: String!
height: Int
offset: Int
limit: Int
count_total: Boolean
): ActionDelegationResponse
}

type Query {
action_delegation_reward(
address: String!
height: Int
): [ActionDelegationReward]
}

type Query {
action_delegation_total(
address: String!
height: Int
): ActionBalance
}

type Query {
action_delegator_withdraw_address(
address: String!
): ActionAddress!
}

type Query {
action_redelegation(
address: String!
height: Int
offset: Int
limit: Int
count_total: Boolean
): ActionRedelegationResponse
}

type Query {
action_unbonding_delegation(
address: String!
height: Int
offset: Int
limit: Int
count_total: Boolean
): ActionUnbondingDelegationResponse
}

type Query {
action_unbonding_delegation_total(
address: String!
height: Int
): ActionBalance
}

type Query {
action_validator_commission_amount(
address: String!
): ActionValidatorCommissionAmount
}

type Query {
action_validator_delegations(
address: String!
offset: Int
limit: Int
count_total: Boolean
): ActionDelegationResponse
}

type Query {
action_validator_redelegations_from(
address: String!
height: Int
offset: Int
limit: Int
count_total: Boolean
): ActionRedelegationResponse
}

type Query {
action_validator_unbonding_delegations(
address: String!
offset: Int
limit: Int
count_total: Boolean
): ActionUnbondingDelegationResponse
}

type ActionBalance {
coins: [ActionCoin]
coins: [ActionCoin]
}

type ActionDelegationReward {
Expand All @@ -84,32 +106,37 @@ type ActionDelegationReward {
}

type ActionAddress {
address: String!
address: String!
}

type ActionDelegationResponse {
delegations: [ActionDelegation]
pagination: ActionPagination
delegations: [ActionDelegation]
pagination: ActionPagination
}

type ActionRedelegationResponse {
redelegations: [ActionRedelegation]
pagination: ActionPagination
redelegations: [ActionRedelegation]
pagination: ActionPagination
}

type ActionUnbondingDelegationResponse {
unbonding_delegations: [ActionUnbondingDelegation]
pagination: ActionPagination
unbonding_delegations: [ActionUnbondingDelegation]
pagination: ActionPagination
}

type ActionValidatorCommissionAmount {
coins: [ActionCoin]
coins: [ActionCoin]
}

scalar ActionCoin

scalar ActionDelegation

scalar ActionEntry

scalar ActionPagination

scalar ActionRedelegation

scalar ActionUnbondingDelegation

1 change: 1 addition & 0 deletions hasura/metadata/api_limits.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions hasura/metadata/backend_configs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
101 changes: 50 additions & 51 deletions hasura/metadata/databases/bdjuno/tables/public_account.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,56 +2,55 @@ table:
name: account
schema: public
object_relationships:
- name: vesting_account
using:
manual_configuration:
column_mapping:
address: address
insertion_order: null
remote_table:
name: vesting_account
schema: public
- name: vesting_account
using:
manual_configuration:
column_mapping:
address: address
insertion_order: null
remote_table:
name: vesting_account
schema: public
array_relationships:
- name: proposal_deposits
using:
foreign_key_constraint_on:
column: depositor_address
table:
name: proposal_deposit
schema: public
- name: proposal_votes
using:
foreign_key_constraint_on:
column: voter_address
table:
name: proposal_vote
schema: public
- name: proposals
using:
foreign_key_constraint_on:
column: proposer_address
table:
name: proposal
schema: public
- name: validator_infos
using:
foreign_key_constraint_on:
column: self_delegate_address
table:
name: validator_info
schema: public
- name: vesting_accounts
using:
foreign_key_constraint_on:
column: address
table:
name: vesting_account
schema: public
- name: proposal_deposits
using:
foreign_key_constraint_on:
column: depositor_address
table:
name: proposal_deposit
schema: public
- name: proposal_votes
using:
foreign_key_constraint_on:
column: voter_address
table:
name: proposal_vote
schema: public
- name: proposals
using:
foreign_key_constraint_on:
column: proposer_address
table:
name: proposal
schema: public
- name: validator_infos
using:
foreign_key_constraint_on:
column: self_delegate_address
table:
name: validator_info
schema: public
- name: vesting_accounts
using:
foreign_key_constraint_on:
column: address
table:
name: vesting_account
schema: public
select_permissions:
- permission:
allow_aggregations: false
columns:
- address
filter: {}
limit: 100
role: anonymous
- role: anonymous
permission:
columns:
- address
filter: {}
limit: 100
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ table:
name: average_block_time_from_genesis
schema: public
select_permissions:
- permission:
allow_aggregations: false
columns:
- average_time
- height
filter: {}
limit: 1
role: anonymous
- role: anonymous
permission:
columns:
- average_time
- height
filter: {}
limit: 1
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ table:
name: average_block_time_per_day
schema: public
select_permissions:
- permission:
allow_aggregations: false
columns:
- average_time
- height
filter: {}
limit: 1
role: anonymous
- role: anonymous
permission:
columns:
- average_time
- height
filter: {}
limit: 1
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ table:
name: average_block_time_per_hour
schema: public
select_permissions:
- permission:
allow_aggregations: false
columns:
- average_time
- height
filter: {}
limit: 1
role: anonymous
- role: anonymous
permission:
columns:
- average_time
- height
filter: {}
limit: 1
Loading

0 comments on commit abeea07

Please sign in to comment.