mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-19 11:11:03 +00:00
Bump dependencies (#1180)
* substrate: d0f6c1c60da22e04dd25c2eca46ebfe6f1571af0
polkadot: dd4b2e6a34a08a01b876d14641e99e7011be3463
cumulus: 9379cd6c18
* fmt
* fixed lost refs
* spelling
* benckhmarks
* fmt
This commit is contained in:
committed by
Bastian Köcher
parent
6396239e18
commit
e23266c7e6
@@ -18,11 +18,12 @@
|
||||
|
||||
use codec::{Decode, Encode};
|
||||
use frame_support::{weights::Weight, RuntimeDebug};
|
||||
use scale_info::TypeInfo;
|
||||
use sp_core::U256;
|
||||
use sp_std::vec::Vec;
|
||||
|
||||
/// Pending token swap state.
|
||||
#[derive(Encode, Decode, Clone, RuntimeDebug, PartialEq, Eq)]
|
||||
#[derive(Encode, Decode, Clone, RuntimeDebug, PartialEq, Eq, TypeInfo)]
|
||||
pub enum TokenSwapState {
|
||||
/// The swap has been started using the `start_claim` call, but we have no proof that it has
|
||||
/// happened at the Bridged chain.
|
||||
@@ -39,7 +40,7 @@ pub enum TokenSwapState {
|
||||
///
|
||||
/// Different swap types give a different guarantees regarding possible swap
|
||||
/// replay protection.
|
||||
#[derive(Encode, Decode, Clone, RuntimeDebug, PartialEq, Eq)]
|
||||
#[derive(Encode, Decode, Clone, RuntimeDebug, PartialEq, Eq, TypeInfo)]
|
||||
pub enum TokenSwapType<ThisBlockNumber> {
|
||||
/// The `target_account_at_bridged_chain` is temporary and only have funds for single swap.
|
||||
///
|
||||
@@ -68,7 +69,7 @@ pub enum TokenSwapType<ThisBlockNumber> {
|
||||
/// when chain changes, the meaning of This and Bridged are still used to point to the same chains.
|
||||
/// This chain is always the chain where swap has been started. And the Bridged chain is the other
|
||||
/// chain.
|
||||
#[derive(Encode, Decode, Clone, RuntimeDebug, PartialEq, Eq)]
|
||||
#[derive(Encode, Decode, Clone, RuntimeDebug, PartialEq, Eq, TypeInfo)]
|
||||
pub struct TokenSwap<ThisBlockNumber, ThisBalance, ThisAccountId, BridgedBalance, BridgedAccountId>
|
||||
{
|
||||
/// The type of the swap.
|
||||
@@ -88,7 +89,7 @@ pub struct TokenSwap<ThisBlockNumber, ThisBalance, ThisAccountId, BridgedBalance
|
||||
pub type RawBridgedTransferCall = Vec<u8>;
|
||||
|
||||
/// Token swap creation parameters.
|
||||
#[derive(Encode, Decode, Clone, RuntimeDebug, PartialEq, Eq)]
|
||||
#[derive(Encode, Decode, Clone, RuntimeDebug, PartialEq, Eq, TypeInfo)]
|
||||
pub struct TokenSwapCreation<BridgedAccountPublic, ThisChainBalance, BridgedAccountSignature> {
|
||||
/// Public key of the `target_account_at_bridged_chain` account used to verify
|
||||
/// `bridged_currency_transfer_signature`.
|
||||
|
||||
Reference in New Issue
Block a user