Struct ethbind_gen::BindingBuilder
source · 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