-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch ICDex over to using
Pool
mode (#5325)
- Loading branch information
Showing
10 changed files
with
122 additions
and
45 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
backend/external_canisters/icdex/api/src/updates/accountConfig.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
use candid::CandidType; | ||
use serde::{Deserialize, Serialize}; | ||
|
||
pub type Args = (Mode, bool, Vec<u8>); | ||
pub type Response = (); | ||
|
||
#[derive(CandidType, Serialize, Deserialize)] | ||
pub enum Mode { | ||
PoolMode, | ||
TunnelMode, | ||
} |
13 changes: 13 additions & 0 deletions
13
backend/external_canisters/icdex/api/src/updates/deposit.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
use candid::{CandidType, Nat}; | ||
use serde::{Deserialize, Serialize}; | ||
|
||
pub type Args = (Token0OrToken1, Nat, Option<[u8; 32]>); | ||
pub type Response = (); | ||
|
||
#[derive(CandidType, Serialize, Deserialize)] | ||
pub enum Token0OrToken1 { | ||
#[serde(rename = "token0")] | ||
Token0, | ||
#[serde(rename = "token1")] | ||
Token1, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
#[allow(non_snake_case)] | ||
pub mod accountConfig; | ||
#[allow(non_snake_case)] | ||
pub mod cancelByTxid; | ||
pub mod deposit; | ||
pub mod trade; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters