forked from jl777/SuperNET
-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* increase simulated gas to predict better values for real tx operations Signed-off-by: Onur Özkan <work@onurozkan.dev> * remove couple TODO notes and impelement `lp_coins::wait_for_confirmations` for tendermint Signed-off-by: Onur Özkan <work@onurozkan.dev> * create new fn `tendermint_coin::get_tx_status_code_or_none` Signed-off-by: Onur Özkan <work@onurozkan.dev> * if no `gui_auth` was given, consider it as `false` Signed-off-by: ozkanonur <work@onurozkan.dev> * implement `get_sender_trade_fee` Signed-off-by: ozkanonur <work@onurozkan.dev> * implement `trade_fee` functionalities for cosmos Signed-off-by: ozkanonur <work@onurozkan.dev> * group wasm and native rpcs under the rpc mod Signed-off-by: ozkanonur <work@onurozkan.dev> * Create TendermintResultOrder and impl it's required traits Signed-off-by: ozkanonur <work@onurozkan.dev> * fix wasm compilation Signed-off-by: ozkanonur <work@onurozkan.dev> * fix avg_blocktime confusion Signed-off-by: ozkanonur <work@onurozkan.dev> * save dev state Signed-off-by: ozkanonur <work@onurozkan.dev> * save dev state Signed-off-by: ozkanonur <work@onurozkan.dev> * save dev state Signed-off-by: ozkanonur <work@onurozkan.dev> * add iris mod Signed-off-by: ozkanonur <work@onurozkan.dev> * fix wasm compilation Signed-off-by: ozkanonur <work@onurozkan.dev> * save dev state Signed-off-by: ozkanonur <work@onurozkan.dev> * save dev state Signed-off-by: ozkanonur <work@onurozkan.dev> * add TODO notes Signed-off-by: ozkanonur <work@onurozkan.dev> * add TODO note Signed-off-by: ozkanonur <work@onurozkan.dev> * avoid memory pressure, skip existed txs in tx_history, add fee_details Signed-off-by: ozkanonur <work@onurozkan.dev> * remove no-longer required notes Signed-off-by: ozkanonur <work@onurozkan.dev> * save dev state Signed-off-by: ozkanonur <work@onurozkan.dev> * implement `WaitForHistoryUpdateTrigger` for tendermint tx_history v2 Signed-off-by: ozkanonur <work@onurozkan.dev> * remove not required todo notes Signed-off-by: ozkanonur <work@onurozkan.dev> * update `fn process_history_loop` Signed-off-by: ozkanonur <work@onurozkan.dev> * update TODO notes of tendermint_token Signed-off-by: ozkanonur <work@onurozkan.dev> * save dev state Signed-off-by: ozkanonur <work@onurozkan.dev> * complete tx_history_v2 functionality for tendermint Signed-off-by: ozkanonur <work@onurozkan.dev> * move token insert to right before of result returning Signed-off-by: ozkanonur <work@onurozkan.dev> * implement better error handling for tx_history v2 on tendermint Signed-off-by: ozkanonur <work@onurozkan.dev> * shorten `fn is_tx_exists` Signed-off-by: ozkanonur <work@onurozkan.dev> * rename `iris_swap_poc` into `iris_swap` remove ingored flag from the test Signed-off-by: ozkanonur <work@onurozkan.dev> * update name of the iris swap test function Signed-off-by: ozkanonur <work@onurozkan.dev> * re-ignore iris swap integration tests because of iris bug Signed-off-by: ozkanonur <work@onurozkan.dev> * fix review notes Signed-off-by: ozkanonur <work@onurozkan.dev> * show extra tx for platform fees on token txs Signed-off-by: ozkanonur <work@onurozkan.dev> * partial fixes for review notes Signed-off-by: ozkanonur <work@onurozkan.dev> * update expected log for tendermint tx history test Signed-off-by: ozkanonur <work@onurozkan.dev> * read highest height for tendermint history Signed-off-by: ozkanonur <work@onurozkan.dev> * remap tx amounts and insert all possible assets for tendermint Signed-off-by: ozkanonur <work@onurozkan.dev> * fix balance problem Signed-off-by: ozkanonur <work@onurozkan.dev> * skip `uamount` field for `TendermintFeeDetails` Signed-off-by: ozkanonur <work@onurozkan.dev> * parse multiple tx events Signed-off-by: ozkanonur <work@onurozkan.dev> * save dev state Signed-off-by: ozkanonur <work@onurozkan.dev> * remove debug lines Signed-off-by: ozkanonur <work@onurozkan.dev> * refactor tendermit tx history test Signed-off-by: ozkanonur <work@onurozkan.dev> * fix review notes Signed-off-by: ozkanonur <work@onurozkan.dev> Signed-off-by: Onur Özkan <work@onurozkan.dev> Signed-off-by: ozkanonur <work@onurozkan.dev>
- Loading branch information
1 parent
1f30ec7
commit 15ff4c5
Showing
56 changed files
with
2,527 additions
and
323 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pub(crate) mod htlc; | ||
pub(crate) mod htlc_proto; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#[cfg(not(target_arch = "wasm32"))] mod tendermint_native_rpc; | ||
#[cfg(not(target_arch = "wasm32"))] | ||
pub use tendermint_native_rpc::*; | ||
|
||
#[cfg(target_arch = "wasm32")] mod tendermint_wasm_rpc; | ||
#[cfg(target_arch = "wasm32")] pub use tendermint_wasm_rpc::*; | ||
|
||
pub(crate) const TX_SUCCESS_CODE: u32 = 0; | ||
|
||
#[repr(u8)] | ||
pub enum TendermintResultOrder { | ||
Ascending = 1, | ||
Descending, | ||
} | ||
|
||
impl From<TendermintResultOrder> for Order { | ||
fn from(order: TendermintResultOrder) -> Self { | ||
match order { | ||
TendermintResultOrder::Ascending => Self::Ascending, | ||
TendermintResultOrder::Descending => Self::Descending, | ||
} | ||
} | ||
} |
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
Oops, something went wrong.