UNPKG

@indigo-labs/indigo-sdk

Version:

Indigo SDK for interacting with Indigo endpoints via lucid-evolution

17 lines (14 loc) 497 B
import { Data } from '@lucid-evolution/lucid'; export const InterestOracleParamsSchema = Data.Object({ /** Milliseconds */ biasTime: Data.Integer(), owner: Data.Bytes(), }); export type InterestOracleParams = Data.Static< typeof InterestOracleParamsSchema >; const InterestOracleParams = InterestOracleParamsSchema as unknown as InterestOracleParams; export function castInterestOracleParams(params: InterestOracleParams): Data { return Data.castTo(params, InterestOracleParams); }