@augmentedfinance/protocol-v1
Version:
Augmented Protocol smart contracts
186 lines • 10.2 kB
JavaScript
;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.PriceFeedUniEthTokenFactory = void 0;
const contracts_1 = require("@ethersproject/contracts");
class PriceFeedUniEthTokenFactory extends contracts_1.ContractFactory {
constructor(signer) {
super(_abi, _bytecode, signer);
}
deploy(token, priceBase, quoteValue, overrides) {
return super.deploy(token, priceBase, quoteValue, overrides || {});
}
getDeployTransaction(token, priceBase, quoteValue, overrides) {
return super.getDeployTransaction(token, priceBase, quoteValue, 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.PriceFeedUniEthTokenFactory = PriceFeedUniEthTokenFactory;
const _abi = [
{
inputs: [
{
internalType: "address",
name: "token",
type: "address",
},
{
internalType: "address",
name: "priceBase",
type: "address",
},
{
internalType: "uint256",
name: "quoteValue",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "constructor",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "address",
name: "asset",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "price",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "timestamp",
type: "uint256",
},
],
name: "AssetPriceUpdated",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "asset",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "index",
type: "uint256",
},
{
indexed: true,
internalType: "address",
name: "underlyingSource",
type: "address",
},
{
indexed: false,
internalType: "uint256",
name: "underlyingPrice",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "timestamp",
type: "uint256",
},
{
indexed: false,
internalType: "enum SourceType",
name: "sourceType",
type: "uint8",
},
],
name: "DerivedAssetSourceUpdated",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "price",
type: "uint256",
},
{
indexed: false,
internalType: "uint256",
name: "timestamp",
type: "uint256",
},
],
name: "EthPriceUpdated",
type: "event",
},
{
inputs: [],
name: "latestAnswer",
outputs: [
{
internalType: "int256",
name: "",
type: "int256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "latestRound",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "pure",
type: "function",
},
{
inputs: [],
name: "latestTimestamp",
outputs: [
{
internalType: "uint256",
name: "timestamp",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "updatePrice",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
];
const _bytecode = "0x61014060405234801561001157600080fd5b50604051610a6b380380610a6b83398101604081905261003091610312565b8061003a57600080fd5b826001600160a01b03166080816001600160a01b031660601b81525050600080846001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801561009357600080fd5b505afa1580156100a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100cb91906102f1565b856001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b15801561010457600080fd5b505afa158015610118573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061013c91906102f1565b915091506000846001600160a01b0316826001600160a01b0316149050600080846001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b15801561019557600080fd5b505afa1580156101a9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101cd919061034d565b846001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b15801561020657600080fd5b505afa15801561021a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061023e919061034d565b915091508261024e578082610251565b81815b7fff0000000000000000000000000000000000000000000000000000000000000060f891821b81166101005291901b1660e052826102ab57866001600160a01b0316856001600160a01b0316146102a757600080fd5b8394505b505060c0939093525060601b6001600160601b03191660a052151560f81b610120525061036e9050565b80516001600160a01b03811681146102ec57600080fd5b919050565b600060208284031215610302578081fd5b61030b826102d5565b9392505050565b600080600060608486031215610326578182fd5b61032f846102d5565b925061033d602085016102d5565b9150604084015190509250925092565b60006020828403121561035e578081fd5b815160ff8116811461030b578182fd5b60805160601c60a05160601c60c05160e05160f81c6101005160f81c6101205160f81c61068b6103e06000396000610342015260006103ef015260006103c40152600061041a015260008181610122015261019301526000818160f50152818161020301526102a9015261068b6000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806350d25bcd14610051578063668a0f021461006b578063673a7e28146100735780638205bf6a1461007d575b600080fd5b610059610085565b60405190815260200160405180910390f35b600019610059565b61007b6100b4565b005b6100596101ff565b60008061009061029f565b5090506001600160ff1b0381106100af576001600160ff1b0391505090565b919050565b6000806100bf61029f565b600054919350915063ffffffff808316911614156100db575050565b6000805463ffffffff191663ffffffff83161790556040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03908116917f0000000000000000000000000000000000000000000000000000000000000000909116907f4d6f204d987e56ba34a56def65b841eee975b05eec411c9caddfc759a01ced5690610185906b033b2e3c9fd0803ce800000090879087906002906104cb565b60405180910390a3604080517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031681526020810184905263ffffffff83168183015290517fce6e0b57367bae95ca7198e1172f653ea64a645c16ab586b4cefa9237bfc2d929181900360600190a15050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561025a57600080fd5b505afa15801561026e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610292919061047d565b63ffffffff169392505050565b60008060008060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561030057600080fd5b505afa158015610314573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610338919061047d565b92509250925060007f000000000000000000000000000000000000000000000000000000000000000061038657610381836001600160701b0316856001600160701b03166103ae565b6103a2565b6103a2846001600160701b0316846001600160701b03166103ae565b96919550909350505050565b60008083116103be57600061045d565b826103ea7f0000000000000000000000000000000000000000000000000000000000000000600a610575565b6104157f0000000000000000000000000000000000000000000000000000000000000000600a610575565b61043f7f000000000000000000000000000000000000000000000000000000000000000086610620565b6104499190610620565b6104539190610512565b61045d9190610512565b90505b92915050565b80516001600160701b03811681146100af57600080fd5b600080600060608486031215610491578283fd5b61049a84610466565b92506104a860208501610466565b9150604084015163ffffffff811681146104c0578182fd5b809150509250925092565b8481526020810184905263ffffffff83166040820152608081016003831061050357634e487b7160e01b600052602160045260246000fd5b82606083015295945050505050565b60008261052d57634e487b7160e01b81526012600452602481fd5b500490565b600181815b8085111561056d5781600019048211156105535761055361063f565b8085161561056057918102915b93841c9390800290610537565b509250929050565b600061045d60ff84168360008261058e57506001610460565b8161059b57506000610460565b81600181146105b157600281146105bb576105d7565b6001915050610460565b60ff8411156105cc576105cc61063f565b50506001821b610460565b5060208310610133831016604e8410600b84101617156105fa575081810a610460565b6106048383610532565b80600019048211156106185761061861063f565b029392505050565b600081600019048311821515161561063a5761063a61063f565b500290565b634e487b7160e01b600052601160045260246000fdfea2646970667358221220f60885acbd13c43484353444fbd5b55f3f13aa7aad39a5680dfd893c790bd2d764736f6c63430008040033";
//# sourceMappingURL=PriceFeedUniEthTokenFactory.js.map