Skip to content

Commit

Permalink
Revert "hello world done with dockerized environment"
Browse files Browse the repository at this point in the history
This reverts commit 8e95f11.
  • Loading branch information
chopan123 committed Feb 4, 2025
1 parent 8e95f11 commit 095fadf
Show file tree
Hide file tree
Showing 125 changed files with 11 additions and 11,035 deletions.
24 changes: 10 additions & 14 deletions DeFindex.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,36 @@
"folders": [
{
"name": "Root",
"path": "./"
"path": "./",
},
{
"name": "Contracts",
"path": "apps/contracts"
"path": "apps/contracts",
},
{
"name": "Dapp",
"path": "apps/dapp"
"path": "apps/dapp",
},
{
"name": "Docs",
"path": "apps/docs"
"path": "apps/docs",
},
{
"name": "Landing",
"path": "apps/landing"
"path": "apps/landing",
},
{
"name": "DeFindex Dart SDK",
"path": "packages/defindex-dart-sdk"
"path": "packages/defindex-dart-sdk",
},
{
"name": "DeFindex JS SDK",
"path": "packages/defindex-sdk"
},
{
"name": "DeFindex .NET SDK",
"path": "packages/dotnet-sdk"
"name": "DeFindex SDK",
"path": "packages/defindex-sdk",
},
{
"name": "DeFindex UI",
"path": "packages/ui"
}
"path": "packages/ui",
},
],
"settings": {
"files.exclude": {
Expand Down
7 changes: 1 addition & 6 deletions apps/contracts/vault/src/test/vault/withdraw.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use soroban_sdk::{testutils::{MockAuth, MockAuthInvoke}, vec as sorobanvec, Address, IntoVal, Map, String, Vec};
extern crate std;

// use super::hodl_strategy::StrategyError;
use crate::test::{
create_defindex_vault, create_fixed_strategy, create_strategy_params_token_0, create_strategy_params_token_1, defindex_vault::{
Expand Down Expand Up @@ -866,13 +866,8 @@ fn from_strategies_one_asset_two_strategies_success() {
let strategy_2_balance_before_withdraw = test.token_0.balance(&strategy_client_1.address);
let idle_funds_before_withdraw = test.token_0.balance(&defindex_contract.address);

let total_managed_funds_before_withdraw = defindex_contract.fetch_total_managed_funds();
std::println!("total_managed_funds_before_withdraw: {:?}", total_managed_funds_before_withdraw);
defindex_contract.withdraw(&(amount_0-1000), &users[0]);

let total_managed_funds_after_withdraw = defindex_contract.fetch_total_managed_funds();
std::println!("total_managed_funds_after_withdraw: {:?}", total_managed_funds_after_withdraw);

let unwind_amount = (amount_0 - 1000)-idle_funds_before_withdraw;
let strategy_1_expected_unwind = (unwind_amount as f64 * 0.8) as i128;
let strategy_2_expected_unwind = (unwind_amount as f64 * 0.2) as i128;
Expand Down
13 changes: 0 additions & 13 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,6 @@ services:
tty: true
working_dir: /workspace/packages/defindex-dart-sdk

dotnet:
image: mcr.microsoft.com/dotnet/sdk:8.0
container_name: dotnet-defindex
profiles:
- on-demand
networks:
- defindex-network
volumes:
- .:/workspace
tty: true
stdin_open: true
working_dir: /workspace/packages/dotnet-sdk

networks:
defindex-network:
driver: bridge
14 changes: 0 additions & 14 deletions packages/dotnet-sdk/Program.cs

This file was deleted.

9 changes: 0 additions & 9 deletions packages/dotnet-sdk/README.md

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed packages/dotnet-sdk/bin/Debug/net8.0/dotnet-sdk
Binary file not shown.
Loading

0 comments on commit 095fadf

Please sign in to comment.