@nadohq/shared 0.34.0 → 0.36.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/{WalletNotProvidedError-BmmmAlfH.d.ts → WalletNotProvidedError-D5Bk1Qww.d.ts} +1 -1
- package/dist/{WalletNotProvidedError-BmmmAlfH.d.ts.map → WalletNotProvidedError-D5Bk1Qww.d.ts.map} +1 -1
- package/dist/{WalletNotProvidedError-BO2HXKke.d.cts → WalletNotProvidedError-h5Su4K7x.d.cts} +1 -1
- package/dist/{WalletNotProvidedError-BO2HXKke.d.cts.map → WalletNotProvidedError-h5Su4K7x.d.cts.map} +1 -1
- package/dist/{appendixTwapValue-DvZEJMKu.d.cts → appendixTwapValue-CNS7Tjmq.d.cts} +1 -1
- package/dist/{appendixTwapValue-DvZEJMKu.d.cts.map → appendixTwapValue-CNS7Tjmq.d.cts.map} +1 -1
- package/dist/{appendixTwapValue-Dl8PGFcO.d.ts → appendixTwapValue-DJ_gK_zH.d.ts} +1 -1
- package/dist/{appendixTwapValue-Dl8PGFcO.d.ts.map → appendixTwapValue-DJ_gK_zH.d.ts.map} +1 -1
- package/dist/{approveDepositAllowance-CDAebo8F.d.cts → approveDepositAllowance-C4q5eBqB.d.cts} +1 -1
- package/dist/{approveDepositAllowance-CDAebo8F.d.cts.map → approveDepositAllowance-C4q5eBqB.d.cts.map} +1 -1
- package/dist/{approveDepositAllowance-D5gFuiv_.d.ts → approveDepositAllowance-CatTGQsD.d.ts} +1 -1
- package/dist/{approveDepositAllowance-D5gFuiv_.d.ts.map → approveDepositAllowance-CatTGQsD.d.ts.map} +1 -1
- package/dist/{asyncResult-CFT4nPoy.d.ts → asyncResult-BLLFP1kU.d.ts} +1 -1
- package/dist/{asyncResult-CFT4nPoy.d.ts.map → asyncResult-BLLFP1kU.d.ts.map} +1 -1
- package/dist/{asyncResult-CaaGPWEO.d.cts → asyncResult-CjnetY6d.d.cts} +1 -1
- package/dist/{asyncResult-CaaGPWEO.d.cts.map → asyncResult-CjnetY6d.d.cts.map} +1 -1
- package/dist/{balanceValue-Neu6HA0s.d.cts → balanceValue-GaRs3xld.d.cts} +1 -1
- package/dist/{balanceValue-Neu6HA0s.d.cts.map → balanceValue-GaRs3xld.d.cts.map} +1 -1
- package/dist/{balanceValue-CdhFbL7k.d.ts → balanceValue-toSYv804.d.ts} +1 -1
- package/dist/{balanceValue-CdhFbL7k.d.ts.map → balanceValue-toSYv804.d.ts.map} +1 -1
- package/dist/{bitMaskValue-B2XMKJOM.d.cts → bitMaskValue-B9gKD-s2.d.cts} +1 -1
- package/dist/{bitMaskValue-B2XMKJOM.d.cts.map → bitMaskValue-B9gKD-s2.d.cts.map} +1 -1
- package/dist/{bitMaskValue-CYYm6h_1.d.ts → bitMaskValue-CnBOFZJO.d.ts} +1 -1
- package/dist/{bitMaskValue-CYYm6h_1.d.ts.map → bitMaskValue-CnBOFZJO.d.ts.map} +1 -1
- package/dist/{bytes32-CGLcXBPY.d.ts → bytes32-BbxfxTg5.d.ts} +1 -1
- package/dist/{bytes32-CGLcXBPY.d.ts.map → bytes32-BbxfxTg5.d.ts.map} +1 -1
- package/dist/{bytes32-B16W-MVm.d.cts → bytes32-D1f6ymZC.d.cts} +1 -1
- package/dist/{bytes32-B16W-MVm.d.cts.map → bytes32-D1f6ymZC.d.cts.map} +1 -1
- package/dist/{claimAirdropRewards-DSbwauo9.d.ts → claimAirdropRewards-1nkd6vNA.d.ts} +1 -1
- package/dist/{claimAirdropRewards-DSbwauo9.d.ts.map → claimAirdropRewards-1nkd6vNA.d.ts.map} +1 -1
- package/dist/{claimAirdropRewards-CUpMcs0d.d.cts → claimAirdropRewards-D_2tnS73.d.cts} +1 -1
- package/dist/{claimAirdropRewards-CUpMcs0d.d.cts.map → claimAirdropRewards-D_2tnS73.d.cts.map} +1 -1
- package/dist/clientType-C5JI-qUr.d.ts +9 -0
- package/dist/clientType-C5JI-qUr.d.ts.map +1 -0
- package/dist/clientType-DGSb0jD4.d.cts +9 -0
- package/dist/clientType-DGSb0jD4.d.cts.map +1 -0
- package/dist/consts/clientType.cjs +11 -0
- package/dist/consts/clientType.cjs.map +1 -0
- package/dist/consts/clientType.d.cts +2 -0
- package/dist/consts/clientType.d.ts +2 -0
- package/dist/consts/clientType.js +10 -0
- package/dist/consts/clientType.js.map +1 -0
- package/dist/consts/index.cjs +2 -0
- package/dist/consts/index.d.cts +3 -2
- package/dist/consts/index.d.ts +3 -2
- package/dist/consts/index.js +2 -1
- package/dist/consts/productIds.d.cts +1 -1
- package/dist/consts/productIds.d.ts +1 -1
- package/dist/{createDeterministicLinkedSignerPrivateKey-X-4blavG.d.ts → createDeterministicLinkedSignerPrivateKey-D4e8yf2e.d.ts} +1 -1
- package/dist/createDeterministicLinkedSignerPrivateKey-D4e8yf2e.d.ts.map +1 -0
- package/dist/{createDeterministicLinkedSignerPrivateKey-BFJnkRTJ.d.cts → createDeterministicLinkedSignerPrivateKey-wB4fNwEc.d.cts} +1 -1
- package/dist/createDeterministicLinkedSignerPrivateKey-wB4fNwEc.d.cts.map +1 -0
- package/dist/{depositCollateral-BaHpvNUP.d.cts → depositCollateral-BiZtmFJY.d.cts} +1 -1
- package/dist/{depositCollateral-BaHpvNUP.d.cts.map → depositCollateral-BiZtmFJY.d.cts.map} +1 -1
- package/dist/{depositCollateral-ByOicYI2.d.ts → depositCollateral-ed8PcBbs.d.ts} +1 -1
- package/dist/{depositCollateral-ByOicYI2.d.ts.map → depositCollateral-ed8PcBbs.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-g_dr11Sl.d.cts → eip712ValueTypes-B6cczPL4.d.cts} +2 -2
- package/dist/{eip712ValueTypes-g_dr11Sl.d.cts.map → eip712ValueTypes-B6cczPL4.d.cts.map} +1 -1
- package/dist/{eip712ValueTypes-BqMcT_Ao.d.ts → eip712ValueTypes-DWRbSrU6.d.ts} +2 -2
- package/dist/{eip712ValueTypes-BqMcT_Ao.d.ts.map → eip712ValueTypes-DWRbSrU6.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-DLU2i7EK.d.cts → encoding-BOXKE9zU.d.cts} +2 -2
- package/dist/{encoding-DLU2i7EK.d.cts.map → encoding-BOXKE9zU.d.cts.map} +1 -1
- package/dist/{encoding-CqMXeouQ.d.ts → encoding-Cew-9oja.d.ts} +2 -2
- package/dist/{encoding-CqMXeouQ.d.ts.map → encoding-Cew-9oja.d.ts.map} +1 -1
- package/dist/execute/approveDepositAllowance.d.cts +1 -1
- package/dist/execute/approveDepositAllowance.d.ts +1 -1
- package/dist/execute/claimAirdropRewards.d.cts +1 -1
- package/dist/execute/claimAirdropRewards.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 +3 -3
- package/dist/execute/index.d.ts +3 -3
- package/dist/getNadoClientTypeHeaders-CDa28EIU.d.ts +12 -0
- package/dist/getNadoClientTypeHeaders-CDa28EIU.d.ts.map +1 -0
- package/dist/getNadoClientTypeHeaders-D3Nmw3I7.d.cts +12 -0
- package/dist/getNadoClientTypeHeaders-D3Nmw3I7.d.cts.map +1 -0
- package/dist/{getNadoEIP712Domain-DigwZ9Zl.d.cts → getNadoEIP712Domain-DWkoNKMb.d.cts} +1 -1
- package/dist/{getNadoEIP712Domain-DigwZ9Zl.d.cts.map → getNadoEIP712Domain-DWkoNKMb.d.cts.map} +1 -1
- package/dist/{getNadoEIP712Domain-zp6D0bND.d.ts → getNadoEIP712Domain-EesdKKUp.d.ts} +1 -1
- package/dist/{getNadoEIP712Domain-zp6D0bND.d.ts.map → getNadoEIP712Domain-EesdKKUp.d.ts.map} +1 -1
- package/dist/{getNadoEIP712PrimaryType-i-ZN_3U-.d.cts → getNadoEIP712PrimaryType-Bejv3c1B.d.cts} +2 -2
- package/dist/{getNadoEIP712PrimaryType-i-ZN_3U-.d.cts.map → getNadoEIP712PrimaryType-Bejv3c1B.d.cts.map} +1 -1
- package/dist/{getNadoEIP712PrimaryType-CdCXJDjf.d.ts → getNadoEIP712PrimaryType-D_8Q2HLf.d.ts} +2 -2
- package/dist/{getNadoEIP712PrimaryType-CdCXJDjf.d.ts.map → getNadoEIP712PrimaryType-D_8Q2HLf.d.ts.map} +1 -1
- package/dist/{getNadoEIP712Types-DobEFsh0.d.cts → getNadoEIP712Types-Dk91ok96.d.cts} +2 -2
- package/dist/{getNadoEIP712Types-DobEFsh0.d.cts.map → getNadoEIP712Types-Dk91ok96.d.cts.map} +1 -1
- package/dist/{getNadoEIP712Types-RFzasa9X.d.ts → getNadoEIP712Types-Pqw_eS7W.d.ts} +2 -2
- package/dist/{getNadoEIP712Types-RFzasa9X.d.ts.map → getNadoEIP712Types-Pqw_eS7W.d.ts.map} +1 -1
- package/dist/{getNadoEIP712Values-9F8fm5P4.d.ts → getNadoEIP712Values-BcqdLZIm.d.ts} +3 -3
- package/dist/{getNadoEIP712Values-9F8fm5P4.d.ts.map → getNadoEIP712Values-BcqdLZIm.d.ts.map} +1 -1
- package/dist/{getNadoEIP712Values-D5ZpK5vA.d.cts → getNadoEIP712Values-DLq9NjdD.d.cts} +3 -3
- package/dist/{getNadoEIP712Values-D5ZpK5vA.d.cts.map → getNadoEIP712Values-DLq9NjdD.d.cts.map} +1 -1
- package/dist/{getOrderVerifyingAddress-Cs7fPjtv.d.ts → getOrderVerifyingAddress-BucrPmXA.d.ts} +1 -1
- package/dist/{getOrderVerifyingAddress-Cs7fPjtv.d.ts.map → getOrderVerifyingAddress-BucrPmXA.d.ts.map} +1 -1
- package/dist/{getOrderVerifyingAddress-B-Tsl6J5.d.cts → getOrderVerifyingAddress-DLu7zmfY.d.cts} +1 -1
- package/dist/{getOrderVerifyingAddress-B-Tsl6J5.d.cts.map → getOrderVerifyingAddress-DLu7zmfY.d.cts.map} +1 -1
- package/dist/{getSignedTransactionRequest-pTAyk-iM.d.ts → getSignedTransactionRequest-BlSnuwHY.d.ts} +2 -2
- package/dist/{getSignedTransactionRequest-pTAyk-iM.d.ts.map → getSignedTransactionRequest-BlSnuwHY.d.ts.map} +1 -1
- package/dist/{getSignedTransactionRequest-DmfyBo7M.d.cts → getSignedTransactionRequest-DO61MCC5.d.cts} +2 -2
- package/dist/{getSignedTransactionRequest-DmfyBo7M.d.cts.map → getSignedTransactionRequest-DO61MCC5.d.cts.map} +1 -1
- package/dist/{getValidatedAddress-DysX4VJ4.d.ts → getValidatedAddress-BUja91qP.d.ts} +1 -1
- package/dist/getValidatedAddress-BUja91qP.d.ts.map +1 -0
- package/dist/{getValidatedAddress-DWiQL3jm.d.cts → getValidatedAddress-BlhlqXfr.d.cts} +1 -1
- package/dist/getValidatedAddress-BlhlqXfr.d.cts.map +1 -0
- package/dist/{getValidatedHex-BhVxQzGX.d.cts → getValidatedHex-DZ1oKuMy.d.cts} +1 -1
- package/dist/getValidatedHex-DZ1oKuMy.d.cts.map +1 -0
- package/dist/{getValidatedHex-DCTv7x1f.d.ts → getValidatedHex-VgG_L7ux.d.ts} +1 -1
- package/dist/getValidatedHex-VgG_L7ux.d.ts.map +1 -0
- package/dist/index.cjs +4 -0
- package/dist/index.d.cts +38 -36
- package/dist/index.d.ts +38 -36
- package/dist/index.js +3 -1
- package/dist/{interest-BzvmgBbf.d.ts → interest-C7qa--Ug.d.ts} +1 -1
- package/dist/{interest-BzvmgBbf.d.ts.map → interest-C7qa--Ug.d.ts.map} +1 -1
- package/dist/{interest-DoIHF90d.d.cts → interest-CJqaxn67.d.cts} +1 -1
- package/dist/{interest-DoIHF90d.d.cts.map → interest-CJqaxn67.d.cts.map} +1 -1
- package/dist/isWriteableContract-BiNSZzx3.d.cts +10 -0
- package/dist/isWriteableContract-BiNSZzx3.d.cts.map +1 -0
- package/dist/isWriteableContract-DjxRDGtF.d.ts +10 -0
- package/dist/isWriteableContract-DjxRDGtF.d.ts.map +1 -0
- package/dist/{mapValues-B3WVCh0N.d.cts → mapValues-CXY2PhZB.d.cts} +1 -1
- package/dist/{mapValues-B3WVCh0N.d.cts.map → mapValues-CXY2PhZB.d.cts.map} +1 -1
- package/dist/{mapValues-DwstqciQ.d.ts → mapValues-D7iqAHOZ.d.ts} +1 -1
- package/dist/{mapValues-DwstqciQ.d.ts.map → mapValues-D7iqAHOZ.d.ts.map} +1 -1
- package/dist/{orderDigest-DWIIBqaQ.d.cts → orderDigest-DbpeOiaf.d.cts} +2 -2
- package/dist/{orderDigest-DWIIBqaQ.d.cts.map → orderDigest-DbpeOiaf.d.cts.map} +1 -1
- package/dist/{orderDigest-kOLcfU6o.d.ts → orderDigest-DiC-SWoU.d.ts} +2 -2
- package/dist/{orderDigest-kOLcfU6o.d.ts.map → orderDigest-DiC-SWoU.d.ts.map} +1 -1
- package/dist/{orderNonce-Dg0s-Fha.d.cts → orderNonce-CTfv_-KZ.d.cts} +1 -1
- package/dist/{orderNonce-Dg0s-Fha.d.cts.map → orderNonce-CTfv_-KZ.d.cts.map} +1 -1
- package/dist/{orderNonce-CrWpMXqK.d.ts → orderNonce-D0uz4sJe.d.ts} +1 -1
- package/dist/{orderNonce-CrWpMXqK.d.ts.map → orderNonce-D0uz4sJe.d.ts.map} +1 -1
- package/dist/{packOrderAppendix-BfvFqpY6.d.cts → packOrderAppendix-CogBpIvf.d.cts} +1 -1
- package/dist/{packOrderAppendix-BfvFqpY6.d.cts.map → packOrderAppendix-CogBpIvf.d.cts.map} +1 -1
- package/dist/{packOrderAppendix-CZqxrtrH.d.ts → packOrderAppendix-DGcuEwU9.d.ts} +1 -1
- package/dist/{packOrderAppendix-CZqxrtrH.d.ts.map → packOrderAppendix-DGcuEwU9.d.ts.map} +1 -1
- package/dist/{productIds-D7GN7Lgd.d.ts → productIds-BJ4tQXSm.d.ts} +1 -1
- package/dist/productIds-BJ4tQXSm.d.ts.map +1 -0
- package/dist/{productIds-DCBn-bgt.d.cts → productIds-Cr-PFBSk.d.cts} +1 -1
- package/dist/productIds-Cr-PFBSk.d.cts.map +1 -0
- package/dist/{productTypeFilter-V_la6JWu.d.ts → productTypeFilter-DZfwAtvT.d.ts} +1 -1
- package/dist/{productTypeFilter-V_la6JWu.d.ts.map → productTypeFilter-DZfwAtvT.d.ts.map} +1 -1
- package/dist/{productTypeFilter-CwuVIa5F.d.cts → productTypeFilter-f9g4BkRz.d.cts} +1 -1
- package/dist/{productTypeFilter-CwuVIa5F.d.cts.map → productTypeFilter-f9g4BkRz.d.cts.map} +1 -1
- package/dist/{recvTime-DlHKCQaT.d.ts → recvTime-CL_idZLw.d.ts} +1 -1
- package/dist/recvTime-CL_idZLw.d.ts.map +1 -0
- package/dist/{recvTime-dPFrjrqH.d.cts → recvTime-DnaMp37j.d.cts} +1 -1
- package/dist/recvTime-DnaMp37j.d.cts.map +1 -0
- package/dist/{signableRequestType-CtCvF93j.d.ts → signableRequestType-B-IEDkA3.d.ts} +2 -2
- package/dist/{signableRequestType-CtCvF93j.d.ts.map → signableRequestType-B-IEDkA3.d.ts.map} +1 -1
- package/dist/{signableRequestType-DRCOSRmf.d.cts → signableRequestType-CrGJVQRc.d.cts} +2 -2
- package/dist/{signableRequestType-DRCOSRmf.d.cts.map → signableRequestType-CrGJVQRc.d.cts.map} +1 -1
- package/dist/{signatureParamTypes-DYNPFnDk.d.cts → signatureParamTypes-DjMkCp5D.d.cts} +1 -1
- package/dist/{signatureParamTypes-DYNPFnDk.d.cts.map → signatureParamTypes-DjMkCp5D.d.cts.map} +1 -1
- package/dist/{signatureParamTypes-CkgH5li0.d.ts → signatureParamTypes-uDa_9pfk.d.ts} +1 -1
- package/dist/{signatureParamTypes-CkgH5li0.d.ts.map → signatureParamTypes-uDa_9pfk.d.ts.map} +1 -1
- package/dist/{time-BQgHQv-v.d.ts → time-CwRQDvZ4.d.ts} +1 -1
- package/dist/{time-BQgHQv-v.d.ts.map → time-CwRQDvZ4.d.ts.map} +1 -1
- package/dist/{time-RZ5da1jn.d.cts → time-Mb8vgnLE.d.cts} +1 -1
- package/dist/{time-RZ5da1jn.d.cts.map → time-Mb8vgnLE.d.cts.map} +1 -1
- package/dist/{toPrintableObject-DHygU7wB.d.cts → toPrintableObject-ByoFvQTu.d.cts} +1 -1
- package/dist/{toPrintableObject-DHygU7wB.d.cts.map → toPrintableObject-ByoFvQTu.d.cts.map} +1 -1
- package/dist/{toPrintableObject-B3b3VKoz.d.ts → toPrintableObject-CxHQ9l9x.d.ts} +1 -1
- package/dist/{toPrintableObject-B3b3VKoz.d.ts.map → toPrintableObject-CxHQ9l9x.d.ts.map} +1 -1
- package/dist/{types-D8P2ghfC.d.ts → types-CZNaX1KL.d.ts} +1 -1
- package/dist/{types-D8P2ghfC.d.ts.map → types-CZNaX1KL.d.ts.map} +1 -1
- package/dist/{types-cPN_yXFW.d.cts → types-DkBOmSwM.d.cts} +1 -1
- package/dist/{types-cPN_yXFW.d.cts.map → types-DkBOmSwM.d.cts.map} +1 -1
- package/dist/{unpackOrderAppendix-DqX3cPtS.d.cts → unpackOrderAppendix-DyaR_1OA.d.cts} +1 -1
- package/dist/{unpackOrderAppendix-DqX3cPtS.d.cts.map → unpackOrderAppendix-DyaR_1OA.d.cts.map} +1 -1
- package/dist/{unpackOrderAppendix-CyFKLfhF.d.ts → unpackOrderAppendix-YQ0wi7uU.d.ts} +1 -1
- package/dist/{unpackOrderAppendix-CyFKLfhF.d.ts.map → unpackOrderAppendix-YQ0wi7uU.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/getNadoClientTypeHeaders.cjs +18 -0
- package/dist/utils/getNadoClientTypeHeaders.cjs.map +1 -0
- package/dist/utils/getNadoClientTypeHeaders.d.cts +2 -0
- package/dist/utils/getNadoClientTypeHeaders.d.ts +2 -0
- package/dist/utils/getNadoClientTypeHeaders.js +17 -0
- package/dist/utils/getNadoClientTypeHeaders.js.map +1 -0
- 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.cjs +2 -0
- package/dist/utils/index.d.cts +22 -21
- package/dist/utils/index.d.ts +22 -21
- package/dist/utils/index.js +2 -1
- package/dist/utils/interest.d.cts +1 -1
- package/dist/utils/interest.d.ts +1 -1
- package/dist/utils/isWriteableContract.cjs.map +1 -1
- package/dist/utils/isWriteableContract.d.cts +1 -1
- package/dist/utils/isWriteableContract.d.ts +1 -1
- package/dist/utils/isWriteableContract.js.map +1 -1
- package/dist/utils/mapValues.d.cts +1 -1
- package/dist/utils/mapValues.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/package.json +2 -2
- package/src/consts/clientType.ts +5 -0
- package/src/consts/index.ts +1 -0
- package/src/utils/getNadoClientTypeHeaders.ts +20 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/isWriteableContract.ts +4 -7
- package/dist/createDeterministicLinkedSignerPrivateKey-BFJnkRTJ.d.cts.map +0 -1
- package/dist/createDeterministicLinkedSignerPrivateKey-X-4blavG.d.ts.map +0 -1
- package/dist/getValidatedAddress-DWiQL3jm.d.cts.map +0 -1
- package/dist/getValidatedAddress-DysX4VJ4.d.ts.map +0 -1
- package/dist/getValidatedHex-BhVxQzGX.d.cts.map +0 -1
- package/dist/getValidatedHex-DCTv7x1f.d.ts.map +0 -1
- package/dist/isWriteableContract-COmW-VlM.d.cts +0 -8
- package/dist/isWriteableContract-COmW-VlM.d.cts.map +0 -1
- package/dist/isWriteableContract-CrtCZA45.d.ts +0 -8
- package/dist/isWriteableContract-CrtCZA45.d.ts.map +0 -1
- package/dist/productIds-D7GN7Lgd.d.ts.map +0 -1
- package/dist/productIds-DCBn-bgt.d.cts.map +0 -1
- package/dist/recvTime-DlHKCQaT.d.ts.map +0 -1
- package/dist/recvTime-dPFrjrqH.d.cts.map +0 -1
- /package/dist/{index-AjYInbTh2.d.ts → index-B5F3AfVc.d.ts} +0 -0
- /package/dist/{index-BJ8-FA6N.d.cts → index-CUPkUUOR.d.ts} +0 -0
- /package/dist/{index-CLFDvZ2B.d.cts → index-CwHYpK-f.d.ts} +0 -0
- /package/dist/{index-CNuTE0dv.d.ts → index-Cz6N-KeS.d.cts} +0 -0
- /package/dist/{index-CmUzJ4E-2.d.cts → index-DSiHnMH2.d.cts} +0 -0
- /package/dist/{index-CwSIy_W-.d.cts → index-DUb4iB7z2.d.cts} +0 -0
- /package/dist/{index-DADolYsP.d.ts → index-DUsgLc7n2.d.ts} +0 -0
- /package/dist/{index-DAwMsCZ3.d.ts → index-DpEKQcoR.d.cts} +0 -0
- /package/dist/{index-gxEAO6Ad.d.cts → index-DxSM7VXJ.d.cts} +0 -0
- /package/dist/{index-uQcTfU6c.d.ts → index-qM4PwHTs.d.ts} +0 -0
|
@@ -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-GaRs3xld.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-toSYv804.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-D1f6ymZC.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-BbxfxTg5.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-wB4fNwEc.cjs";
|
|
2
2
|
export { createDeterministicLinkedSignerPrivateKey };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createDeterministicLinkedSignerPrivateKey } from "../createDeterministicLinkedSignerPrivateKey-
|
|
1
|
+
import { t as createDeterministicLinkedSignerPrivateKey } from "../createDeterministicLinkedSignerPrivateKey-D4e8yf2e.js";
|
|
2
2
|
export { createDeterministicLinkedSignerPrivateKey };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as WalletNotProvidedError } from "../../WalletNotProvidedError-
|
|
1
|
+
import { t as WalletNotProvidedError } from "../../WalletNotProvidedError-h5Su4K7x.cjs";
|
|
2
2
|
export { WalletNotProvidedError };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as WalletNotProvidedError } from "../../WalletNotProvidedError-
|
|
1
|
+
import { t as WalletNotProvidedError } from "../../WalletNotProvidedError-D5Bk1Qww.js";
|
|
2
2
|
export { WalletNotProvidedError };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as WalletNotProvidedError } from "../../WalletNotProvidedError-
|
|
1
|
+
import { t as WalletNotProvidedError } from "../../WalletNotProvidedError-h5Su4K7x.cjs";
|
|
2
2
|
export { WalletNotProvidedError };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as WalletNotProvidedError } from "../../WalletNotProvidedError-
|
|
1
|
+
import { t as WalletNotProvidedError } from "../../WalletNotProvidedError-D5Bk1Qww.js";
|
|
2
2
|
export { WalletNotProvidedError };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_consts_clientType = require("../consts/clientType.cjs");
|
|
3
|
+
//#region src/utils/getNadoClientTypeHeaders.ts
|
|
4
|
+
/**
|
|
5
|
+
* Builds the default request headers identifying the calling client. Used by every service client
|
|
6
|
+
* so that all outgoing requests are attributed to a client type.
|
|
7
|
+
*
|
|
8
|
+
* @param clientType - Client type to send. The header is omitted entirely when not given.
|
|
9
|
+
* @returns Headers to apply to all requests made by a service client.
|
|
10
|
+
*/
|
|
11
|
+
function getNadoClientTypeHeaders(clientType) {
|
|
12
|
+
if (!clientType) return {};
|
|
13
|
+
return { [require_consts_clientType.NADO_CLIENT_TYPE_HEADER]: clientType };
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
exports.getNadoClientTypeHeaders = getNadoClientTypeHeaders;
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=getNadoClientTypeHeaders.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getNadoClientTypeHeaders.cjs","names":["NADO_CLIENT_TYPE_HEADER"],"sources":["../../src/utils/getNadoClientTypeHeaders.ts"],"sourcesContent":["import { NADO_CLIENT_TYPE_HEADER } from '../consts/clientType';\n\n/**\n * Builds the default request headers identifying the calling client. Used by every service client\n * so that all outgoing requests are attributed to a client type.\n *\n * @param clientType - Client type to send. The header is omitted entirely when not given.\n * @returns Headers to apply to all requests made by a service client.\n */\nexport function getNadoClientTypeHeaders(\n clientType?: string,\n): Record<string, string> {\n if (!clientType) {\n return {};\n }\n\n return {\n [NADO_CLIENT_TYPE_HEADER]: clientType,\n };\n}\n"],"mappings":";;;;;;;;;;AASA,SAAgB,yBACd,YACwB;CACxB,IAAI,CAAC,YACH,OAAO,CAAC;CAGV,OAAO,GACJA,0BAAAA,0BAA0B,WAC7B;AACF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { NADO_CLIENT_TYPE_HEADER } from "../consts/clientType.js";
|
|
2
|
+
//#region src/utils/getNadoClientTypeHeaders.ts
|
|
3
|
+
/**
|
|
4
|
+
* Builds the default request headers identifying the calling client. Used by every service client
|
|
5
|
+
* so that all outgoing requests are attributed to a client type.
|
|
6
|
+
*
|
|
7
|
+
* @param clientType - Client type to send. The header is omitted entirely when not given.
|
|
8
|
+
* @returns Headers to apply to all requests made by a service client.
|
|
9
|
+
*/
|
|
10
|
+
function getNadoClientTypeHeaders(clientType) {
|
|
11
|
+
if (!clientType) return {};
|
|
12
|
+
return { [NADO_CLIENT_TYPE_HEADER]: clientType };
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { getNadoClientTypeHeaders };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=getNadoClientTypeHeaders.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getNadoClientTypeHeaders.js","names":[],"sources":["../../src/utils/getNadoClientTypeHeaders.ts"],"sourcesContent":["import { NADO_CLIENT_TYPE_HEADER } from '../consts/clientType';\n\n/**\n * Builds the default request headers identifying the calling client. Used by every service client\n * so that all outgoing requests are attributed to a client type.\n *\n * @param clientType - Client type to send. The header is omitted entirely when not given.\n * @returns Headers to apply to all requests made by a service client.\n */\nexport function getNadoClientTypeHeaders(\n clientType?: string,\n): Record<string, string> {\n if (!clientType) {\n return {};\n }\n\n return {\n [NADO_CLIENT_TYPE_HEADER]: clientType,\n };\n}\n"],"mappings":";;;;;;;;;AASA,SAAgB,yBACd,YACwB;CACxB,IAAI,CAAC,YACH,OAAO,CAAC;CAGV,OAAO,GACJ,0BAA0B,WAC7B;AACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as getValidatedAddress } from "../getValidatedAddress-
|
|
1
|
+
import { t as getValidatedAddress } from "../getValidatedAddress-BlhlqXfr.cjs";
|
|
2
2
|
export { getValidatedAddress };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as getValidatedAddress } from "../getValidatedAddress-
|
|
1
|
+
import { t as getValidatedAddress } from "../getValidatedAddress-BUja91qP.js";
|
|
2
2
|
export { getValidatedAddress };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as getValidatedHex } from "../getValidatedHex-
|
|
1
|
+
import { t as getValidatedHex } from "../getValidatedHex-DZ1oKuMy.cjs";
|
|
2
2
|
export { getValidatedHex };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as getValidatedHex } from "../getValidatedHex-
|
|
1
|
+
import { t as getValidatedHex } from "../getValidatedHex-VgG_L7ux.js";
|
|
2
2
|
export { getValidatedHex };
|
package/dist/utils/index.cjs
CHANGED
|
@@ -12,6 +12,7 @@ const require_utils_asyncResult = require("./asyncResult.cjs");
|
|
|
12
12
|
const require_utils_balanceValue = require("./balanceValue.cjs");
|
|
13
13
|
const require_utils_createDeterministicLinkedSignerPrivateKey = require("./createDeterministicLinkedSignerPrivateKey.cjs");
|
|
14
14
|
const require_utils_errors_WalletNotProvidedError = require("./errors/WalletNotProvidedError.cjs");
|
|
15
|
+
const require_utils_getNadoClientTypeHeaders = require("./getNadoClientTypeHeaders.cjs");
|
|
15
16
|
const require_utils_getValidatedHex = require("./getValidatedHex.cjs");
|
|
16
17
|
const require_utils_time = require("./time.cjs");
|
|
17
18
|
const require_utils_interest = require("./interest.cjs");
|
|
@@ -44,6 +45,7 @@ exports.calcUtilizationRatio = require_utils_interest.calcUtilizationRatio;
|
|
|
44
45
|
exports.clampBigNumber = require_utils_math_clamp.clampBigNumber;
|
|
45
46
|
exports.createDeterministicLinkedSignerPrivateKey = require_utils_createDeterministicLinkedSignerPrivateKey.createDeterministicLinkedSignerPrivateKey;
|
|
46
47
|
exports.getDefaultRecvTime = require_utils_orders_recvTime.getDefaultRecvTime;
|
|
48
|
+
exports.getNadoClientTypeHeaders = require_utils_getNadoClientTypeHeaders.getNadoClientTypeHeaders;
|
|
47
49
|
exports.getOrderNonce = require_utils_orders_orderNonce.getOrderNonce;
|
|
48
50
|
exports.getRecvTimeFromOrderNonce = require_utils_orders_orderNonce.getRecvTimeFromOrderNonce;
|
|
49
51
|
exports.getValidatedAddress = require_utils_getValidatedAddress.getValidatedAddress;
|
package/dist/utils/index.d.cts
CHANGED
|
@@ -5,24 +5,25 @@ import { n as addDecimals, r as removeDecimals, t as NADO_PRODUCT_DECIMALS } fro
|
|
|
5
5
|
import { t as sumBigNumberBy } from "../sumBigNumberBy-VDqHKxCL.cjs";
|
|
6
6
|
import { t as toBigInt } from "../toBigInt-rwR3pRam.cjs";
|
|
7
7
|
import { t as toIntegerString } from "../toIntegerString-89Wn3cp6.cjs";
|
|
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
|
|
14
|
-
import { t as
|
|
15
|
-
import {
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import {
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import { t as
|
|
23
|
-
import {
|
|
24
|
-
import { t as
|
|
25
|
-
import {
|
|
26
|
-
import { n as
|
|
27
|
-
import { t as
|
|
28
|
-
|
|
8
|
+
import { n as asyncResult, t as AsyncResult } from "../asyncResult-CjnetY6d.cjs";
|
|
9
|
+
import { n as calcPerpBalanceValue, r as calcSpotBalanceValue, t as calcPerpBalanceNotionalValue } from "../balanceValue-GaRs3xld.cjs";
|
|
10
|
+
import { a as subaccountToBytes32, i as subaccountNameToBytes12, n as subaccountFromHex, o as subaccountToHex, r as subaccountNameBytesToStr, t as subaccountFromBytes32 } from "../bytes32-D1f6ymZC.cjs";
|
|
11
|
+
import { t as createDeterministicLinkedSignerPrivateKey } from "../createDeterministicLinkedSignerPrivateKey-wB4fNwEc.cjs";
|
|
12
|
+
import { t as WalletNotProvidedError } from "../WalletNotProvidedError-h5Su4K7x.cjs";
|
|
13
|
+
import { t as getNadoClientTypeHeaders } from "../getNadoClientTypeHeaders-D3Nmw3I7.cjs";
|
|
14
|
+
import { t as getValidatedAddress } from "../getValidatedAddress-BlhlqXfr.cjs";
|
|
15
|
+
import { t as getValidatedHex } from "../getValidatedHex-DZ1oKuMy.cjs";
|
|
16
|
+
import { a as calcTotalDeposited, i as calcTotalBorrowed, n as calcBorrowRatePerSecond, o as calcUtilizationRatio, r as calcRealizedDepositRateForTimeRange, t as calcBorrowRateForTimeRange } from "../interest-CJqaxn67.cjs";
|
|
17
|
+
import { t as isWriteableContract } from "../isWriteableContract-BiNSZzx3.cjs";
|
|
18
|
+
import { t as mapValues } from "../mapValues-CXY2PhZB.cjs";
|
|
19
|
+
import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../appendixTwapValue-CNS7Tjmq.cjs";
|
|
20
|
+
import { t as bitMaskValue } from "../bitMaskValue-B9gKD-s2.cjs";
|
|
21
|
+
import { t as packOrderAppendix } from "../packOrderAppendix-CogBpIvf.cjs";
|
|
22
|
+
import { t as PackedOrderAppendixBits } from "../types-DkBOmSwM.cjs";
|
|
23
|
+
import { t as unpackOrderAppendix } from "../unpackOrderAppendix-DyaR_1OA.cjs";
|
|
24
|
+
import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../orderNonce-CTfv_-KZ.cjs";
|
|
25
|
+
import { t as getDefaultRecvTime } from "../recvTime-DnaMp37j.cjs";
|
|
26
|
+
import { i as isSpotProduct, n as isPerpProduct, r as isSpotBalance, t as isPerpBalance } from "../productTypeFilter-f9g4BkRz.cjs";
|
|
27
|
+
import { n as millisToSeconds, r as nowInSeconds, t as TimeInSeconds } from "../time-Mb8vgnLE.cjs";
|
|
28
|
+
import { t as toPrintableObject } from "../toPrintableObject-ByoFvQTu.cjs";
|
|
29
|
+
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, getNadoClientTypeHeaders, 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
|
@@ -5,24 +5,25 @@ import { n as addDecimals, r as removeDecimals, t as NADO_PRODUCT_DECIMALS } fro
|
|
|
5
5
|
import { t as sumBigNumberBy } from "../sumBigNumberBy-DvRQv-qH.js";
|
|
6
6
|
import { t as toBigInt } from "../toBigInt-DmsDdQeF.js";
|
|
7
7
|
import { t as toIntegerString } from "../toIntegerString-CtEX9m8u.js";
|
|
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
|
|
14
|
-
import { t as
|
|
15
|
-
import {
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import {
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import { t as
|
|
23
|
-
import {
|
|
24
|
-
import { t as
|
|
25
|
-
import {
|
|
26
|
-
import { n as
|
|
27
|
-
import { t as
|
|
28
|
-
|
|
8
|
+
import { n as asyncResult, t as AsyncResult } from "../asyncResult-BLLFP1kU.js";
|
|
9
|
+
import { n as calcPerpBalanceValue, r as calcSpotBalanceValue, t as calcPerpBalanceNotionalValue } from "../balanceValue-toSYv804.js";
|
|
10
|
+
import { a as subaccountToBytes32, i as subaccountNameToBytes12, n as subaccountFromHex, o as subaccountToHex, r as subaccountNameBytesToStr, t as subaccountFromBytes32 } from "../bytes32-BbxfxTg5.js";
|
|
11
|
+
import { t as createDeterministicLinkedSignerPrivateKey } from "../createDeterministicLinkedSignerPrivateKey-D4e8yf2e.js";
|
|
12
|
+
import { t as WalletNotProvidedError } from "../WalletNotProvidedError-D5Bk1Qww.js";
|
|
13
|
+
import { t as getNadoClientTypeHeaders } from "../getNadoClientTypeHeaders-CDa28EIU.js";
|
|
14
|
+
import { t as getValidatedAddress } from "../getValidatedAddress-BUja91qP.js";
|
|
15
|
+
import { t as getValidatedHex } from "../getValidatedHex-VgG_L7ux.js";
|
|
16
|
+
import { a as calcTotalDeposited, i as calcTotalBorrowed, n as calcBorrowRatePerSecond, o as calcUtilizationRatio, r as calcRealizedDepositRateForTimeRange, t as calcBorrowRateForTimeRange } from "../interest-C7qa--Ug.js";
|
|
17
|
+
import { t as isWriteableContract } from "../isWriteableContract-DjxRDGtF.js";
|
|
18
|
+
import { t as mapValues } from "../mapValues-D7iqAHOZ.js";
|
|
19
|
+
import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../appendixTwapValue-DJ_gK_zH.js";
|
|
20
|
+
import { t as bitMaskValue } from "../bitMaskValue-CnBOFZJO.js";
|
|
21
|
+
import { t as packOrderAppendix } from "../packOrderAppendix-DGcuEwU9.js";
|
|
22
|
+
import { t as PackedOrderAppendixBits } from "../types-CZNaX1KL.js";
|
|
23
|
+
import { t as unpackOrderAppendix } from "../unpackOrderAppendix-YQ0wi7uU.js";
|
|
24
|
+
import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../orderNonce-D0uz4sJe.js";
|
|
25
|
+
import { t as getDefaultRecvTime } from "../recvTime-CL_idZLw.js";
|
|
26
|
+
import { i as isSpotProduct, n as isPerpProduct, r as isSpotBalance, t as isPerpBalance } from "../productTypeFilter-DZfwAtvT.js";
|
|
27
|
+
import { n as millisToSeconds, r as nowInSeconds, t as TimeInSeconds } from "../time-CwRQDvZ4.js";
|
|
28
|
+
import { t as toPrintableObject } from "../toPrintableObject-CxHQ9l9x.js";
|
|
29
|
+
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, getNadoClientTypeHeaders, 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.js
CHANGED
|
@@ -11,6 +11,7 @@ import { asyncResult } from "./asyncResult.js";
|
|
|
11
11
|
import { calcPerpBalanceNotionalValue, calcPerpBalanceValue, calcSpotBalanceValue } from "./balanceValue.js";
|
|
12
12
|
import { createDeterministicLinkedSignerPrivateKey } from "./createDeterministicLinkedSignerPrivateKey.js";
|
|
13
13
|
import { WalletNotProvidedError } from "./errors/WalletNotProvidedError.js";
|
|
14
|
+
import { getNadoClientTypeHeaders } from "./getNadoClientTypeHeaders.js";
|
|
14
15
|
import { getValidatedHex } from "./getValidatedHex.js";
|
|
15
16
|
import { TimeInSeconds, millisToSeconds, nowInSeconds } from "./time.js";
|
|
16
17
|
import { calcBorrowRateForTimeRange, calcBorrowRatePerSecond, calcRealizedDepositRateForTimeRange, calcTotalBorrowed, calcTotalDeposited, calcUtilizationRatio } from "./interest.js";
|
|
@@ -24,4 +25,4 @@ import { getDefaultRecvTime } from "./orders/recvTime.js";
|
|
|
24
25
|
import { getOrderNonce, getRecvTimeFromOrderNonce } from "./orders/orderNonce.js";
|
|
25
26
|
import { isPerpBalance, isPerpProduct, isSpotBalance, isSpotProduct } from "./productTypeFilter.js";
|
|
26
27
|
import { toPrintableObject } from "./toPrintableObject.js";
|
|
27
|
-
export { BigNumbers, NADO_PRODUCT_DECIMALS, 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 };
|
|
28
|
+
export { BigNumbers, NADO_PRODUCT_DECIMALS, TimeInSeconds, WalletNotProvidedError, addDecimals, asyncResult, bitMaskValue, calcBorrowRateForTimeRange, calcBorrowRatePerSecond, calcPerpBalanceNotionalValue, calcPerpBalanceValue, calcRealizedDepositRateForTimeRange, calcSpotBalanceValue, calcTotalBorrowed, calcTotalDeposited, calcUtilizationRatio, clampBigNumber, createDeterministicLinkedSignerPrivateKey, getDefaultRecvTime, getNadoClientTypeHeaders, 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-CJqaxn67.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-C7qa--Ug.js";
|
|
2
2
|
export { calcBorrowRateForTimeRange, calcBorrowRatePerSecond, calcRealizedDepositRateForTimeRange, calcTotalBorrowed, calcTotalDeposited, calcUtilizationRatio };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isWriteableContract.cjs","names":[],"sources":["../../src/utils/isWriteableContract.ts"],"sourcesContent":["import { Abi } from 'viem';\nimport {
|
|
1
|
+
{"version":3,"file":"isWriteableContract.cjs","names":[],"sources":["../../src/utils/isWriteableContract.ts"],"sourcesContent":["import { Abi } from 'viem';\nimport { WriteableContractInstance } from '../types/viemTypes';\n\nexport function isWriteableContract<T extends { abi: Abi }>(\n contract: T,\n): contract is T & WriteableContractInstance<T['abi']> {\n return 'write' in contract;\n}\n"],"mappings":";;AAGA,SAAgB,oBACd,UACqD;CACrD,OAAO,WAAW;AACpB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as isWriteableContract } from "../isWriteableContract-
|
|
1
|
+
import { t as isWriteableContract } from "../isWriteableContract-BiNSZzx3.cjs";
|
|
2
2
|
export { isWriteableContract };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as isWriteableContract } from "../isWriteableContract-
|
|
1
|
+
import { t as isWriteableContract } from "../isWriteableContract-DjxRDGtF.js";
|
|
2
2
|
export { isWriteableContract };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isWriteableContract.js","names":[],"sources":["../../src/utils/isWriteableContract.ts"],"sourcesContent":["import { Abi } from 'viem';\nimport {
|
|
1
|
+
{"version":3,"file":"isWriteableContract.js","names":[],"sources":["../../src/utils/isWriteableContract.ts"],"sourcesContent":["import { Abi } from 'viem';\nimport { WriteableContractInstance } from '../types/viemTypes';\n\nexport function isWriteableContract<T extends { abi: Abi }>(\n contract: T,\n): contract is T & WriteableContractInstance<T['abi']> {\n return 'write' in contract;\n}\n"],"mappings":";AAGA,SAAgB,oBACd,UACqD;CACrD,OAAO,WAAW;AACpB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as mapValues } from "../mapValues-
|
|
1
|
+
import { t as mapValues } from "../mapValues-CXY2PhZB.cjs";
|
|
2
2
|
export { mapValues };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as mapValues } from "../mapValues-
|
|
1
|
+
import { t as mapValues } from "../mapValues-D7iqAHOZ.js";
|
|
2
2
|
export { mapValues };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../../../appendixTwapValue-
|
|
1
|
+
import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../../../appendixTwapValue-CNS7Tjmq.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-DJ_gK_zH.js";
|
|
2
2
|
export { packTwapOrderAppendixValue, unpackTwapOrderAppendixValue };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as bitMaskValue } from "../../../bitMaskValue-
|
|
1
|
+
import { t as bitMaskValue } from "../../../bitMaskValue-B9gKD-s2.cjs";
|
|
2
2
|
export { bitMaskValue };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as bitMaskValue } from "../../../bitMaskValue-
|
|
1
|
+
import { t as bitMaskValue } from "../../../bitMaskValue-CnBOFZJO.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-CNS7Tjmq.cjs";
|
|
2
|
+
import { t as bitMaskValue } from "../../../bitMaskValue-B9gKD-s2.cjs";
|
|
3
|
+
import { t as packOrderAppendix } from "../../../packOrderAppendix-CogBpIvf.cjs";
|
|
4
|
+
import { t as PackedOrderAppendixBits } from "../../../types-DkBOmSwM.cjs";
|
|
5
|
+
import { t as unpackOrderAppendix } from "../../../unpackOrderAppendix-DyaR_1OA.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-DJ_gK_zH.js";
|
|
2
|
+
import { t as bitMaskValue } from "../../../bitMaskValue-CnBOFZJO.js";
|
|
3
|
+
import { t as packOrderAppendix } from "../../../packOrderAppendix-DGcuEwU9.js";
|
|
4
|
+
import { t as PackedOrderAppendixBits } from "../../../types-CZNaX1KL.js";
|
|
5
|
+
import { t as unpackOrderAppendix } from "../../../unpackOrderAppendix-YQ0wi7uU.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-CogBpIvf.cjs";
|
|
2
2
|
export { packOrderAppendix };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as packOrderAppendix } from "../../../packOrderAppendix-
|
|
1
|
+
import { t as packOrderAppendix } from "../../../packOrderAppendix-DGcuEwU9.js";
|
|
2
2
|
export { packOrderAppendix };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as PackedOrderAppendixBits } from "../../../types-
|
|
1
|
+
import { t as PackedOrderAppendixBits } from "../../../types-DkBOmSwM.cjs";
|
|
2
2
|
export { PackedOrderAppendixBits };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as PackedOrderAppendixBits } from "../../../types-
|
|
1
|
+
import { t as PackedOrderAppendixBits } from "../../../types-CZNaX1KL.js";
|
|
2
2
|
export { PackedOrderAppendixBits };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as unpackOrderAppendix } from "../../../unpackOrderAppendix-
|
|
1
|
+
import { t as unpackOrderAppendix } from "../../../unpackOrderAppendix-DyaR_1OA.cjs";
|
|
2
2
|
export { unpackOrderAppendix };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as unpackOrderAppendix } from "../../../unpackOrderAppendix-
|
|
1
|
+
import { t as unpackOrderAppendix } from "../../../unpackOrderAppendix-YQ0wi7uU.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-CNS7Tjmq.cjs";
|
|
2
|
+
import { t as bitMaskValue } from "../../bitMaskValue-B9gKD-s2.cjs";
|
|
3
|
+
import { t as packOrderAppendix } from "../../packOrderAppendix-CogBpIvf.cjs";
|
|
4
|
+
import { t as PackedOrderAppendixBits } from "../../types-DkBOmSwM.cjs";
|
|
5
|
+
import { t as unpackOrderAppendix } from "../../unpackOrderAppendix-DyaR_1OA.cjs";
|
|
6
|
+
import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../../orderNonce-CTfv_-KZ.cjs";
|
|
7
|
+
import { t as getDefaultRecvTime } from "../../recvTime-DnaMp37j.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-DJ_gK_zH.js";
|
|
2
|
+
import { t as bitMaskValue } from "../../bitMaskValue-CnBOFZJO.js";
|
|
3
|
+
import { t as packOrderAppendix } from "../../packOrderAppendix-DGcuEwU9.js";
|
|
4
|
+
import { t as PackedOrderAppendixBits } from "../../types-CZNaX1KL.js";
|
|
5
|
+
import { t as unpackOrderAppendix } from "../../unpackOrderAppendix-YQ0wi7uU.js";
|
|
6
|
+
import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../../orderNonce-D0uz4sJe.js";
|
|
7
|
+
import { t as getDefaultRecvTime } from "../../recvTime-CL_idZLw.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-CTfv_-KZ.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-D0uz4sJe.js";
|
|
2
2
|
export { getOrderNonce, getRecvTimeFromOrderNonce };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as getDefaultRecvTime } from "../../recvTime-
|
|
1
|
+
import { t as getDefaultRecvTime } from "../../recvTime-DnaMp37j.cjs";
|
|
2
2
|
export { getDefaultRecvTime };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as getDefaultRecvTime } from "../../recvTime-
|
|
1
|
+
import { t as getDefaultRecvTime } from "../../recvTime-CL_idZLw.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-f9g4BkRz.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-DZfwAtvT.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-Mb8vgnLE.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-CwRQDvZ4.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-ByoFvQTu.cjs";
|
|
2
2
|
export { toPrintableObject };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as toPrintableObject } from "../toPrintableObject-
|
|
1
|
+
import { t as toPrintableObject } from "../toPrintableObject-CxHQ9l9x.js";
|
|
2
2
|
export { toPrintableObject };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nadohq/shared",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.36.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": "315e4f23dadefeb2f86f713e423241e81467d4c3"
|
|
56
56
|
}
|
package/src/consts/index.ts
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { NADO_CLIENT_TYPE_HEADER } from '../consts/clientType';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Builds the default request headers identifying the calling client. Used by every service client
|
|
5
|
+
* so that all outgoing requests are attributed to a client type.
|
|
6
|
+
*
|
|
7
|
+
* @param clientType - Client type to send. The header is omitted entirely when not given.
|
|
8
|
+
* @returns Headers to apply to all requests made by a service client.
|
|
9
|
+
*/
|
|
10
|
+
export function getNadoClientTypeHeaders(
|
|
11
|
+
clientType?: string,
|
|
12
|
+
): Record<string, string> {
|
|
13
|
+
if (!clientType) {
|
|
14
|
+
return {};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
return {
|
|
18
|
+
[NADO_CLIENT_TYPE_HEADER]: clientType,
|
|
19
|
+
};
|
|
20
|
+
}
|
package/src/utils/index.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from './balanceValue';
|
|
|
3
3
|
export * from './bytes32';
|
|
4
4
|
export * from './createDeterministicLinkedSignerPrivateKey';
|
|
5
5
|
export * from './errors';
|
|
6
|
+
export * from './getNadoClientTypeHeaders';
|
|
6
7
|
export * from './getValidatedAddress';
|
|
7
8
|
export * from './getValidatedHex';
|
|
8
9
|
export * from './interest';
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { Abi } from 'viem';
|
|
2
|
-
import {
|
|
3
|
-
ContractInstance,
|
|
4
|
-
WriteableContractInstance,
|
|
5
|
-
} from '../types/viemTypes';
|
|
2
|
+
import { WriteableContractInstance } from '../types/viemTypes';
|
|
6
3
|
|
|
7
|
-
export function isWriteableContract<
|
|
8
|
-
contract:
|
|
9
|
-
): contract is WriteableContractInstance<
|
|
4
|
+
export function isWriteableContract<T extends { abi: Abi }>(
|
|
5
|
+
contract: T,
|
|
6
|
+
): contract is T & WriteableContractInstance<T['abi']> {
|
|
10
7
|
return 'write' in contract;
|
|
11
8
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createDeterministicLinkedSignerPrivateKey-BFJnkRTJ.d.cts","names":[],"sources":["../src/utils/src/utils/createDeterministicLinkedSignerPrivateKey.ts"],"mappings":";;;;UAMU,MAAA,SAAe,UAAU;EACjC,YAAA,EAAc,uBAAA;EACd,OAAA;EACA,eAAA;AAAA;;;;;;;;iBAUoB,yCAAA,CACpB,MAAA,EAAQ,MAAA,GAAM,OAAA"}
|