├── .gitignore ├── .gitmodules ├── .rustfmt.toml ├── Anchor.toml ├── Cargo.toml ├── LICENSE ├── README.md ├── client ├── dexterity │ ├── __init__.py │ ├── codegen │ │ ├── alpha_risk_engine │ │ │ ├── __init__.py │ │ │ ├── accounts.py │ │ │ ├── addrs.py │ │ │ ├── instructions │ │ │ │ ├── __init__.py │ │ │ │ ├── create_risk_state_account.py │ │ │ │ ├── instruction_tag.py │ │ │ │ ├── validate_account_health.py │ │ │ │ └── validate_account_liquidation.py │ │ │ └── types │ │ │ │ ├── __init__.py │ │ │ │ └── health.py │ │ ├── dex │ │ │ ├── __init__.py │ │ │ ├── accounts.py │ │ │ ├── addrs.py │ │ │ ├── constants.py │ │ │ ├── instructions │ │ │ │ ├── __init__.py │ │ │ │ ├── cancel_order.py │ │ │ │ ├── choose_successor.py │ │ │ │ ├── claim_authority.py │ │ │ │ ├── clear_expired_orderbook.py │ │ │ │ ├── consume_orderbook_events.py │ │ │ │ ├── deposit_funds.py │ │ │ │ ├── initialize_combo.py │ │ │ │ ├── initialize_market_product.py │ │ │ │ ├── initialize_market_product_group.py │ │ │ │ ├── initialize_trader_risk_group.py │ │ │ │ ├── instruction_tag.py │ │ │ │ ├── new_order.py │ │ │ │ ├── remove_market_product.py │ │ │ │ ├── sweep_fees.py │ │ │ │ ├── transfer_full_position.py │ │ │ │ ├── update_product_funding.py │ │ │ │ ├── update_trader_funding.py │ │ │ │ └── withdraw_funds.py │ │ │ └── types │ │ │ │ ├── __init__.py │ │ │ │ ├── account_tag.py │ │ │ │ ├── action_status.py │ │ │ │ ├── bitset.py │ │ │ │ ├── call_back_info.py │ │ │ │ ├── cancel_order_params.py │ │ │ │ ├── clear_expired_orderbook_params.py │ │ │ │ ├── combo.py │ │ │ │ ├── consume_orderbook_events_params.py │ │ │ │ ├── deposit_funds_params.py │ │ │ │ ├── dex_error.py │ │ │ │ ├── fractional.py │ │ │ │ ├── health_info.py │ │ │ │ ├── health_result.py │ │ │ │ ├── health_status.py │ │ │ │ ├── initialize_combo_params.py │ │ │ │ ├── initialize_market_product_group_params.py │ │ │ │ ├── initialize_market_product_params.py │ │ │ │ ├── leg.py │ │ │ │ ├── liquidation_info.py │ │ │ │ ├── market_product_group.py │ │ │ │ ├── new_order_params.py │ │ │ │ ├── open_orders.py │ │ │ │ ├── open_orders_metadata.py │ │ │ │ ├── open_orders_node.py │ │ │ │ ├── operation_type.py │ │ │ │ ├── order_info.py │ │ │ │ ├── order_type.py │ │ │ │ ├── outright.py │ │ │ │ ├── params.py │ │ │ │ ├── price_ewma.py │ │ │ │ ├── product.py │ │ │ │ ├── product_array.py │ │ │ │ ├── product_metadata.py │ │ │ │ ├── product_status.py │ │ │ │ ├── risk_output_register.py │ │ │ │ ├── social_loss.py │ │ │ │ ├── trader_fee_params.py │ │ │ │ ├── trader_fees.py │ │ │ │ ├── trader_position.py │ │ │ │ ├── trader_risk_group.py │ │ │ │ ├── update_product_funding_params.py │ │ │ │ ├── util_error.py │ │ │ │ └── withdraw_funds_params.py │ │ ├── instruments │ │ │ ├── __init__.py │ │ │ ├── accounts.py │ │ │ ├── addrs.py │ │ │ ├── instructions │ │ │ │ ├── __init__.py │ │ │ │ ├── close_derivative_account.py │ │ │ │ ├── initialize_derivative.py │ │ │ │ ├── initialize_fixed_income.py │ │ │ │ ├── instruction_tag.py │ │ │ │ ├── settle_derivative.py │ │ │ │ └── settle_fixed_income.py │ │ │ └── types │ │ │ │ ├── __init__.py │ │ │ │ ├── account_tag.py │ │ │ │ ├── derivative_error.py │ │ │ │ ├── derivative_metadata.py │ │ │ │ ├── expiration_status.py │ │ │ │ ├── fixed_income_metadata.py │ │ │ │ ├── initialize_derivative_params.py │ │ │ │ ├── initialize_fixed_income_params.py │ │ │ │ ├── instrument_type.py │ │ │ │ └── oracle_type.py │ │ └── noop_risk_engine │ │ │ ├── __init__.py │ │ │ ├── addrs.py │ │ │ └── instructions │ │ │ ├── __init__.py │ │ │ ├── create_risk_state_account.py │ │ │ ├── instruction_tag.py │ │ │ ├── validate_account_health.py │ │ │ └── validate_account_liquidation.py │ ├── constant_fees │ │ ├── actions.py │ │ ├── addrs.py │ │ ├── instructions.py │ │ └── state.py │ ├── dex │ │ ├── actions.py │ │ ├── addrs.py │ │ └── sdk_context.py │ ├── dummy_oracle │ │ ├── actions.py │ │ ├── instructions │ │ │ ├── __init__.py │ │ │ ├── common.py │ │ │ ├── initialize_clock.py │ │ │ ├── initialize_oracle.py │ │ │ ├── update_clock.py │ │ │ └── update_price.py │ │ └── state │ │ │ ├── __init__.py │ │ │ ├── clock.py │ │ │ ├── common.py │ │ │ └── oracle_price.py │ ├── instruments │ │ ├── actions.py │ │ └── instructions │ │ │ ├── __init__.py │ │ │ ├── initialize_derivative.py │ │ │ └── initialize_fixed_income.py │ ├── program_ids.py │ ├── risk │ │ └── actions.py │ ├── scripts │ │ ├── build │ │ ├── discriminant.py │ │ ├── extract_program_ids.py │ │ ├── generate_code.py │ │ ├── get_trader_risk_groups_key.py │ │ ├── keypair_to_b58.py │ │ └── start_test_validator.py │ └── utils │ │ ├── __init__.py │ │ ├── aob │ │ ├── __init__.py │ │ ├── instructions.py │ │ └── state │ │ │ ├── __init__.py │ │ │ ├── base.py │ │ │ ├── event_queue.py │ │ │ ├── market_state.py │ │ │ └── slab.py │ │ ├── random_hash.py │ │ └── solana.py ├── poetry.lock ├── pyproject.toml └── requirements.txt ├── deploy_all.sh ├── dexteritysdk ├── Cargo.toml └── src │ ├── admin.rs │ ├── bootstrap.rs │ ├── common │ ├── mod.rs │ └── utils.rs │ ├── context.rs │ ├── instrument │ ├── initialize_derivative.rs │ ├── mod.rs │ └── settle_derivative.rs │ ├── lib.rs │ ├── oracle │ ├── create_clock.rs │ ├── create_oracle.rs │ ├── mod.rs │ ├── update_clock.rs │ └── update_oracle.rs │ ├── processor │ ├── cancel_order.rs │ ├── clear_expired_orderbook.rs │ ├── combo.rs │ ├── consume_orderbook_events.rs │ ├── deposit_funds.rs │ ├── fees.rs │ ├── market_product.rs │ ├── market_product_group.rs │ ├── mod.rs │ ├── new_order.rs │ ├── orderbook.rs │ ├── remove_market_product.rs │ ├── trader_risk_group.rs │ ├── transfer_full_position.rs │ ├── update_product_funding.rs │ └── update_trader_funding.rs │ ├── sdk_client.rs │ ├── state.rs │ └── trader.rs ├── master_program_config.json ├── package.json ├── programs ├── dex │ ├── Cargo.toml │ ├── src │ │ ├── error.rs │ │ ├── lib.rs │ │ ├── processor │ │ │ ├── cancel_order.rs │ │ │ ├── change_authority.rs │ │ │ ├── clear_expired_orderbook.rs │ │ │ ├── consume_orderbook_events.rs │ │ │ ├── deposit_funds.rs │ │ │ ├── initialize_combo.rs │ │ │ ├── initialize_market_product.rs │ │ │ ├── initialize_market_product_group.rs │ │ │ ├── initialize_trader_risk_group.rs │ │ │ ├── mod.rs │ │ │ ├── new_order.rs │ │ │ ├── remove_market_product.rs │ │ │ ├── sweep_fees.rs │ │ │ ├── transfer_full_position.rs │ │ │ ├── update_product_funding.rs │ │ │ ├── update_trader_funding.rs │ │ │ └── withdraw_funds.rs │ │ ├── state │ │ │ ├── callback_info.rs │ │ │ ├── constants.rs │ │ │ ├── enums.rs │ │ │ ├── fee_model.rs │ │ │ ├── market_product_group.rs │ │ │ ├── mod.rs │ │ │ ├── open_orders.rs │ │ │ ├── products.rs │ │ │ ├── risk_engine_register.rs │ │ │ └── trader_risk_group.rs │ │ └── utils │ │ │ ├── bitset.rs │ │ │ ├── cpi.rs │ │ │ ├── loadable.rs │ │ │ ├── logs.rs │ │ │ ├── mod.rs │ │ │ ├── numeric.rs │ │ │ ├── orderbook.rs │ │ │ ├── param.rs │ │ │ └── validation.rs │ └── tests │ │ ├── setup.rs │ │ ├── test_alpha_risk_engine.rs │ │ ├── test_combo_alpha_risk_engine.rs │ │ ├── test_combo_orders.rs │ │ ├── test_expiration.rs │ │ ├── test_funding.rs │ │ ├── test_liquidation_simple_risk_engine.rs │ │ ├── test_new_order_rounding_logic.rs │ │ ├── test_no_negative_order_size.rs │ │ ├── test_orderbook_layering.rs │ │ ├── test_replace_trader_position.rs │ │ ├── test_self_trade.rs │ │ ├── test_simple_trade.rs │ │ └── test_sweep_fees.rs ├── dummy-oracle │ ├── Cargo.toml │ └── src │ │ ├── entrypoint.rs │ │ ├── error.rs │ │ ├── instruction.rs │ │ ├── lib.rs │ │ ├── processor.rs │ │ ├── processor │ │ ├── initialize_clock.rs │ │ ├── initialize_oracle.rs │ │ ├── update_clock.rs │ │ └── update_price.rs │ │ ├── state.rs │ │ └── utils.rs ├── fees │ └── constant-fees │ │ ├── Cargo.toml │ │ └── src │ │ └── lib.rs ├── instruments │ ├── Cargo.toml │ ├── Xargo.toml │ └── src │ │ ├── error.rs │ │ ├── lib.rs │ │ ├── oracle.rs │ │ ├── processor │ │ ├── close_derivative_account.rs │ │ ├── initialize_derivative.rs │ │ ├── mod.rs │ │ └── settle_derivative.rs │ │ └── state │ │ ├── constants.rs │ │ ├── derivative_metadata.rs │ │ ├── enums.rs │ │ └── mod.rs └── risk │ ├── alpha-risk-engine │ ├── Cargo.toml │ └── src │ │ └── lib.rs │ └── noop-risk-engine │ ├── Cargo.toml │ └── src │ └── lib.rs ├── test.sh └── tsconfig.json /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/.gitmodules -------------------------------------------------------------------------------- /.rustfmt.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/.rustfmt.toml -------------------------------------------------------------------------------- /Anchor.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/Anchor.toml -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/README.md -------------------------------------------------------------------------------- /client/dexterity/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /client/dexterity/codegen/alpha_risk_engine/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/alpha_risk_engine/__init__.py -------------------------------------------------------------------------------- /client/dexterity/codegen/alpha_risk_engine/accounts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/alpha_risk_engine/accounts.py -------------------------------------------------------------------------------- /client/dexterity/codegen/alpha_risk_engine/addrs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/alpha_risk_engine/addrs.py -------------------------------------------------------------------------------- /client/dexterity/codegen/alpha_risk_engine/instructions/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/alpha_risk_engine/instructions/__init__.py -------------------------------------------------------------------------------- /client/dexterity/codegen/alpha_risk_engine/instructions/create_risk_state_account.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/alpha_risk_engine/instructions/create_risk_state_account.py -------------------------------------------------------------------------------- /client/dexterity/codegen/alpha_risk_engine/instructions/instruction_tag.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/alpha_risk_engine/instructions/instruction_tag.py -------------------------------------------------------------------------------- /client/dexterity/codegen/alpha_risk_engine/instructions/validate_account_health.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/alpha_risk_engine/instructions/validate_account_health.py -------------------------------------------------------------------------------- /client/dexterity/codegen/alpha_risk_engine/instructions/validate_account_liquidation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/alpha_risk_engine/instructions/validate_account_liquidation.py -------------------------------------------------------------------------------- /client/dexterity/codegen/alpha_risk_engine/types/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/alpha_risk_engine/types/__init__.py -------------------------------------------------------------------------------- /client/dexterity/codegen/alpha_risk_engine/types/health.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/alpha_risk_engine/types/health.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/__init__.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/accounts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/accounts.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/addrs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/addrs.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/constants.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/constants.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/instructions/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/instructions/__init__.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/instructions/cancel_order.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/instructions/cancel_order.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/instructions/choose_successor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/instructions/choose_successor.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/instructions/claim_authority.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/instructions/claim_authority.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/instructions/clear_expired_orderbook.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/instructions/clear_expired_orderbook.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/instructions/consume_orderbook_events.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/instructions/consume_orderbook_events.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/instructions/deposit_funds.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/instructions/deposit_funds.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/instructions/initialize_combo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/instructions/initialize_combo.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/instructions/initialize_market_product.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/instructions/initialize_market_product.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/instructions/initialize_market_product_group.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/instructions/initialize_market_product_group.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/instructions/initialize_trader_risk_group.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/instructions/initialize_trader_risk_group.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/instructions/instruction_tag.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/instructions/instruction_tag.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/instructions/new_order.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/instructions/new_order.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/instructions/remove_market_product.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/instructions/remove_market_product.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/instructions/sweep_fees.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/instructions/sweep_fees.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/instructions/transfer_full_position.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/instructions/transfer_full_position.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/instructions/update_product_funding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/instructions/update_product_funding.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/instructions/update_trader_funding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/instructions/update_trader_funding.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/instructions/withdraw_funds.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/instructions/withdraw_funds.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/__init__.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/account_tag.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/account_tag.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/action_status.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/action_status.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/bitset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/bitset.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/call_back_info.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/call_back_info.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/cancel_order_params.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/cancel_order_params.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/clear_expired_orderbook_params.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/clear_expired_orderbook_params.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/combo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/combo.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/consume_orderbook_events_params.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/consume_orderbook_events_params.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/deposit_funds_params.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/deposit_funds_params.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/dex_error.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/dex_error.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/fractional.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/fractional.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/health_info.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/health_info.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/health_result.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/health_result.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/health_status.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/health_status.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/initialize_combo_params.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/initialize_combo_params.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/initialize_market_product_group_params.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/initialize_market_product_group_params.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/initialize_market_product_params.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/initialize_market_product_params.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/leg.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/leg.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/liquidation_info.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/liquidation_info.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/market_product_group.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/market_product_group.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/new_order_params.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/new_order_params.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/open_orders.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/open_orders.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/open_orders_metadata.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/open_orders_metadata.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/open_orders_node.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/open_orders_node.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/operation_type.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/operation_type.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/order_info.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/order_info.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/order_type.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/order_type.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/outright.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/outright.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/params.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/params.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/price_ewma.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/price_ewma.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/product.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/product.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/product_array.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/product_array.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/product_metadata.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/product_metadata.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/product_status.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/product_status.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/risk_output_register.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/risk_output_register.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/social_loss.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/social_loss.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/trader_fee_params.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/trader_fee_params.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/trader_fees.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/trader_fees.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/trader_position.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/trader_position.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/trader_risk_group.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/trader_risk_group.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/update_product_funding_params.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/update_product_funding_params.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/util_error.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/util_error.py -------------------------------------------------------------------------------- /client/dexterity/codegen/dex/types/withdraw_funds_params.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/dex/types/withdraw_funds_params.py -------------------------------------------------------------------------------- /client/dexterity/codegen/instruments/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/instruments/__init__.py -------------------------------------------------------------------------------- /client/dexterity/codegen/instruments/accounts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/instruments/accounts.py -------------------------------------------------------------------------------- /client/dexterity/codegen/instruments/addrs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/instruments/addrs.py -------------------------------------------------------------------------------- /client/dexterity/codegen/instruments/instructions/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/instruments/instructions/__init__.py -------------------------------------------------------------------------------- /client/dexterity/codegen/instruments/instructions/close_derivative_account.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/instruments/instructions/close_derivative_account.py -------------------------------------------------------------------------------- /client/dexterity/codegen/instruments/instructions/initialize_derivative.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/instruments/instructions/initialize_derivative.py -------------------------------------------------------------------------------- /client/dexterity/codegen/instruments/instructions/initialize_fixed_income.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/instruments/instructions/initialize_fixed_income.py -------------------------------------------------------------------------------- /client/dexterity/codegen/instruments/instructions/instruction_tag.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/instruments/instructions/instruction_tag.py -------------------------------------------------------------------------------- /client/dexterity/codegen/instruments/instructions/settle_derivative.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/instruments/instructions/settle_derivative.py -------------------------------------------------------------------------------- /client/dexterity/codegen/instruments/instructions/settle_fixed_income.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/instruments/instructions/settle_fixed_income.py -------------------------------------------------------------------------------- /client/dexterity/codegen/instruments/types/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/instruments/types/__init__.py -------------------------------------------------------------------------------- /client/dexterity/codegen/instruments/types/account_tag.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/instruments/types/account_tag.py -------------------------------------------------------------------------------- /client/dexterity/codegen/instruments/types/derivative_error.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/instruments/types/derivative_error.py -------------------------------------------------------------------------------- /client/dexterity/codegen/instruments/types/derivative_metadata.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/instruments/types/derivative_metadata.py -------------------------------------------------------------------------------- /client/dexterity/codegen/instruments/types/expiration_status.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/instruments/types/expiration_status.py -------------------------------------------------------------------------------- /client/dexterity/codegen/instruments/types/fixed_income_metadata.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/instruments/types/fixed_income_metadata.py -------------------------------------------------------------------------------- /client/dexterity/codegen/instruments/types/initialize_derivative_params.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/instruments/types/initialize_derivative_params.py -------------------------------------------------------------------------------- /client/dexterity/codegen/instruments/types/initialize_fixed_income_params.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/instruments/types/initialize_fixed_income_params.py -------------------------------------------------------------------------------- /client/dexterity/codegen/instruments/types/instrument_type.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/instruments/types/instrument_type.py -------------------------------------------------------------------------------- /client/dexterity/codegen/instruments/types/oracle_type.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/instruments/types/oracle_type.py -------------------------------------------------------------------------------- /client/dexterity/codegen/noop_risk_engine/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/noop_risk_engine/__init__.py -------------------------------------------------------------------------------- /client/dexterity/codegen/noop_risk_engine/addrs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/noop_risk_engine/addrs.py -------------------------------------------------------------------------------- /client/dexterity/codegen/noop_risk_engine/instructions/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/noop_risk_engine/instructions/__init__.py -------------------------------------------------------------------------------- /client/dexterity/codegen/noop_risk_engine/instructions/create_risk_state_account.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/noop_risk_engine/instructions/create_risk_state_account.py -------------------------------------------------------------------------------- /client/dexterity/codegen/noop_risk_engine/instructions/instruction_tag.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/noop_risk_engine/instructions/instruction_tag.py -------------------------------------------------------------------------------- /client/dexterity/codegen/noop_risk_engine/instructions/validate_account_health.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/noop_risk_engine/instructions/validate_account_health.py -------------------------------------------------------------------------------- /client/dexterity/codegen/noop_risk_engine/instructions/validate_account_liquidation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/codegen/noop_risk_engine/instructions/validate_account_liquidation.py -------------------------------------------------------------------------------- /client/dexterity/constant_fees/actions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/constant_fees/actions.py -------------------------------------------------------------------------------- /client/dexterity/constant_fees/addrs.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /client/dexterity/constant_fees/instructions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/constant_fees/instructions.py -------------------------------------------------------------------------------- /client/dexterity/constant_fees/state.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/constant_fees/state.py -------------------------------------------------------------------------------- /client/dexterity/dex/actions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/dex/actions.py -------------------------------------------------------------------------------- /client/dexterity/dex/addrs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/dex/addrs.py -------------------------------------------------------------------------------- /client/dexterity/dex/sdk_context.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/dex/sdk_context.py -------------------------------------------------------------------------------- /client/dexterity/dummy_oracle/actions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/dummy_oracle/actions.py -------------------------------------------------------------------------------- /client/dexterity/dummy_oracle/instructions/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/dummy_oracle/instructions/__init__.py -------------------------------------------------------------------------------- /client/dexterity/dummy_oracle/instructions/common.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/dummy_oracle/instructions/common.py -------------------------------------------------------------------------------- /client/dexterity/dummy_oracle/instructions/initialize_clock.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/dummy_oracle/instructions/initialize_clock.py -------------------------------------------------------------------------------- /client/dexterity/dummy_oracle/instructions/initialize_oracle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/dummy_oracle/instructions/initialize_oracle.py -------------------------------------------------------------------------------- /client/dexterity/dummy_oracle/instructions/update_clock.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/dummy_oracle/instructions/update_clock.py -------------------------------------------------------------------------------- /client/dexterity/dummy_oracle/instructions/update_price.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/dummy_oracle/instructions/update_price.py -------------------------------------------------------------------------------- /client/dexterity/dummy_oracle/state/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/dummy_oracle/state/__init__.py -------------------------------------------------------------------------------- /client/dexterity/dummy_oracle/state/clock.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/dummy_oracle/state/clock.py -------------------------------------------------------------------------------- /client/dexterity/dummy_oracle/state/common.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/dummy_oracle/state/common.py -------------------------------------------------------------------------------- /client/dexterity/dummy_oracle/state/oracle_price.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/dummy_oracle/state/oracle_price.py -------------------------------------------------------------------------------- /client/dexterity/instruments/actions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/instruments/actions.py -------------------------------------------------------------------------------- /client/dexterity/instruments/instructions/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/instruments/instructions/__init__.py -------------------------------------------------------------------------------- /client/dexterity/instruments/instructions/initialize_derivative.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/instruments/instructions/initialize_derivative.py -------------------------------------------------------------------------------- /client/dexterity/instruments/instructions/initialize_fixed_income.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/instruments/instructions/initialize_fixed_income.py -------------------------------------------------------------------------------- /client/dexterity/program_ids.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/program_ids.py -------------------------------------------------------------------------------- /client/dexterity/risk/actions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/risk/actions.py -------------------------------------------------------------------------------- /client/dexterity/scripts/build: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/scripts/build -------------------------------------------------------------------------------- /client/dexterity/scripts/discriminant.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/scripts/discriminant.py -------------------------------------------------------------------------------- /client/dexterity/scripts/extract_program_ids.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/scripts/extract_program_ids.py -------------------------------------------------------------------------------- /client/dexterity/scripts/generate_code.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/scripts/generate_code.py -------------------------------------------------------------------------------- /client/dexterity/scripts/get_trader_risk_groups_key.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/scripts/get_trader_risk_groups_key.py -------------------------------------------------------------------------------- /client/dexterity/scripts/keypair_to_b58.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/scripts/keypair_to_b58.py -------------------------------------------------------------------------------- /client/dexterity/scripts/start_test_validator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/scripts/start_test_validator.py -------------------------------------------------------------------------------- /client/dexterity/utils/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/utils/__init__.py -------------------------------------------------------------------------------- /client/dexterity/utils/aob/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/utils/aob/__init__.py -------------------------------------------------------------------------------- /client/dexterity/utils/aob/instructions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/utils/aob/instructions.py -------------------------------------------------------------------------------- /client/dexterity/utils/aob/state/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/utils/aob/state/__init__.py -------------------------------------------------------------------------------- /client/dexterity/utils/aob/state/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/utils/aob/state/base.py -------------------------------------------------------------------------------- /client/dexterity/utils/aob/state/event_queue.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/utils/aob/state/event_queue.py -------------------------------------------------------------------------------- /client/dexterity/utils/aob/state/market_state.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/utils/aob/state/market_state.py -------------------------------------------------------------------------------- /client/dexterity/utils/aob/state/slab.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/utils/aob/state/slab.py -------------------------------------------------------------------------------- /client/dexterity/utils/random_hash.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/utils/random_hash.py -------------------------------------------------------------------------------- /client/dexterity/utils/solana.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/dexterity/utils/solana.py -------------------------------------------------------------------------------- /client/poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/poetry.lock -------------------------------------------------------------------------------- /client/pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/pyproject.toml -------------------------------------------------------------------------------- /client/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/client/requirements.txt -------------------------------------------------------------------------------- /deploy_all.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/deploy_all.sh -------------------------------------------------------------------------------- /dexteritysdk/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/dexteritysdk/Cargo.toml -------------------------------------------------------------------------------- /dexteritysdk/src/admin.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/dexteritysdk/src/admin.rs -------------------------------------------------------------------------------- /dexteritysdk/src/bootstrap.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/dexteritysdk/src/bootstrap.rs -------------------------------------------------------------------------------- /dexteritysdk/src/common/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/dexteritysdk/src/common/mod.rs -------------------------------------------------------------------------------- /dexteritysdk/src/common/utils.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/dexteritysdk/src/common/utils.rs -------------------------------------------------------------------------------- /dexteritysdk/src/context.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/dexteritysdk/src/context.rs -------------------------------------------------------------------------------- /dexteritysdk/src/instrument/initialize_derivative.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/dexteritysdk/src/instrument/initialize_derivative.rs -------------------------------------------------------------------------------- /dexteritysdk/src/instrument/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/dexteritysdk/src/instrument/mod.rs -------------------------------------------------------------------------------- /dexteritysdk/src/instrument/settle_derivative.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/dexteritysdk/src/instrument/settle_derivative.rs -------------------------------------------------------------------------------- /dexteritysdk/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/dexteritysdk/src/lib.rs -------------------------------------------------------------------------------- /dexteritysdk/src/oracle/create_clock.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/dexteritysdk/src/oracle/create_clock.rs -------------------------------------------------------------------------------- /dexteritysdk/src/oracle/create_oracle.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/dexteritysdk/src/oracle/create_oracle.rs -------------------------------------------------------------------------------- /dexteritysdk/src/oracle/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/dexteritysdk/src/oracle/mod.rs -------------------------------------------------------------------------------- /dexteritysdk/src/oracle/update_clock.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/dexteritysdk/src/oracle/update_clock.rs -------------------------------------------------------------------------------- /dexteritysdk/src/oracle/update_oracle.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/dexteritysdk/src/oracle/update_oracle.rs -------------------------------------------------------------------------------- /dexteritysdk/src/processor/cancel_order.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/dexteritysdk/src/processor/cancel_order.rs -------------------------------------------------------------------------------- /dexteritysdk/src/processor/clear_expired_orderbook.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/dexteritysdk/src/processor/clear_expired_orderbook.rs -------------------------------------------------------------------------------- /dexteritysdk/src/processor/combo.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/dexteritysdk/src/processor/combo.rs -------------------------------------------------------------------------------- /dexteritysdk/src/processor/consume_orderbook_events.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/dexteritysdk/src/processor/consume_orderbook_events.rs -------------------------------------------------------------------------------- /dexteritysdk/src/processor/deposit_funds.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/dexteritysdk/src/processor/deposit_funds.rs -------------------------------------------------------------------------------- /dexteritysdk/src/processor/fees.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/dexteritysdk/src/processor/fees.rs -------------------------------------------------------------------------------- /dexteritysdk/src/processor/market_product.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/dexteritysdk/src/processor/market_product.rs -------------------------------------------------------------------------------- /dexteritysdk/src/processor/market_product_group.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/dexteritysdk/src/processor/market_product_group.rs -------------------------------------------------------------------------------- /dexteritysdk/src/processor/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/dexteritysdk/src/processor/mod.rs -------------------------------------------------------------------------------- /dexteritysdk/src/processor/new_order.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/dexteritysdk/src/processor/new_order.rs -------------------------------------------------------------------------------- /dexteritysdk/src/processor/orderbook.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/dexteritysdk/src/processor/orderbook.rs -------------------------------------------------------------------------------- /dexteritysdk/src/processor/remove_market_product.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/dexteritysdk/src/processor/remove_market_product.rs -------------------------------------------------------------------------------- /dexteritysdk/src/processor/trader_risk_group.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/dexteritysdk/src/processor/trader_risk_group.rs -------------------------------------------------------------------------------- /dexteritysdk/src/processor/transfer_full_position.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/dexteritysdk/src/processor/transfer_full_position.rs -------------------------------------------------------------------------------- /dexteritysdk/src/processor/update_product_funding.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/dexteritysdk/src/processor/update_product_funding.rs -------------------------------------------------------------------------------- /dexteritysdk/src/processor/update_trader_funding.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/dexteritysdk/src/processor/update_trader_funding.rs -------------------------------------------------------------------------------- /dexteritysdk/src/sdk_client.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/dexteritysdk/src/sdk_client.rs -------------------------------------------------------------------------------- /dexteritysdk/src/state.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/dexteritysdk/src/state.rs -------------------------------------------------------------------------------- /dexteritysdk/src/trader.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/dexteritysdk/src/trader.rs -------------------------------------------------------------------------------- /master_program_config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/master_program_config.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/package.json -------------------------------------------------------------------------------- /programs/dex/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/Cargo.toml -------------------------------------------------------------------------------- /programs/dex/src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/src/error.rs -------------------------------------------------------------------------------- /programs/dex/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/src/lib.rs -------------------------------------------------------------------------------- /programs/dex/src/processor/cancel_order.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/src/processor/cancel_order.rs -------------------------------------------------------------------------------- /programs/dex/src/processor/change_authority.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/src/processor/change_authority.rs -------------------------------------------------------------------------------- /programs/dex/src/processor/clear_expired_orderbook.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/src/processor/clear_expired_orderbook.rs -------------------------------------------------------------------------------- /programs/dex/src/processor/consume_orderbook_events.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/src/processor/consume_orderbook_events.rs -------------------------------------------------------------------------------- /programs/dex/src/processor/deposit_funds.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/src/processor/deposit_funds.rs -------------------------------------------------------------------------------- /programs/dex/src/processor/initialize_combo.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/src/processor/initialize_combo.rs -------------------------------------------------------------------------------- /programs/dex/src/processor/initialize_market_product.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/src/processor/initialize_market_product.rs -------------------------------------------------------------------------------- /programs/dex/src/processor/initialize_market_product_group.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/src/processor/initialize_market_product_group.rs -------------------------------------------------------------------------------- /programs/dex/src/processor/initialize_trader_risk_group.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/src/processor/initialize_trader_risk_group.rs -------------------------------------------------------------------------------- /programs/dex/src/processor/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/src/processor/mod.rs -------------------------------------------------------------------------------- /programs/dex/src/processor/new_order.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/src/processor/new_order.rs -------------------------------------------------------------------------------- /programs/dex/src/processor/remove_market_product.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/src/processor/remove_market_product.rs -------------------------------------------------------------------------------- /programs/dex/src/processor/sweep_fees.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/src/processor/sweep_fees.rs -------------------------------------------------------------------------------- /programs/dex/src/processor/transfer_full_position.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/src/processor/transfer_full_position.rs -------------------------------------------------------------------------------- /programs/dex/src/processor/update_product_funding.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/src/processor/update_product_funding.rs -------------------------------------------------------------------------------- /programs/dex/src/processor/update_trader_funding.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/src/processor/update_trader_funding.rs -------------------------------------------------------------------------------- /programs/dex/src/processor/withdraw_funds.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/src/processor/withdraw_funds.rs -------------------------------------------------------------------------------- /programs/dex/src/state/callback_info.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/src/state/callback_info.rs -------------------------------------------------------------------------------- /programs/dex/src/state/constants.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/src/state/constants.rs -------------------------------------------------------------------------------- /programs/dex/src/state/enums.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/src/state/enums.rs -------------------------------------------------------------------------------- /programs/dex/src/state/fee_model.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/src/state/fee_model.rs -------------------------------------------------------------------------------- /programs/dex/src/state/market_product_group.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/src/state/market_product_group.rs -------------------------------------------------------------------------------- /programs/dex/src/state/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/src/state/mod.rs -------------------------------------------------------------------------------- /programs/dex/src/state/open_orders.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/src/state/open_orders.rs -------------------------------------------------------------------------------- /programs/dex/src/state/products.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/src/state/products.rs -------------------------------------------------------------------------------- /programs/dex/src/state/risk_engine_register.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/src/state/risk_engine_register.rs -------------------------------------------------------------------------------- /programs/dex/src/state/trader_risk_group.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/src/state/trader_risk_group.rs -------------------------------------------------------------------------------- /programs/dex/src/utils/bitset.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/src/utils/bitset.rs -------------------------------------------------------------------------------- /programs/dex/src/utils/cpi.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/src/utils/cpi.rs -------------------------------------------------------------------------------- /programs/dex/src/utils/loadable.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/src/utils/loadable.rs -------------------------------------------------------------------------------- /programs/dex/src/utils/logs.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/src/utils/logs.rs -------------------------------------------------------------------------------- /programs/dex/src/utils/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/src/utils/mod.rs -------------------------------------------------------------------------------- /programs/dex/src/utils/numeric.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/src/utils/numeric.rs -------------------------------------------------------------------------------- /programs/dex/src/utils/orderbook.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/src/utils/orderbook.rs -------------------------------------------------------------------------------- /programs/dex/src/utils/param.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/src/utils/param.rs -------------------------------------------------------------------------------- /programs/dex/src/utils/validation.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/src/utils/validation.rs -------------------------------------------------------------------------------- /programs/dex/tests/setup.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/tests/setup.rs -------------------------------------------------------------------------------- /programs/dex/tests/test_alpha_risk_engine.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/tests/test_alpha_risk_engine.rs -------------------------------------------------------------------------------- /programs/dex/tests/test_combo_alpha_risk_engine.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/tests/test_combo_alpha_risk_engine.rs -------------------------------------------------------------------------------- /programs/dex/tests/test_combo_orders.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/tests/test_combo_orders.rs -------------------------------------------------------------------------------- /programs/dex/tests/test_expiration.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/tests/test_expiration.rs -------------------------------------------------------------------------------- /programs/dex/tests/test_funding.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/tests/test_funding.rs -------------------------------------------------------------------------------- /programs/dex/tests/test_liquidation_simple_risk_engine.rs: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /programs/dex/tests/test_new_order_rounding_logic.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/tests/test_new_order_rounding_logic.rs -------------------------------------------------------------------------------- /programs/dex/tests/test_no_negative_order_size.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/tests/test_no_negative_order_size.rs -------------------------------------------------------------------------------- /programs/dex/tests/test_orderbook_layering.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/tests/test_orderbook_layering.rs -------------------------------------------------------------------------------- /programs/dex/tests/test_replace_trader_position.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/tests/test_replace_trader_position.rs -------------------------------------------------------------------------------- /programs/dex/tests/test_self_trade.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/tests/test_self_trade.rs -------------------------------------------------------------------------------- /programs/dex/tests/test_simple_trade.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/tests/test_simple_trade.rs -------------------------------------------------------------------------------- /programs/dex/tests/test_sweep_fees.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dex/tests/test_sweep_fees.rs -------------------------------------------------------------------------------- /programs/dummy-oracle/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dummy-oracle/Cargo.toml -------------------------------------------------------------------------------- /programs/dummy-oracle/src/entrypoint.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dummy-oracle/src/entrypoint.rs -------------------------------------------------------------------------------- /programs/dummy-oracle/src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dummy-oracle/src/error.rs -------------------------------------------------------------------------------- /programs/dummy-oracle/src/instruction.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dummy-oracle/src/instruction.rs -------------------------------------------------------------------------------- /programs/dummy-oracle/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dummy-oracle/src/lib.rs -------------------------------------------------------------------------------- /programs/dummy-oracle/src/processor.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dummy-oracle/src/processor.rs -------------------------------------------------------------------------------- /programs/dummy-oracle/src/processor/initialize_clock.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dummy-oracle/src/processor/initialize_clock.rs -------------------------------------------------------------------------------- /programs/dummy-oracle/src/processor/initialize_oracle.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dummy-oracle/src/processor/initialize_oracle.rs -------------------------------------------------------------------------------- /programs/dummy-oracle/src/processor/update_clock.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dummy-oracle/src/processor/update_clock.rs -------------------------------------------------------------------------------- /programs/dummy-oracle/src/processor/update_price.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dummy-oracle/src/processor/update_price.rs -------------------------------------------------------------------------------- /programs/dummy-oracle/src/state.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dummy-oracle/src/state.rs -------------------------------------------------------------------------------- /programs/dummy-oracle/src/utils.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/dummy-oracle/src/utils.rs -------------------------------------------------------------------------------- /programs/fees/constant-fees/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/fees/constant-fees/Cargo.toml -------------------------------------------------------------------------------- /programs/fees/constant-fees/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/fees/constant-fees/src/lib.rs -------------------------------------------------------------------------------- /programs/instruments/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/instruments/Cargo.toml -------------------------------------------------------------------------------- /programs/instruments/Xargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/instruments/Xargo.toml -------------------------------------------------------------------------------- /programs/instruments/src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/instruments/src/error.rs -------------------------------------------------------------------------------- /programs/instruments/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/instruments/src/lib.rs -------------------------------------------------------------------------------- /programs/instruments/src/oracle.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/instruments/src/oracle.rs -------------------------------------------------------------------------------- /programs/instruments/src/processor/close_derivative_account.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/instruments/src/processor/close_derivative_account.rs -------------------------------------------------------------------------------- /programs/instruments/src/processor/initialize_derivative.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/instruments/src/processor/initialize_derivative.rs -------------------------------------------------------------------------------- /programs/instruments/src/processor/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/instruments/src/processor/mod.rs -------------------------------------------------------------------------------- /programs/instruments/src/processor/settle_derivative.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/instruments/src/processor/settle_derivative.rs -------------------------------------------------------------------------------- /programs/instruments/src/state/constants.rs: -------------------------------------------------------------------------------- 1 | pub const MAX_DATES: usize = 32; 2 | -------------------------------------------------------------------------------- /programs/instruments/src/state/derivative_metadata.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/instruments/src/state/derivative_metadata.rs -------------------------------------------------------------------------------- /programs/instruments/src/state/enums.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/instruments/src/state/enums.rs -------------------------------------------------------------------------------- /programs/instruments/src/state/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/instruments/src/state/mod.rs -------------------------------------------------------------------------------- /programs/risk/alpha-risk-engine/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/risk/alpha-risk-engine/Cargo.toml -------------------------------------------------------------------------------- /programs/risk/alpha-risk-engine/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/risk/alpha-risk-engine/src/lib.rs -------------------------------------------------------------------------------- /programs/risk/noop-risk-engine/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/risk/noop-risk-engine/Cargo.toml -------------------------------------------------------------------------------- /programs/risk/noop-risk-engine/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/programs/risk/noop-risk-engine/src/lib.rs -------------------------------------------------------------------------------- /test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/test.sh -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/solana-labs/dexterity/HEAD/tsconfig.json --------------------------------------------------------------------------------