pub struct BindingBuilder<C: Context> { /* private fields */ }Implementations§
Source§impl<C: Context> BindingBuilder<C>
impl<C: Context> BindingBuilder<C>
Sourcepub fn new<C1: Into<C>>(context: C1) -> Self
pub fn new<C1: Into<C>>(context: C1) -> Self
Create new binder builder with providing generator
Sourcepub fn bind<S: AsRef<str> + 'static, CN: AsRef<str>>(
self,
contract_name: CN,
contract: S,
) -> Self
pub fn bind<S: AsRef<str> + 'static, CN: AsRef<str>>( self, contract_name: CN, contract: S, ) -> Self
Generate binding codes with contract/abi data
Sourcepub fn bind_hardhat<S: AsRef<str> + 'static>(self, contract: S) -> Self
pub fn bind_hardhat<S: AsRef<str> + 'static>(self, contract: S) -> Self
Generate binding codes with hardhat artifact data
Sourcepub fn bind_file<P: AsRef<Path> + 'static, CN: AsRef<str>>(
self,
contract_name: CN,
path: P,
) -> Self
pub fn bind_file<P: AsRef<Path> + 'static, CN: AsRef<str>>( self, contract_name: CN, path: P, ) -> Self
Generate binding codes with contract/abi file path
Sourcepub fn bind_hardhat_file<P: AsRef<Path> + 'static>(self, path: P) -> Self
pub fn bind_hardhat_file<P: AsRef<Path> + 'static>(self, path: P) -> Self
Generate binding codes with hardhat artifact file path
Trait Implementations§
Auto Trait Implementations§
impl<C> Freeze for BindingBuilder<C>where
C: Freeze,
impl<C> !RefUnwindSafe for BindingBuilder<C>
impl<C> !Send for BindingBuilder<C>
impl<C> !Sync for BindingBuilder<C>
impl<C> Unpin for BindingBuilder<C>where
C: Unpin,
impl<C> !UnwindSafe for BindingBuilder<C>
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
Mutably borrows from an owned value. Read more