use crate::errors::Web3ProxyResult;
use anyhow::Context;
use entities::{user, user_tier};
use ethers::prelude::Address;
use migration::sea_orm::{
self, ActiveModelTrait, ColumnTrait, DatabaseTransaction, EntityTrait, IntoActiveModel,
QueryFilter,
};
use tracing::info;
pub async fn get_user_and_tier_from_address(
user_address: &Address,
txn: &DatabaseTransaction,
) -> Web3ProxyResult