Module 0x0::constants
Constants
const FLOAT_SCALING: u64 = 1000000000;
const FLOAT_SCALING_U128: u128 = 1000000000;
const MAX_FAN_OUT: u64 = 64;
const MAX_SLICE_SIZE: u64 = 64;
const CANCELED: u8 = 3;
const CANCEL_MAKER: u8 = 2;
const CANCEL_TAKER: u8 = 1;
const CURRENT_VERSION: u64 = 1;
const DEEP_UNIT: u64 = 1000000;
const DEFAULT_STAKE_REQUIRED: u64 = 100000000;
const EXPIRED: u8 = 4;
const FEE_IS_DEEP: bool = true;
const FILLED: u8 = 2;
const FILL_OR_KILL: u8 = 2;
const HALF: u64 = 500000000;
const IMMEDIATE_OR_CANCEL: u8 = 1;
const LIVE: u8 = 0;
const MAX_FILLS: u64 = 100;
const MAX_OPEN_ORDERS: u64 = 100;
const MAX_PRICE: u64 = 9223372036854775807;
const MAX_RESTRICTION: u8 = 3;
const MAX_U128: u128 = 340282366920938463463374607431768211455;
const MAX_U64: u64 = 18446744073709551615;
const MIN_PRICE: u64 = 1;
const NO_RESTRICTION: u8 = 0;
const PARTIALLY_FILLED: u8 = 1;
const PHASE_OUT_EPOCHS: u64 = 28;
const POOL_CREATION_FEE: u64 = 0;
const POST_ONLY: u8 = 3;
const SELF_MATCHING_ALLOWED: u8 = 0;
Function current_version
public fun current_version(): u64
Implementation
public fun current_version(): u64 {
CURRENT_VERSION
}
Function pool_creation_fee
public fun pool_creation_fee(): u64
Implementation
public fun pool_creation_fee(): u64 {
POOL_CREATION_FEE
}
Function float_scaling
public fun float_scaling(): u64
Implementation
public fun float_scaling(): u64 {
FLOAT_SCALING
}
Function float_scaling_u128
public fun float_scaling_u128(): u128
Implementation
public fun float_scaling_u128(): u128 {
FLOAT_SCALING_U128
}
Function max_u64
public fun max_u64(): u64
Implementation
public fun max_u64(): u64 {
MAX_U64
}
Function max_u128
public fun max_u128(): u128
Implementation
public fun max_u128(): u128 {
MAX_U128
}
Function no_restriction
public fun no_restriction(): u8
Implementation
public fun no_restriction(): u8 {
NO_RESTRICTION
}
public fun immediate_or_cancel(): u8
Implementation
public fun immediate_or_cancel(): u8 {
IMMEDIATE_OR_CANCEL
}
Function fill_or_kill
public fun fill_or_kill(): u8
Implementation
public fun fill_or_kill(): u8 {
FILL_OR_KILL
}
Function post_only
public fun post_only(): u8
Implementation
public fun post_only(): u8 {
POST_ONLY
}
Function max_restriction
public fun max_restriction(): u8
Implementation
public fun max_restriction(): u8 {
MAX_RESTRICTION
}
Function live
public fun live(): u8
Implementation
public fun live(): u8 {
LIVE
}
Function partially_filled
public fun partially_filled(): u8
Implementation
public fun partially_filled(): u8 {
PARTIALLY_FILLED
}
Function filled
public fun filled(): u8
Implementation
public fun filled(): u8 {
FILLED
}
Function canceled
public fun canceled(): u8
Implementation
public fun canceled(): u8 {
CANCELED
}
Function expired
public fun expired(): u8
Implementation
public fun expired(): u8 {
EXPIRED
}
Function self_matching_allowed
public fun self_matching_allowed(): u8
Implementation
public fun self_matching_allowed(): u8 {
SELF_MATCHING_ALLOWED
}
Function cancel_taker
public fun cancel_taker(): u8
Implementation
public fun cancel_taker(): u8 {
CANCEL_TAKER
}
Function cancel_maker
public fun cancel_maker(): u8
Implementation
public fun cancel_maker(): u8 {
CANCEL_MAKER
}
Function min_price
public fun min_price(): u64
Implementation
public fun min_price(): u64 {
MIN_PRICE
}
Function max_price
public fun max_price(): u64
Implementation
public fun max_price(): u64 {
MAX_PRICE
}
Function phase_out_epochs
public fun phase_out_epochs(): u64
Implementation
public fun phase_out_epochs(): u64 {
PHASE_OUT_EPOCHS
}
Function default_stake_required
public fun default_stake_required(): u64
Implementation
public fun default_stake_required(): u64 {
DEFAULT_STAKE_REQUIRED
}
Function half
public fun half(): u64
Implementation
public fun half(): u64 {
HALF
}
Function fee_is_deep
public fun fee_is_deep(): bool
Implementation
public fun fee_is_deep(): bool {
FEE_IS_DEEP
}
Function deep_unit
public fun deep_unit(): u64
Implementation
public fun deep_unit(): u64 {
DEEP_UNIT
}
Function max_fills
public fun max_fills(): u64
Implementation
public fun max_fills(): u64 {
MAX_FILLS
}
Function max_open_orders
public fun max_open_orders(): u64
Implementation
public fun max_open_orders(): u64 {
MAX_OPEN_ORDERS
}
Function max_slice_size
public fun max_slice_size(): u64
Implementation
public fun max_slice_size(): u64 {
MAX_SLICE_SIZE
}
Function max_fan_out
public fun max_fan_out(): u64
Implementation
public fun max_fan_out(): u64 {
MAX_FAN_OUT
}