Skip to main content

OnboardingBridgeArgs

Struct OnboardingBridgeArgs 

Source
pub struct OnboardingBridgeArgs;
Expand description

OnboardingBridgeArgs is a type for building arg lists for functions defined in “OnboardingBridge”.

Implementations§

Source§

impl OnboardingBridgeArgs

Source

pub fn initialize<'i>( admin: &'i Address, fee_collector: &'i Address, fee_bps: &'i u32, nonce: &'i Option<u64>, ) -> (&'i Address, &'i Address, &'i u32, &'i Option<u64>)

Source

pub fn fund_c_address<'i>( source: &'i Address, target: &'i Address, asset: &'i Address, amount: &'i i128, nonce: &'i Option<u64>, deadline: &'i Option<u64>, ) -> (&'i Address, &'i Address, &'i Address, &'i i128, &'i Option<u64>, &'i Option<u64>)

Source

pub fn batch_fund_c_address<'i>( source: &'i Address, targets: &'i Vec<Address>, amounts: &'i Vec<i128>, asset: &'i Address, nonce: &'i Option<u64>, deadline: &'i Option<u64>, ) -> (&'i Address, &'i Vec<Address>, &'i Vec<i128>, &'i Address, &'i Option<u64>, &'i Option<u64>)

Source

pub fn set_fee_bps<'i>( new_fee_bps: &'i u32, nonce: &'i Option<u64>, ) -> (&'i u32, &'i Option<u64>)

Source

pub fn set_source_daily_limit<'i>( source: &'i Address, asset: &'i Address, limit_amount: &'i i128, nonce: &'i Option<u64>, ) -> (&'i Address, &'i Address, &'i i128, &'i Option<u64>)

Source

pub fn query_source_daily_limit<'i>( source: &'i Address, asset: &'i Address, ) -> (&'i Address, &'i Address)

Source

pub fn set_asset_fee_cap<'i>( asset: &'i Address, max_fee_bps: &'i u32, nonce: &'i Option<u64>, ) -> (&'i Address, &'i u32, &'i Option<u64>)

Source

pub fn query_asset_fee_cap<'i>(asset: &'i Address) -> (&'i Address,)

Source

pub fn set_fee_collector<'i>( new_fee_collector: &'i Address, nonce: &'i Option<u64>, ) -> (&'i Address, &'i Option<u64>)

Source

pub fn propose_new_fee_collector<'i>( new_collector: &'i Address, nonce: &'i Option<u64>, ) -> (&'i Address, &'i Option<u64>)

Source

pub fn accept_fee_collector<'i>()

Source

pub fn query_pending_fee_collector<'i>()

Source

pub fn set_admin<'i>( new_admin: &'i Address, nonce: &'i Option<u64>, ) -> (&'i Address, &'i Option<u64>)

Source

pub fn propose_new_admin<'i>( new_admin: &'i Address, nonce: &'i Option<u64>, ) -> (&'i Address, &'i Option<u64>)

Source

pub fn accept_admin<'i>()

Source

pub fn query_pending_admin<'i>()

Source

pub fn set_minimum_amount<'i>( amount: &'i i128, nonce: &'i Option<u64>, ) -> (&'i i128, &'i Option<u64>)

Source

pub fn query_minimum_amount<'i>()

Source

pub fn withdraw_fees<'i>( asset: &'i Address, amount: &'i i128, nonce: &'i Option<u64>, ) -> (&'i Address, &'i i128, &'i Option<u64>)

Source

pub fn set_max_withdraw_per_tx<'i>( amount: &'i i128, nonce: &'i Option<u64>, ) -> (&'i i128, &'i Option<u64>)

Source

pub fn query_max_withdraw_per_tx<'i>()

Source

pub fn query_fee_bps<'i>()

Source

pub fn set_referral_rate<'i>( bps: &'i u32, nonce: &'i Option<u64>, ) -> (&'i u32, &'i Option<u64>)

Source

pub fn query_referral_rate<'i>()

Source

pub fn fund_c_address_with_referral<'i>( source: &'i Address, target: &'i Address, asset: &'i Address, amount: &'i i128, referrer: &'i Option<Address>, ) -> (&'i Address, &'i Address, &'i Address, &'i i128, &'i Option<Address>)

Source

pub fn query_fee_collector<'i>()

Source

pub fn query_admin<'i>()

Source

pub fn query_balance<'i>( c_address: &'i Address, asset: &'i Address, ) -> (&'i Address, &'i Address)

Source

pub fn query_all_balances<'i>(assets: &'i Vec<Address>) -> (&'i Vec<Address>,)

Source

pub fn query_fee_balance<'i>(asset: &'i Address) -> (&'i Address,)

Source

pub fn query_is_initialized<'i>()

Source

pub fn query_nonce<'i>(caller: &'i Address) -> (&'i Address,)

Source

pub fn query_calculate_fee<'i>(gross_amount: &'i i128) -> (&'i i128,)

Source

pub fn query_total_bridged<'i>(asset: &'i Address) -> (&'i Address,)

Source

pub fn query_total_fees_collected<'i>(asset: &'i Address) -> (&'i Address,)

Source

pub fn pause<'i>(nonce: &'i Option<u64>) -> (&'i Option<u64>,)

Source

pub fn unpause<'i>(nonce: &'i Option<u64>) -> (&'i Option<u64>,)

Source

pub fn query_is_paused<'i>()

Source

pub fn upgrade<'i>( new_wasm_hash: &'i BytesN<32>, nonce: &'i Option<u64>, ) -> (&'i BytesN<32>, &'i Option<u64>)

Source

pub fn schedule_upgrade<'i>( new_wasm_hash: &'i BytesN<32>, nonce: &'i Option<u64>, ) -> (&'i BytesN<32>, &'i Option<u64>)

Source

pub fn execute_upgrade<'i>( expected_hash: &'i BytesN<32>, nonce: &'i Option<u64>, ) -> (&'i BytesN<32>, &'i Option<u64>)

Source

pub fn cancel_upgrade<'i>(nonce: &'i Option<u64>) -> (&'i Option<u64>,)

Source

pub fn query_pending_upgrade<'i>()

Source

pub fn emergency_migrate<'i>( new_contract: &'i Address, migrate_data: &'i bool, ) -> (&'i Address, &'i bool)

Source

pub fn add_to_blocklist<'i>( address: &'i Address, nonce: &'i Option<u64>, ) -> (&'i Address, &'i Option<u64>)

Source

pub fn remove_from_blocklist<'i>( address: &'i Address, nonce: &'i Option<u64>, ) -> (&'i Address, &'i Option<u64>)

Source

pub fn add_to_allowlist<'i>( address: &'i Address, nonce: &'i Option<u64>, ) -> (&'i Address, &'i Option<u64>)

Source

pub fn remove_from_allowlist<'i>( address: &'i Address, nonce: &'i Option<u64>, ) -> (&'i Address, &'i Option<u64>)

Source

pub fn set_allowlist_mode<'i>( enabled: &'i bool, nonce: &'i Option<u64>, ) -> (&'i bool, &'i Option<u64>)

Source

pub fn query_is_blocked<'i>(address: &'i Address) -> (&'i Address,)

Source

pub fn query_is_allowlisted<'i>(address: &'i Address) -> (&'i Address,)

Source

pub fn query_allowlist_mode<'i>()

Source

pub fn reclaim_tokens<'i>( asset: &'i Address, amount: &'i i128, destination: &'i Address, nonce: &'i Option<u64>, ) -> (&'i Address, &'i i128, &'i Address, &'i Option<u64>)

Source

pub fn add_asset<'i>( asset: &'i Address, nonce: &'i Option<u64>, ) -> (&'i Address, &'i Option<u64>)

Source

pub fn remove_asset<'i>( asset: &'i Address, nonce: &'i Option<u64>, ) -> (&'i Address, &'i Option<u64>)

Source

pub fn query_is_asset_whitelisted<'i>(asset: &'i Address) -> (&'i Address,)

Source

pub fn query_whitelisted_assets<'i>()

Source

pub fn add_swap_pool<'i>( pool: &'i Address, nonce: &'i Option<u64>, ) -> (&'i Address, &'i Option<u64>)

Source

pub fn remove_swap_pool<'i>( pool: &'i Address, nonce: &'i Option<u64>, ) -> (&'i Address, &'i Option<u64>)

Source

pub fn query_is_pool_whitelisted<'i>(pool: &'i Address) -> (&'i Address,)

Source

pub fn set_loyalty_token<'i>( token: &'i Address, amount_per_fund: &'i i128, ) -> (&'i Address, &'i i128)

Source

pub fn query_loyalty_token<'i>()

Source

pub fn set_fee_tiers<'i>(tiers: &'i Vec<FeeTier>) -> (&'i Vec<FeeTier>,)

Source

pub fn query_fee_tiers<'i>()

Source

pub fn query_current_tier<'i>(source: &'i Address) -> (&'i Address,)

Source

pub fn fund_c_address_crosschain<'i>( chain_id: &'i u32, tx_hash: &'i BytesN<32>, target: &'i Address, asset: &'i Address, amount: &'i i128, sigs: &'i Vec<RelayerSig>, ) -> (&'i u32, &'i BytesN<32>, &'i Address, &'i Address, &'i i128, &'i Vec<RelayerSig>)

Source

pub fn add_relayer<'i>(pubkey: &'i BytesN<32>) -> (&'i BytesN<32>,)

Source

pub fn remove_relayer<'i>(pubkey: &'i BytesN<32>) -> (&'i BytesN<32>,)

Source

pub fn set_relayer_threshold<'i>(threshold: &'i u32) -> (&'i u32,)

Source

pub fn query_relayer_threshold<'i>()

Source

pub fn query_is_relayer<'i>(pubkey: &'i BytesN<32>) -> (&'i BytesN<32>,)

Source

pub fn fund_c_address_timelocked<'i>( source: &'i Address, target: &'i Address, asset: &'i Address, amount: &'i i128, release_time: &'i u64, cliff_time: &'i u64, ) -> (&'i Address, &'i Address, &'i Address, &'i i128, &'i u64, &'i u64)

Source

pub fn claim_timelocked<'i>(id: &'i u64) -> (&'i u64,)

Source

pub fn query_timelocked<'i>(id: &'i u64) -> (&'i u64,)

Source

pub fn extend_instance_ttl<'i>(ttl: &'i u32) -> (&'i u32,)

Source

pub fn extend_persistent_ttl<'i>( key_asset: &'i Address, ttl: &'i u32, ) -> (&'i Address, &'i u32)

Source

pub fn set_max_instance_ttl<'i>(ttl: &'i u32) -> (&'i u32,)

Source

pub fn set_max_persistent_ttl<'i>(ttl: &'i u32) -> (&'i u32,)

Source

pub fn query_ttl_config<'i>()

Source

pub fn verify_auth_entry<'i>( source: &'i Address, nonce: &'i u64, valid_after_ledger: &'i u32, valid_before_ledger: &'i u32, ) -> (&'i Address, &'i u64, &'i u32, &'i u32)

Source

pub fn query_auth_nonce<'i>(source: &'i Address) -> (&'i Address,)

Source

pub fn query_auth_nonce_used<'i>( source: &'i Address, nonce: &'i u64, ) -> (&'i Address, &'i u64)

Source

pub fn query_accrued_fees<'i>(asset: &'i Address) -> (&'i Address,)

Source

pub fn commit_fund<'i>( source: &'i Address, target: &'i Address, asset: &'i Address, amount_hash: &'i BytesN<32>, deadline: &'i u64, ) -> (&'i Address, &'i Address, &'i Address, &'i BytesN<32>, &'i u64)

Source

pub fn reveal_fund<'i>( commitment_id: &'i u64, source: &'i Address, target: &'i Address, asset: &'i Address, amount: &'i i128, nonce: &'i u64, ) -> (&'i u64, &'i Address, &'i Address, &'i Address, &'i i128, &'i u64)

Source

pub fn query_commitment<'i>(id: &'i u64) -> (&'i u64,)

Source

pub fn fund_c_address_with_swap<'i>( source: &'i Address, target: &'i Address, source_asset: &'i Address, target_asset: &'i Address, source_amount: &'i i128, min_target_amount: &'i i128, swap_route: &'i Vec<Address>, ) -> (&'i Address, &'i Address, &'i Address, &'i Address, &'i i128, &'i i128, &'i Vec<Address>)

Source

pub fn register_meta_signer<'i>( source: &'i Address, pubkey: &'i BytesN<32>, ) -> (&'i Address, &'i BytesN<32>)

Source

pub fn query_meta_signer<'i>(source: &'i Address) -> (&'i Address,)

Source

pub fn execute_meta_fund<'i>( params: &'i MetaFundParams, pubkey: &'i BytesN<32>, signature: &'i BytesN<64>, ) -> (&'i MetaFundParams, &'i BytesN<32>, &'i BytesN<64>)

Source

pub fn query_meta_tx_nonce_used<'i>( source: &'i Address, nonce: &'i u64, ) -> (&'i Address, &'i u64)

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T, C> Compare<&T> for C
where C: Compare<T>,

§

type Error = <C as Compare<T>>::Error

§

fn compare(&self, a: &&T, b: &&T) -> Result<Ordering, <C as Compare<&T>>::Error>

§

impl<T, U, E, C> Compare<(T, U)> for C
where C: Compare<T, Error = E, Error = E> + Compare<U>,

§

type Error = E

§

fn compare( &self, a: &(T, U), b: &(T, U), ) -> Result<Ordering, <C as Compare<(T, U)>>::Error>

§

impl<T, U, V, E, C> Compare<(T, U, V)> for C
where C: Compare<T, Error = E, Error = E, Error = E> + Compare<U> + Compare<V>,

§

type Error = E

§

fn compare( &self, a: &(T, U, V), b: &(T, U, V), ) -> Result<Ordering, <C as Compare<(T, U, V)>>::Error>

§

impl<T, U, V, W, E, C> Compare<(T, U, V, W)> for C
where C: Compare<T, Error = E, Error = E, Error = E, Error = E> + Compare<U> + Compare<V> + Compare<W>,

§

type Error = E

§

fn compare( &self, a: &(T, U, V, W), b: &(T, U, V, W), ) -> Result<Ordering, <C as Compare<(T, U, V, W)>>::Error>

§

impl<T, U, V, W, X, E, C> Compare<(T, U, V, W, X)> for C
where C: Compare<T, Error = E, Error = E, Error = E, Error = E, Error = E> + Compare<U> + Compare<V> + Compare<W> + Compare<X>,

§

type Error = E

§

fn compare( &self, a: &(T, U, V, W, X), b: &(T, U, V, W, X), ) -> Result<Ordering, <C as Compare<(T, U, V, W, X)>>::Error>

§

impl<T, C> Compare<Box<T>> for C
where C: Compare<T>,

§

type Error = <C as Compare<T>>::Error

§

fn compare( &self, a: &Box<T>, b: &Box<T>, ) -> Result<Ordering, <C as Compare<Box<T>>>::Error>

§

impl<T, C> Compare<Option<T>> for C
where C: Compare<T>,

§

type Error = <C as Compare<T>>::Error

§

fn compare( &self, a: &Option<T>, b: &Option<T>, ) -> Result<Ordering, <C as Compare<Option<T>>>::Error>

§

impl<T, C> Compare<Rc<T>> for C
where C: Compare<T>,

§

type Error = <C as Compare<T>>::Error

§

fn compare( &self, a: &Rc<T>, b: &Rc<T>, ) -> Result<Ordering, <C as Compare<Rc<T>>>::Error>

§

impl<T, C> Compare<Vec<T>> for C
where C: Compare<T>,

§

type Error = <C as Compare<T>>::Error

§

fn compare( &self, a: &Vec<T>, b: &Vec<T>, ) -> Result<Ordering, <C as Compare<Vec<T>>>::Error>

§

impl<T> Downcast for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<E, T, U> IntoVal<E, T> for U
where E: Env, T: FromVal<E, U>,

§

fn into_val(&self, e: &E) -> T

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<E, T, U> TryIntoVal<E, T> for U
where E: Env, T: TryFromVal<E, U>,

§

type Error = <T as TryFromVal<E, U>>::Error

§

fn try_into_val(&self, env: &E) -> Result<T, <U as TryIntoVal<E, T>>::Error>

§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,