@augmentedfinance/protocol-v1
Version:
Augmented Protocol smart contracts
181 lines • 8.76 kB
JavaScript
;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.PriceFeedUniEthPairFactory = void 0;
const contracts_1 = require("@ethersproject/contracts");
class PriceFeedUniEthPairFactory extends contracts_1.ContractFactory {
constructor(signer) {
super(_abi, _bytecode, signer);
}
deploy(token, priceBase, overrides) {
return super.deploy(token, priceBase, overrides || {});
}
getDeployTransaction(token, priceBase, overrides) {
return super.getDeployTransaction(token, priceBase, 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.PriceFeedUniEthPairFactory = PriceFeedUniEthPairFactory;
const _abi = [
{
inputs: [
{
internalType: "address",
name: "token",
type: "address",
},
{
internalType: "address",
name: "priceBase",
type: "address",
},
],
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 = "0x60c060405234801561001057600080fd5b506040516107e53803806107e583398101604081905261002f916101af565b6000816001600160a01b0316836001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b15801561007457600080fd5b505afa158015610088573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100ac919061018e565b6001600160a01b031614156100c357506001610151565b816001600160a01b0316836001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801561010657600080fd5b505afa15801561011a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061013e919061018e565b6001600160a01b03161461015157600080fd5b60609290921b6001600160601b03191660805250151560f81b60a0526101e1565b80516001600160a01b038116811461018957600080fd5b919050565b60006020828403121561019f578081fd5b6101a882610172565b9392505050565b600080604083850312156101c1578081fd5b6101ca83610172565b91506101d860208401610172565b90509250929050565b60805160601c60a05160f81c6105be61022760003960006103b401526000818160ef0152818161015e015281816101ce01528181610274015261030d01526105be6000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806350d25bcd14610051578063668a0f021461006b578063673a7e28146100735780638205bf6a1461007d575b600080fd5b610059610085565b60405190815260200160405180910390f35b600019610059565b61007b6100a6565b005b6100596101ca565b60008061009061026a565b509050801561009e57919050565b600191505090565b6000806100b161026a565b600054919350915063ffffffff808316911614156100cd575050565b6000805463ffffffff191663ffffffff83161781556040516001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016907f4d6f204d987e56ba34a56def65b841eee975b05eec411c9caddfc759a01ced5690610150906b033b2e3c9fd0803ce800000090879087906001906104f6565b60405180910390a3604080517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031681526020810184905263ffffffff83168183015290517fce6e0b57367bae95ca7198e1172f653ea64a645c16ab586b4cefa9237bfc2d929181900360600190a15050565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561022557600080fd5b505afa158015610239573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061025d9190610490565b63ffffffff169392505050565b60008060008060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156102cb57600080fd5b505afa1580156102df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103039190610490565b92509250925060007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561036457600080fd5b505afa158015610378573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061039c91906104de565b9050806103b0575060009590945092505050565b60007f000000000000000000000000000000000000000000000000000000000000000015610413576000856001600160701b0316116103f857836001600160701b031661040c565b61040c6001600160701b038516600261055d565b905061044a565b6000846001600160701b03161161043357846001600160701b0316610447565b6104476001600160701b038616600261055d565b90505b8161045d82670de0b6b3a764000061055d565b610467919061053d565b9792965091945050505050565b80516001600160701b038116811461048b57600080fd5b919050565b6000806000606084860312156104a4578283fd5b6104ad84610474565b92506104bb60208501610474565b9150604084015163ffffffff811681146104d3578182fd5b809150509250925092565b6000602082840312156104ef578081fd5b5051919050565b8481526020810184905263ffffffff83166040820152608081016003831061052e57634e487b7160e01b600052602160045260246000fd5b82606083015295945050505050565b60008261055857634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561058357634e487b7160e01b81526011600452602481fd5b50029056fea26469706673582212208762affbd8894b819ee43684e279c93134116cba14367aa41f44090f231c17fb64736f6c63430008040033";
//# sourceMappingURL=PriceFeedUniEthPairFactory.js.map