Nado Typescript SDK Documentation
Preparing search index...
Nado Contracts
Module Nado Contracts
@nadohq/contracts
Exports:
Utils for interacting with the contract
ABIs
Typechain generated types
Modules
Internal
Enumerations
ProductEngineType
Interfaces
PerpBalance
SpotBalance
HealthStatus
HealthGroup
Market
PerpMarket
SpotMarket
PerpProduct
SpotProduct
Subaccount
MintMockERC20Params
SettlePnlParams
AccountWithPrivateKey
SignableRequestTypeToEIP712Values
SignableRequestTypeToParams
SignedTx
SignedEIP712OrderParams
EIP712WithdrawCollateralParams
EIP712LiquidateSubaccountParams
EIP712OrderParams
EIP712IsolatedOrderParams
EIP712ListTriggerOrdersParams
EIP712CancelOrdersParams
EIP712CancelProductOrdersParams
EIP712LinkSignerParams
EIP712TransferQuoteParams
EIP712LeaderboardAuthenticationParams
EIP712MintVlpParams
EIP712BurnVlpParams
ApproveDepositAllowanceParams
DepositCollateralParams
SubaccountSummaryResponse
OrderExpirationConfig
Type Aliases
NadoDeploymentAddresses
NadoAbis
NadoContractName
ChainEnv
BalanceSide
BalanceHealthContributions
PerpBalanceWithProduct
SpotBalanceWithProduct
Balance
BalanceWithProduct
Bytes
HealthType
HealthStatusByType
MarketWithProduct
NadoContracts
WithContracts
WithContract
Product
SubaccountBytes32
SubaccountNameBytes12
WalletClientWithAccount
WriteableContractInstance
ContractInstance
EIP712WithdrawCollateralValues
EIP712LiquidateSubaccountValues
EIP712OrderValues
EIP712IsolatedOrderValues
EIP712ListTriggerOrdersValues
EIP712OrderCancellationValues
EIP712ProductOrdersCancellationValues
EIP712LinkSignerValues
EIP712TransferQuoteValues
EIP712LeaderboardAuthenticationValues
EIP712MintVlpValues
EIP712BurnVlpValues
SignableRequestType
GetAllMarketsResponse
GetAllProductsResponse
GetSubaccountSummaryParams
OrderExpirationType
Variables
CLEARINGHOUSE_ABI
ERC20_ABI
ENDPOINT_ABI
MOCK_ERC20_ABI
PERP_ENGINE_ABI
QUERIER_ABI
SPOT_ENGINE_ABI
WITHDRAW_POOL_ABI
CHAIN_ENV_TO_CHAIN
CHAIN_ID_TO_CHAIN_ENV
NADO_DEPLOYMENTS
NADO_ABIS
QUOTE_PRODUCT_ID
VLP_PRODUCT_ID
LOCAL_CHAIN_ENVS
TESTNET_CHAIN_ENVS
MAINNET_CHAIN_ENVS
ALL_CHAIN_ENVS
Functions
toProductEngineType
getNadoEIP712Domain
getNadoEIP712PrimaryType
getNadoEIP712Types
getNadoEIP712Values
getSignedTransactionRequest
getOrderDigest
getIsolatedOrderDigest
encodeSignedWithdrawCollateralTx
encodeSignedOrder
approveDepositAllowance
depositCollateral
getAllMarkets
getAllProducts
getSubaccountSummary
calcSpotBalanceValue
calcPerpBalanceNotionalValue
calcPerpBalanceValue
subaccountToBytes32
subaccountFromBytes32
subaccountNameToBytes12
subaccountToHex
subaccountFromHex
subaccountNameBytesToStr
createDeterministicLinkedSignerPrivateKey
calcTotalBorrowed
calcTotalDeposited
calcUtilizationRatio
calcBorrowRatePerSecond
calcBorrowRateForTimeRange
calcRealizedDepositRateForTimeRange
isWriteableContract
getExpirationTimestamp
parseRawExpirationTimestamp
getOrderNonce
getTriggerOrderNonce
isTriggerOrderNonce
getRecvTimeFromOrderNonce
isSpotProduct
isSpotBalance
isPerpProduct
isPerpBalance
getDefaultRecvTime
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
@nadohq/contracts
Modules
Internal
Enumerations
Product
Engine
Type
Interfaces
Perp
Balance
Spot
Balance
Health
Status
Health
Group
Market
Perp
Market
Spot
Market
Perp
Product
Spot
Product
Subaccount
Mint
Mock
ERC20
Params
Settle
Pnl
Params
Account
With
Private
Key
Signable
Request
Type
To
EIP712
Values
Signable
Request
Type
To
Params
Signed
Tx
Signed
EIP712
Order
Params
EIP712
Withdraw
Collateral
Params
EIP712
Liquidate
Subaccount
Params
EIP712
Order
Params
EIP712
Isolated
Order
Params
EIP712
List
Trigger
Orders
Params
EIP712
Cancel
Orders
Params
EIP712
Cancel
Product
Orders
Params
EIP712
Link
Signer
Params
EIP712
Transfer
Quote
Params
EIP712
Leaderboard
Authentication
Params
EIP712
Mint
Vlp
Params
EIP712
Burn
Vlp
Params
Approve
Deposit
Allowance
Params
Deposit
Collateral
Params
Subaccount
Summary
Response
Order
Expiration
Config
Type Aliases
Nado
Deployment
Addresses
Nado
Abis
Nado
Contract
Name
Chain
Env
Balance
Side
Balance
Health
Contributions
Perp
Balance
With
Product
Spot
Balance
With
Product
Balance
Balance
With
Product
Bytes
Health
Type
Health
Status
By
Type
Market
With
Product
Nado
Contracts
With
Contracts
With
Contract
Product
Subaccount
Bytes32
Subaccount
Name
Bytes12
Wallet
Client
With
Account
Writeable
Contract
Instance
Contract
Instance
EIP712
Withdraw
Collateral
Values
EIP712
Liquidate
Subaccount
Values
EIP712
Order
Values
EIP712
Isolated
Order
Values
EIP712
List
Trigger
Orders
Values
EIP712
Order
Cancellation
Values
EIP712
Product
Orders
Cancellation
Values
EIP712
Link
Signer
Values
EIP712
Transfer
Quote
Values
EIP712
Leaderboard
Authentication
Values
EIP712
Mint
Vlp
Values
EIP712
Burn
Vlp
Values
Signable
Request
Type
Get
All
Markets
Response
Get
All
Products
Response
Get
Subaccount
Summary
Params
Order
Expiration
Type
Variables
CLEARINGHOUSE_
ABI
ERC20_
ABI
ENDPOINT_
ABI
MOCK_
ERC20_
ABI
PERP_
ENGINE_
ABI
QUERIER_
ABI
SPOT_
ENGINE_
ABI
WITHDRAW_
POOL_
ABI
CHAIN_
ENV_
TO_
CHAIN
CHAIN_
ID_
TO_
CHAIN_
ENV
NADO_
DEPLOYMENTS
NADO_
ABIS
QUOTE_
PRODUCT_
ID
VLP_
PRODUCT_
ID
LOCAL_
CHAIN_
ENVS
TESTNET_
CHAIN_
ENVS
MAINNET_
CHAIN_
ENVS
ALL_
CHAIN_
ENVS
Functions
to
Product
Engine
Type
get
Nado
EIP712
Domain
get
Nado
EIP712
Primary
Type
get
Nado
EIP712
Types
get
Nado
EIP712
Values
get
Signed
Transaction
Request
get
Order
Digest
get
Isolated
Order
Digest
encode
Signed
Withdraw
Collateral
Tx
encode
Signed
Order
approve
Deposit
Allowance
deposit
Collateral
get
All
Markets
get
All
Products
get
Subaccount
Summary
calc
Spot
Balance
Value
calc
Perp
Balance
Notional
Value
calc
Perp
Balance
Value
subaccount
To
Bytes32
subaccount
From
Bytes32
subaccount
Name
To
Bytes12
subaccount
To
Hex
subaccount
From
Hex
subaccount
Name
Bytes
To
Str
create
Deterministic
Linked
Signer
Private
Key
calc
Total
Borrowed
calc
Total
Deposited
calc
Utilization
Ratio
calc
Borrow
Rate
Per
Second
calc
Borrow
Rate
For
Time
Range
calc
Realized
Deposit
Rate
For
Time
Range
is
Writeable
Contract
get
Expiration
Timestamp
parse
Raw
Expiration
Timestamp
get
Order
Nonce
get
Trigger
Order
Nonce
is
Trigger
Order
Nonce
get
Recv
Time
From
Order
Nonce
is
Spot
Product
is
Spot
Balance
is
Perp
Product
is
Perp
Balance
get
Default
Recv
Time
Documentation
Loading...