Skip to content

Commit

Permalink
remove unused type
Browse files Browse the repository at this point in the history
  • Loading branch information
swellander committed Jul 28, 2024
1 parent ee2f4c6 commit 4827647
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 44 deletions.
26 changes: 1 addition & 25 deletions packages/nextjs/app/types/OSO.ts
Original file line number Diff line number Diff line change
@@ -1,29 +1,5 @@
export interface OSOResponse {
onchain_metrics_by_project_v1: OnchainMetricsByProject[];
}

// This data is easy to get right now so we can use it for testing if necessary - We will remove later when the actual data is available
export interface OnchainMetricsByProject {
active_contract_count_90_days: number;
address_count: number;
address_count_90_days: number;
days_since_first_transaction: number;
display_name: string;
event_source: string;
gas_fees_sum: number;
gas_fees_sum_6_months: number;
high_activity_address_count_90_days: number;
low_activity_address_count_90_days: number;
medium_activity_address_count_90_days: number;
multi_project_address_count_90_days: number;
new_address_count_90_days: number;
application_id: string;
project_name: string;
project_namespace: string;
project_source: string;
returning_address_count_90_days: number;
transaction_count: number;
transaction_count_6_months: number;
onchain_metrics_by_project_v1: RF4ImpactMetricsByProject[];
}

// These are the actual metrics we will be using when the data is provided by OSO
Expand Down
36 changes: 17 additions & 19 deletions packages/nextjs/services/openSourceObserver/OSOFetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,24 @@ import { OSOResponse } from "~~/app/types/OSO";
export const fetchOSOProjectData = async () => {
const query = `{
onchain_metrics_by_project_v1(where: {event_source: {_eq: "OPTIMISM"}}) {
active_contract_count_90_days
address_count
address_count_90_days
days_since_first_transaction
display_name
event_source
gas_fees_sum
gas_fees_sum_6_months
high_activity_address_count_90_days
low_activity_address_count_90_days
medium_activity_address_count_90_days
multi_project_address_count_90_days
new_address_count_90_days
project_id
project_name
project_namespace
project_source
returning_address_count_90_days
appplication_id
is_oss
gas_fees
transaction_count
transaction_count_6_months
trusted_transaction_count
trusted_transaction_share
trusted_users_onboarded
daily_active_addresses
trusted_daily_active_users
monthly_active_addresses
trusted_monthly_active_users
recurring_addresses
trusted_recurring_users
power_user_addresses
openrank_trusted_users_count
log_gas_fees
log_transaction_count
log_trusted_transaction_count
}
}`;

Expand Down

0 comments on commit 4827647

Please sign in to comment.