@skate-org/amm-core-v2
v2.0.0-beta.16
Published
Skate AMM v2 SDK — core types, deployment data, cross-VM adapter
Readme
@skate-org/amm-core-v2
Core types, deployment data, and the cross-VM adapter for the Skate AMM v2 SDK.
Zero heavy runtime deps. Pure TypeScript.
Surface (high-level)
CHAIN,VM,EvmChain/SvmChain/SuiChain,vmTypeFromChain,getBlockExplorerEnvMode,DevModeConfig,EnvModeWithConfig,normalizeModeToken,TokenPairActionStatus,TaskPhase,TaskFunctionMeta- Kernel addresses:
KernelManagerAddress,KernelEventEmitterAddress(STAGING + PRODUCTION alias DEV as of2.0.0-beta.10) - Kernel chain config:
KERNEL_CHAIN_BY_MODE,KernelChain(mode)— defaults every env toCHAIN.MEGAETH - Periphery deployment:
PERIPHERY_DEV,PeripheryManagerAddress,PeripheryEventEmitterAddress,SkateGatewayAddress,ActionBoxAddress - Pool tables:
POOL_INFO_Dev,POOL_INFO_Staging,POOL_INFO_Production - Periphery info types:
EvmPeripheryInfo,SvmPeripheryInfo,SuiPeripheryInfo,PeripheryInfoFor<K> - Uniswap-v3 math:
getSqrtRatioAtTick,getTickAtSqrtRatio,MIN_TICK/MAX_TICK,MIN_SQRT_RATIO/MAX_SQRT_RATIO,MIN_SQRT_PRICE_LIMIT/MAX_SQRT_PRICE_LIMIT,mulDiv,getAmount0Delta,getAmount1Delta,computePositionAmounts - Cross-VM adapter:
base58ToBytes32,evmAddressToBytes32,bytes32ToBase58,toBytes32Address,fromBytes32Address - Errors:
SdkError(base for all package errors)
Install
pnpm add @skate-org/amm-core-v2Companion packages
@skate-org/amm-api-v2— REST clients@skate-org/amm-evm-v2— viem clients, readers, submitters@skate-org/amm-svm-v2— Solana / Eclipse periphery@skate-org/amm-sui-v2— Sui periphery@skate-org/amm-v2— umbrella
See CHANGELOG.md for version history.
