@nadohq/shared 0.27.0 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BaseServerFailureError-lKtEbaZM.d.ts +45 -0
- package/dist/BaseServerFailureError-lKtEbaZM.d.ts.map +1 -0
- package/dist/BaseServerFailureError-q0hQxZbH.d.cts +45 -0
- package/dist/BaseServerFailureError-q0hQxZbH.d.cts.map +1 -0
- package/dist/{BigNumbers-CZl--in2.d.cts → BigNumbers-Bj-QcbP_.d.cts} +1 -1
- package/dist/BigNumbers-Bj-QcbP_.d.cts.map +1 -0
- package/dist/{BigNumbers-CM-lXODL.d.ts → BigNumbers-C2iMiWwo.d.ts} +1 -1
- package/dist/BigNumbers-C2iMiWwo.d.ts.map +1 -0
- package/dist/{ChainEnv-C_iC1v8V.d.cts → ChainEnv-BiybryWq.d.cts} +1 -1
- package/dist/{ChainEnv-C_iC1v8V.d.cts.map → ChainEnv-BiybryWq.d.cts.map} +1 -1
- package/dist/{ChainEnv-CxBY-mBv.d.ts → ChainEnv-CuhUM7XM.d.ts} +1 -1
- package/dist/{ChainEnv-CxBY-mBv.d.ts.map → ChainEnv-CuhUM7XM.d.ts.map} +1 -1
- package/dist/{OrderExecutionType-gZHBzTTF.d.cts → OrderExecutionType-B-igYC1p.d.cts} +1 -1
- package/dist/OrderExecutionType-B-igYC1p.d.cts.map +1 -0
- package/dist/{OrderExecutionType-BCH5Wop4.d.ts → OrderExecutionType-DhfG5qLe.d.ts} +1 -1
- package/dist/OrderExecutionType-DhfG5qLe.d.ts.map +1 -0
- package/dist/{WalletNotProvidedError-v1a959kl.d.ts → WalletNotProvidedError-CN0xJL6e.d.ts} +1 -1
- package/dist/{WalletNotProvidedError-v1a959kl.d.ts.map → WalletNotProvidedError-CN0xJL6e.d.ts.map} +1 -1
- package/dist/{WalletNotProvidedError-BEoW-nA1.d.cts → WalletNotProvidedError-DXwkasel.d.cts} +1 -1
- package/dist/{WalletNotProvidedError-BEoW-nA1.d.cts.map → WalletNotProvidedError-DXwkasel.d.cts.map} +1 -1
- package/dist/{appendixTwapValue-DIqDV7Z7.d.cts → appendixTwapValue-CZCE2qQo.d.cts} +2 -2
- package/dist/{appendixTwapValue-DIqDV7Z7.d.cts.map → appendixTwapValue-CZCE2qQo.d.cts.map} +1 -1
- package/dist/{appendixTwapValue-DPsC1hXX.d.ts → appendixTwapValue-hvjIuxYz.d.ts} +2 -2
- package/dist/{appendixTwapValue-DPsC1hXX.d.ts.map → appendixTwapValue-hvjIuxYz.d.ts.map} +1 -1
- package/dist/{approveDepositAllowance-ChasXUS7.d.ts → approveDepositAllowance-BHEw6auf.d.ts} +4 -4
- package/dist/{approveDepositAllowance-ChasXUS7.d.ts.map → approveDepositAllowance-BHEw6auf.d.ts.map} +1 -1
- package/dist/{approveDepositAllowance-BbqDck6c.d.cts → approveDepositAllowance-Dqt8Wc3P.d.cts} +4 -4
- package/dist/{approveDepositAllowance-BbqDck6c.d.cts.map → approveDepositAllowance-Dqt8Wc3P.d.cts.map} +1 -1
- package/dist/{asyncResult-CrfiRFh5.d.ts → asyncResult-SvtRCbOk.d.ts} +1 -1
- package/dist/{asyncResult-CrfiRFh5.d.ts.map → asyncResult-SvtRCbOk.d.ts.map} +1 -1
- package/dist/{asyncResult-B8ly8lP_.d.cts → asyncResult-uSvcciZS.d.cts} +1 -1
- package/dist/{asyncResult-B8ly8lP_.d.cts.map → asyncResult-uSvcciZS.d.cts.map} +1 -1
- package/dist/{balanceValue-CT4Q7W0T.d.cts → balanceValue-0IotjlbD.d.cts} +1 -1
- package/dist/{balanceValue-CT4Q7W0T.d.cts.map → balanceValue-0IotjlbD.d.cts.map} +1 -1
- package/dist/{balanceValue-bkwkBhFu.d.ts → balanceValue-G8L4pR0e.d.ts} +1 -1
- package/dist/{balanceValue-bkwkBhFu.d.ts.map → balanceValue-G8L4pR0e.d.ts.map} +1 -1
- package/dist/{bigNumber-DX0JX9bQ.d.cts → bigNumber-D3ssF_uJ.d.cts} +1 -1
- package/dist/{bigNumber-DX0JX9bQ.d.cts.map → bigNumber-D3ssF_uJ.d.cts.map} +1 -1
- package/dist/{bigNumber-BLE4n-ku.d.ts → bigNumber-DsRTR9zM.d.ts} +1 -1
- package/dist/{bigNumber-BLE4n-ku.d.ts.map → bigNumber-DsRTR9zM.d.ts.map} +1 -1
- package/dist/{bitMaskValue-CDz7vtPM.d.cts → bitMaskValue-2s-H6pY1.d.cts} +1 -1
- package/dist/{bitMaskValue-CDz7vtPM.d.cts.map → bitMaskValue-2s-H6pY1.d.cts.map} +1 -1
- package/dist/{bitMaskValue-qyWUOgv1.d.ts → bitMaskValue-DassPPW9.d.ts} +1 -1
- package/dist/{bitMaskValue-qyWUOgv1.d.ts.map → bitMaskValue-DassPPW9.d.ts.map} +1 -1
- package/dist/{bytes-Bv66A6U8.d.ts → bytes-DQ2CQ0dC.d.ts} +1 -1
- package/dist/bytes-DQ2CQ0dC.d.ts.map +1 -0
- package/dist/{bytes-DAhqCt_o.d.cts → bytes-GErzNSza.d.cts} +1 -1
- package/dist/bytes-GErzNSza.d.cts.map +1 -0
- package/dist/{bytes32-klqLJUFN.d.cts → bytes32-BVmiGtU4.d.cts} +3 -3
- package/dist/{bytes32-klqLJUFN.d.cts.map → bytes32-BVmiGtU4.d.cts.map} +1 -1
- package/dist/{bytes32-D-tn3XZy.d.ts → bytes32-Bm0kWK7n.d.ts} +3 -3
- package/dist/{bytes32-D-tn3XZy.d.ts.map → bytes32-Bm0kWK7n.d.ts.map} +1 -1
- package/dist/{chainEnvToChain-DdLczNYZ.d.cts → chainEnvToChain-BTVc24Cl.d.cts} +2 -2
- package/dist/{chainEnvToChain-DdLczNYZ.d.cts.map → chainEnvToChain-BTVc24Cl.d.cts.map} +1 -1
- package/dist/{chainEnvToChain-DpBYNlnk.d.ts → chainEnvToChain-Bx0gnV-p.d.ts} +2 -2
- package/dist/{chainEnvToChain-DpBYNlnk.d.ts.map → chainEnvToChain-Bx0gnV-p.d.ts.map} +1 -1
- package/dist/{clamp-B7YSY8XJ.d.cts → clamp-BG8pfPTy.d.cts} +1 -1
- package/dist/{clamp-B7YSY8XJ.d.cts.map → clamp-BG8pfPTy.d.cts.map} +1 -1
- package/dist/{clamp-CWW-gFbE.d.ts → clamp-tcJ-3GBf.d.ts} +1 -1
- package/dist/{clamp-CWW-gFbE.d.ts.map → clamp-tcJ-3GBf.d.ts.map} +1 -1
- package/dist/consts/chainEnvToChain.d.cts +1 -1
- package/dist/consts/chainEnvToChain.d.ts +1 -1
- package/dist/consts/index.d.cts +2 -2
- package/dist/consts/index.d.ts +2 -2
- package/dist/consts/productIds.d.cts +1 -1
- package/dist/consts/productIds.d.ts +1 -1
- package/dist/{createDeterministicLinkedSignerPrivateKey-47pkYOE0.d.ts → createDeterministicLinkedSignerPrivateKey-Bro8BtTs.d.ts} +3 -3
- package/dist/createDeterministicLinkedSignerPrivateKey-Bro8BtTs.d.ts.map +1 -0
- package/dist/{createDeterministicLinkedSignerPrivateKey-CcJhRSf7.d.cts → createDeterministicLinkedSignerPrivateKey-wu-Hp9xI.d.cts} +3 -3
- package/dist/createDeterministicLinkedSignerPrivateKey-wu-Hp9xI.d.cts.map +1 -0
- package/dist/{decimalAdjustment-1vhO65Zz.d.ts → decimalAdjustment-5cvNu6vi.d.ts} +2 -2
- package/dist/{decimalAdjustment-1vhO65Zz.d.ts.map → decimalAdjustment-5cvNu6vi.d.ts.map} +1 -1
- package/dist/{decimalAdjustment-CMqU3rNy.d.cts → decimalAdjustment-DTyP-bzx.d.cts} +2 -2
- package/dist/{decimalAdjustment-CMqU3rNy.d.cts.map → decimalAdjustment-DTyP-bzx.d.cts.map} +1 -1
- package/dist/deployments/index.d.cts +1 -1
- package/dist/deployments/index.d.ts +1 -1
- package/dist/{depositCollateral-C3mp2GTo.d.cts → depositCollateral-DnI9P28B.d.cts} +3 -3
- package/dist/{depositCollateral-C3mp2GTo.d.cts.map → depositCollateral-DnI9P28B.d.cts.map} +1 -1
- package/dist/{depositCollateral-BZOXvr6h.d.ts → depositCollateral-joXPokvk.d.ts} +3 -3
- package/dist/{depositCollateral-BZOXvr6h.d.ts.map → depositCollateral-joXPokvk.d.ts.map} +1 -1
- package/dist/eip712/eip712ValueTypes.d.cts +1 -1
- package/dist/eip712/eip712ValueTypes.d.ts +1 -1
- package/dist/eip712/getNadoEIP712Domain.d.cts +1 -1
- package/dist/eip712/getNadoEIP712Domain.d.ts +1 -1
- package/dist/eip712/getNadoEIP712PrimaryType.d.cts +1 -1
- package/dist/eip712/getNadoEIP712PrimaryType.d.ts +1 -1
- package/dist/eip712/getNadoEIP712Types.d.cts +1 -1
- package/dist/eip712/getNadoEIP712Types.d.ts +1 -1
- package/dist/eip712/getNadoEIP712Values.d.cts +1 -1
- package/dist/eip712/getNadoEIP712Values.d.ts +1 -1
- package/dist/eip712/getOrderVerifyingAddress.d.cts +1 -1
- package/dist/eip712/getOrderVerifyingAddress.d.ts +1 -1
- package/dist/eip712/getSignedTransactionRequest.d.cts +1 -1
- package/dist/eip712/getSignedTransactionRequest.d.ts +1 -1
- package/dist/eip712/index.d.cts +10 -10
- package/dist/eip712/index.d.ts +10 -10
- package/dist/eip712/orderDigest.d.cts +1 -1
- package/dist/eip712/orderDigest.d.ts +1 -1
- package/dist/eip712/signableRequestType.d.cts +1 -1
- package/dist/eip712/signableRequestType.d.ts +1 -1
- package/dist/eip712/signatureParamTypes.d.cts +1 -1
- package/dist/eip712/signatureParamTypes.d.ts +1 -1
- package/dist/{eip712ValueTypes-B7SUNimi.d.cts → eip712ValueTypes-D3lBy0wX.d.cts} +3 -3
- package/dist/{eip712ValueTypes-B7SUNimi.d.cts.map → eip712ValueTypes-D3lBy0wX.d.cts.map} +1 -1
- package/dist/{eip712ValueTypes-Bx73DiwJ.d.ts → eip712ValueTypes-DUPOOfWP.d.ts} +3 -3
- package/dist/{eip712ValueTypes-Bx73DiwJ.d.ts.map → eip712ValueTypes-DUPOOfWP.d.ts.map} +1 -1
- package/dist/encoding/encoding.d.cts +1 -1
- package/dist/encoding/encoding.d.ts +1 -1
- package/dist/encoding/index.d.cts +1 -1
- package/dist/encoding/index.d.ts +1 -1
- package/dist/{encoding-DGoJlZo_.d.cts → encoding-Cf7ApKrp.d.cts} +2 -2
- package/dist/{encoding-DGoJlZo_.d.cts.map → encoding-Cf7ApKrp.d.cts.map} +1 -1
- package/dist/{encoding-ChEwtCUc.d.ts → encoding-IiqAceVl.d.ts} +2 -2
- package/dist/{encoding-ChEwtCUc.d.ts.map → encoding-IiqAceVl.d.ts.map} +1 -1
- package/dist/errorCodes-4V4XODmG.d.cts +41 -0
- package/dist/errorCodes-4V4XODmG.d.cts.map +1 -0
- package/dist/errorCodes-iVKkzL4K.d.ts +41 -0
- package/dist/errorCodes-iVKkzL4K.d.ts.map +1 -0
- package/dist/execute/approveDepositAllowance.d.cts +1 -1
- package/dist/execute/approveDepositAllowance.d.ts +1 -1
- package/dist/execute/depositCollateral.d.cts +1 -1
- package/dist/execute/depositCollateral.d.ts +1 -1
- package/dist/execute/index.d.cts +2 -2
- package/dist/execute/index.d.ts +2 -2
- package/dist/{getNadoEIP712Domain-kTOBSTeO.d.ts → getNadoEIP712Domain-CWcZ6i_Q.d.ts} +1 -1
- package/dist/{getNadoEIP712Domain-kTOBSTeO.d.ts.map → getNadoEIP712Domain-CWcZ6i_Q.d.ts.map} +1 -1
- package/dist/{getNadoEIP712Domain-CbvRaSxS.d.cts → getNadoEIP712Domain-ePSuQTF4.d.cts} +1 -1
- package/dist/{getNadoEIP712Domain-CbvRaSxS.d.cts.map → getNadoEIP712Domain-ePSuQTF4.d.cts.map} +1 -1
- package/dist/{getNadoEIP712PrimaryType-DxmJJfz2.d.cts → getNadoEIP712PrimaryType-C1d67853.d.cts} +2 -2
- package/dist/{getNadoEIP712PrimaryType-DxmJJfz2.d.cts.map → getNadoEIP712PrimaryType-C1d67853.d.cts.map} +1 -1
- package/dist/{getNadoEIP712PrimaryType-BcdZPTeT.d.ts → getNadoEIP712PrimaryType-DVtqy63V.d.ts} +2 -2
- package/dist/{getNadoEIP712PrimaryType-BcdZPTeT.d.ts.map → getNadoEIP712PrimaryType-DVtqy63V.d.ts.map} +1 -1
- package/dist/{getNadoEIP712Types-DUE5ujkf.d.ts → getNadoEIP712Types-0rSqR0TZ.d.ts} +2 -2
- package/dist/{getNadoEIP712Types-DUE5ujkf.d.ts.map → getNadoEIP712Types-0rSqR0TZ.d.ts.map} +1 -1
- package/dist/{getNadoEIP712Types-CJFATDaU.d.cts → getNadoEIP712Types-D4NbwzX-.d.cts} +2 -2
- package/dist/{getNadoEIP712Types-CJFATDaU.d.cts.map → getNadoEIP712Types-D4NbwzX-.d.cts.map} +1 -1
- package/dist/{getNadoEIP712Values-CTLCQp1t.d.ts → getNadoEIP712Values-CPbB6pLq.d.ts} +3 -3
- package/dist/{getNadoEIP712Values-CTLCQp1t.d.ts.map → getNadoEIP712Values-CPbB6pLq.d.ts.map} +1 -1
- package/dist/{getNadoEIP712Values-P4Ypt-zt.d.cts → getNadoEIP712Values-pRIAPwhZ.d.cts} +3 -3
- package/dist/{getNadoEIP712Values-P4Ypt-zt.d.cts.map → getNadoEIP712Values-pRIAPwhZ.d.cts.map} +1 -1
- package/dist/{getOrderVerifyingAddress-BX_s3Vfh.d.ts → getOrderVerifyingAddress-BDVUTxrs.d.ts} +1 -1
- package/dist/{getOrderVerifyingAddress-BX_s3Vfh.d.ts.map → getOrderVerifyingAddress-BDVUTxrs.d.ts.map} +1 -1
- package/dist/{getOrderVerifyingAddress-DDfqL0tj.d.cts → getOrderVerifyingAddress-CyuhcDVZ.d.cts} +1 -1
- package/dist/{getOrderVerifyingAddress-DDfqL0tj.d.cts.map → getOrderVerifyingAddress-CyuhcDVZ.d.cts.map} +1 -1
- package/dist/{getSignedTransactionRequest-C0S7STob.d.cts → getSignedTransactionRequest-BrzkB8B7.d.cts} +3 -3
- package/dist/{getSignedTransactionRequest-C0S7STob.d.cts.map → getSignedTransactionRequest-BrzkB8B7.d.cts.map} +1 -1
- package/dist/{getSignedTransactionRequest-EzUfIGU0.d.ts → getSignedTransactionRequest-BvscxzgU.d.ts} +3 -3
- package/dist/{getSignedTransactionRequest-EzUfIGU0.d.ts.map → getSignedTransactionRequest-BvscxzgU.d.ts.map} +1 -1
- package/dist/{getValidatedAddress-f8b_x20V.d.ts → getValidatedAddress-DD1N6pfc.d.ts} +1 -1
- package/dist/getValidatedAddress-DD1N6pfc.d.ts.map +1 -0
- package/dist/{getValidatedAddress-BiT9E3l6.d.cts → getValidatedAddress-TNxNngvc.d.cts} +1 -1
- package/dist/getValidatedAddress-TNxNngvc.d.cts.map +1 -0
- package/dist/{getValidatedHex-_FrR4ehU.d.ts → getValidatedHex-1VRieEnK.d.ts} +1 -1
- package/dist/getValidatedHex-1VRieEnK.d.ts.map +1 -0
- package/dist/{getValidatedHex-D_p2LkRB.d.cts → getValidatedHex-CEtmzBzc.d.cts} +1 -1
- package/dist/getValidatedHex-CEtmzBzc.d.cts.map +1 -0
- package/dist/index.cjs +4 -0
- package/dist/index.d.cts +54 -52
- package/dist/index.d.ts +54 -52
- package/dist/index.js +3 -1
- package/dist/{interest-D9Nu3wzM.d.ts → interest-BGRNvCxK.d.ts} +2 -2
- package/dist/{interest-D9Nu3wzM.d.ts.map → interest-BGRNvCxK.d.ts.map} +1 -1
- package/dist/{interest-BJn3z3kZ.d.cts → interest-DbQOrmBI.d.cts} +2 -2
- package/dist/{interest-BJn3z3kZ.d.cts.map → interest-DbQOrmBI.d.cts.map} +1 -1
- package/dist/{isWriteableContract-GxOuGwru.d.cts → isWriteableContract-BApMCbPn.d.cts} +2 -2
- package/dist/{isWriteableContract-GxOuGwru.d.cts.map → isWriteableContract-BApMCbPn.d.cts.map} +1 -1
- package/dist/{isWriteableContract-Cm5HlOta.d.ts → isWriteableContract-CJQ4QKqa.d.ts} +2 -2
- package/dist/{isWriteableContract-Cm5HlOta.d.ts.map → isWriteableContract-CJQ4QKqa.d.ts.map} +1 -1
- package/dist/{mapValues-CO9UDyHu.d.ts → mapValues-BZW7dU_i.d.ts} +1 -1
- package/dist/{mapValues-CO9UDyHu.d.ts.map → mapValues-BZW7dU_i.d.ts.map} +1 -1
- package/dist/{mapValues-o-kMemvA.d.cts → mapValues-D2u-oFkX.d.cts} +1 -1
- package/dist/{mapValues-o-kMemvA.d.cts.map → mapValues-D2u-oFkX.d.cts.map} +1 -1
- package/dist/{marketTypes-C37HnBB7.d.ts → marketTypes-B5PFCPzN.d.ts} +1 -1
- package/dist/{marketTypes-C37HnBB7.d.ts.map → marketTypes-B5PFCPzN.d.ts.map} +1 -1
- package/dist/{marketTypes-BSevYB-h.d.cts → marketTypes-DRZEFgF4.d.cts} +1 -1
- package/dist/{marketTypes-BSevYB-h.d.cts.map → marketTypes-DRZEFgF4.d.cts.map} +1 -1
- package/dist/{nadoContractTypes-Cp3kD2DC.d.cts → nadoContractTypes-8MNIkohy.d.cts} +2 -2
- package/dist/{nadoContractTypes-Cp3kD2DC.d.cts.map → nadoContractTypes-8MNIkohy.d.cts.map} +1 -1
- package/dist/{nadoContractTypes-PWzd6_3s.d.ts → nadoContractTypes-BX9lth68.d.ts} +2 -2
- package/dist/{nadoContractTypes-PWzd6_3s.d.ts.map → nadoContractTypes-BX9lth68.d.ts.map} +1 -1
- package/dist/{orderAppendixTypes-CM-eb5WL.d.cts → orderAppendixTypes-DIeaFc_g.d.cts} +3 -3
- package/dist/{orderAppendixTypes-CM-eb5WL.d.cts.map → orderAppendixTypes-DIeaFc_g.d.cts.map} +1 -1
- package/dist/{orderAppendixTypes-5NqkTOxO.d.ts → orderAppendixTypes-DQU50ISh.d.ts} +3 -3
- package/dist/{orderAppendixTypes-5NqkTOxO.d.ts.map → orderAppendixTypes-DQU50ISh.d.ts.map} +1 -1
- package/dist/{orderDigest-KkIGidxX.d.cts → orderDigest-M5b8ibGE.d.cts} +2 -2
- package/dist/{orderDigest-KkIGidxX.d.cts.map → orderDigest-M5b8ibGE.d.cts.map} +1 -1
- package/dist/{orderDigest-Dkq7daQm.d.ts → orderDigest-WJMRxWSr.d.ts} +2 -2
- package/dist/{orderDigest-Dkq7daQm.d.ts.map → orderDigest-WJMRxWSr.d.ts.map} +1 -1
- package/dist/{orderNonce-DjWVtNql.d.ts → orderNonce-Qf0AYXz9.d.ts} +1 -1
- package/dist/{orderNonce-DjWVtNql.d.ts.map → orderNonce-Qf0AYXz9.d.ts.map} +1 -1
- package/dist/{orderNonce-CqjVRxk_.d.cts → orderNonce-UUMaxlBA.d.cts} +1 -1
- package/dist/{orderNonce-CqjVRxk_.d.cts.map → orderNonce-UUMaxlBA.d.cts.map} +1 -1
- package/dist/{packOrderAppendix-BvzI7zfI.d.ts → packOrderAppendix-BKmQ-8tV.d.ts} +2 -2
- package/dist/{packOrderAppendix-BvzI7zfI.d.ts.map → packOrderAppendix-BKmQ-8tV.d.ts.map} +1 -1
- package/dist/{packOrderAppendix-cBX9_d08.d.cts → packOrderAppendix-DyfvlAmI.d.cts} +2 -2
- package/dist/{packOrderAppendix-cBX9_d08.d.cts.map → packOrderAppendix-DyfvlAmI.d.cts.map} +1 -1
- package/dist/{productIds-CePkYUZH.d.cts → productIds-BEA5iUth.d.cts} +1 -1
- package/dist/productIds-BEA5iUth.d.cts.map +1 -0
- package/dist/{productIds-BZeKoHcK.d.ts → productIds-CaLvVM2C.d.ts} +1 -1
- package/dist/productIds-CaLvVM2C.d.ts.map +1 -0
- package/dist/{productTypeFilter-IKV6IkNW.d.ts → productTypeFilter-D0N0FKt4.d.ts} +1 -1
- package/dist/{productTypeFilter-IKV6IkNW.d.ts.map → productTypeFilter-D0N0FKt4.d.ts.map} +1 -1
- package/dist/{productTypeFilter-Dtf71CLf.d.cts → productTypeFilter-DoGpp8hw.d.cts} +1 -1
- package/dist/{productTypeFilter-Dtf71CLf.d.cts.map → productTypeFilter-DoGpp8hw.d.cts.map} +1 -1
- package/dist/{recvTime-B5XYRV0S.d.ts → recvTime-C5rnDnyo.d.ts} +1 -1
- package/dist/recvTime-C5rnDnyo.d.ts.map +1 -0
- package/dist/{recvTime-D6SfTY5U.d.cts → recvTime-CGPFJaVg.d.cts} +1 -1
- package/dist/recvTime-CGPFJaVg.d.cts.map +1 -0
- package/dist/{signableRequestType-BtNg2SMb.d.cts → signableRequestType-CILYXUsJ.d.cts} +2 -2
- package/dist/{signableRequestType-BtNg2SMb.d.cts.map → signableRequestType-CILYXUsJ.d.cts.map} +1 -1
- package/dist/{signableRequestType-CZjIeuKt.d.ts → signableRequestType-Cj0JFAJ1.d.ts} +2 -2
- package/dist/{signableRequestType-CZjIeuKt.d.ts.map → signableRequestType-Cj0JFAJ1.d.ts.map} +1 -1
- package/dist/{signatureParamTypes-wuLv8rkA.d.ts → signatureParamTypes-CeVzymiN.d.ts} +3 -3
- package/dist/{signatureParamTypes-wuLv8rkA.d.ts.map → signatureParamTypes-CeVzymiN.d.ts.map} +1 -1
- package/dist/{signatureParamTypes-D30zq2Ac.d.cts → signatureParamTypes-CuTGjnn3.d.cts} +3 -3
- package/dist/{signatureParamTypes-D30zq2Ac.d.cts.map → signatureParamTypes-CuTGjnn3.d.cts.map} +1 -1
- package/dist/{signatureTypes-DxmIJNug.d.ts → signatureTypes-CKnj4AM2.d.ts} +1 -1
- package/dist/signatureTypes-CKnj4AM2.d.ts.map +1 -0
- package/dist/{signatureTypes-S1LMAbRM.d.cts → signatureTypes-DLj7Jdxv.d.cts} +1 -1
- package/dist/signatureTypes-DLj7Jdxv.d.cts.map +1 -0
- package/dist/{subaccountTypes-DCl5hh9_.d.cts → subaccountTypes-BZhlUXiR.d.cts} +2 -2
- package/dist/{subaccountTypes-DCl5hh9_.d.cts.map → subaccountTypes-BZhlUXiR.d.cts.map} +1 -1
- package/dist/{subaccountTypes-BuzrDicU.d.ts → subaccountTypes-Drgy-wfh.d.ts} +2 -2
- package/dist/{subaccountTypes-BuzrDicU.d.ts.map → subaccountTypes-Drgy-wfh.d.ts.map} +1 -1
- package/dist/{sumBigNumberBy-wVwOxwyc.d.ts → sumBigNumberBy-CY0ExAq2.d.ts} +1 -1
- package/dist/{sumBigNumberBy-wVwOxwyc.d.ts.map → sumBigNumberBy-CY0ExAq2.d.ts.map} +1 -1
- package/dist/{sumBigNumberBy-BWQ-bPpk.d.cts → sumBigNumberBy-lCtvVOV3.d.cts} +1 -1
- package/dist/{sumBigNumberBy-BWQ-bPpk.d.cts.map → sumBigNumberBy-lCtvVOV3.d.cts.map} +1 -1
- package/dist/{time-CN8jbcGn.d.cts → time-DQcdrUXm.d.cts} +1 -1
- package/dist/{time-CN8jbcGn.d.cts.map → time-DQcdrUXm.d.cts.map} +1 -1
- package/dist/{time-BXCJoadZ.d.ts → time-qxKJesBm.d.ts} +1 -1
- package/dist/{time-BXCJoadZ.d.ts.map → time-qxKJesBm.d.ts.map} +1 -1
- package/dist/{toBigInt-cEajjeFa.d.cts → toBigInt-B8tsovob.d.cts} +2 -2
- package/dist/toBigInt-B8tsovob.d.cts.map +1 -0
- package/dist/{toBigInt-PqI3ILSN.d.ts → toBigInt-DSkcduN6.d.ts} +2 -2
- package/dist/toBigInt-DSkcduN6.d.ts.map +1 -0
- package/dist/{toIntegerString-sATPFuxt.d.ts → toIntegerString-Bn5odb7O.d.ts} +2 -2
- package/dist/toIntegerString-Bn5odb7O.d.ts.map +1 -0
- package/dist/{toIntegerString-CHveFt3s.d.cts → toIntegerString-IbOUu6_I.d.cts} +2 -2
- package/dist/toIntegerString-IbOUu6_I.d.cts.map +1 -0
- package/dist/{toPrintableObject-qU66WYAb.d.ts → toPrintableObject-8v8l_p0v.d.ts} +1 -1
- package/dist/{toPrintableObject-qU66WYAb.d.ts.map → toPrintableObject-8v8l_p0v.d.ts.map} +1 -1
- package/dist/{toPrintableObject-BD8fvLEw.d.cts → toPrintableObject-zlDajAQ0.d.cts} +1 -1
- package/dist/{toPrintableObject-BD8fvLEw.d.cts.map → toPrintableObject-zlDajAQ0.d.cts.map} +1 -1
- package/dist/types/BaseServerFailureError.cjs +25 -0
- package/dist/types/BaseServerFailureError.cjs.map +1 -0
- package/dist/types/BaseServerFailureError.d.cts +2 -0
- package/dist/types/BaseServerFailureError.d.ts +2 -0
- package/dist/types/BaseServerFailureError.js +24 -0
- package/dist/types/BaseServerFailureError.js.map +1 -0
- package/dist/types/ChainEnv.d.cts +1 -1
- package/dist/types/ChainEnv.d.ts +1 -1
- package/dist/types/OrderExecutionType.d.cts +1 -1
- package/dist/types/OrderExecutionType.d.ts +1 -1
- package/dist/types/bytes.d.cts +1 -1
- package/dist/types/bytes.d.ts +1 -1
- package/dist/types/errorCodes.cjs +50 -0
- package/dist/types/errorCodes.cjs.map +1 -0
- package/dist/types/errorCodes.d.cts +2 -0
- package/dist/types/errorCodes.d.ts +2 -0
- package/dist/types/errorCodes.js +49 -0
- package/dist/types/errorCodes.js.map +1 -0
- package/dist/types/index.cjs +4 -0
- package/dist/types/index.d.cts +12 -10
- package/dist/types/index.d.ts +12 -10
- package/dist/types/index.js +3 -1
- package/dist/types/marketTypes.d.cts +1 -1
- package/dist/types/marketTypes.d.ts +1 -1
- package/dist/types/nadoContractTypes.d.cts +1 -1
- package/dist/types/nadoContractTypes.d.ts +1 -1
- package/dist/types/orderAppendixTypes.d.cts +1 -1
- package/dist/types/orderAppendixTypes.d.ts +1 -1
- package/dist/types/signatureTypes.d.cts +1 -1
- package/dist/types/signatureTypes.d.ts +1 -1
- package/dist/types/subaccountTypes.d.cts +1 -1
- package/dist/types/subaccountTypes.d.ts +1 -1
- package/dist/types/viemTypes.d.cts +1 -1
- package/dist/types/viemTypes.d.ts +1 -1
- package/dist/{types-STPWaMSZ.d.cts → types-6WRBoXvb.d.cts} +1 -1
- package/dist/{types-STPWaMSZ.d.cts.map → types-6WRBoXvb.d.cts.map} +1 -1
- package/dist/{types-C3h0_DhN.d.ts → types-Be-SKK2F.d.ts} +1 -1
- package/dist/{types-C3h0_DhN.d.ts.map → types-Be-SKK2F.d.ts.map} +1 -1
- package/dist/{unpackOrderAppendix-D2mTEbjX.d.cts → unpackOrderAppendix-CwxSxPOH.d.cts} +3 -3
- package/dist/{unpackOrderAppendix-D2mTEbjX.d.cts.map → unpackOrderAppendix-CwxSxPOH.d.cts.map} +1 -1
- package/dist/{unpackOrderAppendix-BtZ5M1kJ.d.ts → unpackOrderAppendix-Q_DrCNaG.d.ts} +3 -3
- package/dist/{unpackOrderAppendix-BtZ5M1kJ.d.ts.map → unpackOrderAppendix-Q_DrCNaG.d.ts.map} +1 -1
- package/dist/utils/asyncResult.d.cts +1 -1
- package/dist/utils/asyncResult.d.ts +1 -1
- package/dist/utils/balanceValue.d.cts +1 -1
- package/dist/utils/balanceValue.d.ts +1 -1
- package/dist/utils/bytes32.d.cts +1 -1
- package/dist/utils/bytes32.d.ts +1 -1
- package/dist/utils/createDeterministicLinkedSignerPrivateKey.d.cts +1 -1
- package/dist/utils/createDeterministicLinkedSignerPrivateKey.d.ts +1 -1
- package/dist/utils/errors/WalletNotProvidedError.d.cts +1 -1
- package/dist/utils/errors/WalletNotProvidedError.d.ts +1 -1
- package/dist/utils/errors/index.d.cts +1 -1
- package/dist/utils/errors/index.d.ts +1 -1
- package/dist/utils/getValidatedAddress.d.cts +1 -1
- package/dist/utils/getValidatedAddress.d.ts +1 -1
- package/dist/utils/getValidatedHex.d.cts +1 -1
- package/dist/utils/getValidatedHex.d.ts +1 -1
- package/dist/utils/index.d.cts +27 -27
- package/dist/utils/index.d.ts +27 -27
- package/dist/utils/interest.d.cts +1 -1
- package/dist/utils/interest.d.ts +1 -1
- package/dist/utils/isWriteableContract.d.cts +1 -1
- package/dist/utils/isWriteableContract.d.ts +1 -1
- package/dist/utils/mapValues.d.cts +1 -1
- package/dist/utils/mapValues.d.ts +1 -1
- package/dist/utils/math/BigNumbers.d.cts +1 -1
- package/dist/utils/math/BigNumbers.d.ts +1 -1
- package/dist/utils/math/bigNumber.d.cts +1 -1
- package/dist/utils/math/bigNumber.d.ts +1 -1
- package/dist/utils/math/clamp.d.cts +1 -1
- package/dist/utils/math/clamp.d.ts +1 -1
- package/dist/utils/math/decimalAdjustment.d.cts +1 -1
- package/dist/utils/math/decimalAdjustment.d.ts +1 -1
- package/dist/utils/math/index.d.cts +7 -7
- package/dist/utils/math/index.d.ts +7 -7
- package/dist/utils/math/sumBigNumberBy.d.cts +1 -1
- package/dist/utils/math/sumBigNumberBy.d.ts +1 -1
- package/dist/utils/math/toBigInt.d.cts +1 -1
- package/dist/utils/math/toBigInt.d.ts +1 -1
- package/dist/utils/math/toIntegerString.d.cts +1 -1
- package/dist/utils/math/toIntegerString.d.ts +1 -1
- package/dist/utils/orders/appendix/appendixIsolatedValue.d.cts +1 -1
- package/dist/utils/orders/appendix/appendixIsolatedValue.d.ts +1 -1
- package/dist/utils/orders/appendix/appendixTwapValue.d.cts +1 -1
- package/dist/utils/orders/appendix/appendixTwapValue.d.ts +1 -1
- package/dist/utils/orders/appendix/bitMaskValue.d.cts +1 -1
- package/dist/utils/orders/appendix/bitMaskValue.d.ts +1 -1
- package/dist/utils/orders/appendix/index.d.cts +5 -5
- package/dist/utils/orders/appendix/index.d.ts +5 -5
- package/dist/utils/orders/appendix/packOrderAppendix.d.cts +1 -1
- package/dist/utils/orders/appendix/packOrderAppendix.d.ts +1 -1
- package/dist/utils/orders/appendix/types.d.cts +1 -1
- package/dist/utils/orders/appendix/types.d.ts +1 -1
- package/dist/utils/orders/appendix/unpackOrderAppendix.d.cts +1 -1
- package/dist/utils/orders/appendix/unpackOrderAppendix.d.ts +1 -1
- package/dist/utils/orders/index.d.cts +7 -7
- package/dist/utils/orders/index.d.ts +7 -7
- package/dist/utils/orders/orderNonce.d.cts +1 -1
- package/dist/utils/orders/orderNonce.d.ts +1 -1
- package/dist/utils/orders/recvTime.d.cts +1 -1
- package/dist/utils/orders/recvTime.d.ts +1 -1
- package/dist/utils/productTypeFilter.d.cts +1 -1
- package/dist/utils/productTypeFilter.d.ts +1 -1
- package/dist/utils/time.d.cts +1 -1
- package/dist/utils/time.d.ts +1 -1
- package/dist/utils/toPrintableObject.d.cts +1 -1
- package/dist/utils/toPrintableObject.d.ts +1 -1
- package/dist/{viemTypes-D3kRC8jF.d.ts → viemTypes-ChJk9MYI.d.ts} +1 -1
- package/dist/{viemTypes-D3kRC8jF.d.ts.map → viemTypes-ChJk9MYI.d.ts.map} +1 -1
- package/dist/{viemTypes-Mjfxe2ou.d.cts → viemTypes-DrxAdyOl.d.cts} +1 -1
- package/dist/{viemTypes-Mjfxe2ou.d.cts.map → viemTypes-DrxAdyOl.d.cts.map} +1 -1
- package/package.json +2 -2
- package/src/types/BaseServerFailureError.ts +51 -0
- package/src/types/errorCodes.ts +60 -0
- package/src/types/index.ts +2 -0
- package/dist/BigNumbers-CM-lXODL.d.ts.map +0 -1
- package/dist/BigNumbers-CZl--in2.d.cts.map +0 -1
- package/dist/OrderExecutionType-BCH5Wop4.d.ts.map +0 -1
- package/dist/OrderExecutionType-gZHBzTTF.d.cts.map +0 -1
- package/dist/bytes-Bv66A6U8.d.ts.map +0 -1
- package/dist/bytes-DAhqCt_o.d.cts.map +0 -1
- package/dist/createDeterministicLinkedSignerPrivateKey-47pkYOE0.d.ts.map +0 -1
- package/dist/createDeterministicLinkedSignerPrivateKey-CcJhRSf7.d.cts.map +0 -1
- package/dist/getValidatedAddress-BiT9E3l6.d.cts.map +0 -1
- package/dist/getValidatedAddress-f8b_x20V.d.ts.map +0 -1
- package/dist/getValidatedHex-D_p2LkRB.d.cts.map +0 -1
- package/dist/getValidatedHex-_FrR4ehU.d.ts.map +0 -1
- package/dist/productIds-BZeKoHcK.d.ts.map +0 -1
- package/dist/productIds-CePkYUZH.d.cts.map +0 -1
- package/dist/recvTime-B5XYRV0S.d.ts.map +0 -1
- package/dist/recvTime-D6SfTY5U.d.cts.map +0 -1
- package/dist/signatureTypes-DxmIJNug.d.ts.map +0 -1
- package/dist/signatureTypes-S1LMAbRM.d.cts.map +0 -1
- package/dist/toBigInt-PqI3ILSN.d.ts.map +0 -1
- package/dist/toBigInt-cEajjeFa.d.cts.map +0 -1
- package/dist/toIntegerString-CHveFt3s.d.cts.map +0 -1
- package/dist/toIntegerString-sATPFuxt.d.ts.map +0 -1
- /package/dist/{index-B98eXebS.d.ts → index-BN8Gwmlj.d.ts} +0 -0
- /package/dist/{index-BJ8-FA6N.d.cts → index-Bejmfbw02.d.ts} +0 -0
- /package/dist/{index-BLREDRDJ.d.cts → index-Bxsm5336.d.ts} +0 -0
- /package/dist/{index-BLwMeReG.d.ts → index-CDDzqahH.d.ts} +0 -0
- /package/dist/{index-C6yvNuzO.d.cts → index-CEDY7cmG.d.cts} +0 -0
- /package/dist/{index-CI4LJief.d.ts → index-CLH9-Fxa.d.ts} +0 -0
- /package/dist/{index-CNuTE0dv.d.ts → index-ClGxRYdo.d.cts} +0 -0
- /package/dist/{index-DFKoAoY2.d.cts → index-CrhZaFgN.d.cts} +0 -0
- /package/dist/{index-DPuvk4iq.d.ts → index-D-BciAtf.d.cts} +0 -0
- /package/dist/{index-DYVpYyuQ2.d.ts → index-D2HUTZ-d.d.cts} +0 -0
- /package/dist/{index-Dh6J9gb5.d.cts → index-DBQaKYAL2.d.cts} +0 -0
- /package/dist/{index-ma3taAs-.d.ts → index-DSBnvhSj.d.ts} +0 -0
- /package/dist/{index-qOayZAJw2.d.cts → index-Dpmi5zcN.d.cts} +0 -0
- /package/dist/{index-zO0Ly4bS.d.cts → index-I2m6W13H.d.ts} +0 -0
package/dist/utils/index.d.cts
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { n as toBigNumber, t as BigNumberish } from "../bigNumber-
|
|
2
|
-
import { t as BigNumbers } from "../BigNumbers-
|
|
3
|
-
import { t as clampBigNumber } from "../clamp-
|
|
4
|
-
import { n as addDecimals, r as removeDecimals, t as NADO_PRODUCT_DECIMALS } from "../decimalAdjustment-
|
|
5
|
-
import { t as sumBigNumberBy } from "../sumBigNumberBy-
|
|
6
|
-
import { t as toBigInt } from "../toBigInt-
|
|
7
|
-
import { t as toIntegerString } from "../toIntegerString-
|
|
8
|
-
import { n as asyncResult, t as AsyncResult } from "../asyncResult-
|
|
9
|
-
import { n as calcPerpBalanceValue, r as calcSpotBalanceValue, t as calcPerpBalanceNotionalValue } from "../balanceValue-
|
|
10
|
-
import { a as subaccountToBytes32, i as subaccountNameToBytes12, n as subaccountFromHex, o as subaccountToHex, r as subaccountNameBytesToStr, t as subaccountFromBytes32 } from "../bytes32-
|
|
11
|
-
import { t as createDeterministicLinkedSignerPrivateKey } from "../createDeterministicLinkedSignerPrivateKey-
|
|
12
|
-
import { t as WalletNotProvidedError } from "../WalletNotProvidedError-
|
|
13
|
-
import { t as getValidatedAddress } from "../getValidatedAddress-
|
|
14
|
-
import { t as getValidatedHex } from "../getValidatedHex-
|
|
15
|
-
import { a as calcTotalDeposited, i as calcTotalBorrowed, n as calcBorrowRatePerSecond, o as calcUtilizationRatio, r as calcRealizedDepositRateForTimeRange, t as calcBorrowRateForTimeRange } from "../interest-
|
|
16
|
-
import { t as isWriteableContract } from "../isWriteableContract-
|
|
17
|
-
import { t as mapValues } from "../mapValues-
|
|
18
|
-
import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../appendixTwapValue-
|
|
19
|
-
import { t as bitMaskValue } from "../bitMaskValue-
|
|
20
|
-
import { t as packOrderAppendix } from "../packOrderAppendix-
|
|
21
|
-
import { t as PackedOrderAppendixBits } from "../types-
|
|
22
|
-
import { t as unpackOrderAppendix } from "../unpackOrderAppendix-
|
|
23
|
-
import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../orderNonce-
|
|
24
|
-
import { t as getDefaultRecvTime } from "../recvTime-
|
|
25
|
-
import { i as isSpotProduct, n as isPerpProduct, r as isSpotBalance, t as isPerpBalance } from "../productTypeFilter-
|
|
26
|
-
import { n as millisToSeconds, r as nowInSeconds, t as TimeInSeconds } from "../time-
|
|
27
|
-
import { t as toPrintableObject } from "../toPrintableObject-
|
|
1
|
+
import { n as toBigNumber, t as BigNumberish } from "../bigNumber-D3ssF_uJ.cjs";
|
|
2
|
+
import { t as BigNumbers } from "../BigNumbers-Bj-QcbP_.cjs";
|
|
3
|
+
import { t as clampBigNumber } from "../clamp-BG8pfPTy.cjs";
|
|
4
|
+
import { n as addDecimals, r as removeDecimals, t as NADO_PRODUCT_DECIMALS } from "../decimalAdjustment-DTyP-bzx.cjs";
|
|
5
|
+
import { t as sumBigNumberBy } from "../sumBigNumberBy-lCtvVOV3.cjs";
|
|
6
|
+
import { t as toBigInt } from "../toBigInt-B8tsovob.cjs";
|
|
7
|
+
import { t as toIntegerString } from "../toIntegerString-IbOUu6_I.cjs";
|
|
8
|
+
import { n as asyncResult, t as AsyncResult } from "../asyncResult-uSvcciZS.cjs";
|
|
9
|
+
import { n as calcPerpBalanceValue, r as calcSpotBalanceValue, t as calcPerpBalanceNotionalValue } from "../balanceValue-0IotjlbD.cjs";
|
|
10
|
+
import { a as subaccountToBytes32, i as subaccountNameToBytes12, n as subaccountFromHex, o as subaccountToHex, r as subaccountNameBytesToStr, t as subaccountFromBytes32 } from "../bytes32-BVmiGtU4.cjs";
|
|
11
|
+
import { t as createDeterministicLinkedSignerPrivateKey } from "../createDeterministicLinkedSignerPrivateKey-wu-Hp9xI.cjs";
|
|
12
|
+
import { t as WalletNotProvidedError } from "../WalletNotProvidedError-DXwkasel.cjs";
|
|
13
|
+
import { t as getValidatedAddress } from "../getValidatedAddress-TNxNngvc.cjs";
|
|
14
|
+
import { t as getValidatedHex } from "../getValidatedHex-CEtmzBzc.cjs";
|
|
15
|
+
import { a as calcTotalDeposited, i as calcTotalBorrowed, n as calcBorrowRatePerSecond, o as calcUtilizationRatio, r as calcRealizedDepositRateForTimeRange, t as calcBorrowRateForTimeRange } from "../interest-DbQOrmBI.cjs";
|
|
16
|
+
import { t as isWriteableContract } from "../isWriteableContract-BApMCbPn.cjs";
|
|
17
|
+
import { t as mapValues } from "../mapValues-D2u-oFkX.cjs";
|
|
18
|
+
import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../appendixTwapValue-CZCE2qQo.cjs";
|
|
19
|
+
import { t as bitMaskValue } from "../bitMaskValue-2s-H6pY1.cjs";
|
|
20
|
+
import { t as packOrderAppendix } from "../packOrderAppendix-DyfvlAmI.cjs";
|
|
21
|
+
import { t as PackedOrderAppendixBits } from "../types-6WRBoXvb.cjs";
|
|
22
|
+
import { t as unpackOrderAppendix } from "../unpackOrderAppendix-CwxSxPOH.cjs";
|
|
23
|
+
import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../orderNonce-UUMaxlBA.cjs";
|
|
24
|
+
import { t as getDefaultRecvTime } from "../recvTime-CGPFJaVg.cjs";
|
|
25
|
+
import { i as isSpotProduct, n as isPerpProduct, r as isSpotBalance, t as isPerpBalance } from "../productTypeFilter-DoGpp8hw.cjs";
|
|
26
|
+
import { n as millisToSeconds, r as nowInSeconds, t as TimeInSeconds } from "../time-DQcdrUXm.cjs";
|
|
27
|
+
import { t as toPrintableObject } from "../toPrintableObject-zlDajAQ0.cjs";
|
|
28
28
|
export { AsyncResult, BigNumberish, BigNumbers, NADO_PRODUCT_DECIMALS, PackedOrderAppendixBits, TimeInSeconds, WalletNotProvidedError, addDecimals, asyncResult, bitMaskValue, calcBorrowRateForTimeRange, calcBorrowRatePerSecond, calcPerpBalanceNotionalValue, calcPerpBalanceValue, calcRealizedDepositRateForTimeRange, calcSpotBalanceValue, calcTotalBorrowed, calcTotalDeposited, calcUtilizationRatio, clampBigNumber, createDeterministicLinkedSignerPrivateKey, getDefaultRecvTime, getOrderNonce, getRecvTimeFromOrderNonce, getValidatedAddress, getValidatedHex, isPerpBalance, isPerpProduct, isSpotBalance, isSpotProduct, isWriteableContract, mapValues, millisToSeconds, nowInSeconds, packOrderAppendix, packTwapOrderAppendixValue, removeDecimals, subaccountFromBytes32, subaccountFromHex, subaccountNameBytesToStr, subaccountNameToBytes12, subaccountToBytes32, subaccountToHex, sumBigNumberBy, toBigInt, toBigNumber, toIntegerString, toPrintableObject, unpackOrderAppendix, unpackTwapOrderAppendixValue };
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { n as toBigNumber, t as BigNumberish } from "../bigNumber-
|
|
2
|
-
import { t as BigNumbers } from "../BigNumbers-
|
|
3
|
-
import { t as clampBigNumber } from "../clamp-
|
|
4
|
-
import { n as addDecimals, r as removeDecimals, t as NADO_PRODUCT_DECIMALS } from "../decimalAdjustment-
|
|
5
|
-
import { t as sumBigNumberBy } from "../sumBigNumberBy-
|
|
6
|
-
import { t as toBigInt } from "../toBigInt-
|
|
7
|
-
import { t as toIntegerString } from "../toIntegerString-
|
|
8
|
-
import { n as asyncResult, t as AsyncResult } from "../asyncResult-
|
|
9
|
-
import { n as calcPerpBalanceValue, r as calcSpotBalanceValue, t as calcPerpBalanceNotionalValue } from "../balanceValue-
|
|
10
|
-
import { a as subaccountToBytes32, i as subaccountNameToBytes12, n as subaccountFromHex, o as subaccountToHex, r as subaccountNameBytesToStr, t as subaccountFromBytes32 } from "../bytes32-
|
|
11
|
-
import { t as createDeterministicLinkedSignerPrivateKey } from "../createDeterministicLinkedSignerPrivateKey-
|
|
12
|
-
import { t as WalletNotProvidedError } from "../WalletNotProvidedError-
|
|
13
|
-
import { t as getValidatedAddress } from "../getValidatedAddress-
|
|
14
|
-
import { t as getValidatedHex } from "../getValidatedHex-
|
|
15
|
-
import { a as calcTotalDeposited, i as calcTotalBorrowed, n as calcBorrowRatePerSecond, o as calcUtilizationRatio, r as calcRealizedDepositRateForTimeRange, t as calcBorrowRateForTimeRange } from "../interest-
|
|
16
|
-
import { t as isWriteableContract } from "../isWriteableContract-
|
|
17
|
-
import { t as mapValues } from "../mapValues-
|
|
18
|
-
import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../appendixTwapValue-
|
|
19
|
-
import { t as bitMaskValue } from "../bitMaskValue-
|
|
20
|
-
import { t as packOrderAppendix } from "../packOrderAppendix-
|
|
21
|
-
import { t as PackedOrderAppendixBits } from "../types-
|
|
22
|
-
import { t as unpackOrderAppendix } from "../unpackOrderAppendix-
|
|
23
|
-
import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../orderNonce-
|
|
24
|
-
import { t as getDefaultRecvTime } from "../recvTime-
|
|
25
|
-
import { i as isSpotProduct, n as isPerpProduct, r as isSpotBalance, t as isPerpBalance } from "../productTypeFilter-
|
|
26
|
-
import { n as millisToSeconds, r as nowInSeconds, t as TimeInSeconds } from "../time-
|
|
27
|
-
import { t as toPrintableObject } from "../toPrintableObject-
|
|
1
|
+
import { n as toBigNumber, t as BigNumberish } from "../bigNumber-DsRTR9zM.js";
|
|
2
|
+
import { t as BigNumbers } from "../BigNumbers-C2iMiWwo.js";
|
|
3
|
+
import { t as clampBigNumber } from "../clamp-tcJ-3GBf.js";
|
|
4
|
+
import { n as addDecimals, r as removeDecimals, t as NADO_PRODUCT_DECIMALS } from "../decimalAdjustment-5cvNu6vi.js";
|
|
5
|
+
import { t as sumBigNumberBy } from "../sumBigNumberBy-CY0ExAq2.js";
|
|
6
|
+
import { t as toBigInt } from "../toBigInt-DSkcduN6.js";
|
|
7
|
+
import { t as toIntegerString } from "../toIntegerString-Bn5odb7O.js";
|
|
8
|
+
import { n as asyncResult, t as AsyncResult } from "../asyncResult-SvtRCbOk.js";
|
|
9
|
+
import { n as calcPerpBalanceValue, r as calcSpotBalanceValue, t as calcPerpBalanceNotionalValue } from "../balanceValue-G8L4pR0e.js";
|
|
10
|
+
import { a as subaccountToBytes32, i as subaccountNameToBytes12, n as subaccountFromHex, o as subaccountToHex, r as subaccountNameBytesToStr, t as subaccountFromBytes32 } from "../bytes32-Bm0kWK7n.js";
|
|
11
|
+
import { t as createDeterministicLinkedSignerPrivateKey } from "../createDeterministicLinkedSignerPrivateKey-Bro8BtTs.js";
|
|
12
|
+
import { t as WalletNotProvidedError } from "../WalletNotProvidedError-CN0xJL6e.js";
|
|
13
|
+
import { t as getValidatedAddress } from "../getValidatedAddress-DD1N6pfc.js";
|
|
14
|
+
import { t as getValidatedHex } from "../getValidatedHex-1VRieEnK.js";
|
|
15
|
+
import { a as calcTotalDeposited, i as calcTotalBorrowed, n as calcBorrowRatePerSecond, o as calcUtilizationRatio, r as calcRealizedDepositRateForTimeRange, t as calcBorrowRateForTimeRange } from "../interest-BGRNvCxK.js";
|
|
16
|
+
import { t as isWriteableContract } from "../isWriteableContract-CJQ4QKqa.js";
|
|
17
|
+
import { t as mapValues } from "../mapValues-BZW7dU_i.js";
|
|
18
|
+
import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../appendixTwapValue-hvjIuxYz.js";
|
|
19
|
+
import { t as bitMaskValue } from "../bitMaskValue-DassPPW9.js";
|
|
20
|
+
import { t as packOrderAppendix } from "../packOrderAppendix-BKmQ-8tV.js";
|
|
21
|
+
import { t as PackedOrderAppendixBits } from "../types-Be-SKK2F.js";
|
|
22
|
+
import { t as unpackOrderAppendix } from "../unpackOrderAppendix-Q_DrCNaG.js";
|
|
23
|
+
import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../orderNonce-Qf0AYXz9.js";
|
|
24
|
+
import { t as getDefaultRecvTime } from "../recvTime-C5rnDnyo.js";
|
|
25
|
+
import { i as isSpotProduct, n as isPerpProduct, r as isSpotBalance, t as isPerpBalance } from "../productTypeFilter-D0N0FKt4.js";
|
|
26
|
+
import { n as millisToSeconds, r as nowInSeconds, t as TimeInSeconds } from "../time-qxKJesBm.js";
|
|
27
|
+
import { t as toPrintableObject } from "../toPrintableObject-8v8l_p0v.js";
|
|
28
28
|
export { AsyncResult, BigNumberish, BigNumbers, NADO_PRODUCT_DECIMALS, PackedOrderAppendixBits, TimeInSeconds, WalletNotProvidedError, addDecimals, asyncResult, bitMaskValue, calcBorrowRateForTimeRange, calcBorrowRatePerSecond, calcPerpBalanceNotionalValue, calcPerpBalanceValue, calcRealizedDepositRateForTimeRange, calcSpotBalanceValue, calcTotalBorrowed, calcTotalDeposited, calcUtilizationRatio, clampBigNumber, createDeterministicLinkedSignerPrivateKey, getDefaultRecvTime, getOrderNonce, getRecvTimeFromOrderNonce, getValidatedAddress, getValidatedHex, isPerpBalance, isPerpProduct, isSpotBalance, isSpotProduct, isWriteableContract, mapValues, millisToSeconds, nowInSeconds, packOrderAppendix, packTwapOrderAppendixValue, removeDecimals, subaccountFromBytes32, subaccountFromHex, subaccountNameBytesToStr, subaccountNameToBytes12, subaccountToBytes32, subaccountToHex, sumBigNumberBy, toBigInt, toBigNumber, toIntegerString, toPrintableObject, unpackOrderAppendix, unpackTwapOrderAppendixValue };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as calcTotalDeposited, i as calcTotalBorrowed, n as calcBorrowRatePerSecond, o as calcUtilizationRatio, r as calcRealizedDepositRateForTimeRange, t as calcBorrowRateForTimeRange } from "../interest-
|
|
1
|
+
import { a as calcTotalDeposited, i as calcTotalBorrowed, n as calcBorrowRatePerSecond, o as calcUtilizationRatio, r as calcRealizedDepositRateForTimeRange, t as calcBorrowRateForTimeRange } from "../interest-DbQOrmBI.cjs";
|
|
2
2
|
export { calcBorrowRateForTimeRange, calcBorrowRatePerSecond, calcRealizedDepositRateForTimeRange, calcTotalBorrowed, calcTotalDeposited, calcUtilizationRatio };
|
package/dist/utils/interest.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as calcTotalDeposited, i as calcTotalBorrowed, n as calcBorrowRatePerSecond, o as calcUtilizationRatio, r as calcRealizedDepositRateForTimeRange, t as calcBorrowRateForTimeRange } from "../interest-
|
|
1
|
+
import { a as calcTotalDeposited, i as calcTotalBorrowed, n as calcBorrowRatePerSecond, o as calcUtilizationRatio, r as calcRealizedDepositRateForTimeRange, t as calcBorrowRateForTimeRange } from "../interest-BGRNvCxK.js";
|
|
2
2
|
export { calcBorrowRateForTimeRange, calcBorrowRatePerSecond, calcRealizedDepositRateForTimeRange, calcTotalBorrowed, calcTotalDeposited, calcUtilizationRatio };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as isWriteableContract } from "../isWriteableContract-
|
|
1
|
+
import { t as isWriteableContract } from "../isWriteableContract-BApMCbPn.cjs";
|
|
2
2
|
export { isWriteableContract };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as isWriteableContract } from "../isWriteableContract-
|
|
1
|
+
import { t as isWriteableContract } from "../isWriteableContract-CJQ4QKqa.js";
|
|
2
2
|
export { isWriteableContract };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as mapValues } from "../mapValues-
|
|
1
|
+
import { t as mapValues } from "../mapValues-D2u-oFkX.cjs";
|
|
2
2
|
export { mapValues };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as mapValues } from "../mapValues-
|
|
1
|
+
import { t as mapValues } from "../mapValues-BZW7dU_i.js";
|
|
2
2
|
export { mapValues };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as BigNumbers } from "../../BigNumbers-
|
|
1
|
+
import { t as BigNumbers } from "../../BigNumbers-Bj-QcbP_.cjs";
|
|
2
2
|
export { BigNumbers };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as BigNumbers } from "../../BigNumbers-
|
|
1
|
+
import { t as BigNumbers } from "../../BigNumbers-C2iMiWwo.js";
|
|
2
2
|
export { BigNumbers };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as toBigNumber, t as BigNumberish } from "../../bigNumber-
|
|
1
|
+
import { n as toBigNumber, t as BigNumberish } from "../../bigNumber-D3ssF_uJ.cjs";
|
|
2
2
|
export { BigNumberish, toBigNumber };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as toBigNumber, t as BigNumberish } from "../../bigNumber-
|
|
1
|
+
import { n as toBigNumber, t as BigNumberish } from "../../bigNumber-DsRTR9zM.js";
|
|
2
2
|
export { BigNumberish, toBigNumber };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as clampBigNumber } from "../../clamp-
|
|
1
|
+
import { t as clampBigNumber } from "../../clamp-BG8pfPTy.cjs";
|
|
2
2
|
export { clampBigNumber };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as clampBigNumber } from "../../clamp-
|
|
1
|
+
import { t as clampBigNumber } from "../../clamp-tcJ-3GBf.js";
|
|
2
2
|
export { clampBigNumber };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as addDecimals, r as removeDecimals, t as NADO_PRODUCT_DECIMALS } from "../../decimalAdjustment-
|
|
1
|
+
import { n as addDecimals, r as removeDecimals, t as NADO_PRODUCT_DECIMALS } from "../../decimalAdjustment-DTyP-bzx.cjs";
|
|
2
2
|
export { NADO_PRODUCT_DECIMALS, addDecimals, removeDecimals };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as addDecimals, r as removeDecimals, t as NADO_PRODUCT_DECIMALS } from "../../decimalAdjustment-
|
|
1
|
+
import { n as addDecimals, r as removeDecimals, t as NADO_PRODUCT_DECIMALS } from "../../decimalAdjustment-5cvNu6vi.js";
|
|
2
2
|
export { NADO_PRODUCT_DECIMALS, addDecimals, removeDecimals };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as toBigNumber, t as BigNumberish } from "../../bigNumber-
|
|
2
|
-
import { t as BigNumbers } from "../../BigNumbers-
|
|
3
|
-
import { t as clampBigNumber } from "../../clamp-
|
|
4
|
-
import { n as addDecimals, r as removeDecimals, t as NADO_PRODUCT_DECIMALS } from "../../decimalAdjustment-
|
|
5
|
-
import { t as sumBigNumberBy } from "../../sumBigNumberBy-
|
|
6
|
-
import { t as toBigInt } from "../../toBigInt-
|
|
7
|
-
import { t as toIntegerString } from "../../toIntegerString-
|
|
1
|
+
import { n as toBigNumber, t as BigNumberish } from "../../bigNumber-D3ssF_uJ.cjs";
|
|
2
|
+
import { t as BigNumbers } from "../../BigNumbers-Bj-QcbP_.cjs";
|
|
3
|
+
import { t as clampBigNumber } from "../../clamp-BG8pfPTy.cjs";
|
|
4
|
+
import { n as addDecimals, r as removeDecimals, t as NADO_PRODUCT_DECIMALS } from "../../decimalAdjustment-DTyP-bzx.cjs";
|
|
5
|
+
import { t as sumBigNumberBy } from "../../sumBigNumberBy-lCtvVOV3.cjs";
|
|
6
|
+
import { t as toBigInt } from "../../toBigInt-B8tsovob.cjs";
|
|
7
|
+
import { t as toIntegerString } from "../../toIntegerString-IbOUu6_I.cjs";
|
|
8
8
|
export { BigNumberish, BigNumbers, NADO_PRODUCT_DECIMALS, addDecimals, clampBigNumber, removeDecimals, sumBigNumberBy, toBigInt, toBigNumber, toIntegerString };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as toBigNumber, t as BigNumberish } from "../../bigNumber-
|
|
2
|
-
import { t as BigNumbers } from "../../BigNumbers-
|
|
3
|
-
import { t as clampBigNumber } from "../../clamp-
|
|
4
|
-
import { n as addDecimals, r as removeDecimals, t as NADO_PRODUCT_DECIMALS } from "../../decimalAdjustment-
|
|
5
|
-
import { t as sumBigNumberBy } from "../../sumBigNumberBy-
|
|
6
|
-
import { t as toBigInt } from "../../toBigInt-
|
|
7
|
-
import { t as toIntegerString } from "../../toIntegerString-
|
|
1
|
+
import { n as toBigNumber, t as BigNumberish } from "../../bigNumber-DsRTR9zM.js";
|
|
2
|
+
import { t as BigNumbers } from "../../BigNumbers-C2iMiWwo.js";
|
|
3
|
+
import { t as clampBigNumber } from "../../clamp-tcJ-3GBf.js";
|
|
4
|
+
import { n as addDecimals, r as removeDecimals, t as NADO_PRODUCT_DECIMALS } from "../../decimalAdjustment-5cvNu6vi.js";
|
|
5
|
+
import { t as sumBigNumberBy } from "../../sumBigNumberBy-CY0ExAq2.js";
|
|
6
|
+
import { t as toBigInt } from "../../toBigInt-DSkcduN6.js";
|
|
7
|
+
import { t as toIntegerString } from "../../toIntegerString-Bn5odb7O.js";
|
|
8
8
|
export { BigNumberish, BigNumbers, NADO_PRODUCT_DECIMALS, addDecimals, clampBigNumber, removeDecimals, sumBigNumberBy, toBigInt, toBigNumber, toIntegerString };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as sumBigNumberBy } from "../../sumBigNumberBy-
|
|
1
|
+
import { t as sumBigNumberBy } from "../../sumBigNumberBy-lCtvVOV3.cjs";
|
|
2
2
|
export { sumBigNumberBy };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as sumBigNumberBy } from "../../sumBigNumberBy-
|
|
1
|
+
import { t as sumBigNumberBy } from "../../sumBigNumberBy-CY0ExAq2.js";
|
|
2
2
|
export { sumBigNumberBy };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as toBigInt } from "../../toBigInt-
|
|
1
|
+
import { t as toBigInt } from "../../toBigInt-B8tsovob.cjs";
|
|
2
2
|
export { toBigInt };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as toBigInt } from "../../toBigInt-
|
|
1
|
+
import { t as toBigInt } from "../../toBigInt-DSkcduN6.js";
|
|
2
2
|
export { toBigInt };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as toIntegerString } from "../../toIntegerString-
|
|
1
|
+
import { t as toIntegerString } from "../../toIntegerString-IbOUu6_I.cjs";
|
|
2
2
|
export { toIntegerString };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as toIntegerString } from "../../toIntegerString-
|
|
1
|
+
import { t as toIntegerString } from "../../toIntegerString-Bn5odb7O.js";
|
|
2
2
|
export { toIntegerString };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as OrderAppendixIsolatedFields } from "../../../orderAppendixTypes-
|
|
1
|
+
import { r as OrderAppendixIsolatedFields } from "../../../orderAppendixTypes-DIeaFc_g.cjs";
|
|
2
2
|
//#region src/utils/orders/appendix/appendixIsolatedValue.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Packs the provided margin into a single 64-bit bigint.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as OrderAppendixIsolatedFields } from "../../../orderAppendixTypes-
|
|
1
|
+
import { r as OrderAppendixIsolatedFields } from "../../../orderAppendixTypes-DQU50ISh.js";
|
|
2
2
|
//#region src/utils/orders/appendix/appendixIsolatedValue.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Packs the provided margin into a single 64-bit bigint.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../../../appendixTwapValue-
|
|
1
|
+
import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../../../appendixTwapValue-CZCE2qQo.cjs";
|
|
2
2
|
export { packTwapOrderAppendixValue, unpackTwapOrderAppendixValue };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../../../appendixTwapValue-
|
|
1
|
+
import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../../../appendixTwapValue-hvjIuxYz.js";
|
|
2
2
|
export { packTwapOrderAppendixValue, unpackTwapOrderAppendixValue };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as bitMaskValue } from "../../../bitMaskValue-
|
|
1
|
+
import { t as bitMaskValue } from "../../../bitMaskValue-2s-H6pY1.cjs";
|
|
2
2
|
export { bitMaskValue };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as bitMaskValue } from "../../../bitMaskValue-
|
|
1
|
+
import { t as bitMaskValue } from "../../../bitMaskValue-DassPPW9.js";
|
|
2
2
|
export { bitMaskValue };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../../../appendixTwapValue-
|
|
2
|
-
import { t as bitMaskValue } from "../../../bitMaskValue-
|
|
3
|
-
import { t as packOrderAppendix } from "../../../packOrderAppendix-
|
|
4
|
-
import { t as PackedOrderAppendixBits } from "../../../types-
|
|
5
|
-
import { t as unpackOrderAppendix } from "../../../unpackOrderAppendix-
|
|
1
|
+
import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../../../appendixTwapValue-CZCE2qQo.cjs";
|
|
2
|
+
import { t as bitMaskValue } from "../../../bitMaskValue-2s-H6pY1.cjs";
|
|
3
|
+
import { t as packOrderAppendix } from "../../../packOrderAppendix-DyfvlAmI.cjs";
|
|
4
|
+
import { t as PackedOrderAppendixBits } from "../../../types-6WRBoXvb.cjs";
|
|
5
|
+
import { t as unpackOrderAppendix } from "../../../unpackOrderAppendix-CwxSxPOH.cjs";
|
|
6
6
|
export { PackedOrderAppendixBits, bitMaskValue, packOrderAppendix, packTwapOrderAppendixValue, unpackOrderAppendix, unpackTwapOrderAppendixValue };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../../../appendixTwapValue-
|
|
2
|
-
import { t as bitMaskValue } from "../../../bitMaskValue-
|
|
3
|
-
import { t as packOrderAppendix } from "../../../packOrderAppendix-
|
|
4
|
-
import { t as PackedOrderAppendixBits } from "../../../types-
|
|
5
|
-
import { t as unpackOrderAppendix } from "../../../unpackOrderAppendix-
|
|
1
|
+
import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../../../appendixTwapValue-hvjIuxYz.js";
|
|
2
|
+
import { t as bitMaskValue } from "../../../bitMaskValue-DassPPW9.js";
|
|
3
|
+
import { t as packOrderAppendix } from "../../../packOrderAppendix-BKmQ-8tV.js";
|
|
4
|
+
import { t as PackedOrderAppendixBits } from "../../../types-Be-SKK2F.js";
|
|
5
|
+
import { t as unpackOrderAppendix } from "../../../unpackOrderAppendix-Q_DrCNaG.js";
|
|
6
6
|
export { PackedOrderAppendixBits, bitMaskValue, packOrderAppendix, packTwapOrderAppendixValue, unpackOrderAppendix, unpackTwapOrderAppendixValue };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as packOrderAppendix } from "../../../packOrderAppendix-
|
|
1
|
+
import { t as packOrderAppendix } from "../../../packOrderAppendix-DyfvlAmI.cjs";
|
|
2
2
|
export { packOrderAppendix };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as packOrderAppendix } from "../../../packOrderAppendix-
|
|
1
|
+
import { t as packOrderAppendix } from "../../../packOrderAppendix-BKmQ-8tV.js";
|
|
2
2
|
export { packOrderAppendix };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as PackedOrderAppendixBits } from "../../../types-
|
|
1
|
+
import { t as PackedOrderAppendixBits } from "../../../types-6WRBoXvb.cjs";
|
|
2
2
|
export { PackedOrderAppendixBits };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as PackedOrderAppendixBits } from "../../../types-
|
|
1
|
+
import { t as PackedOrderAppendixBits } from "../../../types-Be-SKK2F.js";
|
|
2
2
|
export { PackedOrderAppendixBits };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as unpackOrderAppendix } from "../../../unpackOrderAppendix-
|
|
1
|
+
import { t as unpackOrderAppendix } from "../../../unpackOrderAppendix-CwxSxPOH.cjs";
|
|
2
2
|
export { unpackOrderAppendix };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as unpackOrderAppendix } from "../../../unpackOrderAppendix-
|
|
1
|
+
import { t as unpackOrderAppendix } from "../../../unpackOrderAppendix-Q_DrCNaG.js";
|
|
2
2
|
export { unpackOrderAppendix };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../../appendixTwapValue-
|
|
2
|
-
import { t as bitMaskValue } from "../../bitMaskValue-
|
|
3
|
-
import { t as packOrderAppendix } from "../../packOrderAppendix-
|
|
4
|
-
import { t as PackedOrderAppendixBits } from "../../types-
|
|
5
|
-
import { t as unpackOrderAppendix } from "../../unpackOrderAppendix-
|
|
6
|
-
import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../../orderNonce-
|
|
7
|
-
import { t as getDefaultRecvTime } from "../../recvTime-
|
|
1
|
+
import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../../appendixTwapValue-CZCE2qQo.cjs";
|
|
2
|
+
import { t as bitMaskValue } from "../../bitMaskValue-2s-H6pY1.cjs";
|
|
3
|
+
import { t as packOrderAppendix } from "../../packOrderAppendix-DyfvlAmI.cjs";
|
|
4
|
+
import { t as PackedOrderAppendixBits } from "../../types-6WRBoXvb.cjs";
|
|
5
|
+
import { t as unpackOrderAppendix } from "../../unpackOrderAppendix-CwxSxPOH.cjs";
|
|
6
|
+
import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../../orderNonce-UUMaxlBA.cjs";
|
|
7
|
+
import { t as getDefaultRecvTime } from "../../recvTime-CGPFJaVg.cjs";
|
|
8
8
|
export { PackedOrderAppendixBits, bitMaskValue, getDefaultRecvTime, getOrderNonce, getRecvTimeFromOrderNonce, packOrderAppendix, packTwapOrderAppendixValue, unpackOrderAppendix, unpackTwapOrderAppendixValue };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../../appendixTwapValue-
|
|
2
|
-
import { t as bitMaskValue } from "../../bitMaskValue-
|
|
3
|
-
import { t as packOrderAppendix } from "../../packOrderAppendix-
|
|
4
|
-
import { t as PackedOrderAppendixBits } from "../../types-
|
|
5
|
-
import { t as unpackOrderAppendix } from "../../unpackOrderAppendix-
|
|
6
|
-
import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../../orderNonce-
|
|
7
|
-
import { t as getDefaultRecvTime } from "../../recvTime-
|
|
1
|
+
import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../../appendixTwapValue-hvjIuxYz.js";
|
|
2
|
+
import { t as bitMaskValue } from "../../bitMaskValue-DassPPW9.js";
|
|
3
|
+
import { t as packOrderAppendix } from "../../packOrderAppendix-BKmQ-8tV.js";
|
|
4
|
+
import { t as PackedOrderAppendixBits } from "../../types-Be-SKK2F.js";
|
|
5
|
+
import { t as unpackOrderAppendix } from "../../unpackOrderAppendix-Q_DrCNaG.js";
|
|
6
|
+
import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../../orderNonce-Qf0AYXz9.js";
|
|
7
|
+
import { t as getDefaultRecvTime } from "../../recvTime-C5rnDnyo.js";
|
|
8
8
|
export { PackedOrderAppendixBits, bitMaskValue, getDefaultRecvTime, getOrderNonce, getRecvTimeFromOrderNonce, packOrderAppendix, packTwapOrderAppendixValue, unpackOrderAppendix, unpackTwapOrderAppendixValue };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../../orderNonce-
|
|
1
|
+
import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../../orderNonce-UUMaxlBA.cjs";
|
|
2
2
|
export { getOrderNonce, getRecvTimeFromOrderNonce };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../../orderNonce-
|
|
1
|
+
import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../../orderNonce-Qf0AYXz9.js";
|
|
2
2
|
export { getOrderNonce, getRecvTimeFromOrderNonce };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as getDefaultRecvTime } from "../../recvTime-
|
|
1
|
+
import { t as getDefaultRecvTime } from "../../recvTime-CGPFJaVg.cjs";
|
|
2
2
|
export { getDefaultRecvTime };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as getDefaultRecvTime } from "../../recvTime-
|
|
1
|
+
import { t as getDefaultRecvTime } from "../../recvTime-C5rnDnyo.js";
|
|
2
2
|
export { getDefaultRecvTime };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as isSpotProduct, n as isPerpProduct, r as isSpotBalance, t as isPerpBalance } from "../productTypeFilter-
|
|
1
|
+
import { i as isSpotProduct, n as isPerpProduct, r as isSpotBalance, t as isPerpBalance } from "../productTypeFilter-DoGpp8hw.cjs";
|
|
2
2
|
export { isPerpBalance, isPerpProduct, isSpotBalance, isSpotProduct };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as isSpotProduct, n as isPerpProduct, r as isSpotBalance, t as isPerpBalance } from "../productTypeFilter-
|
|
1
|
+
import { i as isSpotProduct, n as isPerpProduct, r as isSpotBalance, t as isPerpBalance } from "../productTypeFilter-D0N0FKt4.js";
|
|
2
2
|
export { isPerpBalance, isPerpProduct, isSpotBalance, isSpotProduct };
|
package/dist/utils/time.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as millisToSeconds, r as nowInSeconds, t as TimeInSeconds } from "../time-
|
|
1
|
+
import { n as millisToSeconds, r as nowInSeconds, t as TimeInSeconds } from "../time-DQcdrUXm.cjs";
|
|
2
2
|
export { TimeInSeconds, millisToSeconds, nowInSeconds };
|
package/dist/utils/time.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as millisToSeconds, r as nowInSeconds, t as TimeInSeconds } from "../time-
|
|
1
|
+
import { n as millisToSeconds, r as nowInSeconds, t as TimeInSeconds } from "../time-qxKJesBm.js";
|
|
2
2
|
export { TimeInSeconds, millisToSeconds, nowInSeconds };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as toPrintableObject } from "../toPrintableObject-
|
|
1
|
+
import { t as toPrintableObject } from "../toPrintableObject-zlDajAQ0.cjs";
|
|
2
2
|
export { toPrintableObject };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as toPrintableObject } from "../toPrintableObject-
|
|
1
|
+
import { t as toPrintableObject } from "../toPrintableObject-8v8l_p0v.js";
|
|
2
2
|
export { toPrintableObject };
|
|
@@ -22,4 +22,4 @@ type WriteableContractInstance<TAbi extends Abi = Abi> = GetContractReturnType<T
|
|
|
22
22
|
type ContractInstance<TAbi extends Abi = Abi> = GetContractReturnType<TAbi, WalletClient | PublicClient>;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { WriteableContractInstance as i, ContractInstance as n, WalletClientWithAccount as r, AccountWithPrivateKey as t };
|
|
25
|
-
//# sourceMappingURL=viemTypes-
|
|
25
|
+
//# sourceMappingURL=viemTypes-ChJk9MYI.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viemTypes-
|
|
1
|
+
{"version":3,"file":"viemTypes-ChJk9MYI.d.ts","names":[],"sources":["../src/types/src/types/viemTypes.ts"],"mappings":";;;;;AAcA;UAAiB,qBAAA;EACf,OAAA,EAAS,OAAO;EAChB,UAAA;AAAA;;;;KAMU,uBAAA,GAA0B,YAAA,CACpC,SAAA,EACA,KAAA,EACA,OAAA,EACA,SAAA;AAJF;;;AAAA,KAUY,yBAAA,cAAuC,GAAA,GAAM,GAAA,IACvD,qBAAA,CAAsB,IAAA,EAAM,uBAAA;;;;KAKlB,gBAAA,cAA8B,GAAA,GAAM,GAAA,IAAO,qBAAA,CACrD,IAAA,EACA,YAAA,GAAe,YAAA"}
|
|
@@ -22,4 +22,4 @@ type WriteableContractInstance<TAbi extends Abi = Abi> = GetContractReturnType<T
|
|
|
22
22
|
type ContractInstance<TAbi extends Abi = Abi> = GetContractReturnType<TAbi, WalletClient | PublicClient>;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { WriteableContractInstance as i, ContractInstance as n, WalletClientWithAccount as r, AccountWithPrivateKey as t };
|
|
25
|
-
//# sourceMappingURL=viemTypes-
|
|
25
|
+
//# sourceMappingURL=viemTypes-DrxAdyOl.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"viemTypes-
|
|
1
|
+
{"version":3,"file":"viemTypes-DrxAdyOl.d.cts","names":[],"sources":["../src/types/src/types/viemTypes.ts"],"mappings":";;;;;AAcA;UAAiB,qBAAA;EACf,OAAA,EAAS,OAAO;EAChB,UAAA;AAAA;;;;KAMU,uBAAA,GAA0B,YAAA,CACpC,SAAA,EACA,KAAA,EACA,OAAA,EACA,SAAA;AAJF;;;AAAA,KAUY,yBAAA,cAAuC,GAAA,GAAM,GAAA,IACvD,qBAAA,CAAsB,IAAA,EAAM,uBAAA;;;;KAKlB,gBAAA,cAA8B,GAAA,GAAM,GAAA,IAAO,qBAAA,CACrD,IAAA,EACA,YAAA,GAAe,YAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nadohq/shared",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.29.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"description": "Shared utilities, types, and contract helpers for Nado SDK",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"bignumber.js": "11.1.1",
|
|
53
53
|
"viem": "2.52.0"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "cb15bfd6a018f18a335cb8e7e755d1533767dcd4"
|
|
56
56
|
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Common failure-envelope shape shared by every Nado backend service (engine, indexer, trigger,
|
|
3
|
+
* mobile). Each service declares its own concrete envelope type with a service-specific
|
|
4
|
+
* `request_type` tag (see `EngineServerExecuteFailureResult`, `IndexerServerFailureResponse`,
|
|
5
|
+
* `MobileServerFailureResponse`, etc.); those are all structurally compatible with this base.
|
|
6
|
+
*
|
|
7
|
+
* `request_type` is optional because the engine and trigger `/query` failure envelopes do not echo
|
|
8
|
+
* a request type — only `/execute` failures do (see {@link BaseServerFailureError.requestType}).
|
|
9
|
+
*/
|
|
10
|
+
export interface BaseServerFailureResponse {
|
|
11
|
+
status: 'failure';
|
|
12
|
+
error: string;
|
|
13
|
+
error_code: number;
|
|
14
|
+
request_type?: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Abstract base for the per-service `*ServerFailureError` classes (engine, indexer, trigger,
|
|
19
|
+
* mobile). It is `abstract` to signal that it is a base class only and is never instantiated
|
|
20
|
+
* directly — each service throws its own concrete subclass.
|
|
21
|
+
*
|
|
22
|
+
* The base centralizes the boilerplate shared by all four service error classes: the
|
|
23
|
+
* `${error_code}: ${error}` message, the {@link errorCode} and {@link requestType} accessors, and
|
|
24
|
+
* the {@link responseData} envelope. Subclasses re-declare {@link responseData} (and, where
|
|
25
|
+
* applicable, {@link requestType}) with their service-specific narrow types.
|
|
26
|
+
*/
|
|
27
|
+
export abstract class BaseServerFailureError extends Error {
|
|
28
|
+
/**
|
|
29
|
+
* Numeric backend error code. Compare against the service's `*_ERROR_CODES` map (e.g.
|
|
30
|
+
* {@link ENGINE_ERROR_CODES}, `MOBILE_ERROR_CODES`); shared cross-service codes live in
|
|
31
|
+
* {@link NADO_ERROR_CODES}.
|
|
32
|
+
*/
|
|
33
|
+
readonly errorCode: number;
|
|
34
|
+
/**
|
|
35
|
+
* The request type that failed, e.g. `execute_place_order`, when echoed on the failure
|
|
36
|
+
* envelope; `undefined` when the envelope does not carry a `request_type` (the engine and
|
|
37
|
+
* trigger `/query` failure envelopes omit it — see {@link BaseServerFailureResponse}).
|
|
38
|
+
*/
|
|
39
|
+
readonly requestType: string | undefined;
|
|
40
|
+
|
|
41
|
+
protected constructor(
|
|
42
|
+
readonly responseData: BaseServerFailureResponse,
|
|
43
|
+
name: string,
|
|
44
|
+
) {
|
|
45
|
+
super(`${responseData.error_code}: ${responseData.error}`);
|
|
46
|
+
this.name = name;
|
|
47
|
+
this.errorCode = responseData.error_code;
|
|
48
|
+
this.requestType =
|
|
49
|
+
'request_type' in responseData ? responseData.request_type : undefined;
|
|
50
|
+
}
|
|
51
|
+
}
|