@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
|
@@ -10,4 +10,4 @@ declare function toPrintableObject(obj: BigNumber | bigint, seen?: WeakSet<objec
|
|
|
10
10
|
declare function toPrintableObject(obj: unknown, seen?: WeakSet<object>): object;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { toPrintableObject as t };
|
|
13
|
-
//# sourceMappingURL=toPrintableObject-
|
|
13
|
+
//# sourceMappingURL=toPrintableObject-8v8l_p0v.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toPrintableObject-
|
|
1
|
+
{"version":3,"file":"toPrintableObject-8v8l_p0v.d.ts","names":[],"sources":["../src/utils/src/utils/toPrintableObject.ts"],"mappings":";;;;;AAMA;;iBAAgB,iBAAA,CACd,GAAA,oBACA,IAAA,GAAO,OAAO;AAAA,iBAEA,iBAAA,CACd,GAAA,EAAK,SAAA,WACL,IAAA,GAAO,OAAO;AAAA,iBAEA,iBAAA,CAAkB,GAAA,WAAc,IAAA,GAAO,OAAO"}
|
|
@@ -10,4 +10,4 @@ declare function toPrintableObject(obj: BigNumber | bigint, seen?: WeakSet<objec
|
|
|
10
10
|
declare function toPrintableObject(obj: unknown, seen?: WeakSet<object>): object;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { toPrintableObject as t };
|
|
13
|
-
//# sourceMappingURL=toPrintableObject-
|
|
13
|
+
//# sourceMappingURL=toPrintableObject-zlDajAQ0.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toPrintableObject-
|
|
1
|
+
{"version":3,"file":"toPrintableObject-zlDajAQ0.d.cts","names":[],"sources":["../src/utils/src/utils/toPrintableObject.ts"],"mappings":";;;;;AAMA;;iBAAgB,iBAAA,CACd,GAAA,oBACA,IAAA,GAAO,OAAO;AAAA,iBAEA,iBAAA,CACd,GAAA,EAAK,SAAA,WACL,IAAA,GAAO,OAAO;AAAA,iBAEA,iBAAA,CAAkB,GAAA,WAAc,IAAA,GAAO,OAAO"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
//#region src/types/BaseServerFailureError.ts
|
|
3
|
+
/**
|
|
4
|
+
* Abstract base for the per-service `*ServerFailureError` classes (engine, indexer, trigger,
|
|
5
|
+
* mobile). It is `abstract` to signal that it is a base class only and is never instantiated
|
|
6
|
+
* directly — each service throws its own concrete subclass.
|
|
7
|
+
*
|
|
8
|
+
* The base centralizes the boilerplate shared by all four service error classes: the
|
|
9
|
+
* `${error_code}: ${error}` message, the {@link errorCode} and {@link requestType} accessors, and
|
|
10
|
+
* the {@link responseData} envelope. Subclasses re-declare {@link responseData} (and, where
|
|
11
|
+
* applicable, {@link requestType}) with their service-specific narrow types.
|
|
12
|
+
*/
|
|
13
|
+
var BaseServerFailureError = class extends Error {
|
|
14
|
+
constructor(responseData, name) {
|
|
15
|
+
super(`${responseData.error_code}: ${responseData.error}`);
|
|
16
|
+
this.responseData = responseData;
|
|
17
|
+
this.name = name;
|
|
18
|
+
this.errorCode = responseData.error_code;
|
|
19
|
+
this.requestType = "request_type" in responseData ? responseData.request_type : void 0;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
//#endregion
|
|
23
|
+
exports.BaseServerFailureError = BaseServerFailureError;
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=BaseServerFailureError.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseServerFailureError.cjs","names":[],"sources":["../../src/types/BaseServerFailureError.ts"],"sourcesContent":["/**\n * Common failure-envelope shape shared by every Nado backend service (engine, indexer, trigger,\n * mobile). Each service declares its own concrete envelope type with a service-specific\n * `request_type` tag (see `EngineServerExecuteFailureResult`, `IndexerServerFailureResponse`,\n * `MobileServerFailureResponse`, etc.); those are all structurally compatible with this base.\n *\n * `request_type` is optional because the engine and trigger `/query` failure envelopes do not echo\n * a request type — only `/execute` failures do (see {@link BaseServerFailureError.requestType}).\n */\nexport interface BaseServerFailureResponse {\n status: 'failure';\n error: string;\n error_code: number;\n request_type?: string;\n}\n\n/**\n * Abstract base for the per-service `*ServerFailureError` classes (engine, indexer, trigger,\n * mobile). It is `abstract` to signal that it is a base class only and is never instantiated\n * directly — each service throws its own concrete subclass.\n *\n * The base centralizes the boilerplate shared by all four service error classes: the\n * `${error_code}: ${error}` message, the {@link errorCode} and {@link requestType} accessors, and\n * the {@link responseData} envelope. Subclasses re-declare {@link responseData} (and, where\n * applicable, {@link requestType}) with their service-specific narrow types.\n */\nexport abstract class BaseServerFailureError extends Error {\n /**\n * Numeric backend error code. Compare against the service's `*_ERROR_CODES` map (e.g.\n * {@link ENGINE_ERROR_CODES}, `MOBILE_ERROR_CODES`); shared cross-service codes live in\n * {@link NADO_ERROR_CODES}.\n */\n readonly errorCode: number;\n /**\n * The request type that failed, e.g. `execute_place_order`, when echoed on the failure\n * envelope; `undefined` when the envelope does not carry a `request_type` (the engine and\n * trigger `/query` failure envelopes omit it — see {@link BaseServerFailureResponse}).\n */\n readonly requestType: string | undefined;\n\n protected constructor(\n readonly responseData: BaseServerFailureResponse,\n name: string,\n ) {\n super(`${responseData.error_code}: ${responseData.error}`);\n this.name = name;\n this.errorCode = responseData.error_code;\n this.requestType =\n 'request_type' in responseData ? responseData.request_type : undefined;\n }\n}\n"],"mappings":";;;;;;;;;;;;AA0BA,IAAsB,yBAAtB,cAAqD,MAAM;CAczD,YACE,cACA,MACA;EACA,MAAM,GAAG,aAAa,WAAW,IAAI,aAAa,OAAO;EAHhD,KAAA,eAAA;EAIT,KAAK,OAAO;EACZ,KAAK,YAAY,aAAa;EAC9B,KAAK,cACH,kBAAkB,eAAe,aAAa,eAAe,KAAA;CACjE;AACF"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region src/types/BaseServerFailureError.ts
|
|
2
|
+
/**
|
|
3
|
+
* Abstract base for the per-service `*ServerFailureError` classes (engine, indexer, trigger,
|
|
4
|
+
* mobile). It is `abstract` to signal that it is a base class only and is never instantiated
|
|
5
|
+
* directly — each service throws its own concrete subclass.
|
|
6
|
+
*
|
|
7
|
+
* The base centralizes the boilerplate shared by all four service error classes: the
|
|
8
|
+
* `${error_code}: ${error}` message, the {@link errorCode} and {@link requestType} accessors, and
|
|
9
|
+
* the {@link responseData} envelope. Subclasses re-declare {@link responseData} (and, where
|
|
10
|
+
* applicable, {@link requestType}) with their service-specific narrow types.
|
|
11
|
+
*/
|
|
12
|
+
var BaseServerFailureError = class extends Error {
|
|
13
|
+
constructor(responseData, name) {
|
|
14
|
+
super(`${responseData.error_code}: ${responseData.error}`);
|
|
15
|
+
this.responseData = responseData;
|
|
16
|
+
this.name = name;
|
|
17
|
+
this.errorCode = responseData.error_code;
|
|
18
|
+
this.requestType = "request_type" in responseData ? responseData.request_type : void 0;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
//#endregion
|
|
22
|
+
export { BaseServerFailureError };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=BaseServerFailureError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseServerFailureError.js","names":[],"sources":["../../src/types/BaseServerFailureError.ts"],"sourcesContent":["/**\n * Common failure-envelope shape shared by every Nado backend service (engine, indexer, trigger,\n * mobile). Each service declares its own concrete envelope type with a service-specific\n * `request_type` tag (see `EngineServerExecuteFailureResult`, `IndexerServerFailureResponse`,\n * `MobileServerFailureResponse`, etc.); those are all structurally compatible with this base.\n *\n * `request_type` is optional because the engine and trigger `/query` failure envelopes do not echo\n * a request type — only `/execute` failures do (see {@link BaseServerFailureError.requestType}).\n */\nexport interface BaseServerFailureResponse {\n status: 'failure';\n error: string;\n error_code: number;\n request_type?: string;\n}\n\n/**\n * Abstract base for the per-service `*ServerFailureError` classes (engine, indexer, trigger,\n * mobile). It is `abstract` to signal that it is a base class only and is never instantiated\n * directly — each service throws its own concrete subclass.\n *\n * The base centralizes the boilerplate shared by all four service error classes: the\n * `${error_code}: ${error}` message, the {@link errorCode} and {@link requestType} accessors, and\n * the {@link responseData} envelope. Subclasses re-declare {@link responseData} (and, where\n * applicable, {@link requestType}) with their service-specific narrow types.\n */\nexport abstract class BaseServerFailureError extends Error {\n /**\n * Numeric backend error code. Compare against the service's `*_ERROR_CODES` map (e.g.\n * {@link ENGINE_ERROR_CODES}, `MOBILE_ERROR_CODES`); shared cross-service codes live in\n * {@link NADO_ERROR_CODES}.\n */\n readonly errorCode: number;\n /**\n * The request type that failed, e.g. `execute_place_order`, when echoed on the failure\n * envelope; `undefined` when the envelope does not carry a `request_type` (the engine and\n * trigger `/query` failure envelopes omit it — see {@link BaseServerFailureResponse}).\n */\n readonly requestType: string | undefined;\n\n protected constructor(\n readonly responseData: BaseServerFailureResponse,\n name: string,\n ) {\n super(`${responseData.error_code}: ${responseData.error}`);\n this.name = name;\n this.errorCode = responseData.error_code;\n this.requestType =\n 'request_type' in responseData ? responseData.request_type : undefined;\n }\n}\n"],"mappings":";;;;;;;;;;;AA0BA,IAAsB,yBAAtB,cAAqD,MAAM;CAczD,YACE,cACA,MACA;EACA,MAAM,GAAG,aAAa,WAAW,IAAI,aAAa,OAAO;EAHhD,KAAA,eAAA;EAIT,KAAK,OAAO;EACZ,KAAK,YAAY,aAAa;EAC9B,KAAK,cACH,kBAAkB,eAAe,aAAa,eAAe,KAAA;CACjE;AACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TESTNET_CHAIN_ENVS, i as MAINNET_CHAIN_ENVS, n as ChainEnv, r as LOCAL_CHAIN_ENVS, t as ALL_CHAIN_ENVS } from "../ChainEnv-
|
|
1
|
+
import { a as TESTNET_CHAIN_ENVS, i as MAINNET_CHAIN_ENVS, n as ChainEnv, r as LOCAL_CHAIN_ENVS, t as ALL_CHAIN_ENVS } from "../ChainEnv-BiybryWq.cjs";
|
|
2
2
|
export { ALL_CHAIN_ENVS, ChainEnv, LOCAL_CHAIN_ENVS, MAINNET_CHAIN_ENVS, TESTNET_CHAIN_ENVS };
|
package/dist/types/ChainEnv.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TESTNET_CHAIN_ENVS, i as MAINNET_CHAIN_ENVS, n as ChainEnv, r as LOCAL_CHAIN_ENVS, t as ALL_CHAIN_ENVS } from "../ChainEnv-
|
|
1
|
+
import { a as TESTNET_CHAIN_ENVS, i as MAINNET_CHAIN_ENVS, n as ChainEnv, r as LOCAL_CHAIN_ENVS, t as ALL_CHAIN_ENVS } from "../ChainEnv-CuhUM7XM.js";
|
|
2
2
|
export { ALL_CHAIN_ENVS, ChainEnv, LOCAL_CHAIN_ENVS, MAINNET_CHAIN_ENVS, TESTNET_CHAIN_ENVS };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as OrderExecutionType } from "../OrderExecutionType-
|
|
1
|
+
import { t as OrderExecutionType } from "../OrderExecutionType-B-igYC1p.cjs";
|
|
2
2
|
export { OrderExecutionType };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as OrderExecutionType } from "../OrderExecutionType-
|
|
1
|
+
import { t as OrderExecutionType } from "../OrderExecutionType-DhfG5qLe.js";
|
|
2
2
|
export { OrderExecutionType };
|
package/dist/types/bytes.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Bytes } from "../bytes-
|
|
1
|
+
import { t as Bytes } from "../bytes-GErzNSza.cjs";
|
|
2
2
|
export { Bytes };
|
package/dist/types/bytes.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Bytes } from "../bytes-
|
|
1
|
+
import { t as Bytes } from "../bytes-DQ2CQ0dC.js";
|
|
2
2
|
export { Bytes };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
//#region src/types/errorCodes.ts
|
|
3
|
+
/**
|
|
4
|
+
* Common error codes shared across all Nado backend services (engine, indexer, trigger, mobile).
|
|
5
|
+
*
|
|
6
|
+
* These codes come from the backend's `ResponseError` enum (see `nado-utils/src/error.rs`) and
|
|
7
|
+
* are reused by every service's `*_ERROR_CODES` map (e.g. {@link ENGINE_ERROR_CODES},
|
|
8
|
+
* {@link TRIGGER_ERROR_CODES}, {@link INDEXER_ERROR_CODES}, `MOBILE_ERROR_CODES`). Service-specific
|
|
9
|
+
* codes live in their own ranges and are enumerated in each service's package — see those maps
|
|
10
|
+
* for the full per-service list.
|
|
11
|
+
*
|
|
12
|
+
* The general errors (1xxx range) apply to all services. The `INVALID_SIGNER` (2028) code is
|
|
13
|
+
* technically in the query/execute range but is returned by every signed service, so it is
|
|
14
|
+
* promoted here. The "other" errors (4xxx range) and `INTERNAL_ERROR` (5000) are also
|
|
15
|
+
* cross-service.
|
|
16
|
+
*/
|
|
17
|
+
const NADO_ERROR_CODES = {
|
|
18
|
+
/** Rate limit exceeded; returns HTTP 429. */
|
|
19
|
+
RATE_LIMIT: 1e3,
|
|
20
|
+
/** Address is blacklisted for ToS violation. */
|
|
21
|
+
BLACKLISTED_ADDRESS: 1001,
|
|
22
|
+
/** Access blocked from this geographic location. */
|
|
23
|
+
BLOCKED_LOCATION: 1002,
|
|
24
|
+
/** Access blocked from this geographic subdivision. */
|
|
25
|
+
BLOCKED_SUBDIVISION: 1003,
|
|
26
|
+
/** Service is temporarily unavailable due to scheduled maintenance. */
|
|
27
|
+
MAINTENANCE: 1004,
|
|
28
|
+
/** Gateway sent an invalid request (edge query rejection). */
|
|
29
|
+
GATEWAY_INVALID_REQUEST: 1005,
|
|
30
|
+
/** Service is temporarily unavailable; returns HTTP 503. */
|
|
31
|
+
SERVICE_UNAVAILABLE: 1006,
|
|
32
|
+
/** Signature does not match the sender or linked signer. */
|
|
33
|
+
INVALID_SIGNER: 2028,
|
|
34
|
+
/** Perp tick formatting: avg_price_diffs/product_ids length mismatch. */
|
|
35
|
+
PERP_TICK_FORMATTING: 4e3,
|
|
36
|
+
/** Feature/route is not yet implemented; mobile returns HTTP 501. */
|
|
37
|
+
NOT_IMPLEMENTED: 4001,
|
|
38
|
+
/** MintNLP on perps is temporarily disabled. */
|
|
39
|
+
TEMPORARILY_DISABLED_MINT_LP: 4002,
|
|
40
|
+
/** EVM contract call reverted. */
|
|
41
|
+
EVM_REVERT: 4003,
|
|
42
|
+
/** Protocol risk withdrawal limit exceeded. */
|
|
43
|
+
WITHDRAW_RISK: 4004,
|
|
44
|
+
/** Unhandled internal server error. */
|
|
45
|
+
INTERNAL_ERROR: 5e3
|
|
46
|
+
};
|
|
47
|
+
//#endregion
|
|
48
|
+
exports.NADO_ERROR_CODES = NADO_ERROR_CODES;
|
|
49
|
+
|
|
50
|
+
//# sourceMappingURL=errorCodes.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errorCodes.cjs","names":[],"sources":["../../src/types/errorCodes.ts"],"sourcesContent":["/**\n * Common error codes shared across all Nado backend services (engine, indexer, trigger, mobile).\n *\n * These codes come from the backend's `ResponseError` enum (see `nado-utils/src/error.rs`) and\n * are reused by every service's `*_ERROR_CODES` map (e.g. {@link ENGINE_ERROR_CODES},\n * {@link TRIGGER_ERROR_CODES}, {@link INDEXER_ERROR_CODES}, `MOBILE_ERROR_CODES`). Service-specific\n * codes live in their own ranges and are enumerated in each service's package — see those maps\n * for the full per-service list.\n *\n * The general errors (1xxx range) apply to all services. The `INVALID_SIGNER` (2028) code is\n * technically in the query/execute range but is returned by every signed service, so it is\n * promoted here. The \"other\" errors (4xxx range) and `INTERNAL_ERROR` (5000) are also\n * cross-service.\n */\nexport const NADO_ERROR_CODES = {\n // *** General errors (1xxx) — returned by any service ***\n /** Rate limit exceeded; returns HTTP 429. */\n RATE_LIMIT: 1000,\n /** Address is blacklisted for ToS violation. */\n BLACKLISTED_ADDRESS: 1001,\n /** Access blocked from this geographic location. */\n BLOCKED_LOCATION: 1002,\n /** Access blocked from this geographic subdivision. */\n BLOCKED_SUBDIVISION: 1003,\n /** Service is temporarily unavailable due to scheduled maintenance. */\n MAINTENANCE: 1004,\n /** Gateway sent an invalid request (edge query rejection). */\n GATEWAY_INVALID_REQUEST: 1005,\n /** Service is temporarily unavailable; returns HTTP 503. */\n SERVICE_UNAVAILABLE: 1006,\n\n // *** Shared query/execute error (2xxx) — returned by every signed service ***\n /** Signature does not match the sender or linked signer. */\n INVALID_SIGNER: 2028,\n\n // *** Other errors (4xxx) — cross-service ***\n /** Perp tick formatting: avg_price_diffs/product_ids length mismatch. */\n PERP_TICK_FORMATTING: 4000,\n /** Feature/route is not yet implemented; mobile returns HTTP 501. */\n NOT_IMPLEMENTED: 4001,\n /** MintNLP on perps is temporarily disabled. */\n TEMPORARILY_DISABLED_MINT_LP: 4002,\n /** EVM contract call reverted. */\n EVM_REVERT: 4003,\n /** Protocol risk withdrawal limit exceeded. */\n WITHDRAW_RISK: 4004,\n\n // *** Internal error (5xxx) — cross-service catch-all ***\n /** Unhandled internal server error. */\n INTERNAL_ERROR: 5000,\n} as const;\n\n/**\n * Union of all shared cross-service Nado error codes.\n *\n * Service-specific error code maps extend this set with their own ranges — see\n * {@link ENGINE_ERROR_CODES}, {@link TRIGGER_ERROR_CODES}, and {@link INDEXER_ERROR_CODES}.\n */\nexport type NadoErrorCode =\n (typeof NADO_ERROR_CODES)[keyof typeof NADO_ERROR_CODES];\n"],"mappings":";;;;;;;;;;;;;;;;AAcA,MAAa,mBAAmB;;CAG9B,YAAY;;CAEZ,qBAAqB;;CAErB,kBAAkB;;CAElB,qBAAqB;;CAErB,aAAa;;CAEb,yBAAyB;;CAEzB,qBAAqB;;CAIrB,gBAAgB;;CAIhB,sBAAsB;;CAEtB,iBAAiB;;CAEjB,8BAA8B;;CAE9B,YAAY;;CAEZ,eAAe;;CAIf,gBAAgB;AAClB"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
//#region src/types/errorCodes.ts
|
|
2
|
+
/**
|
|
3
|
+
* Common error codes shared across all Nado backend services (engine, indexer, trigger, mobile).
|
|
4
|
+
*
|
|
5
|
+
* These codes come from the backend's `ResponseError` enum (see `nado-utils/src/error.rs`) and
|
|
6
|
+
* are reused by every service's `*_ERROR_CODES` map (e.g. {@link ENGINE_ERROR_CODES},
|
|
7
|
+
* {@link TRIGGER_ERROR_CODES}, {@link INDEXER_ERROR_CODES}, `MOBILE_ERROR_CODES`). Service-specific
|
|
8
|
+
* codes live in their own ranges and are enumerated in each service's package — see those maps
|
|
9
|
+
* for the full per-service list.
|
|
10
|
+
*
|
|
11
|
+
* The general errors (1xxx range) apply to all services. The `INVALID_SIGNER` (2028) code is
|
|
12
|
+
* technically in the query/execute range but is returned by every signed service, so it is
|
|
13
|
+
* promoted here. The "other" errors (4xxx range) and `INTERNAL_ERROR` (5000) are also
|
|
14
|
+
* cross-service.
|
|
15
|
+
*/
|
|
16
|
+
const NADO_ERROR_CODES = {
|
|
17
|
+
/** Rate limit exceeded; returns HTTP 429. */
|
|
18
|
+
RATE_LIMIT: 1e3,
|
|
19
|
+
/** Address is blacklisted for ToS violation. */
|
|
20
|
+
BLACKLISTED_ADDRESS: 1001,
|
|
21
|
+
/** Access blocked from this geographic location. */
|
|
22
|
+
BLOCKED_LOCATION: 1002,
|
|
23
|
+
/** Access blocked from this geographic subdivision. */
|
|
24
|
+
BLOCKED_SUBDIVISION: 1003,
|
|
25
|
+
/** Service is temporarily unavailable due to scheduled maintenance. */
|
|
26
|
+
MAINTENANCE: 1004,
|
|
27
|
+
/** Gateway sent an invalid request (edge query rejection). */
|
|
28
|
+
GATEWAY_INVALID_REQUEST: 1005,
|
|
29
|
+
/** Service is temporarily unavailable; returns HTTP 503. */
|
|
30
|
+
SERVICE_UNAVAILABLE: 1006,
|
|
31
|
+
/** Signature does not match the sender or linked signer. */
|
|
32
|
+
INVALID_SIGNER: 2028,
|
|
33
|
+
/** Perp tick formatting: avg_price_diffs/product_ids length mismatch. */
|
|
34
|
+
PERP_TICK_FORMATTING: 4e3,
|
|
35
|
+
/** Feature/route is not yet implemented; mobile returns HTTP 501. */
|
|
36
|
+
NOT_IMPLEMENTED: 4001,
|
|
37
|
+
/** MintNLP on perps is temporarily disabled. */
|
|
38
|
+
TEMPORARILY_DISABLED_MINT_LP: 4002,
|
|
39
|
+
/** EVM contract call reverted. */
|
|
40
|
+
EVM_REVERT: 4003,
|
|
41
|
+
/** Protocol risk withdrawal limit exceeded. */
|
|
42
|
+
WITHDRAW_RISK: 4004,
|
|
43
|
+
/** Unhandled internal server error. */
|
|
44
|
+
INTERNAL_ERROR: 5e3
|
|
45
|
+
};
|
|
46
|
+
//#endregion
|
|
47
|
+
export { NADO_ERROR_CODES };
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=errorCodes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errorCodes.js","names":[],"sources":["../../src/types/errorCodes.ts"],"sourcesContent":["/**\n * Common error codes shared across all Nado backend services (engine, indexer, trigger, mobile).\n *\n * These codes come from the backend's `ResponseError` enum (see `nado-utils/src/error.rs`) and\n * are reused by every service's `*_ERROR_CODES` map (e.g. {@link ENGINE_ERROR_CODES},\n * {@link TRIGGER_ERROR_CODES}, {@link INDEXER_ERROR_CODES}, `MOBILE_ERROR_CODES`). Service-specific\n * codes live in their own ranges and are enumerated in each service's package — see those maps\n * for the full per-service list.\n *\n * The general errors (1xxx range) apply to all services. The `INVALID_SIGNER` (2028) code is\n * technically in the query/execute range but is returned by every signed service, so it is\n * promoted here. The \"other\" errors (4xxx range) and `INTERNAL_ERROR` (5000) are also\n * cross-service.\n */\nexport const NADO_ERROR_CODES = {\n // *** General errors (1xxx) — returned by any service ***\n /** Rate limit exceeded; returns HTTP 429. */\n RATE_LIMIT: 1000,\n /** Address is blacklisted for ToS violation. */\n BLACKLISTED_ADDRESS: 1001,\n /** Access blocked from this geographic location. */\n BLOCKED_LOCATION: 1002,\n /** Access blocked from this geographic subdivision. */\n BLOCKED_SUBDIVISION: 1003,\n /** Service is temporarily unavailable due to scheduled maintenance. */\n MAINTENANCE: 1004,\n /** Gateway sent an invalid request (edge query rejection). */\n GATEWAY_INVALID_REQUEST: 1005,\n /** Service is temporarily unavailable; returns HTTP 503. */\n SERVICE_UNAVAILABLE: 1006,\n\n // *** Shared query/execute error (2xxx) — returned by every signed service ***\n /** Signature does not match the sender or linked signer. */\n INVALID_SIGNER: 2028,\n\n // *** Other errors (4xxx) — cross-service ***\n /** Perp tick formatting: avg_price_diffs/product_ids length mismatch. */\n PERP_TICK_FORMATTING: 4000,\n /** Feature/route is not yet implemented; mobile returns HTTP 501. */\n NOT_IMPLEMENTED: 4001,\n /** MintNLP on perps is temporarily disabled. */\n TEMPORARILY_DISABLED_MINT_LP: 4002,\n /** EVM contract call reverted. */\n EVM_REVERT: 4003,\n /** Protocol risk withdrawal limit exceeded. */\n WITHDRAW_RISK: 4004,\n\n // *** Internal error (5xxx) — cross-service catch-all ***\n /** Unhandled internal server error. */\n INTERNAL_ERROR: 5000,\n} as const;\n\n/**\n * Union of all shared cross-service Nado error codes.\n *\n * Service-specific error code maps extend this set with their own ranges — see\n * {@link ENGINE_ERROR_CODES}, {@link TRIGGER_ERROR_CODES}, and {@link INDEXER_ERROR_CODES}.\n */\nexport type NadoErrorCode =\n (typeof NADO_ERROR_CODES)[keyof typeof NADO_ERROR_CODES];\n"],"mappings":";;;;;;;;;;;;;;;AAcA,MAAa,mBAAmB;;CAG9B,YAAY;;CAEZ,qBAAqB;;CAErB,kBAAkB;;CAElB,qBAAqB;;CAErB,aAAa;;CAEb,yBAAyB;;CAEzB,qBAAqB;;CAIrB,gBAAgB;;CAIhB,sBAAsB;;CAEtB,iBAAiB;;CAEjB,8BAA8B;;CAE9B,YAAY;;CAEZ,eAAe;;CAIf,gBAAgB;AAClB"}
|
package/dist/types/index.cjs
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_types_productTypes = require("./productTypes.cjs");
|
|
3
|
+
const require_types_BaseServerFailureError = require("./BaseServerFailureError.cjs");
|
|
3
4
|
const require_types_ChainEnv = require("./ChainEnv.cjs");
|
|
5
|
+
const require_types_errorCodes = require("./errorCodes.cjs");
|
|
4
6
|
exports.ALL_CHAIN_ENVS = require_types_ChainEnv.ALL_CHAIN_ENVS;
|
|
7
|
+
exports.BaseServerFailureError = require_types_BaseServerFailureError.BaseServerFailureError;
|
|
5
8
|
exports.LOCAL_CHAIN_ENVS = require_types_ChainEnv.LOCAL_CHAIN_ENVS;
|
|
6
9
|
exports.MAINNET_CHAIN_ENVS = require_types_ChainEnv.MAINNET_CHAIN_ENVS;
|
|
10
|
+
exports.NADO_ERROR_CODES = require_types_errorCodes.NADO_ERROR_CODES;
|
|
7
11
|
exports.ProductEngineType = require_types_productTypes.ProductEngineType;
|
|
8
12
|
exports.TESTNET_CHAIN_ENVS = require_types_ChainEnv.TESTNET_CHAIN_ENVS;
|
|
9
13
|
exports.toProductEngineType = require_types_productTypes.toProductEngineType;
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { i as HealthType, n as HealthStatus, r as HealthStatusByType, t as HealthGroup } from "../healthTypes-rZq7PTC8.cjs";
|
|
2
2
|
import { a as toProductEngineType, i as SpotProduct, n as Product, r as ProductEngineType, t as PerpProduct } from "../productTypes-COwl-Svz.cjs";
|
|
3
3
|
import { a as PerpBalance, c as SpotBalanceWithProduct, i as BalanceWithProduct, n as BalanceHealthContributions, o as PerpBalanceWithProduct, r as BalanceSide, s as SpotBalance, t as Balance } from "../balanceTypes-DdDBwUwZ.cjs";
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
6
|
-
import { i as
|
|
7
|
-
import {
|
|
8
|
-
import { n as
|
|
9
|
-
import { t as
|
|
10
|
-
import {
|
|
11
|
-
import { t as
|
|
12
|
-
import { n as
|
|
13
|
-
|
|
4
|
+
import { n as BaseServerFailureResponse, t as BaseServerFailureError } from "../BaseServerFailureError-q0hQxZbH.cjs";
|
|
5
|
+
import { t as Bytes } from "../bytes-GErzNSza.cjs";
|
|
6
|
+
import { a as TESTNET_CHAIN_ENVS, i as MAINNET_CHAIN_ENVS, n as ChainEnv, r as LOCAL_CHAIN_ENVS, t as ALL_CHAIN_ENVS } from "../ChainEnv-BiybryWq.cjs";
|
|
7
|
+
import { n as NadoErrorCode, t as NADO_ERROR_CODES } from "../errorCodes-4V4XODmG.cjs";
|
|
8
|
+
import { i as SpotMarket, n as MarketWithProduct, r as PerpMarket, t as Market } from "../marketTypes-DRZEFgF4.cjs";
|
|
9
|
+
import { i as WriteableContractInstance, n as ContractInstance, r as WalletClientWithAccount, t as AccountWithPrivateKey } from "../viemTypes-DrxAdyOl.cjs";
|
|
10
|
+
import { n as WithContract, r as WithContracts, t as NadoContracts } from "../nadoContractTypes-8MNIkohy.cjs";
|
|
11
|
+
import { t as OrderExecutionType } from "../OrderExecutionType-B-igYC1p.cjs";
|
|
12
|
+
import { a as OrderAppendixTwapFields, i as OrderAppendixTriggerType, n as OrderAppendixBuilderFields, r as OrderAppendixIsolatedFields, t as OrderAppendix } from "../orderAppendixTypes-DIeaFc_g.cjs";
|
|
13
|
+
import { t as SignatureParams } from "../signatureTypes-DLj7Jdxv.cjs";
|
|
14
|
+
import { n as SubaccountBytes32, r as SubaccountNameBytes12, t as Subaccount } from "../subaccountTypes-BZhlUXiR.cjs";
|
|
15
|
+
export { ALL_CHAIN_ENVS, AccountWithPrivateKey, Balance, BalanceHealthContributions, BalanceSide, BalanceWithProduct, BaseServerFailureError, BaseServerFailureResponse, Bytes, ChainEnv, ContractInstance, HealthGroup, HealthStatus, HealthStatusByType, HealthType, LOCAL_CHAIN_ENVS, MAINNET_CHAIN_ENVS, Market, MarketWithProduct, NADO_ERROR_CODES, NadoContracts, NadoErrorCode, OrderAppendix, OrderAppendixBuilderFields, OrderAppendixIsolatedFields, OrderAppendixTriggerType, OrderAppendixTwapFields, OrderExecutionType, PerpBalance, PerpBalanceWithProduct, PerpMarket, PerpProduct, Product, ProductEngineType, SignatureParams, SpotBalance, SpotBalanceWithProduct, SpotMarket, SpotProduct, Subaccount, SubaccountBytes32, SubaccountNameBytes12, TESTNET_CHAIN_ENVS, WalletClientWithAccount, WithContract, WithContracts, WriteableContractInstance, toProductEngineType };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { i as HealthType, n as HealthStatus, r as HealthStatusByType, t as HealthGroup } from "../healthTypes-D_CkTy9b.js";
|
|
2
2
|
import { a as toProductEngineType, i as SpotProduct, n as Product, r as ProductEngineType, t as PerpProduct } from "../productTypes-B7T8OB24.js";
|
|
3
3
|
import { a as PerpBalance, c as SpotBalanceWithProduct, i as BalanceWithProduct, n as BalanceHealthContributions, o as PerpBalanceWithProduct, r as BalanceSide, s as SpotBalance, t as Balance } from "../balanceTypes-BLk1F6NY.js";
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
6
|
-
import { i as
|
|
7
|
-
import {
|
|
8
|
-
import { n as
|
|
9
|
-
import { t as
|
|
10
|
-
import {
|
|
11
|
-
import { t as
|
|
12
|
-
import { n as
|
|
13
|
-
|
|
4
|
+
import { n as BaseServerFailureResponse, t as BaseServerFailureError } from "../BaseServerFailureError-lKtEbaZM.js";
|
|
5
|
+
import { t as Bytes } from "../bytes-DQ2CQ0dC.js";
|
|
6
|
+
import { a as TESTNET_CHAIN_ENVS, i as MAINNET_CHAIN_ENVS, n as ChainEnv, r as LOCAL_CHAIN_ENVS, t as ALL_CHAIN_ENVS } from "../ChainEnv-CuhUM7XM.js";
|
|
7
|
+
import { n as NadoErrorCode, t as NADO_ERROR_CODES } from "../errorCodes-iVKkzL4K.js";
|
|
8
|
+
import { i as SpotMarket, n as MarketWithProduct, r as PerpMarket, t as Market } from "../marketTypes-B5PFCPzN.js";
|
|
9
|
+
import { i as WriteableContractInstance, n as ContractInstance, r as WalletClientWithAccount, t as AccountWithPrivateKey } from "../viemTypes-ChJk9MYI.js";
|
|
10
|
+
import { n as WithContract, r as WithContracts, t as NadoContracts } from "../nadoContractTypes-BX9lth68.js";
|
|
11
|
+
import { t as OrderExecutionType } from "../OrderExecutionType-DhfG5qLe.js";
|
|
12
|
+
import { a as OrderAppendixTwapFields, i as OrderAppendixTriggerType, n as OrderAppendixBuilderFields, r as OrderAppendixIsolatedFields, t as OrderAppendix } from "../orderAppendixTypes-DQU50ISh.js";
|
|
13
|
+
import { t as SignatureParams } from "../signatureTypes-CKnj4AM2.js";
|
|
14
|
+
import { n as SubaccountBytes32, r as SubaccountNameBytes12, t as Subaccount } from "../subaccountTypes-Drgy-wfh.js";
|
|
15
|
+
export { ALL_CHAIN_ENVS, AccountWithPrivateKey, Balance, BalanceHealthContributions, BalanceSide, BalanceWithProduct, BaseServerFailureError, BaseServerFailureResponse, Bytes, ChainEnv, ContractInstance, HealthGroup, HealthStatus, HealthStatusByType, HealthType, LOCAL_CHAIN_ENVS, MAINNET_CHAIN_ENVS, Market, MarketWithProduct, NADO_ERROR_CODES, NadoContracts, NadoErrorCode, OrderAppendix, OrderAppendixBuilderFields, OrderAppendixIsolatedFields, OrderAppendixTriggerType, OrderAppendixTwapFields, OrderExecutionType, PerpBalance, PerpBalanceWithProduct, PerpMarket, PerpProduct, Product, ProductEngineType, SignatureParams, SpotBalance, SpotBalanceWithProduct, SpotMarket, SpotProduct, Subaccount, SubaccountBytes32, SubaccountNameBytes12, TESTNET_CHAIN_ENVS, WalletClientWithAccount, WithContract, WithContracts, WriteableContractInstance, toProductEngineType };
|
package/dist/types/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { ProductEngineType, toProductEngineType } from "./productTypes.js";
|
|
2
|
+
import { BaseServerFailureError } from "./BaseServerFailureError.js";
|
|
2
3
|
import { ALL_CHAIN_ENVS, LOCAL_CHAIN_ENVS, MAINNET_CHAIN_ENVS, TESTNET_CHAIN_ENVS } from "./ChainEnv.js";
|
|
3
|
-
|
|
4
|
+
import { NADO_ERROR_CODES } from "./errorCodes.js";
|
|
5
|
+
export { ALL_CHAIN_ENVS, BaseServerFailureError, LOCAL_CHAIN_ENVS, MAINNET_CHAIN_ENVS, NADO_ERROR_CODES, ProductEngineType, TESTNET_CHAIN_ENVS, toProductEngineType };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as SpotMarket, n as MarketWithProduct, r as PerpMarket, t as Market } from "../marketTypes-
|
|
1
|
+
import { i as SpotMarket, n as MarketWithProduct, r as PerpMarket, t as Market } from "../marketTypes-DRZEFgF4.cjs";
|
|
2
2
|
export { Market, MarketWithProduct, PerpMarket, SpotMarket };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as SpotMarket, n as MarketWithProduct, r as PerpMarket, t as Market } from "../marketTypes-
|
|
1
|
+
import { i as SpotMarket, n as MarketWithProduct, r as PerpMarket, t as Market } from "../marketTypes-B5PFCPzN.js";
|
|
2
2
|
export { Market, MarketWithProduct, PerpMarket, SpotMarket };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as WithContract, r as WithContracts, t as NadoContracts } from "../nadoContractTypes-
|
|
1
|
+
import { n as WithContract, r as WithContracts, t as NadoContracts } from "../nadoContractTypes-8MNIkohy.cjs";
|
|
2
2
|
export { NadoContracts, WithContract, WithContracts };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as WithContract, r as WithContracts, t as NadoContracts } from "../nadoContractTypes-
|
|
1
|
+
import { n as WithContract, r as WithContracts, t as NadoContracts } from "../nadoContractTypes-BX9lth68.js";
|
|
2
2
|
export { NadoContracts, WithContract, WithContracts };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as OrderAppendixTwapFields, i as OrderAppendixTriggerType, n as OrderAppendixBuilderFields, r as OrderAppendixIsolatedFields, t as OrderAppendix } from "../orderAppendixTypes-
|
|
1
|
+
import { a as OrderAppendixTwapFields, i as OrderAppendixTriggerType, n as OrderAppendixBuilderFields, r as OrderAppendixIsolatedFields, t as OrderAppendix } from "../orderAppendixTypes-DIeaFc_g.cjs";
|
|
2
2
|
export { OrderAppendix, OrderAppendixBuilderFields, OrderAppendixIsolatedFields, OrderAppendixTriggerType, OrderAppendixTwapFields };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as OrderAppendixTwapFields, i as OrderAppendixTriggerType, n as OrderAppendixBuilderFields, r as OrderAppendixIsolatedFields, t as OrderAppendix } from "../orderAppendixTypes-
|
|
1
|
+
import { a as OrderAppendixTwapFields, i as OrderAppendixTriggerType, n as OrderAppendixBuilderFields, r as OrderAppendixIsolatedFields, t as OrderAppendix } from "../orderAppendixTypes-DQU50ISh.js";
|
|
2
2
|
export { OrderAppendix, OrderAppendixBuilderFields, OrderAppendixIsolatedFields, OrderAppendixTriggerType, OrderAppendixTwapFields };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as SignatureParams } from "../signatureTypes-
|
|
1
|
+
import { t as SignatureParams } from "../signatureTypes-DLj7Jdxv.cjs";
|
|
2
2
|
export { SignatureParams };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as SignatureParams } from "../signatureTypes-
|
|
1
|
+
import { t as SignatureParams } from "../signatureTypes-CKnj4AM2.js";
|
|
2
2
|
export { SignatureParams };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as SubaccountBytes32, r as SubaccountNameBytes12, t as Subaccount } from "../subaccountTypes-
|
|
1
|
+
import { n as SubaccountBytes32, r as SubaccountNameBytes12, t as Subaccount } from "../subaccountTypes-BZhlUXiR.cjs";
|
|
2
2
|
export { Subaccount, SubaccountBytes32, SubaccountNameBytes12 };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as SubaccountBytes32, r as SubaccountNameBytes12, t as Subaccount } from "../subaccountTypes-
|
|
1
|
+
import { n as SubaccountBytes32, r as SubaccountNameBytes12, t as Subaccount } from "../subaccountTypes-Drgy-wfh.js";
|
|
2
2
|
export { Subaccount, SubaccountBytes32, SubaccountNameBytes12 };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as WriteableContractInstance, n as ContractInstance, r as WalletClientWithAccount, t as AccountWithPrivateKey } from "../viemTypes-
|
|
1
|
+
import { i as WriteableContractInstance, n as ContractInstance, r as WalletClientWithAccount, t as AccountWithPrivateKey } from "../viemTypes-DrxAdyOl.cjs";
|
|
2
2
|
export { AccountWithPrivateKey, ContractInstance, WalletClientWithAccount, WriteableContractInstance };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as WriteableContractInstance, n as ContractInstance, r as WalletClientWithAccount, t as AccountWithPrivateKey } from "../viemTypes-
|
|
1
|
+
import { i as WriteableContractInstance, n as ContractInstance, r as WalletClientWithAccount, t as AccountWithPrivateKey } from "../viemTypes-ChJk9MYI.js";
|
|
2
2
|
export { AccountWithPrivateKey, ContractInstance, WalletClientWithAccount, WriteableContractInstance };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-
|
|
1
|
+
{"version":3,"file":"types-6WRBoXvb.d.cts","names":[],"sources":["../src/utils/orders/appendix/src/utils/orders/appendix/types.ts"],"mappings":";;AAQA;;;;;;;UAAiB,uBAAA;EACf,KAAA;EACA,SAAA;EACA,cAAA;EACA,QAAA;EACA,OAAA;EACA,UAAA;EACA,SAAA;EACA,QAAA;EACA,OAAA;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-
|
|
1
|
+
{"version":3,"file":"types-Be-SKK2F.d.ts","names":[],"sources":["../src/utils/orders/appendix/src/utils/orders/appendix/types.ts"],"mappings":";;AAQA;;;;;;;UAAiB,uBAAA;EACf,KAAA;EACA,SAAA;EACA,cAAA;EACA,QAAA;EACA,OAAA;EACA,UAAA;EACA,SAAA;EACA,QAAA;EACA,OAAA;AAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as BigNumberish } from "./bigNumber-
|
|
2
|
-
import { t as OrderAppendix } from "./orderAppendixTypes-
|
|
1
|
+
import { t as BigNumberish } from "./bigNumber-D3ssF_uJ.cjs";
|
|
2
|
+
import { t as OrderAppendix } from "./orderAppendixTypes-DIeaFc_g.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/orders/appendix/unpackOrderAppendix.d.ts
|
|
5
5
|
/**
|
|
@@ -9,4 +9,4 @@ import { t as OrderAppendix } from "./orderAppendixTypes-CM-eb5WL.cjs";
|
|
|
9
9
|
declare function unpackOrderAppendix(packed: BigNumberish): OrderAppendix;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { unpackOrderAppendix as t };
|
|
12
|
-
//# sourceMappingURL=unpackOrderAppendix-
|
|
12
|
+
//# sourceMappingURL=unpackOrderAppendix-CwxSxPOH.d.cts.map
|
package/dist/{unpackOrderAppendix-D2mTEbjX.d.cts.map → unpackOrderAppendix-CwxSxPOH.d.cts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unpackOrderAppendix-
|
|
1
|
+
{"version":3,"file":"unpackOrderAppendix-CwxSxPOH.d.cts","names":[],"sources":["../src/utils/orders/appendix/src/utils/orders/appendix/unpackOrderAppendix.ts"],"mappings":";;;;;;;AAuEA;iBAAgB,mBAAA,CAAoB,MAAA,EAAQ,YAAA,GAAe,aAAa"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as BigNumberish } from "./bigNumber-
|
|
2
|
-
import { t as OrderAppendix } from "./orderAppendixTypes-
|
|
1
|
+
import { t as BigNumberish } from "./bigNumber-DsRTR9zM.js";
|
|
2
|
+
import { t as OrderAppendix } from "./orderAppendixTypes-DQU50ISh.js";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/orders/appendix/unpackOrderAppendix.d.ts
|
|
5
5
|
/**
|
|
@@ -9,4 +9,4 @@ import { t as OrderAppendix } from "./orderAppendixTypes-5NqkTOxO.js";
|
|
|
9
9
|
declare function unpackOrderAppendix(packed: BigNumberish): OrderAppendix;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { unpackOrderAppendix as t };
|
|
12
|
-
//# sourceMappingURL=unpackOrderAppendix-
|
|
12
|
+
//# sourceMappingURL=unpackOrderAppendix-Q_DrCNaG.d.ts.map
|
package/dist/{unpackOrderAppendix-BtZ5M1kJ.d.ts.map → unpackOrderAppendix-Q_DrCNaG.d.ts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unpackOrderAppendix-
|
|
1
|
+
{"version":3,"file":"unpackOrderAppendix-Q_DrCNaG.d.ts","names":[],"sources":["../src/utils/orders/appendix/src/utils/orders/appendix/unpackOrderAppendix.ts"],"mappings":";;;;;;;AAuEA;iBAAgB,mBAAA,CAAoB,MAAA,EAAQ,YAAA,GAAe,aAAa"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as asyncResult, t as AsyncResult } from "../asyncResult-
|
|
1
|
+
import { n as asyncResult, t as AsyncResult } from "../asyncResult-uSvcciZS.cjs";
|
|
2
2
|
export { AsyncResult, asyncResult };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as asyncResult, t as AsyncResult } from "../asyncResult-
|
|
1
|
+
import { n as asyncResult, t as AsyncResult } from "../asyncResult-SvtRCbOk.js";
|
|
2
2
|
export { AsyncResult, asyncResult };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as calcPerpBalanceValue, r as calcSpotBalanceValue, t as calcPerpBalanceNotionalValue } from "../balanceValue-
|
|
1
|
+
import { n as calcPerpBalanceValue, r as calcSpotBalanceValue, t as calcPerpBalanceNotionalValue } from "../balanceValue-0IotjlbD.cjs";
|
|
2
2
|
export { calcPerpBalanceNotionalValue, calcPerpBalanceValue, calcSpotBalanceValue };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as calcPerpBalanceValue, r as calcSpotBalanceValue, t as calcPerpBalanceNotionalValue } from "../balanceValue-
|
|
1
|
+
import { n as calcPerpBalanceValue, r as calcSpotBalanceValue, t as calcPerpBalanceNotionalValue } from "../balanceValue-G8L4pR0e.js";
|
|
2
2
|
export { calcPerpBalanceNotionalValue, calcPerpBalanceValue, calcSpotBalanceValue };
|
package/dist/utils/bytes32.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as subaccountToBytes32, i as subaccountNameToBytes12, n as subaccountFromHex, o as subaccountToHex, r as subaccountNameBytesToStr, t as subaccountFromBytes32 } from "../bytes32-
|
|
1
|
+
import { a as subaccountToBytes32, i as subaccountNameToBytes12, n as subaccountFromHex, o as subaccountToHex, r as subaccountNameBytesToStr, t as subaccountFromBytes32 } from "../bytes32-BVmiGtU4.cjs";
|
|
2
2
|
export { subaccountFromBytes32, subaccountFromHex, subaccountNameBytesToStr, subaccountNameToBytes12, subaccountToBytes32, subaccountToHex };
|
package/dist/utils/bytes32.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as subaccountToBytes32, i as subaccountNameToBytes12, n as subaccountFromHex, o as subaccountToHex, r as subaccountNameBytesToStr, t as subaccountFromBytes32 } from "../bytes32-
|
|
1
|
+
import { a as subaccountToBytes32, i as subaccountNameToBytes12, n as subaccountFromHex, o as subaccountToHex, r as subaccountNameBytesToStr, t as subaccountFromBytes32 } from "../bytes32-Bm0kWK7n.js";
|
|
2
2
|
export { subaccountFromBytes32, subaccountFromHex, subaccountNameBytesToStr, subaccountNameToBytes12, subaccountToBytes32, subaccountToHex };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createDeterministicLinkedSignerPrivateKey } from "../createDeterministicLinkedSignerPrivateKey-
|
|
1
|
+
import { t as createDeterministicLinkedSignerPrivateKey } from "../createDeterministicLinkedSignerPrivateKey-wu-Hp9xI.cjs";
|
|
2
2
|
export { createDeterministicLinkedSignerPrivateKey };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createDeterministicLinkedSignerPrivateKey } from "../createDeterministicLinkedSignerPrivateKey-
|
|
1
|
+
import { t as createDeterministicLinkedSignerPrivateKey } from "../createDeterministicLinkedSignerPrivateKey-Bro8BtTs.js";
|
|
2
2
|
export { createDeterministicLinkedSignerPrivateKey };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as WalletNotProvidedError } from "../../WalletNotProvidedError-
|
|
1
|
+
import { t as WalletNotProvidedError } from "../../WalletNotProvidedError-DXwkasel.cjs";
|
|
2
2
|
export { WalletNotProvidedError };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as WalletNotProvidedError } from "../../WalletNotProvidedError-
|
|
1
|
+
import { t as WalletNotProvidedError } from "../../WalletNotProvidedError-CN0xJL6e.js";
|
|
2
2
|
export { WalletNotProvidedError };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as WalletNotProvidedError } from "../../WalletNotProvidedError-
|
|
1
|
+
import { t as WalletNotProvidedError } from "../../WalletNotProvidedError-DXwkasel.cjs";
|
|
2
2
|
export { WalletNotProvidedError };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as WalletNotProvidedError } from "../../WalletNotProvidedError-
|
|
1
|
+
import { t as WalletNotProvidedError } from "../../WalletNotProvidedError-CN0xJL6e.js";
|
|
2
2
|
export { WalletNotProvidedError };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as getValidatedAddress } from "../getValidatedAddress-
|
|
1
|
+
import { t as getValidatedAddress } from "../getValidatedAddress-TNxNngvc.cjs";
|
|
2
2
|
export { getValidatedAddress };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as getValidatedAddress } from "../getValidatedAddress-
|
|
1
|
+
import { t as getValidatedAddress } from "../getValidatedAddress-DD1N6pfc.js";
|
|
2
2
|
export { getValidatedAddress };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as getValidatedHex } from "../getValidatedHex-
|
|
1
|
+
import { t as getValidatedHex } from "../getValidatedHex-CEtmzBzc.cjs";
|
|
2
2
|
export { getValidatedHex };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as getValidatedHex } from "../getValidatedHex-
|
|
1
|
+
import { t as getValidatedHex } from "../getValidatedHex-1VRieEnK.js";
|
|
2
2
|
export { getValidatedHex };
|