autonity-sdk
Version:
NPM package for interacting with the Autonity network
719 lines • 15.1 kB
JSON
[
{
"inputs": [
{
"components": [
{
"internalType": "uint256",
"name": "liquidationAuctionDuration",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "interestAuctionDuration",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "interestAuctionDiscount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "interestAuctionThreshold",
"type": "uint256"
}
],
"internalType": "struct Auctioneer.Config",
"name": "config_",
"type": "tuple"
},
{
"internalType": "address",
"name": "stabilization_",
"type": "address"
},
{
"internalType": "address",
"name": "oracle_",
"type": "address"
},
{
"internalType": "address",
"name": "collateralToken_",
"type": "address"
},
{
"internalType": "address",
"name": "autonity_",
"type": "address"
},
{
"internalType": "address",
"name": "operator_",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "minimumBid",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "bid",
"type": "uint256"
}
],
"name": "BidTooLow",
"type": "error"
},
{
"inputs": [],
"name": "InsufficientAllowance",
"type": "error"
},
{
"inputs": [],
"name": "InvalidAmount",
"type": "error"
},
{
"inputs": [],
"name": "InvalidAuctionId",
"type": "error"
},
{
"inputs": [
{
"internalType": "string",
"name": "message",
"type": "string"
}
],
"name": "InvalidParameter",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "round",
"type": "uint256"
}
],
"name": "InvalidRound",
"type": "error"
},
{
"inputs": [],
"name": "NotLiquidatable",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "x",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "y",
"type": "uint256"
}
],
"name": "PRBMath_MulDiv18_Overflow",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "x",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "y",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "denominator",
"type": "uint256"
}
],
"name": "PRBMath_MulDiv_Overflow",
"type": "error"
},
{
"inputs": [
{
"internalType": "UD60x18",
"name": "x",
"type": "uint256"
}
],
"name": "PRBMath_UD60x18_Sqrt_Overflow",
"type": "error"
},
{
"inputs": [],
"name": "TransferFailed",
"type": "error"
},
{
"inputs": [],
"name": "Unauthorized",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "debtor",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "biddor",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "collateralAmount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "debtAmount",
"type": "uint256"
}
],
"name": "AuctionedDebt",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "biddor",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "interestAmount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "paymentAmount",
"type": "uint256"
}
],
"name": "AuctionedInterest",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "string",
"name": "name",
"type": "string"
},
{
"indexed": false,
"internalType": "address",
"name": "oldValue",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "newValue",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "appliesAtHeight",
"type": "uint256"
}
],
"name": "ConfigUpdateAddress",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "string",
"name": "name",
"type": "string"
},
{
"indexed": false,
"internalType": "bool",
"name": "oldValue",
"type": "bool"
},
{
"indexed": false,
"internalType": "bool",
"name": "newValue",
"type": "bool"
},
{
"indexed": false,
"internalType": "uint256",
"name": "appliesAtHeight",
"type": "uint256"
}
],
"name": "ConfigUpdateBool",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "string",
"name": "name",
"type": "string"
},
{
"indexed": false,
"internalType": "int256",
"name": "oldValue",
"type": "int256"
},
{
"indexed": false,
"internalType": "int256",
"name": "newValue",
"type": "int256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "appliesAtHeight",
"type": "uint256"
}
],
"name": "ConfigUpdateInt",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "string",
"name": "name",
"type": "string"
},
{
"indexed": false,
"internalType": "uint256",
"name": "oldValue",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "newValue",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "appliesAtHeight",
"type": "uint256"
}
],
"name": "ConfigUpdateUint",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "auctionId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "startTimestamp",
"type": "uint256"
}
],
"name": "NewInterestAuction",
"type": "event"
},
{
"anonymous": false,
"inputs": [],
"name": "PriceUnavailable",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "debtor",
"type": "address"
},
{
"internalType": "uint256",
"name": "liquidatableRound",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "ntnAmount",
"type": "uint256"
}
],
"name": "bidDebt",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "auction",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "ntnAmount",
"type": "uint256"
}
],
"name": "bidInterest",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "auction",
"type": "uint256"
}
],
"name": "getAuction",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "startPrice",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "startTimestamp",
"type": "uint256"
}
],
"internalType": "struct AuctionLib.Auction",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getCollateralToken",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getConfig",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "liquidationAuctionDuration",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "interestAuctionDuration",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "interestAuctionDiscount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "interestAuctionThreshold",
"type": "uint256"
}
],
"internalType": "struct Auctioneer.Config",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getProceedAddress",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "debtor",
"type": "address"
},
{
"internalType": "uint256",
"name": "liquidatableRound",
"type": "uint256"
}
],
"name": "maxLiquidationReturn",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "auction",
"type": "uint256"
}
],
"name": "minInterestPayment",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "openAuctions",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "startPrice",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "startTimestamp",
"type": "uint256"
}
],
"internalType": "struct AuctionLib.Auction[]",
"name": "",
"type": "tuple[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "paidInterest",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "discount",
"type": "uint256"
}
],
"name": "setInterestAuctionDiscount",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "duration",
"type": "uint256"
}
],
"name": "setInterestAuctionDuration",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "threshold",
"type": "uint256"
}
],
"name": "setInterestAuctionThreshold",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "duration",
"type": "uint256"
}
],
"name": "setLiquidationAuctionDuration",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "operator_",
"type": "address"
}
],
"name": "setOperator",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "oracle_",
"type": "address"
}
],
"name": "setOracle",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "proceedAddress_",
"type": "address"
}
],
"name": "setProceedAddress",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "stabilization_",
"type": "address"
}
],
"name": "setStabilization",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]