How to use the web3-core-method.SendTransactionMethodModel function in web3-core-method

To help you get started, we’ve selected a few web3-core-method examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ethereum / web3.js / packages / web3-eth-contract / src / models / ContractSendMethodModel.js View on Github external
but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU Lesser General Public License for more details.

 You should have received a copy of the GNU Lesser General Public License
 along with web3.js.  If not, see .
 */
/**
 * @file ContractCallMethodModel.js
 * @author Samuel Furter 
 * @date 2018
 */

"use strict";

var SendTransactionMethodModel = require('web3-core-method').SendTransactionMethodModel;

function ContractSendMethodModel(abiItem, utils, formatters) {
    SendTransactionMethodModel.call(this, utils, formatters);
    this.contractMethodName = '';
    this.funcName = '';
    this.signature = '';
    this.requestOptions = null;
    this.parameters = null;
    this.abiItem = abiItem;
}

ContractSendMethodModel.prototype.beforeExecution = function (web3Package) {
    // extend SendTransactionMethodModel beforeExecution (encoding and creation of tx object)
};

ContractSendMethodModel.prototype.afterExecution = function (web3Package) {
github ethereum / web3.js / packages / web3-eth-contract / src / models / SendMethodModel.js View on Github external
but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU Lesser General Public License for more details.

 You should have received a copy of the GNU Lesser General Public License
 along with web3.js.  If not, see .
 */
/**
 * @file SendMethodModel.js
 * @author Samuel Furter 
 * @date 2018
 */

"use strict";

var SendTransactionMethodModel = require('web3-core-method').SendTransactionMethodModel;

/**
 * @param {Object} abiItem
 * @param {Utils} utils
 * @param {Object} formatters
 * @param {MethodEncoder} methodEncoder
 * @param {MethodResponseDecoder} methodResponseDecoder
 *
 * @constructor
 */
function SendMethodModel(abiItem, utils, formatters, methodEncoder, methodResponseDecoder) {
    SendTransactionMethodModel.call(this, utils, formatters);
    this.contractMethodParameters = null;
    this.abiItem = abiItem;
    this.methodEncoder = methodEncoder;
    this.methodResponseDecoder = methodResponseDecoder;