Skip to content

Instantly share code, notes, and snippets.

View ameba23's full-sized avatar

peg ameba23

View GitHub Profile
@ameba23
ameba23 / main.rs
Last active January 11, 2024 11:38
Proof of concept for web UI for Entropy with cache
use axum::{
extract::State,
http::StatusCode,
response::{IntoResponse, Response},
routing::get,
Router,
};
use entropy_testing_utils::{
chain_api::{entropy::runtime_types::pallet_relayer::pallet::RegisteredInfo, EntropyConfig},
test_client::{get_accounts, get_api, get_rpc, KeyVisibility},
require 'csv'
class Cryptotype
def initialize(type,hash,amount,rate,currentvalue,difference)
@type = type
@hash = hash.to_f
@amount = amount.to_f
@rate = rate.to_f
@currentvalue = currentvalue.to_f
@difference = difference.to_f

Keybase proof

I hereby claim:

  • I am ameba23 on github.
  • I am peg100 (https://keybase.io/peg100) on keybase.
  • I have a public key ASDP0fQe0eLtXqgZmRFjWyn2WAdMorNSD_bpBUz1z9gyOgo

To claim this, I am signing this object: