@augmentedfinance/protocol-v1
Version:
Augmented Protocol smart contracts
92 lines • 4.69 kB
JavaScript
;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.ProxyAdminFactory = void 0;
const contracts_1 = require("@ethersproject/contracts");
class ProxyAdminFactory extends contracts_1.ContractFactory {
constructor(signer) {
super(_abi, _bytecode, signer);
}
deploy(overrides) {
return super.deploy(overrides || {});
}
getDeployTransaction(overrides) {
return super.getDeployTransaction(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.ProxyAdminFactory = ProxyAdminFactory;
const _abi = [
{
inputs: [],
stateMutability: "nonpayable",
type: "constructor",
},
{
inputs: [
{
internalType: "contract IProxy",
name: "proxy",
type: "address",
},
],
name: "getProxyImplementation",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "owner",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "contract IProxy",
name: "proxy",
type: "address",
},
{
internalType: "address",
name: "implementation",
type: "address",
},
{
internalType: "bytes",
name: "data",
type: "bytes",
},
],
name: "upgradeAndCall",
outputs: [],
stateMutability: "payable",
type: "function",
},
];
const _bytecode = "0x60a060405234801561001057600080fd5b5033606081901b608052610455610037600039600081816084015260da01526104556000f3fe6080604052600436106100345760003560e01c8063204e1c7a146100395780638da5cb5b146100755780639623609d146100a8575b600080fd5b34801561004557600080fd5b5061005961005436600461025f565b6100bd565b6040516001600160a01b03909116815260200160405180910390f35b34801561008157600080fd5b507f0000000000000000000000000000000000000000000000000000000000000000610059565b6100bb6100b636600461027b565b6100ce565b005b60006100c8826101ab565b92915050565b336001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316146040518060600160405280602381526020016103fd60239139906101435760405162461bcd60e51b815260040161013a91906103bb565b60405180910390fd5b5060405163278f794360e11b81526001600160a01b03841690634f1ef2869034906101749086908690600401610397565b6000604051808303818588803b15801561018d57600080fd5b505af11580156101a1573d6000803e3d6000fd5b5050505050505050565b6000806000836001600160a01b03166040516101d190635c60da1b60e01b815260040190565b600060405180830381855afa9150503d806000811461020c576040519150601f19603f3d011682016040523d82523d6000602084013e610211565b606091505b50915091508161022057600080fd5b80806020019051810190610234919061023c565b949350505050565b60006020828403121561024d578081fd5b8151610258816103e4565b9392505050565b600060208284031215610270578081fd5b8135610258816103e4565b60008060006060848603121561028f578182fd5b833561029a816103e4565b925060208401356102aa816103e4565b9150604084013567ffffffffffffffff808211156102c6578283fd5b818601915086601f8301126102d9578283fd5b8135818111156102eb576102eb6103ce565b604051601f8201601f19908116603f01168101908382118183101715610313576103136103ce565b8160405282815289602084870101111561032b578586fd5b82602086016020830137856020848301015280955050505050509250925092565b60008151808452815b8181101561037157602081850181015186830182015201610355565b818111156103825782602083870101525b50601f01601f19169290920160200192915050565b6001600160a01b03831681526040602082018190526000906102349083018461034c565b602081526000610258602083018461034c565b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146103f957600080fd5b5056fe50726f78794f776e65723a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220fce73874609aee182d8e44606007c0b6b6f18a996714ca0d4b1d33977d30a0d864736f6c63430008040033";
//# sourceMappingURL=ProxyAdminFactory.js.map