diff --git a/hasura/metadata/actions.graphql b/hasura/metadata/actions.graphql index 0b70dfb6..fa62826d 100644 --- a/hasura/metadata/actions.graphql +++ b/hasura/metadata/actions.graphql @@ -22,6 +22,18 @@ type Query { eosrate_stats: [EOSRateStats] } +type Query { + evm_token_history( + range: String! + ): [EVMTokenHistory] +} + +type Query { + evm_transactions_history( + range: String! + ): [EVMTransaction] +} + type Mutation { getProducersInfo( bpParams: GetProducersInfoInput! @@ -113,3 +125,15 @@ type EOSRateStats { trustiness: Float } +type EVMTransaction { + datetime: String + transactions_count: Int + avg_gas_used: Float +} + +type EVMTokenHistory { + datetime: String + incoming: Float + outgoing: Float +} + diff --git a/hasura/metadata/actions.yaml b/hasura/metadata/actions.yaml index a11591bd..a4fdf99e 100644 --- a/hasura/metadata/actions.yaml +++ b/hasura/metadata/actions.yaml @@ -26,6 +26,14 @@ actions: handler: '{{HASURA_GRAPHQL_ACTION_BASE_URL}}/get-eos-rate' permissions: - role: guest + - name: evm_token_history + definition: + kind: "" + handler: '{{HASURA_GRAPHQL_ACTION_EVM_URL}}/evm-token-history' + - name: evm_transactions_history + definition: + kind: "" + handler: '{{HASURA_GRAPHQL_ACTION_EVM_URL}}/evm-transactions-history' - name: getProducersInfo definition: kind: synchronous @@ -72,4 +80,6 @@ custom_types: - name: TransferFaucetTokensOutput - name: GetProducersInfoOutput - name: EOSRateStats + - name: EVMTransaction + - name: EVMTokenHistory scalars: []