UNPKG

@astonic-io/astonic-bindings-ts

Version:

Astonic type generation and npm package deployment repo

215 lines (214 loc) 9.91 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.ChainlinkRelayerFactoryProxyAdmin__factory = void 0; /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ var ethers_1 = require("ethers"); var _abi = [ { type: "function", name: "changeProxyAdmin", inputs: [ { name: "proxy", type: "address", internalType: "contract ITransparentUpgradeableProxy", }, { name: "newAdmin", type: "address", internalType: "address", }, ], outputs: [], stateMutability: "nonpayable", }, { type: "function", name: "getProxyAdmin", inputs: [ { name: "proxy", type: "address", internalType: "contract ITransparentUpgradeableProxy", }, ], outputs: [ { name: "", type: "address", internalType: "address", }, ], stateMutability: "view", }, { type: "function", name: "getProxyImplementation", inputs: [ { name: "proxy", type: "address", internalType: "contract ITransparentUpgradeableProxy", }, ], outputs: [ { name: "", type: "address", internalType: "address", }, ], stateMutability: "view", }, { type: "function", name: "owner", inputs: [], outputs: [ { name: "", type: "address", internalType: "address", }, ], stateMutability: "view", }, { type: "function", name: "renounceOwnership", inputs: [], outputs: [], stateMutability: "nonpayable", }, { type: "function", name: "transferOwnership", inputs: [ { name: "newOwner", type: "address", internalType: "address", }, ], outputs: [], stateMutability: "nonpayable", }, { type: "function", name: "upgrade", inputs: [ { name: "proxy", type: "address", internalType: "contract ITransparentUpgradeableProxy", }, { name: "implementation", type: "address", internalType: "address", }, ], outputs: [], stateMutability: "nonpayable", }, { type: "function", name: "upgradeAndCall", inputs: [ { name: "proxy", type: "address", internalType: "contract ITransparentUpgradeableProxy", }, { name: "implementation", type: "address", internalType: "address", }, { name: "data", type: "bytes", internalType: "bytes", }, ], outputs: [], stateMutability: "payable", }, { type: "event", name: "OwnershipTransferred", inputs: [ { name: "previousOwner", type: "address", indexed: true, internalType: "address", }, { name: "newOwner", type: "address", indexed: true, internalType: "address", }, ], anonymous: false, }, ]; var _bytecode = "0x608080604052346059575f8054336001600160a01b0319821681178355916001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a361060b908161005e8239f35b5f80fdfe6080806040526004361015610012575f80fd5b5f905f3560e01c908163204e1c7a1461045057508063715018a6146103f95780637eff275e146103675780638da5cb5b146103405780639623609d1461024257806399a88ec4146101ad578063f2fde38b146100e75763f3b7dead14610076575f80fd5b346100e45760203660031901126100e457808060046001600160a01b0361009b6104b2565b6040516303e1469160e61b815291165afa6100b4610530565b90156100e25780516020916001600160a01b03916100d991908101840190840161055f565b16604051908152f35b505b80fd5b50346100e45760203660031901126100e4576101016104b2565b61010961057e565b6001600160a01b031680156101595781546001600160a01b03198116821783556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b60405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608490fd5b50346100e45760403660031901126100e457806101c86104b2565b6101d06104c8565b906101d961057e565b6001600160a01b031690813b1561023e57604051631b2ce7f360e11b81526001600160a01b0390911660048201529082908290602490829084905af18015610233576102225750f35b8161022c916104de565b6100e45780f35b6040513d84823e3d90fd5b5050fd5b5060603660031901126100e457806102586104b2565b6102606104c8565b6044359167ffffffffffffffff831161033b573660238401121561033b5782600401359061028d82610514565b9161029b60405193846104de565b80835260208301943660248383010111610337578187926024602093018837840101526102c661057e565b6001600160a01b0316803b15610333578492606460405180968195829463278f794360e11b845260018060a01b03166004840152604060248401525180918160448501528484015e8181018301879052601f01601f1916810103019134905af18015610233576102225750f35b8480fd5b8680fd5b505050fd5b50346100e457806003193601126100e457546040516001600160a01b039091168152602090f35b50346103f55760403660031901126103f5576103816104b2565b6103896104c8565b9061039261057e565b6001600160a01b031690813b156103f5576040516308f2839760e41b81526001600160a01b039091166004820152905f908290602490829084905af180156103ea576103dc575080f35b6103e891505f906104de565b005b6040513d5f823e3d90fd5b5f80fd5b346103f5575f3660031901126103f55761041161057e565b5f80546001600160a01b0319811682556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b346103f55760203660031901126103f5575f9081906004906001600160a01b036104786104b2565b635c60da1b60e01b8352165afa61048d610530565b90156103f55780516020916001600160a01b03916100d991908101840190840161055f565b600435906001600160a01b03821682036103f557565b602435906001600160a01b03821682036103f557565b90601f8019910116810190811067ffffffffffffffff82111761050057604052565b634e487b7160e01b5f52604160045260245ffd5b67ffffffffffffffff811161050057601f01601f191660200190565b3d1561055a573d9061054182610514565b9161054f60405193846104de565b82523d5f602084013e565b606090565b908160209103126103f557516001600160a01b03811681036103f55790565b5f546001600160a01b0316330361059157565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fdfea2646970667358221220b212cd8f1aef8b573fda223fc4f7f27799d953b4b2b5e815cc6ac72211d1e50b64736f6c634300081c0033"; var isSuperArgs = function (xs) { return xs.length > 1; }; var ChainlinkRelayerFactoryProxyAdmin__factory = /** @class */ (function (_super) { __extends(ChainlinkRelayerFactoryProxyAdmin__factory, _super); function ChainlinkRelayerFactoryProxyAdmin__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; } ChainlinkRelayerFactoryProxyAdmin__factory.prototype.deploy = function (overrides) { return _super.prototype.deploy.call(this, overrides || {}); }; ChainlinkRelayerFactoryProxyAdmin__factory.prototype.getDeployTransaction = function (overrides) { return _super.prototype.getDeployTransaction.call(this, overrides || {}); }; ChainlinkRelayerFactoryProxyAdmin__factory.prototype.attach = function (address) { return _super.prototype.attach.call(this, address); }; ChainlinkRelayerFactoryProxyAdmin__factory.prototype.connect = function (signer) { return _super.prototype.connect.call(this, signer); }; ChainlinkRelayerFactoryProxyAdmin__factory.createInterface = function () { return new ethers_1.utils.Interface(_abi); }; ChainlinkRelayerFactoryProxyAdmin__factory.connect = function (address, signerOrProvider) { return new ethers_1.Contract(address, _abi, signerOrProvider); }; ChainlinkRelayerFactoryProxyAdmin__factory.bytecode = _bytecode; ChainlinkRelayerFactoryProxyAdmin__factory.abi = _abi; return ChainlinkRelayerFactoryProxyAdmin__factory; }(ethers_1.ContractFactory)); exports.ChainlinkRelayerFactoryProxyAdmin__factory = ChainlinkRelayerFactoryProxyAdmin__factory;