pub struct SetDeployActionWithInitCallBuilder {
contract: AccountId,
method_name: String,
args: Vec<u8>,
deploy_action: Action,
gas: Option<NearGas>,
deposit: Option<NearToken>,
}Fields§
§contract: AccountId§method_name: String§args: Vec<u8>§deploy_action: Action§gas: Option<NearGas>§deposit: Option<NearToken>Implementations§
Source§impl SetDeployActionWithInitCallBuilder
impl SetDeployActionWithInitCallBuilder
const fn new( contract: AccountId, method_name: String, args: Vec<u8>, deploy_action: Action, ) -> Self
Sourcepub const fn gas(self, gas: NearGas) -> Self
pub const fn gas(self, gas: NearGas) -> Self
Specify the gas limit for the transaction. By default it is set to 100 TGas.
Sourcepub const fn max_gas(self) -> Self
pub const fn max_gas(self) -> Self
Specify the gas limit for the transaction to the maximum allowed value.
Sourcepub const fn deposit(self, deposit: NearToken) -> Self
pub const fn deposit(self, deposit: NearToken) -> Self
Specify the near deposit for the transaction. By default it is set to 0.
Please note that the method should be payable in the contract to accept the deposit.
Otherwise the transaction will fail.
Sourcepub fn with_signer(self, signer: Arc<Signer>) -> ExecuteSignedTransaction
pub fn with_signer(self, signer: Arc<Signer>) -> ExecuteSignedTransaction
Specify the signer for the transaction. This will wrap-up the process of the preparing transaction.
This will return the ExecuteSignedTransaction that can be used to sign and send the transaction to the network.
Trait Implementations§
Source§impl Clone for SetDeployActionWithInitCallBuilder
impl Clone for SetDeployActionWithInitCallBuilder
Source§fn clone(&self) -> SetDeployActionWithInitCallBuilder
fn clone(&self) -> SetDeployActionWithInitCallBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SetDeployActionWithInitCallBuilder
impl RefUnwindSafe for SetDeployActionWithInitCallBuilder
impl Send for SetDeployActionWithInitCallBuilder
impl Sync for SetDeployActionWithInitCallBuilder
impl Unpin for SetDeployActionWithInitCallBuilder
impl UnwindSafe for SetDeployActionWithInitCallBuilder
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