Package 0x926d…7bb6 | SuiLearn ExplorerDetails
- Version
- 22
- Modules
- 15 (454 functions)
Versions
Each upgrade is a new package ID
account50 functions · 5 structs
Functions
- add_marginFRIEND
- add_margin_to_asset_vectorFRIEND
- apply_funding_rateFRIEND
- apply_funding_rate_to_positions
- assert_valid_fee_tierFRIEND
- asset_to_usd
- bankruptcy_price_from_componentsFRIEND
- calculate_effective_leveragePUBLIC
- compute_position_pnlPUBLIC
v220x926d…7bb6this versioncreate_deposited_asset
PUBLIC
create_empty_positionFRIENDcreate_positionFRIENDdec_funding_appliedPUBLICget_account_positionPUBLICget_account_typePUBLICget_account_valueFRIENDget_account_value_and_healthPUBLICget_asset_quantityFRIENDget_assetsPUBLICget_assets_vectorFRIENDget_authorized_accountsPUBLICget_cross_positionsPUBLICget_fee_assetPUBLICget_feesPUBLICget_immutable_position_for_perpetualPUBLICget_isolated_positionsPUBLICget_max_withdrawable_amountFRIENDget_mutable_position_for_perpetualFRIENDget_pending_funding_paymentFRIENDget_positionFRIENDget_position_bankruptcy_and_purchase_pricePUBLICget_position_valuesPUBLICget_position_values_including_fundingPUBLICget_positions_vectorFRIENDget_total_effective_balanceFRIENDget_total_margin_requiredFRIENDget_trading_feePUBLICget_unrealized_pnlFRIENDget_usdc_amountPUBLIChas_most_negative_pnlPUBLIChas_most_positive_pnlPUBLIChas_non_positive_net_equityFRIENDhas_open_positionPUBLIChas_permissionPUBLICinitializeFRIENDis_bankruptPUBLICis_institutionPUBLICis_liquidateablePUBLICno_positive_pnl_positionsFRIENDset_account_typeFRIENDStructs
- Account
- DepositedAsset
- FundingApplied
- Position
- TradeFee
admin9 functions · 2 structs
Functions
- activate_timelockPUBLIC
- init
- receive_cap_for_timelockPUBLIC
- receive_cap_for_transferPUBLIC
- receive_cap_impl
- return_cap_to_timelockPUBLIC
- transfer_admin_capentry
- transfer_admin_cap_for_pkgFRIEND
- transfer_cap_from_timelockPUBLIC
Explore admin in Playground bank18 functions · 4 structs
Functions
- asset_exists_in_tablePUBLIC
- asset_valuesPUBLIC
- create_asset
- create_asset_bankFRIEND
- deposit_to_asset_bankFRIEND
- get_asset_supplyFRIEND
- get_asset_type
- get_asset_with_provided_usd_valuePUBLIC
- get_supported_assetPUBLIC
- is_asset_supportedPUBLIC
- is_asset_syncedPUBLIC
- merge_coin_into_balanceFRIEND
- remove_depositFRIEND
- set_asset_status_as_syncedFRIEND
- set_deposit_bandFRIEND
- support_assetFRIEND
- validate_supported_assetFRIEND
- withdraw_from_asset_bankFRIEND
Structs
- Asset
- AssetBank
- Deposit
- SupportedAsset
Explore bank in Playground bcs_handler31 functions · 3 structs
Functions
- dec_adjust_leveragePUBLIC
- dec_adjust_marginPUBLIC
- dec_adlPUBLIC
- dec_apply_funding_ratePUBLIC
- dec_authorizationPUBLIC
- dec_authorize_liquidatorPUBLIC
- dec_close_positionPUBLIC
- dec_liquidationPUBLIC
- dec_market_detailsPUBLIC
- dec_orderPUBLIC
- dec_prune_tablePUBLIC
- dec_set_account_typePUBLIC
- dec_set_deposits_pauseFRIEND
- dec_set_fee_tierPUBLIC
- dec_set_funding_ratePUBLIC
- dec_set_gas_feePUBLIC
- dec_set_gas_poolPUBLIC
- dec_set_withdrawals_pauseFRIEND
- dec_tee_update_account_typePUBLIC
- dec_tee_update_assetsPUBLIC
- dec_tee_update_assets_v2FRIEND
- dec_tee_update_authorized_accountPUBLIC
- dec_tee_update_positionPUBLIC
- dec_tee_update_user_trade_feePUBLIC
- dec_trades_batchPUBLIC
- dec_withdrawalPUBLIC
- dec_withdrawal_with_toPUBLIC
- dec_withdrawal_wrapperPUBLIC
- enc_depositPUBLIC
- enc_operator_updatePUBLIC
- enc_tradePUBLIC
Structs
- Deposit
- OperatorUpdate
- Trade
Explore bcs_handler in Playground constants50 functions · 0 structs
Functions
- action_add_marginPUBLIC
- action_adjust_leveragePUBLIC
- action_close_positionPUBLIC
- action_deleveragePUBLIC
- action_isolated_tradePUBLIC
- action_liquidatePUBLIC
- action_remove_marginPUBLIC
- action_tradePUBLIC
- action_withdrawPUBLIC
- adl_fee_ratePUBLIC
- base_uintPUBLIC
- clock_skew_tolerance_msPUBLIC
- deposit_typePUBLIC
- ed25519_schemePUBLIC
- empty_stringPUBLIC
- fills_tablePUBLIC
- get_supported_operatorsPUBLIC
- get_versionPUBLIC
- history_tablePUBLIC
- imr_thresholdPUBLIC
- lifespanPUBLIC
- max_authorized_accountsPUBLIC
- max_effective_leverageFRIEND
- max_feePUBLIC
- max_gas_feePUBLIC
- max_prune_batchFRIEND
- max_value_u64PUBLIC
- mmr_thresholdPUBLIC
- payload_type_adlPUBLIC
- payload_type_authorizing_liquidatorPUBLIC
- payload_type_liquidatePUBLIC
- payload_type_pruning_tablePUBLIC
- payload_type_set_deposits_pauseFRIEND
- payload_type_set_withdrawals_pausePUBLIC
- payload_type_setting_account_fee_tierPUBLIC
- payload_type_setting_account_typePUBLIC
- payload_type_setting_funding_ratePUBLIC
- payload_type_setting_gas_feePUBLIC
- payload_type_setting_gas_poolPUBLIC
- payload_type_tee_asset_updatePUBLIC
- payload_type_tee_position_updatePUBLIC
- payload_type_tee_update_account_typePUBLIC
- payload_type_tee_user_authorized_accounts_updatePUBLIC
- payload_type_tee_user_trade_fee_updatePUBLIC
- position_crossPUBLIC
- position_isolatedPUBLIC
- position_longPUBLIC
- position_shortPUBLIC
- protocol_decimalsPUBLIC
- secp256k1_schemePUBLIC
Explore constants in Playground data_store50 functions · 10 structs
Functions
- apply_funding_rateFRIEND
- apply_withdrawal_rate_limitFRIEND
- assert_leverage_within_imr_capFRIEND
- assert_position_within_max_notional_at_openFRIEND
- authorize_liquidatorFRIEND
- check_if_perp_existsFRIEND
- check_if_perp_exists_in_idsFRIEND
- clear_admin_timelock_idPUBLIC
- clear_upgrade_timelock_idPUBLIC
- compute_and_update_sequence_hashFRIEND
- consume_or_abort_limiter
- create_internal_data_storeentry
- create_internal_data_store_implPUBLIC
- create_perpetualentry
- create_perpetual_implPUBLIC
- create_user_accountFRIEND
- eds_increment_sequence_numberFRIEND
- external_data_store_creator
- filled_order_quantity_from_tableFRIEND
- get_assetPUBLIC
- get_asset_bankFRIEND
- get_current_ids_idFRIEND
- get_deposits_pause_last_signed_atFRIEND
- get_eds_addressFRIEND
- get_eds_guardianFRIEND
- get_eds_idFRIEND
- get_eds_versionFRIEND
- get_gas_fee_amountPUBLIC
- get_gas_poolPUBLIC
- get_ids_addressFRIEND
- get_ids_idFRIEND
- get_ids_recipientFRIEND
- get_ids_versionFRIEND
- get_immutable_account_from_accounts_tableFRIEND
- get_immutable_account_from_idsFRIEND
- get_immutable_assets_table_from_idsFRIEND
- get_immutable_perpetual_from_idsFRIEND
- get_immutable_perpetual_from_tableFRIEND
- get_immutable_perpetual_table_from_idsFRIEND
- get_mutable_account_from_accounts_tableFRIEND
- get_mutable_account_from_idsFRIEND
- get_mutable_accounts_table_from_idsFRIEND
- get_operator_addressFRIEND
- get_perpetual_from_edsFRIEND
- get_perpetual_from_idsFRIEND
- get_tables_from_idsFRIEND
- get_withdrawals_pause_last_signed_atFRIEND
- has_upgrade_timelock_idFRIEND
- ids_increment_sequence_numberFRIEND
- increment_external_data_store_versionentry
Structs
- DepositsPauseState
- EDSPerpetual
- ExternalDataStore
- InternalDataStore
- OrderFill
- WithdrawRateLimitAccountKey
- WithdrawRateLimitConfig
- WithdrawRateLimitConfigKey
- WithdrawRateLimitGlobalKey
- WithdrawalsPauseState
Explore data_store in Playground errors50 functions · 0 structs
Functions
- account_does_not_existPUBLIC
- adl_maker_has_open_winnerFRIEND
- adl_maker_not_losingPUBLIC
- adl_maker_profit_nonzeroPUBLIC
- adl_no_taker_foundPUBLIC
- adl_winner_lossPUBLIC
- admin_timelock_already_initializedPUBLIC
- all_or_nothingPUBLIC
- already_delistedPUBLIC
- already_syncedPUBLIC
- amount_exceeds_bank_supplyPUBLIC
- asset_already_supportedPUBLIC
- asset_not_supportedPUBLIC
- asset_type_and_symbol_mismatchPUBLIC
- bad_debtPUBLIC
- can_not_be_zeroPUBLIC
- can_not_be_zero_addressPUBLIC
- cap_mismatchFRIEND
- coin_does_not_have_enough_amountPUBLIC
- delist_on_paused_marketFRIEND
- deposits_pausedFRIEND
- deprecated_functionPUBLIC
- exceeds_lifespanPUBLIC
- exceeds_max_order_quantityFRIEND
- exceeds_max_prune_batchFRIEND
- expiredPUBLIC
- funding_rate_exceeds_max_allowed_limitPUBLIC
- health_check_failedPUBLIC
- insufficient_fundsPUBLIC
- insufficient_marginPUBLIC
- insufficient_position_sizePUBLIC
- invalid_collateral_configPUBLIC
- invalid_edsPUBLIC
- invalid_fee_tierPUBLIC
- invalid_fill_pricePUBLIC
- invalid_funding_timePUBLIC
- invalid_gas_feePUBLIC
- invalid_internal_data_storePUBLIC
- invalid_leveragePUBLIC
- invalid_noncePUBLIC
- invalid_operator_typePUBLIC
- invalid_oracle_pricePUBLIC
- invalid_payload_typePUBLIC
- invalid_permissionPUBLIC
- invalid_perpetual_configPUBLIC
- invalid_position_for_liquidationPUBLIC
- invalid_quantityPUBLIC
- invalid_sequence_hashPUBLIC
- invalid_table_typePUBLIC
- invalid_trade_pricePUBLIC
Explore errors in Playground events41 functions · 43 structs
Functions
- emit_account_type_updated_eventFRIEND
- emit_adl_executed_eventFRIEND
- emit_admin_cap_transfer_eventFRIEND
- emit_asset_bank_deposit_eventFRIEND
- emit_asset_deposit_band_updated_eventFRIEND
- emit_asset_supported_eventFRIEND
- emit_asset_synced_eventFRIEND
- emit_authorized_accounts_updated_eventFRIEND
- emit_bankrupt_liquidator_authorized_eventFRIEND
- emit_delisted_market_position_closed_eventFRIEND
- emit_deposit_eventFRIEND
- emit_deposits_pause_updated_eventFRIEND
- emit_eds_guardian_updated_eventFRIEND
- emit_eds_operator_updateFRIEND
- emit_fee_tier_updated_eventFRIEND
- emit_funding_rate_applied_eventFRIEND
- emit_funding_rate_update_eventFRIEND
- emit_gas_fee_updated_eventFRIEND
- emit_gas_pool_updated_eventFRIEND
- emit_ids_recipient_armed_eventFRIEND
- emit_internal_exchange_created_eventFRIEND
- emit_leverage_adjusted_eventFRIEND
- emit_liquidation_executed_eventFRIEND
- emit_margin_adjusted_eventFRIEND
- emit_operator_synced_eventFRIEND
- emit_oracle_price_update_eventFRIEND
- emit_perpetual_synced_eventFRIEND
- emit_perpetual_update_eventFRIEND
- emit_removed_tainted_deposit_eventFRIEND
- emit_table_pruned_eventFRIEND
- emit_tee_account_type_updated_eventFRIEND
- emit_tee_assets_updated_eventFRIEND
- emit_tee_authorized_accounts_updated_eventFRIEND
- emit_tee_position_update_eventFRIEND
- emit_tee_trade_fee_updated_eventFRIEND
- emit_trade_executed_eventFRIEND
- emit_user_authorized_eventFRIEND
- emit_withdraw_eventFRIEND
- emit_withdraw_rate_limit_configured_eventFRIEND
- emit_withdraw_v2_eventFRIEND
- emit_withdrawals_pause_updated_eventFRIEND
Structs
- ADLExecuted
- ADLExecutedV2
- AccountTypeUpdatedEvent
- AdminCapTransferred
- AssetBankDeposit
- AssetDepositBandUpdated
- AssetSupported
- AssetSynced
- AuthorizedAccountsUpdated
- BankruptLiquidatorAuthorizedEvent
- Deposit
- DepositsPauseUpdated
- EDSOperatorUpdated
- EdsGuardianUpdated
- FeeTierUpdatedEvent
- FundingRateApplied
- FundingRateUpdated
- GasFeeUpdatedEvent
- GasPoolUpdatedEvent
- IdsRecipientArmed
- InternalDataStoreCreated
- LeverageAdjusted
- LiquidationExecuted
- MarginAdjusted
- OperatorSynced
- OraclePriceUpdate
- PerpetualSynced
- PerpetualUpdate
- PositionClosed
- TEEAccountTypeUpdated
- TEEAssetsUpdated
- TEEAuthorizedAccountsUpdated
- TEEPositionUpdated
- TEETradeFeeUpdated
- TablePruned
- TaintedAssetRemoved
- TradeExecuted
- Trader
- UserAuthorized
- Withdraw
- WithdrawRateLimitConfigured
- WithdrawV2
- WithdrawalsPauseUpdated
Explore events in Playground exchange33 functions · 0 structs
Functions
- adjust_leverageentry
- adjust_marginentry
- apply_funding_rateentry
- assert_user_only_has_isolated_or_cross_position
- authorize_accountentry
- authorize_liquidatorentry
- batch_tradeentry
- batch_trade_internal
- batch_trade_with_provided_gas_feeentry
- begin_bank_action
- begin_sequenced_ids_action
- check_ids_eds_versions
- close_positionentry
- deleverageentry
- deposit_to_asset_bankentryPUBLIC
- deposit_to_internal_bankentry
- liquidateentry
- notion_cap
- pre_trade_checks
- prune_tableentry
- remove_tainted_assetentry
- set_account_typeentry
- set_deposits_pauseentry
- set_fee_tierentry
- set_funding_rateentry
- set_gas_feeentry
- set_gas_poolentry
- set_withdrawals_pauseentry
- tradeentry
- validate_order
- validate_signed_operator_action
- verify_notion
- withdraw_from_bankentry
Explore exchange in Playground margining_engine19 functions · 1 structs
Functions
- account_health
- apply_mathsFRIEND
- apply_maths_internalFRIEND
- calculate_effective_leveragePUBLIC
- calculate_liquidation_premium_portionsPUBLIC
- calculate_pnlPUBLIC
- compute_trade_feeFRIEND
- get_withdrawable_assetsPUBLIC
- health_from
- premium_or_debt_settlement
- settle_fee
- settle_gas_charges
- settle_liquidatee_pending_funding_payment
- settle_margin
- settle_pnl
- settle_shortfall_from_collateral
- update_position
- verify_cross_health_after_isolated_op
- verify_healthFRIEND
Explore margining_engine in Playground perpetual50 functions · 2 structs
Functions
- create_funding_ratePUBLIC
- create_perpetualFRIEND
- delistFRIEND
- get_current_fundingPUBLIC
- get_delist_statusPUBLIC
- get_fee_pool_addressPUBLIC
- get_feesPUBLIC
- get_funding_ratePUBLIC
- get_funding_timestampPUBLIC
- get_imrPUBLIC
- get_insurance_pool_addressPUBLIC
- get_insurance_pool_ratioPUBLIC
- get_isolated_onlyPUBLIC
- get_max_limit_order_quantityFRIEND
- get_max_market_order_quantityFRIEND
- get_max_trade_pricePUBLIC
- get_max_trade_qtyPUBLIC
- get_min_trade_pricePUBLIC
- get_min_trade_qtyPUBLIC
- get_mmrPUBLIC
- get_oracle_pricePUBLIC
- get_perpetual_addressPUBLIC
- get_step_sizePUBLIC
- get_symbolPUBLIC
- get_tick_sizePUBLIC
- get_trading_statusPUBLIC
- is_power_of_ten
- max_allowed_oi_openPUBLIC
- perpetual_valuesPUBLIC
- replicate_perp_dataFRIEND
- set_base_asset_decimals
- set_base_asset_name
- set_base_asset_symbol
- set_default_leverageFRIEND
- set_feeFRIEND
- set_fee_pool_addressFRIEND
- set_imrFRIEND
- set_insurance_pool_addressFRIEND
- set_insurance_pool_liquidation_premium_percentageFRIEND
- set_isolated_onlyFRIEND
- set_max_allowed_oi_openFRIEND
- set_max_funding_rateFRIEND
- set_max_limit_order_quantityFRIEND
- set_max_market_order_quantityFRIEND
- set_max_trade_priceFRIEND
- set_max_trade_qtyFRIEND
- set_min_trade_priceFRIEND
- set_mmrFRIEND
- set_mtbFRIEND
- set_step_size_and_min_trade_qtyFRIEND
Explore perpetual in Playground signature12 functions · 1 structs
Functions
- add_intent_bytes_and_hash
- build_signed_messagePUBLIC
- verifyPUBLIC
- verify_adjust_leverage_signaturePUBLIC
- verify_adjust_margin_signaturePUBLIC
- verify_authorize_account_signaturePUBLIC
- verify_bcs_serialized_payload_signaturePUBLIC
- verify_close_position_signaturePUBLIC
- verify_liquidation_signaturePUBLIC
- verify_order_signaturePUBLIC
- verify_signature_and_recover_signerPUBLIC
- verify_withdrawal_signaturePUBLIC
Explore signature in Playground signed_number26 functions · 1 structs
Functions
- addPUBLIC
- add_uintPUBLIC
- div_uintPUBLIC
- eqPUBLIC
- fromPUBLIC
- from_bytesPUBLIC
- from_subtractionPUBLIC
- gtPUBLIC
- gt_uintPUBLIC
- gtePUBLIC
- gte_uintPUBLIC
- ltPUBLIC
- lt_uintPUBLIC
- lte_uintPUBLIC
- mul_uintPUBLIC
- negatePUBLIC
- negative_numberPUBLIC
- negative_valuePUBLIC
- newPUBLIC
- onePUBLIC
- positive_numberPUBLIC
- positive_valuePUBLIC
- signPUBLIC
- subPUBLIC
- sub_uintPUBLIC
- valuePUBLIC
Explore signed_number in Playground utils12 functions · 0 structs
Functions
- base_divPUBLIC
- base_mulPUBLIC
- convert_to_protocol_decimalsPUBLIC
- convert_to_provided_decimalsPUBLIC
- is_empty_stringPUBLIC
- is_reduced_positionPUBLIC
- is_reducing_tradePUBLIC
- mul_div_uintPUBLIC
- roundPUBLIC
- round_down_to_tick_sizePUBLIC
- round_to_tick_size_based_on_directionPUBLIC
- round_up_to_tick_sizePUBLIC
Explore utils in Playground