UNPKG

@augumented-finance/protocol-v1

Version:

Augmented Protocol smart contracts

139 lines 7.43 kB
"use strict"; /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ Object.defineProperty(exports, "__esModule", { value: true }); exports.InitializableImmutableAdminUpgradeabilityProxyFactory = void 0; const contracts_1 = require("@ethersproject/contracts"); class InitializableImmutableAdminUpgradeabilityProxyFactory extends contracts_1.ContractFactory { constructor(signer) { super(_abi, _bytecode, signer); } deploy(admin, overrides) { return super.deploy(admin, overrides || {}); } getDeployTransaction(admin, overrides) { return super.getDeployTransaction(admin, overrides || {}); } attach(address) { return super.attach(address); } connect(signer) { return super.connect(signer); } static connect(address, signerOrProvider) { return new contracts_1.Contract(address, _abi, signerOrProvider); } } exports.InitializableImmutableAdminUpgradeabilityProxyFactory = InitializableImmutableAdminUpgradeabilityProxyFactory; const _abi = [ { inputs: [ { internalType: "address", name: "admin", type: "address", }, ], stateMutability: "nonpayable", type: "constructor", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "implementation", type: "address", }, ], name: "Upgraded", type: "event", }, { stateMutability: "payable", type: "fallback", }, { inputs: [], name: "admin", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "implementation", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "_logic", type: "address", }, { internalType: "bytes", name: "_data", type: "bytes", }, ], name: "initialize", outputs: [], stateMutability: "payable", type: "function", }, { inputs: [ { internalType: "address", name: "newImplementation", type: "address", }, ], name: "upgradeTo", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "newImplementation", type: "address", }, { internalType: "bytes", name: "data", type: "bytes", }, ], name: "upgradeToAndCall", outputs: [], stateMutability: "payable", type: "function", }, { stateMutability: "payable", type: "receive", }, ]; const _bytecode = "0x60a060405234801561001057600080fd5b506040516107843803806107848339818101604052602081101561003357600080fd5b5051606081901b6001600160601b0319166080526001600160a01b03166107046100806000398061023952806102835280610342528061046f528061049852806105c052506107046000f3fe60806040526004361061004e5760003560e01c80633659cfe6146100655780634f1ef286146100985780635c60da1b14610118578063d1f5789414610149578063f851a440146101ff5761005d565b3661005d5761005b610214565b005b61005b610214565b34801561007157600080fd5b5061005b6004803603602081101561008857600080fd5b50356001600160a01b031661022e565b61005b600480360360408110156100ae57600080fd5b6001600160a01b0382351691908101906040810160208201356401000000008111156100d957600080fd5b8201836020820111156100eb57600080fd5b8035906020019184600183028401116401000000008311171561010d57600080fd5b509092509050610278565b34801561012457600080fd5b5061012d610335565b604080516001600160a01b039092168252519081900360200190f35b61005b6004803603604081101561015f57600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561018a57600080fd5b82018360208201111561019c57600080fd5b803590602001918460018302840111640100000000831117156101be57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610382945050505050565b34801561020b57600080fd5b5061012d610462565b61021c6104bc565b61022c6102276104c4565b6104e9565b565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016141561026d576102688161050d565b610275565b610275610214565b50565b336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161415610328576102b28361050d565b6000836001600160a01b031683836040518083838082843760405192019450600093509091505080830381855af49150503d806000811461030f576040519150601f19603f3d011682016040523d82523d6000602084013e610314565b606091505b505090508061032257600080fd5b50610330565b610330610214565b505050565b6000336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161415610377576103706104c4565b905061037f565b61037f610214565b90565b600061038c6104c4565b6001600160a01b03161461039f57600080fd5b6103a88261054d565b80511561045e576000826001600160a01b0316826040518082805190602001908083835b602083106103eb5780518252601f1990920191602091820191016103cc565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d806000811461044b576040519150601f19603f3d011682016040523d82523d6000602084013e610450565b606091505b505090508061033057600080fd5b5050565b6000336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016141561037757507f000000000000000000000000000000000000000000000000000000000000000061037f565b61022c6105b5565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5490565b3660008037600080366000845af43d6000803e808015610508573d6000f35b3d6000fd5b6105168161054d565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b61055681610625565b6105915760405162461bcd60e51b815260040180806020018281038252603b815260200180610694603b913960400191505060405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc55565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016141561061d5760405162461bcd60e51b81526004018080602001828103825260328152602001806106626032913960400191505060405180910390fd5b61022c61022c565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061065957508115155b94935050505056fe43616e6e6f742063616c6c2066616c6c6261636b2066756e6374696f6e2066726f6d207468652070726f78792061646d696e43616e6e6f742073657420612070726f787920696d706c656d656e746174696f6e20746f2061206e6f6e2d636f6e74726163742061646472657373a26469706673582212200d76b5b6ea2070b6a6b677e1be3b33a855120ad32e2c43e8e6ae3ee29b92cb2f64736f6c634300060c0033"; //# sourceMappingURL=InitializableImmutableAdminUpgradeabilityProxyFactory.js.map