Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ node_modules/
.*.catchup_number
.*.catchups_numbers
dist
.next

scripts/mainnet.pairs-catchups.sh
scripts/testnet.pairs-catchups.sh
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@
"@types/jest": "^29.5.12",
"jest": "^29.7.0",
"ts-jest": "^29.1.2"
}
},
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}
109 changes: 55 additions & 54 deletions programs/soroswap/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 12 additions & 1 deletion programs/soroswap/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use zephyr_sdk::{prelude::*, soroban_sdk::{xdr::{ScVal, Hash }, String as Soroba
pub mod router;
pub mod factory;
pub mod pairs;
pub mod providers;

#[derive(DatabaseDerive, Clone)]
#[with_name("ssw_rt_ev")]
Expand Down Expand Up @@ -38,6 +39,15 @@ struct ReservesChangeTable {
timestamp: ScVal,
}

#[derive(DatabaseDerive, Clone)]
#[with_name("ssw_prov")]
struct LiquidityProviderTable {
provider_address: ScVal,
pool_address: ScVal,
shares: ScVal,
percentage: ScVal,
}

#[test]
fn test() {
let factory_address_str: &'static str = env!("SOROSWAP_FACTORY");
Expand Down Expand Up @@ -101,9 +111,10 @@ pub extern "C" fn on_close() {

}

providers::events::handle_contract_events(&env, contract_events_with_txhash.clone());

env.log().debug(format!("After pairs_rows iteration"), None);


}


Loading