@nadohq/shared 0.26.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 +18 -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 +18 -0
- package/dist/eip712/getNadoEIP712Types.js.map +1 -1
- package/dist/eip712/getNadoEIP712Values.cjs +14 -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 +14 -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-CI6wMCCw.d.cts → eip712ValueTypes-B7SUNimi.d.cts} +5 -3
- package/dist/{eip712ValueTypes-CI6wMCCw.d.cts.map → eip712ValueTypes-B7SUNimi.d.cts.map} +1 -1
- package/dist/{eip712ValueTypes-CD1TxxFv.d.ts → eip712ValueTypes-Bx73DiwJ.d.ts} +5 -3
- package/dist/{eip712ValueTypes-CD1TxxFv.d.ts.map → eip712ValueTypes-Bx73DiwJ.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-DaxmoLmF.d.ts → encoding-ChEwtCUc.d.ts} +2 -2
- package/dist/{encoding-DaxmoLmF.d.ts.map → encoding-ChEwtCUc.d.ts.map} +1 -1
- package/dist/{encoding-BXqysa4s.d.cts → encoding-DGoJlZo_.d.cts} +2 -2
- package/dist/{encoding-BXqysa4s.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-CE0fRiTI.d.ts → getNadoEIP712PrimaryType-BcdZPTeT.d.ts} +2 -2
- package/dist/{getNadoEIP712PrimaryType-CE0fRiTI.d.ts.map → getNadoEIP712PrimaryType-BcdZPTeT.d.ts.map} +1 -1
- package/dist/{getNadoEIP712PrimaryType-Cq8siJx7.d.cts → getNadoEIP712PrimaryType-DxmJJfz2.d.cts} +2 -2
- package/dist/{getNadoEIP712PrimaryType-Cq8siJx7.d.cts.map → getNadoEIP712PrimaryType-DxmJJfz2.d.cts.map} +1 -1
- package/dist/{getNadoEIP712Types-D7duS2wH.d.cts → getNadoEIP712Types-CJFATDaU.d.cts} +2 -2
- package/dist/{getNadoEIP712Types-D7duS2wH.d.cts.map → getNadoEIP712Types-CJFATDaU.d.cts.map} +1 -1
- package/dist/{getNadoEIP712Types-BmB1bTGu.d.ts → getNadoEIP712Types-DUE5ujkf.d.ts} +2 -2
- package/dist/{getNadoEIP712Types-BmB1bTGu.d.ts.map → getNadoEIP712Types-DUE5ujkf.d.ts.map} +1 -1
- package/dist/{getNadoEIP712Values-0EOMObhX.d.ts → getNadoEIP712Values-CTLCQp1t.d.ts} +3 -3
- package/dist/getNadoEIP712Values-CTLCQp1t.d.ts.map +1 -0
- package/dist/{getNadoEIP712Values-DEBZh7-M.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-DxUMBHLe.d.cts → getSignedTransactionRequest-C0S7STob.d.cts} +2 -2
- package/dist/{getSignedTransactionRequest-DxUMBHLe.d.cts.map → getSignedTransactionRequest-C0S7STob.d.cts.map} +1 -1
- package/dist/{getSignedTransactionRequest-Et_1Y1wr.d.ts → getSignedTransactionRequest-EzUfIGU0.d.ts} +2 -2
- package/dist/{getSignedTransactionRequest-Et_1Y1wr.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-BlytCeEr.d.ts → orderDigest-Dkq7daQm.d.ts} +2 -2
- package/dist/{orderDigest-BlytCeEr.d.ts.map → orderDigest-Dkq7daQm.d.ts.map} +1 -1
- package/dist/{orderDigest-C9Sr-5TO.d.cts → orderDigest-KkIGidxX.d.cts} +2 -2
- package/dist/{orderDigest-C9Sr-5TO.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-DWpXrjGE.d.ts → signableRequestType-BtNg2SMb.d.cts} +3 -2
- package/dist/signableRequestType-BtNg2SMb.d.cts.map +1 -0
- package/dist/{signableRequestType-BV11vCXW.d.cts → signableRequestType-CZjIeuKt.d.ts} +3 -2
- package/dist/signableRequestType-CZjIeuKt.d.ts.map +1 -0
- package/dist/{signatureParamTypes-Cjm4X5PA.d.cts → signatureParamTypes-D30zq2Ac.d.cts} +12 -4
- package/dist/{signatureParamTypes-Cjm4X5PA.d.cts.map → signatureParamTypes-D30zq2Ac.d.cts.map} +1 -1
- package/dist/{signatureParamTypes-CDUNzp0c.d.ts → signatureParamTypes-wuLv8rkA.d.ts} +12 -4
- package/dist/{signatureParamTypes-CDUNzp0c.d.ts.map → signatureParamTypes-wuLv8rkA.d.ts.map} +1 -1
- 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 +5 -0
- package/src/eip712/getNadoEIP712Types.ts +9 -0
- package/src/eip712/getNadoEIP712Values.ts +21 -0
- package/src/eip712/signableRequestType.ts +2 -0
- package/src/eip712/signatureParamTypes.ts +12 -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/getNadoEIP712Values-0EOMObhX.d.ts.map +0 -1
- package/dist/getNadoEIP712Values-DEBZh7-M.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-BV11vCXW.d.cts.map +0 -1
- package/dist/signableRequestType-DWpXrjGE.d.ts.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
|
@@ -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,6 +9,7 @@ import {
|
|
|
9
9
|
EIP712LiquidateSubaccountParams,
|
|
10
10
|
EIP712ListTriggerOrdersParams,
|
|
11
11
|
EIP712MintNlpParams,
|
|
12
|
+
EIP712NadoAuthenticationParams,
|
|
12
13
|
EIP712OrderParams,
|
|
13
14
|
EIP712SocialAuthenticationParams,
|
|
14
15
|
EIP712TransferQuoteParams,
|
|
@@ -77,6 +78,9 @@ export type EIP712MintNlpValues = WithEIP712Sender<EIP712MintNlpParams>;
|
|
|
77
78
|
|
|
78
79
|
export type EIP712BurnNlpValues = WithEIP712Sender<EIP712BurnNlpParams>;
|
|
79
80
|
|
|
81
|
+
export type EIP712NadoAuthenticationValues =
|
|
82
|
+
WithEIP712Sender<EIP712NadoAuthenticationParams>;
|
|
83
|
+
|
|
80
84
|
/**
|
|
81
85
|
* All possible requests to be signed, to the EIP712 value interface
|
|
82
86
|
*/
|
|
@@ -89,6 +93,7 @@ export interface SignableRequestTypeToEIP712Values {
|
|
|
89
93
|
liquidate_subaccount: EIP712LiquidateSubaccountValues;
|
|
90
94
|
list_trigger_orders: EIP712ListTriggerOrdersValues;
|
|
91
95
|
mint_nlp: EIP712MintNlpValues;
|
|
96
|
+
nado_authentication: EIP712NadoAuthenticationValues;
|
|
92
97
|
place_order: EIP712OrderValues;
|
|
93
98
|
social_authentication: EIP712SocialAuthenticationValues;
|
|
94
99
|
transfer_quote: EIP712TransferQuoteValues;
|
|
@@ -138,5 +138,14 @@ export function getNadoEIP712Types(
|
|
|
138
138
|
{ name: 'nonce', type: 'uint64' },
|
|
139
139
|
],
|
|
140
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
|
+
};
|
|
141
150
|
}
|
|
142
151
|
}
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
EIP712LiquidateSubaccountValues,
|
|
8
8
|
EIP712ListTriggerOrdersValues,
|
|
9
9
|
EIP712MintNlpValues,
|
|
10
|
+
EIP712NadoAuthenticationValues,
|
|
10
11
|
EIP712OrderCancellationValues,
|
|
11
12
|
EIP712OrderValues,
|
|
12
13
|
EIP712ProductOrdersCancellationValues,
|
|
@@ -30,6 +31,7 @@ import {
|
|
|
30
31
|
EIP712LiquidateSubaccountParams,
|
|
31
32
|
EIP712ListTriggerOrdersParams,
|
|
32
33
|
EIP712MintNlpParams,
|
|
34
|
+
EIP712NadoAuthenticationParams,
|
|
33
35
|
EIP712OrderParams,
|
|
34
36
|
EIP712SocialAuthenticationParams,
|
|
35
37
|
EIP712TransferQuoteParams,
|
|
@@ -111,6 +113,11 @@ export function getNadoEIP712Values<TReqType extends SignableRequestType>(
|
|
|
111
113
|
case 'burn_nlp':
|
|
112
114
|
values = getBurnNlpValues(params as EIP712BurnNlpParams);
|
|
113
115
|
break;
|
|
116
|
+
case 'nado_authentication':
|
|
117
|
+
values = getNadoAuthenticationValues(
|
|
118
|
+
params as EIP712NadoAuthenticationParams,
|
|
119
|
+
);
|
|
120
|
+
break;
|
|
114
121
|
default:
|
|
115
122
|
throw new Error(`Unsupported request type: ${requestType}`);
|
|
116
123
|
}
|
|
@@ -311,3 +318,17 @@ function getBurnNlpValues(params: EIP712BurnNlpParams): EIP712BurnNlpValues {
|
|
|
311
318
|
nonce: params.nonce,
|
|
312
319
|
};
|
|
313
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,6 +7,7 @@ import {
|
|
|
7
7
|
EIP712LiquidateSubaccountParams,
|
|
8
8
|
EIP712ListTriggerOrdersParams,
|
|
9
9
|
EIP712MintNlpParams,
|
|
10
|
+
EIP712NadoAuthenticationParams,
|
|
10
11
|
EIP712OrderParams,
|
|
11
12
|
EIP712SocialAuthenticationParams,
|
|
12
13
|
EIP712TransferQuoteParams,
|
|
@@ -27,6 +28,7 @@ export interface SignableRequestTypeToParams {
|
|
|
27
28
|
liquidate_subaccount: EIP712LiquidateSubaccountParams;
|
|
28
29
|
list_trigger_orders: EIP712ListTriggerOrdersParams;
|
|
29
30
|
mint_nlp: EIP712MintNlpParams;
|
|
31
|
+
nado_authentication: EIP712NadoAuthenticationParams;
|
|
30
32
|
place_order: EIP712OrderParams;
|
|
31
33
|
social_authentication: EIP712SocialAuthenticationParams;
|
|
32
34
|
transfer_quote: EIP712TransferQuoteParams;
|
|
@@ -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
|
|
|
@@ -103,3 +103,14 @@ export interface EIP712BurnNlpParams extends Subaccount {
|
|
|
103
103
|
nlpAmount: BigNumberish;
|
|
104
104
|
nonce: string;
|
|
105
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":"getNadoEIP712Values-0EOMObhX.d.ts","names":[],"sources":["../src/eip712/src/eip712/getNadoEIP712Values.ts"],"mappings":";;;;;;AAgDA;;;;;;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-DEBZh7-M.d.cts","names":[],"sources":["../src/eip712/src/eip712/getNadoEIP712Values.ts"],"mappings":";;;;;;AAgDA;;;;;;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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"recvTime-C6ulZVuR.d.ts","names":[],"sources":["../src/utils/orders/src/utils/orders/recvTime.ts"],"mappings":";;AAMA;;;;AAAyE;iBAAzD,kBAAA,CAAmB,iBAAsC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"recvTime-lSkRnXFh.d.cts","names":[],"sources":["../src/utils/orders/src/utils/orders/recvTime.ts"],"mappings":";;AAMA;;;;AAAyE;iBAAzD,kBAAA,CAAmB,iBAAsC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"signableRequestType-BV11vCXW.d.cts","names":[],"sources":["../src/eip712/src/eip712/signableRequestType.ts"],"mappings":";;;;;AAoBA;UAAiB,2BAAA;EACf,QAAA,EAAU,mBAAA;EACV,aAAA,EAAe,wBAAA;EACf,qBAAA,EAAuB,+BAAA;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,iBAAA,EAAmB,4BAAA;EACnB,mBAAA,EAAqB,8BAAA;EACrB,sBAAA,EAAwB,gCAAA;AAAA;AAAA,KAGd,mBAAA,SAA4B,2BAA2B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"signableRequestType-DWpXrjGE.d.ts","names":[],"sources":["../src/eip712/src/eip712/signableRequestType.ts"],"mappings":";;;;;AAoBA;UAAiB,2BAAA;EACf,QAAA,EAAU,mBAAA;EACV,aAAA,EAAe,wBAAA;EACf,qBAAA,EAAuB,+BAAA;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,iBAAA,EAAmB,4BAAA;EACnB,mBAAA,EAAqB,8BAAA;EACrB,sBAAA,EAAwB,gCAAA;AAAA;AAAA,KAGd,mBAAA,SAA4B,2BAA2B"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|