@layerzerolabs/lz-sui-sdk-v2
Version:
22 lines (18 loc) • 695 B
text/typescript
// PriceFeed configuration and data interfaces
// Model Types enum - matches Move contract ModelType
export enum ModelType {
DEFAULT = 0,
ARB_STACK = 1,
OP_STACK = 2,
}
// Price struct interface - matches Move contract Price struct
export interface Price {
priceRatio: bigint // u128 in Move (price_ratio)
gasPriceInUnit: bigint // u64 in Move (gas_price_in_unit)
gasPerByte: number // u32 in Move (gas_per_byte)
}
// ArbitrumPriceExt struct interface - matches Move contract ArbitrumPriceExt struct
export interface ArbitrumPriceExt {
gasPerL2Tx: bigint // u64 in Move (gas_per_l2_tx)
gasPerL1CallDataByte: number // u32 in Move (gas_per_l1_call_data_byte)
}