Variable ORACLE_PRECOMPILE_ABIConst
ORACLE_PRECOMPILE_ABI: readonly [
{
inputs: readonly [];
name: "getExchangeRates";
outputs: readonly [
{
components: readonly [
{ internalType: "string"; name: "denom"; type: "string" },
{
components: readonly [
{ internalType: "string"; name: "exchangeRate"; type: "string" },
{ internalType: "string"; name: "lastUpdate"; type: "string" },
{ internalType: "int64"; name: "lastUpdateTimestamp"; type: "int64" },
];
internalType: "struct IOracle.OracleExchangeRate";
name: "oracleExchangeRateVal";
type: "tuple";
},
];
internalType: "struct IOracle.DenomOracleExchangeRatePair[]";
name: "";
type: "tuple[]";
},
];
stateMutability: "view";
type: "function";
},
{
inputs: readonly [
{ internalType: "uint64"; name: "lookback_seconds"; type: "uint64" },
];
name: "getOracleTwaps";
outputs: readonly [
{
components: readonly [
{ internalType: "string"; name: "denom"; type: "string" },
{ internalType: "string"; name: "twap"; type: "string" },
{ internalType: "int64"; name: "lookbackSeconds"; type: "int64" },
];
internalType: "struct IOracle.OracleTwap[]";
name: "";
type: "tuple[]";
},
];
stateMutability: "view";
type: "function";
},
] = ...
The ABI for the Oracle precompile contract.