@augmentedfinance/protocol-v1
Version:
Augmented Protocol smart contracts
214 lines • 7.61 kB
JavaScript
;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.MockPriceOracleFactory = void 0;
const contracts_1 = require("@ethersproject/contracts");
class MockPriceOracleFactory 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.MockPriceOracleFactory = MockPriceOracleFactory;
const _abi = [
{
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: [
{
internalType: "address",
name: "_asset",
type: "address",
},
],
name: "getAssetPrice",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address[]",
name: "assets",
type: "address[]",
},
],
name: "getAssetsPrices",
outputs: [
{
internalType: "uint256[]",
name: "result",
type: "uint256[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getEthUsdPrice",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_asset",
type: "address",
},
{
internalType: "uint256",
name: "_price",
type: "uint256",
},
],
name: "setAssetPrice",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_price",
type: "uint256",
},
],
name: "setEthUsdPrice",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "asset",
type: "address",
},
],
name: "updateAssetSource",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
];
const _bytecode = "0x608060405234801561001057600080fd5b50610425806100206000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c806320004c8e1461006757806351323f721461007a5780639d23d9f21461008d578063a0a8045e146100b6578063b3596f07146100c8578063b951883a146100f1575b600080fd5b6100786100753660046102b6565b50565b005b6100786100883660046102d7565b610104565b6100a061009b366004610300565b61015f565b6040516100ad9190610388565b60405180910390f35b6001545b6040519081526020016100ad565b6100ba6100d63660046102b6565b6001600160a01b031660009081526020819052604090205490565b6100786100ff366004610370565b61025a565b6001600160a01b03821660008181526020818152604091829020849055815192835282018390524282820152517fce6e0b57367bae95ca7198e1172f653ea64a645c16ab586b4cefa9237bfc2d929181900360600190a15050565b60608167ffffffffffffffff81111561018857634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156101b1578160200160208202803683370190505b509050815b801561025357806101c6816103cc565b9150506000808585848181106101ec57634e487b7160e01b600052603260045260246000fd5b905060200201602081019061020191906102b6565b6001600160a01b03166001600160a01b031681526020019081526020016000205482828151811061024257634e487b7160e01b600052603260045260246000fd5b6020026020010181815250506101b6565b5092915050565b6001819055604080518281524260208201527fb4f35977939fa8b5ffe552d517a8ff5223046b1fdd3ee0068ae38d1e2b8d0016910160405180910390a150565b80356001600160a01b03811681146102b157600080fd5b919050565b6000602082840312156102c7578081fd5b6102d08261029a565b9392505050565b600080604083850312156102e9578081fd5b6102f28361029a565b946020939093013593505050565b60008060208385031215610312578182fd5b823567ffffffffffffffff80821115610329578384fd5b818501915085601f83011261033c578384fd5b81358181111561034a578485fd5b8660208260051b850101111561035e578485fd5b60209290920196919550909350505050565b600060208284031215610381578081fd5b5035919050565b6020808252825182820181905260009190848201906040850190845b818110156103c0578351835292840192918401916001016103a4565b50909695505050505050565b6000816103e757634e487b7160e01b81526011600452602481fd5b50600019019056fea2646970667358221220520659908e5fc7bef6fdd9038d1ae5ff8b0686667bff73b00221c4bf8761707a64736f6c63430008040033";
//# sourceMappingURL=MockPriceOracleFactory.js.map