-
Notifications
You must be signed in to change notification settings - Fork 189
/
insurance.ts
30 lines (26 loc) · 925 Bytes
/
insurance.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import {
InjectiveInsuranceV1Beta1Insurance,
InjectiveOracleV1Beta1Oracle,
} from '@injectivelabs/core-proto-ts'
export interface InsuranceModuleParams {
defaultRedemptionNoticePeriodDuration: number
}
export interface InsuranceFund {
depositDenom: string
insurancePoolTokenDenom: string
redemptionNoticePeriodDuration?: number
balance: string
totalShare: string
marketId: string
marketTicker: string
oracleBase: string
oracleQuote: string
oracleType: InjectiveOracleV1Beta1Oracle.OracleType
expiry: number
}
export type GrpcInsuranceParams = InjectiveInsuranceV1Beta1Insurance.Params
export type GrpcInsuranceFund = InjectiveInsuranceV1Beta1Insurance.InsuranceFund
export type GrpcRedemptionSchedule =
InjectiveInsuranceV1Beta1Insurance.RedemptionSchedule
export type OracleType = InjectiveOracleV1Beta1Oracle.OracleType
export const OracleTypeMap = InjectiveOracleV1Beta1Oracle.OracleType