Hierarchy

  • pTokensEvmProvider

Implements

Constructors

Properties

_gasLimit: number
_gasPrice: number
_web3: default

Accessors

Methods

  • Call a “constant” method and execute its smart contract method in the EVM without sending any transaction. Note calling cannot alter the smart contract state.

    Returns

    A Promise that resolves with the return value(s) of the smart contract method.

    Parameters

    • _options: MakeContractCallOptions

      An object specifying the contract interaction.

    • _args: any[] = []

      The arguments to be passed to the contract method being called.

    Returns Promise<any>

  • Send a transaction to the smart contract and execute its method. Note this can alter the smart contract state. The function returns a PromiEvent, i.e. a Promise that can also emit events. In particular, the events fired during the execution are the following:

    • txBroadcasted -> fired with the transactions hash when the transaction is broadcasted on-chain;
    • txConfirmed -> fired with the transactions hash when the transaction is confirmed on-chain;
    • _txError -> fired whenever an error occurs during the transaction execution;

    Returns

    A PromiEvent that resolves with the hash of the resulting transaction.

    Parameters

    • _options: MakeContractSendOptions

      An object specifying the contract interaction.

    • _args: any[] = []

      The arguments to be passed to the contract method being called.

    Returns default<string>

Generated using TypeDoc