| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163 |
- // This is only a subset of the generated abi necessary for the monitor script
- export const abi = [
- {
- type: "function",
- name: "getLastVaultId",
- inputs: [],
- outputs: [
- {
- name: "",
- type: "uint256",
- internalType: "uint256",
- },
- ],
- stateMutability: "view",
- },
- {
- type: "function",
- name: "getVault",
- inputs: [
- {
- name: "vaultId",
- type: "uint256",
- internalType: "uint256",
- },
- ],
- outputs: [
- {
- name: "",
- type: "tuple",
- internalType: "struct Vault",
- components: [
- {
- name: "tokenCollateral",
- type: "address",
- internalType: "address",
- },
- {
- name: "tokenDebt",
- type: "address",
- internalType: "address",
- },
- {
- name: "amountCollateral",
- type: "uint256",
- internalType: "uint256",
- },
- {
- name: "amountDebt",
- type: "uint256",
- internalType: "uint256",
- },
- {
- name: "minHealthRatio",
- type: "uint256",
- internalType: "uint256",
- },
- {
- name: "minPermissionLessHealthRatio",
- type: "uint256",
- internalType: "uint256",
- },
- {
- name: "tokenIdCollateral",
- type: "bytes32",
- internalType: "bytes32",
- },
- {
- name: "tokenIdDebt",
- type: "bytes32",
- internalType: "bytes32",
- },
- ],
- },
- ],
- stateMutability: "view",
- },
- {
- type: "function",
- name: "liquidate",
- inputs: [
- {
- name: "vaultId",
- type: "uint256",
- internalType: "uint256",
- },
- ],
- outputs: [],
- stateMutability: "nonpayable",
- },
- {
- type: "function",
- name: "liquidateWithPriceUpdate",
- inputs: [
- {
- name: "vaultId",
- type: "uint256",
- internalType: "uint256",
- },
- {
- name: "updateData",
- type: "bytes[]",
- internalType: "bytes[]",
- },
- ],
- outputs: [],
- stateMutability: "payable",
- },
- {
- type: "event",
- name: "VaultReceivedETH",
- inputs: [
- {
- name: "sender",
- type: "address",
- indexed: false,
- internalType: "address",
- },
- {
- name: "amount",
- type: "uint256",
- indexed: false,
- internalType: "uint256",
- },
- {
- name: "permissionKey",
- type: "bytes",
- indexed: false,
- internalType: "bytes",
- },
- ],
- anonymous: false,
- },
- {
- type: "error",
- name: "InvalidHealthRatios",
- inputs: [],
- },
- {
- type: "error",
- name: "InvalidLiquidation",
- inputs: [],
- },
- {
- type: "error",
- name: "InvalidPriceExponent",
- inputs: [],
- },
- {
- type: "error",
- name: "InvalidVaultUpdate",
- inputs: [],
- },
- {
- type: "error",
- name: "NegativePrice",
- inputs: [],
- },
- {
- type: "error",
- name: "UncollateralizedVaultCreation",
- inputs: [],
- },
- ] as const;
|