morpho-contracts-helper 0.0.19 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/contracts/MorphoMarketDataFetcher.sol +36 -77
- package/contracts/MorphoVaultV2DeployHelper.sol +64 -4
- package/contracts/OracleFactory.sol +301 -63
- package/dist/typechain-types/contracts/{MorphoMarketDataFetcher.sol/MorphoMarketDataFetcher.d.ts → MorphoMarketDataFetcher.d.ts} +7 -7
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.d.ts.map +1 -0
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.js.map +1 -0
- package/dist/typechain-types/contracts/MorphoVaultV2DeployHelper.d.ts +3 -0
- package/dist/typechain-types/contracts/MorphoVaultV2DeployHelper.d.ts.map +1 -1
- package/dist/typechain-types/contracts/OracleFactory.sol/ManualChainlinkMockFeed.d.ts +132 -6
- package/dist/typechain-types/contracts/OracleFactory.sol/ManualChainlinkMockFeed.d.ts.map +1 -1
- package/dist/typechain-types/contracts/OracleFactory.sol/ManualChainlinkMockFeedFactory.d.ts +11 -21
- package/dist/typechain-types/contracts/OracleFactory.sol/ManualChainlinkMockFeedFactory.d.ts.map +1 -1
- package/dist/typechain-types/contracts/OracleFactory.sol/index.d.ts +0 -1
- package/dist/typechain-types/contracts/OracleFactory.sol/index.d.ts.map +1 -1
- package/dist/typechain-types/contracts/index.d.ts +1 -2
- package/dist/typechain-types/contracts/index.d.ts.map +1 -1
- package/dist/typechain-types/factories/contracts/{MorphoMarketDataFetcher.sol/MorphoMarketDataFetcher__factory.d.ts → MorphoMarketDataFetcher__factory.d.ts} +13 -13
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher__factory.d.ts.map +1 -0
- package/dist/typechain-types/factories/contracts/{MorphoMarketDataFetcher.sol/MorphoMarketDataFetcher__factory.js → MorphoMarketDataFetcher__factory.js} +11 -11
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher__factory.js.map +1 -0
- package/dist/typechain-types/factories/contracts/MorphoVaultV2DeployHelper__factory.d.ts +5 -1
- package/dist/typechain-types/factories/contracts/MorphoVaultV2DeployHelper__factory.d.ts.map +1 -1
- package/dist/typechain-types/factories/contracts/MorphoVaultV2DeployHelper__factory.js +6 -1
- package/dist/typechain-types/factories/contracts/MorphoVaultV2DeployHelper__factory.js.map +1 -1
- package/dist/typechain-types/factories/contracts/OracleFactory.sol/ManualChainlinkMockFeedFactory__factory.d.ts +7 -37
- package/dist/typechain-types/factories/contracts/OracleFactory.sol/ManualChainlinkMockFeedFactory__factory.d.ts.map +1 -1
- package/dist/typechain-types/factories/contracts/OracleFactory.sol/ManualChainlinkMockFeedFactory__factory.js +8 -48
- package/dist/typechain-types/factories/contracts/OracleFactory.sol/ManualChainlinkMockFeedFactory__factory.js.map +1 -1
- package/dist/typechain-types/factories/contracts/OracleFactory.sol/ManualChainlinkMockFeed__factory.d.ts +191 -7
- package/dist/typechain-types/factories/contracts/OracleFactory.sol/ManualChainlinkMockFeed__factory.d.ts.map +1 -1
- package/dist/typechain-types/factories/contracts/OracleFactory.sol/ManualChainlinkMockFeed__factory.js +246 -9
- package/dist/typechain-types/factories/contracts/OracleFactory.sol/ManualChainlinkMockFeed__factory.js.map +1 -1
- package/dist/typechain-types/factories/contracts/OracleFactory.sol/index.d.ts +0 -1
- package/dist/typechain-types/factories/contracts/OracleFactory.sol/index.d.ts.map +1 -1
- package/dist/typechain-types/factories/contracts/OracleFactory.sol/index.js +1 -3
- package/dist/typechain-types/factories/contracts/OracleFactory.sol/index.js.map +1 -1
- package/dist/typechain-types/factories/contracts/index.d.ts +1 -1
- package/dist/typechain-types/factories/contracts/index.d.ts.map +1 -1
- package/dist/typechain-types/factories/contracts/index.js +3 -2
- package/dist/typechain-types/factories/contracts/index.js.map +1 -1
- package/dist/typechain-types/index.d.ts +2 -4
- package/dist/typechain-types/index.d.ts.map +1 -1
- package/dist/typechain-types/index.js +3 -5
- package/dist/typechain-types/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/IChainlinkAggregator.d.ts +0 -60
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/IChainlinkAggregator.d.ts.map +0 -1
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/IChainlinkAggregator.js +0 -3
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/IChainlinkAggregator.js.map +0 -1
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/IERC20Metadata.d.ts +0 -48
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/IERC20Metadata.d.ts.map +0 -1
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/IERC20Metadata.js +0 -3
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/IERC20Metadata.js.map +0 -1
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/IMorpho.d.ts +0 -84
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/IMorpho.d.ts.map +0 -1
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/IMorpho.js +0 -3
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/IMorpho.js.map +0 -1
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/IMorphoChainlinkOracleV2.d.ts +0 -62
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/IMorphoChainlinkOracleV2.d.ts.map +0 -1
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/IMorphoChainlinkOracleV2.js +0 -3
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/IMorphoChainlinkOracleV2.js.map +0 -1
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/MorphoMarketDataFetcher.d.ts.map +0 -1
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/MorphoMarketDataFetcher.js.map +0 -1
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/index.d.ts +0 -6
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/index.d.ts.map +0 -1
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/index.js +0 -3
- package/dist/typechain-types/contracts/MorphoMarketDataFetcher.sol/index.js.map +0 -1
- package/dist/typechain-types/contracts/OracleFactory.sol/IChainlinkAggregator.d.ts +0 -60
- package/dist/typechain-types/contracts/OracleFactory.sol/IChainlinkAggregator.d.ts.map +0 -1
- package/dist/typechain-types/contracts/OracleFactory.sol/IChainlinkAggregator.js +0 -3
- package/dist/typechain-types/contracts/OracleFactory.sol/IChainlinkAggregator.js.map +0 -1
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/IChainlinkAggregator__factory.d.ts +0 -44
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/IChainlinkAggregator__factory.d.ts.map +0 -1
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/IChainlinkAggregator__factory.js +0 -67
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/IChainlinkAggregator__factory.js.map +0 -1
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/IERC20Metadata__factory.d.ts +0 -56
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/IERC20Metadata__factory.d.ts.map +0 -1
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/IERC20Metadata__factory.js +0 -84
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/IERC20Metadata__factory.js.map +0 -1
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/IMorphoChainlinkOracleV2__factory.d.ts +0 -108
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/IMorphoChainlinkOracleV2__factory.d.ts.map +0 -1
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/IMorphoChainlinkOracleV2__factory.js +0 -151
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/IMorphoChainlinkOracleV2__factory.js.map +0 -1
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/IMorpho__factory.d.ts +0 -69
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/IMorpho__factory.d.ts.map +0 -1
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/IMorpho__factory.js +0 -101
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/IMorpho__factory.js.map +0 -1
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/MorphoMarketDataFetcher__factory.d.ts.map +0 -1
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/MorphoMarketDataFetcher__factory.js.map +0 -1
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/index.d.ts +0 -6
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/index.d.ts.map +0 -1
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/index.js +0 -18
- package/dist/typechain-types/factories/contracts/MorphoMarketDataFetcher.sol/index.js.map +0 -1
- package/dist/typechain-types/factories/contracts/OracleFactory.sol/IChainlinkAggregator__factory.d.ts +0 -44
- package/dist/typechain-types/factories/contracts/OracleFactory.sol/IChainlinkAggregator__factory.d.ts.map +0 -1
- package/dist/typechain-types/factories/contracts/OracleFactory.sol/IChainlinkAggregator__factory.js +0 -67
- package/dist/typechain-types/factories/contracts/OracleFactory.sol/IChainlinkAggregator__factory.js.map +0 -1
- /package/dist/typechain-types/contracts/{MorphoMarketDataFetcher.sol/MorphoMarketDataFetcher.js → MorphoMarketDataFetcher.js} +0 -0
|
@@ -5,16 +5,16 @@ import type { ManualChainlinkMockFeed, ManualChainlinkMockFeedInterface } from "
|
|
|
5
5
|
type ManualChainlinkMockFeedConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
|
|
6
6
|
export declare class ManualChainlinkMockFeed__factory extends ContractFactory {
|
|
7
7
|
constructor(...args: ManualChainlinkMockFeedConstructorParams);
|
|
8
|
-
getDeployTransaction(initialPrice: BigNumberish, decimals_: BigNumberish,
|
|
8
|
+
getDeployTransaction(initialPrice: BigNumberish, decimals_: BigNumberish, description_: string, owners_: AddressLike[], simMode_: BigNumberish, overrides?: NonPayableOverrides & {
|
|
9
9
|
from?: string;
|
|
10
10
|
}): Promise<ContractDeployTransaction>;
|
|
11
|
-
deploy(initialPrice: BigNumberish, decimals_: BigNumberish,
|
|
11
|
+
deploy(initialPrice: BigNumberish, decimals_: BigNumberish, description_: string, owners_: AddressLike[], simMode_: BigNumberish, overrides?: NonPayableOverrides & {
|
|
12
12
|
from?: string;
|
|
13
13
|
}): Promise<ManualChainlinkMockFeed & {
|
|
14
14
|
deploymentTransaction(): ContractTransactionResponse;
|
|
15
15
|
}>;
|
|
16
16
|
connect(runner: ContractRunner | null): ManualChainlinkMockFeed__factory;
|
|
17
|
-
static readonly bytecode = "
|
|
17
|
+
static readonly bytecode = "0x60a060405234801561001057600080fd5b506040516112ce3803806112ce83398101604081905261002f916102d5565b600082511161007a5760405162461bcd60e51b8152602060048201526012602482015271139bc81bdddb995c9cc81c1c9bdd9a59195960721b60448201526064015b60405180910390fd5b60005b825181101561019d5760006001600160a01b03168382815181106100a3576100a36103dc565b60200260200101516001600160a01b0316036100f05760405162461bcd60e51b815260206004820152600c60248201526b5a65726f206164647265737360a01b6044820152606401610071565b6001600080858481518110610107576101076103dc565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550828181518110610158576101586103dc565b60200260200101516001600160a01b03167f994a936646fe87ffe4f1e469d3d6aa417d6b855598397f323de5b449f765f0c360405160405180910390a260010161007d565b50600185905560ff841660805260026101b6848261047b565b506003805460ff191660ff83169081179091556032600555156101d857426004555b5050505050610539565b805160ff811681146101f357600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715610236576102366101f8565b604052919050565b600082601f83011261024f57600080fd5b81516001600160401b03811115610268576102686101f8565b8060051b6102786020820161020e565b9182526020818501810192908101908684111561029457600080fd5b6020860192505b838310156102cb5782516001600160a01b03811681146102ba57600080fd5b82526020928301929091019061029b565b9695505050505050565b600080600080600060a086880312156102ed57600080fd5b855194506102fd602087016101e2565b60408701519094506001600160401b0381111561031957600080fd5b8601601f8101881361032a57600080fd5b80516001600160401b03811115610343576103436101f8565b610356601f8201601f191660200161020e565b81815289602083850101111561036b57600080fd5b60005b8281101561038a5760208185018101518383018201520161036e565b50600091810160200191909152606088015190945090506001600160401b038111156103b557600080fd5b6103c18882890161023e565b9250506103d0608087016101e2565b90509295509295909350565b634e487b7160e01b600052603260045260246000fd5b600181811c9082168061040657607f821691505b60208210810361042657634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561047657806000526020600020601f840160051c810160208510156104535750805b601f840160051c820191505b81811015610473576000815560010161045f565b50505b505050565b81516001600160401b03811115610494576104946101f8565b6104a8816104a284546103f2565b8461042c565b6020601f8211600181146104dc57600083156104c45750848201515b600019600385901b1c1916600184901b178455610473565b600084815260208120601f198516915b8281101561050c57878501518255602094850194600190920191016104ec565b508482101561052a5786840151600019600387901b60f8161c191681555b50505050600190811b01905550565b608051610d7a610554600039600061018e0152610d7a6000f3fe608060405234801561001057600080fd5b506004361061012b5760003560e01c80639d18553b116100ad578063c9a4b96c11610071578063c9a4b96c1461028b578063d652464e14610294578063ddbd8ece146102a1578063f7a30806146102a9578063feaf968c146102bc57600080fd5b80639d18553b146102585780639d1b464a14610260578063b2b6ebf014610268578063bc06b8cd14610270578063bd8ab2eb1461027857600080fd5b806354fd4d50116100f457806354fd4d50146101c55780635fa2336a146101d65780637065cb48146101df5780637284e416146101f25780639a6fc8f51461020757600080fd5b806212b7d11461013057806317aa66741461014f5780632f54bf6e14610159578063313ce5671461018c57806351bfcb65146101b2575b600080fd5b610138600181565b60405160ff90911681526020015b60405180910390f35b6101576102c4565b005b61017c610167366004610abe565b60006020819052908152604090205460ff1681565b6040519015158152602001610146565b7f0000000000000000000000000000000000000000000000000000000000000000610138565b6101576101c0366004610ae7565b61039f565b60015b604051908152602001610146565b6101c860055481565b6101576101ed366004610abe565b61041c565b6101fa6104dc565b6040516101469190610b00565b610221610215366004610b4e565b60018054919242918291565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a001610146565b610138600381565b6101c861056a565b610138600081565b6101c8610579565b610157610286366004610b7a565b610599565b6101c860045481565b6003546101389060ff1681565b610138600281565b6101576102b7366004610ae7565b61066d565b61022161071b565b3360009081526020819052604090205460ff166102fc5760405162461bcd60e51b81526004016102f390610bac565b60405180910390fd5b60035460ff1661034e5760405162461bcd60e51b815260206004820152601c60248201527f55736520736574507269636520666f72204d414e55414c206d6f64650000000060448201526064016102f3565b4260048190556003546005546040805160ff909316835260208301939093528183015290517f0a0c4d30be85e09af96238af54f74299f5d806685d046f316401cfe39169bc8f9181900360600190a1565b3360009081526020819052604090205460ff166103ce5760405162461bcd60e51b81526004016102f390610bac565b600181905560035460ff16156103e357426004555b60405181815233907f5f52d90c714eac7c7fc1834d6c7735a40f4e5d9e2bab2ea4165400d30ccbda97906020015b60405180910390a250565b3360009081526020819052604090205460ff1661044b5760405162461bcd60e51b81526004016102f390610bac565b6001600160a01b0381166104905760405162461bcd60e51b815260206004820152600c60248201526b5a65726f206164647265737360a01b60448201526064016102f3565b6001600160a01b038116600081815260208190526040808220805460ff19166001179055517f994a936646fe87ffe4f1e469d3d6aa417d6b855598397f323de5b449f765f0c39190a250565b600280546104e990610bd2565b80601f016020809104026020016040519081016040528092919081815260200182805461051590610bd2565b80156105625780601f1061053757610100808354040283529160200191610562565b820191906000526020600020905b81548152906001019060200180831161054557829003601f168201915b505050505081565b6000610574610796565b905090565b60035460009060ff1661058c5750600090565b6004546105749042610c1c565b3360009081526020819052604090205460ff166105c85760405162461bcd60e51b81526004016102f390610bac565b600360ff8316111561060b5760405162461bcd60e51b815260206004820152600c60248201526b496e76616c6964206d6f646560a01b60448201526064016102f3565b6003805460ff191660ff8416908117909155426004819055600583905560408051928352602083019190915281018290527f0a0c4d30be85e09af96238af54f74299f5d806685d046f316401cfe39169bc8f9060600160405180910390a15050565b3360009081526020819052604090205460ff1661069c5760405162461bcd60e51b81526004016102f390610bac565b60035460ff16156106e45760405162461bcd60e51b81526020600482015260126024820152714e6f7420696e204d414e55414c206d6f646560701b60448201526064016102f3565b600181905560405181815233907f5f52d90c714eac7c7fc1834d6c7735a40f4e5d9e2bab2ea4165400d30ccbda9790602001610411565b600080600080600061072b610796565b60035490945060019060ff16156107865760006004544261074c9190610c1c565b6003805491925060009160ff16146107665761012c61076a565b610e105b90506107768183610c45565b610781906001610c59565b925050505b9593945042938493508692509050565b60035460009060ff166107aa575060015490565b6001546004546000906107bd9042610c1c565b60035490915060ff16600019016107f35760006107dc61012c83610c45565b90506107eb8360055483610843565b935050505090565b60035460ff166001190161081e57600061080f61012c83610c45565b90506107eb83600554836108f0565b60035460ff166002190161083d57610836828261097a565b9250505090565b50919050565b6000811580610850575083155b1561085c5750826108e9565b600061086a84612710610c59565b90506127105b83156108cd57610881600285610c6c565b6001036108a2576127106108958383610c80565b61089f9190610c45565b90505b6127106108af8380610c80565b6108b99190610c45565b91506108c6600285610c45565b9350610870565b6127106108da8288610c97565b6108e49190610cc7565b925050505b9392505050565b60008115806108fd575083155b156109095750826108e9565b600061091784612710610c1c565b90506127105b83156108cd5761092e600285610c6c565b60010361094f576127106109428383610c80565b61094c9190610c45565b90505b61271061095c8380610c80565b6109669190610c45565b9150610973600285610c45565b935061091d565b60008260000361098c57506000610a6f565b600061099b610e106017610c80565b905060006109ac610e106018610c80565b905060006109bd610e106019610c80565b905060006109cf876005546017610843565b9050600060646109e089604b610c97565b6109ea9190610cc7565b905084871015610a1e576000610a02610e1089610c45565b9050610a118960055483610843565b9650505050505050610a6f565b83871015610a42576000610a328689610c1c565b9050610a11838383610e10610a75565b82871015610a66576000610a568589610c1c565b9050610a11828a83610e10610a75565b87955050505050505b92915050565b6000818310610a85575082610ab6565b6000610a918686610cf5565b905082610a9e8583610c97565b610aa89190610cc7565b610ab29087610d1c565b9150505b949350505050565b600060208284031215610ad057600080fd5b81356001600160a01b03811681146108e957600080fd5b600060208284031215610af957600080fd5b5035919050565b602081526000825180602084015260005b81811015610b2e5760208186018101516040868401015201610b11565b506000604082850101526040601f19601f83011684010191505092915050565b600060208284031215610b6057600080fd5b813569ffffffffffffffffffff811681146108e957600080fd5b60008060408385031215610b8d57600080fd5b823560ff81168114610b9e57600080fd5b946020939093013593505050565b6020808252600c908201526b155b985d5d1a1bdc9a5e995960a21b604082015260600190565b600181811c90821680610be657607f821691505b60208210810361083d57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115610a6f57610a6f610c06565b634e487b7160e01b600052601260045260246000fd5b600082610c5457610c54610c2f565b500490565b80820180821115610a6f57610a6f610c06565b600082610c7b57610c7b610c2f565b500690565b8082028115828204841417610a6f57610a6f610c06565b80820260008212600160ff1b84141615610cb357610cb3610c06565b8181058314821517610a6f57610a6f610c06565b600082610cd657610cd6610c2f565b600160ff1b821460001984141615610cf057610cf0610c06565b500590565b8181036000831280158383131683831282161715610d1557610d15610c06565b5092915050565b8082018281126000831280158216821582161715610d3c57610d3c610c06565b50509291505056fea26469706673582212207f771084d67c595cc0d4845f455aacdfd42855ef2f40c14cfb052632ebb34e3864736f6c634300081b0033";
|
|
18
18
|
static readonly abi: readonly [{
|
|
19
19
|
readonly inputs: readonly [{
|
|
20
20
|
readonly internalType: "int256";
|
|
@@ -26,15 +26,39 @@ export declare class ManualChainlinkMockFeed__factory extends ContractFactory {
|
|
|
26
26
|
readonly type: "uint8";
|
|
27
27
|
}, {
|
|
28
28
|
readonly internalType: "string";
|
|
29
|
-
readonly name: "
|
|
29
|
+
readonly name: "description_";
|
|
30
30
|
readonly type: "string";
|
|
31
31
|
}, {
|
|
32
32
|
readonly internalType: "address[]";
|
|
33
33
|
readonly name: "owners_";
|
|
34
34
|
readonly type: "address[]";
|
|
35
|
+
}, {
|
|
36
|
+
readonly internalType: "uint8";
|
|
37
|
+
readonly name: "simMode_";
|
|
38
|
+
readonly type: "uint8";
|
|
35
39
|
}];
|
|
36
40
|
readonly stateMutability: "nonpayable";
|
|
37
41
|
readonly type: "constructor";
|
|
42
|
+
}, {
|
|
43
|
+
readonly anonymous: false;
|
|
44
|
+
readonly inputs: readonly [{
|
|
45
|
+
readonly indexed: false;
|
|
46
|
+
readonly internalType: "uint8";
|
|
47
|
+
readonly name: "newMode";
|
|
48
|
+
readonly type: "uint8";
|
|
49
|
+
}, {
|
|
50
|
+
readonly indexed: false;
|
|
51
|
+
readonly internalType: "uint256";
|
|
52
|
+
readonly name: "startTime";
|
|
53
|
+
readonly type: "uint256";
|
|
54
|
+
}, {
|
|
55
|
+
readonly indexed: false;
|
|
56
|
+
readonly internalType: "uint256";
|
|
57
|
+
readonly name: "basisPoints";
|
|
58
|
+
readonly type: "uint256";
|
|
59
|
+
}];
|
|
60
|
+
readonly name: "ModeChanged";
|
|
61
|
+
readonly type: "event";
|
|
38
62
|
}, {
|
|
39
63
|
readonly anonymous: false;
|
|
40
64
|
readonly inputs: readonly [{
|
|
@@ -60,6 +84,46 @@ export declare class ManualChainlinkMockFeed__factory extends ContractFactory {
|
|
|
60
84
|
}];
|
|
61
85
|
readonly name: "PriceUpdated";
|
|
62
86
|
readonly type: "event";
|
|
87
|
+
}, {
|
|
88
|
+
readonly inputs: readonly [];
|
|
89
|
+
readonly name: "MODE_CRASH_AND_RECOVER";
|
|
90
|
+
readonly outputs: readonly [{
|
|
91
|
+
readonly internalType: "uint8";
|
|
92
|
+
readonly name: "";
|
|
93
|
+
readonly type: "uint8";
|
|
94
|
+
}];
|
|
95
|
+
readonly stateMutability: "view";
|
|
96
|
+
readonly type: "function";
|
|
97
|
+
}, {
|
|
98
|
+
readonly inputs: readonly [];
|
|
99
|
+
readonly name: "MODE_MANUAL";
|
|
100
|
+
readonly outputs: readonly [{
|
|
101
|
+
readonly internalType: "uint8";
|
|
102
|
+
readonly name: "";
|
|
103
|
+
readonly type: "uint8";
|
|
104
|
+
}];
|
|
105
|
+
readonly stateMutability: "view";
|
|
106
|
+
readonly type: "function";
|
|
107
|
+
}, {
|
|
108
|
+
readonly inputs: readonly [];
|
|
109
|
+
readonly name: "MODE_TRENDING_DOWN";
|
|
110
|
+
readonly outputs: readonly [{
|
|
111
|
+
readonly internalType: "uint8";
|
|
112
|
+
readonly name: "";
|
|
113
|
+
readonly type: "uint8";
|
|
114
|
+
}];
|
|
115
|
+
readonly stateMutability: "view";
|
|
116
|
+
readonly type: "function";
|
|
117
|
+
}, {
|
|
118
|
+
readonly inputs: readonly [];
|
|
119
|
+
readonly name: "MODE_TRENDING_UP";
|
|
120
|
+
readonly outputs: readonly [{
|
|
121
|
+
readonly internalType: "uint8";
|
|
122
|
+
readonly name: "";
|
|
123
|
+
readonly type: "uint8";
|
|
124
|
+
}];
|
|
125
|
+
readonly stateMutability: "view";
|
|
126
|
+
readonly type: "function";
|
|
63
127
|
}, {
|
|
64
128
|
readonly inputs: readonly [{
|
|
65
129
|
readonly internalType: "address";
|
|
@@ -70,6 +134,26 @@ export declare class ManualChainlinkMockFeed__factory extends ContractFactory {
|
|
|
70
134
|
readonly outputs: readonly [];
|
|
71
135
|
readonly stateMutability: "nonpayable";
|
|
72
136
|
readonly type: "function";
|
|
137
|
+
}, {
|
|
138
|
+
readonly inputs: readonly [];
|
|
139
|
+
readonly name: "basisPoints";
|
|
140
|
+
readonly outputs: readonly [{
|
|
141
|
+
readonly internalType: "uint256";
|
|
142
|
+
readonly name: "";
|
|
143
|
+
readonly type: "uint256";
|
|
144
|
+
}];
|
|
145
|
+
readonly stateMutability: "view";
|
|
146
|
+
readonly type: "function";
|
|
147
|
+
}, {
|
|
148
|
+
readonly inputs: readonly [];
|
|
149
|
+
readonly name: "currentPrice";
|
|
150
|
+
readonly outputs: readonly [{
|
|
151
|
+
readonly internalType: "int256";
|
|
152
|
+
readonly name: "";
|
|
153
|
+
readonly type: "int256";
|
|
154
|
+
}];
|
|
155
|
+
readonly stateMutability: "view";
|
|
156
|
+
readonly type: "function";
|
|
73
157
|
}, {
|
|
74
158
|
readonly inputs: readonly [];
|
|
75
159
|
readonly name: "decimals";
|
|
@@ -80,6 +164,56 @@ export declare class ManualChainlinkMockFeed__factory extends ContractFactory {
|
|
|
80
164
|
}];
|
|
81
165
|
readonly stateMutability: "view";
|
|
82
166
|
readonly type: "function";
|
|
167
|
+
}, {
|
|
168
|
+
readonly inputs: readonly [];
|
|
169
|
+
readonly name: "description";
|
|
170
|
+
readonly outputs: readonly [{
|
|
171
|
+
readonly internalType: "string";
|
|
172
|
+
readonly name: "";
|
|
173
|
+
readonly type: "string";
|
|
174
|
+
}];
|
|
175
|
+
readonly stateMutability: "view";
|
|
176
|
+
readonly type: "function";
|
|
177
|
+
}, {
|
|
178
|
+
readonly inputs: readonly [];
|
|
179
|
+
readonly name: "elapsedSeconds";
|
|
180
|
+
readonly outputs: readonly [{
|
|
181
|
+
readonly internalType: "uint256";
|
|
182
|
+
readonly name: "";
|
|
183
|
+
readonly type: "uint256";
|
|
184
|
+
}];
|
|
185
|
+
readonly stateMutability: "view";
|
|
186
|
+
readonly type: "function";
|
|
187
|
+
}, {
|
|
188
|
+
readonly inputs: readonly [{
|
|
189
|
+
readonly internalType: "uint80";
|
|
190
|
+
readonly name: "_roundId";
|
|
191
|
+
readonly type: "uint80";
|
|
192
|
+
}];
|
|
193
|
+
readonly name: "getRoundData";
|
|
194
|
+
readonly outputs: readonly [{
|
|
195
|
+
readonly internalType: "uint80";
|
|
196
|
+
readonly name: "roundId";
|
|
197
|
+
readonly type: "uint80";
|
|
198
|
+
}, {
|
|
199
|
+
readonly internalType: "int256";
|
|
200
|
+
readonly name: "answer";
|
|
201
|
+
readonly type: "int256";
|
|
202
|
+
}, {
|
|
203
|
+
readonly internalType: "uint256";
|
|
204
|
+
readonly name: "startedAt";
|
|
205
|
+
readonly type: "uint256";
|
|
206
|
+
}, {
|
|
207
|
+
readonly internalType: "uint256";
|
|
208
|
+
readonly name: "updatedAt";
|
|
209
|
+
readonly type: "uint256";
|
|
210
|
+
}, {
|
|
211
|
+
readonly internalType: "uint80";
|
|
212
|
+
readonly name: "answeredInRound";
|
|
213
|
+
readonly type: "uint80";
|
|
214
|
+
}];
|
|
215
|
+
readonly stateMutability: "view";
|
|
216
|
+
readonly type: "function";
|
|
83
217
|
}, {
|
|
84
218
|
readonly inputs: readonly [{
|
|
85
219
|
readonly internalType: "address";
|
|
@@ -120,6 +254,36 @@ export declare class ManualChainlinkMockFeed__factory extends ContractFactory {
|
|
|
120
254
|
}];
|
|
121
255
|
readonly stateMutability: "view";
|
|
122
256
|
readonly type: "function";
|
|
257
|
+
}, {
|
|
258
|
+
readonly inputs: readonly [];
|
|
259
|
+
readonly name: "restartSimulation";
|
|
260
|
+
readonly outputs: readonly [];
|
|
261
|
+
readonly stateMutability: "nonpayable";
|
|
262
|
+
readonly type: "function";
|
|
263
|
+
}, {
|
|
264
|
+
readonly inputs: readonly [{
|
|
265
|
+
readonly internalType: "int256";
|
|
266
|
+
readonly name: "newBasePrice";
|
|
267
|
+
readonly type: "int256";
|
|
268
|
+
}];
|
|
269
|
+
readonly name: "setBasePrice";
|
|
270
|
+
readonly outputs: readonly [];
|
|
271
|
+
readonly stateMutability: "nonpayable";
|
|
272
|
+
readonly type: "function";
|
|
273
|
+
}, {
|
|
274
|
+
readonly inputs: readonly [{
|
|
275
|
+
readonly internalType: "uint8";
|
|
276
|
+
readonly name: "mode_";
|
|
277
|
+
readonly type: "uint8";
|
|
278
|
+
}, {
|
|
279
|
+
readonly internalType: "uint256";
|
|
280
|
+
readonly name: "basisPoints_";
|
|
281
|
+
readonly type: "uint256";
|
|
282
|
+
}];
|
|
283
|
+
readonly name: "setMode";
|
|
284
|
+
readonly outputs: readonly [];
|
|
285
|
+
readonly stateMutability: "nonpayable";
|
|
286
|
+
readonly type: "function";
|
|
123
287
|
}, {
|
|
124
288
|
readonly inputs: readonly [{
|
|
125
289
|
readonly internalType: "int256";
|
|
@@ -132,14 +296,34 @@ export declare class ManualChainlinkMockFeed__factory extends ContractFactory {
|
|
|
132
296
|
readonly type: "function";
|
|
133
297
|
}, {
|
|
134
298
|
readonly inputs: readonly [];
|
|
135
|
-
readonly name: "
|
|
299
|
+
readonly name: "simMode";
|
|
136
300
|
readonly outputs: readonly [{
|
|
137
|
-
readonly internalType: "
|
|
301
|
+
readonly internalType: "uint8";
|
|
138
302
|
readonly name: "";
|
|
139
|
-
readonly type: "
|
|
303
|
+
readonly type: "uint8";
|
|
304
|
+
}];
|
|
305
|
+
readonly stateMutability: "view";
|
|
306
|
+
readonly type: "function";
|
|
307
|
+
}, {
|
|
308
|
+
readonly inputs: readonly [];
|
|
309
|
+
readonly name: "simStartTime";
|
|
310
|
+
readonly outputs: readonly [{
|
|
311
|
+
readonly internalType: "uint256";
|
|
312
|
+
readonly name: "";
|
|
313
|
+
readonly type: "uint256";
|
|
140
314
|
}];
|
|
141
315
|
readonly stateMutability: "view";
|
|
142
316
|
readonly type: "function";
|
|
317
|
+
}, {
|
|
318
|
+
readonly inputs: readonly [];
|
|
319
|
+
readonly name: "version";
|
|
320
|
+
readonly outputs: readonly [{
|
|
321
|
+
readonly internalType: "uint256";
|
|
322
|
+
readonly name: "";
|
|
323
|
+
readonly type: "uint256";
|
|
324
|
+
}];
|
|
325
|
+
readonly stateMutability: "pure";
|
|
326
|
+
readonly type: "function";
|
|
143
327
|
}];
|
|
144
328
|
static createInterface(): ManualChainlinkMockFeedInterface;
|
|
145
329
|
static connect(address: string, runner?: ContractRunner | null): ManualChainlinkMockFeed;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ManualChainlinkMockFeed__factory.d.ts","sourceRoot":"","sources":["../../../../../typechain-types/factories/contracts/OracleFactory.sol/ManualChainlinkMockFeed__factory.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,eAAe,EACf,2BAA2B,EAE5B,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EACV,MAAM,EACN,YAAY,EACZ,WAAW,EACX,yBAAyB,EACzB,cAAc,EACf,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,KAAK,EACV,uBAAuB,EACvB,gCAAgC,EACjC,MAAM,8DAA8D,CAAC;
|
|
1
|
+
{"version":3,"file":"ManualChainlinkMockFeed__factory.d.ts","sourceRoot":"","sources":["../../../../../typechain-types/factories/contracts/OracleFactory.sol/ManualChainlinkMockFeed__factory.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,eAAe,EACf,2BAA2B,EAE5B,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EACV,MAAM,EACN,YAAY,EACZ,WAAW,EACX,yBAAyB,EACzB,cAAc,EACf,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,KAAK,EACV,uBAAuB,EACvB,gCAAgC,EACjC,MAAM,8DAA8D,CAAC;AAuZtE,KAAK,wCAAwC,GACzC,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,GACjB,qBAAqB,CAAC,OAAO,eAAe,CAAC,CAAC;AAMlD,qBAAa,gCAAiC,SAAQ,eAAe;gBACvD,GAAG,IAAI,EAAE,wCAAwC;IAQpD,oBAAoB,CAC3B,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,YAAY,EACvB,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,WAAW,EAAE,EACtB,QAAQ,EAAE,YAAY,EACtB,SAAS,CAAC,EAAE,mBAAmB,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAClD,OAAO,CAAC,yBAAyB,CAAC;IAU5B,MAAM,CACb,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,YAAY,EACvB,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,WAAW,EAAE,EACtB,QAAQ,EAAE,YAAY,EACtB,SAAS,CAAC,EAAE,mBAAmB,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAS9C,OAAO,CACV,uBAAuB,GAAG;QACxB,qBAAqB,IAAI,2BAA2B,CAAC;KACtD,CACF;IAEM,OAAO,CACd,MAAM,EAAE,cAAc,GAAG,IAAI,GAC5B,gCAAgC;IAInC,MAAM,CAAC,QAAQ,CAAC,QAAQ,o6SAAa;IACrC,MAAM,CAAC,QAAQ,CAAC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAQ;IAC3B,MAAM,CAAC,eAAe,IAAI,gCAAgC;IAG1D,MAAM,CAAC,OAAO,CACZ,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,cAAc,GAAG,IAAI,GAC7B,uBAAuB;CAO3B"}
|
|
@@ -21,7 +21,7 @@ const _abi = [
|
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
internalType: "string",
|
|
24
|
-
name: "
|
|
24
|
+
name: "description_",
|
|
25
25
|
type: "string",
|
|
26
26
|
},
|
|
27
27
|
{
|
|
@@ -29,10 +29,40 @@ const _abi = [
|
|
|
29
29
|
name: "owners_",
|
|
30
30
|
type: "address[]",
|
|
31
31
|
},
|
|
32
|
+
{
|
|
33
|
+
internalType: "uint8",
|
|
34
|
+
name: "simMode_",
|
|
35
|
+
type: "uint8",
|
|
36
|
+
},
|
|
32
37
|
],
|
|
33
38
|
stateMutability: "nonpayable",
|
|
34
39
|
type: "constructor",
|
|
35
40
|
},
|
|
41
|
+
{
|
|
42
|
+
anonymous: false,
|
|
43
|
+
inputs: [
|
|
44
|
+
{
|
|
45
|
+
indexed: false,
|
|
46
|
+
internalType: "uint8",
|
|
47
|
+
name: "newMode",
|
|
48
|
+
type: "uint8",
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
indexed: false,
|
|
52
|
+
internalType: "uint256",
|
|
53
|
+
name: "startTime",
|
|
54
|
+
type: "uint256",
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
indexed: false,
|
|
58
|
+
internalType: "uint256",
|
|
59
|
+
name: "basisPoints",
|
|
60
|
+
type: "uint256",
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
name: "ModeChanged",
|
|
64
|
+
type: "event",
|
|
65
|
+
},
|
|
36
66
|
{
|
|
37
67
|
anonymous: false,
|
|
38
68
|
inputs: [
|
|
@@ -65,6 +95,58 @@ const _abi = [
|
|
|
65
95
|
name: "PriceUpdated",
|
|
66
96
|
type: "event",
|
|
67
97
|
},
|
|
98
|
+
{
|
|
99
|
+
inputs: [],
|
|
100
|
+
name: "MODE_CRASH_AND_RECOVER",
|
|
101
|
+
outputs: [
|
|
102
|
+
{
|
|
103
|
+
internalType: "uint8",
|
|
104
|
+
name: "",
|
|
105
|
+
type: "uint8",
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
stateMutability: "view",
|
|
109
|
+
type: "function",
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
inputs: [],
|
|
113
|
+
name: "MODE_MANUAL",
|
|
114
|
+
outputs: [
|
|
115
|
+
{
|
|
116
|
+
internalType: "uint8",
|
|
117
|
+
name: "",
|
|
118
|
+
type: "uint8",
|
|
119
|
+
},
|
|
120
|
+
],
|
|
121
|
+
stateMutability: "view",
|
|
122
|
+
type: "function",
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
inputs: [],
|
|
126
|
+
name: "MODE_TRENDING_DOWN",
|
|
127
|
+
outputs: [
|
|
128
|
+
{
|
|
129
|
+
internalType: "uint8",
|
|
130
|
+
name: "",
|
|
131
|
+
type: "uint8",
|
|
132
|
+
},
|
|
133
|
+
],
|
|
134
|
+
stateMutability: "view",
|
|
135
|
+
type: "function",
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
inputs: [],
|
|
139
|
+
name: "MODE_TRENDING_UP",
|
|
140
|
+
outputs: [
|
|
141
|
+
{
|
|
142
|
+
internalType: "uint8",
|
|
143
|
+
name: "",
|
|
144
|
+
type: "uint8",
|
|
145
|
+
},
|
|
146
|
+
],
|
|
147
|
+
stateMutability: "view",
|
|
148
|
+
type: "function",
|
|
149
|
+
},
|
|
68
150
|
{
|
|
69
151
|
inputs: [
|
|
70
152
|
{
|
|
@@ -78,6 +160,32 @@ const _abi = [
|
|
|
78
160
|
stateMutability: "nonpayable",
|
|
79
161
|
type: "function",
|
|
80
162
|
},
|
|
163
|
+
{
|
|
164
|
+
inputs: [],
|
|
165
|
+
name: "basisPoints",
|
|
166
|
+
outputs: [
|
|
167
|
+
{
|
|
168
|
+
internalType: "uint256",
|
|
169
|
+
name: "",
|
|
170
|
+
type: "uint256",
|
|
171
|
+
},
|
|
172
|
+
],
|
|
173
|
+
stateMutability: "view",
|
|
174
|
+
type: "function",
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
inputs: [],
|
|
178
|
+
name: "currentPrice",
|
|
179
|
+
outputs: [
|
|
180
|
+
{
|
|
181
|
+
internalType: "int256",
|
|
182
|
+
name: "",
|
|
183
|
+
type: "int256",
|
|
184
|
+
},
|
|
185
|
+
],
|
|
186
|
+
stateMutability: "view",
|
|
187
|
+
type: "function",
|
|
188
|
+
},
|
|
81
189
|
{
|
|
82
190
|
inputs: [],
|
|
83
191
|
name: "decimals",
|
|
@@ -91,6 +199,71 @@ const _abi = [
|
|
|
91
199
|
stateMutability: "view",
|
|
92
200
|
type: "function",
|
|
93
201
|
},
|
|
202
|
+
{
|
|
203
|
+
inputs: [],
|
|
204
|
+
name: "description",
|
|
205
|
+
outputs: [
|
|
206
|
+
{
|
|
207
|
+
internalType: "string",
|
|
208
|
+
name: "",
|
|
209
|
+
type: "string",
|
|
210
|
+
},
|
|
211
|
+
],
|
|
212
|
+
stateMutability: "view",
|
|
213
|
+
type: "function",
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
inputs: [],
|
|
217
|
+
name: "elapsedSeconds",
|
|
218
|
+
outputs: [
|
|
219
|
+
{
|
|
220
|
+
internalType: "uint256",
|
|
221
|
+
name: "",
|
|
222
|
+
type: "uint256",
|
|
223
|
+
},
|
|
224
|
+
],
|
|
225
|
+
stateMutability: "view",
|
|
226
|
+
type: "function",
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
inputs: [
|
|
230
|
+
{
|
|
231
|
+
internalType: "uint80",
|
|
232
|
+
name: "_roundId",
|
|
233
|
+
type: "uint80",
|
|
234
|
+
},
|
|
235
|
+
],
|
|
236
|
+
name: "getRoundData",
|
|
237
|
+
outputs: [
|
|
238
|
+
{
|
|
239
|
+
internalType: "uint80",
|
|
240
|
+
name: "roundId",
|
|
241
|
+
type: "uint80",
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
internalType: "int256",
|
|
245
|
+
name: "answer",
|
|
246
|
+
type: "int256",
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
internalType: "uint256",
|
|
250
|
+
name: "startedAt",
|
|
251
|
+
type: "uint256",
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
internalType: "uint256",
|
|
255
|
+
name: "updatedAt",
|
|
256
|
+
type: "uint256",
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
internalType: "uint80",
|
|
260
|
+
name: "answeredInRound",
|
|
261
|
+
type: "uint80",
|
|
262
|
+
},
|
|
263
|
+
],
|
|
264
|
+
stateMutability: "view",
|
|
265
|
+
type: "function",
|
|
266
|
+
},
|
|
94
267
|
{
|
|
95
268
|
inputs: [
|
|
96
269
|
{
|
|
@@ -143,6 +316,44 @@ const _abi = [
|
|
|
143
316
|
stateMutability: "view",
|
|
144
317
|
type: "function",
|
|
145
318
|
},
|
|
319
|
+
{
|
|
320
|
+
inputs: [],
|
|
321
|
+
name: "restartSimulation",
|
|
322
|
+
outputs: [],
|
|
323
|
+
stateMutability: "nonpayable",
|
|
324
|
+
type: "function",
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
inputs: [
|
|
328
|
+
{
|
|
329
|
+
internalType: "int256",
|
|
330
|
+
name: "newBasePrice",
|
|
331
|
+
type: "int256",
|
|
332
|
+
},
|
|
333
|
+
],
|
|
334
|
+
name: "setBasePrice",
|
|
335
|
+
outputs: [],
|
|
336
|
+
stateMutability: "nonpayable",
|
|
337
|
+
type: "function",
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
inputs: [
|
|
341
|
+
{
|
|
342
|
+
internalType: "uint8",
|
|
343
|
+
name: "mode_",
|
|
344
|
+
type: "uint8",
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
internalType: "uint256",
|
|
348
|
+
name: "basisPoints_",
|
|
349
|
+
type: "uint256",
|
|
350
|
+
},
|
|
351
|
+
],
|
|
352
|
+
name: "setMode",
|
|
353
|
+
outputs: [],
|
|
354
|
+
stateMutability: "nonpayable",
|
|
355
|
+
type: "function",
|
|
356
|
+
},
|
|
146
357
|
{
|
|
147
358
|
inputs: [
|
|
148
359
|
{
|
|
@@ -158,19 +369,45 @@ const _abi = [
|
|
|
158
369
|
},
|
|
159
370
|
{
|
|
160
371
|
inputs: [],
|
|
161
|
-
name: "
|
|
372
|
+
name: "simMode",
|
|
162
373
|
outputs: [
|
|
163
374
|
{
|
|
164
|
-
internalType: "
|
|
375
|
+
internalType: "uint8",
|
|
165
376
|
name: "",
|
|
166
|
-
type: "
|
|
377
|
+
type: "uint8",
|
|
167
378
|
},
|
|
168
379
|
],
|
|
169
380
|
stateMutability: "view",
|
|
170
381
|
type: "function",
|
|
171
382
|
},
|
|
383
|
+
{
|
|
384
|
+
inputs: [],
|
|
385
|
+
name: "simStartTime",
|
|
386
|
+
outputs: [
|
|
387
|
+
{
|
|
388
|
+
internalType: "uint256",
|
|
389
|
+
name: "",
|
|
390
|
+
type: "uint256",
|
|
391
|
+
},
|
|
392
|
+
],
|
|
393
|
+
stateMutability: "view",
|
|
394
|
+
type: "function",
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
inputs: [],
|
|
398
|
+
name: "version",
|
|
399
|
+
outputs: [
|
|
400
|
+
{
|
|
401
|
+
internalType: "uint256",
|
|
402
|
+
name: "",
|
|
403
|
+
type: "uint256",
|
|
404
|
+
},
|
|
405
|
+
],
|
|
406
|
+
stateMutability: "pure",
|
|
407
|
+
type: "function",
|
|
408
|
+
},
|
|
172
409
|
];
|
|
173
|
-
const _bytecode = "
|
|
410
|
+
const _bytecode = "0x60a060405234801561001057600080fd5b506040516112ce3803806112ce83398101604081905261002f916102d5565b600082511161007a5760405162461bcd60e51b8152602060048201526012602482015271139bc81bdddb995c9cc81c1c9bdd9a59195960721b60448201526064015b60405180910390fd5b60005b825181101561019d5760006001600160a01b03168382815181106100a3576100a36103dc565b60200260200101516001600160a01b0316036100f05760405162461bcd60e51b815260206004820152600c60248201526b5a65726f206164647265737360a01b6044820152606401610071565b6001600080858481518110610107576101076103dc565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550828181518110610158576101586103dc565b60200260200101516001600160a01b03167f994a936646fe87ffe4f1e469d3d6aa417d6b855598397f323de5b449f765f0c360405160405180910390a260010161007d565b50600185905560ff841660805260026101b6848261047b565b506003805460ff191660ff83169081179091556032600555156101d857426004555b5050505050610539565b805160ff811681146101f357600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715610236576102366101f8565b604052919050565b600082601f83011261024f57600080fd5b81516001600160401b03811115610268576102686101f8565b8060051b6102786020820161020e565b9182526020818501810192908101908684111561029457600080fd5b6020860192505b838310156102cb5782516001600160a01b03811681146102ba57600080fd5b82526020928301929091019061029b565b9695505050505050565b600080600080600060a086880312156102ed57600080fd5b855194506102fd602087016101e2565b60408701519094506001600160401b0381111561031957600080fd5b8601601f8101881361032a57600080fd5b80516001600160401b03811115610343576103436101f8565b610356601f8201601f191660200161020e565b81815289602083850101111561036b57600080fd5b60005b8281101561038a5760208185018101518383018201520161036e565b50600091810160200191909152606088015190945090506001600160401b038111156103b557600080fd5b6103c18882890161023e565b9250506103d0608087016101e2565b90509295509295909350565b634e487b7160e01b600052603260045260246000fd5b600181811c9082168061040657607f821691505b60208210810361042657634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561047657806000526020600020601f840160051c810160208510156104535750805b601f840160051c820191505b81811015610473576000815560010161045f565b50505b505050565b81516001600160401b03811115610494576104946101f8565b6104a8816104a284546103f2565b8461042c565b6020601f8211600181146104dc57600083156104c45750848201515b600019600385901b1c1916600184901b178455610473565b600084815260208120601f198516915b8281101561050c57878501518255602094850194600190920191016104ec565b508482101561052a5786840151600019600387901b60f8161c191681555b50505050600190811b01905550565b608051610d7a610554600039600061018e0152610d7a6000f3fe608060405234801561001057600080fd5b506004361061012b5760003560e01c80639d18553b116100ad578063c9a4b96c11610071578063c9a4b96c1461028b578063d652464e14610294578063ddbd8ece146102a1578063f7a30806146102a9578063feaf968c146102bc57600080fd5b80639d18553b146102585780639d1b464a14610260578063b2b6ebf014610268578063bc06b8cd14610270578063bd8ab2eb1461027857600080fd5b806354fd4d50116100f457806354fd4d50146101c55780635fa2336a146101d65780637065cb48146101df5780637284e416146101f25780639a6fc8f51461020757600080fd5b806212b7d11461013057806317aa66741461014f5780632f54bf6e14610159578063313ce5671461018c57806351bfcb65146101b2575b600080fd5b610138600181565b60405160ff90911681526020015b60405180910390f35b6101576102c4565b005b61017c610167366004610abe565b60006020819052908152604090205460ff1681565b6040519015158152602001610146565b7f0000000000000000000000000000000000000000000000000000000000000000610138565b6101576101c0366004610ae7565b61039f565b60015b604051908152602001610146565b6101c860055481565b6101576101ed366004610abe565b61041c565b6101fa6104dc565b6040516101469190610b00565b610221610215366004610b4e565b60018054919242918291565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a001610146565b610138600381565b6101c861056a565b610138600081565b6101c8610579565b610157610286366004610b7a565b610599565b6101c860045481565b6003546101389060ff1681565b610138600281565b6101576102b7366004610ae7565b61066d565b61022161071b565b3360009081526020819052604090205460ff166102fc5760405162461bcd60e51b81526004016102f390610bac565b60405180910390fd5b60035460ff1661034e5760405162461bcd60e51b815260206004820152601c60248201527f55736520736574507269636520666f72204d414e55414c206d6f64650000000060448201526064016102f3565b4260048190556003546005546040805160ff909316835260208301939093528183015290517f0a0c4d30be85e09af96238af54f74299f5d806685d046f316401cfe39169bc8f9181900360600190a1565b3360009081526020819052604090205460ff166103ce5760405162461bcd60e51b81526004016102f390610bac565b600181905560035460ff16156103e357426004555b60405181815233907f5f52d90c714eac7c7fc1834d6c7735a40f4e5d9e2bab2ea4165400d30ccbda97906020015b60405180910390a250565b3360009081526020819052604090205460ff1661044b5760405162461bcd60e51b81526004016102f390610bac565b6001600160a01b0381166104905760405162461bcd60e51b815260206004820152600c60248201526b5a65726f206164647265737360a01b60448201526064016102f3565b6001600160a01b038116600081815260208190526040808220805460ff19166001179055517f994a936646fe87ffe4f1e469d3d6aa417d6b855598397f323de5b449f765f0c39190a250565b600280546104e990610bd2565b80601f016020809104026020016040519081016040528092919081815260200182805461051590610bd2565b80156105625780601f1061053757610100808354040283529160200191610562565b820191906000526020600020905b81548152906001019060200180831161054557829003601f168201915b505050505081565b6000610574610796565b905090565b60035460009060ff1661058c5750600090565b6004546105749042610c1c565b3360009081526020819052604090205460ff166105c85760405162461bcd60e51b81526004016102f390610bac565b600360ff8316111561060b5760405162461bcd60e51b815260206004820152600c60248201526b496e76616c6964206d6f646560a01b60448201526064016102f3565b6003805460ff191660ff8416908117909155426004819055600583905560408051928352602083019190915281018290527f0a0c4d30be85e09af96238af54f74299f5d806685d046f316401cfe39169bc8f9060600160405180910390a15050565b3360009081526020819052604090205460ff1661069c5760405162461bcd60e51b81526004016102f390610bac565b60035460ff16156106e45760405162461bcd60e51b81526020600482015260126024820152714e6f7420696e204d414e55414c206d6f646560701b60448201526064016102f3565b600181905560405181815233907f5f52d90c714eac7c7fc1834d6c7735a40f4e5d9e2bab2ea4165400d30ccbda9790602001610411565b600080600080600061072b610796565b60035490945060019060ff16156107865760006004544261074c9190610c1c565b6003805491925060009160ff16146107665761012c61076a565b610e105b90506107768183610c45565b610781906001610c59565b925050505b9593945042938493508692509050565b60035460009060ff166107aa575060015490565b6001546004546000906107bd9042610c1c565b60035490915060ff16600019016107f35760006107dc61012c83610c45565b90506107eb8360055483610843565b935050505090565b60035460ff166001190161081e57600061080f61012c83610c45565b90506107eb83600554836108f0565b60035460ff166002190161083d57610836828261097a565b9250505090565b50919050565b6000811580610850575083155b1561085c5750826108e9565b600061086a84612710610c59565b90506127105b83156108cd57610881600285610c6c565b6001036108a2576127106108958383610c80565b61089f9190610c45565b90505b6127106108af8380610c80565b6108b99190610c45565b91506108c6600285610c45565b9350610870565b6127106108da8288610c97565b6108e49190610cc7565b925050505b9392505050565b60008115806108fd575083155b156109095750826108e9565b600061091784612710610c1c565b90506127105b83156108cd5761092e600285610c6c565b60010361094f576127106109428383610c80565b61094c9190610c45565b90505b61271061095c8380610c80565b6109669190610c45565b9150610973600285610c45565b935061091d565b60008260000361098c57506000610a6f565b600061099b610e106017610c80565b905060006109ac610e106018610c80565b905060006109bd610e106019610c80565b905060006109cf876005546017610843565b9050600060646109e089604b610c97565b6109ea9190610cc7565b905084871015610a1e576000610a02610e1089610c45565b9050610a118960055483610843565b9650505050505050610a6f565b83871015610a42576000610a328689610c1c565b9050610a11838383610e10610a75565b82871015610a66576000610a568589610c1c565b9050610a11828a83610e10610a75565b87955050505050505b92915050565b6000818310610a85575082610ab6565b6000610a918686610cf5565b905082610a9e8583610c97565b610aa89190610cc7565b610ab29087610d1c565b9150505b949350505050565b600060208284031215610ad057600080fd5b81356001600160a01b03811681146108e957600080fd5b600060208284031215610af957600080fd5b5035919050565b602081526000825180602084015260005b81811015610b2e5760208186018101516040868401015201610b11565b506000604082850101526040601f19601f83011684010191505092915050565b600060208284031215610b6057600080fd5b813569ffffffffffffffffffff811681146108e957600080fd5b60008060408385031215610b8d57600080fd5b823560ff81168114610b9e57600080fd5b946020939093013593505050565b6020808252600c908201526b155b985d5d1a1bdc9a5e995960a21b604082015260600190565b600181811c90821680610be657607f821691505b60208210810361083d57634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115610a6f57610a6f610c06565b634e487b7160e01b600052601260045260246000fd5b600082610c5457610c54610c2f565b500490565b80820180821115610a6f57610a6f610c06565b600082610c7b57610c7b610c2f565b500690565b8082028115828204841417610a6f57610a6f610c06565b80820260008212600160ff1b84141615610cb357610cb3610c06565b8181058314821517610a6f57610a6f610c06565b600082610cd657610cd6610c2f565b600160ff1b821460001984141615610cf057610cf0610c06565b500590565b8181036000831280158383131683831282161715610d1557610d15610c06565b5092915050565b8082018281126000831280158216821582161715610d3c57610d3c610c06565b50509291505056fea26469706673582212207f771084d67c595cc0d4845f455aacdfd42855ef2f40c14cfb052632ebb34e3864736f6c634300081b0033";
|
|
174
411
|
const isSuperArgs = (xs) => xs.length > 1;
|
|
175
412
|
class ManualChainlinkMockFeed__factory extends ethers_1.ContractFactory {
|
|
176
413
|
constructor(...args) {
|
|
@@ -181,11 +418,11 @@ class ManualChainlinkMockFeed__factory extends ethers_1.ContractFactory {
|
|
|
181
418
|
super(_abi, _bytecode, args[0]);
|
|
182
419
|
}
|
|
183
420
|
}
|
|
184
|
-
getDeployTransaction(initialPrice, decimals_,
|
|
185
|
-
return super.getDeployTransaction(initialPrice, decimals_,
|
|
421
|
+
getDeployTransaction(initialPrice, decimals_, description_, owners_, simMode_, overrides) {
|
|
422
|
+
return super.getDeployTransaction(initialPrice, decimals_, description_, owners_, simMode_, overrides || {});
|
|
186
423
|
}
|
|
187
|
-
deploy(initialPrice, decimals_,
|
|
188
|
-
return super.deploy(initialPrice, decimals_,
|
|
424
|
+
deploy(initialPrice, decimals_, description_, owners_, simMode_, overrides) {
|
|
425
|
+
return super.deploy(initialPrice, decimals_, description_, owners_, simMode_, overrides || {});
|
|
189
426
|
}
|
|
190
427
|
connect(runner) {
|
|
191
428
|
return super.connect(runner);
|