/* Generated by ts-generator ver. 0.0.8 */ /* tslint:disable */ import { Contract, ContractFactory, Signer } from "ethers"; import { Provider } from "ethers/providers"; import { UnsignedTransaction } from "ethers/utils/transaction"; import { TransactionOverrides } from "."; import { PriceOracle } from "./PriceOracle"; export class PriceOracleFactory extends ContractFactory { constructor(signer?: Signer) { super(_abi, _bytecode, signer); } deploy(overrides?: TransactionOverrides): Promise { return super.deploy(overrides) as Promise; } getDeployTransaction(overrides?: TransactionOverrides): UnsignedTransaction { return super.getDeployTransaction(overrides); } attach(address: string): PriceOracle { return super.attach(address) as PriceOracle; } connect(signer: Signer): PriceOracleFactory { return super.connect(signer) as PriceOracleFactory; } static connect( address: string, signerOrProvider: Signer | Provider ): PriceOracle { return new Contract(address, _abi, signerOrProvider) as PriceOracle; } } 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: 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: [], 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" } ]; const _bytecode = "0x608060405234801561001057600080fd5b506102ce806100206000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806351323f7214610051578063a0a8045e1461009f578063b3596f07146100bd578063b951883a14610115575b600080fd5b61009d6004803603604081101561006757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610143565b005b6100a76101fd565b6040518082815260200191505060405180910390f35b6100ff600480360360208110156100d357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610207565b6040518082815260200191505060405180910390f35b6101416004803603602081101561012b57600080fd5b810190808035906020019092919050505061024f565b005b806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507fce6e0b57367bae95ca7198e1172f653ea64a645c16ab586b4cefa9237bfc2d92828242604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828152602001935050505060405180910390a15050565b6000600154905090565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b806001819055507fb4f35977939fa8b5ffe552d517a8ff5223046b1fdd3ee0068ae38d1e2b8d00168142604051808381526020018281526020019250505060405180910390a15056fea2646970667358221220cc210b3d4049c8fb5303e4219241d39724b55f017315ffe61dbc7ce71ca95b7464736f6c63430006080033";