UNPKG

@astonic-io/astonic-bindings-ts

Version:

Astonic type generation and npm package deployment repo

149 lines (148 loc) 5.24 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.WithCooldown__factory = void 0; /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ var ethers_1 = require("ethers"); var _abi = [ { type: "function", name: "defaultCooldownTime", inputs: [], outputs: [ { name: "", type: "uint256", internalType: "uint256", }, ], stateMutability: "view", }, { type: "function", name: "getCooldown", inputs: [ { name: "rateFeedID", type: "address", internalType: "address", }, ], outputs: [ { name: "", type: "uint256", internalType: "uint256", }, ], stateMutability: "view", }, { type: "function", name: "rateFeedCooldownTime", inputs: [ { name: "", type: "address", internalType: "address", }, ], outputs: [ { name: "", type: "uint256", internalType: "uint256", }, ], stateMutability: "view", }, { type: "event", name: "DefaultCooldownTimeUpdated", inputs: [ { name: "newCooldownTime", type: "uint256", indexed: false, internalType: "uint256", }, ], anonymous: false, }, { type: "event", name: "RateFeedCooldownTimeUpdated", inputs: [ { name: "rateFeedID", type: "address", indexed: false, internalType: "address", }, { name: "newCooldownTime", type: "uint256", indexed: false, internalType: "uint256", }, ], anonymous: false, }, ]; var _bytecode = "0x608060405234801561001057600080fd5b5061011a806100206000396000f3fe6080604052348015600f57600080fd5b5060043610603c5760003560e01c80632e37ff7314604157806339b84ecf14605957806353f5d6f114607c575b600080fd5b6047609f565b60408051918252519081900360200190f35b604760048036036020811015606d57600080fd5b50356001600160a01b031660a5565b604760048036036020811015609057600080fd5b50356001600160a01b031660d3565b60005481565b6001600160a01b0381166000908152600160205260408120548060cb57505060005460ce565b90505b919050565b6001602052600090815260409020548156fea265627a7a72315820d3c5aaa21ace235a83ff8fe8fe910c46e7316afb090b72d1fc11ec4620070e0664736f6c63430005110032"; var isSuperArgs = function (xs) { return xs.length > 1; }; var WithCooldown__factory = /** @class */ (function (_super) { __extends(WithCooldown__factory, _super); function WithCooldown__factory() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var _this = this; if (isSuperArgs(args)) { _this = _super.apply(this, args) || this; } else { _this = _super.call(this, _abi, _bytecode, args[0]) || this; } return _this; } WithCooldown__factory.prototype.deploy = function (overrides) { return _super.prototype.deploy.call(this, overrides || {}); }; WithCooldown__factory.prototype.getDeployTransaction = function (overrides) { return _super.prototype.getDeployTransaction.call(this, overrides || {}); }; WithCooldown__factory.prototype.attach = function (address) { return _super.prototype.attach.call(this, address); }; WithCooldown__factory.prototype.connect = function (signer) { return _super.prototype.connect.call(this, signer); }; WithCooldown__factory.createInterface = function () { return new ethers_1.utils.Interface(_abi); }; WithCooldown__factory.connect = function (address, signerOrProvider) { return new ethers_1.Contract(address, _abi, signerOrProvider); }; WithCooldown__factory.bytecode = _bytecode; WithCooldown__factory.abi = _abi; return WithCooldown__factory; }(ethers_1.ContractFactory)); exports.WithCooldown__factory = WithCooldown__factory;