pub struct ITIP20ChannelReserveInstance<P, N = Ethereum> {
address: Address,
provider: P,
_network: PhantomData<N>,
}Expand description
A ITIP20ChannelReserve instance.
Contains type-safe methods for interacting with an on-chain instance of the
ITIP20ChannelReserve contract located at a given address, using a given
provider P.
If the contract bytecode is available (see the sol!
documentation on how to provide it), the deploy and deploy_builder methods can
be used to deploy a new instance of the contract.
See the module-level documentation for all the available methods.
Fields§
§address: Address§provider: P§_network: PhantomData<N>Implementations§
Source§impl<P: Provider<N>, N: Network> ITIP20ChannelReserveInstance<P, N>
Instantiation and getters/setters.
impl<P: Provider<N>, N: Network> ITIP20ChannelReserveInstance<P, N>
Instantiation and getters/setters.
Sourcepub const fn new(address: Address, __provider: P) -> Self
pub const fn new(address: Address, __provider: P) -> Self
Creates a new wrapper around an on-chain ITIP20ChannelReserve contract instance.
See the wrapper’s documentation for more details.
Sourcepub fn set_address(&mut self, address: Address)
pub fn set_address(&mut self, address: Address)
Sets the address.
Source§impl<P: Clone, N> ITIP20ChannelReserveInstance<&P, N>
impl<P: Clone, N> ITIP20ChannelReserveInstance<&P, N>
Sourcepub fn with_cloned_provider(self) -> ITIP20ChannelReserveInstance<P, N>
pub fn with_cloned_provider(self) -> ITIP20ChannelReserveInstance<P, N>
Clones the provider and returns a new instance with the cloned provider.
Source§impl<P: Provider<N>, N: Network> ITIP20ChannelReserveInstance<P, N>
Function calls.
impl<P: Provider<N>, N: Network> ITIP20ChannelReserveInstance<P, N>
Function calls.
Sourcepub fn call_builder<C: SolCall>(&self, call: &C) -> SolCallBuilder<&P, C, N>
pub fn call_builder<C: SolCall>(&self, call: &C) -> SolCallBuilder<&P, C, N>
Creates a new call builder using this contract instance’s provider and address.
Note that the call can be any function call, not just those defined in this contract. Prefer using the other methods for building type-safe contract calls.
Sourcepub fn CLOSE_GRACE_PERIOD(
&self,
) -> SolCallBuilder<&P, CLOSE_GRACE_PERIODCall, N>
pub fn CLOSE_GRACE_PERIOD( &self, ) -> SolCallBuilder<&P, CLOSE_GRACE_PERIODCall, N>
Creates a new call builder for the [CLOSE_GRACE_PERIOD] function.
Sourcepub fn VOUCHER_TYPEHASH(&self) -> SolCallBuilder<&P, VOUCHER_TYPEHASHCall, N>
pub fn VOUCHER_TYPEHASH(&self) -> SolCallBuilder<&P, VOUCHER_TYPEHASHCall, N>
Creates a new call builder for the [VOUCHER_TYPEHASH] function.
Sourcepub fn open(
&self,
payee: Address,
operator: Address,
token: Address,
deposit: U96,
salt: FixedBytes<32>,
authorizedSigner: Address,
) -> SolCallBuilder<&P, openCall, N>
pub fn open( &self, payee: Address, operator: Address, token: Address, deposit: U96, salt: FixedBytes<32>, authorizedSigner: Address, ) -> SolCallBuilder<&P, openCall, N>
Creates a new call builder for the [open] function.
Sourcepub fn settle(
&self,
descriptor: <ChannelDescriptor as SolType>::RustType,
cumulativeAmount: U96,
signature: Bytes,
) -> SolCallBuilder<&P, settleCall, N>
pub fn settle( &self, descriptor: <ChannelDescriptor as SolType>::RustType, cumulativeAmount: U96, signature: Bytes, ) -> SolCallBuilder<&P, settleCall, N>
Creates a new call builder for the [settle] function.
Sourcepub fn topUp(
&self,
descriptor: <ChannelDescriptor as SolType>::RustType,
additionalDeposit: U96,
) -> SolCallBuilder<&P, topUpCall, N>
pub fn topUp( &self, descriptor: <ChannelDescriptor as SolType>::RustType, additionalDeposit: U96, ) -> SolCallBuilder<&P, topUpCall, N>
Creates a new call builder for the [topUp] function.
Sourcepub fn close(
&self,
descriptor: <ChannelDescriptor as SolType>::RustType,
cumulativeAmount: U96,
captureAmount: U96,
signature: Bytes,
) -> SolCallBuilder<&P, closeCall, N>
pub fn close( &self, descriptor: <ChannelDescriptor as SolType>::RustType, cumulativeAmount: U96, captureAmount: U96, signature: Bytes, ) -> SolCallBuilder<&P, closeCall, N>
Creates a new call builder for the [close] function.
Sourcepub fn requestClose(
&self,
descriptor: <ChannelDescriptor as SolType>::RustType,
) -> SolCallBuilder<&P, requestCloseCall, N>
pub fn requestClose( &self, descriptor: <ChannelDescriptor as SolType>::RustType, ) -> SolCallBuilder<&P, requestCloseCall, N>
Creates a new call builder for the [requestClose] function.
Sourcepub fn withdraw(
&self,
descriptor: <ChannelDescriptor as SolType>::RustType,
) -> SolCallBuilder<&P, withdrawCall, N>
pub fn withdraw( &self, descriptor: <ChannelDescriptor as SolType>::RustType, ) -> SolCallBuilder<&P, withdrawCall, N>
Creates a new call builder for the [withdraw] function.
Sourcepub fn getChannel(
&self,
descriptor: <ChannelDescriptor as SolType>::RustType,
) -> SolCallBuilder<&P, getChannelCall, N>
pub fn getChannel( &self, descriptor: <ChannelDescriptor as SolType>::RustType, ) -> SolCallBuilder<&P, getChannelCall, N>
Creates a new call builder for the [getChannel] function.
Sourcepub fn getChannelState(
&self,
channelId: FixedBytes<32>,
) -> SolCallBuilder<&P, getChannelStateCall, N>
pub fn getChannelState( &self, channelId: FixedBytes<32>, ) -> SolCallBuilder<&P, getChannelStateCall, N>
Creates a new call builder for the [getChannelState] function.
Sourcepub fn getChannelStatesBatch(
&self,
channelIds: Vec<FixedBytes<32>>,
) -> SolCallBuilder<&P, getChannelStatesBatchCall, N>
pub fn getChannelStatesBatch( &self, channelIds: Vec<FixedBytes<32>>, ) -> SolCallBuilder<&P, getChannelStatesBatchCall, N>
Creates a new call builder for the [getChannelStatesBatch] function.
Sourcepub fn computeChannelId(
&self,
payer: Address,
payee: Address,
operator: Address,
token: Address,
salt: FixedBytes<32>,
authorizedSigner: Address,
expiringNonceHash: FixedBytes<32>,
) -> SolCallBuilder<&P, computeChannelIdCall, N>
pub fn computeChannelId( &self, payer: Address, payee: Address, operator: Address, token: Address, salt: FixedBytes<32>, authorizedSigner: Address, expiringNonceHash: FixedBytes<32>, ) -> SolCallBuilder<&P, computeChannelIdCall, N>
Creates a new call builder for the [computeChannelId] function.
Sourcepub fn getVoucherDigest(
&self,
channelId: FixedBytes<32>,
cumulativeAmount: U96,
) -> SolCallBuilder<&P, getVoucherDigestCall, N>
pub fn getVoucherDigest( &self, channelId: FixedBytes<32>, cumulativeAmount: U96, ) -> SolCallBuilder<&P, getVoucherDigestCall, N>
Creates a new call builder for the [getVoucherDigest] function.
Sourcepub fn domainSeparator(&self) -> SolCallBuilder<&P, domainSeparatorCall, N>
pub fn domainSeparator(&self) -> SolCallBuilder<&P, domainSeparatorCall, N>
Creates a new call builder for the [domainSeparator] function.
Source§impl<P: Provider<N>, N: Network> ITIP20ChannelReserveInstance<P, N>
Event filters.
impl<P: Provider<N>, N: Network> ITIP20ChannelReserveInstance<P, N>
Event filters.
Sourcepub fn event_filter<E: SolEvent>(&self) -> Event<&P, E, N>
pub fn event_filter<E: SolEvent>(&self) -> Event<&P, E, N>
Creates a new event filter using this contract instance’s provider and address.
Note that the type can be any event, not just those defined in this contract. Prefer using the other methods for building type-safe event filters.
Sourcepub fn ChannelOpened_filter(&self) -> Event<&P, ChannelOpened, N>
pub fn ChannelOpened_filter(&self) -> Event<&P, ChannelOpened, N>
Creates a new event filter for the ChannelOpened event.
Sourcepub fn Settled_filter(&self) -> Event<&P, Settled, N>
pub fn Settled_filter(&self) -> Event<&P, Settled, N>
Creates a new event filter for the Settled event.
Sourcepub fn TopUp_filter(&self) -> Event<&P, TopUp, N>
pub fn TopUp_filter(&self) -> Event<&P, TopUp, N>
Creates a new event filter for the TopUp event.
Sourcepub fn CloseRequested_filter(&self) -> Event<&P, CloseRequested, N>
pub fn CloseRequested_filter(&self) -> Event<&P, CloseRequested, N>
Creates a new event filter for the CloseRequested event.
Sourcepub fn ChannelClosed_filter(&self) -> Event<&P, ChannelClosed, N>
pub fn ChannelClosed_filter(&self) -> Event<&P, ChannelClosed, N>
Creates a new event filter for the ChannelClosed event.
Sourcepub fn CloseRequestCancelled_filter(
&self,
) -> Event<&P, CloseRequestCancelled, N>
pub fn CloseRequestCancelled_filter( &self, ) -> Event<&P, CloseRequestCancelled, N>
Creates a new event filter for the CloseRequestCancelled event.
Trait Implementations§
Auto Trait Implementations§
impl<P, N> Freeze for ITIP20ChannelReserveInstance<P, N>where
P: Freeze,
impl<P, N> RefUnwindSafe for ITIP20ChannelReserveInstance<P, N>where
P: RefUnwindSafe,
N: RefUnwindSafe,
impl<P, N> Send for ITIP20ChannelReserveInstance<P, N>
impl<P, N> Sync for ITIP20ChannelReserveInstance<P, N>
impl<P, N> Unpin for ITIP20ChannelReserveInstance<P, N>
impl<P, N> UnsafeUnpin for ITIP20ChannelReserveInstance<P, N>where
P: UnsafeUnpin,
impl<P, N> UnwindSafe for ITIP20ChannelReserveInstance<P, N>where
P: UnwindSafe,
N: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ServiceExt for T
impl<T> ServiceExt for T
§fn propagate_header(self, header: HeaderName) -> PropagateHeader<Self>where
Self: Sized,
fn propagate_header(self, header: HeaderName) -> PropagateHeader<Self>where
Self: Sized,
propagate-header only.§fn add_extension<T>(self, value: T) -> AddExtension<Self, T>where
Self: Sized,
fn add_extension<T>(self, value: T) -> AddExtension<Self, T>where
Self: Sized,
add-extension only.§fn map_request_body<F>(self, f: F) -> MapRequestBody<Self, F>where
Self: Sized,
fn map_request_body<F>(self, f: F) -> MapRequestBody<Self, F>where
Self: Sized,
map-request-body only.§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
map-response-body only.§fn compression(self) -> Compression<Self>where
Self: Sized,
fn compression(self) -> Compression<Self>where
Self: Sized,
compression-br or compression-deflate or compression-gzip or compression-zstd only.§fn decompression(self) -> Decompression<Self>where
Self: Sized,
fn decompression(self) -> Decompression<Self>where
Self: Sized,
decompression-br or decompression-deflate or decompression-gzip or decompression-zstd only.§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
trace only.§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
trace only.§fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
follow-redirect only.§fn sensitive_headers(
self,
headers: impl IntoIterator<Item = HeaderName>,
) -> SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<Self>>where
Self: Sized,
fn sensitive_headers(
self,
headers: impl IntoIterator<Item = HeaderName>,
) -> SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<Self>>where
Self: Sized,
sensitive-headers only.§fn sensitive_request_headers(
self,
headers: impl IntoIterator<Item = HeaderName>,
) -> SetSensitiveRequestHeaders<Self>where
Self: Sized,
fn sensitive_request_headers(
self,
headers: impl IntoIterator<Item = HeaderName>,
) -> SetSensitiveRequestHeaders<Self>where
Self: Sized,
sensitive-headers only.§fn sensitive_response_headers(
self,
headers: impl IntoIterator<Item = HeaderName>,
) -> SetSensitiveResponseHeaders<Self>where
Self: Sized,
fn sensitive_response_headers(
self,
headers: impl IntoIterator<Item = HeaderName>,
) -> SetSensitiveResponseHeaders<Self>where
Self: Sized,
sensitive-headers only.§fn override_request_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
fn override_request_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
set-header only.§fn append_request_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
fn append_request_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
set-header only.§fn insert_request_header_if_not_present<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
fn insert_request_header_if_not_present<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
set-header only.§fn override_response_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
fn override_response_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
set-header only.§fn append_response_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
fn append_response_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
set-header only.§fn insert_response_header_if_not_present<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
fn insert_response_header_if_not_present<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
set-header only.§fn set_request_id<M>(
self,
header_name: HeaderName,
make_request_id: M,
) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
fn set_request_id<M>(
self,
header_name: HeaderName,
make_request_id: M,
) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
request-id only.§fn set_x_request_id<M>(self, make_request_id: M) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
fn set_x_request_id<M>(self, make_request_id: M) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
request-id only.x-request-id as the header name. Read more§fn propagate_request_id(
self,
header_name: HeaderName,
) -> PropagateRequestId<Self>where
Self: Sized,
fn propagate_request_id(
self,
header_name: HeaderName,
) -> PropagateRequestId<Self>where
Self: Sized,
request-id only.§fn propagate_x_request_id(self) -> PropagateRequestId<Self>where
Self: Sized,
fn propagate_x_request_id(self) -> PropagateRequestId<Self>where
Self: Sized,
request-id only.x-request-id as the header name. Read more§fn catch_panic(self) -> CatchPanic<Self, DefaultResponseForPanic>where
Self: Sized,
fn catch_panic(self) -> CatchPanic<Self, DefaultResponseForPanic>where
Self: Sized,
catch-panic only.500 Internal Server responses. Read more§fn request_body_limit(self, limit: usize) -> RequestBodyLimit<Self>where
Self: Sized,
fn request_body_limit(self, limit: usize) -> RequestBodyLimit<Self>where
Self: Sized,
limit only.413 Payload Too Large responses. Read more§fn trim_trailing_slash(self) -> NormalizePath<Self>where
Self: Sized,
fn trim_trailing_slash(self) -> NormalizePath<Self>where
Self: Sized,
normalize-path only.§fn append_trailing_slash(self) -> NormalizePath<Self>where
Self: Sized,
fn append_trailing_slash(self) -> NormalizePath<Self>where
Self: Sized,
normalize-path only.§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.