Portfolio Strategies
Asset Management for the Crypto Age
Global finance has new technology for asset management. Portfolio Strategies are non-custodial asset management products for the crypto age.
View More Details
Available Strategies
as of August 17, 2023Data source: Primitive
Ticker | Market Cap ($) | Performance (%) |
---|---|---|
USDPG | 0.00 | 0 |
ETHSP | 0.00 | 0 |
Arbiter
EVM Simulation
Arbiter is a simulation framework for EVM¹ based blockchains. Model risk with speed, EVM-parity, and custom agents using this open-source framework.
/// # Example Arbiter Simulationuse arbiter_core::{manager::Manager, middleware::RevmMiddleware};use ethers::providers::Middleware;use crate::bindings::counter::Counter;mod bindings;const TEST_ENV_LABEL: &str = "test";#[tokio::main]pub async fn main() -> Result<(), Box<dyn std::error::Error>> {// Make a new manager.let mut manager = Manager::new();let _ = manager.add_environment(TEST_ENV_LABEL, 1.0, 1);// Create a client with a signer to initiate transactions.let client_with_signer = std::sync::Arc::new(RevmMiddleware::new(manager.environments.get(TEST_ENV_LABEL).unwrap(),None,));// Start the simulation.manager.start_environment(TEST_ENV_LABEL)?;// Deploy contracts.let counter = Counter::deploy(client_with_signer.clone(), ())?.send().await?;// Execute transactions.for index in 0..10 {let _ = counter.increment().send().await?.await?;println!("Counter incremented to {}", index + 1);}// Do read calls.let count = counter.number().call().await?;println!("Counter count is {}", count);Ok(())}