UNPKG

jton-contracts

Version:
45 lines (44 loc) 1.47 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SetcodeMultisigWalletDeployWithGiverV2 = void 0; const __1 = require("../"); const GiverV2_1 = require("../../../GiverV2"); class SetcodeMultisigWalletDeployWithGiverV2 extends GiverV2_1.DeployWithGiverV2 { /** * @param _config * @param _parameters */ constructor(_config, _parameters) { super(_config); this._config = _config; this._parameters = _parameters; } /** * Creates and returns contract. * @param keys * Example: * { * public: '0x0000111122223333444455556666777788889999aaaabbbbccccddddeeeeffff', * secret: '0x0000000011111111222222223333333344444444555555556666666677777777' * } * @param timeout Time in milliseconds. How much time need wait a collection from graphql. * Examples: * 3000 * 5000 */ _getContract(keys, timeout) { return new __1.SetcodeMultisigWallet(this._client, keys, timeout); } /** * Deploys contract. * @param contract * @param timeout Time in milliseconds. How much time need wait a collection from graphql. * Examples: * 3000 * 5000 */ async _deploy(contract, timeout) { return await contract.deploy(this._parameters, timeout); } } exports.SetcodeMultisigWalletDeployWithGiverV2 = SetcodeMultisigWalletDeployWithGiverV2;