pool_factory
Module0x8925…bce5
- Move path
- 0x91bf…9ca1::pool_factory
- Functions
- 2117 public, 16 entry
- Structs
- 6
- Friend modules
- None
pool_factory
- fee4
- fee10000bps1
- fee100bps1
- fee3000bps1
- fee500bps1
- full_math_u1286
- full_math_u326
- full_math_u646
- i12831
- i3230
- i6428
- math_bit2
- math_liquidity7
- math_sqrt_price8
- math_swap3
- math_tick7
- math_u12817
- math_u2565
- math_u647
- pool87
- pool_factory21
- pool_fetcher1
- position_manager37
- position_nft5
- reward_manager8
- string_tools5
- swap_router13
Functions21
- public entry fun collect_protocol_fee<T0, T1, T2>(&PoolFactoryAdminCap,&mut pool::Pool<T0, T1, T2>,u64,u64,address,&pool::Versioned)
- public fun collect_protocol_fee_with_return_<T0, T1, T2>(&PoolFactoryAdminCap,&mut pool::Pool<T0, T1, T2>,u64,u64,address,&pool::Versioned): (Coin<T0>, Coin<T1>)
- public entry fun deploy_pool<T0, T1, T2>(&mut PoolConfig,&fee::Fee<T2>,u128,&Clock,&pool::Versioned)
- public entry fun deploy_pool_and_mint<T0, T1, T2>(&mut PoolConfig,&fee::Fee<T2>,u128,&mut position_manager::Positions,vector<Coin<T0>>,vector<Coin<T1>>,u32,bool,u32,bool,u64,u64,u64,u64,address,u64,&Clock,&pool::Versioned)
- public entry fun fake_swap<T0, T1, T2>(&PoolFactoryAdminCap,&mut pool::Pool<T0, T1, T2>,address,bool,u128,bool,u128,&Clock,&pool::Versioned)
- public entry fun migrate_position<T0, T1, T2>(&PoolFactoryAdminCap,&mut pool::Pool<T0, T1, T2>,&mut position_manager::Positions,vector<address>,address,&pool::Versioned)
- public entry fun modify_reward<T0, T1, T2>(&PoolFactoryAdminCap,&mut pool::Pool<T0, T1, T2>,&mut position_manager::Positions,u32,bool,u32,bool,vector<address>,vector<address>,&pool::Versioned)
- public entry fun modify_tick<T0, T1, T2>(&PoolFactoryAdminCap,&mut pool::Pool<T0, T1, T2>,u32,bool,&pool::Versioned)
- public entry fun modify_tick_reward<T0, T1, T2>(&PoolFactoryAdminCap,&mut pool::Pool<T0, T1, T2>,u32,bool,&Clock,&pool::Versioned)
- public entry fun set_fee_tier<T0>(&PoolFactoryAdminCap,&mut PoolConfig,&fee::Fee<T0>,&pool::Versioned)
- public entry fun toggle_pool_status<T0, T1, T2>(&PoolFactoryAdminCap,&mut pool::Pool<T0, T1, T2>,&pool::Versioned)
- public entry fun update_nft_description(&PoolFactoryAdminCap,&mut position_manager::Positions,String,&pool::Versioned)
- public entry fun update_nft_img_url(&PoolFactoryAdminCap,&mut position_manager::Positions,String,&pool::Versioned)
- public entry fun update_nft_name(&PoolFactoryAdminCap,&mut position_manager::Positions,String,&pool::Versioned)
- public entry fun update_pool_fee_protocol<T0, T1, T2>(&PoolFactoryAdminCap,&mut pool::Pool<T0, T1, T2>,u32,&pool::Versioned)
Structs6
key is an object with an id. store can be kept inside other objects. copy can be duplicated. drop can be thrown away.
- FeeAmountEnabledEventcopydrop
fee u32 tick_spacing u32 - PoolConfigstorekey
id UID fee_map VecMap<String, ID> fee_protocol u32 pools Table<ID, PoolSimpleInfo> - PoolCreatedEventcopydrop
account address pool ID fee u32 tick_spacing u32 fee_protocol u32 sqrt_price u128 - PoolFactoryAdminCapstorekey
id UID - PoolSimpleInfocopystore
pool_id ID pool_key ID coin_type_a TypeName coin_type_b TypeName fee_type TypeName fee u32 tick_spacing u32 - SetFeeProtocolEventcopydrop
fee_protocol u32
Constants14
Constants are shown the way the code loads them. Bytecode does not keep their names.
| Slot | Value | Type | Use | Used in |
|---|---|---|---|---|
| 0 | 0 | u64 | Abort code | init_deploy_pool_and_mint_with_return_ |
| 1 | 1 | u64 | Abort code | compare_types |
| 2 | 2 | u64 | Abort code | compare_types |
| 3 | 3 | u64 | Abort code | compare_types |
| 4 | 4 | u64 | Abort code | init_deploy_pool_and_mint_with_return_ |
| 5 | 5 | u64 | Abort code | init_deploy_pool_and_mint_with_return_ |
| 6 | 6 | u64 | Abort code | check_clmm_manager_role |
| 7 | 7 | u64 | Abort code | check_reward_manager_role |
| 8 | 8 | u64 | Abort code | check_claim_protocol_fee_manager_role |
| 9 | 9 | u64 | Abort code | check_pause_pool_manager_role |
| 10 | 0 | u8 | Value | collect_protocol_fee_with_return_v2check_clmm_manager_role |
| 11 | 1 | u8 | Value | collect_protocol_fee_with_return_v2check_reward_manager_role |
| 12 | 2 | u8 | Value | collect_protocol_fee_with_return_v2check_claim_protocol_fee_manager_role |
| 13 | 3 | u8 | Value | collect_protocol_fee_with_return_v2check_pause_pool_manager_role |