Nado Typescript SDK Documentation
    Preparing search index...

    Module Nado Shared

    @nadohq/shared

    Modules

    Internal

    Enumerations

    SlowModeTxType
    ProductEngineType
    TimeInSeconds

    Classes

    WalletNotProvidedError

    Interfaces

    SignableRequestTypeToEIP712Values
    SignableRequestTypeToParams
    SignedTx
    SignedEIP712OrderParams
    EIP712WithdrawCollateralParams
    EIP712LiquidateSubaccountParams
    EIP712OrderParams
    EIP712ListTriggerOrdersParams
    EIP712CancelOrdersParams
    EIP712CancelProductOrdersParams
    EIP712LinkSignerParams
    EIP712TransferQuoteParams
    EIP712LeaderboardAuthenticationParams
    EIP712MintNlpParams
    EIP712BurnNlpParams
    ClaimBuilderFeeParams
    ApproveDepositAllowanceParams
    DepositCollateralParams
    PerpBalance
    SpotBalance
    HealthStatus
    HealthGroup
    Market
    PerpMarket
    SpotMarket
    OrderAppendixTwapFields
    OrderAppendixIsolatedFields
    OrderAppendixBuilderFields
    OrderAppendix
    PerpProduct
    SpotProduct
    Subaccount
    AccountWithPrivateKey
    PackedOrderAppendixBits

    Type Aliases

    NadoAbis
    NadoContractName
    NadoDeploymentAddresses
    EIP712WithdrawCollateralValues
    EIP712LiquidateSubaccountValues
    EIP712OrderValues
    EIP712ListTriggerOrdersValues
    EIP712OrderCancellationValues
    EIP712ProductOrdersCancellationValues
    EIP712LinkSignerValues
    EIP712TransferQuoteValues
    EIP712LeaderboardAuthenticationValues
    EIP712MintNlpValues
    EIP712BurnNlpValues
    SignableRequestType
    ChainEnv
    OrderExecutionType
    BalanceSide
    BalanceHealthContributions
    PerpBalanceWithProduct
    SpotBalanceWithProduct
    Balance
    BalanceWithProduct
    Bytes
    HealthType
    HealthStatusByType
    MarketWithProduct
    NadoContracts
    WithContracts
    WithContract
    OrderAppendixTriggerType
    Product
    SubaccountBytes32
    SubaccountNameBytes12
    WalletClientWithAccount
    WriteableContractInstance
    ContractInstance
    AsyncResult
    BigNumberish

    Variables

    CLEARINGHOUSE_ABI
    ERC20_ABI
    ENDPOINT_ABI
    MOCK_ERC20_ABI
    PERP_ENGINE_ABI
    QUERIER_ABI
    SPOT_ENGINE_ABI
    WITHDRAW_POOL_ABI
    NADO_ABIS
    CHAIN_ENV_TO_CHAIN
    CHAIN_ID_TO_CHAIN_ENV
    QUOTE_PRODUCT_ID
    NLP_PRODUCT_ID
    NADO_DEPLOYMENTS
    LOCAL_CHAIN_ENVS
    TESTNET_CHAIN_ENVS
    MAINNET_CHAIN_ENVS
    ALL_CHAIN_ENVS
    BigNumbers
    NADO_PRODUCT_DECIMALS

    Functions

    getNadoEIP712Domain
    getNadoEIP712PrimaryType
    getNadoEIP712Types
    getNadoEIP712Values
    getOrderVerifyingAddress
    getSignedTransactionRequest
    getOrderDigest
    encodeSignedWithdrawCollateralTx
    encodeSignedOrder
    encodeClaimBuilderFeeTx
    approveDepositAllowance
    depositCollateral
    toProductEngineType
    asyncResult
    calcSpotBalanceValue
    calcPerpBalanceNotionalValue
    calcPerpBalanceValue
    subaccountToBytes32
    subaccountFromBytes32
    subaccountNameToBytes12
    subaccountToHex
    subaccountFromHex
    subaccountNameBytesToStr
    createDeterministicLinkedSignerPrivateKey
    getValidatedAddress
    getValidatedHex
    calcTotalBorrowed
    calcTotalDeposited
    calcUtilizationRatio
    calcBorrowRatePerSecond
    calcBorrowRateForTimeRange
    calcRealizedDepositRateForTimeRange
    isWriteableContract
    mapValues
    toBigNumber
    clampBigNumber
    addDecimals
    removeDecimals
    sumBigNumberBy
    toBigInt
    toIntegerString
    packTwapOrderAppendixValue
    unpackTwapOrderAppendixValue
    bitMaskValue
    packOrderAppendix
    unpackOrderAppendix
    getOrderNonce
    getRecvTimeFromOrderNonce
    getDefaultRecvTime
    isSpotProduct
    isSpotBalance
    isPerpProduct
    isPerpBalance
    millisToSeconds
    nowInSeconds
    toPrintableObject