@etherisc/depeg-contracts
Version:
Etherisc's smart contracts for a depeg insurance for stable coins.
1,625 lines (1,624 loc) • 105 kB
JSON
{
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "blockNumber",
"type": "uint256"
},
{
"indexed": false,
"internalType": "string",
"name": "comment",
"type": "string"
}
],
"name": "LogPriceDataBlockNumberSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "priceId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "price",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "triggeredAt",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "depeggedAt",
"type": "uint256"
}
],
"name": "LogPriceDataDepegged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "priceId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "priceDeviation",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "currentPrice",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "lastPrice",
"type": "uint256"
}
],
"name": "LogPriceDataDeviationExceeded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "priceId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "timeDifference",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "currentCreatedAt",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "lastCreatedAt",
"type": "uint256"
}
],
"name": "LogPriceDataHeartbeatExceeded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "priceId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "price",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "createdAt",
"type": "uint256"
}
],
"name": "LogPriceDataProcessed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "priceId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "price",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "triggeredAt",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "recoveredAt",
"type": "uint256"
}
],
"name": "LogPriceDataRecovered",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "priceId",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "price",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "triggeredAt",
"type": "uint256"
}
],
"name": "LogPriceDataTriggered",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "updatedTriggeredAt",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "forcedDepegAt",
"type": "uint256"
}
],
"name": "LogUsdcProviderForcedDepeg",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "resetDepegAt",
"type": "uint256"
}
],
"name": "LogUsdcProviderResetDepeg",
"type": "event"
},
{
"inputs": [],
"name": "forceDepegForNextPriceInfo",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "getAggregatorAddress",
"outputs": [
{
"internalType": "address",
"name": "aggregatorAddress",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getDecimals",
"outputs": [
{
"internalType": "uint8",
"name": "aggregatorDecimals",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getDepegPriceInfo",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "price",
"type": "uint256"
},
{
"internalType": "enum IPriceDataProvider.ComplianceState",
"name": "compliance",
"type": "uint8"
},
{
"internalType": "enum IPriceDataProvider.StabilityState",
"name": "stability",
"type": "uint8"
},
{
"internalType": "enum IPriceDataProvider.EventType",
"name": "eventType",
"type": "uint8"
},
{
"internalType": "uint256",
"name": "triggeredAt",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "depeggedAt",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "createdAt",
"type": "uint256"
}
],
"internalType": "struct IPriceDataProvider.PriceInfo",
"name": "priceInfo",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getDepeggedAt",
"outputs": [
{
"internalType": "uint256",
"name": "depeggedAt",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getDepeggedBlockNumber",
"outputs": [
{
"internalType": "uint256",
"name": "blockNumber",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getDeviation",
"outputs": [
{
"internalType": "uint256",
"name": "deviationLevel",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getHeartbeat",
"outputs": [
{
"internalType": "uint256",
"name": "heartbeatSeconds",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getLatestPriceInfo",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "price",
"type": "uint256"
},
{
"internalType": "enum IPriceDataProvider.ComplianceState",
"name": "compliance",
"type": "uint8"
},
{
"internalType": "enum IPriceDataProvider.StabilityState",
"name": "stability",
"type": "uint8"
},
{
"internalType": "enum IPriceDataProvider.EventType",
"name": "eventType",
"type": "uint8"
},
{
"internalType": "uint256",
"name": "triggeredAt",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "depeggedAt",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "createdAt",
"type": "uint256"
}
],
"internalType": "struct IPriceDataProvider.PriceInfo",
"name": "priceInfo",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getOwner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getTargetPrice",
"outputs": [
{
"internalType": "uint256",
"name": "targetPrice",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getToken",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getTriggeredAt",
"outputs": [
{
"internalType": "uint256",
"name": "triggeredAt",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "isMainnetProvider",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "isNewPriceInfoEventAvailable",
"outputs": [
{
"internalType": "bool",
"name": "newEvent",
"type": "bool"
},
{
"components": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "price",
"type": "uint256"
},
{
"internalType": "enum IPriceDataProvider.ComplianceState",
"name": "compliance",
"type": "uint8"
},
{
"internalType": "enum IPriceDataProvider.StabilityState",
"name": "stability",
"type": "uint8"
},
{
"internalType": "enum IPriceDataProvider.EventType",
"name": "eventType",
"type": "uint8"
},
{
"internalType": "uint256",
"name": "triggeredAt",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "depeggedAt",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "createdAt",
"type": "uint256"
}
],
"internalType": "struct IPriceDataProvider.PriceInfo",
"name": "priceInfo",
"type": "tuple"
},
{
"internalType": "uint256",
"name": "timeSinceEvent",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "isTestnetProvider",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "processLatestPriceInfo",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "price",
"type": "uint256"
},
{
"internalType": "enum IPriceDataProvider.ComplianceState",
"name": "compliance",
"type": "uint8"
},
{
"internalType": "enum IPriceDataProvider.StabilityState",
"name": "stability",
"type": "uint8"
},
{
"internalType": "enum IPriceDataProvider.EventType",
"name": "eventType",
"type": "uint8"
},
{
"internalType": "uint256",
"name": "triggeredAt",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "depeggedAt",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "createdAt",
"type": "uint256"
}
],
"internalType": "struct IPriceDataProvider.PriceInfo",
"name": "priceInfo",
"type": "tuple"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "resetDepeg",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint128",
"name": "blockNumber",
"type": "uint128"
},
{
"internalType": "string",
"name": "comment",
"type": "string"
}
],
"name": "setDepeggedBlockNumber",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"allSourcePaths": {
"55": "contracts/IPriceDataProvider.sol"
},
"ast": {
"absolutePath": "contracts/IPriceDataProvider.sol",
"exportedSymbols": {
"IPriceDataProvider": [
4897
]
},
"id": 4898,
"license": "Apache-2.0",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 4685,
"literals": [
"solidity",
"0.8",
".2"
],
"nodeType": "PragmaDirective",
"src": "39:22:55"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 4897,
"linearizedBaseContracts": [
4897
],
"name": "IPriceDataProvider",
"nameLocation": "73:18:55",
"nodeType": "ContractDefinition",
"nodes": [
{
"canonicalName": "IPriceDataProvider.ComplianceState",
"id": 4691,
"members": [
{
"id": 4686,
"name": "Undefined",
"nameLocation": "130:9:55",
"nodeType": "EnumValue",
"src": "130:9:55"
},
{
"id": 4687,
"name": "Initializing",
"nameLocation": "149:12:55",
"nodeType": "EnumValue",
"src": "149:12:55"
},
{
"id": 4688,
"name": "Valid",
"nameLocation": "171:5:55",
"nodeType": "EnumValue",
"src": "171:5:55"
},
{
"id": 4689,
"name": "FailedOnce",
"nameLocation": "186:10:55",
"nodeType": "EnumValue",
"src": "186:10:55"
},
{
"id": 4690,
"name": "FailedMultipleTimes",
"nameLocation": "206:19:55",
"nodeType": "EnumValue",
"src": "206:19:55"
}
],
"name": "ComplianceState",
"nameLocation": "104:15:55",
"nodeType": "EnumDefinition",
"src": "99:132:55"
},
{
"canonicalName": "IPriceDataProvider.StabilityState",
"id": 4697,
"members": [
{
"id": 4692,
"name": "Undefined",
"nameLocation": "267:9:55",
"nodeType": "EnumValue",
"src": "267:9:55"
},
{
"id": 4693,
"name": "Initializing",
"nameLocation": "286:12:55",
"nodeType": "EnumValue",
"src": "286:12:55"
},
{
"id": 4694,
"name": "Stable",
"nameLocation": "308:6:55",
"nodeType": "EnumValue",
"src": "308:6:55"
},
{
"id": 4695,
"name": "Triggered",
"nameLocation": "324:9:55",
"nodeType": "EnumValue",
"src": "324:9:55"
},
{
"id": 4696,
"name": "Depegged",
"nameLocation": "343:8:55",
"nodeType": "EnumValue",
"src": "343:8:55"
}
],
"name": "StabilityState",
"nameLocation": "242:14:55",
"nodeType": "EnumDefinition",
"src": "237:120:55"
},
{
"canonicalName": "IPriceDataProvider.EventType",
"id": 4703,
"members": [
{
"id": 4698,
"name": "Undefined",
"nameLocation": "388:9:55",
"nodeType": "EnumValue",
"src": "388:9:55"
},
{
"id": 4699,
"name": "Update",
"nameLocation": "407:6:55",
"nodeType": "EnumValue",
"src": "407:6:55"
},
{
"id": 4700,
"name": "TriggerEvent",
"nameLocation": "423:12:55",
"nodeType": "EnumValue",
"src": "423:12:55"
},
{
"id": 4701,
"name": "RecoveryEvent",
"nameLocation": "445:13:55",
"nodeType": "EnumValue",
"src": "445:13:55"
},
{
"id": 4702,
"name": "DepegEvent",
"nameLocation": "468:10:55",
"nodeType": "EnumValue",
"src": "468:10:55"
}
],
"name": "EventType",
"nameLocation": "368:9:55",
"nodeType": "EnumDefinition",
"src": "363:121:55"
},
{
"anonymous": false,
"id": 4713,
"name": "LogPriceDataDeviationExceeded",
"nameLocation": "496:29:55",
"nodeType": "EventDefinition",
"parameters": {
"id": 4712,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4705,
"indexed": false,
"mutability": "mutable",
"name": "priceId",
"nameLocation": "544:7:55",
"nodeType": "VariableDeclaration",
"scope": 4713,
"src": "536:15:55",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4704,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "536:7:55",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 4707,
"indexed": false,
"mutability": "mutable",
"name": "priceDeviation",
"nameLocation": "569:14:55",
"nodeType": "VariableDeclaration",
"scope": 4713,
"src": "561:22:55",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4706,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "561:7:55",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 4709,
"indexed": false,
"mutability": "mutable",
"name": "currentPrice",
"nameLocation": "601:12:55",
"nodeType": "VariableDeclaration",
"scope": 4713,
"src": "593:20:55",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4708,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "593:7:55",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 4711,
"indexed": false,
"mutability": "mutable",
"name": "lastPrice",
"nameLocation": "631:9:55",
"nodeType": "VariableDeclaration",
"scope": 4713,
"src": "623:17:55",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4710,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "623:7:55",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "526:115:55"
},
"src": "490:152:55"
},
{
"anonymous": false,
"id": 4723,
"name": "LogPriceDataHeartbeatExceeded",
"nameLocation": "654:29:55",
"nodeType": "EventDefinition",
"parameters": {
"id": 4722,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4715,
"indexed": false,
"mutability": "mutable",
"name": "priceId",
"nameLocation": "702:7:55",
"nodeType": "VariableDeclaration",
"scope": 4723,
"src": "694:15:55",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4714,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "694:7:55",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 4717,
"indexed": false,
"mutability": "mutable",
"name": "timeDifference",
"nameLocation": "727:14:55",
"nodeType": "VariableDeclaration",
"scope": 4723,
"src": "719:22:55",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4716,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "719:7:55",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 4719,
"indexed": false,
"mutability": "mutable",
"name": "currentCreatedAt",
"nameLocation": "759:16:55",
"nodeType": "VariableDeclaration",
"scope": 4723,
"src": "751:24:55",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4718,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "751:7:55",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 4721,
"indexed": false,
"mutability": "mutable",
"name": "lastCreatedAt",
"nameLocation": "793:13:55",
"nodeType": "VariableDeclaration",
"scope": 4723,
"src": "785:21:55",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4720,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "785:7:55",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "684:123:55"
},
"src": "648:160:55"
},
{
"anonymous": false,
"id": 4731,
"name": "LogPriceDataTriggered",
"nameLocation": "820:21:55",
"nodeType": "EventDefinition",
"parameters": {
"id": 4730,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4725,
"indexed": false,
"mutability": "mutable",
"name": "priceId",
"nameLocation": "860:7:55",
"nodeType": "VariableDeclaration",
"scope": 4731,
"src": "852:15:55",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4724,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "852:7:55",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 4727,
"indexed": false,
"mutability": "mutable",
"name": "price",
"nameLocation": "885:5:55",
"nodeType": "VariableDeclaration",
"scope": 4731,
"src": "877:13:55",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4726,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "877:7:55",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 4729,
"indexed": false,
"mutability": "mutable",
"name": "triggeredAt",
"nameLocation": "908:11:55",
"nodeType": "VariableDeclaration",
"scope": 4731,
"src": "900:19:55",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4728,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "900:7:55",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "842:78:55"
},
"src": "814:107:55"
},
{
"anonymous": false,
"id": 4741,
"name": "LogPriceDataRecovered",
"nameLocation": "933:21:55",
"nodeType": "EventDefinition",
"parameters": {
"id": 4740,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4733,
"indexed": false,
"mutability": "mutable",
"name": "priceId",
"nameLocation": "973:7:55",
"nodeType": "VariableDeclaration",
"scope": 4741,
"src": "965:15:55",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4732,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "965:7:55",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 4735,
"indexed": false,
"mutability": "mutable",
"name": "price",
"nameLocation": "998:5:55",
"nodeType": "VariableDeclaration",
"scope": 4741,
"src": "990:13:55",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4734,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "990:7:55",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 4737,
"indexed": false,
"mutability": "mutable",
"name": "triggeredAt",
"nameLocation": "1021:11:55",
"nodeType": "VariableDeclaration",
"scope": 4741,
"src": "1013:19:55",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4736,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1013:7:55",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 4739,
"indexed": false,
"mutability": "mutable",
"name": "recoveredAt",
"nameLocation": "1050:11:55",
"nodeType": "VariableDeclaration",
"scope": 4741,
"src": "1042:19:55",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4738,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1042:7:55",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "955:107:55"
},
"src": "927:136:55"
},
{
"anonymous": false,
"id": 4751,
"name": "LogPriceDataDepegged",
"nameLocation": "1075:20:55",
"nodeType": "EventDefinition",
"parameters": {
"id": 4750,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4743,
"indexed": false,
"mutability": "mutable",
"name": "priceId",
"nameLocation": "1114:7:55",
"nodeType": "VariableDeclaration",
"scope": 4751,
"src": "1106:15:55",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4742,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1106:7:55",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 4745,
"indexed": false,
"mutability": "mutable",
"name": "price",
"nameLocation": "1139:5:55",
"nodeType": "VariableDeclaration",
"scope": 4751,
"src": "1131:13:55",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4744,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1131:7:55",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 4747,
"indexed": false,
"mutability": "mutable",
"name": "triggeredAt",
"nameLocation": "1162:11:55",
"nodeType": "VariableDeclaration",
"scope": 4751,
"src": "1154:19:55",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4746,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1154:7:55",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 4749,
"indexed": false,
"mutability": "mutable",
"name": "depeggedAt",
"nameLocation": "1191:10:55",
"nodeType": "VariableDeclaration",
"scope": 4751,
"src": "1183:18:55",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4748,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1183:7:55",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "1096:106:55"
},
"src": "1069:134:55"
},
{
"anonymous": false,
"id": 4759,
"name": "LogPriceDataProcessed",
"nameLocation": "1215:21:55",
"nodeType": "EventDefinition",
"parameters": {
"id": 4758,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4753,
"indexed": false,
"mutability": "mutable",
"name": "priceId",
"nameLocation": "1255:7:55",
"nodeType": "VariableDeclaration",
"scope": 4759,
"src": "1247:15:55",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4752,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1247:7:55",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 4755,
"indexed": false,
"mutability": "mutable",
"name": "price",
"nameLocation": "1280:5:55",
"nodeType": "VariableDeclaration",
"scope": 4759,
"src": "1272:13:55",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4754,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1272:7:55",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 4757,
"indexed": false,
"mutability": "mutable",
"name": "createdAt",
"nameLocation": "1303:9:55",
"nodeType": "VariableDeclaration",
"scope": 4759,
"src": "1295:17:55",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4756,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1295:7:55",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "1237:76:55"
},
"src": "1209:105:55"
},
{
"anonymous": false,
"id": 4765,
"name": "LogPriceDataBlockNumberSet",
"nameLocation": "1326:26:55",
"nodeType": "EventDefinition",
"parameters": {
"id": 4764,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4761,
"indexed": false,
"mutability": "mutable",
"name": "blockNumber",
"nameLocation": "1370:11:55",
"nodeType": "VariableDeclaration",
"scope": 4765,
"src": "1362:19:55",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4760,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1362:7:55",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 4763,
"indexed": false,
"mutability": "mutable",
"name": "comment",
"nameLocation": "1399:7:55",
"nodeType": "VariableDeclaration",
"scope": 4765,
"src": "1392:14:55",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 4762,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "1392:6:55",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
}
],
"src": "1352:55:55"
},
"src": "1320:88:55"
},
{
"anonymous": false,
"id": 4771,
"name": "LogUsdcProviderForcedDepeg",
"nameLocation": "1420:26:55",
"nodeType": "EventDefinition",
"parameters": {
"id": 4770,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 4767,
"indexed": false,
"mutability": "mutable",
"name": "updatedTriggeredAt",
"nameLocation": "1465:18:55",
"nodeType": "VariableDeclaration",
"scope": 4771,
"src": "1457:26:55",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4766,