@nadohq/shared 0.33.0 → 0.35.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/Airdrop-CO96ypdO.d.ts +72 -0
- package/dist/Airdrop-CO96ypdO.d.ts.map +1 -0
- package/dist/Airdrop-DK6Hu1ia.d.cts +72 -0
- package/dist/Airdrop-DK6Hu1ia.d.cts.map +1 -0
- package/dist/{BaseServerFailureError-lKtEbaZM.d.ts → BaseServerFailureError-CcCm1gsH.d.ts} +1 -1
- package/dist/{BaseServerFailureError-lKtEbaZM.d.ts.map → BaseServerFailureError-CcCm1gsH.d.ts.map} +1 -1
- package/dist/{BaseServerFailureError-q0hQxZbH.d.cts → BaseServerFailureError-azV-b1uL.d.cts} +1 -1
- package/dist/{BaseServerFailureError-q0hQxZbH.d.cts.map → BaseServerFailureError-azV-b1uL.d.cts.map} +1 -1
- package/dist/{BigNumbers-C2iMiWwo.d.ts → BigNumbers-DFd3bATP.d.ts} +1 -1
- package/dist/BigNumbers-DFd3bATP.d.ts.map +1 -0
- package/dist/{BigNumbers-Bj-QcbP_.d.cts → BigNumbers-tVrUhOAn.d.cts} +1 -1
- package/dist/BigNumbers-tVrUhOAn.d.cts.map +1 -0
- package/dist/{ChainEnv-CuhUM7XM.d.ts → ChainEnv-BUr6CKD1.d.ts} +1 -1
- package/dist/{ChainEnv-CuhUM7XM.d.ts.map → ChainEnv-BUr6CKD1.d.ts.map} +1 -1
- package/dist/{ChainEnv-BiybryWq.d.cts → ChainEnv-COccezf2.d.cts} +1 -1
- package/dist/{ChainEnv-BiybryWq.d.cts.map → ChainEnv-COccezf2.d.cts.map} +1 -1
- package/dist/{Clearinghouse-BSEaz5pq.d.cts → Clearinghouse-D--QeYGZ.d.cts} +1 -1
- package/dist/Clearinghouse-D--QeYGZ.d.cts.map +1 -0
- package/dist/{Clearinghouse-DnDIOiNH.d.ts → Clearinghouse-H9Val7Kq.d.ts} +1 -1
- package/dist/Clearinghouse-H9Val7Kq.d.ts.map +1 -0
- package/dist/{ERC20-D1Ys4UR9.d.ts → ERC20-Bhpw2LPW.d.ts} +1 -1
- package/dist/ERC20-Bhpw2LPW.d.ts.map +1 -0
- package/dist/{ERC20-B7MWgTx9.d.cts → ERC20-C3JS_mvX.d.cts} +1 -1
- package/dist/ERC20-C3JS_mvX.d.cts.map +1 -0
- package/dist/{Endpoint-CKPE7OC6.d.cts → Endpoint-DxK2BQcR.d.cts} +1 -1
- package/dist/Endpoint-DxK2BQcR.d.cts.map +1 -0
- package/dist/{Endpoint-CDL8LY0g.d.ts → Endpoint-fTFAhcue.d.ts} +1 -1
- package/dist/Endpoint-fTFAhcue.d.ts.map +1 -0
- package/dist/{MockERC20-H_LdnMKX.d.cts → MockERC20-C6p0Cuv1.d.cts} +1 -1
- package/dist/MockERC20-C6p0Cuv1.d.cts.map +1 -0
- package/dist/{MockERC20-Dvjx8zWd.d.ts → MockERC20-CyIYY-MV.d.ts} +1 -1
- package/dist/MockERC20-CyIYY-MV.d.ts.map +1 -0
- package/dist/{OrderExecutionType-DhfG5qLe.d.ts → OrderExecutionType-DcevbneB.d.ts} +1 -1
- package/dist/OrderExecutionType-DcevbneB.d.ts.map +1 -0
- package/dist/{OrderExecutionType-B-igYC1p.d.cts → OrderExecutionType-Di_84Fir.d.cts} +1 -1
- package/dist/OrderExecutionType-Di_84Fir.d.cts.map +1 -0
- package/dist/{PerpEngine-S4CxsOLz.d.ts → PerpEngine-CpnGe9tC.d.ts} +1 -1
- package/dist/PerpEngine-CpnGe9tC.d.ts.map +1 -0
- package/dist/{PerpEngine-BnN-Yxzr.d.cts → PerpEngine-CsZvqq3K.d.cts} +1 -1
- package/dist/PerpEngine-CsZvqq3K.d.cts.map +1 -0
- package/dist/{Querier-CEz3AkR5.d.cts → Querier-B4MGa7tI.d.cts} +1 -1
- package/dist/Querier-B4MGa7tI.d.cts.map +1 -0
- package/dist/{Querier-ktPkIit7.d.ts → Querier-BVukNwCf.d.ts} +1 -1
- package/dist/Querier-BVukNwCf.d.ts.map +1 -0
- package/dist/{SpotEngine-DICQOt6X.d.cts → SpotEngine-DnhNCnhq.d.cts} +1 -1
- package/dist/SpotEngine-DnhNCnhq.d.cts.map +1 -0
- package/dist/{SpotEngine-CxCXv_mh.d.ts → SpotEngine-DxC-HR5y.d.ts} +1 -1
- package/dist/SpotEngine-DxC-HR5y.d.ts.map +1 -0
- package/dist/{WalletNotProvidedError-CN0xJL6e.d.ts → WalletNotProvidedError-D5Bk1Qww.d.ts} +1 -1
- package/dist/{WalletNotProvidedError-CN0xJL6e.d.ts.map → WalletNotProvidedError-D5Bk1Qww.d.ts.map} +1 -1
- package/dist/{WalletNotProvidedError-DXwkasel.d.cts → WalletNotProvidedError-h5Su4K7x.d.cts} +1 -1
- package/dist/{WalletNotProvidedError-DXwkasel.d.cts.map → WalletNotProvidedError-h5Su4K7x.d.cts.map} +1 -1
- package/dist/{WithdrawPool-BwxqwHtJ.d.ts → WithdrawPool-tOohFOhE.d.ts} +1 -1
- package/dist/WithdrawPool-tOohFOhE.d.ts.map +1 -0
- package/dist/{WithdrawPool-BFEPzU-O.d.cts → WithdrawPool-veZxoYht.d.cts} +1 -1
- package/dist/WithdrawPool-veZxoYht.d.cts.map +1 -0
- package/dist/abis/Airdrop.cjs +86 -0
- package/dist/abis/Airdrop.cjs.map +1 -0
- package/dist/abis/Airdrop.d.cts +2 -0
- package/dist/abis/Airdrop.d.ts +2 -0
- package/dist/abis/Airdrop.js +85 -0
- package/dist/abis/Airdrop.js.map +1 -0
- package/dist/abis/Clearinghouse.d.cts +1 -1
- package/dist/abis/Clearinghouse.d.ts +1 -1
- package/dist/abis/ERC20.d.cts +1 -1
- package/dist/abis/ERC20.d.ts +1 -1
- package/dist/abis/Endpoint.d.cts +1 -1
- package/dist/abis/Endpoint.d.ts +1 -1
- package/dist/abis/MockERC20.d.cts +1 -1
- package/dist/abis/MockERC20.d.ts +1 -1
- package/dist/abis/PerpEngine.d.cts +1 -1
- package/dist/abis/PerpEngine.d.ts +1 -1
- package/dist/abis/Querier.d.cts +1 -1
- package/dist/abis/Querier.d.ts +1 -1
- package/dist/abis/SpotEngine.d.cts +1 -1
- package/dist/abis/SpotEngine.d.ts +1 -1
- package/dist/abis/WithdrawPool.d.cts +1 -1
- package/dist/abis/WithdrawPool.d.ts +1 -1
- package/dist/abis/index.cjs +2 -0
- package/dist/abis/index.d.cts +11 -10
- package/dist/abis/index.d.ts +11 -10
- package/dist/abis/index.js +2 -1
- package/dist/abis/nadoAbis.d.cts +1 -1
- package/dist/abis/nadoAbis.d.ts +1 -1
- package/dist/{appendixTwapValue-CZCE2qQo.d.cts → appendixTwapValue-CNS7Tjmq.d.cts} +2 -2
- package/dist/{appendixTwapValue-CZCE2qQo.d.cts.map → appendixTwapValue-CNS7Tjmq.d.cts.map} +1 -1
- package/dist/{appendixTwapValue-hvjIuxYz.d.ts → appendixTwapValue-DJ_gK_zH.d.ts} +2 -2
- package/dist/{appendixTwapValue-hvjIuxYz.d.ts.map → appendixTwapValue-DJ_gK_zH.d.ts.map} +1 -1
- package/dist/{approveDepositAllowance-Dqt8Wc3P.d.cts → approveDepositAllowance-C4q5eBqB.d.cts} +5 -5
- package/dist/{approveDepositAllowance-Dqt8Wc3P.d.cts.map → approveDepositAllowance-C4q5eBqB.d.cts.map} +1 -1
- package/dist/{approveDepositAllowance-BHEw6auf.d.ts → approveDepositAllowance-CatTGQsD.d.ts} +5 -5
- package/dist/{approveDepositAllowance-BHEw6auf.d.ts.map → approveDepositAllowance-CatTGQsD.d.ts.map} +1 -1
- package/dist/{asyncResult-SvtRCbOk.d.ts → asyncResult-BLLFP1kU.d.ts} +1 -1
- package/dist/{asyncResult-SvtRCbOk.d.ts.map → asyncResult-BLLFP1kU.d.ts.map} +1 -1
- package/dist/{asyncResult-uSvcciZS.d.cts → asyncResult-CjnetY6d.d.cts} +1 -1
- package/dist/{asyncResult-uSvcciZS.d.cts.map → asyncResult-CjnetY6d.d.cts.map} +1 -1
- package/dist/{balanceTypes-DdDBwUwZ.d.cts → balanceTypes-C6MUFfA3.d.cts} +3 -3
- package/dist/{balanceTypes-DdDBwUwZ.d.cts.map → balanceTypes-C6MUFfA3.d.cts.map} +1 -1
- package/dist/{balanceTypes-BLk1F6NY.d.ts → balanceTypes-DzGR7nny.d.ts} +3 -3
- package/dist/{balanceTypes-BLk1F6NY.d.ts.map → balanceTypes-DzGR7nny.d.ts.map} +1 -1
- package/dist/{balanceValue-0IotjlbD.d.cts → balanceValue-GaRs3xld.d.cts} +2 -2
- package/dist/{balanceValue-0IotjlbD.d.cts.map → balanceValue-GaRs3xld.d.cts.map} +1 -1
- package/dist/{balanceValue-G8L4pR0e.d.ts → balanceValue-toSYv804.d.ts} +2 -2
- package/dist/{balanceValue-G8L4pR0e.d.ts.map → balanceValue-toSYv804.d.ts.map} +1 -1
- package/dist/{bigNumber-D3ssF_uJ.d.cts → bigNumber-DGQBXEpO.d.cts} +1 -1
- package/dist/{bigNumber-D3ssF_uJ.d.cts.map → bigNumber-DGQBXEpO.d.cts.map} +1 -1
- package/dist/{bigNumber-DsRTR9zM.d.ts → bigNumber-DSlK3Bvm.d.ts} +1 -1
- package/dist/{bigNumber-DsRTR9zM.d.ts.map → bigNumber-DSlK3Bvm.d.ts.map} +1 -1
- package/dist/{bitMaskValue-2s-H6pY1.d.cts → bitMaskValue-B9gKD-s2.d.cts} +1 -1
- package/dist/{bitMaskValue-2s-H6pY1.d.cts.map → bitMaskValue-B9gKD-s2.d.cts.map} +1 -1
- package/dist/{bitMaskValue-DassPPW9.d.ts → bitMaskValue-CnBOFZJO.d.ts} +1 -1
- package/dist/{bitMaskValue-DassPPW9.d.ts.map → bitMaskValue-CnBOFZJO.d.ts.map} +1 -1
- package/dist/{bytes-DQ2CQ0dC.d.ts → bytes-BKfGiCzk.d.ts} +1 -1
- package/dist/bytes-BKfGiCzk.d.ts.map +1 -0
- package/dist/{bytes-GErzNSza.d.cts → bytes-C_gKSMK8.d.cts} +1 -1
- package/dist/bytes-C_gKSMK8.d.cts.map +1 -0
- package/dist/{bytes32-Bm0kWK7n.d.ts → bytes32-BbxfxTg5.d.ts} +3 -3
- package/dist/{bytes32-Bm0kWK7n.d.ts.map → bytes32-BbxfxTg5.d.ts.map} +1 -1
- package/dist/{bytes32-BVmiGtU4.d.cts → bytes32-D1f6ymZC.d.cts} +3 -3
- package/dist/{bytes32-BVmiGtU4.d.cts.map → bytes32-D1f6ymZC.d.cts.map} +1 -1
- package/dist/{chainEnvToChain-BTVc24Cl.d.cts → chainEnvToChain-7_v2f4pS.d.cts} +2 -2
- package/dist/{chainEnvToChain-BTVc24Cl.d.cts.map → chainEnvToChain-7_v2f4pS.d.cts.map} +1 -1
- package/dist/{chainEnvToChain-Bx0gnV-p.d.ts → chainEnvToChain-COaTyL3R.d.ts} +2 -2
- package/dist/{chainEnvToChain-Bx0gnV-p.d.ts.map → chainEnvToChain-COaTyL3R.d.ts.map} +1 -1
- package/dist/claimAirdropRewards-1nkd6vNA.d.ts +49 -0
- package/dist/claimAirdropRewards-1nkd6vNA.d.ts.map +1 -0
- package/dist/claimAirdropRewards-D_2tnS73.d.cts +49 -0
- package/dist/claimAirdropRewards-D_2tnS73.d.cts.map +1 -0
- package/dist/{clamp-BG8pfPTy.d.cts → clamp-BADFSIMw.d.cts} +1 -1
- package/dist/{clamp-BG8pfPTy.d.cts.map → clamp-BADFSIMw.d.cts.map} +1 -1
- package/dist/{clamp-tcJ-3GBf.d.ts → clamp-BibF2yI4.d.ts} +1 -1
- package/dist/{clamp-tcJ-3GBf.d.ts.map → clamp-BibF2yI4.d.ts.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/chainEnvToChain.d.cts +1 -1
- package/dist/consts/chainEnvToChain.d.ts +1 -1
- 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 +4 -3
- package/dist/consts/index.d.ts +4 -3
- 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-Bro8BtTs.d.ts → createDeterministicLinkedSignerPrivateKey-D4e8yf2e.d.ts} +3 -3
- package/dist/createDeterministicLinkedSignerPrivateKey-D4e8yf2e.d.ts.map +1 -0
- package/dist/{createDeterministicLinkedSignerPrivateKey-wu-Hp9xI.d.cts → createDeterministicLinkedSignerPrivateKey-wB4fNwEc.d.cts} +3 -3
- package/dist/{createDeterministicLinkedSignerPrivateKey-wu-Hp9xI.d.cts.map → createDeterministicLinkedSignerPrivateKey-wB4fNwEc.d.cts.map} +1 -1
- package/dist/{decimalAdjustment-DTyP-bzx.d.cts → decimalAdjustment-CB_T5_nI.d.cts} +2 -2
- package/dist/{decimalAdjustment-DTyP-bzx.d.cts.map → decimalAdjustment-CB_T5_nI.d.cts.map} +1 -1
- package/dist/{decimalAdjustment-5cvNu6vi.d.ts → decimalAdjustment-Dlna5cvK.d.ts} +2 -2
- package/dist/{decimalAdjustment-5cvNu6vi.d.ts.map → decimalAdjustment-Dlna5cvK.d.ts.map} +1 -1
- package/dist/deployments/index.d.cts +2 -2
- package/dist/deployments/index.d.ts +2 -2
- package/dist/{depositCollateral-DnI9P28B.d.cts → depositCollateral-BiZtmFJY.d.cts} +3 -3
- package/dist/{depositCollateral-DnI9P28B.d.cts.map → depositCollateral-BiZtmFJY.d.cts.map} +1 -1
- package/dist/{depositCollateral-joXPokvk.d.ts → depositCollateral-ed8PcBbs.d.ts} +3 -3
- package/dist/{depositCollateral-joXPokvk.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-D3lBy0wX.d.cts → eip712ValueTypes-B6cczPL4.d.cts} +3 -3
- package/dist/{eip712ValueTypes-D3lBy0wX.d.cts.map → eip712ValueTypes-B6cczPL4.d.cts.map} +1 -1
- package/dist/{eip712ValueTypes-DUPOOfWP.d.ts → eip712ValueTypes-DWRbSrU6.d.ts} +3 -3
- package/dist/{eip712ValueTypes-DUPOOfWP.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-Cf7ApKrp.d.cts → encoding-BOXKE9zU.d.cts} +2 -2
- package/dist/{encoding-Cf7ApKrp.d.cts.map → encoding-BOXKE9zU.d.cts.map} +1 -1
- package/dist/{encoding-IiqAceVl.d.ts → encoding-Cew-9oja.d.ts} +2 -2
- package/dist/{encoding-IiqAceVl.d.ts.map → encoding-Cew-9oja.d.ts.map} +1 -1
- package/dist/{errorCodes-iVKkzL4K.d.ts → errorCodes-Cao60mur.d.ts} +1 -1
- package/dist/{errorCodes-iVKkzL4K.d.ts.map → errorCodes-Cao60mur.d.ts.map} +1 -1
- package/dist/{errorCodes-4V4XODmG.d.cts → errorCodes-DJU29kDH.d.cts} +1 -1
- package/dist/{errorCodes-4V4XODmG.d.cts.map → errorCodes-DJU29kDH.d.cts.map} +1 -1
- package/dist/execute/approveDepositAllowance.d.cts +1 -1
- package/dist/execute/approveDepositAllowance.d.ts +1 -1
- package/dist/execute/claimAirdropRewards.cjs +20 -0
- package/dist/execute/claimAirdropRewards.cjs.map +1 -0
- package/dist/execute/claimAirdropRewards.d.cts +2 -0
- package/dist/execute/claimAirdropRewards.d.ts +2 -0
- package/dist/execute/claimAirdropRewards.js +19 -0
- package/dist/execute/claimAirdropRewards.js.map +1 -0
- package/dist/execute/depositCollateral.d.cts +1 -1
- package/dist/execute/depositCollateral.d.ts +1 -1
- package/dist/execute/index.cjs +2 -0
- package/dist/execute/index.d.cts +4 -3
- package/dist/execute/index.d.ts +4 -3
- package/dist/execute/index.js +2 -1
- 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-ePSuQTF4.d.cts → getNadoEIP712Domain-DWkoNKMb.d.cts} +1 -1
- package/dist/{getNadoEIP712Domain-ePSuQTF4.d.cts.map → getNadoEIP712Domain-DWkoNKMb.d.cts.map} +1 -1
- package/dist/{getNadoEIP712Domain-CWcZ6i_Q.d.ts → getNadoEIP712Domain-EesdKKUp.d.ts} +1 -1
- package/dist/{getNadoEIP712Domain-CWcZ6i_Q.d.ts.map → getNadoEIP712Domain-EesdKKUp.d.ts.map} +1 -1
- package/dist/{getNadoEIP712PrimaryType-C1d67853.d.cts → getNadoEIP712PrimaryType-Bejv3c1B.d.cts} +2 -2
- package/dist/{getNadoEIP712PrimaryType-C1d67853.d.cts.map → getNadoEIP712PrimaryType-Bejv3c1B.d.cts.map} +1 -1
- package/dist/{getNadoEIP712PrimaryType-DVtqy63V.d.ts → getNadoEIP712PrimaryType-D_8Q2HLf.d.ts} +2 -2
- package/dist/{getNadoEIP712PrimaryType-DVtqy63V.d.ts.map → getNadoEIP712PrimaryType-D_8Q2HLf.d.ts.map} +1 -1
- package/dist/{getNadoEIP712Types-D4NbwzX-.d.cts → getNadoEIP712Types-Dk91ok96.d.cts} +2 -2
- package/dist/{getNadoEIP712Types-D4NbwzX-.d.cts.map → getNadoEIP712Types-Dk91ok96.d.cts.map} +1 -1
- package/dist/{getNadoEIP712Types-0rSqR0TZ.d.ts → getNadoEIP712Types-Pqw_eS7W.d.ts} +2 -2
- package/dist/{getNadoEIP712Types-0rSqR0TZ.d.ts.map → getNadoEIP712Types-Pqw_eS7W.d.ts.map} +1 -1
- package/dist/{getNadoEIP712Values-CPbB6pLq.d.ts → getNadoEIP712Values-BcqdLZIm.d.ts} +3 -3
- package/dist/{getNadoEIP712Values-CPbB6pLq.d.ts.map → getNadoEIP712Values-BcqdLZIm.d.ts.map} +1 -1
- package/dist/{getNadoEIP712Values-pRIAPwhZ.d.cts → getNadoEIP712Values-DLq9NjdD.d.cts} +3 -3
- package/dist/{getNadoEIP712Values-pRIAPwhZ.d.cts.map → getNadoEIP712Values-DLq9NjdD.d.cts.map} +1 -1
- package/dist/{getOrderVerifyingAddress-BDVUTxrs.d.ts → getOrderVerifyingAddress-BucrPmXA.d.ts} +1 -1
- package/dist/{getOrderVerifyingAddress-BDVUTxrs.d.ts.map → getOrderVerifyingAddress-BucrPmXA.d.ts.map} +1 -1
- package/dist/{getOrderVerifyingAddress-CyuhcDVZ.d.cts → getOrderVerifyingAddress-DLu7zmfY.d.cts} +1 -1
- package/dist/{getOrderVerifyingAddress-CyuhcDVZ.d.cts.map → getOrderVerifyingAddress-DLu7zmfY.d.cts.map} +1 -1
- package/dist/{getSignedTransactionRequest-BvscxzgU.d.ts → getSignedTransactionRequest-BlSnuwHY.d.ts} +3 -3
- package/dist/{getSignedTransactionRequest-BvscxzgU.d.ts.map → getSignedTransactionRequest-BlSnuwHY.d.ts.map} +1 -1
- package/dist/{getSignedTransactionRequest-BrzkB8B7.d.cts → getSignedTransactionRequest-DO61MCC5.d.cts} +3 -3
- package/dist/{getSignedTransactionRequest-BrzkB8B7.d.cts.map → getSignedTransactionRequest-DO61MCC5.d.cts.map} +1 -1
- package/dist/{getValidatedAddress-DD1N6pfc.d.ts → getValidatedAddress-BUja91qP.d.ts} +1 -1
- package/dist/getValidatedAddress-BUja91qP.d.ts.map +1 -0
- package/dist/{getValidatedAddress-TNxNngvc.d.cts → getValidatedAddress-BlhlqXfr.d.cts} +1 -1
- package/dist/getValidatedAddress-BlhlqXfr.d.cts.map +1 -0
- package/dist/{getValidatedHex-CEtmzBzc.d.cts → getValidatedHex-DZ1oKuMy.d.cts} +1 -1
- package/dist/getValidatedHex-DZ1oKuMy.d.cts.map +1 -0
- package/dist/{getValidatedHex-1VRieEnK.d.ts → getValidatedHex-VgG_L7ux.d.ts} +1 -1
- package/dist/getValidatedHex-VgG_L7ux.d.ts.map +1 -0
- package/dist/{healthTypes-rZq7PTC8.d.cts → healthTypes-C4CsZen7.d.cts} +1 -1
- package/dist/{healthTypes-rZq7PTC8.d.cts.map → healthTypes-C4CsZen7.d.cts.map} +1 -1
- package/dist/{healthTypes-D_CkTy9b.d.ts → healthTypes-CFKNKLNw.d.ts} +1 -1
- package/dist/{healthTypes-D_CkTy9b.d.ts.map → healthTypes-CFKNKLNw.d.ts.map} +1 -1
- package/dist/index.cjs +8 -0
- package/dist/index.d.cts +70 -66
- package/dist/index.d.ts +70 -66
- package/dist/index.js +5 -1
- package/dist/{interest-BGRNvCxK.d.ts → interest-C7qa--Ug.d.ts} +6 -6
- package/dist/{interest-BGRNvCxK.d.ts.map → interest-C7qa--Ug.d.ts.map} +1 -1
- package/dist/{interest-DbQOrmBI.d.cts → interest-CJqaxn67.d.cts} +6 -6
- package/dist/{interest-DbQOrmBI.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-D2u-oFkX.d.cts → mapValues-CXY2PhZB.d.cts} +1 -1
- package/dist/{mapValues-D2u-oFkX.d.cts.map → mapValues-CXY2PhZB.d.cts.map} +1 -1
- package/dist/{mapValues-BZW7dU_i.d.ts → mapValues-D7iqAHOZ.d.ts} +1 -1
- package/dist/{mapValues-BZW7dU_i.d.ts.map → mapValues-D7iqAHOZ.d.ts.map} +1 -1
- package/dist/{marketTypes-B5PFCPzN.d.ts → marketTypes-BW-Us0AL.d.ts} +2 -2
- package/dist/{marketTypes-B5PFCPzN.d.ts.map → marketTypes-BW-Us0AL.d.ts.map} +1 -1
- package/dist/{marketTypes-DRZEFgF4.d.cts → marketTypes-Unc2_4ve.d.cts} +2 -2
- package/dist/{marketTypes-DRZEFgF4.d.cts.map → marketTypes-Unc2_4ve.d.cts.map} +1 -1
- package/dist/{nadoAbis-DR-8nVpe.d.ts → nadoAbis-Cbe2rZl3.d.ts} +1 -1
- package/dist/{nadoAbis-DR-8nVpe.d.ts.map → nadoAbis-Cbe2rZl3.d.ts.map} +1 -1
- package/dist/{nadoAbis-m_V_D5Iu.d.cts → nadoAbis-CzwLA8MZ.d.cts} +1 -1
- package/dist/{nadoAbis-m_V_D5Iu.d.cts.map → nadoAbis-CzwLA8MZ.d.cts.map} +1 -1
- package/dist/{nadoContractTypes-BX9lth68.d.ts → nadoContractTypes-DHAQEqKf.d.ts} +3 -3
- package/dist/{nadoContractTypes-BX9lth68.d.ts.map → nadoContractTypes-DHAQEqKf.d.ts.map} +1 -1
- package/dist/{nadoContractTypes-8MNIkohy.d.cts → nadoContractTypes-DscRd5-d.d.cts} +3 -3
- package/dist/{nadoContractTypes-8MNIkohy.d.cts.map → nadoContractTypes-DscRd5-d.d.cts.map} +1 -1
- package/dist/{orderAppendixTypes-DQU50ISh.d.ts → orderAppendixTypes-BePs4Ntk.d.ts} +3 -3
- package/dist/{orderAppendixTypes-DQU50ISh.d.ts.map → orderAppendixTypes-BePs4Ntk.d.ts.map} +1 -1
- package/dist/{orderAppendixTypes-DIeaFc_g.d.cts → orderAppendixTypes-r-Zy2f_x.d.cts} +3 -3
- package/dist/{orderAppendixTypes-DIeaFc_g.d.cts.map → orderAppendixTypes-r-Zy2f_x.d.cts.map} +1 -1
- package/dist/{orderDigest-M5b8ibGE.d.cts → orderDigest-DbpeOiaf.d.cts} +2 -2
- package/dist/{orderDigest-M5b8ibGE.d.cts.map → orderDigest-DbpeOiaf.d.cts.map} +1 -1
- package/dist/{orderDigest-WJMRxWSr.d.ts → orderDigest-DiC-SWoU.d.ts} +2 -2
- package/dist/{orderDigest-WJMRxWSr.d.ts.map → orderDigest-DiC-SWoU.d.ts.map} +1 -1
- package/dist/{orderNonce-UUMaxlBA.d.cts → orderNonce-CTfv_-KZ.d.cts} +1 -1
- package/dist/{orderNonce-UUMaxlBA.d.cts.map → orderNonce-CTfv_-KZ.d.cts.map} +1 -1
- package/dist/{orderNonce-Qf0AYXz9.d.ts → orderNonce-D0uz4sJe.d.ts} +1 -1
- package/dist/{orderNonce-Qf0AYXz9.d.ts.map → orderNonce-D0uz4sJe.d.ts.map} +1 -1
- package/dist/{packOrderAppendix-DyfvlAmI.d.cts → packOrderAppendix-CogBpIvf.d.cts} +2 -2
- package/dist/{packOrderAppendix-DyfvlAmI.d.cts.map → packOrderAppendix-CogBpIvf.d.cts.map} +1 -1
- package/dist/{packOrderAppendix-BKmQ-8tV.d.ts → packOrderAppendix-DGcuEwU9.d.ts} +2 -2
- package/dist/{packOrderAppendix-BKmQ-8tV.d.ts.map → packOrderAppendix-DGcuEwU9.d.ts.map} +1 -1
- package/dist/{productIds-CaLvVM2C.d.ts → productIds-BJ4tQXSm.d.ts} +1 -1
- package/dist/productIds-BJ4tQXSm.d.ts.map +1 -0
- package/dist/{productIds-BEA5iUth.d.cts → productIds-Cr-PFBSk.d.cts} +1 -1
- package/dist/productIds-Cr-PFBSk.d.cts.map +1 -0
- package/dist/{productTypeFilter-D0N0FKt4.d.ts → productTypeFilter-DZfwAtvT.d.ts} +3 -3
- package/dist/{productTypeFilter-D0N0FKt4.d.ts.map → productTypeFilter-DZfwAtvT.d.ts.map} +1 -1
- package/dist/{productTypeFilter-DoGpp8hw.d.cts → productTypeFilter-f9g4BkRz.d.cts} +3 -3
- package/dist/{productTypeFilter-DoGpp8hw.d.cts.map → productTypeFilter-f9g4BkRz.d.cts.map} +1 -1
- package/dist/{productTypes-B7T8OB24.d.ts → productTypes-COyDnEbG.d.ts} +1 -1
- package/dist/{productTypes-B7T8OB24.d.ts.map → productTypes-COyDnEbG.d.ts.map} +1 -1
- package/dist/{productTypes-COwl-Svz.d.cts → productTypes-Ca7Kqnax.d.cts} +1 -1
- package/dist/{productTypes-COwl-Svz.d.cts.map → productTypes-Ca7Kqnax.d.cts.map} +1 -1
- package/dist/{recvTime-C5rnDnyo.d.ts → recvTime-CL_idZLw.d.ts} +1 -1
- package/dist/recvTime-CL_idZLw.d.ts.map +1 -0
- package/dist/{recvTime-CGPFJaVg.d.cts → recvTime-DnaMp37j.d.cts} +1 -1
- package/dist/recvTime-DnaMp37j.d.cts.map +1 -0
- package/dist/{signableRequestType-Cj0JFAJ1.d.ts → signableRequestType-B-IEDkA3.d.ts} +2 -2
- package/dist/{signableRequestType-Cj0JFAJ1.d.ts.map → signableRequestType-B-IEDkA3.d.ts.map} +1 -1
- package/dist/{signableRequestType-CILYXUsJ.d.cts → signableRequestType-CrGJVQRc.d.cts} +2 -2
- package/dist/{signableRequestType-CILYXUsJ.d.cts.map → signableRequestType-CrGJVQRc.d.cts.map} +1 -1
- package/dist/{signatureParamTypes-CuTGjnn3.d.cts → signatureParamTypes-DjMkCp5D.d.cts} +4 -4
- package/dist/{signatureParamTypes-CuTGjnn3.d.cts.map → signatureParamTypes-DjMkCp5D.d.cts.map} +1 -1
- package/dist/{signatureParamTypes-CeVzymiN.d.ts → signatureParamTypes-uDa_9pfk.d.ts} +4 -4
- package/dist/{signatureParamTypes-CeVzymiN.d.ts.map → signatureParamTypes-uDa_9pfk.d.ts.map} +1 -1
- package/dist/{signatureTypes-CKnj4AM2.d.ts → signatureTypes-CKi41FT1.d.ts} +1 -1
- package/dist/signatureTypes-CKi41FT1.d.ts.map +1 -0
- package/dist/{signatureTypes-DLj7Jdxv.d.cts → signatureTypes-DFbxuXCN.d.cts} +1 -1
- package/dist/signatureTypes-DFbxuXCN.d.cts.map +1 -0
- package/dist/{subaccountTypes-Drgy-wfh.d.ts → subaccountTypes-DM7bVXJU.d.ts} +2 -2
- package/dist/{subaccountTypes-Drgy-wfh.d.ts.map → subaccountTypes-DM7bVXJU.d.ts.map} +1 -1
- package/dist/{subaccountTypes-BZhlUXiR.d.cts → subaccountTypes-TLu4_pDM.d.cts} +2 -2
- package/dist/{subaccountTypes-BZhlUXiR.d.cts.map → subaccountTypes-TLu4_pDM.d.cts.map} +1 -1
- package/dist/{sumBigNumberBy-CY0ExAq2.d.ts → sumBigNumberBy-DvRQv-qH.d.ts} +1 -1
- package/dist/{sumBigNumberBy-CY0ExAq2.d.ts.map → sumBigNumberBy-DvRQv-qH.d.ts.map} +1 -1
- package/dist/{sumBigNumberBy-lCtvVOV3.d.cts → sumBigNumberBy-VDqHKxCL.d.cts} +1 -1
- package/dist/{sumBigNumberBy-lCtvVOV3.d.cts.map → sumBigNumberBy-VDqHKxCL.d.cts.map} +1 -1
- package/dist/{time-qxKJesBm.d.ts → time-CwRQDvZ4.d.ts} +1 -1
- package/dist/{time-qxKJesBm.d.ts.map → time-CwRQDvZ4.d.ts.map} +1 -1
- package/dist/{time-DQcdrUXm.d.cts → time-Mb8vgnLE.d.cts} +1 -1
- package/dist/{time-DQcdrUXm.d.cts.map → time-Mb8vgnLE.d.cts.map} +1 -1
- package/dist/{toBigInt-DSkcduN6.d.ts → toBigInt-DmsDdQeF.d.ts} +2 -2
- package/dist/toBigInt-DmsDdQeF.d.ts.map +1 -0
- package/dist/{toBigInt-B8tsovob.d.cts → toBigInt-rwR3pRam.d.cts} +2 -2
- package/dist/toBigInt-rwR3pRam.d.cts.map +1 -0
- package/dist/{toIntegerString-IbOUu6_I.d.cts → toIntegerString-89Wn3cp6.d.cts} +2 -2
- package/dist/toIntegerString-89Wn3cp6.d.cts.map +1 -0
- package/dist/{toIntegerString-Bn5odb7O.d.ts → toIntegerString-CtEX9m8u.d.ts} +2 -2
- package/dist/toIntegerString-CtEX9m8u.d.ts.map +1 -0
- package/dist/{toPrintableObject-zlDajAQ0.d.cts → toPrintableObject-ByoFvQTu.d.cts} +1 -1
- package/dist/{toPrintableObject-zlDajAQ0.d.cts.map → toPrintableObject-ByoFvQTu.d.cts.map} +1 -1
- package/dist/{toPrintableObject-8v8l_p0v.d.ts → toPrintableObject-CxHQ9l9x.d.ts} +1 -1
- package/dist/{toPrintableObject-8v8l_p0v.d.ts.map → toPrintableObject-CxHQ9l9x.d.ts.map} +1 -1
- package/dist/types/BaseServerFailureError.d.cts +1 -1
- package/dist/types/BaseServerFailureError.d.ts +1 -1
- 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/balanceTypes.d.cts +1 -1
- package/dist/types/balanceTypes.d.ts +1 -1
- package/dist/types/bytes.d.cts +1 -1
- package/dist/types/bytes.d.ts +1 -1
- package/dist/types/errorCodes.d.cts +1 -1
- package/dist/types/errorCodes.d.ts +1 -1
- package/dist/types/healthTypes.d.cts +1 -1
- package/dist/types/healthTypes.d.ts +1 -1
- package/dist/types/index.d.cts +14 -14
- package/dist/types/index.d.ts +14 -14
- 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/productTypes.d.cts +1 -1
- package/dist/types/productTypes.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-Be-SKK2F.d.ts → types-CZNaX1KL.d.ts} +1 -1
- package/dist/{types-Be-SKK2F.d.ts.map → types-CZNaX1KL.d.ts.map} +1 -1
- package/dist/{types-6WRBoXvb.d.cts → types-DkBOmSwM.d.cts} +1 -1
- package/dist/{types-6WRBoXvb.d.cts.map → types-DkBOmSwM.d.cts.map} +1 -1
- package/dist/{unpackOrderAppendix-CwxSxPOH.d.cts → unpackOrderAppendix-DyaR_1OA.d.cts} +3 -3
- package/dist/{unpackOrderAppendix-CwxSxPOH.d.cts.map → unpackOrderAppendix-DyaR_1OA.d.cts.map} +1 -1
- package/dist/{unpackOrderAppendix-Q_DrCNaG.d.ts → unpackOrderAppendix-YQ0wi7uU.d.ts} +3 -3
- package/dist/{unpackOrderAppendix-Q_DrCNaG.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 +29 -28
- package/dist/utils/index.d.ts +29 -28
- package/dist/utils/index.js +2 -1
- package/dist/utils/interest.cjs +3 -3
- package/dist/utils/interest.cjs.map +1 -1
- package/dist/utils/interest.d.cts +1 -1
- package/dist/utils/interest.d.ts +1 -1
- package/dist/utils/interest.js +3 -3
- package/dist/utils/interest.js.map +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/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-DrxAdyOl.d.cts → viemTypes-C_lZe_py.d.cts} +1 -1
- package/dist/{viemTypes-DrxAdyOl.d.cts.map → viemTypes-C_lZe_py.d.cts.map} +1 -1
- package/dist/{viemTypes-ChJk9MYI.d.ts → viemTypes-DFkgDmXV.d.ts} +1 -1
- package/dist/{viemTypes-ChJk9MYI.d.ts.map → viemTypes-DFkgDmXV.d.ts.map} +1 -1
- package/package.json +2 -2
- package/src/abis/Airdrop.ts +86 -0
- package/src/abis/index.ts +1 -0
- package/src/consts/clientType.ts +5 -0
- package/src/consts/index.ts +1 -0
- package/src/eip712/signatureParamTypes.ts +1 -1
- package/src/execute/claimAirdropRewards.ts +58 -0
- package/src/execute/index.ts +1 -0
- package/src/utils/getNadoClientTypeHeaders.ts +20 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/interest.ts +3 -3
- package/src/utils/isWriteableContract.ts +4 -7
- package/dist/BigNumbers-Bj-QcbP_.d.cts.map +0 -1
- package/dist/BigNumbers-C2iMiWwo.d.ts.map +0 -1
- package/dist/Clearinghouse-BSEaz5pq.d.cts.map +0 -1
- package/dist/Clearinghouse-DnDIOiNH.d.ts.map +0 -1
- package/dist/ERC20-B7MWgTx9.d.cts.map +0 -1
- package/dist/ERC20-D1Ys4UR9.d.ts.map +0 -1
- package/dist/Endpoint-CDL8LY0g.d.ts.map +0 -1
- package/dist/Endpoint-CKPE7OC6.d.cts.map +0 -1
- package/dist/MockERC20-Dvjx8zWd.d.ts.map +0 -1
- package/dist/MockERC20-H_LdnMKX.d.cts.map +0 -1
- package/dist/OrderExecutionType-B-igYC1p.d.cts.map +0 -1
- package/dist/OrderExecutionType-DhfG5qLe.d.ts.map +0 -1
- package/dist/PerpEngine-BnN-Yxzr.d.cts.map +0 -1
- package/dist/PerpEngine-S4CxsOLz.d.ts.map +0 -1
- package/dist/Querier-CEz3AkR5.d.cts.map +0 -1
- package/dist/Querier-ktPkIit7.d.ts.map +0 -1
- package/dist/SpotEngine-CxCXv_mh.d.ts.map +0 -1
- package/dist/SpotEngine-DICQOt6X.d.cts.map +0 -1
- package/dist/WithdrawPool-BFEPzU-O.d.cts.map +0 -1
- package/dist/WithdrawPool-BwxqwHtJ.d.ts.map +0 -1
- package/dist/bytes-DQ2CQ0dC.d.ts.map +0 -1
- package/dist/bytes-GErzNSza.d.cts.map +0 -1
- package/dist/createDeterministicLinkedSignerPrivateKey-Bro8BtTs.d.ts.map +0 -1
- package/dist/getValidatedAddress-DD1N6pfc.d.ts.map +0 -1
- package/dist/getValidatedAddress-TNxNngvc.d.cts.map +0 -1
- package/dist/getValidatedHex-1VRieEnK.d.ts.map +0 -1
- package/dist/getValidatedHex-CEtmzBzc.d.cts.map +0 -1
- package/dist/isWriteableContract-BApMCbPn.d.cts +0 -8
- package/dist/isWriteableContract-BApMCbPn.d.cts.map +0 -1
- package/dist/isWriteableContract-CJQ4QKqa.d.ts +0 -8
- package/dist/isWriteableContract-CJQ4QKqa.d.ts.map +0 -1
- package/dist/productIds-BEA5iUth.d.cts.map +0 -1
- package/dist/productIds-CaLvVM2C.d.ts.map +0 -1
- package/dist/recvTime-C5rnDnyo.d.ts.map +0 -1
- package/dist/recvTime-CGPFJaVg.d.cts.map +0 -1
- package/dist/signatureTypes-CKnj4AM2.d.ts.map +0 -1
- package/dist/signatureTypes-DLj7Jdxv.d.cts.map +0 -1
- package/dist/toBigInt-B8tsovob.d.cts.map +0 -1
- package/dist/toBigInt-DSkcduN6.d.ts.map +0 -1
- package/dist/toIntegerString-Bn5odb7O.d.ts.map +0 -1
- package/dist/toIntegerString-IbOUu6_I.d.cts.map +0 -1
- /package/dist/{index-BN8Gwmlj.d.ts → index-B2KLYYkM.d.cts} +0 -0
- /package/dist/{index-Bejmfbw02.d.ts → index-B5F3AfVc.d.ts} +0 -0
- /package/dist/{index-Bxsm5336.d.ts → index-C2geSgue.d.ts} +0 -0
- /package/dist/{index-CDDzqahH.d.ts → index-CUPkUUOR.d.ts} +0 -0
- /package/dist/{index-CEDY7cmG.d.cts → index-CwHYpK-f.d.ts} +0 -0
- /package/dist/{index-CHmsNSsb.d.ts → index-Cz6N-KeS.d.cts} +0 -0
- /package/dist/{index-CLH9-Fxa.d.ts → index-DK_kKFOF.d.ts} +0 -0
- /package/dist/{index-ClGxRYdo.d.cts → index-DOvrmvAP.d.cts} +0 -0
- /package/dist/{index-CrhZaFgN.d.cts → index-DSiHnMH2.d.cts} +0 -0
- /package/dist/{index-D-BciAtf.d.cts → index-DUb4iB7z2.d.cts} +0 -0
- /package/dist/{index-D2HUTZ-d.d.cts → index-DUsgLc7n2.d.ts} +0 -0
- /package/dist/{index-D6CnpA_r.d.cts → index-DpEKQcoR.d.cts} +0 -0
- /package/dist/{index-DBQaKYAL2.d.cts → index-DxSM7VXJ.d.cts} +0 -0
- /package/dist/{index-DSBnvhSj.d.ts → index-YRyRqgTH.d.ts} +0 -0
- /package/dist/{index-Dpmi5zcN.d.cts → index-_wQ5ClJU.d.cts} +0 -0
- /package/dist/{index-I2m6W13H.d.ts → index-qM4PwHTs.d.ts} +0 -0
package/dist/utils/index.d.cts
CHANGED
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import { n as toBigNumber, t as BigNumberish } from "../bigNumber-
|
|
2
|
-
import { t as BigNumbers } from "../BigNumbers-
|
|
3
|
-
import { t as clampBigNumber } from "../clamp-
|
|
4
|
-
import { n as addDecimals, r as removeDecimals, t as NADO_PRODUCT_DECIMALS } from "../decimalAdjustment-
|
|
5
|
-
import { t as sumBigNumberBy } from "../sumBigNumberBy-
|
|
6
|
-
import { t as toBigInt } from "../toBigInt-
|
|
7
|
-
import { t as toIntegerString } from "../toIntegerString-
|
|
8
|
-
import { n as asyncResult, t as AsyncResult } from "../asyncResult-
|
|
9
|
-
import { n as calcPerpBalanceValue, r as calcSpotBalanceValue, t as calcPerpBalanceNotionalValue } from "../balanceValue-
|
|
10
|
-
import { a as subaccountToBytes32, i as subaccountNameToBytes12, n as subaccountFromHex, o as subaccountToHex, r as subaccountNameBytesToStr, t as subaccountFromBytes32 } from "../bytes32-
|
|
11
|
-
import { t as createDeterministicLinkedSignerPrivateKey } from "../createDeterministicLinkedSignerPrivateKey-
|
|
12
|
-
import { t as WalletNotProvidedError } from "../WalletNotProvidedError-
|
|
13
|
-
import { t as
|
|
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
|
-
|
|
1
|
+
import { n as toBigNumber, t as BigNumberish } from "../bigNumber-DGQBXEpO.cjs";
|
|
2
|
+
import { t as BigNumbers } from "../BigNumbers-tVrUhOAn.cjs";
|
|
3
|
+
import { t as clampBigNumber } from "../clamp-BADFSIMw.cjs";
|
|
4
|
+
import { n as addDecimals, r as removeDecimals, t as NADO_PRODUCT_DECIMALS } from "../decimalAdjustment-CB_T5_nI.cjs";
|
|
5
|
+
import { t as sumBigNumberBy } from "../sumBigNumberBy-VDqHKxCL.cjs";
|
|
6
|
+
import { t as toBigInt } from "../toBigInt-rwR3pRam.cjs";
|
|
7
|
+
import { t as toIntegerString } from "../toIntegerString-89Wn3cp6.cjs";
|
|
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
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import { n as toBigNumber, t as BigNumberish } from "../bigNumber-
|
|
2
|
-
import { t as BigNumbers } from "../BigNumbers-
|
|
3
|
-
import { t as clampBigNumber } from "../clamp-
|
|
4
|
-
import { n as addDecimals, r as removeDecimals, t as NADO_PRODUCT_DECIMALS } from "../decimalAdjustment-
|
|
5
|
-
import { t as sumBigNumberBy } from "../sumBigNumberBy-
|
|
6
|
-
import { t as toBigInt } from "../toBigInt-
|
|
7
|
-
import { t as toIntegerString } from "../toIntegerString-
|
|
8
|
-
import { n as asyncResult, t as AsyncResult } from "../asyncResult-
|
|
9
|
-
import { n as calcPerpBalanceValue, r as calcSpotBalanceValue, t as calcPerpBalanceNotionalValue } from "../balanceValue-
|
|
10
|
-
import { a as subaccountToBytes32, i as subaccountNameToBytes12, n as subaccountFromHex, o as subaccountToHex, r as subaccountNameBytesToStr, t as subaccountFromBytes32 } from "../bytes32-
|
|
11
|
-
import { t as createDeterministicLinkedSignerPrivateKey } from "../createDeterministicLinkedSignerPrivateKey-
|
|
12
|
-
import { t as WalletNotProvidedError } from "../WalletNotProvidedError-
|
|
13
|
-
import { t as
|
|
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
|
-
|
|
1
|
+
import { n as toBigNumber, t as BigNumberish } from "../bigNumber-DSlK3Bvm.js";
|
|
2
|
+
import { t as BigNumbers } from "../BigNumbers-DFd3bATP.js";
|
|
3
|
+
import { t as clampBigNumber } from "../clamp-BibF2yI4.js";
|
|
4
|
+
import { n as addDecimals, r as removeDecimals, t as NADO_PRODUCT_DECIMALS } from "../decimalAdjustment-Dlna5cvK.js";
|
|
5
|
+
import { t as sumBigNumberBy } from "../sumBigNumberBy-DvRQv-qH.js";
|
|
6
|
+
import { t as toBigInt } from "../toBigInt-DmsDdQeF.js";
|
|
7
|
+
import { t as toIntegerString } from "../toIntegerString-CtEX9m8u.js";
|
|
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 };
|
package/dist/utils/interest.cjs
CHANGED
|
@@ -30,10 +30,10 @@ function calcUtilizationRatio(product) {
|
|
|
30
30
|
* interest. The calculation for interest rate is as follows:
|
|
31
31
|
*
|
|
32
32
|
* If utilization ratio > inflection:
|
|
33
|
-
*
|
|
33
|
+
* annual rate = (utilization ratio - inflection) / (1 - inflection) * interestLargeCap + interestFloor + interestSmallCap
|
|
34
34
|
*
|
|
35
|
-
* If utilization ratio
|
|
36
|
-
*
|
|
35
|
+
* If utilization ratio <= inflection:
|
|
36
|
+
* annual rate = utilization ratio * interestSmallCap / inflection + interestFloor
|
|
37
37
|
*
|
|
38
38
|
* The returned rate is annual rate / 31536000 seconds per year.
|
|
39
39
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interest.cjs","names":["toBigNumber","removeDecimals","BigNumbers"],"sources":["../../src/utils/interest.ts"],"sourcesContent":["import BigNumber from 'bignumber.js';\nimport { SpotProduct } from '../types/productTypes';\nimport { BigNumberish, BigNumbers, removeDecimals, toBigNumber } from './math';\nimport { TimeInSeconds } from './time';\n\n/**\n * Calculate amount total borrowed for a product\n */\nexport function calcTotalBorrowed(\n totalBorrowsNormalized: BigNumberish,\n cumulativeBorrowsMultiplierX18: BigNumberish,\n): BigNumber {\n return toBigNumber(totalBorrowsNormalized).multipliedBy(\n removeDecimals(cumulativeBorrowsMultiplierX18),\n );\n}\n\n/**\n * Calculate amount total deposited for a product.\n */\nexport function calcTotalDeposited(\n totalDepositsNormalized: BigNumberish,\n cumulativeDepositsMultiplierX18: BigNumberish,\n): BigNumber {\n return toBigNumber(totalDepositsNormalized).multipliedBy(\n removeDecimals(cumulativeDepositsMultiplierX18),\n );\n}\n\n/**\n * Calculates utilization ratio = abs(total borrowed / total deposited)\n *\n * @param product Spot product\n */\nexport function calcUtilizationRatio(product: SpotProduct) {\n if (product.totalDeposited.eq(0) || product.totalBorrowed.eq(0)) {\n return toBigNumber(0);\n }\n return product.totalBorrowed.abs().div(product.totalDeposited);\n}\n\n/**\n * Calculates per-second borrow interest rate for a product. For example, a returned rate of 0.1 indicates 10% borrower\n * interest. The calculation for interest rate is as follows:\n *\n * If utilization ratio > inflection:\n *
|
|
1
|
+
{"version":3,"file":"interest.cjs","names":["toBigNumber","removeDecimals","BigNumbers"],"sources":["../../src/utils/interest.ts"],"sourcesContent":["import BigNumber from 'bignumber.js';\nimport { SpotProduct } from '../types/productTypes';\nimport { BigNumberish, BigNumbers, removeDecimals, toBigNumber } from './math';\nimport { TimeInSeconds } from './time';\n\n/**\n * Calculate amount total borrowed for a product\n */\nexport function calcTotalBorrowed(\n totalBorrowsNormalized: BigNumberish,\n cumulativeBorrowsMultiplierX18: BigNumberish,\n): BigNumber {\n return toBigNumber(totalBorrowsNormalized).multipliedBy(\n removeDecimals(cumulativeBorrowsMultiplierX18),\n );\n}\n\n/**\n * Calculate amount total deposited for a product.\n */\nexport function calcTotalDeposited(\n totalDepositsNormalized: BigNumberish,\n cumulativeDepositsMultiplierX18: BigNumberish,\n): BigNumber {\n return toBigNumber(totalDepositsNormalized).multipliedBy(\n removeDecimals(cumulativeDepositsMultiplierX18),\n );\n}\n\n/**\n * Calculates utilization ratio = abs(total borrowed / total deposited)\n *\n * @param product Spot product\n */\nexport function calcUtilizationRatio(product: SpotProduct) {\n if (product.totalDeposited.eq(0) || product.totalBorrowed.eq(0)) {\n return toBigNumber(0);\n }\n return product.totalBorrowed.abs().div(product.totalDeposited);\n}\n\n/**\n * Calculates per-second borrow interest rate for a product. For example, a returned rate of 0.1 indicates 10% borrower\n * interest. The calculation for interest rate is as follows:\n *\n * If utilization ratio > inflection:\n * annual rate = (utilization ratio - inflection) / (1 - inflection) * interestLargeCap + interestFloor + interestSmallCap\n *\n * If utilization ratio <= inflection:\n * annual rate = utilization ratio * interestSmallCap / inflection + interestFloor\n *\n * The returned rate is annual rate / 31536000 seconds per year.\n *\n * @param product Spot product\n */\nexport function calcBorrowRatePerSecond(product: SpotProduct) {\n const {\n interestFloor,\n interestInflectionUtil,\n interestSmallCap,\n interestLargeCap,\n } = product;\n const utilization = calcUtilizationRatio(product);\n if (utilization.eq(0)) {\n return toBigNumber(0);\n }\n const pastInflection = utilization.gt(interestInflectionUtil);\n\n let annualRate: BigNumber;\n if (pastInflection) {\n const utilizationTerm = interestLargeCap.times(\n toBigNumber(utilization)\n .minus(interestInflectionUtil)\n .div(BigNumbers.ONE.minus(interestInflectionUtil)),\n );\n annualRate = interestFloor.plus(interestSmallCap).plus(utilizationTerm);\n } else {\n const utilizationTerm = utilization\n .div(interestInflectionUtil)\n .times(interestSmallCap);\n annualRate = interestFloor.plus(utilizationTerm);\n }\n\n return annualRate.div(TimeInSeconds.YEAR);\n}\n\n/**\n * Calculates borrower interest rate compounded for a period of time.\n *\n * @param product Spot product\n * @param seconds Number of seconds for the time period\n */\nexport function calcBorrowRateForTimeRange(\n product: SpotProduct,\n seconds: BigNumberish,\n minDepositRate: BigNumberish,\n) {\n const borrowRatePerSecond = calcBorrowRatePerSecond(product);\n\n // Convert to number for this, with some loss of precision, but using `.pow()` causes us to hit browser resource limits\n const borrowRateForTime =\n borrowRatePerSecond.plus(1).toNumber() ** toBigNumber(seconds).toNumber() -\n 1;\n return toBigNumber(borrowRateForTime).plus(toBigNumber(minDepositRate));\n}\n\n/**\n * Calculate depositor interest rate compounded for a period of time.\n *\n * @param product Spot product\n * @param seconds Number of seconds for the time period\n * @param interestFeeFrac Fraction of paid borrower interest that is paid as a fee (0.2 = 20% fee)\n */\nexport function calcRealizedDepositRateForTimeRange(\n product: SpotProduct,\n seconds: BigNumberish,\n interestFeeFrac: BigNumberish,\n minDepositRate: BigNumberish,\n) {\n const utilization = calcUtilizationRatio(product);\n if (utilization.eq(0)) {\n return toBigNumber(0);\n }\n return utilization\n .times(calcBorrowRateForTimeRange(product, seconds, toBigNumber(0)))\n .times(BigNumbers.ONE.minus(toBigNumber(interestFeeFrac)))\n .plus(toBigNumber(minDepositRate));\n}\n"],"mappings":";;;;;;;;;AAQA,SAAgB,kBACd,wBACA,gCACW;CACX,OAAOA,6BAAAA,YAAY,sBAAsB,EAAE,aACzCC,qCAAAA,eAAe,8BAA8B,CAC/C;AACF;;;;AAKA,SAAgB,mBACd,yBACA,iCACW;CACX,OAAOD,6BAAAA,YAAY,uBAAuB,EAAE,aAC1CC,qCAAAA,eAAe,+BAA+B,CAChD;AACF;;;;;;AAOA,SAAgB,qBAAqB,SAAsB;CACzD,IAAI,QAAQ,eAAe,GAAG,CAAC,KAAK,QAAQ,cAAc,GAAG,CAAC,GAC5D,OAAOD,6BAAAA,YAAY,CAAC;CAEtB,OAAO,QAAQ,cAAc,IAAI,EAAE,IAAI,QAAQ,cAAc;AAC/D;;;;;;;;;;;;;;;AAgBA,SAAgB,wBAAwB,SAAsB;CAC5D,MAAM,EACJ,eACA,wBACA,kBACA,qBACE;CACJ,MAAM,cAAc,qBAAqB,OAAO;CAChD,IAAI,YAAY,GAAG,CAAC,GAClB,OAAOA,6BAAAA,YAAY,CAAC;CAEtB,MAAM,iBAAiB,YAAY,GAAG,sBAAsB;CAE5D,IAAI;CACJ,IAAI,gBAAgB;EAClB,MAAM,kBAAkB,iBAAiB,MACvCA,6BAAAA,YAAY,WAAW,EACpB,MAAM,sBAAsB,EAC5B,IAAIE,8BAAAA,WAAW,IAAI,MAAM,sBAAsB,CAAC,CACrD;EACA,aAAa,cAAc,KAAK,gBAAgB,EAAE,KAAK,eAAe;CACxE,OAAO;EACL,MAAM,kBAAkB,YACrB,IAAI,sBAAsB,EAC1B,MAAM,gBAAgB;EACzB,aAAa,cAAc,KAAK,eAAe;CACjD;CAEA,OAAO,WAAW,IAAA,OAAsB;AAC1C;;;;;;;AAQA,SAAgB,2BACd,SACA,SACA,gBACA;CAOA,OAAOF,6BAAAA,YANqB,wBAAwB,OAIhC,EAAE,KAAK,CAAC,EAAE,SAAS,KAAKA,6BAAAA,YAAY,OAAO,EAAE,SAAS,IACxE,CACkC,EAAE,KAAKA,6BAAAA,YAAY,cAAc,CAAC;AACxE;;;;;;;;AASA,SAAgB,oCACd,SACA,SACA,iBACA,gBACA;CACA,MAAM,cAAc,qBAAqB,OAAO;CAChD,IAAI,YAAY,GAAG,CAAC,GAClB,OAAOA,6BAAAA,YAAY,CAAC;CAEtB,OAAO,YACJ,MAAM,2BAA2B,SAAS,SAASA,6BAAAA,YAAY,CAAC,CAAC,CAAC,EAClE,MAAME,8BAAAA,WAAW,IAAI,MAAMF,6BAAAA,YAAY,eAAe,CAAC,CAAC,EACxD,KAAKA,6BAAAA,YAAY,cAAc,CAAC;AACrC"}
|
|
@@ -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 };
|
package/dist/utils/interest.js
CHANGED
|
@@ -29,10 +29,10 @@ function calcUtilizationRatio(product) {
|
|
|
29
29
|
* interest. The calculation for interest rate is as follows:
|
|
30
30
|
*
|
|
31
31
|
* If utilization ratio > inflection:
|
|
32
|
-
*
|
|
32
|
+
* annual rate = (utilization ratio - inflection) / (1 - inflection) * interestLargeCap + interestFloor + interestSmallCap
|
|
33
33
|
*
|
|
34
|
-
* If utilization ratio
|
|
35
|
-
*
|
|
34
|
+
* If utilization ratio <= inflection:
|
|
35
|
+
* annual rate = utilization ratio * interestSmallCap / inflection + interestFloor
|
|
36
36
|
*
|
|
37
37
|
* The returned rate is annual rate / 31536000 seconds per year.
|
|
38
38
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interest.js","names":[],"sources":["../../src/utils/interest.ts"],"sourcesContent":["import BigNumber from 'bignumber.js';\nimport { SpotProduct } from '../types/productTypes';\nimport { BigNumberish, BigNumbers, removeDecimals, toBigNumber } from './math';\nimport { TimeInSeconds } from './time';\n\n/**\n * Calculate amount total borrowed for a product\n */\nexport function calcTotalBorrowed(\n totalBorrowsNormalized: BigNumberish,\n cumulativeBorrowsMultiplierX18: BigNumberish,\n): BigNumber {\n return toBigNumber(totalBorrowsNormalized).multipliedBy(\n removeDecimals(cumulativeBorrowsMultiplierX18),\n );\n}\n\n/**\n * Calculate amount total deposited for a product.\n */\nexport function calcTotalDeposited(\n totalDepositsNormalized: BigNumberish,\n cumulativeDepositsMultiplierX18: BigNumberish,\n): BigNumber {\n return toBigNumber(totalDepositsNormalized).multipliedBy(\n removeDecimals(cumulativeDepositsMultiplierX18),\n );\n}\n\n/**\n * Calculates utilization ratio = abs(total borrowed / total deposited)\n *\n * @param product Spot product\n */\nexport function calcUtilizationRatio(product: SpotProduct) {\n if (product.totalDeposited.eq(0) || product.totalBorrowed.eq(0)) {\n return toBigNumber(0);\n }\n return product.totalBorrowed.abs().div(product.totalDeposited);\n}\n\n/**\n * Calculates per-second borrow interest rate for a product. For example, a returned rate of 0.1 indicates 10% borrower\n * interest. The calculation for interest rate is as follows:\n *\n * If utilization ratio > inflection:\n *
|
|
1
|
+
{"version":3,"file":"interest.js","names":[],"sources":["../../src/utils/interest.ts"],"sourcesContent":["import BigNumber from 'bignumber.js';\nimport { SpotProduct } from '../types/productTypes';\nimport { BigNumberish, BigNumbers, removeDecimals, toBigNumber } from './math';\nimport { TimeInSeconds } from './time';\n\n/**\n * Calculate amount total borrowed for a product\n */\nexport function calcTotalBorrowed(\n totalBorrowsNormalized: BigNumberish,\n cumulativeBorrowsMultiplierX18: BigNumberish,\n): BigNumber {\n return toBigNumber(totalBorrowsNormalized).multipliedBy(\n removeDecimals(cumulativeBorrowsMultiplierX18),\n );\n}\n\n/**\n * Calculate amount total deposited for a product.\n */\nexport function calcTotalDeposited(\n totalDepositsNormalized: BigNumberish,\n cumulativeDepositsMultiplierX18: BigNumberish,\n): BigNumber {\n return toBigNumber(totalDepositsNormalized).multipliedBy(\n removeDecimals(cumulativeDepositsMultiplierX18),\n );\n}\n\n/**\n * Calculates utilization ratio = abs(total borrowed / total deposited)\n *\n * @param product Spot product\n */\nexport function calcUtilizationRatio(product: SpotProduct) {\n if (product.totalDeposited.eq(0) || product.totalBorrowed.eq(0)) {\n return toBigNumber(0);\n }\n return product.totalBorrowed.abs().div(product.totalDeposited);\n}\n\n/**\n * Calculates per-second borrow interest rate for a product. For example, a returned rate of 0.1 indicates 10% borrower\n * interest. The calculation for interest rate is as follows:\n *\n * If utilization ratio > inflection:\n * annual rate = (utilization ratio - inflection) / (1 - inflection) * interestLargeCap + interestFloor + interestSmallCap\n *\n * If utilization ratio <= inflection:\n * annual rate = utilization ratio * interestSmallCap / inflection + interestFloor\n *\n * The returned rate is annual rate / 31536000 seconds per year.\n *\n * @param product Spot product\n */\nexport function calcBorrowRatePerSecond(product: SpotProduct) {\n const {\n interestFloor,\n interestInflectionUtil,\n interestSmallCap,\n interestLargeCap,\n } = product;\n const utilization = calcUtilizationRatio(product);\n if (utilization.eq(0)) {\n return toBigNumber(0);\n }\n const pastInflection = utilization.gt(interestInflectionUtil);\n\n let annualRate: BigNumber;\n if (pastInflection) {\n const utilizationTerm = interestLargeCap.times(\n toBigNumber(utilization)\n .minus(interestInflectionUtil)\n .div(BigNumbers.ONE.minus(interestInflectionUtil)),\n );\n annualRate = interestFloor.plus(interestSmallCap).plus(utilizationTerm);\n } else {\n const utilizationTerm = utilization\n .div(interestInflectionUtil)\n .times(interestSmallCap);\n annualRate = interestFloor.plus(utilizationTerm);\n }\n\n return annualRate.div(TimeInSeconds.YEAR);\n}\n\n/**\n * Calculates borrower interest rate compounded for a period of time.\n *\n * @param product Spot product\n * @param seconds Number of seconds for the time period\n */\nexport function calcBorrowRateForTimeRange(\n product: SpotProduct,\n seconds: BigNumberish,\n minDepositRate: BigNumberish,\n) {\n const borrowRatePerSecond = calcBorrowRatePerSecond(product);\n\n // Convert to number for this, with some loss of precision, but using `.pow()` causes us to hit browser resource limits\n const borrowRateForTime =\n borrowRatePerSecond.plus(1).toNumber() ** toBigNumber(seconds).toNumber() -\n 1;\n return toBigNumber(borrowRateForTime).plus(toBigNumber(minDepositRate));\n}\n\n/**\n * Calculate depositor interest rate compounded for a period of time.\n *\n * @param product Spot product\n * @param seconds Number of seconds for the time period\n * @param interestFeeFrac Fraction of paid borrower interest that is paid as a fee (0.2 = 20% fee)\n */\nexport function calcRealizedDepositRateForTimeRange(\n product: SpotProduct,\n seconds: BigNumberish,\n interestFeeFrac: BigNumberish,\n minDepositRate: BigNumberish,\n) {\n const utilization = calcUtilizationRatio(product);\n if (utilization.eq(0)) {\n return toBigNumber(0);\n }\n return utilization\n .times(calcBorrowRateForTimeRange(product, seconds, toBigNumber(0)))\n .times(BigNumbers.ONE.minus(toBigNumber(interestFeeFrac)))\n .plus(toBigNumber(minDepositRate));\n}\n"],"mappings":";;;;;;;;AAQA,SAAgB,kBACd,wBACA,gCACW;CACX,OAAO,YAAY,sBAAsB,EAAE,aACzC,eAAe,8BAA8B,CAC/C;AACF;;;;AAKA,SAAgB,mBACd,yBACA,iCACW;CACX,OAAO,YAAY,uBAAuB,EAAE,aAC1C,eAAe,+BAA+B,CAChD;AACF;;;;;;AAOA,SAAgB,qBAAqB,SAAsB;CACzD,IAAI,QAAQ,eAAe,GAAG,CAAC,KAAK,QAAQ,cAAc,GAAG,CAAC,GAC5D,OAAO,YAAY,CAAC;CAEtB,OAAO,QAAQ,cAAc,IAAI,EAAE,IAAI,QAAQ,cAAc;AAC/D;;;;;;;;;;;;;;;AAgBA,SAAgB,wBAAwB,SAAsB;CAC5D,MAAM,EACJ,eACA,wBACA,kBACA,qBACE;CACJ,MAAM,cAAc,qBAAqB,OAAO;CAChD,IAAI,YAAY,GAAG,CAAC,GAClB,OAAO,YAAY,CAAC;CAEtB,MAAM,iBAAiB,YAAY,GAAG,sBAAsB;CAE5D,IAAI;CACJ,IAAI,gBAAgB;EAClB,MAAM,kBAAkB,iBAAiB,MACvC,YAAY,WAAW,EACpB,MAAM,sBAAsB,EAC5B,IAAI,WAAW,IAAI,MAAM,sBAAsB,CAAC,CACrD;EACA,aAAa,cAAc,KAAK,gBAAgB,EAAE,KAAK,eAAe;CACxE,OAAO;EACL,MAAM,kBAAkB,YACrB,IAAI,sBAAsB,EAC1B,MAAM,gBAAgB;EACzB,aAAa,cAAc,KAAK,eAAe;CACjD;CAEA,OAAO,WAAW,IAAA,OAAsB;AAC1C;;;;;;;AAQA,SAAgB,2BACd,SACA,SACA,gBACA;CAOA,OAAO,YANqB,wBAAwB,OAIhC,EAAE,KAAK,CAAC,EAAE,SAAS,KAAK,YAAY,OAAO,EAAE,SAAS,IACxE,CACkC,EAAE,KAAK,YAAY,cAAc,CAAC;AACxE;;;;;;;;AASA,SAAgB,oCACd,SACA,SACA,iBACA,gBACA;CACA,MAAM,cAAc,qBAAqB,OAAO;CAChD,IAAI,YAAY,GAAG,CAAC,GAClB,OAAO,YAAY,CAAC;CAEtB,OAAO,YACJ,MAAM,2BAA2B,SAAS,SAAS,YAAY,CAAC,CAAC,CAAC,EAClE,MAAM,WAAW,IAAI,MAAM,YAAY,eAAe,CAAC,CAAC,EACxD,KAAK,YAAY,cAAc,CAAC;AACrC"}
|
|
@@ -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 { t as BigNumbers } from "../../BigNumbers-
|
|
1
|
+
import { t as BigNumbers } from "../../BigNumbers-tVrUhOAn.cjs";
|
|
2
2
|
export { BigNumbers };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as BigNumbers } from "../../BigNumbers-
|
|
1
|
+
import { t as BigNumbers } from "../../BigNumbers-DFd3bATP.js";
|
|
2
2
|
export { BigNumbers };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as toBigNumber, t as BigNumberish } from "../../bigNumber-
|
|
1
|
+
import { n as toBigNumber, t as BigNumberish } from "../../bigNumber-DGQBXEpO.cjs";
|
|
2
2
|
export { BigNumberish, toBigNumber };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as toBigNumber, t as BigNumberish } from "../../bigNumber-
|
|
1
|
+
import { n as toBigNumber, t as BigNumberish } from "../../bigNumber-DSlK3Bvm.js";
|
|
2
2
|
export { BigNumberish, toBigNumber };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as clampBigNumber } from "../../clamp-
|
|
1
|
+
import { t as clampBigNumber } from "../../clamp-BADFSIMw.cjs";
|
|
2
2
|
export { clampBigNumber };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as clampBigNumber } from "../../clamp-
|
|
1
|
+
import { t as clampBigNumber } from "../../clamp-BibF2yI4.js";
|
|
2
2
|
export { clampBigNumber };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as addDecimals, r as removeDecimals, t as NADO_PRODUCT_DECIMALS } from "../../decimalAdjustment-
|
|
1
|
+
import { n as addDecimals, r as removeDecimals, t as NADO_PRODUCT_DECIMALS } from "../../decimalAdjustment-CB_T5_nI.cjs";
|
|
2
2
|
export { NADO_PRODUCT_DECIMALS, addDecimals, removeDecimals };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as addDecimals, r as removeDecimals, t as NADO_PRODUCT_DECIMALS } from "../../decimalAdjustment-
|
|
1
|
+
import { n as addDecimals, r as removeDecimals, t as NADO_PRODUCT_DECIMALS } from "../../decimalAdjustment-Dlna5cvK.js";
|
|
2
2
|
export { NADO_PRODUCT_DECIMALS, addDecimals, removeDecimals };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as toBigNumber, t as BigNumberish } from "../../bigNumber-
|
|
2
|
-
import { t as BigNumbers } from "../../BigNumbers-
|
|
3
|
-
import { t as clampBigNumber } from "../../clamp-
|
|
4
|
-
import { n as addDecimals, r as removeDecimals, t as NADO_PRODUCT_DECIMALS } from "../../decimalAdjustment-
|
|
5
|
-
import { t as sumBigNumberBy } from "../../sumBigNumberBy-
|
|
6
|
-
import { t as toBigInt } from "../../toBigInt-
|
|
7
|
-
import { t as toIntegerString } from "../../toIntegerString-
|
|
1
|
+
import { n as toBigNumber, t as BigNumberish } from "../../bigNumber-DGQBXEpO.cjs";
|
|
2
|
+
import { t as BigNumbers } from "../../BigNumbers-tVrUhOAn.cjs";
|
|
3
|
+
import { t as clampBigNumber } from "../../clamp-BADFSIMw.cjs";
|
|
4
|
+
import { n as addDecimals, r as removeDecimals, t as NADO_PRODUCT_DECIMALS } from "../../decimalAdjustment-CB_T5_nI.cjs";
|
|
5
|
+
import { t as sumBigNumberBy } from "../../sumBigNumberBy-VDqHKxCL.cjs";
|
|
6
|
+
import { t as toBigInt } from "../../toBigInt-rwR3pRam.cjs";
|
|
7
|
+
import { t as toIntegerString } from "../../toIntegerString-89Wn3cp6.cjs";
|
|
8
8
|
export { BigNumberish, BigNumbers, NADO_PRODUCT_DECIMALS, addDecimals, clampBigNumber, removeDecimals, sumBigNumberBy, toBigInt, toBigNumber, toIntegerString };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as toBigNumber, t as BigNumberish } from "../../bigNumber-
|
|
2
|
-
import { t as BigNumbers } from "../../BigNumbers-
|
|
3
|
-
import { t as clampBigNumber } from "../../clamp-
|
|
4
|
-
import { n as addDecimals, r as removeDecimals, t as NADO_PRODUCT_DECIMALS } from "../../decimalAdjustment-
|
|
5
|
-
import { t as sumBigNumberBy } from "../../sumBigNumberBy-
|
|
6
|
-
import { t as toBigInt } from "../../toBigInt-
|
|
7
|
-
import { t as toIntegerString } from "../../toIntegerString-
|
|
1
|
+
import { n as toBigNumber, t as BigNumberish } from "../../bigNumber-DSlK3Bvm.js";
|
|
2
|
+
import { t as BigNumbers } from "../../BigNumbers-DFd3bATP.js";
|
|
3
|
+
import { t as clampBigNumber } from "../../clamp-BibF2yI4.js";
|
|
4
|
+
import { n as addDecimals, r as removeDecimals, t as NADO_PRODUCT_DECIMALS } from "../../decimalAdjustment-Dlna5cvK.js";
|
|
5
|
+
import { t as sumBigNumberBy } from "../../sumBigNumberBy-DvRQv-qH.js";
|
|
6
|
+
import { t as toBigInt } from "../../toBigInt-DmsDdQeF.js";
|
|
7
|
+
import { t as toIntegerString } from "../../toIntegerString-CtEX9m8u.js";
|
|
8
8
|
export { BigNumberish, BigNumbers, NADO_PRODUCT_DECIMALS, addDecimals, clampBigNumber, removeDecimals, sumBigNumberBy, toBigInt, toBigNumber, toIntegerString };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as sumBigNumberBy } from "../../sumBigNumberBy-
|
|
1
|
+
import { t as sumBigNumberBy } from "../../sumBigNumberBy-VDqHKxCL.cjs";
|
|
2
2
|
export { sumBigNumberBy };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as sumBigNumberBy } from "../../sumBigNumberBy-
|
|
1
|
+
import { t as sumBigNumberBy } from "../../sumBigNumberBy-DvRQv-qH.js";
|
|
2
2
|
export { sumBigNumberBy };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as toBigInt } from "../../toBigInt-
|
|
1
|
+
import { t as toBigInt } from "../../toBigInt-rwR3pRam.cjs";
|
|
2
2
|
export { toBigInt };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as toBigInt } from "../../toBigInt-
|
|
1
|
+
import { t as toBigInt } from "../../toBigInt-DmsDdQeF.js";
|
|
2
2
|
export { toBigInt };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as toIntegerString } from "../../toIntegerString-
|
|
1
|
+
import { t as toIntegerString } from "../../toIntegerString-89Wn3cp6.cjs";
|
|
2
2
|
export { toIntegerString };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as toIntegerString } from "../../toIntegerString-
|
|
1
|
+
import { t as toIntegerString } from "../../toIntegerString-CtEX9m8u.js";
|
|
2
2
|
export { toIntegerString };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as OrderAppendixIsolatedFields } from "../../../orderAppendixTypes-
|
|
1
|
+
import { r as OrderAppendixIsolatedFields } from "../../../orderAppendixTypes-r-Zy2f_x.cjs";
|
|
2
2
|
//#region src/utils/orders/appendix/appendixIsolatedValue.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Packs the provided margin into a single 64-bit bigint.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as OrderAppendixIsolatedFields } from "../../../orderAppendixTypes-
|
|
1
|
+
import { r as OrderAppendixIsolatedFields } from "../../../orderAppendixTypes-BePs4Ntk.js";
|
|
2
2
|
//#region src/utils/orders/appendix/appendixIsolatedValue.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Packs the provided margin into a single 64-bit bigint.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../../../appendixTwapValue-
|
|
1
|
+
import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../../../appendixTwapValue-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 };
|