UNPKG

@sei-js/evm

Version:

TypeScript library for EVM interactions on the Sei blockchain

70 lines (69 loc) 2.36 kB
/** * The address of the Oracle precompile contract. * @category Cosmos Interoperability */ export declare const ORACLE_PRECOMPILE_ADDRESS: `0x${string}`; /** * The ABI for the Oracle precompile contract. * @category Cosmos Interoperability */ export declare const ORACLE_PRECOMPILE_ABI: readonly [{ readonly inputs: readonly []; readonly name: "getExchangeRates"; readonly outputs: readonly [{ readonly components: readonly [{ readonly internalType: "string"; readonly name: "denom"; readonly type: "string"; }, { readonly components: readonly [{ readonly internalType: "string"; readonly name: "exchangeRate"; readonly type: "string"; }, { readonly internalType: "string"; readonly name: "lastUpdate"; readonly type: "string"; }, { readonly internalType: "int64"; readonly name: "lastUpdateTimestamp"; readonly type: "int64"; }]; readonly internalType: "struct IOracle.OracleExchangeRate"; readonly name: "oracleExchangeRateVal"; readonly type: "tuple"; }]; readonly internalType: "struct IOracle.DenomOracleExchangeRatePair[]"; readonly name: ""; readonly type: "tuple[]"; }]; readonly stateMutability: "view"; readonly type: "function"; }, { readonly inputs: readonly [{ readonly internalType: "uint64"; readonly name: "lookback_seconds"; readonly type: "uint64"; }]; readonly name: "getOracleTwaps"; readonly outputs: readonly [{ readonly components: readonly [{ readonly internalType: "string"; readonly name: "denom"; readonly type: "string"; }, { readonly internalType: "string"; readonly name: "twap"; readonly type: "string"; }, { readonly internalType: "int64"; readonly name: "lookbackSeconds"; readonly type: "int64"; }]; readonly internalType: "struct IOracle.OracleTwap[]"; readonly name: ""; readonly type: "tuple[]"; }]; readonly stateMutability: "view"; readonly type: "function"; }];