@nadohq/shared 0.25.0 → 0.27.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/README.md +0 -8
- package/dist/{WalletNotProvidedError-BFEw-O_V.d.cts → WalletNotProvidedError-BEoW-nA1.d.cts} +1 -1
- package/dist/{WalletNotProvidedError-BFEw-O_V.d.cts.map → WalletNotProvidedError-BEoW-nA1.d.cts.map} +1 -1
- package/dist/{WalletNotProvidedError-B7hy83Dp.d.ts → WalletNotProvidedError-v1a959kl.d.ts} +1 -1
- package/dist/{WalletNotProvidedError-B7hy83Dp.d.ts.map → WalletNotProvidedError-v1a959kl.d.ts.map} +1 -1
- package/dist/{appendixTwapValue-2e-BBSSp.d.cts → appendixTwapValue-DIqDV7Z7.d.cts} +1 -1
- package/dist/{appendixTwapValue-2e-BBSSp.d.cts.map → appendixTwapValue-DIqDV7Z7.d.cts.map} +1 -1
- package/dist/{appendixTwapValue-D5Fv_hF5.d.ts → appendixTwapValue-DPsC1hXX.d.ts} +1 -1
- package/dist/{appendixTwapValue-D5Fv_hF5.d.ts.map → appendixTwapValue-DPsC1hXX.d.ts.map} +1 -1
- package/dist/{approveDepositAllowance-DzLfrUa1.d.cts → approveDepositAllowance-BbqDck6c.d.cts} +1 -1
- package/dist/{approveDepositAllowance-DzLfrUa1.d.cts.map → approveDepositAllowance-BbqDck6c.d.cts.map} +1 -1
- package/dist/{approveDepositAllowance-Dc7stdrU.d.ts → approveDepositAllowance-ChasXUS7.d.ts} +1 -1
- package/dist/{approveDepositAllowance-Dc7stdrU.d.ts.map → approveDepositAllowance-ChasXUS7.d.ts.map} +1 -1
- package/dist/{asyncResult-D-rEUypp.d.cts → asyncResult-B8ly8lP_.d.cts} +1 -1
- package/dist/{asyncResult-D-rEUypp.d.cts.map → asyncResult-B8ly8lP_.d.cts.map} +1 -1
- package/dist/{asyncResult-Cs02Ws6J.d.ts → asyncResult-CrfiRFh5.d.ts} +1 -1
- package/dist/{asyncResult-Cs02Ws6J.d.ts.map → asyncResult-CrfiRFh5.d.ts.map} +1 -1
- package/dist/{balanceValue-BHDw2fCR.d.cts → balanceValue-CT4Q7W0T.d.cts} +1 -1
- package/dist/{balanceValue-BHDw2fCR.d.cts.map → balanceValue-CT4Q7W0T.d.cts.map} +1 -1
- package/dist/{balanceValue-mNCg2O57.d.ts → balanceValue-bkwkBhFu.d.ts} +1 -1
- package/dist/{balanceValue-mNCg2O57.d.ts.map → balanceValue-bkwkBhFu.d.ts.map} +1 -1
- package/dist/{bitMaskValue-CWv12B9a.d.cts → bitMaskValue-CDz7vtPM.d.cts} +1 -1
- package/dist/{bitMaskValue-CWv12B9a.d.cts.map → bitMaskValue-CDz7vtPM.d.cts.map} +1 -1
- package/dist/{bitMaskValue-rhaIF9Xj.d.ts → bitMaskValue-qyWUOgv1.d.ts} +1 -1
- package/dist/{bitMaskValue-rhaIF9Xj.d.ts.map → bitMaskValue-qyWUOgv1.d.ts.map} +1 -1
- package/dist/{bytes32-gz7vDEim.d.ts → bytes32-D-tn3XZy.d.ts} +2 -2
- package/dist/{bytes32-gz7vDEim.d.ts.map → bytes32-D-tn3XZy.d.ts.map} +1 -1
- package/dist/{bytes32-CE-v0SzM.d.cts → bytes32-klqLJUFN.d.cts} +2 -2
- package/dist/{bytes32-CE-v0SzM.d.cts.map → bytes32-klqLJUFN.d.cts.map} +1 -1
- package/dist/{chainEnvToChain-Cze_i6hZ.d.cts → chainEnvToChain-DdLczNYZ.d.cts} +1 -1
- package/dist/{chainEnvToChain-Cze_i6hZ.d.cts.map → chainEnvToChain-DdLczNYZ.d.cts.map} +1 -1
- package/dist/{chainEnvToChain-iWWdSu4g.d.ts → chainEnvToChain-DpBYNlnk.d.ts} +1 -1
- package/dist/{chainEnvToChain-iWWdSu4g.d.ts.map → chainEnvToChain-DpBYNlnk.d.ts.map} +1 -1
- package/dist/consts/chainEnvToChain.d.cts +1 -1
- package/dist/consts/chainEnvToChain.d.ts +1 -1
- package/dist/consts/index.d.cts +2 -2
- package/dist/consts/index.d.ts +2 -2
- package/dist/consts/productIds.d.cts +1 -1
- package/dist/consts/productIds.d.ts +1 -1
- package/dist/{createDeterministicLinkedSignerPrivateKey-XciG6RLh.d.ts → createDeterministicLinkedSignerPrivateKey-47pkYOE0.d.ts} +2 -2
- package/dist/createDeterministicLinkedSignerPrivateKey-47pkYOE0.d.ts.map +1 -0
- package/dist/{createDeterministicLinkedSignerPrivateKey-C2v9BK5R.d.cts → createDeterministicLinkedSignerPrivateKey-CcJhRSf7.d.cts} +2 -2
- package/dist/{createDeterministicLinkedSignerPrivateKey-C2v9BK5R.d.cts.map → createDeterministicLinkedSignerPrivateKey-CcJhRSf7.d.cts.map} +1 -1
- package/dist/{depositCollateral-476kzs4N.d.ts → depositCollateral-BZOXvr6h.d.ts} +1 -1
- package/dist/{depositCollateral-476kzs4N.d.ts.map → depositCollateral-BZOXvr6h.d.ts.map} +1 -1
- package/dist/{depositCollateral-CmEXlJQs.d.cts → depositCollateral-C3mp2GTo.d.cts} +1 -1
- package/dist/{depositCollateral-CmEXlJQs.d.cts.map → depositCollateral-C3mp2GTo.d.cts.map} +1 -1
- package/dist/eip712/eip712ValueTypes.d.cts +2 -2
- package/dist/eip712/eip712ValueTypes.d.ts +2 -2
- 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.cjs +36 -0
- package/dist/eip712/getNadoEIP712Types.cjs.map +1 -1
- package/dist/eip712/getNadoEIP712Types.d.cts +1 -1
- package/dist/eip712/getNadoEIP712Types.d.ts +1 -1
- package/dist/eip712/getNadoEIP712Types.js +36 -0
- package/dist/eip712/getNadoEIP712Types.js.map +1 -1
- package/dist/eip712/getNadoEIP712Values.cjs +28 -0
- package/dist/eip712/getNadoEIP712Values.cjs.map +1 -1
- package/dist/eip712/getNadoEIP712Values.d.cts +1 -1
- package/dist/eip712/getNadoEIP712Values.d.ts +1 -1
- package/dist/eip712/getNadoEIP712Values.js +28 -0
- package/dist/eip712/getNadoEIP712Values.js.map +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 +11 -11
- package/dist/eip712/index.d.ts +11 -11
- 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 +2 -2
- package/dist/eip712/signatureParamTypes.d.ts +2 -2
- package/dist/{eip712ValueTypes-WrIZ5ICk.d.cts → eip712ValueTypes-B7SUNimi.d.cts} +7 -3
- package/dist/eip712ValueTypes-B7SUNimi.d.cts.map +1 -0
- package/dist/{eip712ValueTypes-BbEkGbjV.d.ts → eip712ValueTypes-Bx73DiwJ.d.ts} +7 -3
- package/dist/eip712ValueTypes-Bx73DiwJ.d.ts.map +1 -0
- 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-CJkvIVP6.d.ts → encoding-ChEwtCUc.d.ts} +2 -2
- package/dist/{encoding-CJkvIVP6.d.ts.map → encoding-ChEwtCUc.d.ts.map} +1 -1
- package/dist/{encoding-HLKz9Upc.d.cts → encoding-DGoJlZo_.d.cts} +2 -2
- package/dist/{encoding-HLKz9Upc.d.cts.map → encoding-DGoJlZo_.d.cts.map} +1 -1
- package/dist/execute/approveDepositAllowance.d.cts +1 -1
- package/dist/execute/approveDepositAllowance.d.ts +1 -1
- package/dist/execute/depositCollateral.d.cts +1 -1
- package/dist/execute/depositCollateral.d.ts +1 -1
- package/dist/execute/index.d.cts +2 -2
- package/dist/execute/index.d.ts +2 -2
- package/dist/{getNadoEIP712Domain-iDIuXsMf.d.cts → getNadoEIP712Domain-CbvRaSxS.d.cts} +1 -1
- package/dist/{getNadoEIP712Domain-iDIuXsMf.d.cts.map → getNadoEIP712Domain-CbvRaSxS.d.cts.map} +1 -1
- package/dist/{getNadoEIP712Domain-CSV6Zxuw.d.ts → getNadoEIP712Domain-kTOBSTeO.d.ts} +1 -1
- package/dist/{getNadoEIP712Domain-CSV6Zxuw.d.ts.map → getNadoEIP712Domain-kTOBSTeO.d.ts.map} +1 -1
- package/dist/{getNadoEIP712PrimaryType-DHPlkKNM.d.ts → getNadoEIP712PrimaryType-BcdZPTeT.d.ts} +2 -2
- package/dist/{getNadoEIP712PrimaryType-DHPlkKNM.d.ts.map → getNadoEIP712PrimaryType-BcdZPTeT.d.ts.map} +1 -1
- package/dist/{getNadoEIP712PrimaryType-BOMG9Lzk.d.cts → getNadoEIP712PrimaryType-DxmJJfz2.d.cts} +2 -2
- package/dist/{getNadoEIP712PrimaryType-BOMG9Lzk.d.cts.map → getNadoEIP712PrimaryType-DxmJJfz2.d.cts.map} +1 -1
- package/dist/{getNadoEIP712Types-usf5U-za.d.cts → getNadoEIP712Types-CJFATDaU.d.cts} +2 -2
- package/dist/{getNadoEIP712Types-usf5U-za.d.cts.map → getNadoEIP712Types-CJFATDaU.d.cts.map} +1 -1
- package/dist/{getNadoEIP712Types-yqpQaEMA.d.ts → getNadoEIP712Types-DUE5ujkf.d.ts} +2 -2
- package/dist/{getNadoEIP712Types-yqpQaEMA.d.ts.map → getNadoEIP712Types-DUE5ujkf.d.ts.map} +1 -1
- package/dist/{getNadoEIP712Values-BmFwH7vp.d.ts → getNadoEIP712Values-CTLCQp1t.d.ts} +3 -3
- package/dist/getNadoEIP712Values-CTLCQp1t.d.ts.map +1 -0
- package/dist/{getNadoEIP712Values-CP4TLMfi.d.cts → getNadoEIP712Values-P4Ypt-zt.d.cts} +3 -3
- package/dist/getNadoEIP712Values-P4Ypt-zt.d.cts.map +1 -0
- package/dist/{getOrderVerifyingAddress-BygcgBA1.d.ts → getOrderVerifyingAddress-BX_s3Vfh.d.ts} +1 -1
- package/dist/{getOrderVerifyingAddress-BygcgBA1.d.ts.map → getOrderVerifyingAddress-BX_s3Vfh.d.ts.map} +1 -1
- package/dist/{getOrderVerifyingAddress-CHRCQ8AZ.d.cts → getOrderVerifyingAddress-DDfqL0tj.d.cts} +1 -1
- package/dist/{getOrderVerifyingAddress-CHRCQ8AZ.d.cts.map → getOrderVerifyingAddress-DDfqL0tj.d.cts.map} +1 -1
- package/dist/{getSignedTransactionRequest-DjhheDGX.d.cts → getSignedTransactionRequest-C0S7STob.d.cts} +2 -2
- package/dist/{getSignedTransactionRequest-DjhheDGX.d.cts.map → getSignedTransactionRequest-C0S7STob.d.cts.map} +1 -1
- package/dist/{getSignedTransactionRequest-DokLJF9S.d.ts → getSignedTransactionRequest-EzUfIGU0.d.ts} +2 -2
- package/dist/{getSignedTransactionRequest-DokLJF9S.d.ts.map → getSignedTransactionRequest-EzUfIGU0.d.ts.map} +1 -1
- package/dist/{getValidatedAddress-BQJEkmbN.d.cts → getValidatedAddress-BiT9E3l6.d.cts} +1 -1
- package/dist/getValidatedAddress-BiT9E3l6.d.cts.map +1 -0
- package/dist/{getValidatedAddress-BmCqRBeh.d.ts → getValidatedAddress-f8b_x20V.d.ts} +1 -1
- package/dist/getValidatedAddress-f8b_x20V.d.ts.map +1 -0
- package/dist/{getValidatedHex-PXNPR4pI.d.cts → getValidatedHex-D_p2LkRB.d.cts} +1 -1
- package/dist/getValidatedHex-D_p2LkRB.d.cts.map +1 -0
- package/dist/{getValidatedHex-DuwBnuEB.d.ts → getValidatedHex-_FrR4ehU.d.ts} +1 -1
- package/dist/getValidatedHex-_FrR4ehU.d.ts.map +1 -0
- package/dist/index.d.cts +38 -37
- package/dist/index.d.ts +38 -37
- package/dist/{interest-DRpagIcs.d.cts → interest-BJn3z3kZ.d.cts} +1 -1
- package/dist/{interest-DRpagIcs.d.cts.map → interest-BJn3z3kZ.d.cts.map} +1 -1
- package/dist/{interest-CUXHxrel.d.ts → interest-D9Nu3wzM.d.ts} +1 -1
- package/dist/{interest-CUXHxrel.d.ts.map → interest-D9Nu3wzM.d.ts.map} +1 -1
- package/dist/{isWriteableContract-DcM3nqdX.d.ts → isWriteableContract-Cm5HlOta.d.ts} +1 -1
- package/dist/{isWriteableContract-DcM3nqdX.d.ts.map → isWriteableContract-Cm5HlOta.d.ts.map} +1 -1
- package/dist/{isWriteableContract-ZGxc9VmC.d.cts → isWriteableContract-GxOuGwru.d.cts} +1 -1
- package/dist/{isWriteableContract-ZGxc9VmC.d.cts.map → isWriteableContract-GxOuGwru.d.cts.map} +1 -1
- package/dist/{mapValues-cO_NBiCx.d.ts → mapValues-CO9UDyHu.d.ts} +1 -1
- package/dist/{mapValues-cO_NBiCx.d.ts.map → mapValues-CO9UDyHu.d.ts.map} +1 -1
- package/dist/{mapValues-jlfbJybF.d.cts → mapValues-o-kMemvA.d.cts} +1 -1
- package/dist/{mapValues-jlfbJybF.d.cts.map → mapValues-o-kMemvA.d.cts.map} +1 -1
- package/dist/{orderDigest-CQBiGxV6.d.ts → orderDigest-Dkq7daQm.d.ts} +2 -2
- package/dist/{orderDigest-CQBiGxV6.d.ts.map → orderDigest-Dkq7daQm.d.ts.map} +1 -1
- package/dist/{orderDigest-4sDa8VTd.d.cts → orderDigest-KkIGidxX.d.cts} +2 -2
- package/dist/{orderDigest-4sDa8VTd.d.cts.map → orderDigest-KkIGidxX.d.cts.map} +1 -1
- package/dist/{orderNonce-p8m6ZrSd.d.cts → orderNonce-CqjVRxk_.d.cts} +1 -1
- package/dist/{orderNonce-p8m6ZrSd.d.cts.map → orderNonce-CqjVRxk_.d.cts.map} +1 -1
- package/dist/{orderNonce-BgvYpe4l.d.ts → orderNonce-DjWVtNql.d.ts} +1 -1
- package/dist/{orderNonce-BgvYpe4l.d.ts.map → orderNonce-DjWVtNql.d.ts.map} +1 -1
- package/dist/{packOrderAppendix-BokzjU2O.d.ts → packOrderAppendix-BvzI7zfI.d.ts} +1 -1
- package/dist/{packOrderAppendix-BokzjU2O.d.ts.map → packOrderAppendix-BvzI7zfI.d.ts.map} +1 -1
- package/dist/{packOrderAppendix-DJlhe5P5.d.cts → packOrderAppendix-cBX9_d08.d.cts} +1 -1
- package/dist/{packOrderAppendix-DJlhe5P5.d.cts.map → packOrderAppendix-cBX9_d08.d.cts.map} +1 -1
- package/dist/{productIds-CCewi4tC.d.ts → productIds-BZeKoHcK.d.ts} +1 -1
- package/dist/productIds-BZeKoHcK.d.ts.map +1 -0
- package/dist/{productIds-COuWMJat.d.cts → productIds-CePkYUZH.d.cts} +1 -1
- package/dist/productIds-CePkYUZH.d.cts.map +1 -0
- package/dist/{productTypeFilter-B6CoWHmB.d.cts → productTypeFilter-Dtf71CLf.d.cts} +1 -1
- package/dist/{productTypeFilter-B6CoWHmB.d.cts.map → productTypeFilter-Dtf71CLf.d.cts.map} +1 -1
- package/dist/{productTypeFilter-B0oL5G_q.d.ts → productTypeFilter-IKV6IkNW.d.ts} +1 -1
- package/dist/{productTypeFilter-B0oL5G_q.d.ts.map → productTypeFilter-IKV6IkNW.d.ts.map} +1 -1
- package/dist/{recvTime-C6ulZVuR.d.ts → recvTime-B5XYRV0S.d.ts} +1 -1
- package/dist/recvTime-B5XYRV0S.d.ts.map +1 -0
- package/dist/{recvTime-lSkRnXFh.d.cts → recvTime-D6SfTY5U.d.cts} +1 -1
- package/dist/recvTime-D6SfTY5U.d.cts.map +1 -0
- package/dist/{signableRequestType-C-MaCVaC.d.ts → signableRequestType-BtNg2SMb.d.cts} +4 -2
- package/dist/signableRequestType-BtNg2SMb.d.cts.map +1 -0
- package/dist/{signableRequestType-BFOJH5y6.d.cts → signableRequestType-CZjIeuKt.d.ts} +4 -2
- package/dist/signableRequestType-CZjIeuKt.d.ts.map +1 -0
- package/dist/{signatureParamTypes-w4Wms7tY.d.cts → signatureParamTypes-D30zq2Ac.d.cts} +17 -4
- package/dist/signatureParamTypes-D30zq2Ac.d.cts.map +1 -0
- package/dist/{signatureParamTypes-DY1dhU2B.d.ts → signatureParamTypes-wuLv8rkA.d.ts} +17 -4
- package/dist/signatureParamTypes-wuLv8rkA.d.ts.map +1 -0
- package/dist/signatureTypes-DxmIJNug.d.ts +15 -0
- package/dist/signatureTypes-DxmIJNug.d.ts.map +1 -0
- package/dist/signatureTypes-S1LMAbRM.d.cts +15 -0
- package/dist/signatureTypes-S1LMAbRM.d.cts.map +1 -0
- package/dist/{subaccountTypes-FoLRswIa.d.ts → subaccountTypes-BuzrDicU.d.ts} +1 -1
- package/dist/{subaccountTypes-FoLRswIa.d.ts.map → subaccountTypes-BuzrDicU.d.ts.map} +1 -1
- package/dist/{subaccountTypes-BGE4tJKb.d.cts → subaccountTypes-DCl5hh9_.d.cts} +1 -1
- package/dist/{subaccountTypes-BGE4tJKb.d.cts.map → subaccountTypes-DCl5hh9_.d.cts.map} +1 -1
- package/dist/{time-BpZLFNOC.d.ts → time-BXCJoadZ.d.ts} +1 -1
- package/dist/{time-BpZLFNOC.d.ts.map → time-BXCJoadZ.d.ts.map} +1 -1
- package/dist/{time-D6SSEenZ.d.cts → time-CN8jbcGn.d.cts} +1 -1
- package/dist/{time-D6SSEenZ.d.cts.map → time-CN8jbcGn.d.cts.map} +1 -1
- package/dist/{toPrintableObject-CwWr2voJ.d.cts → toPrintableObject-BD8fvLEw.d.cts} +1 -1
- package/dist/{toPrintableObject-CwWr2voJ.d.cts.map → toPrintableObject-BD8fvLEw.d.cts.map} +1 -1
- package/dist/{toPrintableObject-kBzCvR0Y.d.ts → toPrintableObject-qU66WYAb.d.ts} +1 -1
- package/dist/{toPrintableObject-kBzCvR0Y.d.ts.map → toPrintableObject-qU66WYAb.d.ts.map} +1 -1
- package/dist/types/index.d.cts +3 -2
- package/dist/types/index.d.ts +3 -2
- package/dist/types/signatureTypes.cjs +0 -0
- package/dist/types/signatureTypes.d.cts +2 -0
- package/dist/types/signatureTypes.d.ts +2 -0
- package/dist/types/signatureTypes.js +1 -0
- package/dist/types/subaccountTypes.d.cts +1 -1
- package/dist/types/subaccountTypes.d.ts +1 -1
- package/dist/{types-Cqqkhcva.d.ts → types-C3h0_DhN.d.ts} +1 -1
- package/dist/{types-Cqqkhcva.d.ts.map → types-C3h0_DhN.d.ts.map} +1 -1
- package/dist/{types-BdV1zhbS.d.cts → types-STPWaMSZ.d.cts} +1 -1
- package/dist/{types-BdV1zhbS.d.cts.map → types-STPWaMSZ.d.cts.map} +1 -1
- package/dist/{unpackOrderAppendix-Dx0MDs4V.d.ts → unpackOrderAppendix-BtZ5M1kJ.d.ts} +1 -1
- package/dist/{unpackOrderAppendix-Dx0MDs4V.d.ts.map → unpackOrderAppendix-BtZ5M1kJ.d.ts.map} +1 -1
- package/dist/{unpackOrderAppendix-E8HT7dKm.d.cts → unpackOrderAppendix-D2mTEbjX.d.cts} +1 -1
- package/dist/{unpackOrderAppendix-E8HT7dKm.d.cts.map → unpackOrderAppendix-D2mTEbjX.d.cts.map} +1 -1
- package/dist/utils/asyncResult.d.cts +1 -1
- package/dist/utils/asyncResult.d.ts +1 -1
- package/dist/utils/balanceValue.d.cts +1 -1
- package/dist/utils/balanceValue.d.ts +1 -1
- package/dist/utils/bytes32.d.cts +1 -1
- package/dist/utils/bytes32.d.ts +1 -1
- package/dist/utils/createDeterministicLinkedSignerPrivateKey.d.cts +1 -1
- package/dist/utils/createDeterministicLinkedSignerPrivateKey.d.ts +1 -1
- package/dist/utils/errors/WalletNotProvidedError.d.cts +1 -1
- package/dist/utils/errors/WalletNotProvidedError.d.ts +1 -1
- package/dist/utils/errors/index.d.cts +1 -1
- package/dist/utils/errors/index.d.ts +1 -1
- package/dist/utils/getValidatedAddress.d.cts +1 -1
- package/dist/utils/getValidatedAddress.d.ts +1 -1
- package/dist/utils/getValidatedHex.d.cts +1 -1
- package/dist/utils/getValidatedHex.d.ts +1 -1
- package/dist/utils/index.d.cts +20 -20
- package/dist/utils/index.d.ts +20 -20
- package/dist/utils/interest.d.cts +1 -1
- package/dist/utils/interest.d.ts +1 -1
- package/dist/utils/isWriteableContract.d.cts +1 -1
- package/dist/utils/isWriteableContract.d.ts +1 -1
- package/dist/utils/mapValues.d.cts +1 -1
- package/dist/utils/mapValues.d.ts +1 -1
- package/dist/utils/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/eip712/eip712ValueTypes.ts +10 -0
- package/src/eip712/getNadoEIP712Types.ts +18 -0
- package/src/eip712/getNadoEIP712Values.ts +42 -0
- package/src/eip712/signableRequestType.ts +4 -0
- package/src/eip712/signatureParamTypes.ts +20 -1
- package/src/types/index.ts +1 -0
- package/src/types/signatureTypes.ts +11 -0
- package/dist/createDeterministicLinkedSignerPrivateKey-XciG6RLh.d.ts.map +0 -1
- package/dist/eip712ValueTypes-BbEkGbjV.d.ts.map +0 -1
- package/dist/eip712ValueTypes-WrIZ5ICk.d.cts.map +0 -1
- package/dist/getNadoEIP712Values-BmFwH7vp.d.ts.map +0 -1
- package/dist/getNadoEIP712Values-CP4TLMfi.d.cts.map +0 -1
- package/dist/getValidatedAddress-BQJEkmbN.d.cts.map +0 -1
- package/dist/getValidatedAddress-BmCqRBeh.d.ts.map +0 -1
- package/dist/getValidatedHex-DuwBnuEB.d.ts.map +0 -1
- package/dist/getValidatedHex-PXNPR4pI.d.cts.map +0 -1
- package/dist/productIds-CCewi4tC.d.ts.map +0 -1
- package/dist/productIds-COuWMJat.d.cts.map +0 -1
- package/dist/recvTime-C6ulZVuR.d.ts.map +0 -1
- package/dist/recvTime-lSkRnXFh.d.cts.map +0 -1
- package/dist/signableRequestType-BFOJH5y6.d.cts.map +0 -1
- package/dist/signableRequestType-C-MaCVaC.d.ts.map +0 -1
- package/dist/signatureParamTypes-DY1dhU2B.d.ts.map +0 -1
- package/dist/signatureParamTypes-w4Wms7tY.d.cts.map +0 -1
- /package/dist/{index-B1btZMWF.d.ts → index-B98eXebS.d.ts} +0 -0
- /package/dist/{index-BCsiC0tv.d.cts → index-BJ8-FA6N.d.cts} +0 -0
- /package/dist/{index-BVJyZlmP2.d.cts → index-BLREDRDJ.d.cts} +0 -0
- /package/dist/{index-Ba3GYDF9.d.ts → index-BLwMeReG.d.ts} +0 -0
- /package/dist/{index-Bq2ftOXk2.d.cts → index-C6yvNuzO.d.cts} +0 -0
- /package/dist/{index-Br3qA4B52.d.ts → index-CNuTE0dv.d.ts} +0 -0
- /package/dist/{index-C9nY9t1j.d.ts → index-DFKoAoY2.d.cts} +0 -0
- /package/dist/{index-CB5PSF-Q.d.ts → index-DPuvk4iq.d.ts} +0 -0
- /package/dist/{index-CQ25UCod.d.cts → index-DYVpYyuQ2.d.ts} +0 -0
- /package/dist/{index-D4eheNJJ.d.cts → index-Dh6J9gb5.d.cts} +0 -0
- /package/dist/{index-ZFCPoV_B2.d.ts → index-ma3taAs-.d.ts} +0 -0
- /package/dist/{index-_1bfRgi2.d.cts → index-qOayZAJw2.d.cts} +0 -0
package/dist/utils/index.d.cts
CHANGED
|
@@ -5,24 +5,24 @@ import { n as addDecimals, r as removeDecimals, t as NADO_PRODUCT_DECIMALS } fro
|
|
|
5
5
|
import { t as sumBigNumberBy } from "../sumBigNumberBy-BWQ-bPpk.cjs";
|
|
6
6
|
import { t as toBigInt } from "../toBigInt-cEajjeFa.cjs";
|
|
7
7
|
import { t as toIntegerString } from "../toIntegerString-CHveFt3s.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 getValidatedAddress } from "../getValidatedAddress-
|
|
14
|
-
import { t as getValidatedHex } from "../getValidatedHex-
|
|
15
|
-
import { a as calcTotalDeposited, i as calcTotalBorrowed, n as calcBorrowRatePerSecond, o as calcUtilizationRatio, r as calcRealizedDepositRateForTimeRange, t as calcBorrowRateForTimeRange } from "../interest-
|
|
16
|
-
import { t as isWriteableContract } from "../isWriteableContract-
|
|
17
|
-
import { t as mapValues } from "../mapValues-
|
|
18
|
-
import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../appendixTwapValue-
|
|
19
|
-
import { t as bitMaskValue } from "../bitMaskValue-
|
|
20
|
-
import { t as packOrderAppendix } from "../packOrderAppendix-
|
|
21
|
-
import { t as PackedOrderAppendixBits } from "../types-
|
|
22
|
-
import { t as unpackOrderAppendix } from "../unpackOrderAppendix-
|
|
23
|
-
import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../orderNonce-
|
|
24
|
-
import { t as getDefaultRecvTime } from "../recvTime-
|
|
25
|
-
import { i as isSpotProduct, n as isPerpProduct, r as isSpotBalance, t as isPerpBalance } from "../productTypeFilter-
|
|
26
|
-
import { n as millisToSeconds, r as nowInSeconds, t as TimeInSeconds } from "../time-
|
|
27
|
-
import { t as toPrintableObject } from "../toPrintableObject-
|
|
8
|
+
import { n as asyncResult, t as AsyncResult } from "../asyncResult-B8ly8lP_.cjs";
|
|
9
|
+
import { n as calcPerpBalanceValue, r as calcSpotBalanceValue, t as calcPerpBalanceNotionalValue } from "../balanceValue-CT4Q7W0T.cjs";
|
|
10
|
+
import { a as subaccountToBytes32, i as subaccountNameToBytes12, n as subaccountFromHex, o as subaccountToHex, r as subaccountNameBytesToStr, t as subaccountFromBytes32 } from "../bytes32-klqLJUFN.cjs";
|
|
11
|
+
import { t as createDeterministicLinkedSignerPrivateKey } from "../createDeterministicLinkedSignerPrivateKey-CcJhRSf7.cjs";
|
|
12
|
+
import { t as WalletNotProvidedError } from "../WalletNotProvidedError-BEoW-nA1.cjs";
|
|
13
|
+
import { t as getValidatedAddress } from "../getValidatedAddress-BiT9E3l6.cjs";
|
|
14
|
+
import { t as getValidatedHex } from "../getValidatedHex-D_p2LkRB.cjs";
|
|
15
|
+
import { a as calcTotalDeposited, i as calcTotalBorrowed, n as calcBorrowRatePerSecond, o as calcUtilizationRatio, r as calcRealizedDepositRateForTimeRange, t as calcBorrowRateForTimeRange } from "../interest-BJn3z3kZ.cjs";
|
|
16
|
+
import { t as isWriteableContract } from "../isWriteableContract-GxOuGwru.cjs";
|
|
17
|
+
import { t as mapValues } from "../mapValues-o-kMemvA.cjs";
|
|
18
|
+
import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../appendixTwapValue-DIqDV7Z7.cjs";
|
|
19
|
+
import { t as bitMaskValue } from "../bitMaskValue-CDz7vtPM.cjs";
|
|
20
|
+
import { t as packOrderAppendix } from "../packOrderAppendix-cBX9_d08.cjs";
|
|
21
|
+
import { t as PackedOrderAppendixBits } from "../types-STPWaMSZ.cjs";
|
|
22
|
+
import { t as unpackOrderAppendix } from "../unpackOrderAppendix-D2mTEbjX.cjs";
|
|
23
|
+
import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../orderNonce-CqjVRxk_.cjs";
|
|
24
|
+
import { t as getDefaultRecvTime } from "../recvTime-D6SfTY5U.cjs";
|
|
25
|
+
import { i as isSpotProduct, n as isPerpProduct, r as isSpotBalance, t as isPerpBalance } from "../productTypeFilter-Dtf71CLf.cjs";
|
|
26
|
+
import { n as millisToSeconds, r as nowInSeconds, t as TimeInSeconds } from "../time-CN8jbcGn.cjs";
|
|
27
|
+
import { t as toPrintableObject } from "../toPrintableObject-BD8fvLEw.cjs";
|
|
28
28
|
export { AsyncResult, BigNumberish, BigNumbers, NADO_PRODUCT_DECIMALS, PackedOrderAppendixBits, TimeInSeconds, WalletNotProvidedError, addDecimals, asyncResult, bitMaskValue, calcBorrowRateForTimeRange, calcBorrowRatePerSecond, calcPerpBalanceNotionalValue, calcPerpBalanceValue, calcRealizedDepositRateForTimeRange, calcSpotBalanceValue, calcTotalBorrowed, calcTotalDeposited, calcUtilizationRatio, clampBigNumber, createDeterministicLinkedSignerPrivateKey, getDefaultRecvTime, getOrderNonce, getRecvTimeFromOrderNonce, getValidatedAddress, getValidatedHex, isPerpBalance, isPerpProduct, isSpotBalance, isSpotProduct, isWriteableContract, mapValues, millisToSeconds, nowInSeconds, packOrderAppendix, packTwapOrderAppendixValue, removeDecimals, subaccountFromBytes32, subaccountFromHex, subaccountNameBytesToStr, subaccountNameToBytes12, subaccountToBytes32, subaccountToHex, sumBigNumberBy, toBigInt, toBigNumber, toIntegerString, toPrintableObject, unpackOrderAppendix, unpackTwapOrderAppendixValue };
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -5,24 +5,24 @@ import { n as addDecimals, r as removeDecimals, t as NADO_PRODUCT_DECIMALS } fro
|
|
|
5
5
|
import { t as sumBigNumberBy } from "../sumBigNumberBy-wVwOxwyc.js";
|
|
6
6
|
import { t as toBigInt } from "../toBigInt-PqI3ILSN.js";
|
|
7
7
|
import { t as toIntegerString } from "../toIntegerString-sATPFuxt.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 getValidatedAddress } from "../getValidatedAddress-
|
|
14
|
-
import { t as getValidatedHex } from "../getValidatedHex-
|
|
15
|
-
import { a as calcTotalDeposited, i as calcTotalBorrowed, n as calcBorrowRatePerSecond, o as calcUtilizationRatio, r as calcRealizedDepositRateForTimeRange, t as calcBorrowRateForTimeRange } from "../interest-
|
|
16
|
-
import { t as isWriteableContract } from "../isWriteableContract-
|
|
17
|
-
import { t as mapValues } from "../mapValues-
|
|
18
|
-
import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../appendixTwapValue-
|
|
19
|
-
import { t as bitMaskValue } from "../bitMaskValue-
|
|
20
|
-
import { t as packOrderAppendix } from "../packOrderAppendix-
|
|
21
|
-
import { t as PackedOrderAppendixBits } from "../types-
|
|
22
|
-
import { t as unpackOrderAppendix } from "../unpackOrderAppendix-
|
|
23
|
-
import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../orderNonce-
|
|
24
|
-
import { t as getDefaultRecvTime } from "../recvTime-
|
|
25
|
-
import { i as isSpotProduct, n as isPerpProduct, r as isSpotBalance, t as isPerpBalance } from "../productTypeFilter-
|
|
26
|
-
import { n as millisToSeconds, r as nowInSeconds, t as TimeInSeconds } from "../time-
|
|
27
|
-
import { t as toPrintableObject } from "../toPrintableObject-
|
|
8
|
+
import { n as asyncResult, t as AsyncResult } from "../asyncResult-CrfiRFh5.js";
|
|
9
|
+
import { n as calcPerpBalanceValue, r as calcSpotBalanceValue, t as calcPerpBalanceNotionalValue } from "../balanceValue-bkwkBhFu.js";
|
|
10
|
+
import { a as subaccountToBytes32, i as subaccountNameToBytes12, n as subaccountFromHex, o as subaccountToHex, r as subaccountNameBytesToStr, t as subaccountFromBytes32 } from "../bytes32-D-tn3XZy.js";
|
|
11
|
+
import { t as createDeterministicLinkedSignerPrivateKey } from "../createDeterministicLinkedSignerPrivateKey-47pkYOE0.js";
|
|
12
|
+
import { t as WalletNotProvidedError } from "../WalletNotProvidedError-v1a959kl.js";
|
|
13
|
+
import { t as getValidatedAddress } from "../getValidatedAddress-f8b_x20V.js";
|
|
14
|
+
import { t as getValidatedHex } from "../getValidatedHex-_FrR4ehU.js";
|
|
15
|
+
import { a as calcTotalDeposited, i as calcTotalBorrowed, n as calcBorrowRatePerSecond, o as calcUtilizationRatio, r as calcRealizedDepositRateForTimeRange, t as calcBorrowRateForTimeRange } from "../interest-D9Nu3wzM.js";
|
|
16
|
+
import { t as isWriteableContract } from "../isWriteableContract-Cm5HlOta.js";
|
|
17
|
+
import { t as mapValues } from "../mapValues-CO9UDyHu.js";
|
|
18
|
+
import { n as unpackTwapOrderAppendixValue, t as packTwapOrderAppendixValue } from "../appendixTwapValue-DPsC1hXX.js";
|
|
19
|
+
import { t as bitMaskValue } from "../bitMaskValue-qyWUOgv1.js";
|
|
20
|
+
import { t as packOrderAppendix } from "../packOrderAppendix-BvzI7zfI.js";
|
|
21
|
+
import { t as PackedOrderAppendixBits } from "../types-C3h0_DhN.js";
|
|
22
|
+
import { t as unpackOrderAppendix } from "../unpackOrderAppendix-BtZ5M1kJ.js";
|
|
23
|
+
import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../orderNonce-DjWVtNql.js";
|
|
24
|
+
import { t as getDefaultRecvTime } from "../recvTime-B5XYRV0S.js";
|
|
25
|
+
import { i as isSpotProduct, n as isPerpProduct, r as isSpotBalance, t as isPerpBalance } from "../productTypeFilter-IKV6IkNW.js";
|
|
26
|
+
import { n as millisToSeconds, r as nowInSeconds, t as TimeInSeconds } from "../time-BXCJoadZ.js";
|
|
27
|
+
import { t as toPrintableObject } from "../toPrintableObject-qU66WYAb.js";
|
|
28
28
|
export { AsyncResult, BigNumberish, BigNumbers, NADO_PRODUCT_DECIMALS, PackedOrderAppendixBits, TimeInSeconds, WalletNotProvidedError, addDecimals, asyncResult, bitMaskValue, calcBorrowRateForTimeRange, calcBorrowRatePerSecond, calcPerpBalanceNotionalValue, calcPerpBalanceValue, calcRealizedDepositRateForTimeRange, calcSpotBalanceValue, calcTotalBorrowed, calcTotalDeposited, calcUtilizationRatio, clampBigNumber, createDeterministicLinkedSignerPrivateKey, getDefaultRecvTime, getOrderNonce, getRecvTimeFromOrderNonce, getValidatedAddress, getValidatedHex, isPerpBalance, isPerpProduct, isSpotBalance, isSpotProduct, isWriteableContract, mapValues, millisToSeconds, nowInSeconds, packOrderAppendix, packTwapOrderAppendixValue, removeDecimals, subaccountFromBytes32, subaccountFromHex, subaccountNameBytesToStr, subaccountNameToBytes12, subaccountToBytes32, subaccountToHex, sumBigNumberBy, toBigInt, toBigNumber, toIntegerString, toPrintableObject, unpackOrderAppendix, unpackTwapOrderAppendixValue };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as calcTotalDeposited, i as calcTotalBorrowed, n as calcBorrowRatePerSecond, o as calcUtilizationRatio, r as calcRealizedDepositRateForTimeRange, t as calcBorrowRateForTimeRange } from "../interest-
|
|
1
|
+
import { a as calcTotalDeposited, i as calcTotalBorrowed, n as calcBorrowRatePerSecond, o as calcUtilizationRatio, r as calcRealizedDepositRateForTimeRange, t as calcBorrowRateForTimeRange } from "../interest-BJn3z3kZ.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-D9Nu3wzM.js";
|
|
2
2
|
export { calcBorrowRateForTimeRange, calcBorrowRatePerSecond, calcRealizedDepositRateForTimeRange, calcTotalBorrowed, calcTotalDeposited, calcUtilizationRatio };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as isWriteableContract } from "../isWriteableContract-
|
|
1
|
+
import { t as isWriteableContract } from "../isWriteableContract-GxOuGwru.cjs";
|
|
2
2
|
export { isWriteableContract };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as isWriteableContract } from "../isWriteableContract-
|
|
1
|
+
import { t as isWriteableContract } from "../isWriteableContract-Cm5HlOta.js";
|
|
2
2
|
export { isWriteableContract };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as mapValues } from "../mapValues-
|
|
1
|
+
import { t as mapValues } from "../mapValues-o-kMemvA.cjs";
|
|
2
2
|
export { mapValues };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as mapValues } from "../mapValues-
|
|
1
|
+
import { t as mapValues } from "../mapValues-CO9UDyHu.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-DIqDV7Z7.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-DPsC1hXX.js";
|
|
2
2
|
export { packTwapOrderAppendixValue, unpackTwapOrderAppendixValue };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as bitMaskValue } from "../../../bitMaskValue-
|
|
1
|
+
import { t as bitMaskValue } from "../../../bitMaskValue-CDz7vtPM.cjs";
|
|
2
2
|
export { bitMaskValue };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as bitMaskValue } from "../../../bitMaskValue-
|
|
1
|
+
import { t as bitMaskValue } from "../../../bitMaskValue-qyWUOgv1.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-DIqDV7Z7.cjs";
|
|
2
|
+
import { t as bitMaskValue } from "../../../bitMaskValue-CDz7vtPM.cjs";
|
|
3
|
+
import { t as packOrderAppendix } from "../../../packOrderAppendix-cBX9_d08.cjs";
|
|
4
|
+
import { t as PackedOrderAppendixBits } from "../../../types-STPWaMSZ.cjs";
|
|
5
|
+
import { t as unpackOrderAppendix } from "../../../unpackOrderAppendix-D2mTEbjX.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-DPsC1hXX.js";
|
|
2
|
+
import { t as bitMaskValue } from "../../../bitMaskValue-qyWUOgv1.js";
|
|
3
|
+
import { t as packOrderAppendix } from "../../../packOrderAppendix-BvzI7zfI.js";
|
|
4
|
+
import { t as PackedOrderAppendixBits } from "../../../types-C3h0_DhN.js";
|
|
5
|
+
import { t as unpackOrderAppendix } from "../../../unpackOrderAppendix-BtZ5M1kJ.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-cBX9_d08.cjs";
|
|
2
2
|
export { packOrderAppendix };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as packOrderAppendix } from "../../../packOrderAppendix-
|
|
1
|
+
import { t as packOrderAppendix } from "../../../packOrderAppendix-BvzI7zfI.js";
|
|
2
2
|
export { packOrderAppendix };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as PackedOrderAppendixBits } from "../../../types-
|
|
1
|
+
import { t as PackedOrderAppendixBits } from "../../../types-STPWaMSZ.cjs";
|
|
2
2
|
export { PackedOrderAppendixBits };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as PackedOrderAppendixBits } from "../../../types-
|
|
1
|
+
import { t as PackedOrderAppendixBits } from "../../../types-C3h0_DhN.js";
|
|
2
2
|
export { PackedOrderAppendixBits };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as unpackOrderAppendix } from "../../../unpackOrderAppendix-
|
|
1
|
+
import { t as unpackOrderAppendix } from "../../../unpackOrderAppendix-D2mTEbjX.cjs";
|
|
2
2
|
export { unpackOrderAppendix };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as unpackOrderAppendix } from "../../../unpackOrderAppendix-
|
|
1
|
+
import { t as unpackOrderAppendix } from "../../../unpackOrderAppendix-BtZ5M1kJ.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-DIqDV7Z7.cjs";
|
|
2
|
+
import { t as bitMaskValue } from "../../bitMaskValue-CDz7vtPM.cjs";
|
|
3
|
+
import { t as packOrderAppendix } from "../../packOrderAppendix-cBX9_d08.cjs";
|
|
4
|
+
import { t as PackedOrderAppendixBits } from "../../types-STPWaMSZ.cjs";
|
|
5
|
+
import { t as unpackOrderAppendix } from "../../unpackOrderAppendix-D2mTEbjX.cjs";
|
|
6
|
+
import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../../orderNonce-CqjVRxk_.cjs";
|
|
7
|
+
import { t as getDefaultRecvTime } from "../../recvTime-D6SfTY5U.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-DPsC1hXX.js";
|
|
2
|
+
import { t as bitMaskValue } from "../../bitMaskValue-qyWUOgv1.js";
|
|
3
|
+
import { t as packOrderAppendix } from "../../packOrderAppendix-BvzI7zfI.js";
|
|
4
|
+
import { t as PackedOrderAppendixBits } from "../../types-C3h0_DhN.js";
|
|
5
|
+
import { t as unpackOrderAppendix } from "../../unpackOrderAppendix-BtZ5M1kJ.js";
|
|
6
|
+
import { n as getRecvTimeFromOrderNonce, t as getOrderNonce } from "../../orderNonce-DjWVtNql.js";
|
|
7
|
+
import { t as getDefaultRecvTime } from "../../recvTime-B5XYRV0S.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-CqjVRxk_.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-DjWVtNql.js";
|
|
2
2
|
export { getOrderNonce, getRecvTimeFromOrderNonce };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as getDefaultRecvTime } from "../../recvTime-
|
|
1
|
+
import { t as getDefaultRecvTime } from "../../recvTime-D6SfTY5U.cjs";
|
|
2
2
|
export { getDefaultRecvTime };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as getDefaultRecvTime } from "../../recvTime-
|
|
1
|
+
import { t as getDefaultRecvTime } from "../../recvTime-B5XYRV0S.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-Dtf71CLf.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-IKV6IkNW.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-CN8jbcGn.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-BXCJoadZ.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-BD8fvLEw.cjs";
|
|
2
2
|
export { toPrintableObject };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as toPrintableObject } from "../toPrintableObject-
|
|
1
|
+
import { t as toPrintableObject } from "../toPrintableObject-qU66WYAb.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.27.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": "8a372c1df88e29446e9fd60072c76003d403fdce"
|
|
56
56
|
}
|
|
@@ -9,9 +9,11 @@ import {
|
|
|
9
9
|
EIP712LiquidateSubaccountParams,
|
|
10
10
|
EIP712ListTriggerOrdersParams,
|
|
11
11
|
EIP712MintNlpParams,
|
|
12
|
+
EIP712NadoAuthenticationParams,
|
|
12
13
|
EIP712OrderParams,
|
|
13
14
|
EIP712SocialAuthenticationParams,
|
|
14
15
|
EIP712TransferQuoteParams,
|
|
16
|
+
EIP712UpdateDependencyParams,
|
|
15
17
|
EIP712WithdrawCollateralParams,
|
|
16
18
|
EIP712WithdrawCollateralV2Params,
|
|
17
19
|
} from './signatureParamTypes';
|
|
@@ -47,6 +49,9 @@ export type EIP712OrderValues = Omit<
|
|
|
47
49
|
export type EIP712ListTriggerOrdersValues =
|
|
48
50
|
WithEIP712Sender<EIP712ListTriggerOrdersParams>;
|
|
49
51
|
|
|
52
|
+
export type EIP712UpdateDependencyValues =
|
|
53
|
+
WithEIP712Sender<EIP712UpdateDependencyParams>;
|
|
54
|
+
|
|
50
55
|
export type EIP712OrderCancellationValues =
|
|
51
56
|
WithEIP712Sender<EIP712CancelOrdersParams>;
|
|
52
57
|
|
|
@@ -73,6 +78,9 @@ export type EIP712MintNlpValues = WithEIP712Sender<EIP712MintNlpParams>;
|
|
|
73
78
|
|
|
74
79
|
export type EIP712BurnNlpValues = WithEIP712Sender<EIP712BurnNlpParams>;
|
|
75
80
|
|
|
81
|
+
export type EIP712NadoAuthenticationValues =
|
|
82
|
+
WithEIP712Sender<EIP712NadoAuthenticationParams>;
|
|
83
|
+
|
|
76
84
|
/**
|
|
77
85
|
* All possible requests to be signed, to the EIP712 value interface
|
|
78
86
|
*/
|
|
@@ -85,9 +93,11 @@ export interface SignableRequestTypeToEIP712Values {
|
|
|
85
93
|
liquidate_subaccount: EIP712LiquidateSubaccountValues;
|
|
86
94
|
list_trigger_orders: EIP712ListTriggerOrdersValues;
|
|
87
95
|
mint_nlp: EIP712MintNlpValues;
|
|
96
|
+
nado_authentication: EIP712NadoAuthenticationValues;
|
|
88
97
|
place_order: EIP712OrderValues;
|
|
89
98
|
social_authentication: EIP712SocialAuthenticationValues;
|
|
90
99
|
transfer_quote: EIP712TransferQuoteValues;
|
|
100
|
+
update_dependency: EIP712UpdateDependencyValues;
|
|
91
101
|
withdraw_collateral: EIP712WithdrawCollateralValues;
|
|
92
102
|
withdraw_collateral_v2: EIP712WithdrawCollateralV2Values;
|
|
93
103
|
}
|
|
@@ -52,6 +52,15 @@ export function getNadoEIP712Types(
|
|
|
52
52
|
{ name: 'recvTime', type: 'uint64' },
|
|
53
53
|
],
|
|
54
54
|
};
|
|
55
|
+
case 'update_dependency':
|
|
56
|
+
return {
|
|
57
|
+
DependencyUpdate: [
|
|
58
|
+
{ name: 'sender', type: 'bytes32' },
|
|
59
|
+
{ name: 'oldDigest', type: 'bytes32' },
|
|
60
|
+
{ name: 'newDigest', type: 'bytes32' },
|
|
61
|
+
{ name: 'nonce', type: 'uint64' },
|
|
62
|
+
],
|
|
63
|
+
};
|
|
55
64
|
case 'cancel_orders':
|
|
56
65
|
return {
|
|
57
66
|
Cancellation: [
|
|
@@ -129,5 +138,14 @@ export function getNadoEIP712Types(
|
|
|
129
138
|
{ name: 'nonce', type: 'uint64' },
|
|
130
139
|
],
|
|
131
140
|
};
|
|
141
|
+
case 'nado_authentication':
|
|
142
|
+
return {
|
|
143
|
+
NadoAuthentication: [
|
|
144
|
+
{ name: 'method', type: 'string' },
|
|
145
|
+
{ name: 'sender', type: 'bytes32' },
|
|
146
|
+
{ name: 'payloadHash', type: 'bytes32' },
|
|
147
|
+
{ name: 'nonce', type: 'uint64' },
|
|
148
|
+
],
|
|
149
|
+
};
|
|
132
150
|
}
|
|
133
151
|
}
|
|
@@ -7,11 +7,13 @@ import {
|
|
|
7
7
|
EIP712LiquidateSubaccountValues,
|
|
8
8
|
EIP712ListTriggerOrdersValues,
|
|
9
9
|
EIP712MintNlpValues,
|
|
10
|
+
EIP712NadoAuthenticationValues,
|
|
10
11
|
EIP712OrderCancellationValues,
|
|
11
12
|
EIP712OrderValues,
|
|
12
13
|
EIP712ProductOrdersCancellationValues,
|
|
13
14
|
EIP712SocialAuthenticationValues,
|
|
14
15
|
EIP712TransferQuoteValues,
|
|
16
|
+
EIP712UpdateDependencyValues,
|
|
15
17
|
EIP712WithdrawCollateralV2Values,
|
|
16
18
|
EIP712WithdrawCollateralValues,
|
|
17
19
|
SignableRequestTypeToEIP712Values,
|
|
@@ -29,9 +31,11 @@ import {
|
|
|
29
31
|
EIP712LiquidateSubaccountParams,
|
|
30
32
|
EIP712ListTriggerOrdersParams,
|
|
31
33
|
EIP712MintNlpParams,
|
|
34
|
+
EIP712NadoAuthenticationParams,
|
|
32
35
|
EIP712OrderParams,
|
|
33
36
|
EIP712SocialAuthenticationParams,
|
|
34
37
|
EIP712TransferQuoteParams,
|
|
38
|
+
EIP712UpdateDependencyParams,
|
|
35
39
|
EIP712WithdrawCollateralParams,
|
|
36
40
|
EIP712WithdrawCollateralV2Params,
|
|
37
41
|
} from './signatureParamTypes';
|
|
@@ -69,6 +73,11 @@ export function getNadoEIP712Values<TReqType extends SignableRequestType>(
|
|
|
69
73
|
params as EIP712ListTriggerOrdersParams,
|
|
70
74
|
);
|
|
71
75
|
break;
|
|
76
|
+
case 'update_dependency':
|
|
77
|
+
values = getUpdateDependencyValues(
|
|
78
|
+
params as EIP712UpdateDependencyParams,
|
|
79
|
+
);
|
|
80
|
+
break;
|
|
72
81
|
case 'cancel_orders':
|
|
73
82
|
values = getOrderCancellationValues(params as EIP712CancelOrdersParams);
|
|
74
83
|
break;
|
|
@@ -104,6 +113,11 @@ export function getNadoEIP712Values<TReqType extends SignableRequestType>(
|
|
|
104
113
|
case 'burn_nlp':
|
|
105
114
|
values = getBurnNlpValues(params as EIP712BurnNlpParams);
|
|
106
115
|
break;
|
|
116
|
+
case 'nado_authentication':
|
|
117
|
+
values = getNadoAuthenticationValues(
|
|
118
|
+
params as EIP712NadoAuthenticationParams,
|
|
119
|
+
);
|
|
120
|
+
break;
|
|
107
121
|
default:
|
|
108
122
|
throw new Error(`Unsupported request type: ${requestType}`);
|
|
109
123
|
}
|
|
@@ -167,6 +181,20 @@ function getListTriggerOrdersValues(
|
|
|
167
181
|
};
|
|
168
182
|
}
|
|
169
183
|
|
|
184
|
+
function getUpdateDependencyValues(
|
|
185
|
+
params: EIP712UpdateDependencyParams,
|
|
186
|
+
): EIP712UpdateDependencyValues {
|
|
187
|
+
return {
|
|
188
|
+
sender: subaccountToHex({
|
|
189
|
+
subaccountOwner: params.subaccountOwner,
|
|
190
|
+
subaccountName: params.subaccountName,
|
|
191
|
+
}),
|
|
192
|
+
oldDigest: params.oldDigest,
|
|
193
|
+
newDigest: params.newDigest,
|
|
194
|
+
nonce: params.nonce,
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
|
|
170
198
|
function getOrderCancellationValues(
|
|
171
199
|
params: EIP712CancelOrdersParams,
|
|
172
200
|
): EIP712OrderCancellationValues {
|
|
@@ -290,3 +318,17 @@ function getBurnNlpValues(params: EIP712BurnNlpParams): EIP712BurnNlpValues {
|
|
|
290
318
|
nonce: params.nonce,
|
|
291
319
|
};
|
|
292
320
|
}
|
|
321
|
+
|
|
322
|
+
function getNadoAuthenticationValues(
|
|
323
|
+
params: EIP712NadoAuthenticationParams,
|
|
324
|
+
): EIP712NadoAuthenticationValues {
|
|
325
|
+
return {
|
|
326
|
+
method: params.method,
|
|
327
|
+
sender: subaccountToHex({
|
|
328
|
+
subaccountOwner: params.subaccountOwner,
|
|
329
|
+
subaccountName: params.subaccountName,
|
|
330
|
+
}),
|
|
331
|
+
payloadHash: params.payloadHash,
|
|
332
|
+
nonce: params.nonce,
|
|
333
|
+
};
|
|
334
|
+
}
|
|
@@ -7,9 +7,11 @@ import {
|
|
|
7
7
|
EIP712LiquidateSubaccountParams,
|
|
8
8
|
EIP712ListTriggerOrdersParams,
|
|
9
9
|
EIP712MintNlpParams,
|
|
10
|
+
EIP712NadoAuthenticationParams,
|
|
10
11
|
EIP712OrderParams,
|
|
11
12
|
EIP712SocialAuthenticationParams,
|
|
12
13
|
EIP712TransferQuoteParams,
|
|
14
|
+
EIP712UpdateDependencyParams,
|
|
13
15
|
EIP712WithdrawCollateralParams,
|
|
14
16
|
EIP712WithdrawCollateralV2Params,
|
|
15
17
|
} from './signatureParamTypes';
|
|
@@ -26,9 +28,11 @@ export interface SignableRequestTypeToParams {
|
|
|
26
28
|
liquidate_subaccount: EIP712LiquidateSubaccountParams;
|
|
27
29
|
list_trigger_orders: EIP712ListTriggerOrdersParams;
|
|
28
30
|
mint_nlp: EIP712MintNlpParams;
|
|
31
|
+
nado_authentication: EIP712NadoAuthenticationParams;
|
|
29
32
|
place_order: EIP712OrderParams;
|
|
30
33
|
social_authentication: EIP712SocialAuthenticationParams;
|
|
31
34
|
transfer_quote: EIP712TransferQuoteParams;
|
|
35
|
+
update_dependency: EIP712UpdateDependencyParams;
|
|
32
36
|
withdraw_collateral: EIP712WithdrawCollateralParams;
|
|
33
37
|
withdraw_collateral_v2: EIP712WithdrawCollateralV2Params;
|
|
34
38
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address } from 'viem';
|
|
1
|
+
import { Address, Hex } from 'viem';
|
|
2
2
|
import { Subaccount } from '../types/subaccountTypes';
|
|
3
3
|
import { BigNumberish } from '../utils';
|
|
4
4
|
|
|
@@ -54,6 +54,14 @@ export interface EIP712ListTriggerOrdersParams extends Subaccount {
|
|
|
54
54
|
recvTime: BigNumberish;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
export interface EIP712UpdateDependencyParams extends Subaccount {
|
|
58
|
+
// Digest (bytes32 hex string) of the order the trigger orders currently depend on
|
|
59
|
+
oldDigest: string;
|
|
60
|
+
// Digest (bytes32 hex string) of the replacement order the trigger orders should depend on
|
|
61
|
+
newDigest: string;
|
|
62
|
+
nonce: string;
|
|
63
|
+
}
|
|
64
|
+
|
|
57
65
|
export interface EIP712CancelOrdersParams extends Subaccount {
|
|
58
66
|
productIds: number[];
|
|
59
67
|
digests: string[];
|
|
@@ -95,3 +103,14 @@ export interface EIP712BurnNlpParams extends Subaccount {
|
|
|
95
103
|
nlpAmount: BigNumberish;
|
|
96
104
|
nonce: string;
|
|
97
105
|
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Params for the mobile service API's `NadoAuthentication` envelope.
|
|
109
|
+
*/
|
|
110
|
+
export interface EIP712NadoAuthenticationParams extends Subaccount {
|
|
111
|
+
// Namespaced method string, e.g. `mobile:execute_set_private_mode`.
|
|
112
|
+
method: string;
|
|
113
|
+
// keccak256 of the msgpack-encoded request payload.
|
|
114
|
+
payloadHash: Hex;
|
|
115
|
+
nonce: string;
|
|
116
|
+
}
|
package/src/types/index.ts
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EIP-712 signing context common to all signed API requests.
|
|
3
|
+
*/
|
|
4
|
+
export interface SignatureParams {
|
|
5
|
+
/**
|
|
6
|
+
* Verifying contract address for the EIP-712 domain. This is the endpoint address for most requests;
|
|
7
|
+
* order placement uses an address derived from the product (see `getOrderVerifyingAddress`).
|
|
8
|
+
*/
|
|
9
|
+
verifyingAddr: string;
|
|
10
|
+
chainId: number;
|
|
11
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createDeterministicLinkedSignerPrivateKey-XciG6RLh.d.ts","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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eip712ValueTypes-BbEkGbjV.d.ts","names":[],"sources":["../src/eip712/src/eip712/eip712ValueTypes.ts"],"mappings":";;;;;KAkBK,gBAAA;EACS,eAAA;EAAyB,cAAA;AAAA,KACnC,IAAA,CAAK,CAAA;EAEP,MAAA,EAAQ,GAAA;AAAA;AAAA,KAGE,8BAAA,GACV,gBAAgB,CAAC,8BAAA;AAAA,KAEP,gCAAA,GACV,gBAAgB,CAAC,gCAAA;AAAA,KAEP,+BAAA,GAAkC,IAAA,CAC5C,gBAAA,CAAiB,+BAAA;EAIjB,UAAA;AAAA;AAAA,KAGU,iBAAA,GAAoB,IAAA,CAC9B,gBAAA,CAAiB,iBAAA;EAGjB,QAAA,EAAU,YAAA;AAAA;AAAA,KAGA,6BAAA,GACV,gBAAgB,CAAC,6BAAA;AAAA,KAEP,6BAAA,GACV,gBAAgB,CAAC,wBAAA;AAAA,KAEP,qCAAA,GACV,gBAAgB,CAAC,+BAAA;AAAA,KAEP,sBAAA,GAAyB,gBAAgB,CAAC,sBAAA;AAAA,KAE1C,yBAAA,GAA4B,IAAA,CACtC,gBAAA,CAAiB,yBAAA;EAIjB,SAAA;AAAA;AAAA,KAGU,qCAAA,GACV,gBAAgB,CAAC,qCAAA;AAAA,KAEP,gCAAA,GACV,gBAAgB,CAAC,gCAAA;AAAA,KAEP,mBAAA,GAAsB,gBAAgB,CAAC,mBAAA;AAAA,KAEvC,mBAAA,GAAsB,gBAAgB,CAAC,mBAAA;AA7CnD;;;AAAA,UAkDiB,iCAAA;EACf,QAAA,EAAU,mBAAA;EACV,aAAA,EAAe,6BAAA;EACf,qBAAA,EAAuB,qCAAA;EACvB,0BAAA,EAA4B,qCAAA;EAC5B,WAAA,EAAa,sBAAA;EACb,oBAAA,EAAsB,+BAAA;EACtB,mBAAA,EAAqB,6BAAA;EACrB,QAAA,EAAU,mBAAA;EACV,WAAA,EAAa,iBAAA;EACb,qBAAA,EAAuB,gCAAA;EACvB,cAAA,EAAgB,yBAAA;EAChB,mBAAA,EAAqB,8BAAA;EACrB,sBAAA,EAAwB,gCAAA;AAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eip712ValueTypes-WrIZ5ICk.d.cts","names":[],"sources":["../src/eip712/src/eip712/eip712ValueTypes.ts"],"mappings":";;;;;KAkBK,gBAAA;EACS,eAAA;EAAyB,cAAA;AAAA,KACnC,IAAA,CAAK,CAAA;EAEP,MAAA,EAAQ,GAAA;AAAA;AAAA,KAGE,8BAAA,GACV,gBAAgB,CAAC,8BAAA;AAAA,KAEP,gCAAA,GACV,gBAAgB,CAAC,gCAAA;AAAA,KAEP,+BAAA,GAAkC,IAAA,CAC5C,gBAAA,CAAiB,+BAAA;EAIjB,UAAA;AAAA;AAAA,KAGU,iBAAA,GAAoB,IAAA,CAC9B,gBAAA,CAAiB,iBAAA;EAGjB,QAAA,EAAU,YAAA;AAAA;AAAA,KAGA,6BAAA,GACV,gBAAgB,CAAC,6BAAA;AAAA,KAEP,6BAAA,GACV,gBAAgB,CAAC,wBAAA;AAAA,KAEP,qCAAA,GACV,gBAAgB,CAAC,+BAAA;AAAA,KAEP,sBAAA,GAAyB,gBAAgB,CAAC,sBAAA;AAAA,KAE1C,yBAAA,GAA4B,IAAA,CACtC,gBAAA,CAAiB,yBAAA;EAIjB,SAAA;AAAA;AAAA,KAGU,qCAAA,GACV,gBAAgB,CAAC,qCAAA;AAAA,KAEP,gCAAA,GACV,gBAAgB,CAAC,gCAAA;AAAA,KAEP,mBAAA,GAAsB,gBAAgB,CAAC,mBAAA;AAAA,KAEvC,mBAAA,GAAsB,gBAAgB,CAAC,mBAAA;AA7CnD;;;AAAA,UAkDiB,iCAAA;EACf,QAAA,EAAU,mBAAA;EACV,aAAA,EAAe,6BAAA;EACf,qBAAA,EAAuB,qCAAA;EACvB,0BAAA,EAA4B,qCAAA;EAC5B,WAAA,EAAa,sBAAA;EACb,oBAAA,EAAsB,+BAAA;EACtB,mBAAA,EAAqB,6BAAA;EACrB,QAAA,EAAU,mBAAA;EACV,WAAA,EAAa,iBAAA;EACb,qBAAA,EAAuB,gCAAA;EACvB,cAAA,EAAgB,yBAAA;EAChB,mBAAA,EAAqB,8BAAA;EACrB,sBAAA,EAAwB,gCAAA;AAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getNadoEIP712Values-BmFwH7vp.d.ts","names":[],"sources":["../src/eip712/src/eip712/getNadoEIP712Values.ts"],"mappings":";;;;;;AA8CA;;;;;;iBAAgB,mBAAA,kBAAqC,mBAAA,CAAA,CACnD,WAAA,EAAa,QAAA,EACb,MAAA,EAAQ,2BAAA,CAA4B,QAAA,IACnC,iCAAA,CAAkC,QAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getNadoEIP712Values-CP4TLMfi.d.cts","names":[],"sources":["../src/eip712/src/eip712/getNadoEIP712Values.ts"],"mappings":";;;;;;AA8CA;;;;;;iBAAgB,mBAAA,kBAAqC,mBAAA,CAAA,CACnD,WAAA,EAAa,QAAA,EACb,MAAA,EAAQ,2BAAA,CAA4B,QAAA,IACnC,iCAAA,CAAkC,QAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getValidatedAddress-BQJEkmbN.d.cts","names":[],"sources":["../src/utils/src/utils/getValidatedAddress.ts"],"mappings":";;;;;AAMA;;iBAAgB,mBAAA,CAAoB,YAAA,WAAuB,OAAO"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getValidatedAddress-BmCqRBeh.d.ts","names":[],"sources":["../src/utils/src/utils/getValidatedAddress.ts"],"mappings":";;;;;AAMA;;iBAAgB,mBAAA,CAAoB,YAAA,WAAuB,OAAO"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getValidatedHex-DuwBnuEB.d.ts","names":[],"sources":["../src/utils/src/utils/getValidatedHex.ts"],"mappings":";;;;;AAMA;;iBAAgB,eAAA,CAAgB,QAAA,WAAmB,GAAG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getValidatedHex-PXNPR4pI.d.cts","names":[],"sources":["../src/utils/src/utils/getValidatedHex.ts"],"mappings":";;;;;AAMA;;iBAAgB,eAAA,CAAgB,QAAA,WAAmB,GAAG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"productIds-CCewi4tC.d.ts","names":[],"sources":["../src/consts/src/consts/productIds.ts"],"mappings":";cAAa,gBAAA;AAAA,cAEA,cAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"productIds-COuWMJat.d.cts","names":[],"sources":["../src/consts/src/consts/productIds.ts"],"mappings":";cAAa,gBAAA;AAAA,cAEA,cAAA"}
|