@aftermath/perpetuals-v2
Package details
- Project
- AftermathDEX
- Version
- 1 of 1
- Publisher
- aftermath.suiaftermath.sui0x4b02b9b45f2a9597363fbaacb2fd6e7fb8ed9329bb6f716631b5717048908aceLabelAftermath deployerKindDeployerProjectAftermathSourceSuiNS
- Package ID
- 0x3ec7…efc7
- Published
- Upgrade policy
Compatible?
The holder of the upgrade cap can publish new versions. A new version must keep every public function signature and struct layout, so existing callers keep working.
- Upgrade cap
- 0xc8cc…1646Object0xc8cc6f87f3a9658a4a779476ce472be8e465a8e899ca46e996a6314af95d1646
- Cap holder
- aftermath.suiaftermath.sui0x4b02b9b45f2a9597363fbaacb2fd6e7fb8ed9329bb6f716631b5717048908aceLabelAftermath deployerKindDeployerProjectAftermathSourceSuiNS
- Source
- Not verified
- Storage deposit
- 0.7670072 SUI
- Publish tx
- EwwGij…7tFx
Modules
- account28 fns, 4 structs
- adl3 fns, 0 structs
- authority18 fns, 9 structs
- clearing_house140 fns, 7 structs
- constants0 fns, 0 structs
- events54 fns, 53 structs
- init1 fn, 1 struct
- keys16 fns, 16 structs
- market77 fns, 6 structs
- order_id0 fns, 0 structs
- orderbook20 fns, 2 structs
- registry81 fns, 5 structs
- stop_orders10 fns, 1 struct
- twap_orders21 fns, 2 structs
| Module | Public functions | Entry functions | Structs | Constants | Friend modules | |
|---|---|---|---|---|---|---|
| account | 20 | 0 | 4 | 0 | clearing_housestop_orderstwap_orders | |
| adl | 2 | 0 | 0 | 0 | ||
| authority | 0 | 0 | 9 | 0 | accountinitregistrystop_orderstwap_orders | |
| clearing_house | 87 | 1 | 7 | 1 | adlstop_orderstwap_orders | |
| constants | 0 | 0 | 0 | 0 | accountadlclearing_housemarketorderbookregistrystop_orderstwap_orders | |
| events | 0 | 0 | 53 | 0 | accountadlclearing_housemarketregistrystop_orderstwap_orders | |
| init | 0 | 0 | 1 | 0 | ||
| keys | 0 | 0 | 16 | 0 | accountclearing_houseorderbookregistry | |
| market | 46 | 0 | 6 | 0 | adlclearing_housestop_orders | |
| order_id | 0 | 0 | 0 | 0 | clearing_house | |
| orderbook | 7 | 0 | 2 | 1 | clearing_house | |
| registry | 54 | 2 | 5 | 0 | accountadlclearing_houseinitstop_orderstwap_orders | |
| stop_orders | 7 | 0 | 1 | 1 | ||
| twap_orders | 12 | 0 | 2 | 0 |
Upgrade history
Every upgrade publishes a new package with its own ID. All versions share the original ID (version 1's) 0x3ec7…efc7, and the version number counts up, so the highest number is the current code.
A transaction names the exact package ID it calls, so older versions can still be called unless the package itself refuses them, often with a version check on a shared object.
A type keeps the ID of the version that first defined it. Types from version 1 use the original ID for good, while a type added in a later upgrade uses that version's ID.
| Version | Package ID | Time | By | Transaction | Calls, 7 days | |
|---|---|---|---|---|---|---|
| Version 1LatestPublished | 0x3ec7…efc7 | aftermath.suiaftermath.sui0x4b02b9b45f2a9597363fbaacb2fd6e7fb8ed9329bb6f716631b5717048908aceLabelAftermath deployerKindDeployerProjectAftermathSourceSuiNS | EwwGij…7tFx | … |
Recent calls
Reading recent calls
Dependencies
| Package | Package ID | Original ID | Linked version | |
|---|---|---|---|---|
| Move Stdlib | 0x0000…0001 | Same | 25 | |
| Sui Framework | 0x0000…0002 | Same | 58 | |
| @aftermath/vendor | 0x40c9…a158 | Same | 1 | |
| @aftermath/ifixed-v2 | 0x4b47…8760 | Same | 1 | |
| @aftermath/authority-cap | 0x4e2d…2677 | Same | 1 | |
| @aftermath/perpetuals-v2-position | 0x9196…8dec | Same | 1 | |
| @aftermath/oracle-aggregator-v2 | 0x9237…6ba4 | Same | 1 | |
| @aftermath/ordered-map | 0xf453…8126 | Same | 1 |